[03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24: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:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]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:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08: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:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]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:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]accept exits with 7 [04:43:44]New connection [04:43:44]New thread 3067153764 created [04:43:44]Thread 3067297124 joined [04:43:44]Waiting for new connection... [04:43:44] Sock 7.Parse request [04:43:44]Sock 7.Check first char [04:43:44]Sock 7.First char is OK [04:43:44]request: POST /json_proto HTTP/1.0 [04:43:44]Method: POST [04:43:44]URL: /json_proto [04:43:44]Method is POST - this is cgi request [04:43:44]url: /json_proto [04:43:44]query_string will be loaded in cgi processing [04:43:44]execute_cgi json_proto POST (null) [04:43:44]execute_cgi path=json_proto method=POST [04:43:44]POST find Content-Length [04:43:44]Host: 172.17.56.4:8080 [04:43:44]Content-Length: 787 [04:43:44]Content-Type: application/json [04:43:44] [04:43:44]POST finish read [04:43:44]Found Content-Length = 787 [04:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 7.020, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:44]execute_script... [04:43: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)458160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 7.020, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:44]POST & json_proto [04:43:44]process_json_proto [04:43:44]json parsed OK: [04:43:44]protocol is kg_v1.0 [04:43:44]action value=close_receipt [04:43:44]process_action close_receipt [04:43:44]cmd_close_receipt [04:43:44]MH_GetDate [04:43:44]Write to MH i2c: F0 00 00 32 01 22 [04:43:44]Write i2c OK [04:43:44]MH_I2C_Read... [04:43:44]Read from MH i2c: F0 [04:43:44]MH_I2C_Read... [04:43:44]Read from MH i2c: F0 09 00 [04:43:44]MH_I2C_Read... [04:43:44]Read from MH i2c: F0 09 00 32 01 00 81 B4 90 66 C9 DC B2 64 11 [04:43:44]GetLastDocTimeStamp 1720751753 [04:43:44]current date 1720759425 [04:43:44]FM_GetShiftState [04:43:44]SAM_PROTO_GetShiftState [04:43:44]wFMCommunicate request_size=4 [04:43:44]MH_SAM_APDU [04:43:44]CAPDU: 80 13 01 00 [04:43:44]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [04:43:44]Write i2c OK [04:43:44]MH_I2C_Read... [04:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:44]Read from MH i2c: E2 [04:43:44]MH_I2C_Read... [04:43:44]Read from MH i2c: E2 0E 00 [04:43:44]MH_I2C_Read... [04:43:44]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FB [04:43:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [04:43:44]wFMCommunicate OK [04:43:44]SAM_PROTO_GetShiftState done [04:43:44]FM_GetShiftState done [04:43:44]opened in 1720744654 [04:43:44]opened+sec_in_day 1720831054 [04:43:44]quantity*price = 50024 [04:43:44]sum+1 = 50026 [04:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 4 12.07.2024 04:43 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164083 ФПД: 70532561675274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T044345&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164083&fm=70532561675274&tin=02508201610067®Number=0000000000090829&sum=50025 [04:43:45]StoreToDocumentArchive [04:43:45]shift 445 fd 164083 [04:43:45]save to /storage/0445/doc_00164083 [04:43:45]save last doc name /storage/0445/doc_00164083 to /storage/kkm_last_doc_name [04:43:45]save OK [04:43:45]Clear old archive folders... [04:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:43:45]tlvbuf is 005F5770 [04:43:45]SAM_PROTO_ClearQueue [04:43:45]wFMCommunicate request_size=4 [04:43:45]MH_SAM_APDU [04:43:45]CAPDU: 80 09 00 00 [04:43:45]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [04:43:45]Write i2c OK [04:43:45]MH_I2C_Read... [04:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:43:45]Read from MH i2c: E2 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 03 00 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [04:43:45]RAPDU: 90 00 [04:43:45]wFMCommunicate OK [04:43:45]SAM_PROTO_ClearQueue done [04:43:45]KKMCreateOFDPacket [04:43:45]OFDProtocolAddRootSTLVToBuf [04:43:45]FM_MakeSignedData [04:43:45]FM_MakeSignedData [04:43:45]SAM_PROTO_SignData [04:43:45]wFMCommunicate request_size=4 [04:43:45]MH_SAM_APDU [04:43:45]CAPDU: 80 0D 01 02 [04:43:45]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [04:43:45]Write i2c OK [04:43:45]MH_I2C_Read... [04:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:43:45]Read from MH i2c: E2 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 03 00 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [04:43:45]RAPDU: 90 00 [04:43:45]wFMCommunicate OK [04:43:45]wFMCommunicate request_size=255 [04:43:45]MH_SAM_APDU [04:43:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 1B 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 81 B4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 80 02 00 35 04 06 00 40 26 24 48 [04:43:45]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 1B 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 81 B4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 80 02 00 35 04 06 00 40 26 24 48 00 00 DE [04:43:45]Write i2c OK [04:43:45]MH_I2C_Read... [04:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:45]Read from MH i2c: E2 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 03 00 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [04:43:45]RAPDU: 90 00 [04:43:45]wFMCommunicate OK [04:43:45]wFMCommunicate request_size=7 [04:43:45]MH_SAM_APDU [04:43:45]CAPDU: 80 0D 02 02 02 A4 0A [04:43:45]Write to MH i2c: E2 0A 00 43 01 80 0D 02 02 02 00 A4 0A 00 00 70 [04:43:45]Write i2c OK [04:43:45]MH_I2C_Read... [04:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:45]Read from MH i2c: E2 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 03 00 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [04:43:45]RAPDU: 90 00 [04:43:45]wFMCommunicate OK [04:43:45]wFMCommunicate request_size=4 [04:43:45]MH_SAM_APDU [04:43:45]CAPDU: 80 0D 03 02 [04:43:45]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [04:43:45]Write i2c OK [04:43:45]MH_I2C_Read... [04:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:43:45]Read from MH i2c: E2 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 0B 00 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 0B 00 44 01 00 95 ED D3 AD 9E 22 D4 C0 90 00 17 [04:43:45]RAPDU: 95 ED D3 AD 9E 22 D4 C0 90 00 [04:43:45]wFMCommunicate OK [04:43:45]SAM_PROTO_SignData done [04:43:45]FM_MakeSignedData done [04:43:45]CreateOFDProtocolMessage [04:43:45]wFMCommunicate request_size=4 [04:43:45]MH_SAM_APDU [04:43:45]CAPDU: 80 11 00 00 [04:43:45]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [04:43:45]Write i2c OK [04:43:45]MH_I2C_Read... [04:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:45]Read from MH i2c: E2 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 17 00 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [04:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [04:43:45]wFMCommunicate OK [04:43:45]CreateOFDProtocolMessage done [04:43:45]OFDSenderStorePacket 164083 [04:43:45]StoreOFDPacket docnum=164083 [04:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 2E 71 04 01 68 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 1B 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 81 B4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 80 02 00 35 04 06 00 40 26 24 48 A4 0A 95 ED D3 AD 9E 22 D4 C0 [04:43:45]CheckFolder [04:43:45]dirname=/storage/ofd_packets [04:43:45]CheckFolder done [04:43:45]ProducePacketName [04:43:45]name=ofd_packets/00164083 [04:43:45]NVStorageSaveData ofd_packets/00164083 [04:43:45]File name is /storage/ofd_packets/00164083 [04:43:45]Write 298 bytes [04:43:45]NVStorageSaveData done [04:43:45]OFDSenderStorePacket done [04:43:45]KKMCreateOFDPacket done [04:43:45]NVStorageSaveData kkm_last_timestamp [04:43:45]File name is /storage/kkm_last_timestamp [04:43:45]Write 4 bytes [04:43:45]NVStorageSaveData done [04:43:45]ExternCall_PrintAddStr [04:43:45]wPrintStart [04:43:45]Write to MH i2c: 01 00 00 46 01 47 [04:43:45]Write i2c OK [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: 01 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: 01 07 00 [04:43:45]MH_I2C_Read... [04:43:45]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [04:43:45]RasterBufferAndPrint [04:43:45]line Счет N : (1)458160 [04:43:45]line ИНН: 02508201610067 [04:43:45]line Контрольно-Кассовый Чек [04:43:45]line ПРОДАЖА [04:43:45]line ТРК (МРК, ГНК) : 11 [04:43:45]line Товар: 2710194210 [04:43:45]line ДТ-К-5 [04:43:45]line 7.020 * 71.26 [04:43:45]line = 500.25 [04:43:45]line НДС 12% НСП 1% [04:43:45]line > о реализуемом товаре [04:43:45]line ИТОГО: 500.25 [04:43:45]line НСП 1% : 4.43 [04:43:45]line НДС 12% : 53.12 [04:43:45]line Наличными: 0.00 [04:43:45]line Безнал.: 500.25 [04:43:45]line Место: АЗС № 72 "Партнер Нефть" [04:43:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [04:43:45]line СНО: Общий режим [04:43:45]line Чек 4 12.07.2024 04:43 [04:43:45]line Смена: 445 ФФД: 1.0 [04:43:45]line ЗНМ: 0300000160 [04:43:45]line РНМ: 0000000000090829 [04:43:45]line Версия ККМ: 001 [04:43:45]line Платежная система: KICB Банк [04:43:45]line ФМ: 0000000000874718 [04:43:45]line ФД: 164083 [04:43:45]line ФПД: 70532561675274 [04:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T044345&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164083&fm=70532561675274&tin=02508201610067®Number=0000000000090829&sum=50025 [04:43:46]OFD Sender: Processing packet 164083 [packets to send 104, broken 103] [04:43:46]ProducePacketName [04:43:46]name=ofd_packets/00164083 [04:43:46]OFD Sender: To server: pG, [04:43:46]CommunicateWithHost lk.salyk.kg:30040 [04:43:46]ConnectInit lk.salyk.kg [04:43:46]written 0, free lines is 4095 [04:43:46]Connected sock=10 [04:43:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 2E 71 04 01 68 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 1B 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 81 B4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 80 02 00 35 04 06 00 40 26 24 48 A4 0A 95 ED D3 AD 9E 22 D4 C0 [04:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 12 5F 47 00 6D FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 80 02 00 F4 03 04 00 16 5B 90 66 B6 04 01 00 00 E9 7A 72 F5 C8 C2 BC 6C [04:43:46]CommunicateWithHost err = 0 [04:43:46]CheckOFDResponse [04:43:46]1017 (14) - 77093643461234 [04:43:46]1041 (16) - 0000000000874718 [04:43:46]1040 (4) - 164083 [04:43:46]1012 (4) - 11.07.2024 22:22 [04:43:46]1206 (1) - 0 [04:43:46]OFD Sender: Remove packet 164083 [04:43:46]ProducePacketName [04:43:46]name=ofd_packets/00164083 [04:43:46]NVStorageDeleteData [04:43:46]Write to MH i2c: 01 00 00 6F 01 70 [04:43:46]Write i2c OK [04:43:46]MH_I2C_Read... [04:43:46]Read from MH i2c: 01 [04:43:46]MH_I2C_Read... [04:43:46]Read from MH i2c: 01 07 00 [04:43:46]MH_I2C_Read... [04:43:46]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 F7 0C 7A [04:43:46]RasterBufferAndPrint [04:43:46]line [04:43:46]line [04:43:46]line [04:43:46]line [04:43:46]line [04:43:46]written 0, free lines is 3326 [04:43:46]MH_Cut [04:43:46]Write to MH i2c: D1 01 00 76 01 01 49 [04:43:46]Write i2c OK [04:43:46]MH_I2C_Read... [04:43:46]Read from MH i2c: D1 [04:43:46]MH_I2C_Read... [04:43:46]Read from MH i2c: D1 01 00 [04:43:46]MH_I2C_Read... [04:43:46]Read from MH i2c: D1 01 00 76 01 00 48 [04:43:46]Write to MH i2c: 01 00 00 77 01 78 [04:43:46]Write i2c OK [04:43:46]MH_I2C_Read... [04:43:46]OFD Sender: No OFD packet to send [04:43:47]*** Cut start [04:43:47]*** Partial cut [04:43:47]*** CUTSNS_PIN = 1 [04:43:47]*** CUTSNS_PIN = 0 [04:43:47]*** Brake cut motor [04:43:47]Read from MH i2c: 01 [04:43:47]MH_I2C_Read... [04:43:47]*** Stop cut motor [04:43:47]*** Cut end [04:43:47]Read from MH i2c: 01 07 00 [04:43:47]MH_I2C_Read... [04:43:47]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [04:43:47]process_action close_receipt done [04:43:47]requested_data is exist [04:43:47]produce_requested_data [04:43:47]requested_item fm.sn is exist - process it [04:43:47]wFMCommunicate request_size=4 [04:43:47]MH_SAM_APDU [04:43:47]CAPDU: 80 11 00 00 [04:43:47]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [04:43:47]Write i2c OK [04:43:47]MH_I2C_Read... [04:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:47]Read from MH i2c: E2 [04:43:47]MH_I2C_Read... [04:43:47]Read from MH i2c: E2 17 00 [04:43:47]MH_I2C_Read... [04:43:47]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [04:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [04:43:47]wFMCommunicate OK [04:43:47]requested_item fd.num is exist - process it [04:43:47]SAM_PROTO_GetFieldsCounters [04:43:47]wFMCommunicate request_size=4 [04:43:47]MH_SAM_APDU [04:43:47]CAPDU: 80 13 00 00 [04:43:47]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [04:43:47]Write i2c OK [04:43:47]MH_I2C_Read... [04:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:43:47]Read from MH i2c: E2 [04:43:47]MH_I2C_Read... [04:43:47]Read from MH i2c: E2 62 00 [04:43:47]MH_I2C_Read... [04:43:48]Read from MH i2c: E2 62 00 79 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [04:43: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:43:48]wFMCommunicate OK [04:43:48]SAM_PROTO_GetFieldsCounters done [04:43:48]requested_item shift.num is exist - process it [04:43:48]requested_item shift.opened is exist - process it [04:43:48]req_shift_opened [04:43:48]FM_GetShiftState [04:43:48]SAM_PROTO_GetShiftState [04:43:48]wFMCommunicate request_size=4 [04:43:48]MH_SAM_APDU [04:43:48]CAPDU: 80 13 01 00 [04:43:48]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [04:43:48]Write i2c OK [04:43:48]MH_I2C_Read... [04:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:48]Read from MH i2c: E2 [04:43:48]MH_I2C_Read... [04:43:48]Read from MH i2c: E2 0E 00 [04:43:48]MH_I2C_Read... [04:43:48]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 42 [04:43:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [04:43:48]wFMCommunicate OK [04:43:48]SAM_PROTO_GetShiftState done [04:43:48]FM_GetShiftState done [04:43:48]req_shift_opened done [04:43:48]requested_item shift.open_date is exist - process it [04:43:48]req_shift_open_date [04:43:48]req_shift_open_date done [04:43:48]produce_requested_data done [04:43:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164083,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [04:43:48]process_action_free close_receipt [04:43:48]json_value_free [04:43:48]json_value_free done [04:43:48]process_json_proto returns [04:43:48]Send response to host [04:43:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164083,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [04:43:48]free response buf [04:43:48]execute_script done [04:43:48]execute_script returns [04:43:48]free content buf [04:43:48]Sock 7.Close socket [04:43:48]Sock 7.Thread stoped [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:26:43]ConnectInit Can't connect to host [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:34]accept exits with 9 [05:45:34]New connection [05:45:34]New thread 3067297124 created [05:45:34]Thread 3067153764 joined [05:45:34]Waiting for new connection... [05:45:34] Sock 9.Parse request [05:45:34]Sock 9.Check first char [05:45:34]Sock 9.First char is OK [05:45:34]request: POST /json_proto HTTP/1.0 [05:45:34]Method: POST [05:45:34]URL: /json_proto [05:45:34]Method is POST - this is cgi request [05:45:34]url: /json_proto [05:45:34]query_string will be loaded in cgi processing [05:45:34]execute_cgi json_proto POST (null) [05:45:34]execute_cgi path=json_proto method=POST [05:45:34]POST find Content-Length [05:45:34]Host: 172.17.56.4:8080 [05:45:34]Content-Length: 679 [05:45:34]Content-Type: application/json [05:45:34] [05:45:34]POST finish read [05:45:34]Found Content-Length = 679 [05:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 34.780, "sum" : 2500.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:34]execute_script... [05:45:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 34.780, "sum" : 2500.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:34]POST & json_proto [05:45:34]process_json_proto [05:45:34]json parsed OK: [05:45:34]protocol is kg_v1.0 [05:45:34]action value=close_receipt [05:45:34]process_action close_receipt [05:45:34]cmd_close_receipt [05:45:34]MH_GetDate [05:45:34]Write to MH i2c: F0 00 00 7B 01 6B [05:45:34]Write i2c OK [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: F0 [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: F0 09 00 [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: F0 09 00 7B 01 00 FF C2 90 66 C9 DC B2 64 E6 [05:45:34]GetLastDocTimeStamp 1720759425 [05:45:34]current date 1720763135 [05:45:34]FM_GetShiftState [05:45:34]SAM_PROTO_GetShiftState [05:45:34]wFMCommunicate request_size=4 [05:45:34]MH_SAM_APDU [05:45:34]CAPDU: 80 13 01 00 [05:45:34]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [05:45:34]Write i2c OK [05:45:34]MH_I2C_Read... [05:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:34]Read from MH i2c: E2 [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: E2 0E 00 [05:45:34]MH_I2C_Read... [05:45:34]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 44 [05:45:34]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [05:45:34]wFMCommunicate OK [05:45:34]SAM_PROTO_GetShiftState done [05:45:34]FM_GetShiftState done [05:45:34]opened in 1720744654 [05:45:34]opened+sec_in_day 1720831054 [05:45:34]quantity*price = 250068 [05:45:34]sum+1 = 250069 [05:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 5 12.07.2024 05:45 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164084 ФПД: 241442346396971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T054535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164084&fm=241442346396971&tin=02508201610067®Number=0000000000090829&sum=250000 [05:45:35]StoreToDocumentArchive [05:45:35]shift 445 fd 164084 [05:45:35]save to /storage/0445/doc_00164084 [05:45:35]save last doc name /storage/0445/doc_00164084 to /storage/kkm_last_doc_name [05:45:35]save OK [05:45:35]Clear old archive folders... [05:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:45:35]tlvbuf is 005F7250 [05:45:35]SAM_PROTO_ClearQueue [05:45:35]wFMCommunicate request_size=4 [05:45:35]MH_SAM_APDU [05:45:35]CAPDU: 80 09 00 00 [05:45:35]Write to MH i2c: E2 08 00 89 01 80 09 00 00 00 00 00 00 FC [05:45:35]Write i2c OK [05:45:35]MH_I2C_Read... [05:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:45:35]Read from MH i2c: E2 [05:45:35]MH_I2C_Read... [05:45:35]Read from MH i2c: E2 03 00 [05:45:35]MH_I2C_Read... [05:45:35]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [05:45:35]RAPDU: 90 00 [05:45:35]wFMCommunicate OK [05:45:35]SAM_PROTO_ClearQueue done [05:45:35]KKMCreateOFDPacket [05:45:35]OFDProtocolAddRootSTLVToBuf [05:45:35]FM_MakeSignedData [05:45:35]FM_MakeSignedData [05:45:35]SAM_PROTO_SignData [05:45:35]wFMCommunicate request_size=4 [05:45:35]MH_SAM_APDU [05:45:35]CAPDU: 80 0D 01 02 [05:45:35]Write to MH i2c: E2 08 00 8A 01 80 0D 01 02 00 00 00 00 04 [05:45:35]Write i2c OK [05:45:35]MH_I2C_Read... [05:45:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:45:35]Read from MH i2c: E2 [05:45:35]MH_I2C_Read... [05:45:35]Read from MH i2c: E2 03 00 [05:45:35]MH_I2C_Read... [05:45:35]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [05:45:35]RAPDU: 90 00 [05:45:35]wFMCommunicate OK [05:45:35]wFMCommunicate request_size=255 [05:45:35]MH_SAM_APDU [05:45: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 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF C2 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 80 02 00 35 04 06 00 DB 97 2D 4A [05:45:35]Write to MH i2c: E2 02 01 8B 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF C2 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 80 02 00 35 04 06 00 DB 97 2D 4A 00 00 12 [05:45:35]Write i2c OK [05:45:35]MH_I2C_Read... [05:45:36]OFD Sender: No OFD packet to send [05:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [05:45:36]RAPDU: 90 00 [05:45:36]wFMCommunicate OK [05:45:36]wFMCommunicate request_size=7 [05:45:36]MH_SAM_APDU [05:45:36]CAPDU: 80 0D 02 02 02 6D 2B [05:45:36]Write to MH i2c: E2 0A 00 8C 01 80 0D 02 02 02 00 6D 2B 00 00 A3 [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:36]Read from MH i2c: E2 03 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [05:45:36]RAPDU: 90 00 [05:45:36]wFMCommunicate OK [05:45:36]wFMCommunicate request_size=4 [05:45:36]MH_SAM_APDU [05:45:36]CAPDU: 80 0D 03 02 [05:45:36]Write to MH i2c: E2 08 00 8D 01 80 0D 03 02 00 00 00 00 09 [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 0B 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 0B 00 8D 01 00 C7 7C D3 81 9F 2E A2 A2 90 00 B2 [05:45:36]RAPDU: C7 7C D3 81 9F 2E A2 A2 90 00 [05:45:36]wFMCommunicate OK [05:45:36]SAM_PROTO_SignData done [05:45:36]FM_MakeSignedData done [05:45:36]CreateOFDProtocolMessage [05:45:36]wFMCommunicate request_size=4 [05:45:36]MH_SAM_APDU [05:45:36]CAPDU: 80 11 00 00 [05:45:36]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:36]Read from MH i2c: E2 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 17 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [05:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:45:36]wFMCommunicate OK [05:45:36]CreateOFDProtocolMessage done [05:45:36]OFDSenderStorePacket 164084 [05:45:36]StoreOFDPacket docnum=164084 [05:45:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 01 4A 04 01 0A 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 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF C2 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 80 02 00 35 04 06 00 DB 97 2D 4A 6D 2B C7 7C D3 81 9F 2E A2 A2 [05:45:36]CheckFolder [05:45:36]dirname=/storage/ofd_packets [05:45:36]CheckFolder done [05:45:36]ProducePacketName [05:45:36]name=ofd_packets/00164084 [05:45:36]NVStorageSaveData ofd_packets/00164084 [05:45:36]File name is /storage/ofd_packets/00164084 [05:45:36]Write 298 bytes [05:45:36]NVStorageSaveData done [05:45:36]OFDSenderStorePacket done [05:45:36]KKMCreateOFDPacket done [05:45:36]NVStorageSaveData kkm_last_timestamp [05:45:36]File name is /storage/kkm_last_timestamp [05:45:36]Write 4 bytes [05:45:36]NVStorageSaveData done [05:45:36]ExternCall_PrintAddStr [05:45:36]wPrintStart [05:45:36]Write to MH i2c: 01 00 00 8F 01 90 [05:45:36]Write i2c OK [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: 01 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: 01 07 00 [05:45:36]MH_I2C_Read... [05:45:36]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [05:45:36]RasterBufferAndPrint [05:45:36]line Счет N : (1)458161 [05:45:36]line ИНН: 02508201610067 [05:45:36]line Контрольно-Кассовый Чек [05:45:36]line ПРОДАЖА [05:45:36]line ТРК (МРК, ГНК) : 11 [05:45:36]line Товар: 2710194210 [05:45:36]line ДТ-К-5 [05:45:36]line 34.780 * 71.90 [05:45:36]line = 2500.68 [05:45:36]line НДС 12% НСП 1% [05:45:36]line > о реализуемом товаре [05:45:36]line ОКРУГЛЕНИЕ: -0.68 [05:45:36]line ИТОГО: 2500.00 [05:45:36]line Внесено: 2500.00 [05:45:36]line СДАЧА: 0.00 [05:45:36]line НСП 1% : 22.13 [05:45:36]line НДС 12% : 265.56 [05:45:36]line Наличными: 2500.00 [05:45:36]line Безнал.: 0.00 [05:45:36]line Место: АЗС № 72 "Партнер Нефть" [05:45:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:45:36]line СНО: Общий режим [05:45:36]line Чек 5 12.07.2024 05:45 [05:45:36]line Смена: 445 ФФД: 1.0 [05:45:36]line ЗНМ: 0300000160 [05:45:36]line РНМ: 0000000000090829 [05:45:36]line Версия ККМ: 001 [05:45:36]line ФМ: 0000000000874718 [05:45:36]line ФД: 164084 [05:45:36]line ФПД: 241442346396971 [05:45:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T054535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164084&fm=241442346396971&tin=02508201610067®Number=0000000000090829&sum=250000 [05:45:36]OFD Sender: Processing packet 164084 [packets to send 104, broken 103] [05:45:36]ProducePacketName [05:45:36]written 0, free lines is 4095 [05:45:36]name=ofd_packets/00164084 [05:45:36]OFD Sender: To server: pG, [05:45:36]CommunicateWithHost lk.salyk.kg:30040 [05:45:36]ConnectInit lk.salyk.kg [05:45:36]Connected sock=10 [05:45:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 01 4A 04 01 0A 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 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF C2 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 80 02 00 35 04 06 00 DB 97 2D 4A 6D 2B C7 7C D3 81 9F 2E A2 A2 [05:45:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7F 7A 47 00 55 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 80 02 00 F4 03 04 00 95 69 90 66 B6 04 01 00 00 76 63 44 90 BE 45 1F A1 [05:45:36]CommunicateWithHost err = 0 [05:45:36]CheckOFDResponse [05:45:36]1017 (14) - 77093643461234 [05:45:36]1041 (16) - 0000000000874718 [05:45:36]1040 (4) - 164084 [05:45:36]1012 (4) - 11.07.2024 23:24 [05:45:36]1206 (1) - 0 [05:45:36]OFD Sender: Remove packet 164084 [05:45:36]ProducePacketName [05:45:36]name=ofd_packets/00164084 [05:45:36]NVStorageDeleteData [05:45:37]Write to MH i2c: 01 00 00 B9 01 BA [05:45:37]Write i2c OK [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: 01 [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: 01 07 00 [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 06 0D D4 [05:45:37]RasterBufferAndPrint [05:45:37]line [05:45:37]line [05:45:37]line [05:45:37]line [05:45:37]line [05:45:37]written 0, free lines is 3340 [05:45:37]MH_Cut [05:45:37]Write to MH i2c: D1 01 00 C0 01 01 93 [05:45:37]Write i2c OK [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: D1 [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: D1 01 00 [05:45:37]MH_I2C_Read... [05:45:37]Read from MH i2c: D1 01 00 C0 01 00 92 [05:45:37]Write to MH i2c: 01 00 00 C1 01 C2 [05:45:37]Write i2c OK [05:45:37]MH_I2C_Read... [05:45:37]OFD Sender: No OFD packet to send [05:45:37]*** Cut start [05:45:37]*** Partial cut [05:45:37]*** CUTSNS_PIN = 1 [05:45:37]*** CUTSNS_PIN = 0 [05:45:38]*** Brake cut motor [05:45:38]Read from MH i2c: 01 [05:45:38]MH_I2C_Read... [05:45:38]*** Stop cut motor [05:45:38]*** Cut end [05:45:38]Read from MH i2c: 01 07 00 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [05:45:38]process_action close_receipt done [05:45:38]requested_data is exist [05:45:38]produce_requested_data [05:45:38]requested_item fm.sn is exist - process it [05:45:38]wFMCommunicate request_size=4 [05:45:38]MH_SAM_APDU [05:45:38]CAPDU: 80 11 00 00 [05:45:38]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [05:45:38]Write i2c OK [05:45:38]MH_I2C_Read... [05:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:38]Read from MH i2c: E2 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 17 00 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [05:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:45:38]wFMCommunicate OK [05:45:38]requested_item fd.num is exist - process it [05:45:38]SAM_PROTO_GetFieldsCounters [05:45:38]wFMCommunicate request_size=4 [05:45:38]MH_SAM_APDU [05:45:38]CAPDU: 80 13 00 00 [05:45:38]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [05:45:38]Write i2c OK [05:45:38]MH_I2C_Read... [05:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:45:38]Read from MH i2c: E2 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 62 00 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 62 00 C3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [05:45:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:45:38]wFMCommunicate OK [05:45:38]SAM_PROTO_GetFieldsCounters done [05:45:38]requested_item shift.num is exist - process it [05:45:38]requested_item shift.opened is exist - process it [05:45:38]req_shift_opened [05:45:38]FM_GetShiftState [05:45:38]SAM_PROTO_GetShiftState [05:45:38]wFMCommunicate request_size=4 [05:45:38]MH_SAM_APDU [05:45:38]CAPDU: 80 13 01 00 [05:45:38]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [05:45:38]Write i2c OK [05:45:38]MH_I2C_Read... [05:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:38]Read from MH i2c: E2 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 0E 00 [05:45:38]MH_I2C_Read... [05:45:38]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8C [05:45:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [05:45:38]wFMCommunicate OK [05:45:38]SAM_PROTO_GetShiftState done [05:45:38]FM_GetShiftState done [05:45:38]req_shift_opened done [05:45:38]requested_item shift.open_date is exist - process it [05:45:38]req_shift_open_date [05:45:38]req_shift_open_date done [05:45:38]produce_requested_data done [05:45:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164084,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [05:45:38]process_action_free close_receipt [05:45:38]json_value_free [05:45:38]json_value_free done [05:45:38]process_json_proto returns [05:45:38]Send response to host [05:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164084,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [05:45:38]free response buf [05:45:38]execute_script done [05:45:38]execute_script returns [05:45:38]free content buf [05:45:38]Sock 9.Close socket [05:45:38]Sock 9.Thread stoped [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:10]accept exits with 7 [05:59:10]New connection [05:59:10]New thread 3067153764 created [05:59:10]Thread 3067297124 joined [05:59:10]Waiting for new connection... [05:59:10] Sock 7.Parse request [05:59:10]Sock 7.Check first char [05:59:10]Sock 7.First char is OK [05:59:10]request: POST /json_proto HTTP/1.0 [05:59:10]Method: POST [05:59:10]URL: /json_proto [05:59:10]Method is POST - this is cgi request [05:59:10]url: /json_proto [05:59:10]query_string will be loaded in cgi processing [05:59:10]execute_cgi json_proto POST (null) [05:59:10]execute_cgi path=json_proto method=POST [05:59:10]POST find Content-Length [05:59:10]Host: 172.17.56.4:8080 [05:59:10]Content-Length: 677 [05:59:10]Content-Type: application/json [05:59:10] [05:59:10]POST finish read [05:59:10]Found Content-Length = 677 [05:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:10]execute_script... [05: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)458162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:10]POST & json_proto [05:59:10]process_json_proto [05:59:10]json parsed OK: [05:59:10]protocol is kg_v1.0 [05:59:10]action value=close_receipt [05:59:10]process_action close_receipt [05:59:10]cmd_close_receipt [05:59:10]MH_GetDate [05:59:10]Write to MH i2c: F0 00 00 C5 01 B5 [05:59:10]Write i2c OK [05:59:10]MH_I2C_Read... [05:59:10]Read from MH i2c: F0 [05:59:10]MH_I2C_Read... [05:59:10]Read from MH i2c: F0 09 00 [05:59:10]MH_I2C_Read... [05:59:10]Read from MH i2c: F0 09 00 C5 01 00 2F C6 90 66 C9 DC B2 64 64 [05:59:10]GetLastDocTimeStamp 1720763135 [05:59:10]current date 1720763951 [05:59:10]FM_GetShiftState [05:59:10]SAM_PROTO_GetShiftState [05:59:10]wFMCommunicate request_size=4 [05:59:10]MH_SAM_APDU [05:59:10]CAPDU: 80 13 01 00 [05:59:10]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [05:59:10]Write i2c OK [05:59:10]MH_I2C_Read... [05:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:10]Read from MH i2c: E2 [05:59:10]MH_I2C_Read... [05:59:10]Read from MH i2c: E2 0E 00 [05:59:10]MH_I2C_Read... [05:59:10]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8E [05:59:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [05:59:10]wFMCommunicate OK [05:59:10]SAM_PROTO_GetShiftState done [05:59:10]FM_GetShiftState done [05:59:10]opened in 1720744654 [05:59:10]opened+sec_in_day 1720831054 [05:59:10]quantity*price = 50008 [05:59:10]sum+1 = 50009 [05:59:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 6 12.07.2024 05:59 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164085 ФПД: 27160140010991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T055911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164085&fm=27160140010991&tin=02508201610067®Number=0000000000090829&sum=50000 [05:59:11]StoreToDocumentArchive [05:59:11]shift 445 fd 164085 [05:59:11]save to /storage/0445/doc_00164085 [05:59:11]save last doc name /storage/0445/doc_00164085 to /storage/kkm_last_doc_name [05:59:11]save OK [05:59:11]Clear old archive folders... [05:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:59:11]tlvbuf is 00663130 [05:59:11]SAM_PROTO_ClearQueue [05:59:11]wFMCommunicate request_size=4 [05:59:11]MH_SAM_APDU [05:59:11]CAPDU: 80 09 00 00 [05:59:11]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [05:59:11]Write i2c OK [05:59:11]MH_I2C_Read... [05:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:59:11]Read from MH i2c: E2 [05:59:11]MH_I2C_Read... [05:59:11]Read from MH i2c: E2 03 00 [05:59:11]MH_I2C_Read... [05:59:11]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [05:59:11]RAPDU: 90 00 [05:59:11]wFMCommunicate OK [05:59:11]SAM_PROTO_ClearQueue done [05:59:11]KKMCreateOFDPacket [05:59:11]OFDProtocolAddRootSTLVToBuf [05:59:11]FM_MakeSignedData [05:59:11]FM_MakeSignedData [05:59:11]SAM_PROTO_SignData [05:59:11]wFMCommunicate request_size=4 [05:59:11]MH_SAM_APDU [05:59:11]CAPDU: 80 0D 01 02 [05:59:11]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [05:59:11]Write i2c OK [05:59:11]MH_I2C_Read... [05:59:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:59:11]Read from MH i2c: E2 [05:59:11]MH_I2C_Read... [05:59:11]Read from MH i2c: E2 03 00 [05:59:11]MH_I2C_Read... [05:59:11]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [05:59:11]RAPDU: 90 00 [05:59:11]wFMCommunicate OK [05:59:11]wFMCommunicate request_size=255 [05:59:11]MH_SAM_APDU [05: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 06 00 00 00 F4 03 04 00 2F C6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 80 02 00 35 04 06 00 18 [05:59:11]Write to MH i2c: E2 02 01 D5 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 06 00 00 00 F4 03 04 00 2F C6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 80 02 00 35 04 06 00 18 00 00 05 [05:59:11]Write i2c OK [05:59:11]MH_I2C_Read... [05:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:12]Read from MH i2c: E2 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: E2 03 00 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [05:59:12]RAPDU: 90 00 [05:59:12]wFMCommunicate OK [05:59:12]wFMCommunicate request_size=10 [05:59:12]MH_SAM_APDU [05:59:12]CAPDU: 80 0D 02 02 05 B3 B6 7F 55 EF [05:59:12]Write to MH i2c: E2 0D 00 D6 01 80 0D 02 02 05 00 B3 B6 7F 55 EF 00 00 87 [05:59:12]Write i2c OK [05:59:12]MH_I2C_Read... [05:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:12]Read from MH i2c: E2 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: E2 03 00 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [05:59:12]RAPDU: 90 00 [05:59:12]wFMCommunicate OK [05:59:12]wFMCommunicate request_size=4 [05:59:12]MH_SAM_APDU [05:59:12]CAPDU: 80 0D 03 02 [05:59:12]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [05:59:12]Write i2c OK [05:59:12]MH_I2C_Read... [05:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:59:12]Read from MH i2c: E2 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: E2 0B 00 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: E2 0B 00 D7 01 00 43 4A 43 43 3D CA 4E 3F 90 00 FB [05:59:12]RAPDU: 43 4A 43 43 3D CA 4E 3F 90 00 [05:59:12]wFMCommunicate OK [05:59:12]SAM_PROTO_SignData done [05:59:12]FM_MakeSignedData done [05:59:12]CreateOFDProtocolMessage [05:59:12]wFMCommunicate request_size=4 [05:59:12]MH_SAM_APDU [05:59:12]CAPDU: 80 11 00 00 [05:59:12]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [05:59:12]Write i2c OK [05:59:12]MH_I2C_Read... [05:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:12]Read from MH i2c: E2 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: E2 17 00 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [05:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:59:12]wFMCommunicate OK [05:59:12]CreateOFDProtocolMessage done [05:59:12]OFDSenderStorePacket 164085 [05:59:12]StoreOFDPacket docnum=164085 [05:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 76 0B 07 01 3C 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 06 00 00 00 F4 03 04 00 2F C6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 80 02 00 35 04 06 00 18 B3 B6 7F 55 EF 43 4A 43 43 3D CA 4E 3F [05:59:12]CheckFolder [05:59:12]dirname=/storage/ofd_packets [05:59:12]CheckFolder done [05:59:12]ProducePacketName [05:59:12]name=ofd_packets/00164085 [05:59:12]NVStorageSaveData ofd_packets/00164085 [05:59:12]File name is /storage/ofd_packets/00164085 [05:59:12]Write 301 bytes [05:59:12]NVStorageSaveData done [05:59:12]OFDSenderStorePacket done [05:59:12]KKMCreateOFDPacket done [05:59:12]NVStorageSaveData kkm_last_timestamp [05:59:12]File name is /storage/kkm_last_timestamp [05:59:12]Write 4 bytes [05:59:12]NVStorageSaveData done [05:59:12]ExternCall_PrintAddStr [05:59:12]wPrintStart [05:59:12]Write to MH i2c: 01 00 00 D9 01 DA [05:59:12]Write i2c OK [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: 01 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: 01 07 00 [05:59:12]MH_I2C_Read... [05:59:12]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [05:59:12]RasterBufferAndPrint [05:59:12]line Счет N : (1)458162 [05:59:12]line ИНН: 02508201610067 [05:59:12]line Контрольно-Кассовый Чек [05:59:12]line ПРОДАЖА [05:59:12]line ТРК (МРК, ГНК) : 22 [05:59:12]line Товар: 2710124130 [05:59:12]line Аи-92-К-5 [05:59:12]line 7.600 * 65.80 [05:59:12]line = 500.08 [05:59:12]line НДС 12% НСП 1% [05:59:12]line > о реализуемом товаре [05:59:12]line ОКРУГЛЕНИЕ: -0.08 [05:59:12]line ИТОГО: 500.00 [05:59:12]line Внесено: 500.00 [05:59:12]line СДАЧА: 0.00 [05:59:12]line НСП 1% : 4.42 [05:59:12]line НДС 12% : 53.11 [05:59:12]line Наличными: 500.00 [05:59:12]line Безнал.: 0.00 [05:59:12]line Место: АЗС № 72 "Партнер Нефть" [05:59:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:59:12]line СНО: Общий режим [05:59:12]line Чек 6 12.07.2024 05:59 [05:59:12]line Смена: 445 ФФД: 1.0 [05:59:12]line ЗНМ: 0300000160 [05:59:12]line РНМ: 0000000000090829 [05:59:12]line Версия ККМ: 001 [05:59:12]line ФМ: 0000000000874718 [05:59:12]line ФД: 164085 [05:59:12]line ФПД: 27160140010991 [05:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T055911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164085&fm=27160140010991&tin=02508201610067®Number=0000000000090829&sum=50000 [05:59:12]OFD Sender: Processing packet 164085 [packets to send 104, broken 103] [05:59:12]ProducePacketName [05:59:12]name=ofd_packets/00164085 [05:59:12]OFD Sender: To server: pG, [05:59:12]CommunicateWithHost lk.salyk.kg:30040 [05:59:12]ConnectInit lk.salyk.kg [05:59:12]written 0, free lines is 4095 [05:59:12]Connected sock=10 [05: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 34 37 31 38 0F 01 00 00 76 0B 07 01 3C 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 06 00 00 00 F4 03 04 00 2F C6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 80 02 00 35 04 06 00 18 B3 B6 7F 55 EF 43 4A 43 43 3D CA 4E 3F [05:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 49 47 00 37 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 34 37 31 38 10 04 04 00 F5 80 02 00 F4 03 04 00 C5 6C 90 66 B6 04 01 00 00 72 BA 14 5D 26 24 E1 79 [05:59:12]CommunicateWithHost err = 0 [05:59:12]CheckOFDResponse [05:59:12]1017 (14) - 77093643461234 [05:59:12]1041 (16) - 0000000000874718 [05:59:12]1040 (4) - 164085 [05:59:12]1012 (4) - 11.07.2024 23:37 [05:59:12]1206 (1) - 0 [05:59:12]OFD Sender: Remove packet 164085 [05:59:12]ProducePacketName [05:59:12]name=ofd_packets/00164085 [05:59:12]NVStorageDeleteData [05:59:13]Write to MH i2c: 01 00 00 03 02 05 [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: 01 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: 01 07 00 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: 01 07 00 03 02 00 00 00 00 00 F2 0C 0A [05:59:13]RasterBufferAndPrint [05:59:13]line [05:59:13]line [05:59:13]line [05:59:13]line [05:59:13]line [05:59:13]written 0, free lines is 3320 [05:59:13]MH_Cut [05:59:13]Write to MH i2c: D1 01 00 0A 02 01 DE [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: D1 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: D1 01 00 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: D1 01 00 0A 02 00 DD [05:59:13]Write to MH i2c: 01 00 00 0B 02 0D [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]OFD Sender: No OFD packet to send [05:59:13]*** Cut start [05:59:13]*** Partial cut [05:59:13]*** CUTSNS_PIN = 1 [05:59:13]*** CUTSNS_PIN = 0 [05:59:14]*** Brake cut motor [05:59:14]Read from MH i2c: 01 [05:59:14]MH_I2C_Read... [05:59:14]*** Stop cut motor [05:59:14]*** Cut end [05:59:14]Read from MH i2c: 01 07 00 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 FF 0F 22 [05:59:14]process_action close_receipt done [05:59:14]requested_data is exist [05:59:14]produce_requested_data [05:59:14]requested_item fm.sn is exist - process it [05:59:14]wFMCommunicate request_size=4 [05:59:14]MH_SAM_APDU [05:59:14]CAPDU: 80 11 00 00 [05:59:14]Write to MH i2c: E2 08 00 0C 02 80 11 00 00 00 00 00 00 88 [05:59:14]Write i2c OK [05:59:14]MH_I2C_Read... [05:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:14]Read from MH i2c: E2 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: E2 17 00 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: E2 17 00 0C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [05:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:59:14]wFMCommunicate OK [05:59:14]requested_item fd.num is exist - process it [05:59:14]SAM_PROTO_GetFieldsCounters [05:59:14]wFMCommunicate request_size=4 [05:59:14]MH_SAM_APDU [05:59:14]CAPDU: 80 13 00 00 [05:59:14]Write to MH i2c: E2 08 00 0D 02 80 13 00 00 00 00 00 00 8B [05:59:14]Write i2c OK [05:59:14]MH_I2C_Read... [05:59:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:59:14]Read from MH i2c: E2 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: E2 62 00 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: E2 62 00 0D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:59:14]wFMCommunicate OK [05:59:14]SAM_PROTO_GetFieldsCounters done [05:59:14]requested_item shift.num is exist - process it [05:59:14]requested_item shift.opened is exist - process it [05:59:14]req_shift_opened [05:59:14]FM_GetShiftState [05:59:14]SAM_PROTO_GetShiftState [05:59:14]wFMCommunicate request_size=4 [05:59:14]MH_SAM_APDU [05:59:14]CAPDU: 80 13 01 00 [05:59:14]Write to MH i2c: E2 08 00 0E 02 80 13 01 00 00 00 00 00 8D [05:59:14]Write i2c OK [05:59:14]MH_I2C_Read... [05:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:14]Read from MH i2c: E2 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: E2 0E 00 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: E2 0E 00 0E 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D7 [05:59:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [05:59:14]wFMCommunicate OK [05:59:14]SAM_PROTO_GetShiftState done [05:59:14]FM_GetShiftState done [05:59:14]req_shift_opened done [05:59:14]requested_item shift.open_date is exist - process it [05:59:14]req_shift_open_date [05:59:14]req_shift_open_date done [05:59:14]produce_requested_data done [05:59:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164085,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [05:59:14]process_action_free close_receipt [05:59:14]json_value_free [05:59:14]json_value_free done [05:59:14]process_json_proto returns [05:59:14]Send response to host [05:59:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164085,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [05:59:14]free response buf [05:59:14]execute_script done [05:59:14]execute_script returns [05:59:14]free content buf [05:59:14]Sock 7.Close socket [05:59:14]Sock 7.Thread stoped [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07: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:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22: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:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:27:56]accept exits with 9 [06:27:56]New connection [06:27:56]New thread 3067297124 created [06:27:56]Thread 3067153764 joined [06:27:56]Waiting for new connection... [06:27:56] Sock 9.Parse request [06:27:56]Sock 9.Check first char [06:27:56]Sock 9.First char is OK [06:27:56]request: POST /json_proto HTTP/1.0 [06:27:56]Method: POST [06:27:56]URL: /json_proto [06:27:56]Method is POST - this is cgi request [06:27:56]url: /json_proto [06:27:56]query_string will be loaded in cgi processing [06:27:56]execute_cgi json_proto POST (null) [06:27:56]execute_cgi path=json_proto method=POST [06:27:56]POST find Content-Length [06:27:56]Host: 172.17.56.4:8080 [06:27:56]Content-Length: 677 [06:27:56]Content-Type: application/json [06:27:56] [06:27:56]POST finish read [06:27:56]Found Content-Length = 677 [06:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:56]execute_script... [06:27:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:56]POST & json_proto [06:27:56]process_json_proto [06:27:56]json parsed OK: [06:27:56]protocol is kg_v1.0 [06:27:56]action value=close_receipt [06:27:56]process_action close_receipt [06:27:56]cmd_close_receipt [06:27:56]MH_GetDate [06:27:56]Write to MH i2c: F0 00 00 0F 02 00 [06:27:56]Write i2c OK [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: F0 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: F0 09 00 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: F0 09 00 0F 02 00 ED CC 90 66 C9 DC B2 64 73 [06:27:56]GetLastDocTimeStamp 1720763951 [06:27:56]current date 1720765677 [06:27:56]FM_GetShiftState [06:27:56]SAM_PROTO_GetShiftState [06:27:56]wFMCommunicate request_size=4 [06:27:56]MH_SAM_APDU [06:27:56]CAPDU: 80 13 01 00 [06:27:56]Write to MH i2c: E2 08 00 10 02 80 13 01 00 00 00 00 00 8F [06:27:56]Write i2c OK [06:27:56]MH_I2C_Read... [06:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:56]Read from MH i2c: E2 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: E2 0E 00 [06:27:56]MH_I2C_Read... [06:27:56]Read from MH i2c: E2 0E 00 10 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D9 [06:27:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [06:27:56]wFMCommunicate OK [06:27:56]SAM_PROTO_GetShiftState done [06:27:56]FM_GetShiftState done [06:27:56]opened in 1720744654 [06:27:56]opened+sec_in_day 1720831054 [06:27:56]quantity*price = 60009 [06:27:56]sum+1 = 60011 [06:27:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 7 12.07.2024 06:27 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164086 ФПД: 106496826704565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T062757&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164086&fm=106496826704565&tin=02508201610067®Number=0000000000090829&sum=60000 [06:27:57]StoreToDocumentArchive [06:27:57]shift 445 fd 164086 [06:27:57]save to /storage/0445/doc_00164086 [06:27:57]save last doc name /storage/0445/doc_00164086 to /storage/kkm_last_doc_name [06:27:57]save OK [06:27:57]Clear old archive folders... [06:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:27:57]tlvbuf is 00662D10 [06:27:57]SAM_PROTO_ClearQueue [06:27:57]wFMCommunicate request_size=4 [06:27:57]MH_SAM_APDU [06:27:57]CAPDU: 80 09 00 00 [06:27:57]Write to MH i2c: E2 08 00 1D 02 80 09 00 00 00 00 00 00 91 [06:27:57]Write i2c OK [06:27:57]MH_I2C_Read... [06:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:57]Read from MH i2c: E2 [06:27:57]MH_I2C_Read... [06:27:57]Read from MH i2c: E2 03 00 [06:27:57]MH_I2C_Read... [06:27:57]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [06:27:57]RAPDU: 90 00 [06:27:57]wFMCommunicate OK [06:27:57]SAM_PROTO_ClearQueue done [06:27:57]KKMCreateOFDPacket [06:27:57]OFDProtocolAddRootSTLVToBuf [06:27:57]FM_MakeSignedData [06:27:57]FM_MakeSignedData [06:27:57]SAM_PROTO_SignData [06:27:57]wFMCommunicate request_size=4 [06:27:57]MH_SAM_APDU [06:27:57]CAPDU: 80 0D 01 02 [06:27:57]Write to MH i2c: E2 08 00 1E 02 80 0D 01 02 00 00 00 00 99 [06:27:57]Write i2c OK [06:27:57]MH_I2C_Read... [06:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:57]Read from MH i2c: E2 [06:27:57]MH_I2C_Read... [06:27:57]Read from MH i2c: E2 03 00 [06:27:57]MH_I2C_Read... [06:27:57]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [06:27:57]RAPDU: 90 00 [06:27:57]wFMCommunicate OK [06:27:57]wFMCommunicate request_size=255 [06:27:57]MH_SAM_APDU [06:27:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 ED CC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 80 02 00 35 04 06 00 60 [06:27:57]Write to MH i2c: E2 02 01 1F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 ED CC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 80 02 00 35 04 06 00 60 00 00 7F [06:27:57]Write i2c OK [06:27:57]MH_I2C_Read... [06:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:57]Read from MH i2c: E2 [06:27:57]MH_I2C_Read... [06:27:57]Read from MH i2c: E2 03 00 [06:27:57]MH_I2C_Read... [06:27:57]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [06:27:57]RAPDU: 90 00 [06:27:57]wFMCommunicate OK [06:27:57]wFMCommunicate request_size=10 [06:27:57]MH_SAM_APDU [06:27:57]CAPDU: 80 0D 02 02 05 DB B9 86 82 B5 [06:27:57]Write to MH i2c: E2 0D 00 20 02 80 0D 02 02 05 00 DB B9 86 82 B5 00 00 F7 [06:27:57]Write i2c OK [06:27:57]MH_I2C_Read... [06:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:58]Read from MH i2c: E2 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: E2 03 00 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [06:27:58]RAPDU: 90 00 [06:27:58]wFMCommunicate OK [06:27:58]wFMCommunicate request_size=4 [06:27:58]MH_SAM_APDU [06:27:58]CAPDU: 80 0D 03 02 [06:27:58]Write to MH i2c: E2 08 00 21 02 80 0D 03 02 00 00 00 00 9E [06:27:58]Write i2c OK [06:27:58]MH_I2C_Read... [06:27:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:58]Read from MH i2c: E2 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: E2 0B 00 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: E2 0B 00 21 02 00 40 9A 91 E2 82 84 E2 38 90 00 0C [06:27:58]RAPDU: 40 9A 91 E2 82 84 E2 38 90 00 [06:27:58]wFMCommunicate OK [06:27:58]SAM_PROTO_SignData done [06:27:58]FM_MakeSignedData done [06:27:58]CreateOFDProtocolMessage [06:27:58]wFMCommunicate request_size=4 [06:27:58]MH_SAM_APDU [06:27:58]CAPDU: 80 11 00 00 [06:27:58]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [06:27:58]Write i2c OK [06:27:58]MH_I2C_Read... [06:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:58]Read from MH i2c: E2 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: E2 17 00 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [06:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:27:58]wFMCommunicate OK [06:27:58]CreateOFDProtocolMessage done [06:27:58]OFDSenderStorePacket 164086 [06:27:58]StoreOFDPacket docnum=164086 [06:27:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F1 52 07 01 3D 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 ED CC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 80 02 00 35 04 06 00 60 DB B9 86 82 B5 40 9A 91 E2 82 84 E2 38 [06:27:58]CheckFolder [06:27:58]dirname=/storage/ofd_packets [06:27:58]CheckFolder done [06:27:58]ProducePacketName [06:27:58]name=ofd_packets/00164086 [06:27:58]NVStorageSaveData ofd_packets/00164086 [06:27:58]File name is /storage/ofd_packets/00164086 [06:27:58]Write 301 bytes [06:27:58]NVStorageSaveData done [06:27:58]OFDSenderStorePacket done [06:27:58]KKMCreateOFDPacket done [06:27:58]NVStorageSaveData kkm_last_timestamp [06:27:58]File name is /storage/kkm_last_timestamp [06:27:58]Write 4 bytes [06:27:58]NVStorageSaveData done [06:27:58]ExternCall_PrintAddStr [06:27:58]wPrintStart [06:27:58]Write to MH i2c: 01 00 00 23 02 25 [06:27:58]Write i2c OK [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: 01 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: 01 07 00 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [06:27:58]RasterBufferAndPrint [06:27:58]line Счет N : (1)458163 [06:27:58]line ИНН: 02508201610067 [06:27:58]line Контрольно-Кассовый Чек [06:27:58]line ПРОДАЖА [06:27:58]line ТРК (МРК, ГНК) : 22 [06:27:58]line Товар: 2710124130 [06:27:58]line Аи-92-К-5 [06:27:58]line 9.120 * 65.80 [06:27:58]line = 600.10 [06:27:58]line НДС 12% НСП 1% [06:27:58]line > о реализуемом товаре [06:27:58]line ОКРУГЛЕНИЕ: -0.10 [06:27:58]line ИТОГО: 600.00 [06:27:58]line Внесено: 600.00 [06:27:58]line СДАЧА: 0.00 [06:27:58]line НСП 1% : 5.31 [06:27:58]line НДС 12% : 63.73 [06:27:58]line Наличными: 600.00 [06:27:58]line Безнал.: 0.00 [06:27:58]line Место: АЗС № 72 "Партнер Нефть" [06:27:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:27:58]line СНО: Общий режим [06:27:58]line Чек 7 12.07.2024 06:27 [06:27:58]line Смена: 445 ФФД: 1.0 [06:27:58]line ЗНМ: 0300000160 [06:27:58]line РНМ: 0000000000090829 [06:27:58]line Версия ККМ: 001 [06:27:58]line ФМ: 0000000000874718 [06:27:58]line ФД: 164086 [06:27:58]line ФПД: 106496826704565 [06:27:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T062757&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164086&fm=106496826704565&tin=02508201610067®Number=0000000000090829&sum=60000 [06:27:58]OFD Sender: Processing packet 164086 [packets to send 104, broken 103] [06:27:58]ProducePacketName [06:27:58]name=ofd_packets/00164086 [06:27:58]OFD Sender: To server: pG, [06:27:58]CommunicateWithHost lk.salyk.kg:30040 [06:27:58]ConnectInit lk.salyk.kg [06:27:58]written 0, free lines is 4095 [06:27:58]Connected sock=11 [06:27:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F1 52 07 01 3D 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 ED CC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 80 02 00 35 04 06 00 60 DB B9 86 82 B5 40 9A 91 E2 82 84 E2 38 [06:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 35 82 47 00 75 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 34 37 31 38 10 04 04 00 F6 80 02 00 F4 03 04 00 83 73 90 66 B6 04 01 00 00 09 AE 26 33 BB 40 5E B4 [06:27:58]CommunicateWithHost err = 0 [06:27:58]CheckOFDResponse [06:27:58]1017 (14) - 77093643461234 [06:27:58]1041 (16) - 0000000000874718 [06:27:58]1040 (4) - 164086 [06:27:58]1012 (4) - 12.07.2024 00:06 [06:27:58]1206 (1) - 0 [06:27:58]OFD Sender: Remove packet 164086 [06:27:58]ProducePacketName [06:27:58]name=ofd_packets/00164086 [06:27:58]NVStorageDeleteData [06:27:58]Write to MH i2c: 01 00 00 4D 02 4F [06:27:58]Write i2c OK [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: 01 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: 01 07 00 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 F5 0C 57 [06:27:58]RasterBufferAndPrint [06:27:58]line [06:27:58]line [06:27:58]line [06:27:58]line [06:27:58]line [06:27:58]written 0, free lines is 3325 [06:27:58]MH_Cut [06:27:58]Write to MH i2c: D1 01 00 54 02 01 28 [06:27:58]Write i2c OK [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: D1 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: D1 01 00 [06:27:58]MH_I2C_Read... [06:27:58]Read from MH i2c: D1 01 00 54 02 00 27 [06:27:58]Write to MH i2c: 01 00 00 55 02 57 [06:27:58]Write i2c OK [06:27:58]MH_I2C_Read... [06:27:59]OFD Sender: No OFD packet to send [06:27:59]*** Cut start [06:27:59]*** Partial cut [06:27:59]*** CUTSNS_PIN = 1 [06:27:59]*** CUTSNS_PIN = 0 [06:27:59]*** Brake cut motor [06:28:00]Read from MH i2c: 01 [06:28:00]MH_I2C_Read... [06:28:00]*** Stop cut motor [06:28:00]*** Cut end [06:28:00]Read from MH i2c: 01 07 00 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 FF 0F 6C [06:28:00]process_action close_receipt done [06:28:00]requested_data is exist [06:28:00]produce_requested_data [06:28:00]requested_item fm.sn is exist - process it [06:28:00]wFMCommunicate request_size=4 [06:28:00]MH_SAM_APDU [06:28:00]CAPDU: 80 11 00 00 [06:28:00]Write to MH i2c: E2 08 00 56 02 80 11 00 00 00 00 00 00 D2 [06:28:00]Write i2c OK [06:28:00]MH_I2C_Read... [06:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:00]Read from MH i2c: E2 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: E2 17 00 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: E2 17 00 56 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [06:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:28:00]wFMCommunicate OK [06:28:00]requested_item fd.num is exist - process it [06:28:00]SAM_PROTO_GetFieldsCounters [06:28:00]wFMCommunicate request_size=4 [06:28:00]MH_SAM_APDU [06:28:00]CAPDU: 80 13 00 00 [06:28:00]Write to MH i2c: E2 08 00 57 02 80 13 00 00 00 00 00 00 D5 [06:28:00]Write i2c OK [06:28:00]MH_I2C_Read... [06:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:00]Read from MH i2c: E2 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: E2 62 00 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: E2 62 00 57 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [06:28:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:28:00]wFMCommunicate OK [06:28:00]SAM_PROTO_GetFieldsCounters done [06:28:00]requested_item shift.num is exist - process it [06:28:00]requested_item shift.opened is exist - process it [06:28:00]req_shift_opened [06:28:00]FM_GetShiftState [06:28:00]SAM_PROTO_GetShiftState [06:28:00]wFMCommunicate request_size=4 [06:28:00]MH_SAM_APDU [06:28:00]CAPDU: 80 13 01 00 [06:28:00]Write to MH i2c: E2 08 00 58 02 80 13 01 00 00 00 00 00 D7 [06:28:00]Write i2c OK [06:28:00]MH_I2C_Read... [06:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:00]Read from MH i2c: E2 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: E2 0E 00 [06:28:00]MH_I2C_Read... [06:28:00]Read from MH i2c: E2 0E 00 58 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 21 [06:28:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [06:28:00]wFMCommunicate OK [06:28:00]SAM_PROTO_GetShiftState done [06:28:00]FM_GetShiftState done [06:28:00]req_shift_opened done [06:28:00]requested_item shift.open_date is exist - process it [06:28:00]req_shift_open_date [06:28:00]req_shift_open_date done [06:28:00]produce_requested_data done [06:28:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164086,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [06:28:00]process_action_free close_receipt [06:28:00]json_value_free [06:28:00]json_value_free done [06:28:00]process_json_proto returns [06:28:00]Send response to host [06:28:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164086,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [06:28:00]free response buf [06:28:00]execute_script done [06:28:00]execute_script returns [06:28:00]free content buf [06:28:00]Sock 9.Close socket [06:28:00]Sock 9.Thread stoped [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:53]accept exits with 7 [06:31:53]New connection [06:31:53]New thread 3067153764 created [06:31:53]Thread 3067297124 joined [06:31:53]Waiting for new connection... [06:31:53] Sock 7.Parse request [06:31:53]Sock 7.Check first char [06:31:53]Sock 7.First char is OK [06:31:53]request: POST /json_proto HTTP/1.0 [06:31:53]Method: POST [06:31:53]URL: /json_proto [06:31:53]Method is POST - this is cgi request [06:31:53]url: /json_proto [06:31:53]query_string will be loaded in cgi processing [06:31:53]execute_cgi json_proto POST (null) [06:31:53]execute_cgi path=json_proto method=POST [06:31:53]POST find Content-Length [06:31:53]Host: 172.17.56.4:8080 [06:31:53]Content-Length: 682 [06:31:53]Content-Type: application/json [06:31:53] [06:31:53]POST finish read [06:31:53]Found Content-Length = 682 [06:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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" ] } } [06:31:53]execute_script... [06:31: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)458164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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" ] } } [06:31:53]POST & json_proto [06:31:53]process_json_proto [06:31:53]json parsed OK: [06:31:53]protocol is kg_v1.0 [06:31:53]action value=close_receipt [06:31:53]process_action close_receipt [06:31:53]cmd_close_receipt [06:31:53]MH_GetDate [06:31:53]Write to MH i2c: F0 00 00 59 02 4A [06:31:53]Write i2c OK [06:31:53]MH_I2C_Read... [06:31:53]Read from MH i2c: F0 [06:31:53]MH_I2C_Read... [06:31:53]Read from MH i2c: F0 09 00 [06:31:53]MH_I2C_Read... [06:31:53]Read from MH i2c: F0 09 00 59 02 00 DB CD 90 66 C9 DC B2 64 AC [06:31:53]GetLastDocTimeStamp 1720765677 [06:31:53]current date 1720765915 [06:31:53]FM_GetShiftState [06:31:53]SAM_PROTO_GetShiftState [06:31:53]wFMCommunicate request_size=4 [06:31:53]MH_SAM_APDU [06:31:53]CAPDU: 80 13 01 00 [06:31:53]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [06:31:53]Write i2c OK [06:31:53]MH_I2C_Read... [06:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:53]Read from MH i2c: E2 [06:31:53]MH_I2C_Read... [06:31:53]Read from MH i2c: E2 0E 00 [06:31:53]MH_I2C_Read... [06:31:53]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 23 [06:31:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [06:31:53]wFMCommunicate OK [06:31:53]SAM_PROTO_GetShiftState done [06:31:53]FM_GetShiftState done [06:31:53]opened in 1720744654 [06:31:53]opened+sec_in_day 1720831054 [06:31:53]quantity*price = 100016 [06:31:53]sum+1 = 100017 [06:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 8 12.07.2024 06:31 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164087 ФПД: 23169683590488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T063155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164087&fm=23169683590488&tin=02508201610067®Number=0000000000090829&sum=100000 [06:31:55]StoreToDocumentArchive [06:31:55]shift 445 fd 164087 [06:31:55]save to /storage/0445/doc_00164087 [06:31:55]save last doc name /storage/0445/doc_00164087 to /storage/kkm_last_doc_name [06:31:55]save OK [06:31:55]Clear old archive folders... [06:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:31:55]tlvbuf is 005F87B0 [06:31:55]SAM_PROTO_ClearQueue [06:31:55]wFMCommunicate request_size=4 [06:31:55]MH_SAM_APDU [06:31:55]CAPDU: 80 09 00 00 [06:31:55]Write to MH i2c: E2 08 00 67 02 80 09 00 00 00 00 00 00 DB [06:31:55]Write i2c OK [06:31:55]MH_I2C_Read... [06:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:55]Read from MH i2c: E2 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 03 00 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [06:31:55]RAPDU: 90 00 [06:31:55]wFMCommunicate OK [06:31:55]SAM_PROTO_ClearQueue done [06:31:55]KKMCreateOFDPacket [06:31:55]OFDProtocolAddRootSTLVToBuf [06:31:55]FM_MakeSignedData [06:31:55]FM_MakeSignedData [06:31:55]SAM_PROTO_SignData [06:31:55]wFMCommunicate request_size=4 [06:31:55]MH_SAM_APDU [06:31:55]CAPDU: 80 0D 01 02 [06:31:55]Write to MH i2c: E2 08 00 68 02 80 0D 01 02 00 00 00 00 E3 [06:31:55]Write i2c OK [06:31:55]MH_I2C_Read... [06:31:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:55]Read from MH i2c: E2 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 03 00 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [06:31:55]RAPDU: 90 00 [06:31:55]wFMCommunicate OK [06:31:55]wFMCommunicate request_size=255 [06:31:55]MH_SAM_APDU [06:31:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 DB CD 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 80 02 00 35 04 06 00 15 [06:31:55]Write to MH i2c: E2 02 01 69 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 DB CD 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 80 02 00 35 04 06 00 15 00 00 F0 [06:31:55]Write i2c OK [06:31:55]MH_I2C_Read... [06:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:55]Read from MH i2c: E2 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 03 00 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [06:31:55]RAPDU: 90 00 [06:31:55]wFMCommunicate OK [06:31:55]wFMCommunicate request_size=10 [06:31:55]MH_SAM_APDU [06:31:55]CAPDU: 80 0D 02 02 05 12 9C C2 8D 58 [06:31:55]Write to MH i2c: E2 0D 00 6A 02 80 0D 02 02 05 00 12 9C C2 8D 58 00 00 45 [06:31:55]Write i2c OK [06:31:55]MH_I2C_Read... [06:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:55]Read from MH i2c: E2 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 03 00 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [06:31:55]RAPDU: 90 00 [06:31:55]wFMCommunicate OK [06:31:55]wFMCommunicate request_size=4 [06:31:55]MH_SAM_APDU [06:31:55]CAPDU: 80 0D 03 02 [06:31:55]Write to MH i2c: E2 08 00 6B 02 80 0D 03 02 00 00 00 00 E8 [06:31:55]Write i2c OK [06:31:55]MH_I2C_Read... [06:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:55]Read from MH i2c: E2 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 0B 00 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 0B 00 6B 02 00 5E 35 73 64 A6 A2 16 4A 90 00 FB [06:31:55]RAPDU: 5E 35 73 64 A6 A2 16 4A 90 00 [06:31:55]wFMCommunicate OK [06:31:55]SAM_PROTO_SignData done [06:31:55]FM_MakeSignedData done [06:31:55]CreateOFDProtocolMessage [06:31:55]wFMCommunicate request_size=4 [06:31:55]MH_SAM_APDU [06:31:55]CAPDU: 80 11 00 00 [06:31:55]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [06:31:55]Write i2c OK [06:31:55]MH_I2C_Read... [06:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:55]Read from MH i2c: E2 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 17 00 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [06:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:31:55]wFMCommunicate OK [06:31:55]CreateOFDProtocolMessage done [06:31:55]OFDSenderStorePacket 164087 [06:31:55]StoreOFDPacket docnum=164087 [06:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A7 B0 07 01 AD 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 DB CD 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 80 02 00 35 04 06 00 15 12 9C C2 8D 58 5E 35 73 64 A6 A2 16 4A [06:31:55]CheckFolder [06:31:55]dirname=/storage/ofd_packets [06:31:55]CheckFolder done [06:31:55]ProducePacketName [06:31:55]name=ofd_packets/00164087 [06:31:55]NVStorageSaveData ofd_packets/00164087 [06:31:55]File name is /storage/ofd_packets/00164087 [06:31:55]Write 301 bytes [06:31:55]NVStorageSaveData done [06:31:55]OFDSenderStorePacket done [06:31:55]KKMCreateOFDPacket done [06:31:55]NVStorageSaveData kkm_last_timestamp [06:31:55]File name is /storage/kkm_last_timestamp [06:31:55]Write 4 bytes [06:31:55]NVStorageSaveData done [06:31:55]ExternCall_PrintAddStr [06:31:55]wPrintStart [06:31:55]Write to MH i2c: 01 00 00 6D 02 6F [06:31:55]Write i2c OK [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: 01 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: 01 07 00 [06:31:55]MH_I2C_Read... [06:31:55]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [06:31:55]RasterBufferAndPrint [06:31:55]line Счет N : (1)458164 [06:31:55]line ИНН: 02508201610067 [06:31:55]line Контрольно-Кассовый Чек [06:31:55]line ПРОДАЖА [06:31:55]line ТРК (МРК, ГНК) : 12 [06:31:55]line Товар: 2710124130 [06:31:55]line Аи-92-К-5 [06:31:55]line 15.200 * 65.80 [06:31:55]line = 1000.16 [06:31:55]line НДС 12% НСП 1% [06:31:55]line > о реализуемом товаре [06:31:55]line ОКРУГЛЕНИЕ: -0.16 [06:31:55]line ИТОГО: 1000.00 [06:31:55]line Внесено: 1000.00 [06:31:55]line СДАЧА: 0.00 [06:31:55]line НСП 1% : 8.85 [06:31:55]line НДС 12% : 106.21 [06:31:55]line Наличными: 1000.00 [06:31:55]line Безнал.: 0.00 [06:31:55]line Место: АЗС № 72 "Партнер Нефть" [06:31:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:31:55]line СНО: Общий режим [06:31:55]line Чек 8 12.07.2024 06:31 [06:31:55]line Смена: 445 ФФД: 1.0 [06:31:55]line ЗНМ: 0300000160 [06:31:55]line РНМ: 0000000000090829 [06:31:55]line Версия ККМ: 001 [06:31:55]line ФМ: 0000000000874718 [06:31:55]line ФД: 164087 [06:31:55]line ФПД: 23169683590488 [06:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T063155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164087&fm=23169683590488&tin=02508201610067®Number=0000000000090829&sum=100000 [06:31:55]OFD Sender: Processing packet 164087 [packets to send 104, broken 103] [06:31:55]ProducePacketName [06:31:55]name=ofd_packets/00164087 [06:31:55]OFD Sender: To server: pG, [06:31:55]CommunicateWithHost lk.salyk.kg:30040 [06:31:55]ConnectInit lk.salyk.kg [06:31:55]written 0, free lines is 4095 [06:31:56]Connected sock=10 [06:31:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A7 B0 07 01 AD 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 DB CD 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 80 02 00 35 04 06 00 15 12 9C C2 8D 58 5E 35 73 64 A6 A2 16 4A [06:31:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E4 99 47 00 58 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 34 37 31 38 10 04 04 00 F7 80 02 00 F4 03 04 00 70 74 90 66 B6 04 01 00 00 6B 91 E0 A9 DD 14 75 60 [06:31:56]CommunicateWithHost err = 0 [06:31:56]CheckOFDResponse [06:31:56]1017 (14) - 77093643461234 [06:31:56]1041 (16) - 0000000000874718 [06:31:56]1040 (4) - 164087 [06:31:56]1012 (4) - 12.07.2024 00:10 [06:31:56]1206 (1) - 0 [06:31:56]OFD Sender: Remove packet 164087 [06:31:56]ProducePacketName [06:31:56]name=ofd_packets/00164087 [06:31:56]NVStorageDeleteData [06:31:56]Write to MH i2c: 01 00 00 97 02 99 [06:31:56]Write i2c OK [06:31:56]MH_I2C_Read... [06:31:56]Read from MH i2c: 01 [06:31:56]MH_I2C_Read... [06:31:56]Read from MH i2c: 01 07 00 [06:31:56]MH_I2C_Read... [06:31:56]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 05 0D B2 [06:31:56]RasterBufferAndPrint [06:31:56]line [06:31:56]line [06:31:56]line [06:31:56]line [06:31:56]line [06:31:56]written 0, free lines is 3339 [06:31:56]MH_Cut [06:31:56]Write to MH i2c: D1 01 00 9E 02 01 72 [06:31:56]Write i2c OK [06:31:56]MH_I2C_Read... [06:31:56]Read from MH i2c: D1 [06:31:56]MH_I2C_Read... [06:31:56]Read from MH i2c: D1 01 00 [06:31:56]MH_I2C_Read... [06:31:56]Read from MH i2c: D1 01 00 9E 02 00 71 [06:31:56]Write to MH i2c: 01 00 00 9F 02 A1 [06:31:56]Write i2c OK [06:31:56]MH_I2C_Read... [06:31:56]OFD Sender: No OFD packet to send [06:31:57]*** Cut start [06:31:57]*** Partial cut [06:31:57]*** CUTSNS_PIN = 1 [06:31:57]*** CUTSNS_PIN = 0 [06:31:57]*** Brake cut motor [06:31:57]Read from MH i2c: 01 [06:31:57]MH_I2C_Read... [06:31:57]*** Stop cut motor [06:31:57]*** Cut end [06:31:57]Read from MH i2c: 01 07 00 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 FF 0F B6 [06:31:57]process_action close_receipt done [06:31:57]requested_data is exist [06:31:57]produce_requested_data [06:31:57]requested_item fm.sn is exist - process it [06:31:57]wFMCommunicate request_size=4 [06:31:57]MH_SAM_APDU [06:31:57]CAPDU: 80 11 00 00 [06:31:57]Write to MH i2c: E2 08 00 A0 02 80 11 00 00 00 00 00 00 1C [06:31:57]Write i2c OK [06:31:57]MH_I2C_Read... [06:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:57]Read from MH i2c: E2 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: E2 17 00 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: E2 17 00 A0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [06:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:31:57]wFMCommunicate OK [06:31:57]requested_item fd.num is exist - process it [06:31:57]SAM_PROTO_GetFieldsCounters [06:31:57]wFMCommunicate request_size=4 [06:31:57]MH_SAM_APDU [06:31:57]CAPDU: 80 13 00 00 [06:31:57]Write to MH i2c: E2 08 00 A1 02 80 13 00 00 00 00 00 00 1F [06:31:57]Write i2c OK [06:31:57]MH_I2C_Read... [06:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:57]Read from MH i2c: E2 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: E2 62 00 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: E2 62 00 A1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [06:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:31:57]wFMCommunicate OK [06:31:57]SAM_PROTO_GetFieldsCounters done [06:31:57]requested_item shift.num is exist - process it [06:31:57]requested_item shift.opened is exist - process it [06:31:57]req_shift_opened [06:31:57]FM_GetShiftState [06:31:57]SAM_PROTO_GetShiftState [06:31:57]wFMCommunicate request_size=4 [06:31:57]MH_SAM_APDU [06:31:57]CAPDU: 80 13 01 00 [06:31:57]Write to MH i2c: E2 08 00 A2 02 80 13 01 00 00 00 00 00 21 [06:31:57]Write i2c OK [06:31:57]MH_I2C_Read... [06:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:57]Read from MH i2c: E2 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: E2 0E 00 [06:31:57]MH_I2C_Read... [06:31:57]Read from MH i2c: E2 0E 00 A2 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6B [06:31:57]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [06:31:57]wFMCommunicate OK [06:31:57]SAM_PROTO_GetShiftState done [06:31:57]FM_GetShiftState done [06:31:57]req_shift_opened done [06:31:57]requested_item shift.open_date is exist - process it [06:31:57]req_shift_open_date [06:31:57]req_shift_open_date done [06:31:57]produce_requested_data done [06:31:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164087,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [06:31:57]process_action_free close_receipt [06:31:57]json_value_free [06:31:57]json_value_free done [06:31:57]process_json_proto returns [06:31:57]Send response to host [06:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164087,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [06:31:57]free response buf [06:31:57]execute_script done [06:31:57]execute_script returns [06:31:57]free content buf [06:31:57]Sock 7.Close socket [06:31:57]Sock 7.Thread stoped [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:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]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:40]accept exits with 9 [06:45:40]New connection [06:45:40]New thread 3067297124 created [06:45:40]Thread 3067153764 joined [06:45:40]Waiting for new connection... [06:45:40] Sock 9.Parse request [06:45:40]Sock 9.Check first char [06:45:40]Sock 9.First char is OK [06:45:40]request: POST /json_proto HTTP/1.0 [06:45:40]Method: POST [06:45:40]URL: /json_proto [06:45:40]Method is POST - this is cgi request [06:45:40]url: /json_proto [06:45:40]query_string will be loaded in cgi processing [06:45:40]execute_cgi json_proto POST (null) [06:45:40]execute_cgi path=json_proto method=POST [06:45:40]POST find Content-Length [06:45:40]Host: 172.17.56.4:8080 [06:45:40]Content-Length: 677 [06:45:40]Content-Type: application/json [06:45:40] [06:45:40]POST finish read [06:45:40]Found Content-Length = 677 [06:45:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:40]execute_script... [06:45:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:40]POST & json_proto [06:45:40]process_json_proto [06:45:40]json parsed OK: [06:45:40]protocol is kg_v1.0 [06:45:40]action value=close_receipt [06:45:40]process_action close_receipt [06:45:40]cmd_close_receipt [06:45:40]MH_GetDate [06:45:40]Write to MH i2c: F0 00 00 A3 02 94 [06:45:40]Write i2c OK [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: F0 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: F0 09 00 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: F0 09 00 A3 02 00 15 D1 90 66 C9 DC B2 64 34 [06:45:40]GetLastDocTimeStamp 1720765915 [06:45:40]current date 1720766741 [06:45:40]FM_GetShiftState [06:45:40]SAM_PROTO_GetShiftState [06:45:40]wFMCommunicate request_size=4 [06:45:40]MH_SAM_APDU [06:45:40]CAPDU: 80 13 01 00 [06:45:40]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [06:45:40]Write i2c OK [06:45:40]MH_I2C_Read... [06:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:40]Read from MH i2c: E2 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 0E 00 [06:45:40]MH_I2C_Read... [06:45:40]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6D [06:45:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [06:45:40]wFMCommunicate OK [06:45:40]SAM_PROTO_GetShiftState done [06:45:40]FM_GetShiftState done [06:45:40]opened in 1720744654 [06:45:40]opened+sec_in_day 1720831054 [06:45:40]quantity*price = 40006 [06:45:40]sum+1 = 40007 [06:45:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 9 12.07.2024 06:45 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164088 ФПД: 141662729511297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T064541&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164088&fm=141662729511297&tin=02508201610067®Number=0000000000090829&sum=40000 [06:45:41]StoreToDocumentArchive [06:45:41]shift 445 fd 164088 [06:45:41]save to /storage/0445/doc_00164088 [06:45:41]save last doc name /storage/0445/doc_00164088 to /storage/kkm_last_doc_name [06:45:41]save OK [06:45:41]Clear old archive folders... [06:45:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:45:41]tlvbuf is 005F6890 [06:45:41]SAM_PROTO_ClearQueue [06:45:41]wFMCommunicate request_size=4 [06:45:41]MH_SAM_APDU [06:45:41]CAPDU: 80 09 00 00 [06:45:41]Write to MH i2c: E2 08 00 B1 02 80 09 00 00 00 00 00 00 25 [06:45:41]Write i2c OK [06:45:41]MH_I2C_Read... [06:45:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:41]Read from MH i2c: E2 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 03 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [06:45:41]RAPDU: 90 00 [06:45:41]wFMCommunicate OK [06:45:41]SAM_PROTO_ClearQueue done [06:45:41]KKMCreateOFDPacket [06:45:41]OFDProtocolAddRootSTLVToBuf [06:45:41]FM_MakeSignedData [06:45:41]FM_MakeSignedData [06:45:41]SAM_PROTO_SignData [06:45:41]wFMCommunicate request_size=4 [06:45:41]MH_SAM_APDU [06:45:41]CAPDU: 80 0D 01 02 [06:45:41]Write to MH i2c: E2 08 00 B2 02 80 0D 01 02 00 00 00 00 2D [06:45:41]Write i2c OK [06:45:41]MH_I2C_Read... [06:45:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:41]Read from MH i2c: E2 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 03 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [06:45:41]RAPDU: 90 00 [06:45:41]wFMCommunicate OK [06:45:41]wFMCommunicate request_size=255 [06:45:41]MH_SAM_APDU [06:45:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 09 00 00 00 F4 03 04 00 15 D1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 80 02 00 35 04 06 00 80 [06:45:41]Write to MH i2c: E2 02 01 B3 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 09 00 00 00 F4 03 04 00 15 D1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 80 02 00 35 04 06 00 80 00 00 23 [06:45:41]Write i2c OK [06:45:41]MH_I2C_Read... [06:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:41]Read from MH i2c: E2 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 03 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [06:45:41]RAPDU: 90 00 [06:45:41]wFMCommunicate OK [06:45:41]wFMCommunicate request_size=10 [06:45:41]MH_SAM_APDU [06:45:41]CAPDU: 80 0D 02 02 05 D7 6C AB A1 81 [06:45:41]Write to MH i2c: E2 0D 00 B4 02 80 0D 02 02 05 00 D7 6C AB A1 81 00 00 4A [06:45:41]Write i2c OK [06:45:41]MH_I2C_Read... [06:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:41]Read from MH i2c: E2 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 03 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [06:45:41]RAPDU: 90 00 [06:45:41]wFMCommunicate OK [06:45:41]wFMCommunicate request_size=4 [06:45:41]MH_SAM_APDU [06:45:41]CAPDU: 80 0D 03 02 [06:45:41]Write to MH i2c: E2 08 00 B5 02 80 0D 03 02 00 00 00 00 32 [06:45:41]Write i2c OK [06:45:41]MH_I2C_Read... [06:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:41]Read from MH i2c: E2 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 0B 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 0B 00 B5 02 00 DE 2B 88 F8 68 1D 00 86 90 00 C7 [06:45:41]RAPDU: DE 2B 88 F8 68 1D 00 86 90 00 [06:45:41]wFMCommunicate OK [06:45:41]SAM_PROTO_SignData done [06:45:41]FM_MakeSignedData done [06:45:41]CreateOFDProtocolMessage [06:45:41]wFMCommunicate request_size=4 [06:45:41]MH_SAM_APDU [06:45:41]CAPDU: 80 11 00 00 [06:45:41]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [06:45:41]Write i2c OK [06:45:41]MH_I2C_Read... [06:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:41]Read from MH i2c: E2 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 17 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 88 [06:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:45:41]wFMCommunicate OK [06:45:41]CreateOFDProtocolMessage done [06:45:41]OFDSenderStorePacket 164088 [06:45:41]StoreOFDPacket docnum=164088 [06:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 C9 07 01 40 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 09 00 00 00 F4 03 04 00 15 D1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 80 02 00 35 04 06 00 80 D7 6C AB A1 81 DE 2B 88 F8 68 1D 00 86 [06:45:41]CheckFolder [06:45:41]dirname=/storage/ofd_packets [06:45:41]CheckFolder done [06:45:41]ProducePacketName [06:45:41]name=ofd_packets/00164088 [06:45:41]NVStorageSaveData ofd_packets/00164088 [06:45:41]File name is /storage/ofd_packets/00164088 [06:45:41]Write 301 bytes [06:45:41]NVStorageSaveData done [06:45:41]OFDSenderStorePacket done [06:45:41]KKMCreateOFDPacket done [06:45:41]NVStorageSaveData kkm_last_timestamp [06:45:41]File name is /storage/kkm_last_timestamp [06:45:41]Write 4 bytes [06:45:41]NVStorageSaveData done [06:45:41]ExternCall_PrintAddStr [06:45:41]wPrintStart [06:45:41]Write to MH i2c: 01 00 00 B7 02 B9 [06:45:41]Write i2c OK [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: 01 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: 01 07 00 [06:45:41]MH_I2C_Read... [06:45:41]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [06:45:41]RasterBufferAndPrint [06:45:41]line Счет N : (1)458165 [06:45:41]line ИНН: 02508201610067 [06:45:41]line Контрольно-Кассовый Чек [06:45:41]line ПРОДАЖА [06:45:41]line ТРК (МРК, ГНК) : 22 [06:45:41]line Товар: 2710124130 [06:45:41]line Аи-92-К-5 [06:45:41]line 6.080 * 65.80 [06:45:41]line = 400.06 [06:45:41]line НДС 12% НСП 1% [06:45:41]line > о реализуемом товаре [06:45:41]line ОКРУГЛЕНИЕ: -0.06 [06:45:41]line ИТОГО: 400.00 [06:45:41]line Внесено: 400.00 [06:45:41]line СДАЧА: 0.00 [06:45:41]line НСП 1% : 3.54 [06:45:41]line НДС 12% : 42.48 [06:45:41]line Наличными: 400.00 [06:45:41]line Безнал.: 0.00 [06:45:41]line Место: АЗС № 72 "Партнер Нефть" [06:45:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:45:41]line СНО: Общий режим [06:45:41]line Чек 9 12.07.2024 06:45 [06:45:41]line Смена: 445 ФФД: 1.0 [06:45:41]line ЗНМ: 0300000160 [06:45:41]line РНМ: 0000000000090829 [06:45:41]line Версия ККМ: 001 [06:45:41]line ФМ: 0000000000874718 [06:45:41]line ФД: 164088 [06:45:41]line ФПД: 141662729511297 [06:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T064541&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164088&fm=141662729511297&tin=02508201610067®Number=0000000000090829&sum=40000 [06:45:42]written 0, free lines is 4095 [06:45:42]OFD Sender: Processing packet 164088 [packets to send 104, broken 103] [06:45:42]ProducePacketName [06:45:42]name=ofd_packets/00164088 [06:45:42]OFD Sender: To server: pG, [06:45:42]CommunicateWithHost lk.salyk.kg:30040 [06:45:42]ConnectInit lk.salyk.kg [06:45:42]Connected sock=10 [06:45:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 C9 07 01 40 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 09 00 00 00 F4 03 04 00 15 D1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 80 02 00 35 04 06 00 80 D7 6C AB A1 81 DE 2B 88 F8 68 1D 00 86 [06:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BC 79 47 00 1B 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 80 02 00 F4 03 04 00 AA 77 90 66 B6 04 01 00 00 02 6A 67 34 43 53 42 B8 [06:45:42]CommunicateWithHost err = 0 [06:45:42]CheckOFDResponse [06:45:42]1017 (14) - 77093643461234 [06:45:42]1041 (16) - 0000000000874718 [06:45:42]1040 (4) - 164088 [06:45:42]1012 (4) - 12.07.2024 00:24 [06:45:42]1206 (1) - 0 [06:45:42]OFD Sender: Remove packet 164088 [06:45:42]ProducePacketName [06:45:42]name=ofd_packets/00164088 [06:45:42]NVStorageDeleteData [06:45:42]Write to MH i2c: 01 00 00 E1 02 E3 [06:45:42]Write i2c OK [06:45:42]MH_I2C_Read... [06:45:42]Read from MH i2c: 01 [06:45:42]MH_I2C_Read... [06:45:42]Read from MH i2c: 01 07 00 [06:45:42]MH_I2C_Read... [06:45:42]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 F7 0C ED [06:45:42]RasterBufferAndPrint [06:45:42]line [06:45:42]line [06:45:42]line [06:45:42]line [06:45:42]line [06:45:42]written 0, free lines is 3326 [06:45:42]MH_Cut [06:45:42]Write to MH i2c: D1 01 00 E8 02 01 BC [06:45:42]Write i2c OK [06:45:42]MH_I2C_Read... [06:45:42]Read from MH i2c: D1 [06:45:42]MH_I2C_Read... [06:45:42]Read from MH i2c: D1 01 00 [06:45:42]MH_I2C_Read... [06:45:42]Read from MH i2c: D1 01 00 E8 02 00 BB [06:45:42]Write to MH i2c: 01 00 00 E9 02 EB [06:45:42]Write i2c OK [06:45:42]MH_I2C_Read... [06:45:43]OFD Sender: No OFD packet to send [06:45:43]*** Cut start [06:45:43]*** Partial cut [06:45:43]*** CUTSNS_PIN = 1 [06:45:43]*** CUTSNS_PIN = 0 [06:45:43]*** Brake cut motor [06:45:43]Read from MH i2c: 01 [06:45:43]MH_I2C_Read... [06:45:43]*** Stop cut motor [06:45:43]*** Cut end [06:45:43]Read from MH i2c: 01 07 00 [06:45:43]MH_I2C_Read... [06:45:43]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 FF 0F 00 [06:45:43]process_action close_receipt done [06:45:43]requested_data is exist [06:45:43]produce_requested_data [06:45:43]requested_item fm.sn is exist - process it [06:45:43]wFMCommunicate request_size=4 [06:45:43]MH_SAM_APDU [06:45:43]CAPDU: 80 11 00 00 [06:45:43]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [06:45:43]Write i2c OK [06:45:43]MH_I2C_Read... [06:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:44]Read from MH i2c: E2 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 17 00 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [06:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:45:44]wFMCommunicate OK [06:45:44]requested_item fd.num is exist - process it [06:45:44]SAM_PROTO_GetFieldsCounters [06:45:44]wFMCommunicate request_size=4 [06:45:44]MH_SAM_APDU [06:45:44]CAPDU: 80 13 00 00 [06:45:44]Write to MH i2c: E2 08 00 EB 02 80 13 00 00 00 00 00 00 69 [06:45:44]Write i2c OK [06:45:44]MH_I2C_Read... [06:45:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:45:44]Read from MH i2c: E2 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 62 00 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 62 00 EB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [06:45:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:45:44]wFMCommunicate OK [06:45:44]SAM_PROTO_GetFieldsCounters done [06:45:44]requested_item shift.num is exist - process it [06:45:44]requested_item shift.opened is exist - process it [06:45:44]req_shift_opened [06:45:44]FM_GetShiftState [06:45:44]SAM_PROTO_GetShiftState [06:45:44]wFMCommunicate request_size=4 [06:45:44]MH_SAM_APDU [06:45:44]CAPDU: 80 13 01 00 [06:45:44]Write to MH i2c: E2 08 00 EC 02 80 13 01 00 00 00 00 00 6B [06:45:44]Write i2c OK [06:45:44]MH_I2C_Read... [06:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:44]Read from MH i2c: E2 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 0E 00 [06:45:44]MH_I2C_Read... [06:45:44]Read from MH i2c: E2 0E 00 EC 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B5 [06:45:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [06:45:44]wFMCommunicate OK [06:45:44]SAM_PROTO_GetShiftState done [06:45:44]FM_GetShiftState done [06:45:44]req_shift_opened done [06:45:44]requested_item shift.open_date is exist - process it [06:45:44]req_shift_open_date [06:45:44]req_shift_open_date done [06:45:44]produce_requested_data done [06:45:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164088,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [06:45:44]process_action_free close_receipt [06:45:44]json_value_free [06:45:44]json_value_free done [06:45:44]process_json_proto returns [06:45:44]Send response to host [06:45:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164088,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [06:45:44]free response buf [06:45:44]execute_script done [06:45:44]execute_script returns [06:45:44]free content buf [06:45:44]Sock 9.Close socket [06:45:44]Sock 9.Thread stoped [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:24]accept exits with 7 [07:00:24]New connection [07:00:24]New thread 3067153764 created [07:00:24]Thread 3067297124 joined [07:00:24]Waiting for new connection... [07:00:24] Sock 7.Parse request [07:00:24]Sock 7.Check first char [07:00:24]Sock 7.First char is OK [07:00:24]request: POST /json_proto HTTP/1.0 [07:00:24]Method: POST [07:00:24]URL: /json_proto [07:00:24]Method is POST - this is cgi request [07:00:24]url: /json_proto [07:00:24]query_string will be loaded in cgi processing [07:00:24]execute_cgi json_proto POST (null) [07:00:24]execute_cgi path=json_proto method=POST [07:00:24]POST find Content-Length [07:00:24]Host: 172.17.56.4:8080 [07:00:24]Content-Length: 682 [07:00:24]Content-Type: application/json [07:00:24] [07:00:24]POST finish read [07:00:24]Found Content-Length = 682 [07:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 24.320, "sum" : 1600.26, "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" ] } } [07:00:24]execute_script... [07:00: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)458166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 24.320, "sum" : 1600.26, "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" ] } } [07:00:24]POST & json_proto [07:00:24]process_json_proto [07:00:24]json parsed OK: [07:00:24]protocol is kg_v1.0 [07:00:24]action value=close_receipt [07:00:24]process_action close_receipt [07:00:24]cmd_close_receipt [07:00:24]MH_GetDate [07:00:24]Write to MH i2c: F0 00 00 ED 02 DE [07:00:24]Write i2c OK [07:00:24]MH_I2C_Read... [07:00:24]Read from MH i2c: F0 [07:00:24]MH_I2C_Read... [07:00:24]Read from MH i2c: F0 09 00 [07:00:24]MH_I2C_Read... [07:00:24]Read from MH i2c: F0 09 00 ED 02 00 89 D4 90 66 C9 DC B2 64 F5 [07:00:24]GetLastDocTimeStamp 1720766741 [07:00:24]current date 1720767625 [07:00:24]FM_GetShiftState [07:00:24]SAM_PROTO_GetShiftState [07:00:24]wFMCommunicate request_size=4 [07:00:24]MH_SAM_APDU [07:00:24]CAPDU: 80 13 01 00 [07:00:24]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [07:00:24]Write i2c OK [07:00:24]MH_I2C_Read... [07:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:24]Read from MH i2c: E2 [07:00:24]MH_I2C_Read... [07:00:24]Read from MH i2c: E2 0E 00 [07:00:24]MH_I2C_Read... [07:00:24]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B7 [07:00:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:00:24]wFMCommunicate OK [07:00:24]SAM_PROTO_GetShiftState done [07:00:24]FM_GetShiftState done [07:00:24]opened in 1720744654 [07:00:24]opened+sec_in_day 1720831054 [07:00:24]quantity*price = 160025 [07:00:24]sum+1 = 160027 [07:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 10 12.07.2024 07:00 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164089 ФПД: 225215703294685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T070025&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164089&fm=225215703294685&tin=02508201610067®Number=0000000000090829&sum=160000 [07:00:25]StoreToDocumentArchive [07:00:25]shift 445 fd 164089 [07:00:25]save to /storage/0445/doc_00164089 [07:00:25]save last doc name /storage/0445/doc_00164089 to /storage/kkm_last_doc_name [07:00:25]save OK [07:00:25]Clear old archive folders... [07:00:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:00:25]tlvbuf is 006661C0 [07:00:25]SAM_PROTO_ClearQueue [07:00:25]wFMCommunicate request_size=4 [07:00:25]MH_SAM_APDU [07:00:25]CAPDU: 80 09 00 00 [07:00:25]Write to MH i2c: E2 08 00 FB 02 80 09 00 00 00 00 00 00 6F [07:00:25]Write i2c OK [07:00:25]MH_I2C_Read... [07:00:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:00:25]Read from MH i2c: E2 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 03 00 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [07:00:25]RAPDU: 90 00 [07:00:25]wFMCommunicate OK [07:00:25]SAM_PROTO_ClearQueue done [07:00:25]KKMCreateOFDPacket [07:00:25]OFDProtocolAddRootSTLVToBuf [07:00:25]FM_MakeSignedData [07:00:25]FM_MakeSignedData [07:00:25]SAM_PROTO_SignData [07:00:25]wFMCommunicate request_size=4 [07:00:25]MH_SAM_APDU [07:00:25]CAPDU: 80 0D 01 02 [07:00:25]Write to MH i2c: E2 08 00 FC 02 80 0D 01 02 00 00 00 00 77 [07:00:25]Write i2c OK [07:00:25]MH_I2C_Read... [07:00:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:00:25]Read from MH i2c: E2 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 03 00 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [07:00:25]RAPDU: 90 00 [07:00:25]wFMCommunicate OK [07:00:25]wFMCommunicate request_size=255 [07:00:25]MH_SAM_APDU [07:00: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 00 5F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1A 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 62 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 0A 00 00 00 F4 03 04 00 89 D4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 80 02 00 35 04 06 00 CC [07:00:25]Write to MH i2c: E2 02 01 FD 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1A 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 62 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 0A 00 00 00 F4 03 04 00 89 D4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 80 02 00 35 04 06 00 CC 00 00 B9 [07:00:25]Write i2c OK [07:00:25]MH_I2C_Read... [07:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:25]Read from MH i2c: E2 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 03 00 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [07:00:25]RAPDU: 90 00 [07:00:25]wFMCommunicate OK [07:00:25]wFMCommunicate request_size=10 [07:00:25]MH_SAM_APDU [07:00:25]CAPDU: 80 0D 02 02 05 D5 1D FE 22 DD [07:00:25]Write to MH i2c: E2 0D 00 FE 02 80 0D 02 02 05 00 D5 1D FE 22 DD 00 00 73 [07:00:25]Write i2c OK [07:00:25]MH_I2C_Read... [07:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:25]Read from MH i2c: E2 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 03 00 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [07:00:25]RAPDU: 90 00 [07:00:25]wFMCommunicate OK [07:00:25]wFMCommunicate request_size=4 [07:00:25]MH_SAM_APDU [07:00:25]CAPDU: 80 0D 03 02 [07:00:25]Write to MH i2c: E2 08 00 FF 02 80 0D 03 02 00 00 00 00 7C [07:00:25]Write i2c OK [07:00:25]MH_I2C_Read... [07:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:00:25]Read from MH i2c: E2 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 0B 00 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 0B 00 FF 02 00 D6 62 3F 51 A5 8B 42 18 90 00 CF [07:00:25]RAPDU: D6 62 3F 51 A5 8B 42 18 90 00 [07:00:25]wFMCommunicate OK [07:00:25]SAM_PROTO_SignData done [07:00:25]FM_MakeSignedData done [07:00:25]CreateOFDProtocolMessage [07:00:25]wFMCommunicate request_size=4 [07:00:25]MH_SAM_APDU [07:00:25]CAPDU: 80 11 00 00 [07:00:25]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [07:00:25]Write i2c OK [07:00:25]MH_I2C_Read... [07:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:25]Read from MH i2c: E2 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 17 00 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [07:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:00:25]wFMCommunicate OK [07:00:25]CreateOFDProtocolMessage done [07:00:25]OFDSenderStorePacket 164089 [07:00:25]StoreOFDPacket docnum=164089 [07:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC 54 07 01 F0 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1A 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 62 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 0A 00 00 00 F4 03 04 00 89 D4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 80 02 00 35 04 06 00 CC D5 1D FE 22 DD D6 62 3F 51 A5 8B 42 18 [07:00:25]CheckFolder [07:00:25]dirname=/storage/ofd_packets [07:00:25]CheckFolder done [07:00:25]ProducePacketName [07:00:25]name=ofd_packets/00164089 [07:00:25]NVStorageSaveData ofd_packets/00164089 [07:00:25]File name is /storage/ofd_packets/00164089 [07:00:25]Write 301 bytes [07:00:25]NVStorageSaveData done [07:00:25]OFDSenderStorePacket done [07:00:25]KKMCreateOFDPacket done [07:00:25]NVStorageSaveData kkm_last_timestamp [07:00:25]File name is /storage/kkm_last_timestamp [07:00:25]Write 4 bytes [07:00:25]NVStorageSaveData done [07:00:25]ExternCall_PrintAddStr [07:00:25]wPrintStart [07:00:25]Write to MH i2c: 01 00 00 01 03 04 [07:00:25]Write i2c OK [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: 01 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: 01 07 00 [07:00:25]MH_I2C_Read... [07:00:25]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [07:00:25]RasterBufferAndPrint [07:00:25]line Счет N : (1)458166 [07:00:25]line ИНН: 02508201610067 [07:00:25]line Контрольно-Кассовый Чек [07:00:25]line ПРОДАЖА [07:00:25]line ТРК (МРК, ГНК) : 22 [07:00:25]line Товар: 2710124130 [07:00:25]line Аи-92-К-5 [07:00:25]line 24.320 * 65.80 [07:00:25]line = 1600.26 [07:00:25]line НДС 12% НСП 1% [07:00:25]line > о реализуемом товаре [07:00:25]line ОКРУГЛЕНИЕ: -0.26 [07:00:25]line ИТОГО: 1600.00 [07:00:25]line Внесено: 1600.00 [07:00:25]line СДАЧА: 0.00 [07:00:25]line НСП 1% : 14.16 [07:00:25]line НДС 12% : 169.94 [07:00:25]line Наличными: 1600.00 [07:00:25]line Безнал.: 0.00 [07:00:25]line Место: АЗС № 72 "Партнер Нефть" [07:00:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:00:25]line СНО: Общий режим [07:00:25]line Чек 10 12.07.2024 07:00 [07:00:25]line Смена: 445 ФФД: 1.0 [07:00:25]line ЗНМ: 0300000160 [07:00:25]line РНМ: 0000000000090829 [07:00:25]line Версия ККМ: 001 [07:00:25]line ФМ: 0000000000874718 [07:00:25]line ФД: 164089 [07:00:25]line ФПД: 225215703294685 [07:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T070025&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164089&fm=225215703294685&tin=02508201610067®Number=0000000000090829&sum=160000 [07:00:26]written 0, free lines is 4095 [07:00:26]OFD Sender: Processing packet 164089 [packets to send 104, broken 103] [07:00:26]ProducePacketName [07:00:26]name=ofd_packets/00164089 [07:00:26]OFD Sender: To server: pG, [07:00:26]CommunicateWithHost lk.salyk.kg:30040 [07:00:26]ConnectInit lk.salyk.kg [07:00:26]Connected sock=10 [07:00:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC 54 07 01 F0 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1A 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 62 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 0A 00 00 00 F4 03 04 00 89 D4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 80 02 00 35 04 06 00 CC D5 1D FE 22 DD D6 62 3F 51 A5 8B 42 18 [07:00:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 90 F9 47 00 03 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 80 02 00 F4 03 04 00 1E 7B 90 66 B6 04 01 00 00 45 4D 54 EF A5 2D 84 2A [07:00:26]CommunicateWithHost err = 0 [07:00:26]CheckOFDResponse [07:00:26]1017 (14) - 77093643461234 [07:00:26]1041 (16) - 0000000000874718 [07:00:26]1040 (4) - 164089 [07:00:26]1012 (4) - 12.07.2024 00:38 [07:00:26]1206 (1) - 0 [07:00:26]OFD Sender: Remove packet 164089 [07:00:26]ProducePacketName [07:00:26]name=ofd_packets/00164089 [07:00:26]NVStorageDeleteData [07:00:26]Write to MH i2c: 01 00 00 2B 03 2E [07:00:26]Write i2c OK [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: 01 [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: 01 07 00 [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: 01 07 00 2B 03 00 00 00 00 00 FD 0C 3E [07:00:26]RasterBufferAndPrint [07:00:26]line [07:00:26]line [07:00:26]line [07:00:26]line [07:00:26]line [07:00:26]written 0, free lines is 3331 [07:00:26]MH_Cut [07:00:26]Write to MH i2c: D1 01 00 32 03 01 07 [07:00:26]Write i2c OK [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: D1 [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: D1 01 00 [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: D1 01 00 32 03 00 06 [07:00:26]Write to MH i2c: 01 00 00 33 03 36 [07:00:26]Write i2c OK [07:00:26]MH_I2C_Read... [07:00:27]OFD Sender: No OFD packet to send [07:00:27]*** Cut start [07:00:27]*** Partial cut [07:00:27]*** CUTSNS_PIN = 1 [07:00:27]*** CUTSNS_PIN = 0 [07:00:27]*** Brake cut motor [07:00:27]Read from MH i2c: 01 [07:00:27]MH_I2C_Read... [07:00:27]*** Stop cut motor [07:00:27]*** Cut end [07:00:27]Read from MH i2c: 01 07 00 [07:00:27]MH_I2C_Read... [07:00:27]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 FF 0F 4B [07:00:27]process_action close_receipt done [07:00:27]requested_data is exist [07:00:27]produce_requested_data [07:00:27]requested_item fm.sn is exist - process it [07:00:27]wFMCommunicate request_size=4 [07:00:27]MH_SAM_APDU [07:00:27]CAPDU: 80 11 00 00 [07:00:27]Write to MH i2c: E2 08 00 34 03 80 11 00 00 00 00 00 00 B1 [07:00:27]Write i2c OK [07:00:27]MH_I2C_Read... [07:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:28]Read from MH i2c: E2 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 17 00 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 17 00 34 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [07:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:00:28]wFMCommunicate OK [07:00:28]requested_item fd.num is exist - process it [07:00:28]SAM_PROTO_GetFieldsCounters [07:00:28]wFMCommunicate request_size=4 [07:00:28]MH_SAM_APDU [07:00:28]CAPDU: 80 13 00 00 [07:00:28]Write to MH i2c: E2 08 00 35 03 80 13 00 00 00 00 00 00 B4 [07:00:28]Write i2c OK [07:00:28]MH_I2C_Read... [07:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:28]Read from MH i2c: E2 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 62 00 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 62 00 35 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [07:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:00:28]wFMCommunicate OK [07:00:28]SAM_PROTO_GetFieldsCounters done [07:00:28]requested_item shift.num is exist - process it [07:00:28]requested_item shift.opened is exist - process it [07:00:28]req_shift_opened [07:00:28]FM_GetShiftState [07:00:28]SAM_PROTO_GetShiftState [07:00:28]wFMCommunicate request_size=4 [07:00:28]MH_SAM_APDU [07:00:28]CAPDU: 80 13 01 00 [07:00:28]Write to MH i2c: E2 08 00 36 03 80 13 01 00 00 00 00 00 B6 [07:00:28]Write i2c OK [07:00:28]MH_I2C_Read... [07:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:28]Read from MH i2c: E2 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 0E 00 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 0E 00 36 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 00 [07:00:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:00:28]wFMCommunicate OK [07:00:28]SAM_PROTO_GetShiftState done [07:00:28]FM_GetShiftState done [07:00:28]req_shift_opened done [07:00:28]requested_item shift.open_date is exist - process it [07:00:28]req_shift_open_date [07:00:28]req_shift_open_date done [07:00:28]produce_requested_data done [07:00:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164089,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [07:00:28]process_action_free close_receipt [07:00:28]json_value_free [07:00:28]json_value_free done [07:00:28]process_json_proto returns [07:00:28]Send response to host [07:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164089,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [07:00:28]free response buf [07:00:28]execute_script done [07:00:28]execute_script returns [07:00:28]free content buf [07:00:28]Sock 7.Close socket [07:00:28]Sock 7.Thread stoped [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:14]accept exits with 9 [07:04:14]New connection [07:04:14]New thread 3067297124 created [07:04:14]Thread 3067153764 joined [07:04:14]Waiting for new connection... [07:04:14] Sock 9.Parse request [07:04:14]Sock 9.Check first char [07:04:14]Sock 9.First char is OK [07:04:14]request: POST /json_proto HTTP/1.0 [07:04:14]Method: POST [07:04:14]URL: /json_proto [07:04:14]Method is POST - this is cgi request [07:04:14]url: /json_proto [07:04:14]query_string will be loaded in cgi processing [07:04:14]execute_cgi json_proto POST (null) [07:04:14]execute_cgi path=json_proto method=POST [07:04:14]POST find Content-Length [07:04:14]Host: 172.17.56.4:8080 [07:04:14]Content-Length: 679 [07:04:14]Content-Type: application/json [07:04:14] [07:04:14]POST finish read [07:04:14]Found Content-Length = 679 [07:04:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:14]execute_script... [07:04:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:14]POST & json_proto [07:04:14]process_json_proto [07:04:14]json parsed OK: [07:04:14]protocol is kg_v1.0 [07:04:14]action value=close_receipt [07:04:14]process_action close_receipt [07:04:14]cmd_close_receipt [07:04:14]MH_GetDate [07:04:14]Write to MH i2c: F0 00 00 37 03 29 [07:04:14]Write i2c OK [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: F0 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: F0 09 00 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: F0 09 00 37 03 00 70 D5 90 66 C9 DC B2 64 28 [07:04:14]GetLastDocTimeStamp 1720767625 [07:04:14]current date 1720767856 [07:04:14]FM_GetShiftState [07:04:14]SAM_PROTO_GetShiftState [07:04:14]wFMCommunicate request_size=4 [07:04:14]MH_SAM_APDU [07:04:14]CAPDU: 80 13 01 00 [07:04:14]Write to MH i2c: E2 08 00 38 03 80 13 01 00 00 00 00 00 B8 [07:04:14]Write i2c OK [07:04:14]MH_I2C_Read... [07:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:14]Read from MH i2c: E2 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 0E 00 [07:04:14]MH_I2C_Read... [07:04:14]Read from MH i2c: E2 0E 00 38 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 02 [07:04:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:04:14]wFMCommunicate OK [07:04:14]SAM_PROTO_GetShiftState done [07:04:14]FM_GetShiftState done [07:04:14]opened in 1720744654 [07:04:14]opened+sec_in_day 1720831054 [07:04:14]quantity*price = 100012 [07:04:14]sum+1 = 100014 [07:04:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 11 12.07.2024 07:04 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164090 ФПД: 263423934724427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T070416&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164090&fm=263423934724427&tin=02508201610067®Number=0000000000090829&sum=100000 [07:04:15]StoreToDocumentArchive [07:04:15]shift 445 fd 164090 [07:04:15]save to /storage/0445/doc_00164090 [07:04:15]save last doc name /storage/0445/doc_00164090 to /storage/kkm_last_doc_name [07:04:15]save OK [07:04:15]Clear old archive folders... [07:04:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:04:15]tlvbuf is 00600F60 [07:04:15]SAM_PROTO_ClearQueue [07:04:15]wFMCommunicate request_size=4 [07:04:15]MH_SAM_APDU [07:04:15]CAPDU: 80 09 00 00 [07:04:15]Write to MH i2c: E2 08 00 45 03 80 09 00 00 00 00 00 00 BA [07:04:15]Write i2c OK [07:04:15]MH_I2C_Read... [07:04:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:04:15]Read from MH i2c: E2 [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: E2 03 00 [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [07:04:15]RAPDU: 90 00 [07:04:15]wFMCommunicate OK [07:04:15]SAM_PROTO_ClearQueue done [07:04:15]KKMCreateOFDPacket [07:04:15]OFDProtocolAddRootSTLVToBuf [07:04:15]FM_MakeSignedData [07:04:15]FM_MakeSignedData [07:04:15]SAM_PROTO_SignData [07:04:15]wFMCommunicate request_size=4 [07:04:15]MH_SAM_APDU [07:04:15]CAPDU: 80 0D 01 02 [07:04:15]Write to MH i2c: E2 08 00 46 03 80 0D 01 02 00 00 00 00 C2 [07:04:15]Write i2c OK [07:04:15]MH_I2C_Read... [07:04:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:04:15]Read from MH i2c: E2 [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: E2 03 00 [07:04:15]MH_I2C_Read... [07:04:15]Read from MH i2c: E2 03 00 46 03 00 90 00 BD [07:04:15]RAPDU: 90 00 [07:04:15]wFMCommunicate OK [07:04:15]wFMCommunicate request_size=255 [07:04:15]MH_SAM_APDU [07:04: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 70 D5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 80 02 00 35 04 06 00 EF 95 2A 0D [07:04:15]Write to MH i2c: E2 02 01 47 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 70 D5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 80 02 00 35 04 06 00 EF 95 2A 0D 00 00 BE [07:04:15]Write i2c OK [07:04:15]MH_I2C_Read... [07:04:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:16]Read from MH i2c: E2 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 03 00 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [07:04:16]RAPDU: 90 00 [07:04:16]wFMCommunicate OK [07:04:16]wFMCommunicate request_size=7 [07:04:16]MH_SAM_APDU [07:04:16]CAPDU: 80 0D 02 02 02 F9 4B [07:04:16]Write to MH i2c: E2 0A 00 48 03 80 0D 02 02 02 00 F9 4B 00 00 0D [07:04:16]Write i2c OK [07:04:16]MH_I2C_Read... [07:04:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:16]Read from MH i2c: E2 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 03 00 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [07:04:16]RAPDU: 90 00 [07:04:16]wFMCommunicate OK [07:04:16]wFMCommunicate request_size=4 [07:04:16]MH_SAM_APDU [07:04:16]CAPDU: 80 0D 03 02 [07:04:16]Write to MH i2c: E2 08 00 49 03 80 0D 03 02 00 00 00 00 C7 [07:04:16]Write i2c OK [07:04:16]MH_I2C_Read... [07:04:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:04:16]Read from MH i2c: E2 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 0B 00 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 0B 00 49 03 00 1D 66 2D 5D FB 83 76 57 90 00 20 [07:04:16]RAPDU: 1D 66 2D 5D FB 83 76 57 90 00 [07:04:16]wFMCommunicate OK [07:04:16]SAM_PROTO_SignData done [07:04:16]FM_MakeSignedData done [07:04:16]CreateOFDProtocolMessage [07:04:16]wFMCommunicate request_size=4 [07:04:16]MH_SAM_APDU [07:04:16]CAPDU: 80 11 00 00 [07:04:16]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [07:04:16]Write i2c OK [07:04:16]MH_I2C_Read... [07:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:16]Read from MH i2c: E2 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 17 00 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [07:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:04:16]wFMCommunicate OK [07:04:16]CreateOFDProtocolMessage done [07:04:16]OFDSenderStorePacket 164090 [07:04:16]StoreOFDPacket docnum=164090 [07:04:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A0 44 04 01 28 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 70 D5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 80 02 00 35 04 06 00 EF 95 2A 0D F9 4B 1D 66 2D 5D FB 83 76 57 [07:04:16]CheckFolder [07:04:16]dirname=/storage/ofd_packets [07:04:16]CheckFolder done [07:04:16]ProducePacketName [07:04:16]name=ofd_packets/00164090 [07:04:16]NVStorageSaveData ofd_packets/00164090 [07:04:16]File name is /storage/ofd_packets/00164090 [07:04:16]Write 298 bytes [07:04:16]NVStorageSaveData done [07:04:16]OFDSenderStorePacket done [07:04:16]KKMCreateOFDPacket done [07:04:16]NVStorageSaveData kkm_last_timestamp [07:04:16]File name is /storage/kkm_last_timestamp [07:04:16]Write 4 bytes [07:04:16]NVStorageSaveData done [07:04:16]ExternCall_PrintAddStr [07:04:16]wPrintStart [07:04:16]Write to MH i2c: 01 00 00 4B 03 4E [07:04:16]Write i2c OK [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: 01 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: 01 07 00 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [07:04:16]RasterBufferAndPrint [07:04:16]line Счет N : (1)458167 [07:04:16]line ИНН: 02508201610067 [07:04:16]line Контрольно-Кассовый Чек [07:04:16]line ПРОДАЖА [07:04:16]line ТРК (МРК, ГНК) : 11 [07:04:16]line Товар: 2710194210 [07:04:16]line ДТ-К-5 [07:04:16]line 13.910 * 71.90 [07:04:16]line = 1000.13 [07:04:16]line НДС 12% НСП 1% [07:04:16]line > о реализуемом товаре [07:04:16]line ОКРУГЛЕНИЕ: -0.13 [07:04:16]line ИТОГО: 1000.00 [07:04:16]line Внесено: 1000.00 [07:04:16]line СДАЧА: 0.00 [07:04:16]line НСП 1% : 8.85 [07:04:16]line НДС 12% : 106.21 [07:04:16]line Наличными: 1000.00 [07:04:16]line Безнал.: 0.00 [07:04:16]line Место: АЗС № 72 "Партнер Нефть" [07:04:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:04:16]line СНО: Общий режим [07:04:16]line Чек 11 12.07.2024 07:04 [07:04:16]line Смена: 445 ФФД: 1.0 [07:04:16]line ЗНМ: 0300000160 [07:04:16]line РНМ: 0000000000090829 [07:04:16]line Версия ККМ: 001 [07:04:16]line ФМ: 0000000000874718 [07:04:16]line ФД: 164090 [07:04:16]line ФПД: 263423934724427 [07:04:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T070416&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164090&fm=263423934724427&tin=02508201610067®Number=0000000000090829&sum=100000 [07:04:16]OFD Sender: Processing packet 164090 [packets to send 104, broken 103] [07:04:16]ProducePacketName [07:04:16]name=ofd_packets/00164090 [07:04:16]OFD Sender: To server: pG, [07:04:16]CommunicateWithHost lk.salyk.kg:30040 [07:04:16]ConnectInit lk.salyk.kg [07:04:16]written 0, free lines is 4095 [07:04:16]Connected sock=10 [07:04:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A0 44 04 01 28 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 70 D5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 80 02 00 35 04 06 00 EF 95 2A 0D F9 4B 1D 66 2D 5D FB 83 76 57 [07:04:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F6 44 47 00 D1 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 34 37 31 38 10 04 04 00 FA 80 02 00 F4 03 04 00 05 7C 90 66 B6 04 01 00 00 01 2E 6C 1D A5 CA 6E 6E [07:04:16]CommunicateWithHost err = 0 [07:04:16]CheckOFDResponse [07:04:16]1017 (14) - 77093643461234 [07:04:16]1041 (16) - 0000000000874718 [07:04:16]1040 (4) - 164090 [07:04:16]1012 (4) - 12.07.2024 00:42 [07:04:16]1206 (1) - 0 [07:04:16]OFD Sender: Remove packet 164090 [07:04:16]ProducePacketName [07:04:16]name=ofd_packets/00164090 [07:04:16]NVStorageDeleteData [07:04:17]Write to MH i2c: 01 00 00 75 03 78 [07:04:17]Write i2c OK [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: 01 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: 01 07 00 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: 01 07 00 75 03 00 00 00 00 00 FA 0C 85 [07:04:17]RasterBufferAndPrint [07:04:17]line [07:04:17]line [07:04:17]line [07:04:17]line [07:04:17]line [07:04:17]written 0, free lines is 3328 [07:04:17]MH_Cut [07:04:17]Write to MH i2c: D1 01 00 7C 03 01 51 [07:04:17]Write i2c OK [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: D1 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: D1 01 00 [07:04:17]MH_I2C_Read... [07:04:17]Read from MH i2c: D1 01 00 7C 03 00 50 [07:04:17]Write to MH i2c: 01 00 00 7D 03 80 [07:04:17]Write i2c OK [07:04:17]MH_I2C_Read... [07:04:17]OFD Sender: No OFD packet to send [07:04:17]*** Cut start [07:04:17]*** Partial cut [07:04:17]*** CUTSNS_PIN = 1 [07:04:17]*** CUTSNS_PIN = 0 [07:04:17]*** Brake cut motor [07:04:18]Read from MH i2c: 01 [07:04:18]MH_I2C_Read... [07:04:18]*** Stop cut motor [07:04:18]*** Cut end [07:04:18]Read from MH i2c: 01 07 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 FF 0F 95 [07:04:18]process_action close_receipt done [07:04:18]requested_data is exist [07:04:18]produce_requested_data [07:04:18]requested_item fm.sn is exist - process it [07:04:18]wFMCommunicate request_size=4 [07:04:18]MH_SAM_APDU [07:04:18]CAPDU: 80 11 00 00 [07:04:18]Write to MH i2c: E2 08 00 7E 03 80 11 00 00 00 00 00 00 FB [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:18]Read from MH i2c: E2 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 17 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 17 00 7E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [07:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:04:18]wFMCommunicate OK [07:04:18]requested_item fd.num is exist - process it [07:04:18]SAM_PROTO_GetFieldsCounters [07:04:18]wFMCommunicate request_size=4 [07:04:18]MH_SAM_APDU [07:04:18]CAPDU: 80 13 00 00 [07:04:18]Write to MH i2c: E2 08 00 7F 03 80 13 00 00 00 00 00 00 FE [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:04:18]Read from MH i2c: E2 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 62 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 62 00 7F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [07:04:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:04:18]wFMCommunicate OK [07:04:18]SAM_PROTO_GetFieldsCounters done [07:04:18]requested_item shift.num is exist - process it [07:04:18]requested_item shift.opened is exist - process it [07:04:18]req_shift_opened [07:04:18]FM_GetShiftState [07:04:18]SAM_PROTO_GetShiftState [07:04:18]wFMCommunicate request_size=4 [07:04:18]MH_SAM_APDU [07:04:18]CAPDU: 80 13 01 00 [07:04:18]Write to MH i2c: E2 08 00 80 03 80 13 01 00 00 00 00 00 00 [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:18]Read from MH i2c: E2 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 0E 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 0E 00 80 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4A [07:04:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:04:18]wFMCommunicate OK [07:04:18]SAM_PROTO_GetShiftState done [07:04:18]FM_GetShiftState done [07:04:18]req_shift_opened done [07:04:18]requested_item shift.open_date is exist - process it [07:04:18]req_shift_open_date [07:04:18]req_shift_open_date done [07:04:18]produce_requested_data done [07:04:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164090,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [07:04:18]process_action_free close_receipt [07:04:18]json_value_free [07:04:18]json_value_free done [07:04:18]process_json_proto returns [07:04:18]Send response to host [07:04:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164090,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [07:04:18]free response buf [07:04:18]execute_script done [07:04:18]execute_script returns [07:04:18]free content buf [07:04:18]Sock 9.Close socket [07:04:18]Sock 9.Thread stoped [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:23]accept exits with 7 [07:05:23]New connection [07:05:23]New thread 3067153764 created [07:05:23]Thread 3067297124 joined [07:05:23]Waiting for new connection... [07:05:23] Sock 7.Parse request [07:05:23]Sock 7.Check first char [07:05:23]Sock 7.First char is OK [07:05:23]request: POST /json_proto HTTP/1.0 [07:05:23]Method: POST [07:05:23]URL: /json_proto [07:05:23]Method is POST - this is cgi request [07:05:23]url: /json_proto [07:05:23]query_string will be loaded in cgi processing [07:05:23]execute_cgi json_proto POST (null) [07:05:23]execute_cgi path=json_proto method=POST [07:05:23]POST find Content-Length [07:05:23]Host: 172.17.56.4:8080 [07:05:23]Content-Length: 677 [07:05:23]Content-Type: application/json [07:05:23] [07:05:23]POST finish read [07:05:23]Found Content-Length = 677 [07:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:23]execute_script... [07:05: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)458168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:23]POST & json_proto [07:05:23]process_json_proto [07:05:23]json parsed OK: [07:05:23]protocol is kg_v1.0 [07:05:23]action value=close_receipt [07:05:23]process_action close_receipt [07:05:23]cmd_close_receipt [07:05:23]MH_GetDate [07:05:23]Write to MH i2c: F0 00 00 81 03 73 [07:05:23]Write i2c OK [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: F0 [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: F0 09 00 [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: F0 09 00 81 03 00 B4 D5 90 66 C9 DC B2 64 B6 [07:05:23]GetLastDocTimeStamp 1720767856 [07:05:23]current date 1720767924 [07:05:23]FM_GetShiftState [07:05:23]SAM_PROTO_GetShiftState [07:05:23]wFMCommunicate request_size=4 [07:05:23]MH_SAM_APDU [07:05:23]CAPDU: 80 13 01 00 [07:05:23]Write to MH i2c: E2 08 00 82 03 80 13 01 00 00 00 00 00 02 [07:05:23]Write i2c OK [07:05:23]MH_I2C_Read... [07:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:23]Read from MH i2c: E2 [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: E2 0E 00 [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: E2 0E 00 82 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4C [07:05:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:05:23]wFMCommunicate OK [07:05:23]SAM_PROTO_GetShiftState done [07:05:23]FM_GetShiftState done [07:05:23]opened in 1720744654 [07:05:23]opened+sec_in_day 1720831054 [07:05:23]quantity*price = 50008 [07:05:23]sum+1 = 50009 [07:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 12 12.07.2024 07:05 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164091 ФПД: 146453831175334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T070524&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164091&fm=146453831175334&tin=02508201610067®Number=0000000000090829&sum=50000 [07:05:24]StoreToDocumentArchive [07:05:24]shift 445 fd 164091 [07:05:24]save to /storage/0445/doc_00164091 [07:05:24]save last doc name /storage/0445/doc_00164091 to /storage/kkm_last_doc_name [07:05:24]save OK [07:05:24]Clear old archive folders... [07:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:05:24]tlvbuf is 00662CD0 [07:05:24]SAM_PROTO_ClearQueue [07:05:24]wFMCommunicate request_size=4 [07:05:24]MH_SAM_APDU [07:05:24]CAPDU: 80 09 00 00 [07:05:24]Write to MH i2c: E2 08 00 8F 03 80 09 00 00 00 00 00 00 04 [07:05:24]Write i2c OK [07:05:24]MH_I2C_Read... [07:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:24]Read from MH i2c: E2 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 03 00 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [07:05:24]RAPDU: 90 00 [07:05:24]wFMCommunicate OK [07:05:24]SAM_PROTO_ClearQueue done [07:05:24]KKMCreateOFDPacket [07:05:24]OFDProtocolAddRootSTLVToBuf [07:05:24]FM_MakeSignedData [07:05:24]FM_MakeSignedData [07:05:24]SAM_PROTO_SignData [07:05:24]wFMCommunicate request_size=4 [07:05:24]MH_SAM_APDU [07:05:24]CAPDU: 80 0D 01 02 [07:05:24]Write to MH i2c: E2 08 00 90 03 80 0D 01 02 00 00 00 00 0C [07:05:24]Write i2c OK [07:05:24]MH_I2C_Read... [07:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:05:24]Read from MH i2c: E2 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 03 00 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [07:05:24]RAPDU: 90 00 [07:05:24]wFMCommunicate OK [07:05:24]wFMCommunicate request_size=255 [07:05:24]MH_SAM_APDU [07:05: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 00 00 00 F4 03 04 00 B4 D5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 80 02 00 35 04 06 00 85 [07:05:24]Write to MH i2c: E2 02 01 91 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 00 00 00 F4 03 04 00 B4 D5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 80 02 00 35 04 06 00 85 00 00 D0 [07:05:24]Write i2c OK [07:05:24]MH_I2C_Read... [07:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:24]Read from MH i2c: E2 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 03 00 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [07:05:24]RAPDU: 90 00 [07:05:24]wFMCommunicate OK [07:05:24]wFMCommunicate request_size=10 [07:05:24]MH_SAM_APDU [07:05:24]CAPDU: 80 0D 02 02 05 32 F0 95 4C A6 [07:05:24]Write to MH i2c: E2 0D 00 92 03 80 0D 02 02 05 00 32 F0 95 4C A6 00 00 C2 [07:05:24]Write i2c OK [07:05:24]MH_I2C_Read... [07:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:24]Read from MH i2c: E2 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 03 00 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [07:05:24]RAPDU: 90 00 [07:05:24]wFMCommunicate OK [07:05:24]wFMCommunicate request_size=4 [07:05:24]MH_SAM_APDU [07:05:24]CAPDU: 80 0D 03 02 [07:05:24]Write to MH i2c: E2 08 00 93 03 80 0D 03 02 00 00 00 00 11 [07:05:24]Write i2c OK [07:05:24]MH_I2C_Read... [07:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:05:24]Read from MH i2c: E2 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 0B 00 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 0B 00 93 03 00 EE 5D EE B9 B8 1B 92 BA 90 00 23 [07:05:24]RAPDU: EE 5D EE B9 B8 1B 92 BA 90 00 [07:05:24]wFMCommunicate OK [07:05:24]SAM_PROTO_SignData done [07:05:24]FM_MakeSignedData done [07:05:24]CreateOFDProtocolMessage [07:05:24]wFMCommunicate request_size=4 [07:05:24]MH_SAM_APDU [07:05:24]CAPDU: 80 11 00 00 [07:05:24]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [07:05:24]Write i2c OK [07:05:24]MH_I2C_Read... [07:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:24]Read from MH i2c: E2 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 17 00 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 67 [07:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:05:24]wFMCommunicate OK [07:05:24]CreateOFDProtocolMessage done [07:05:24]OFDSenderStorePacket 164091 [07:05:24]StoreOFDPacket docnum=164091 [07:05:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 9A 07 01 27 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 00 00 00 F4 03 04 00 B4 D5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 80 02 00 35 04 06 00 85 32 F0 95 4C A6 EE 5D EE B9 B8 1B 92 BA [07:05:24]CheckFolder [07:05:24]dirname=/storage/ofd_packets [07:05:24]CheckFolder done [07:05:24]ProducePacketName [07:05:24]name=ofd_packets/00164091 [07:05:24]NVStorageSaveData ofd_packets/00164091 [07:05:24]File name is /storage/ofd_packets/00164091 [07:05:24]Write 301 bytes [07:05:24]NVStorageSaveData done [07:05:24]OFDSenderStorePacket done [07:05:24]KKMCreateOFDPacket done [07:05:24]NVStorageSaveData kkm_last_timestamp [07:05:24]File name is /storage/kkm_last_timestamp [07:05:24]Write 4 bytes [07:05:24]NVStorageSaveData done [07:05:24]ExternCall_PrintAddStr [07:05:24]wPrintStart [07:05:24]Write to MH i2c: 01 00 00 95 03 98 [07:05:24]Write i2c OK [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: 01 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: 01 07 00 [07:05:24]MH_I2C_Read... [07:05:24]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [07:05:24]RasterBufferAndPrint [07:05:24]line Счет N : (1)458168 [07:05:24]line ИНН: 02508201610067 [07:05:24]line Контрольно-Кассовый Чек [07:05:24]line ПРОДАЖА [07:05:24]line ТРК (МРК, ГНК) : 22 [07:05:24]line Товар: 2710124130 [07:05:24]line Аи-92-К-5 [07:05:24]line 7.600 * 65.80 [07:05:24]line = 500.08 [07:05:24]line НДС 12% НСП 1% [07:05:24]line > о реализуемом товаре [07:05:24]line ОКРУГЛЕНИЕ: -0.08 [07:05:24]line ИТОГО: 500.00 [07:05:24]line Внесено: 500.00 [07:05:24]line СДАЧА: 0.00 [07:05:24]line НСП 1% : 4.42 [07:05:24]line НДС 12% : 53.11 [07:05:24]line Наличными: 500.00 [07:05:24]line Безнал.: 0.00 [07:05:24]line Место: АЗС № 72 "Партнер Нефть" [07:05:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:05:24]line СНО: Общий режим [07:05:24]line Чек 12 12.07.2024 07:05 [07:05:24]line Смена: 445 ФФД: 1.0 [07:05:24]line ЗНМ: 0300000160 [07:05:24]line РНМ: 0000000000090829 [07:05:24]line Версия ККМ: 001 [07:05:24]line ФМ: 0000000000874718 [07:05:24]line ФД: 164091 [07:05:24]line ФПД: 146453831175334 [07:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T070524&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164091&fm=146453831175334&tin=02508201610067®Number=0000000000090829&sum=50000 [07:05:25]OFD Sender: Processing packet 164091 [packets to send 104, broken 103] [07:05:25]ProducePacketName [07:05:25]name=ofd_packets/00164091 [07:05:25]OFD Sender: To server: pG, [07:05:25]CommunicateWithHost lk.salyk.kg:30040 [07:05:25]ConnectInit lk.salyk.kg [07:05:25]written 0, free lines is 4095 [07:05:25]Connected sock=10 [07:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 9A 07 01 27 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 00 00 00 F4 03 04 00 B4 D5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 80 02 00 35 04 06 00 85 32 F0 95 4C A6 EE 5D EE B9 B8 1B 92 BA [07:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EC 0E 47 00 F9 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 34 37 31 38 10 04 04 00 FB 80 02 00 F4 03 04 00 49 7C 90 66 B6 04 01 00 00 AB FA 31 24 D5 72 C8 8B [07:05:25]CommunicateWithHost err = 0 [07:05:25]CheckOFDResponse [07:05:25]1017 (14) - 77093643461234 [07:05:25]1041 (16) - 0000000000874718 [07:05:25]1040 (4) - 164091 [07:05:25]1012 (4) - 12.07.2024 00:43 [07:05:25]1206 (1) - 0 [07:05:25]OFD Sender: Remove packet 164091 [07:05:25]ProducePacketName [07:05:25]name=ofd_packets/00164091 [07:05:25]NVStorageDeleteData [07:05:25]Write to MH i2c: 01 00 00 BF 03 C2 [07:05:25]Write i2c OK [07:05:25]MH_I2C_Read... [07:05:25]Read from MH i2c: 01 [07:05:25]MH_I2C_Read... [07:05:25]Read from MH i2c: 01 07 00 [07:05:25]MH_I2C_Read... [07:05:25]Read from MH i2c: 01 07 00 BF 03 00 00 00 00 00 F9 0C CE [07:05:25]RasterBufferAndPrint [07:05:25]line [07:05:25]line [07:05:25]line [07:05:25]line [07:05:25]line [07:05:25]written 0, free lines is 3327 [07:05:25]MH_Cut [07:05:25]Write to MH i2c: D1 01 00 C6 03 01 9B [07:05:25]Write i2c OK [07:05:25]MH_I2C_Read... [07:05:25]Read from MH i2c: D1 [07:05:25]MH_I2C_Read... [07:05:25]Read from MH i2c: D1 01 00 [07:05:25]MH_I2C_Read... [07:05:25]Read from MH i2c: D1 01 00 C6 03 00 9A [07:05:25]Write to MH i2c: 01 00 00 C7 03 CA [07:05:25]Write i2c OK [07:05:25]MH_I2C_Read... [07:05:26]OFD Sender: No OFD packet to send [07:05:26]*** Cut start [07:05:26]*** Partial cut [07:05:26]*** CUTSNS_PIN = 1 [07:05:26]*** CUTSNS_PIN = 0 [07:05:26]*** Brake cut motor [07:05:26]Read from MH i2c: 01 [07:05:26]MH_I2C_Read... [07:05:26]*** Stop cut motor [07:05:26]*** Cut end [07:05:26]Read from MH i2c: 01 07 00 [07:05:26]MH_I2C_Read... [07:05:26]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 FF 0F DF [07:05:26]process_action close_receipt done [07:05:26]requested_data is exist [07:05:26]produce_requested_data [07:05:26]requested_item fm.sn is exist - process it [07:05:26]wFMCommunicate request_size=4 [07:05:26]MH_SAM_APDU [07:05:26]CAPDU: 80 11 00 00 [07:05:26]Write to MH i2c: E2 08 00 C8 03 80 11 00 00 00 00 00 00 45 [07:05:26]Write i2c OK [07:05:26]MH_I2C_Read... [07:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:27]Read from MH i2c: E2 [07:05:27]MH_I2C_Read... [07:05:27]Read from MH i2c: E2 17 00 [07:05:27]MH_I2C_Read... [07:05:27]Read from MH i2c: E2 17 00 C8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [07:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:05:27]wFMCommunicate OK [07:05:27]requested_item fd.num is exist - process it [07:05:27]SAM_PROTO_GetFieldsCounters [07:05:27]wFMCommunicate request_size=4 [07:05:27]MH_SAM_APDU [07:05:27]CAPDU: 80 13 00 00 [07:05:27]Write to MH i2c: E2 08 00 C9 03 80 13 00 00 00 00 00 00 48 [07:05:27]Write i2c OK [07:05:27]MH_I2C_Read... [07:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:05:27]Read from MH i2c: E2 [07:05:27]MH_I2C_Read... [07:05:27]Read from MH i2c: E2 62 00 [07:05:27]MH_I2C_Read... [07:05:27]Read from MH i2c: E2 62 00 C9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [07:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:05:27]wFMCommunicate OK [07:05:27]SAM_PROTO_GetFieldsCounters done [07:05:27]requested_item shift.num is exist - process it [07:05:27]requested_item shift.opened is exist - process it [07:05:27]req_shift_opened [07:05:27]FM_GetShiftState [07:05:27]SAM_PROTO_GetShiftState [07:05:27]wFMCommunicate request_size=4 [07:05:27]MH_SAM_APDU [07:05:27]CAPDU: 80 13 01 00 [07:05:27]Write to MH i2c: E2 08 00 CA 03 80 13 01 00 00 00 00 00 4A [07:05:27]Write i2c OK [07:05:27]MH_I2C_Read... [07:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:27]Read from MH i2c: E2 [07:05:27]MH_I2C_Read... [07:05:27]Read from MH i2c: E2 0E 00 [07:05:27]MH_I2C_Read... [07:05:27]Read from MH i2c: E2 0E 00 CA 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 94 [07:05:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:05:27]wFMCommunicate OK [07:05:27]SAM_PROTO_GetShiftState done [07:05:27]FM_GetShiftState done [07:05:27]req_shift_opened done [07:05:27]requested_item shift.open_date is exist - process it [07:05:27]req_shift_open_date [07:05:27]req_shift_open_date done [07:05:27]produce_requested_data done [07:05:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164091,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [07:05:27]process_action_free close_receipt [07:05:27]json_value_free [07:05:27]json_value_free done [07:05:27]process_json_proto returns [07:05:27]Send response to host [07:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164091,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [07:05:27]free response buf [07:05:27]execute_script done [07:05:27]execute_script returns [07:05:27]free content buf [07:05:27]Sock 7.Close socket [07:05:27]Sock 7.Thread stoped [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:09]accept exits with 9 [07:11:09]New connection [07:11:09]New thread 3067297124 created [07:11:09]Thread 3067153764 joined [07:11:09]Waiting for new connection... [07:11:09] Sock 9.Parse request [07:11:09]Sock 9.Check first char [07:11:09]Sock 9.First char is OK [07:11:09]request: POST /json_proto HTTP/1.0 [07:11:09]Method: POST [07:11:09]URL: /json_proto [07:11:09]Method is POST - this is cgi request [07:11:09]url: /json_proto [07:11:09]query_string will be loaded in cgi processing [07:11:09]execute_cgi json_proto POST (null) [07:11:09]execute_cgi path=json_proto method=POST [07:11:09]POST find Content-Length [07:11:09]Host: 172.17.56.4:8080 [07:11:09]Content-Length: 679 [07:11:09]Content-Type: application/json [07:11:09] [07:11:09]POST finish read [07:11:09]Found Content-Length = 679 [07:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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" ] } } [07:11:09]execute_script... [07:11:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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" ] } } [07:11:09]POST & json_proto [07:11:09]process_json_proto [07:11:09]json parsed OK: [07:11:09]protocol is kg_v1.0 [07:11:09]action value=close_receipt [07:11:09]process_action close_receipt [07:11:09]cmd_close_receipt [07:11:09]MH_GetDate [07:11:09]Write to MH i2c: F0 00 00 CB 03 BD [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: F0 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: F0 09 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: F0 09 00 CB 03 00 0E D7 90 66 C9 DC B2 64 5C [07:11:09]GetLastDocTimeStamp 1720767924 [07:11:09]current date 1720768270 [07:11:09]FM_GetShiftState [07:11:09]SAM_PROTO_GetShiftState [07:11:09]wFMCommunicate request_size=4 [07:11:09]MH_SAM_APDU [07:11:09]CAPDU: 80 13 01 00 [07:11:09]Write to MH i2c: E2 08 00 CC 03 80 13 01 00 00 00 00 00 4C [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:09]Read from MH i2c: E2 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 0E 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 0E 00 CC 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 96 [07:11:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:11:09]wFMCommunicate OK [07:11:09]SAM_PROTO_GetShiftState done [07:11:09]FM_GetShiftState done [07:11:09]opened in 1720744654 [07:11:09]opened+sec_in_day 1720831054 [07:11:09]quantity*price = 150055 [07:11:09]sum+1 = 150056 [07:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 13 12.07.2024 07:11 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164092 ФПД: 109811391093663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T071110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164092&fm=109811391093663&tin=02508201610067®Number=0000000000090829&sum=150000 [07:11:10]StoreToDocumentArchive [07:11:10]shift 445 fd 164092 [07:11:10]save to /storage/0445/doc_00164092 [07:11:10]save last doc name /storage/0445/doc_00164092 to /storage/kkm_last_doc_name [07:11:10]save OK [07:11:10]Clear old archive folders... [07:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:11:10]tlvbuf is 005FA990 [07:11:10]SAM_PROTO_ClearQueue [07:11:10]wFMCommunicate request_size=4 [07:11:10]MH_SAM_APDU [07:11:10]CAPDU: 80 09 00 00 [07:11:10]Write to MH i2c: E2 08 00 D9 03 80 09 00 00 00 00 00 00 4E [07:11:10]Write i2c OK [07:11:10]MH_I2C_Read... [07:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:10]Read from MH i2c: E2 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 03 00 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [07:11:10]RAPDU: 90 00 [07:11:10]wFMCommunicate OK [07:11:10]SAM_PROTO_ClearQueue done [07:11:10]KKMCreateOFDPacket [07:11:10]OFDProtocolAddRootSTLVToBuf [07:11:10]FM_MakeSignedData [07:11:10]FM_MakeSignedData [07:11:10]SAM_PROTO_SignData [07:11:10]wFMCommunicate request_size=4 [07:11:10]MH_SAM_APDU [07:11:10]CAPDU: 80 0D 01 02 [07:11:10]Write to MH i2c: E2 08 00 DA 03 80 0D 01 02 00 00 00 00 56 [07:11:10]Write i2c OK [07:11:10]MH_I2C_Read... [07:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:10]Read from MH i2c: E2 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 03 00 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [07:11:10]RAPDU: 90 00 [07:11:10]wFMCommunicate OK [07:11:10]wFMCommunicate request_size=255 [07:11:10]MH_SAM_APDU [07:11:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0E D7 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 80 02 00 35 04 06 00 63 DF 74 F5 [07:11:10]Write to MH i2c: E2 02 01 DB 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0E D7 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 80 02 00 35 04 06 00 63 DF 74 F5 00 00 2C [07:11:10]Write i2c OK [07:11:10]MH_I2C_Read... [07:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:10]Read from MH i2c: E2 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 03 00 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [07:11:10]RAPDU: 90 00 [07:11:10]wFMCommunicate OK [07:11:10]wFMCommunicate request_size=7 [07:11:10]MH_SAM_APDU [07:11:10]CAPDU: 80 0D 02 02 02 5B 9F [07:11:10]Write to MH i2c: E2 0A 00 DC 03 80 0D 02 02 02 00 5B 9F 00 00 57 [07:11:10]Write i2c OK [07:11:10]MH_I2C_Read... [07:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:10]Read from MH i2c: E2 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 03 00 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [07:11:10]RAPDU: 90 00 [07:11:10]wFMCommunicate OK [07:11:10]wFMCommunicate request_size=4 [07:11:10]MH_SAM_APDU [07:11:10]CAPDU: 80 0D 03 02 [07:11:10]Write to MH i2c: E2 08 00 DD 03 80 0D 03 02 00 00 00 00 5B [07:11:10]Write i2c OK [07:11:10]MH_I2C_Read... [07:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:10]Read from MH i2c: E2 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 0B 00 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 0B 00 DD 03 00 16 7F 88 01 FE 31 2D 13 90 00 E9 [07:11:10]RAPDU: 16 7F 88 01 FE 31 2D 13 90 00 [07:11:10]wFMCommunicate OK [07:11:10]SAM_PROTO_SignData done [07:11:10]FM_MakeSignedData done [07:11:10]CreateOFDProtocolMessage [07:11:10]wFMCommunicate request_size=4 [07:11:10]MH_SAM_APDU [07:11:10]CAPDU: 80 11 00 00 [07:11:10]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [07:11:10]Write i2c OK [07:11:10]MH_I2C_Read... [07:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:10]Read from MH i2c: E2 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 17 00 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [07:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:11:10]wFMCommunicate OK [07:11:10]CreateOFDProtocolMessage done [07:11:10]OFDSenderStorePacket 164092 [07:11:10]StoreOFDPacket docnum=164092 [07:11:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B2 88 04 01 2C 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 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0E D7 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 80 02 00 35 04 06 00 63 DF 74 F5 5B 9F 16 7F 88 01 FE 31 2D 13 [07:11:10]CheckFolder [07:11:10]dirname=/storage/ofd_packets [07:11:10]CheckFolder done [07:11:10]ProducePacketName [07:11:10]name=ofd_packets/00164092 [07:11:10]NVStorageSaveData ofd_packets/00164092 [07:11:10]File name is /storage/ofd_packets/00164092 [07:11:10]Write 298 bytes [07:11:10]NVStorageSaveData done [07:11:10]OFDSenderStorePacket done [07:11:10]KKMCreateOFDPacket done [07:11:10]NVStorageSaveData kkm_last_timestamp [07:11:10]File name is /storage/kkm_last_timestamp [07:11:10]Write 4 bytes [07:11:10]NVStorageSaveData done [07:11:10]ExternCall_PrintAddStr [07:11:10]wPrintStart [07:11:10]Write to MH i2c: 01 00 00 DF 03 E2 [07:11:10]Write i2c OK [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: 01 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: 01 07 00 [07:11:10]MH_I2C_Read... [07:11:10]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 FF 0F F7 [07:11:10]RasterBufferAndPrint [07:11:10]line Счет N : (1)458169 [07:11:10]line ИНН: 02508201610067 [07:11:10]line Контрольно-Кассовый Чек [07:11:10]line ПРОДАЖА [07:11:10]line ТРК (МРК, ГНК) : 11 [07:11:10]line Товар: 2710194210 [07:11:10]line ДТ-К-5 [07:11:10]line 20.870 * 71.90 [07:11:10]line = 1500.55 [07:11:10]line НДС 12% НСП 1% [07:11:10]line > о реализуемом товаре [07:11:10]line ОКРУГЛЕНИЕ: -0.55 [07:11:10]line ИТОГО: 1500.00 [07:11:10]line Внесено: 1500.00 [07:11:10]line СДАЧА: 0.00 [07:11:10]line НСП 1% : 13.28 [07:11:10]line НДС 12% : 159.35 [07:11:10]line Наличными: 1500.00 [07:11:10]line Безнал.: 0.00 [07:11:10]line Место: АЗС № 72 "Партнер Нефть" [07:11:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:11:10]line СНО: Общий режим [07:11:10]line Чек 13 12.07.2024 07:11 [07:11:10]line Смена: 445 ФФД: 1.0 [07:11:10]line ЗНМ: 0300000160 [07:11:10]line РНМ: 0000000000090829 [07:11:10]line Версия ККМ: 001 [07:11:10]line ФМ: 0000000000874718 [07:11:10]line ФД: 164092 [07:11:10]line ФПД: 109811391093663 [07:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T071110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164092&fm=109811391093663&tin=02508201610067®Number=0000000000090829&sum=150000 [07:11:11]OFD Sender: Processing packet 164092 [packets to send 104, broken 103] [07:11:11]ProducePacketName [07:11:11]name=ofd_packets/00164092 [07:11:11]OFD Sender: To server: pG, [07:11:11]CommunicateWithHost lk.salyk.kg:30040 [07:11:11]ConnectInit lk.salyk.kg [07:11:11]written 0, free lines is 4095 [07:11:11]Connected sock=10 [07:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B2 88 04 01 2C 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 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0E D7 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 80 02 00 35 04 06 00 63 DF 74 F5 5B 9F 16 7F 88 01 FE 31 2D 13 [07:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5E A1 47 00 CE 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 34 37 31 38 10 04 04 00 FC 80 02 00 F4 03 04 00 A3 7D 90 66 B6 04 01 00 00 E6 BC AE 32 81 EE AC B5 [07:11:11]CommunicateWithHost err = 0 [07:11:11]CheckOFDResponse [07:11:11]1017 (14) - 77093643461234 [07:11:11]1041 (16) - 0000000000874718 [07:11:11]1040 (4) - 164092 [07:11:11]1012 (4) - 12.07.2024 00:49 [07:11:11]1206 (1) - 0 [07:11:11]OFD Sender: Remove packet 164092 [07:11:11]ProducePacketName [07:11:11]name=ofd_packets/00164092 [07:11:11]NVStorageDeleteData [07:11:11]Write to MH i2c: 01 00 00 09 04 0D [07:11:11]Write i2c OK [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: 01 [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: 01 07 00 [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 01 0D 22 [07:11:11]RasterBufferAndPrint [07:11:11]line [07:11:11]line [07:11:11]line [07:11:11]line [07:11:11]line [07:11:11]written 0, free lines is 3335 [07:11:11]MH_Cut [07:11:11]Write to MH i2c: D1 01 00 10 04 01 E6 [07:11:11]Write i2c OK [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: D1 [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: D1 01 00 [07:11:11]MH_I2C_Read... [07:11:11]Read from MH i2c: D1 01 00 10 04 00 E5 [07:11:11]Write to MH i2c: 01 00 00 11 04 15 [07:11:11]Write i2c OK [07:11:11]MH_I2C_Read... [07:11:11]OFD Sender: No OFD packet to send [07:11:12]*** Cut start [07:11:12]*** Partial cut [07:11:12]*** CUTSNS_PIN = 1 [07:11:12]*** CUTSNS_PIN = 0 [07:11:12]*** Brake cut motor [07:11:12]*** Stop cut motor [07:11:12]*** Cut end [07:11:12]Read from MH i2c: 01 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: 01 07 00 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [07:11:12]process_action close_receipt done [07:11:12]requested_data is exist [07:11:12]produce_requested_data [07:11:12]requested_item fm.sn is exist - process it [07:11:12]wFMCommunicate request_size=4 [07:11:12]MH_SAM_APDU [07:11:12]CAPDU: 80 11 00 00 [07:11:12]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [07:11:12]Write i2c OK [07:11:12]MH_I2C_Read... [07:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:12]Read from MH i2c: E2 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: E2 17 00 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [07:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:11:12]wFMCommunicate OK [07:11:12]requested_item fd.num is exist - process it [07:11:12]SAM_PROTO_GetFieldsCounters [07:11:12]wFMCommunicate request_size=4 [07:11:12]MH_SAM_APDU [07:11:12]CAPDU: 80 13 00 00 [07:11:12]Write to MH i2c: E2 08 00 13 04 80 13 00 00 00 00 00 00 93 [07:11:12]Write i2c OK [07:11:12]MH_I2C_Read... [07:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:12]Read from MH i2c: E2 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: E2 62 00 [07:11:12]MH_I2C_Read... [07:11:12]Read from MH i2c: E2 62 00 13 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [07:11:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:11:12]wFMCommunicate OK [07:11:12]SAM_PROTO_GetFieldsCounters done [07:11:12]requested_item shift.num is exist - process it [07:11:12]requested_item shift.opened is exist - process it [07:11:12]req_shift_opened [07:11:12]FM_GetShiftState [07:11:12]SAM_PROTO_GetShiftState [07:11:12]wFMCommunicate request_size=4 [07:11:12]MH_SAM_APDU [07:11:12]CAPDU: 80 13 01 00 [07:11:12]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [07:11:12]Write i2c OK [07:11:12]MH_I2C_Read... [07:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:13]Read from MH i2c: E2 [07:11:13]MH_I2C_Read... [07:11:13]Read from MH i2c: E2 0E 00 [07:11:13]MH_I2C_Read... [07:11:13]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DF [07:11:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:11:13]wFMCommunicate OK [07:11:13]SAM_PROTO_GetShiftState done [07:11:13]FM_GetShiftState done [07:11:13]req_shift_opened done [07:11:13]requested_item shift.open_date is exist - process it [07:11:13]req_shift_open_date [07:11:13]req_shift_open_date done [07:11:13]produce_requested_data done [07:11:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164092,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [07:11:13]process_action_free close_receipt [07:11:13]json_value_free [07:11:13]json_value_free done [07:11:13]process_json_proto returns [07:11:13]Send response to host [07:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164092,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [07:11:13]free response buf [07:11:13]execute_script done [07:11:13]execute_script returns [07:11:13]free content buf [07:11:13]Sock 9.Close socket [07:11:13]Sock 9.Thread stoped [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:44]accept exits with 7 [07:14:44]New connection [07:14:44]New thread 3067153764 created [07:14:44]Thread 3067297124 joined [07:14:44]Waiting for new connection... [07:14:44] Sock 7.Parse request [07:14:44]Sock 7.Check first char [07:14:44]Sock 7.First char is OK [07:14:44]request: POST /json_proto HTTP/1.0 [07:14:44]Method: POST [07:14:44]URL: /json_proto [07:14:44]Method is POST - this is cgi request [07:14:44]url: /json_proto [07:14:44]query_string will be loaded in cgi processing [07:14:44]execute_cgi json_proto POST (null) [07:14:44]execute_cgi path=json_proto method=POST [07:14:44]POST find Content-Length [07:14:44]Host: 172.17.56.4:8080 [07:14:44]Content-Length: 677 [07:14:44]Content-Type: application/json [07:14:44] [07:14:44]POST finish read [07:14:44]Found Content-Length = 677 [07:14:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.160, "sum" : 405.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:44]execute_script... [07:14: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)458170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.160, "sum" : 405.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:44]POST & json_proto [07:14:44]process_json_proto [07:14:44]json parsed OK: [07:14:44]protocol is kg_v1.0 [07:14:44]action value=close_receipt [07:14:44]process_action close_receipt [07:14:44]cmd_close_receipt [07:14:44]MH_GetDate [07:14:44]Write to MH i2c: F0 00 00 15 04 08 [07:14:44]Write i2c OK [07:14:44]MH_I2C_Read... [07:14:44]Read from MH i2c: F0 [07:14:44]MH_I2C_Read... [07:14:44]Read from MH i2c: F0 09 00 [07:14:44]MH_I2C_Read... [07:14:44]Read from MH i2c: F0 09 00 15 04 00 E6 D7 90 66 C9 DC B2 64 7F [07:14:44]GetLastDocTimeStamp 1720768270 [07:14:44]current date 1720768486 [07:14:44]FM_GetShiftState [07:14:44]SAM_PROTO_GetShiftState [07:14:44]wFMCommunicate request_size=4 [07:14:44]MH_SAM_APDU [07:14:44]CAPDU: 80 13 01 00 [07:14:44]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [07:14:44]Write i2c OK [07:14:44]MH_I2C_Read... [07:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:44]Read from MH i2c: E2 [07:14:44]MH_I2C_Read... [07:14:44]Read from MH i2c: E2 0E 00 [07:14:44]MH_I2C_Read... [07:14:44]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E1 [07:14:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:14:44]wFMCommunicate OK [07:14:44]SAM_PROTO_GetShiftState done [07:14:44]FM_GetShiftState done [07:14:44]opened in 1720744654 [07:14:44]opened+sec_in_day 1720831054 [07:14:44]quantity*price = 40532 [07:14:44]sum+1 = 40534 [07:14:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 405.00 Внесено: 405.00 СДАЧА: 0.00 НСП 1% : 3.59 НДС 12% : 43.04 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 14 12.07.2024 07:14 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164093 ФПД: 239036187240389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T071446&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164093&fm=239036187240389&tin=02508201610067®Number=0000000000090829&sum=40500 [07:14:45]StoreToDocumentArchive [07:14:45]shift 445 fd 164093 [07:14:45]save to /storage/0445/doc_00164093 [07:14:45]save last doc name /storage/0445/doc_00164093 to /storage/kkm_last_doc_name [07:14:45]save OK [07:14:45]Clear old archive folders... [07:14:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:45]tlvbuf is 006609F0 [07:14:45]SAM_PROTO_ClearQueue [07:14:45]wFMCommunicate request_size=4 [07:14:45]MH_SAM_APDU [07:14:45]CAPDU: 80 09 00 00 [07:14:45]Write to MH i2c: E2 08 00 23 04 80 09 00 00 00 00 00 00 99 [07:14:45]Write i2c OK [07:14:45]MH_I2C_Read... [07:14:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:45]Read from MH i2c: E2 [07:14:45]MH_I2C_Read... [07:14:45]Read from MH i2c: E2 03 00 [07:14:45]MH_I2C_Read... [07:14:45]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [07:14:45]RAPDU: 90 00 [07:14:45]wFMCommunicate OK [07:14:45]SAM_PROTO_ClearQueue done [07:14:45]KKMCreateOFDPacket [07:14:45]OFDProtocolAddRootSTLVToBuf [07:14:45]FM_MakeSignedData [07:14:45]FM_MakeSignedData [07:14:45]SAM_PROTO_SignData [07:14:45]wFMCommunicate request_size=4 [07:14:45]MH_SAM_APDU [07:14:45]CAPDU: 80 0D 01 02 [07:14:45]Write to MH i2c: E2 08 00 24 04 80 0D 01 02 00 00 00 00 A1 [07:14:45]Write i2c OK [07:14:45]MH_I2C_Read... [07:14:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:45]Read from MH i2c: E2 [07:14:45]MH_I2C_Read... [07:14:45]Read from MH i2c: E2 03 00 [07:14:45]MH_I2C_Read... [07:14:45]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [07:14:45]RAPDU: 90 00 [07:14:45]wFMCommunicate OK [07:14:45]wFMCommunicate request_size=255 [07:14:45]MH_SAM_APDU [07:14: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 10 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 55 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E6 D7 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 80 02 00 35 04 06 00 D9 [07:14:45]Write to MH i2c: E2 02 01 25 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 55 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E6 D7 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 80 02 00 35 04 06 00 D9 00 00 5C [07:14:45]Write i2c OK [07:14:45]MH_I2C_Read... [07:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:46]Read from MH i2c: E2 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: E2 03 00 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [07:14:46]RAPDU: 90 00 [07:14:46]wFMCommunicate OK [07:14:46]wFMCommunicate request_size=10 [07:14:46]MH_SAM_APDU [07:14:46]CAPDU: 80 0D 02 02 05 66 F3 07 67 C5 [07:14:46]Write to MH i2c: E2 0D 00 26 04 80 0D 02 02 05 00 66 F3 07 67 C5 00 00 3A [07:14:46]Write i2c OK [07:14:46]MH_I2C_Read... [07:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:46]Read from MH i2c: E2 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: E2 03 00 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [07:14:46]RAPDU: 90 00 [07:14:46]wFMCommunicate OK [07:14:46]wFMCommunicate request_size=4 [07:14:46]MH_SAM_APDU [07:14:46]CAPDU: 80 0D 03 02 [07:14:46]Write to MH i2c: E2 08 00 27 04 80 0D 03 02 00 00 00 00 A6 [07:14:46]Write i2c OK [07:14:46]MH_I2C_Read... [07:14:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:46]Read from MH i2c: E2 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: E2 0B 00 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: E2 0B 00 27 04 00 8D 1C E8 36 05 F2 4C 3F 90 00 F0 [07:14:46]RAPDU: 8D 1C E8 36 05 F2 4C 3F 90 00 [07:14:46]wFMCommunicate OK [07:14:46]SAM_PROTO_SignData done [07:14:46]FM_MakeSignedData done [07:14:46]CreateOFDProtocolMessage [07:14:46]wFMCommunicate request_size=4 [07:14:46]MH_SAM_APDU [07:14:46]CAPDU: 80 11 00 00 [07:14:46]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [07:14:46]Write i2c OK [07:14:46]MH_I2C_Read... [07:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:46]Read from MH i2c: E2 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: E2 17 00 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [07:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:14:46]wFMCommunicate OK [07:14:46]CreateOFDProtocolMessage done [07:14:46]OFDSenderStorePacket 164093 [07:14:46]StoreOFDPacket docnum=164093 [07:14:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FF 11 07 01 78 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 10 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 55 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E6 D7 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 80 02 00 35 04 06 00 D9 66 F3 07 67 C5 8D 1C E8 36 05 F2 4C 3F [07:14:46]CheckFolder [07:14:46]dirname=/storage/ofd_packets [07:14:46]CheckFolder done [07:14:46]ProducePacketName [07:14:46]name=ofd_packets/00164093 [07:14:46]NVStorageSaveData ofd_packets/00164093 [07:14:46]File name is /storage/ofd_packets/00164093 [07:14:46]Write 301 bytes [07:14:46]NVStorageSaveData done [07:14:46]OFDSenderStorePacket done [07:14:46]KKMCreateOFDPacket done [07:14:46]NVStorageSaveData kkm_last_timestamp [07:14:46]File name is /storage/kkm_last_timestamp [07:14:46]Write 4 bytes [07:14:46]NVStorageSaveData done [07:14:46]ExternCall_PrintAddStr [07:14:46]wPrintStart [07:14:46]Write to MH i2c: 01 00 00 29 04 2D [07:14:46]Write i2c OK [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: 01 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: 01 07 00 [07:14:46]MH_I2C_Read... [07:14:46]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 FF 0F 42 [07:14:46]RasterBufferAndPrint [07:14:46]line Счет N : (1)458170 [07:14:46]line ИНН: 02508201610067 [07:14:46]line Контрольно-Кассовый Чек [07:14:46]line ПРОДАЖА [07:14:46]line ТРК (МРК, ГНК) : 22 [07:14:46]line Товар: 2710124130 [07:14:46]line Аи-92-К-5 [07:14:46]line 6.160 * 65.80 [07:14:46]line = 405.33 [07:14:46]line НДС 12% НСП 1% [07:14:46]line > о реализуемом товаре [07:14:46]line ОКРУГЛЕНИЕ: -0.33 [07:14:46]line ИТОГО: 405.00 [07:14:46]line Внесено: 405.00 [07:14:46]line СДАЧА: 0.00 [07:14:46]line НСП 1% : 3.59 [07:14:46]line НДС 12% : 43.04 [07:14:46]line Наличными: 405.00 [07:14:46]line Безнал.: 0.00 [07:14:46]line Место: АЗС № 72 "Партнер Нефть" [07:14:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:14:46]line СНО: Общий режим [07:14:46]line Чек 14 12.07.2024 07:14 [07:14:46]line Смена: 445 ФФД: 1.0 [07:14:46]line ЗНМ: 0300000160 [07:14:46]line РНМ: 0000000000090829 [07:14:46]line Версия ККМ: 001 [07:14:46]line ФМ: 0000000000874718 [07:14:46]line ФД: 164093 [07:14:46]line ФПД: 239036187240389 [07:14:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T071446&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164093&fm=239036187240389&tin=02508201610067®Number=0000000000090829&sum=40500 [07:14:46]OFD Sender: Processing packet 164093 [packets to send 104, broken 103] [07:14:46]ProducePacketName [07:14:46]name=ofd_packets/00164093 [07:14:46]OFD Sender: To server: pG, [07:14:46]CommunicateWithHost lk.salyk.kg:30040 [07:14:46]ConnectInit lk.salyk.kg [07:14:46]written 0, free lines is 4095 [07:14:46]Connected sock=10 [07:14:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FF 11 07 01 78 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 10 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 55 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E6 D7 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 80 02 00 35 04 06 00 D9 66 F3 07 67 C5 8D 1C E8 36 05 F2 4C 3F [07:14:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 69 C3 47 00 E7 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 80 02 00 F4 03 04 00 7B 7E 90 66 B6 04 01 00 00 08 53 C3 D5 87 5E 05 DF [07:14:47]CommunicateWithHost err = 0 [07:14:47]CheckOFDResponse [07:14:47]1017 (14) - 77093643461234 [07:14:47]1041 (16) - 0000000000874718 [07:14:47]1040 (4) - 164093 [07:14:47]1012 (4) - 12.07.2024 00:53 [07:14:47]1206 (1) - 0 [07:14:47]OFD Sender: Remove packet 164093 [07:14:47]ProducePacketName [07:14:47]name=ofd_packets/00164093 [07:14:47]NVStorageDeleteData [07:14:47]Write to MH i2c: 01 00 00 53 04 57 [07:14:47]Write i2c OK [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: 01 [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: 01 07 00 [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 0A 0D 75 [07:14:47]RasterBufferAndPrint [07:14:47]line [07:14:47]line [07:14:47]line [07:14:47]line [07:14:47]line [07:14:47]written 0, free lines is 3344 [07:14:47]MH_Cut [07:14:47]Write to MH i2c: D1 01 00 5A 04 01 30 [07:14:47]Write i2c OK [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: D1 [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: D1 01 00 [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: D1 01 00 5A 04 00 2F [07:14:47]Write to MH i2c: 01 00 00 5B 04 5F [07:14:47]Write i2c OK [07:14:47]MH_I2C_Read... [07:14:47]OFD Sender: No OFD packet to send [07:14:47]*** Cut start [07:14:47]*** Partial cut [07:14:47]*** CUTSNS_PIN = 1 [07:14:47]*** CUTSNS_PIN = 0 [07:14:48]*** Brake cut motor [07:14:48]Read from MH i2c: 01 [07:14:48]MH_I2C_Read... [07:14:48]*** Stop cut motor [07:14:48]*** Cut end [07:14:48]Read from MH i2c: 01 07 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [07:14:48]process_action close_receipt done [07:14:48]requested_data is exist [07:14:48]produce_requested_data [07:14:48]requested_item fm.sn is exist - process it [07:14:48]wFMCommunicate request_size=4 [07:14:48]MH_SAM_APDU [07:14:48]CAPDU: 80 11 00 00 [07:14:48]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:48]Read from MH i2c: E2 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 17 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [07:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:14:48]wFMCommunicate OK [07:14:48]requested_item fd.num is exist - process it [07:14:48]SAM_PROTO_GetFieldsCounters [07:14:48]wFMCommunicate request_size=4 [07:14:48]MH_SAM_APDU [07:14:48]CAPDU: 80 13 00 00 [07:14:48]Write to MH i2c: E2 08 00 5D 04 80 13 00 00 00 00 00 00 DD [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:48]Read from MH i2c: E2 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 62 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 62 00 5D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [07:14: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:14:48]wFMCommunicate OK [07:14:48]SAM_PROTO_GetFieldsCounters done [07:14:48]requested_item shift.num is exist - process it [07:14:48]requested_item shift.opened is exist - process it [07:14:48]req_shift_opened [07:14:48]FM_GetShiftState [07:14:48]SAM_PROTO_GetShiftState [07:14:48]wFMCommunicate request_size=4 [07:14:48]MH_SAM_APDU [07:14:48]CAPDU: 80 13 01 00 [07:14:48]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:48]Read from MH i2c: E2 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 0E 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 29 [07:14:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:14:48]wFMCommunicate OK [07:14:48]SAM_PROTO_GetShiftState done [07:14:48]FM_GetShiftState done [07:14:48]req_shift_opened done [07:14:48]requested_item shift.open_date is exist - process it [07:14:48]req_shift_open_date [07:14:48]req_shift_open_date done [07:14:48]produce_requested_data done [07:14:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164093,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [07:14:48]process_action_free close_receipt [07:14:48]json_value_free [07:14:48]json_value_free done [07:14:48]process_json_proto returns [07:14:48]Send response to host [07:14:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164093,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [07:14:48]free response buf [07:14:48]execute_script done [07:14:48]execute_script returns [07:14:48]free content buf [07:14:48]Sock 7.Close socket [07:14:48]Sock 7.Thread stoped [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:04]ConnectInit Can't connect to host [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:12]accept exits with 8 [07:41:12]New connection [07:41:12]New thread 3066658148 created [07:41:12]Waiting for new connection... [07:41:12] Sock 8.Parse request [07:41:12]Sock 8.Check first char [07:41:12]Sock 8.First char is OK [07:41:12]request: POST /json_proto HTTP/1.0 [07:41:12]Method: POST [07:41:12]URL: /json_proto [07:41:12]Method is POST - this is cgi request [07:41:12]url: /json_proto [07:41:12]query_string will be loaded in cgi processing [07:41:12]execute_cgi json_proto POST (null) [07:41:12]execute_cgi path=json_proto method=POST [07:41:12]POST find Content-Length [07:41:12]Host: 172.17.56.4:8080 [07:41:12]Content-Length: 215 [07:41:12]Content-Type: application/json [07:41:12] [07:41:12]POST finish read [07:41:12]Found Content-Length = 215 [07:41:12]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" ] } } [07:41:12]execute_script... [07:41:12]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" ] } } [07:41:12]POST & json_proto [07:41:12]process_json_proto [07:41:12]json parsed OK: [07:41:12]protocol is kg_v1.0 [07:41:12]action value=get_value [07:41:12]process_action get_value [07:41:12]cmd_get_value [07:41:12]process_action get_value done [07:41:12]requested_data is exist [07:41:12]produce_requested_data [07:41:12]requested_item kkm.sn is exist - process it [07:41:12]requested_item kkm.ver is exist - process it [07:41:12]requested_item fm.sn is exist - process it [07:41:12]wFMCommunicate request_size=4 [07:41:12]MH_SAM_APDU [07:41:12]CAPDU: 80 11 00 00 [07:41:12]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:12]Read from MH i2c: E2 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 17 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [07:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:41:12]wFMCommunicate OK [07:41:12]requested_item fd.num is exist - process it [07:41:12]SAM_PROTO_GetFieldsCounters [07:41:12]wFMCommunicate request_size=4 [07:41:12]MH_SAM_APDU [07:41:12]CAPDU: 80 13 00 00 [07:41:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:12]Read from MH i2c: E2 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 62 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:12]wFMCommunicate OK [07:41:12]SAM_PROTO_GetFieldsCounters done [07:41:12]requested_item shift.num is exist - process it [07:41:12]requested_item shift.opened is exist - process it [07:41:12]req_shift_opened [07:41:12]FM_GetShiftState [07:41:12]SAM_PROTO_GetShiftState [07:41:12]wFMCommunicate request_size=4 [07:41:12]MH_SAM_APDU [07:41:12]CAPDU: 80 13 01 00 [07:41:12]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:12]Read from MH i2c: E2 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 0E 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D9 [07:41:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:41:12]wFMCommunicate OK [07:41:12]SAM_PROTO_GetShiftState done [07:41:12]FM_GetShiftState done [07:41:12]req_shift_opened done [07:41:12]requested_item shift.open_date is exist - process it [07:41:12]req_shift_open_date [07:41:12]req_shift_open_date done [07:41:12]produce_requested_data done [07:41:12]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164093,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [07:41:12]process_action_free get_value [07:41:12]json_value_free [07:41:12]json_value_free done [07:41:12]process_json_proto returns [07:41:12]Send response to host [07:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164093,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [07:41:12]free response buf [07:41:12]execute_script done [07:41:12]execute_script returns [07:41:12]free content buf [07:41:12]Sock 8.Close socket [07:41:12]Sock 8.Thread stoped [07:41:12]accept exits with 9 [07:41:12]New connection [07:41:12]New thread 3066514788 created [07:41:12]Thread 3066658148 joined [07:41:12]Waiting for new connection... [07:41:12] Sock 9.Parse request [07:41:12]Sock 9.Check first char [07:41:12]Sock 9.First char is OK [07:41:12]request: POST /json_proto HTTP/1.0 [07:41:12]Method: POST [07:41:12]URL: /json_proto [07:41:12]Method is POST - this is cgi request [07:41:12]url: /json_proto [07:41:12]query_string will be loaded in cgi processing [07:41:12]execute_cgi json_proto POST (null) [07:41:12]execute_cgi path=json_proto method=POST [07:41:12]POST find Content-Length [07:41:12]Host: 172.17.56.4:8080 [07:41:12]Content-Length: 331 [07:41:12]Content-Type: application/json [07:41:12] [07:41:12]POST finish read [07:41:12]Found Content-Length = 331 [07:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:41:12]execute_script... [07:41:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:41:12]POST & json_proto [07:41:12]process_json_proto [07:41:12]json parsed OK: [07:41:12]protocol is kg_v1.0 [07:41:12]action value=get_value [07:41:12]process_action get_value [07:41:12]cmd_get_value [07:41:12]process_action get_value done [07:41:12]requested_data is exist [07:41:12]produce_requested_data [07:41:12]requested_item fm.sale.total is exist - process it [07:41:12]SAM_PROTO_GetFMData [07:41:12]wFMCommunicate request_size=4 [07:41:12]MH_SAM_APDU [07:41:12]CAPDU: 80 13 03 00 [07:41:12]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:41:13]Read from MH i2c: E2 [07:41:13]MH_I2C_Read... [07:41:13]Read from MH i2c: E2 FD 00 [07:41:13]MH_I2C_Read... [07:41:13]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 80 7D 02 00 69 04 A3 00 6F 04 04 00 74 7C 02 00 B1 04 05 00 70 50 35 55 02 70 04 05 00 F9 D0 76 33 02 72 04 04 00 77 7F BE 21 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 77 E6 71 3F 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 CD 4D 49 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0C 01 00 00 B1 04 04 00 2C 6E 44 03 70 04 04 00 2C 6E 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A D6 58 EF 03 09 00 90 00 C2 [07:41:13]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 80 7D 02 00 69 04 A3 00 6F 04 04 00 74 7C 02 00 B1 04 05 00 70 50 35 55 02 70 04 05 00 F9 D0 76 33 02 72 04 04 00 77 7F BE 21 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 77 E6 71 3F 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 CD 4D 49 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0C 01 00 00 B1 04 04 00 2C 6E 44 03 70 04 04 00 2C 6E 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A D6 58 EF 03 09 00 90 00 [07:41:13]wFMCommunicate OK [07:41:13]wFMCommunicate request_size=4 [07:41:13]MH_SAM_APDU [07:41:13]CAPDU: 80 17 00 00 [07:41:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [07:41:13]Write i2c OK [07:41:13]MH_I2C_Read... [07:41:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:13]OFD Sender: No OFD packet to send [07:41:13]Read from MH i2c: E2 [07:41:13]MH_I2C_Read... [07:41:13]Read from MH i2c: E2 FD 00 [07:41:13]MH_I2C_Read... [07:41:13]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 67 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 D3 [07:41:13]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 67 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [07:41:13]wFMCommunicate OK [07:41:13]wFMCommunicate request_size=4 [07:41:13]MH_SAM_APDU [07:41:13]CAPDU: 80 17 00 00 [07:41:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [07:41:13]Write i2c OK [07:41:13]MH_I2C_Read... [07:41:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:13]Read from MH i2c: E2 [07:41:13]MH_I2C_Read... [07:41:13]Read from MH i2c: E2 FD 00 [07:41:13]MH_I2C_Read... [07:41:13]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [07:41:13]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [07:41:13]wFMCommunicate OK [07:41:13]wFMCommunicate request_size=4 [07:41:13]MH_SAM_APDU [07:41:13]CAPDU: 80 17 00 00 [07:41:13]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [07:41:13]Write i2c OK [07:41:13]MH_I2C_Read... [07:41:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:14]Read from MH i2c: E2 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 FD 00 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [07:41:14]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [07:41:14]wFMCommunicate OK [07:41:14]wFMCommunicate request_size=4 [07:41:14]MH_SAM_APDU [07:41:14]CAPDU: 80 17 00 00 [07:41:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [07:41:14]Write i2c OK [07:41:14]MH_I2C_Read... [07:41:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [07:41:14]Read from MH i2c: E2 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 E1 00 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [07:41:14]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:41:14]wFMCommunicate OK [07:41:14]SAM_PROTO_GetFMData done [07:41:14]requested_item fm.sale_refund.total is exist - process it [07:41:14]requested_item fm.buy.total is exist - process it [07:41:14]requested_item shift.sale.total is exist - process it [07:41:14]SAM_PROTO_GetShiftData [07:41:14]wFMCommunicate request_size=4 [07:41:14]MH_SAM_APDU [07:41:14]CAPDU: 80 13 02 00 [07:41:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [07:41:14]Write i2c OK [07:41:14]MH_I2C_Read... [07:41:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:41:14]Read from MH i2c: E2 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 FD 00 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 0E 00 00 00 69 04 9A 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 D5 45 12 70 04 03 00 6C 82 11 72 04 02 00 69 C3 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 F0 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 66 29 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [07:41:14]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 0E 00 00 00 69 04 9A 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 D5 45 12 70 04 03 00 6C 82 11 72 04 02 00 69 C3 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 F0 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 66 29 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:41:14]wFMCommunicate OK [07:41:14]wFMCommunicate request_size=4 [07:41:14]MH_SAM_APDU [07:41:14]CAPDU: 80 17 00 00 [07:41:14]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [07:41:14]Write i2c OK [07:41:14]MH_I2C_Read... [07:41:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:15]Read from MH i2c: E2 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: E2 FD 00 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 AB [07:41:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:41:15]wFMCommunicate OK [07:41:15]wFMCommunicate request_size=4 [07:41:15]MH_SAM_APDU [07:41:15]CAPDU: 80 17 00 00 [07:41:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [07:41:15]Write i2c OK [07:41:15]MH_I2C_Read... [07:41:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:15]Read from MH i2c: E2 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: E2 FD 00 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 5E [07:41:15]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:41:15]wFMCommunicate OK [07:41:15]wFMCommunicate request_size=4 [07:41:15]MH_SAM_APDU [07:41:15]CAPDU: 80 17 00 00 [07:41:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [07:41:15]Write i2c OK [07:41:15]MH_I2C_Read... [07:41:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:41:15]Read from MH i2c: E2 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: E2 FD 00 [07:41:15]MH_I2C_Read... [07:41:15]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 10 [07:41:15]RAPDU: 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 90 00 [07:41:15]wFMCommunicate OK [07:41:15]wFMCommunicate request_size=4 [07:41:15]MH_SAM_APDU [07:41:15]CAPDU: 80 17 00 00 [07:41:15]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [07:41:15]Write i2c OK [07:41:15]MH_I2C_Read... [07:41:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [07:41:16]Read from MH i2c: E2 [07:41:16]MH_I2C_Read... [07:41:16]Read from MH i2c: E2 CA 00 [07:41:16]MH_I2C_Read... [07:41:16]Read from MH i2c: E2 CA 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [07:41:16]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:41:16]wFMCommunicate OK [07:41:16]SAM_PROTO_GetShiftData done [07:41:16]requested_item shift.sale.total_cash is exist - process it [07:41:16]requested_item shift.sale_refund.total is exist - process it [07:41:16]requested_item shift.sale_refund.total_cash is exist - process it [07:41:16]requested_item shift.buy.total is exist - process it [07:41:16]requested_item shift.buy.total_cash is exist - process it [07:41:16]produce_requested_data done [07:41:16]produce_requested_data return {"fm.sale.total":100194919.52,"fm.sale_refund.total":548163.00,"fm.buy.total":0.00,"shift.sale.total":11975.25,"shift.sale.total_cash":11475.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} [07:41:16]process_action_free get_value [07:41:16]json_value_free [07:41:16]json_value_free done [07:41:16]process_json_proto returns [07:41:16]Send response to host [07:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100194919.52,"fm.sale_refund.total":548163.00,"fm.buy.total":0.00,"shift.sale.total":11975.25,"shift.sale.total_cash":11475.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}}} [07:41:16]free response buf [07:41:16]execute_script done [07:41:16]execute_script returns [07:41:16]free content buf [07:41:16]Sock 9.Close socket [07:41:16]Sock 9.Thread stoped [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:52:55]ConnectInit Can't connect to host [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:15]accept exits with 9 [07:54:15]New connection [07:54:15]New thread 3066711396 created [07:54:15] Sock 9.Parse request [07:54:15]Thread 3066568036 joined [07:54:15]Sock 9.Check first char [07:54:15]Waiting for new connection... [07:54:15]Sock 9.First char is OK [07:54:15]request: POST /json_proto HTTP/1.0 [07:54:15]Method: POST [07:54:15]URL: /json_proto [07:54:15]Method is POST - this is cgi request [07:54:15]url: /json_proto [07:54:15]query_string will be loaded in cgi processing [07:54:15]execute_cgi json_proto POST (null) [07:54:15]execute_cgi path=json_proto method=POST [07:54:15]POST find Content-Length [07:54:15]Host: 172.17.56.4:8080 [07:54:15]Content-Length: 682 [07:54:15]Content-Type: application/json [07:54:15] [07:54:15]POST finish read [07:54:15]Found Content-Length = 682 [07:54:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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" ] } } [07:54:15]execute_script... [07:54: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)458171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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" ] } } [07:54:15]POST & json_proto [07:54:15]process_json_proto [07:54:15]json parsed OK: [07:54:15]protocol is kg_v1.0 [07:54:15]action value=close_receipt [07:54:15]process_action close_receipt [07:54:15]cmd_close_receipt [07:54:15]MH_GetDate [07:54:15]Write to MH i2c: F0 00 00 1D 00 0C [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: F0 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: F0 09 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: F0 09 00 1D 00 00 28 E1 90 66 C9 DC B2 64 CF [07:54:15]GetLastDocTimeStamp 1720768486 [07:54:15]current date 1720770856 [07:54:15]FM_GetShiftState [07:54:15]SAM_PROTO_GetShiftState [07:54:15]wFMCommunicate request_size=4 [07:54:15]MH_SAM_APDU [07:54:15]CAPDU: 80 13 01 00 [07:54:15]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:15]Read from MH i2c: E2 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 0E 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E5 [07:54:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:54:15]wFMCommunicate OK [07:54:15]SAM_PROTO_GetShiftState done [07:54:15]FM_GetShiftState done [07:54:15]opened in 1720744654 [07:54:15]opened+sec_in_day 1720831054 [07:54:15]quantity*price = 200032 [07:54:15]sum+1 = 200033 [07:54:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 15 12.07.2024 07:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164094 ФПД: 143502147284876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T075416&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164094&fm=143502147284876&tin=02508201610067®Number=0000000000090829&sum=200000 [07:54:16]StoreToDocumentArchive [07:54:16]shift 445 fd 164094 [07:54:16]save to /storage/0445/doc_00164094 [07:54:16]save last doc name /storage/0445/doc_00164094 to /storage/kkm_last_doc_name [07:54:16]save OK [07:54:16]Clear old archive folders... [07:54:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:16]tlvbuf is 00D24A50 [07:54:16]SAM_PROTO_ClearQueue [07:54:16]wFMCommunicate request_size=4 [07:54:16]MH_SAM_APDU [07:54:16]CAPDU: 80 09 00 00 [07:54:16]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:17]Read from MH i2c: E2 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 03 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [07:54:17]RAPDU: 90 00 [07:54:17]wFMCommunicate OK [07:54:17]SAM_PROTO_ClearQueue done [07:54:17]KKMCreateOFDPacket [07:54:17]OFDProtocolAddRootSTLVToBuf [07:54:17]FM_MakeSignedData [07:54:17]FM_MakeSignedData [07:54:17]SAM_PROTO_SignData [07:54:17]wFMCommunicate request_size=4 [07:54:17]MH_SAM_APDU [07:54:17]CAPDU: 80 0D 01 02 [07:54:17]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:17]Read from MH i2c: E2 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 03 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [07:54:17]RAPDU: 90 00 [07:54:17]wFMCommunicate OK [07:54:17]wFMCommunicate request_size=255 [07:54:17]MH_SAM_APDU [07: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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 28 E1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 80 02 00 35 04 06 00 82 [07:54:17]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 28 E1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 80 02 00 35 04 06 00 82 00 00 D2 [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:17]Read from MH i2c: E2 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 03 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [07:54:17]RAPDU: 90 00 [07:54:17]wFMCommunicate OK [07:54:17]wFMCommunicate request_size=10 [07:54:17]MH_SAM_APDU [07:54:17]CAPDU: 80 0D 02 02 05 83 B2 83 6F 8C [07:54:17]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 83 B2 83 6F 8C 00 00 65 [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:17]Read from MH i2c: E2 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 03 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [07:54:17]RAPDU: 90 00 [07:54:17]wFMCommunicate OK [07:54:17]wFMCommunicate request_size=4 [07:54:17]MH_SAM_APDU [07:54:17]CAPDU: 80 0D 03 02 [07:54:17]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:17]Read from MH i2c: E2 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 0B 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 0B 00 2F 00 00 31 34 E5 E8 C0 80 C4 91 90 00 72 [07:54:17]RAPDU: 31 34 E5 E8 C0 80 C4 91 90 00 [07:54:17]wFMCommunicate OK [07:54:17]SAM_PROTO_SignData done [07:54:17]FM_MakeSignedData done [07:54:17]CreateOFDProtocolMessage [07:54:17]wFMCommunicate request_size=4 [07:54:17]MH_SAM_APDU [07:54:17]CAPDU: 80 11 00 00 [07:54:17]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:17]Read from MH i2c: E2 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 17 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [07:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:54:17]wFMCommunicate OK [07:54:17]CreateOFDProtocolMessage done [07:54:17]OFDSenderStorePacket 164094 [07:54:17]StoreOFDPacket docnum=164094 [07:54:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 99 07 01 67 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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 28 E1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 80 02 00 35 04 06 00 82 83 B2 83 6F 8C 31 34 E5 E8 C0 80 C4 91 [07:54:17]CheckFolder [07:54:17]dirname=/storage/ofd_packets [07:54:17]CheckFolder done [07:54:17]ProducePacketName [07:54:17]name=ofd_packets/00164094 [07:54:17]NVStorageSaveData ofd_packets/00164094 [07:54:17]File name is /storage/ofd_packets/00164094 [07:54:17]Write 301 bytes [07:54:17]NVStorageSaveData done [07:54:17]OFDSenderStorePacket done [07:54:17]KKMCreateOFDPacket done [07:54:17]NVStorageSaveData kkm_last_timestamp [07:54:17]File name is /storage/kkm_last_timestamp [07:54:17]Write 4 bytes [07:54:17]NVStorageSaveData done [07:54:17]ExternCall_PrintAddStr [07:54:17]wPrintStart [07:54:17]Write to MH i2c: 01 00 00 31 00 31 [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: 01 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: 01 07 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [07:54:17]RasterBufferAndPrint [07:54:17]line Счет N : (1)458171 [07:54:17]line ИНН: 02508201610067 [07:54:17]line Контрольно-Кассовый Чек [07:54:17]line ПРОДАЖА [07:54:17]line ТРК (МРК, ГНК) : 12 [07:54:17]line Товар: 2710124130 [07:54:17]line Аи-92-К-5 [07:54:17]line 30.400 * 65.80 [07:54:17]line = 2000.32 [07:54:17]line НДС 12% НСП 1% [07:54:17]line > о реализуемом товаре [07:54:17]line ОКРУГЛЕНИЕ: -0.32 [07:54:17]line ИТОГО: 2000.00 [07:54:17]line Внесено: 2000.00 [07:54:17]line СДАЧА: 0.00 [07:54:17]line НСП 1% : 17.70 [07:54:17]line НДС 12% : 212.42 [07:54:17]line Наличными: 2000.00 [07:54:17]line Безнал.: 0.00 [07:54:17]line Место: АЗС № 72 "Партнер Нефть" [07:54:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:54:17]line СНО: Общий режим [07:54:17]line Чек 15 12.07.2024 07:54 [07:54:17]line Смена: 445 ФФД: 1.0 [07:54:17]line ЗНМ: 0300000160 [07:54:17]line РНМ: 0000000000090829 [07:54:17]line Версия ККМ: 001 [07:54:17]line ФМ: 0000000000874718 [07:54:17]line ФД: 164094 [07:54:17]line ФПД: 143502147284876 [07:54:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T075416&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164094&fm=143502147284876&tin=02508201610067®Number=0000000000090829&sum=200000 [07:54:17]written 0, free lines is 4095 [07:54:17]OFD Sender: Processing packet 164094 [packets to send 104, broken 103] [07:54:17]ProducePacketName [07:54:17]name=ofd_packets/00164094 [07:54:17]OFD Sender: To server: pG, [07:54:17]CommunicateWithHost lk.salyk.kg:30040 [07:54:17]ConnectInit lk.salyk.kg [07:54:17]Connected sock=10 [07:54:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 99 07 01 67 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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 28 E1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 80 02 00 35 04 06 00 82 83 B2 83 6F 8C 31 34 E5 E8 C0 80 C4 91 [07:54:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 81 DE 47 00 01 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 34 37 31 38 10 04 04 00 FE 80 02 00 F4 03 04 00 BC 87 90 66 B6 04 01 00 00 11 FF 24 7D 05 4A D5 FE [07:54:17]CommunicateWithHost err = 0 [07:54:17]CheckOFDResponse [07:54:17]1017 (14) - 77093643461234 [07:54:17]1041 (16) - 0000000000874718 [07:54:17]1040 (4) - 164094 [07:54:17]1012 (4) - 12.07.2024 01:32 [07:54:17]1206 (1) - 0 [07:54:17]OFD Sender: Remove packet 164094 [07:54:17]ProducePacketName [07:54:17]name=ofd_packets/00164094 [07:54:17]NVStorageDeleteData [07:54:17]Write to MH i2c: 01 00 00 5B 00 5B [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: 01 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: 01 07 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 26 0D 95 [07:54:17]RasterBufferAndPrint [07:54:17]line [07:54:17]line [07:54:17]line [07:54:17]line [07:54:17]line [07:54:17]written 0, free lines is 3373 [07:54:18]MH_Cut [07:54:18]Write to MH i2c: D1 01 00 62 00 01 34 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: D1 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: D1 01 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: D1 01 00 62 00 00 33 [07:54:18]Write to MH i2c: 01 00 00 63 00 63 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]OFD Sender: No OFD packet to send [07:54:18]*** Cut start [07:54:18]*** Partial cut [07:54:18]*** CUTSNS_PIN = 1 [07:54:18]*** CUTSNS_PIN = 0 [07:54:18]*** Brake cut motor [07:54:19]Read from MH i2c: 01 [07:54:19]MH_I2C_Read... [07:54:19]*** Stop cut motor [07:54:19]*** Cut end [07:54:19]Read from MH i2c: 01 07 00 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [07:54:19]process_action close_receipt done [07:54:19]requested_data is exist [07:54:19]produce_requested_data [07:54:19]requested_item fm.sn is exist - process it [07:54:19]wFMCommunicate request_size=4 [07:54:19]MH_SAM_APDU [07:54:19]CAPDU: 80 11 00 00 [07:54:19]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [07:54:19]Write i2c OK [07:54:19]MH_I2C_Read... [07:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:19]Read from MH i2c: E2 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: E2 17 00 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [07:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:54:19]wFMCommunicate OK [07:54:19]requested_item fd.num is exist - process it [07:54:19]SAM_PROTO_GetFieldsCounters [07:54:19]wFMCommunicate request_size=4 [07:54:19]MH_SAM_APDU [07:54:19]CAPDU: 80 13 00 00 [07:54:19]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [07:54:19]Write i2c OK [07:54:19]MH_I2C_Read... [07:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:19]Read from MH i2c: E2 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: E2 62 00 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:19]wFMCommunicate OK [07:54:19]SAM_PROTO_GetFieldsCounters done [07:54:19]requested_item shift.num is exist - process it [07:54:19]requested_item shift.opened is exist - process it [07:54:19]req_shift_opened [07:54:19]FM_GetShiftState [07:54:19]SAM_PROTO_GetShiftState [07:54:19]wFMCommunicate request_size=4 [07:54:19]MH_SAM_APDU [07:54:19]CAPDU: 80 13 01 00 [07:54:19]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [07:54:19]Write i2c OK [07:54:19]MH_I2C_Read... [07:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:19]Read from MH i2c: E2 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: E2 0E 00 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2D [07:54:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:54:19]wFMCommunicate OK [07:54:19]SAM_PROTO_GetShiftState done [07:54:19]FM_GetShiftState done [07:54:19]req_shift_opened done [07:54:19]requested_item shift.open_date is exist - process it [07:54:19]req_shift_open_date [07:54:19]req_shift_open_date done [07:54:19]produce_requested_data done [07:54:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164094,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [07:54:19]process_action_free close_receipt [07:54:19]json_value_free [07:54:19]json_value_free done [07:54:19]process_json_proto returns [07:54:19]Send response to host [07:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164094,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [07:54:19]free response buf [07:54:19]execute_script done [07:54:19]execute_script returns [07:54:19]free content buf [07:54:19]Sock 9.Close socket [07:54:19]Sock 9.Thread stoped [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:45]accept exits with 8 [07:56:45]New connection [07:56:45]New thread 3066568036 created [07:56:45]Thread 3066711396 joined [07:56:45]Waiting for new connection... [07:56:45] Sock 8.Parse request [07:56:45]Sock 8.Check first char [07:56:45]Sock 8.First char is OK [07:56:45]request: POST /json_proto HTTP/1.0 [07:56:45]Method: POST [07:56:45]URL: /json_proto [07:56:45]Method is POST - this is cgi request [07:56:45]url: /json_proto [07:56:45]query_string will be loaded in cgi processing [07:56:45]execute_cgi json_proto POST (null) [07:56:45]execute_cgi path=json_proto method=POST [07:56:45]POST find Content-Length [07:56:45]Host: 172.17.56.4:8080 [07:56:45]Content-Length: 677 [07:56:45]Content-Type: application/json [07:56:45] [07:56:45]POST finish read [07:56:45]Found Content-Length = 677 [07:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [07:56:45]execute_script... [07:56: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)458172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [07:56:45]POST & json_proto [07:56:45]process_json_proto [07:56:45]json parsed OK: [07:56:45]protocol is kg_v1.0 [07:56:45]action value=close_receipt [07:56:45]process_action close_receipt [07:56:45]cmd_close_receipt [07:56:45]MH_GetDate [07:56:45]Write to MH i2c: F0 00 00 67 00 56 [07:56:45]Write i2c OK [07:56:45]MH_I2C_Read... [07:56:45]Read from MH i2c: F0 [07:56:45]MH_I2C_Read... [07:56:45]Read from MH i2c: F0 09 00 [07:56:45]MH_I2C_Read... [07:56:45]Read from MH i2c: F0 09 00 67 00 00 BD E1 90 66 C9 DC B2 64 AE [07:56:45]GetLastDocTimeStamp 1720770856 [07:56:45]current date 1720771005 [07:56:45]FM_GetShiftState [07:56:45]SAM_PROTO_GetShiftState [07:56:45]wFMCommunicate request_size=4 [07:56:45]MH_SAM_APDU [07:56:45]CAPDU: 80 13 01 00 [07:56:45]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [07:56:45]Write i2c OK [07:56:45]MH_I2C_Read... [07:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:45]Read from MH i2c: E2 [07:56:45]MH_I2C_Read... [07:56:45]Read from MH i2c: E2 0E 00 [07:56:45]MH_I2C_Read... [07:56:45]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2F [07:56:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:56:45]wFMCommunicate OK [07:56:45]SAM_PROTO_GetShiftState done [07:56:45]FM_GetShiftState done [07:56:45]opened in 1720744654 [07:56:45]opened+sec_in_day 1720831054 [07:56:45]quantity*price = 10001 [07:56:45]sum+1 = 10003 [07:56:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 16 12.07.2024 07:56 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164095 ФПД: 191271068677938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T075645&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164095&fm=191271068677938&tin=02508201610067®Number=0000000000090829&sum=10000 [07:56:46]StoreToDocumentArchive [07:56:46]shift 445 fd 164095 [07:56:46]save to /storage/0445/doc_00164095 [07:56:46]save last doc name /storage/0445/doc_00164095 to /storage/kkm_last_doc_name [07:56:46]save OK [07:56:46]Clear old archive folders... [07:56:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:46]tlvbuf is 00D1B5D0 [07:56:46]SAM_PROTO_ClearQueue [07:56:46]wFMCommunicate request_size=4 [07:56:46]MH_SAM_APDU [07:56:46]CAPDU: 80 09 00 00 [07:56:46]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [07:56:46]Write i2c OK [07:56:46]MH_I2C_Read... [07:56:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:46]Read from MH i2c: E2 [07:56:46]MH_I2C_Read... [07:56:46]Read from MH i2c: E2 03 00 [07:56:46]MH_I2C_Read... [07:56:46]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [07:56:46]RAPDU: 90 00 [07:56:46]wFMCommunicate OK [07:56:46]SAM_PROTO_ClearQueue done [07:56:46]KKMCreateOFDPacket [07:56:46]OFDProtocolAddRootSTLVToBuf [07:56:46]FM_MakeSignedData [07:56:46]FM_MakeSignedData [07:56:46]SAM_PROTO_SignData [07:56:46]wFMCommunicate request_size=4 [07:56:46]MH_SAM_APDU [07:56:46]CAPDU: 80 0D 01 02 [07:56:46]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [07:56:46]Write i2c OK [07:56:46]MH_I2C_Read... [07:56:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:46]Read from MH i2c: E2 [07:56:46]MH_I2C_Read... [07:56:46]Read from MH i2c: E2 03 00 [07:56:46]MH_I2C_Read... [07:56:46]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [07:56:46]RAPDU: 90 00 [07:56:46]wFMCommunicate OK [07:56:46]wFMCommunicate request_size=255 [07:56:46]MH_SAM_APDU [07:56: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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BD E1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 80 02 00 35 04 06 00 AD [07:56:46]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BD E1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 80 02 00 35 04 06 00 AD 00 00 7A [07:56:46]Write i2c OK [07:56:46]MH_I2C_Read... [07:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:47]Read from MH i2c: E2 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [07:56:47]RAPDU: 90 00 [07:56:47]wFMCommunicate OK [07:56:47]wFMCommunicate request_size=10 [07:56:47]MH_SAM_APDU [07:56:47]CAPDU: 80 0D 02 02 05 F5 C4 1A B7 32 [07:56:47]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 F5 C4 1A B7 32 00 00 B8 [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:47]Read from MH i2c: E2 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [07:56:47]RAPDU: 90 00 [07:56:47]wFMCommunicate OK [07:56:47]wFMCommunicate request_size=4 [07:56:47]MH_SAM_APDU [07:56:47]CAPDU: 80 0D 03 02 [07:56:47]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:47]Read from MH i2c: E2 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 0B 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 0B 00 79 00 00 4F 4B 7A 53 B8 5F C1 A1 90 00 D5 [07:56:47]RAPDU: 4F 4B 7A 53 B8 5F C1 A1 90 00 [07:56:47]wFMCommunicate OK [07:56:47]SAM_PROTO_SignData done [07:56:47]FM_MakeSignedData done [07:56:47]CreateOFDProtocolMessage [07:56:47]wFMCommunicate request_size=4 [07:56:47]MH_SAM_APDU [07:56:47]CAPDU: 80 11 00 00 [07:56:47]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:47]Read from MH i2c: E2 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 17 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [07:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:56:47]wFMCommunicate OK [07:56:47]CreateOFDProtocolMessage done [07:56:47]OFDSenderStorePacket 164095 [07:56:47]StoreOFDPacket docnum=164095 [07:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6A 5F 07 01 E8 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BD E1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 80 02 00 35 04 06 00 AD F5 C4 1A B7 32 4F 4B 7A 53 B8 5F C1 A1 [07:56:47]CheckFolder [07:56:47]dirname=/storage/ofd_packets [07:56:47]CheckFolder done [07:56:47]ProducePacketName [07:56:47]name=ofd_packets/00164095 [07:56:47]NVStorageSaveData ofd_packets/00164095 [07:56:47]File name is /storage/ofd_packets/00164095 [07:56:47]Write 301 bytes [07:56:47]NVStorageSaveData done [07:56:47]OFDSenderStorePacket done [07:56:47]KKMCreateOFDPacket done [07:56:47]NVStorageSaveData kkm_last_timestamp [07:56:47]File name is /storage/kkm_last_timestamp [07:56:47]Write 4 bytes [07:56:47]NVStorageSaveData done [07:56:47]ExternCall_PrintAddStr [07:56:47]wPrintStart [07:56:47]Write to MH i2c: 01 00 00 7B 00 7B [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: 01 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: 01 07 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [07:56:47]RasterBufferAndPrint [07:56:47]line Счет N : (1)458172 [07:56:47]line ИНН: 02508201610067 [07:56:47]line Контрольно-Кассовый Чек [07:56:47]line ПРОДАЖА [07:56:47]line ТРК (МРК, ГНК) : 12 [07:56:47]line Товар: 2710124130 [07:56:47]line Аи-92-К-5 [07:56:47]line 1.520 * 65.80 [07:56:47]line = 100.02 [07:56:47]line НДС 12% НСП 1% [07:56:47]line > о реализуемом товаре [07:56:47]line ОКРУГЛЕНИЕ: -0.02 [07:56:47]line ИТОГО: 100.00 [07:56:47]line Внесено: 100.00 [07:56:47]line СДАЧА: 0.00 [07:56:47]line НСП 1% : 0.88 [07:56:47]line НДС 12% : 10.62 [07:56:47]line Наличными: 100.00 [07:56:47]line Безнал.: 0.00 [07:56:47]line Место: АЗС № 72 "Партнер Нефть" [07:56:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:56:47]line СНО: Общий режим [07:56:47]line Чек 16 12.07.2024 07:56 [07:56:47]line Смена: 445 ФФД: 1.0 [07:56:47]line ЗНМ: 0300000160 [07:56:47]line РНМ: 0000000000090829 [07:56:47]line Версия ККМ: 001 [07:56:47]line ФМ: 0000000000874718 [07:56:47]line ФД: 164095 [07:56:47]line ФПД: 191271068677938 [07:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T075645&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164095&fm=191271068677938&tin=02508201610067®Number=0000000000090829&sum=10000 [07:56:47]written 0, free lines is 4095 [07:56:47]OFD Sender: Processing packet 164095 [packets to send 104, broken 103] [07:56:47]ProducePacketName [07:56:47]name=ofd_packets/00164095 [07:56:47]OFD Sender: To server: pG, [07:56:47]CommunicateWithHost lk.salyk.kg:30040 [07:56:47]ConnectInit lk.salyk.kg [07:56:48]Write to MH i2c: 01 00 00 A5 00 A5 [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: 01 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: 01 07 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 F6 0C AE [07:56:48]RasterBufferAndPrint [07:56:48]line [07:56:48]line [07:56:48]line [07:56:48]line [07:56:48]line [07:56:48]written 0, free lines is 3322 [07:56:48]MH_Cut [07:56:48]Write to MH i2c: D1 01 00 AC 00 01 7E [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: D1 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: D1 01 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: D1 01 00 AC 00 00 7D [07:56:48]Write to MH i2c: 01 00 00 AD 00 AD [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]*** Cut start [07:56:48]*** Partial cut [07:56:48]*** CUTSNS_PIN = 1 [07:56:48]*** CUTSNS_PIN = 0 [07:56:48]*** Brake cut motor [07:56:49]Read from MH i2c: 01 [07:56:49]MH_I2C_Read... [07:56:49]*** Stop cut motor [07:56:49]*** Cut end [07:56:49]Read from MH i2c: 01 07 00 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [07:56:49]process_action close_receipt done [07:56:49]requested_data is exist [07:56:49]produce_requested_data [07:56:49]requested_item fm.sn is exist - process it [07:56:49]wFMCommunicate request_size=4 [07:56:49]MH_SAM_APDU [07:56:49]CAPDU: 80 11 00 00 [07:56:49]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [07:56:49]Write i2c OK [07:56:49]MH_I2C_Read... [07:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:49]Read from MH i2c: E2 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 17 00 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [07:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:56:49]wFMCommunicate OK [07:56:49]requested_item fd.num is exist - process it [07:56:49]SAM_PROTO_GetFieldsCounters [07:56:49]wFMCommunicate request_size=4 [07:56:49]MH_SAM_APDU [07:56:49]CAPDU: 80 13 00 00 [07:56:49]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [07:56:49]Write i2c OK [07:56:49]MH_I2C_Read... [07:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:49]Read from MH i2c: E2 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 62 00 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [07:56: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 80 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:49]wFMCommunicate OK [07:56:49]SAM_PROTO_GetFieldsCounters done [07:56:49]requested_item shift.num is exist - process it [07:56:49]requested_item shift.opened is exist - process it [07:56:49]req_shift_opened [07:56:49]FM_GetShiftState [07:56:49]SAM_PROTO_GetShiftState [07:56:49]wFMCommunicate request_size=4 [07:56:49]MH_SAM_APDU [07:56:49]CAPDU: 80 13 01 00 [07:56:49]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [07:56:49]Write i2c OK [07:56:49]MH_I2C_Read... [07:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:49]Read from MH i2c: E2 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 0E 00 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 77 [07:56:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [07:56:49]wFMCommunicate OK [07:56:49]SAM_PROTO_GetShiftState done [07:56:49]FM_GetShiftState done [07:56:49]req_shift_opened done [07:56:49]requested_item shift.open_date is exist - process it [07:56:49]req_shift_open_date [07:56:49]req_shift_open_date done [07:56:49]produce_requested_data done [07:56:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164095,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [07:56:49]process_action_free close_receipt [07:56:49]json_value_free [07:56:49]json_value_free done [07:56:49]process_json_proto returns [07:56:49]Send response to host [07:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164095,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [07:56:49]free response buf [07:56:49]execute_script done [07:56:49]execute_script returns [07:56:49]free content buf [07:56:49]Sock 8.Close socket [07:56:49]Sock 8.Thread stoped [07:58:58]ConnectInit Can't connect to host [07:58:58]CommunicateWithHost connect error [07:58:58]CommunicateWithHost err = -1 [07:58:58]OFD Sender: Server communicate error [07:59:03]OFD Sender: Processing packet 164095 [packets to send 104, broken 103] [07:59:03]ProducePacketName [07:59:03]name=ofd_packets/00164095 [07:59:03]OFD Sender: To server: pG, [07:59:03]CommunicateWithHost lk.salyk.kg:30040 [07:59:03]ConnectInit lk.salyk.kg [07:59:03]Connected sock=8 [07:59:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6A 5F 07 01 E8 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BD E1 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 80 02 00 35 04 06 00 AD F5 C4 1A B7 32 4F 4B 7A 53 B8 5F C1 A1 [07:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 00 3C 47 00 37 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 34 37 31 38 10 04 04 00 FF 80 02 00 F4 03 04 00 DB 88 90 66 B6 04 01 00 00 A6 AC CB 3B 93 B2 96 A7 [07:59:04]CommunicateWithHost err = 0 [07:59:04]CheckOFDResponse [07:59:04]1017 (14) - 77093643461234 [07:59:04]1041 (16) - 0000000000874718 [07:59:04]1040 (4) - 164095 [07:59:04]1012 (4) - 12.07.2024 01:37 [07:59:04]1206 (1) - 0 [07:59:04]OFD Sender: Remove packet 164095 [07:59:04]ProducePacketName [07:59:04]name=ofd_packets/00164095 [07:59:04]NVStorageDeleteData [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]accept exits with 9 [08:03:49]New connection [08:03:49]New thread 3066711396 created [08:03:49]Thread 3066568036 joined [08:03:49]Waiting for new connection... [08:03:49] Sock 9.Parse request [08:03:49]Sock 9.Check first char [08:03:49]Sock 9.First char is OK [08:03:49]request: POST /json_proto HTTP/1.0 [08:03:49]Method: POST [08:03:49]URL: /json_proto [08:03:49]Method is POST - this is cgi request [08:03:49]url: /json_proto [08:03:49]query_string will be loaded in cgi processing [08:03:49]execute_cgi json_proto POST (null) [08:03:49]execute_cgi path=json_proto method=POST [08:03:49]POST find Content-Length [08:03:49]Host: 172.17.56.4:8080 [08:03:49]Content-Length: 677 [08:03:49]Content-Type: application/json [08:03:49] [08:03:49]POST finish read [08:03:49]Found Content-Length = 677 [08:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.870, "sum" : 254.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 254.00, "total" : 254.00, "payments": [ { "type": 0, "sum" : 254.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:49]execute_script... [08:03:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.870, "sum" : 254.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 254.00, "total" : 254.00, "payments": [ { "type": 0, "sum" : 254.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:49]POST & json_proto [08:03:49]process_json_proto [08:03:49]json parsed OK: [08:03:49]protocol is kg_v1.0 [08:03:49]action value=close_receipt [08:03:49]process_action close_receipt [08:03:49]cmd_close_receipt [08:03:49]MH_GetDate [08:03:49]Write to MH i2c: F0 00 00 B1 00 A0 [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: F0 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: F0 09 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: F0 09 00 B1 00 00 65 E3 90 66 C9 DC B2 64 A2 [08:03:49]GetLastDocTimeStamp 1720771005 [08:03:49]current date 1720771429 [08:03:49]FM_GetShiftState [08:03:49]SAM_PROTO_GetShiftState [08:03:49]wFMCommunicate request_size=4 [08:03:49]MH_SAM_APDU [08:03:49]CAPDU: 80 13 01 00 [08:03:49]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [08:03:49]Write i2c OK [08:03:49]MH_I2C_Read... [08:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:49]Read from MH i2c: E2 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 0E 00 [08:03:49]MH_I2C_Read... [08:03:49]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 79 [08:03:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:03:49]wFMCommunicate OK [08:03:49]SAM_PROTO_GetShiftState done [08:03:49]FM_GetShiftState done [08:03:49]opened in 1720744654 [08:03:49]opened+sec_in_day 1720831054 [08:03:49]quantity*price = 25464 [08:03:49]sum+1 = 25466 [08:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 254.00 Внесено: 254.00 СДАЧА: 0.00 НСП 1% : 2.25 НДС 12% : 27.04 Наличными: 254.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 17 12.07.2024 08:03 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164096 ФПД: 20143471557787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T080349&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164096&fm=20143471557787&tin=02508201610067®Number=0000000000090829&sum=25400 [08:03:50]StoreToDocumentArchive [08:03:50]shift 445 fd 164096 [08:03:50]save to /storage/0445/doc_00164096 [08:03:50]save last doc name /storage/0445/doc_00164096 to /storage/kkm_last_doc_name [08:03:50]save OK [08:03:50]Clear old archive folders... [08:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:50]tlvbuf is 00D14940 [08:03:50]SAM_PROTO_ClearQueue [08:03:50]wFMCommunicate request_size=4 [08:03:50]MH_SAM_APDU [08:03:50]CAPDU: 80 09 00 00 [08:03:50]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:50]Read from MH i2c: E2 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [08:03:50]RAPDU: 90 00 [08:03:50]wFMCommunicate OK [08:03:50]SAM_PROTO_ClearQueue done [08:03:50]KKMCreateOFDPacket [08:03:50]OFDProtocolAddRootSTLVToBuf [08:03:50]FM_MakeSignedData [08:03:50]FM_MakeSignedData [08:03:50]SAM_PROTO_SignData [08:03:50]wFMCommunicate request_size=4 [08:03:50]MH_SAM_APDU [08:03:50]CAPDU: 80 0D 01 02 [08:03:50]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:50]Read from MH i2c: E2 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [08:03:50]RAPDU: 90 00 [08:03:50]wFMCommunicate OK [08:03:50]wFMCommunicate request_size=255 [08:03:50]MH_SAM_APDU [08:03:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 79 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 65 E3 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 81 02 00 35 04 06 00 12 [08:03:50]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 79 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 65 E3 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 81 02 00 35 04 06 00 12 00 00 72 [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:50]Read from MH i2c: E2 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [08:03:50]RAPDU: 90 00 [08:03:50]wFMCommunicate OK [08:03:50]wFMCommunicate request_size=10 [08:03:50]MH_SAM_APDU [08:03:50]CAPDU: 80 0D 02 02 05 52 04 77 7C 9B [08:03:50]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 52 04 77 7C 9B 00 00 2A [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:50]Read from MH i2c: E2 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [08:03:50]RAPDU: 90 00 [08:03:50]wFMCommunicate OK [08:03:50]wFMCommunicate request_size=4 [08:03:50]MH_SAM_APDU [08:03:50]CAPDU: 80 0D 03 02 [08:03:50]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:50]Read from MH i2c: E2 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 0B 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 0B 00 C3 00 00 31 2A 9C 08 58 10 1F 19 90 00 DE [08:03:50]RAPDU: 31 2A 9C 08 58 10 1F 19 90 00 [08:03:50]wFMCommunicate OK [08:03:50]SAM_PROTO_SignData done [08:03:50]FM_MakeSignedData done [08:03:50]CreateOFDProtocolMessage [08:03:50]wFMCommunicate request_size=4 [08:03:50]MH_SAM_APDU [08:03:50]CAPDU: 80 11 00 00 [08:03:50]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:50]Read from MH i2c: E2 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 17 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [08:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:03:50]wFMCommunicate OK [08:03:50]CreateOFDProtocolMessage done [08:03:50]OFDSenderStorePacket 164096 [08:03:50]StoreOFDPacket docnum=164096 [08:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A D7 07 01 8E 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 1E 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 79 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 65 E3 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 81 02 00 35 04 06 00 12 52 04 77 7C 9B 31 2A 9C 08 58 10 1F 19 [08:03:50]CheckFolder [08:03:50]dirname=/storage/ofd_packets [08:03:50]CheckFolder done [08:03:50]ProducePacketName [08:03:50]name=ofd_packets/00164096 [08:03:50]NVStorageSaveData ofd_packets/00164096 [08:03:50]File name is /storage/ofd_packets/00164096 [08:03:50]Write 301 bytes [08:03:50]NVStorageSaveData done [08:03:50]OFDSenderStorePacket done [08:03:50]KKMCreateOFDPacket done [08:03:50]NVStorageSaveData kkm_last_timestamp [08:03:50]File name is /storage/kkm_last_timestamp [08:03:50]Write 4 bytes [08:03:50]NVStorageSaveData done [08:03:50]ExternCall_PrintAddStr [08:03:50]wPrintStart [08:03:50]Write to MH i2c: 01 00 00 C5 00 C5 [08:03:50]Write i2c OK [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: 01 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: 01 07 00 [08:03:50]MH_I2C_Read... [08:03:50]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [08:03:50]RasterBufferAndPrint [08:03:50]line Счет N : (1)458173 [08:03:50]line ИНН: 02508201610067 [08:03:50]line Контрольно-Кассовый Чек [08:03:50]line ПРОДАЖА [08:03:50]line ТРК (МРК, ГНК) : 12 [08:03:50]line Товар: 2710124130 [08:03:50]line Аи-92-К-5 [08:03:50]line 3.870 * 65.80 [08:03:50]line = 254.65 [08:03:50]line НДС 12% НСП 1% [08:03:50]line > о реализуемом товаре [08:03:50]line ОКРУГЛЕНИЕ: -0.65 [08:03:50]line ИТОГО: 254.00 [08:03:50]line Внесено: 254.00 [08:03:50]line СДАЧА: 0.00 [08:03:50]line НСП 1% : 2.25 [08:03:50]line НДС 12% : 27.04 [08:03:50]line Наличными: 254.00 [08:03:50]line Безнал.: 0.00 [08:03:50]line Место: АЗС № 72 "Партнер Нефть" [08:03:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:03:50]line СНО: Общий режим [08:03:50]line Чек 17 12.07.2024 08:03 [08:03:50]line Смена: 445 ФФД: 1.0 [08:03:50]line ЗНМ: 0300000160 [08:03:50]line РНМ: 0000000000090829 [08:03:50]line Версия ККМ: 001 [08:03:50]line ФМ: 0000000000874718 [08:03:50]line ФД: 164096 [08:03:50]line ФПД: 20143471557787 [08:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T080349&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164096&fm=20143471557787&tin=02508201610067®Number=0000000000090829&sum=25400 [08:03:51]OFD Sender: Processing packet 164096 [packets to send 104, broken 103] [08:03:51]ProducePacketName [08:03:51]name=ofd_packets/00164096 [08:03:51]OFD Sender: To server: pG, [08:03:51]CommunicateWithHost lk.salyk.kg:30040 [08:03:51]ConnectInit lk.salyk.kg [08:03:51]written 0, free lines is 4095 [08:03:51]Connected sock=10 [08:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A D7 07 01 8E 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 1E 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 79 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 0A 00 00 00 00 07 04 06 00 38 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 65 E3 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 81 02 00 35 04 06 00 12 52 04 77 7C 9B 31 2A 9C 08 58 10 1F 19 [08:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 ED 1B 47 00 C7 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 81 02 00 F4 03 04 00 FA 89 90 66 B6 04 01 00 00 80 00 23 38 60 0B 42 B1 [08:03:51]CommunicateWithHost err = 0 [08:03:51]CheckOFDResponse [08:03:51]1017 (14) - 77093643461234 [08:03:51]1041 (16) - 0000000000874718 [08:03:51]1040 (4) - 164096 [08:03:51]1012 (4) - 12.07.2024 01:42 [08:03:51]1206 (1) - 0 [08:03:51]OFD Sender: Remove packet 164096 [08:03:51]ProducePacketName [08:03:51]name=ofd_packets/00164096 [08:03:51]NVStorageDeleteData [08:03:51]Write to MH i2c: 01 00 00 EF 00 EF [08:03:51]Write i2c OK [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: 01 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: 01 07 00 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 FD 0C FF [08:03:51]RasterBufferAndPrint [08:03:51]line [08:03:51]line [08:03:51]line [08:03:51]line [08:03:51]line [08:03:51]written 0, free lines is 3331 [08:03:51]MH_Cut [08:03:51]Write to MH i2c: D1 01 00 F6 00 01 C8 [08:03:51]Write i2c OK [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: D1 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: D1 01 00 [08:03:51]MH_I2C_Read... [08:03:51]Read from MH i2c: D1 01 00 F6 00 00 C7 [08:03:51]Write to MH i2c: 01 00 00 F7 00 F7 [08:03:51]Write i2c OK [08:03:51]MH_I2C_Read... [08:03:51]OFD Sender: No OFD packet to send [08:03:52]*** Cut start [08:03:52]*** Partial cut [08:03:52]*** CUTSNS_PIN = 1 [08:03:52]*** CUTSNS_PIN = 0 [08:03:52]*** Brake cut motor [08:03:52]Read from MH i2c: 01 [08:03:52]MH_I2C_Read... [08:03:52]*** Stop cut motor [08:03:52]*** Cut end [08:03:52]Read from MH i2c: 01 07 00 [08:03:52]MH_I2C_Read... [08:03:52]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [08:03:52]process_action close_receipt done [08:03:52]requested_data is exist [08:03:52]produce_requested_data [08:03:52]requested_item fm.sn is exist - process it [08:03:52]wFMCommunicate request_size=4 [08:03:52]MH_SAM_APDU [08:03:52]CAPDU: 80 11 00 00 [08:03:52]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [08:03:52]Write i2c OK [08:03:52]MH_I2C_Read... [08:03:52]Read from MH i2c: E2 [08:03:52]MH_I2C_Read... [08:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:52]Read from MH i2c: E2 17 00 [08:03:52]MH_I2C_Read... [08:03:52]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [08:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:03:52]wFMCommunicate OK [08:03:52]requested_item fd.num is exist - process it [08:03:52]SAM_PROTO_GetFieldsCounters [08:03:52]wFMCommunicate request_size=4 [08:03:52]MH_SAM_APDU [08:03:52]CAPDU: 80 13 00 00 [08:03:52]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [08:03:52]Write i2c OK [08:03:52]MH_I2C_Read... [08:03:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:53]Read from MH i2c: E2 [08:03:53]MH_I2C_Read... [08:03:53]Read from MH i2c: E2 62 00 [08:03:53]MH_I2C_Read... [08:03:53]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [08:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:53]wFMCommunicate OK [08:03:53]SAM_PROTO_GetFieldsCounters done [08:03:53]requested_item shift.num is exist - process it [08:03:53]requested_item shift.opened is exist - process it [08:03:53]req_shift_opened [08:03:53]FM_GetShiftState [08:03:53]SAM_PROTO_GetShiftState [08:03:53]wFMCommunicate request_size=4 [08:03:53]MH_SAM_APDU [08:03:53]CAPDU: 80 13 01 00 [08:03:53]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [08:03:53]Write i2c OK [08:03:53]MH_I2C_Read... [08:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:53]Read from MH i2c: E2 [08:03:53]MH_I2C_Read... [08:03:53]Read from MH i2c: E2 0E 00 [08:03:53]MH_I2C_Read... [08:03:53]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C1 [08:03:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:03:53]wFMCommunicate OK [08:03:53]SAM_PROTO_GetShiftState done [08:03:53]FM_GetShiftState done [08:03:53]req_shift_opened done [08:03:53]requested_item shift.open_date is exist - process it [08:03:53]req_shift_open_date [08:03:53]req_shift_open_date done [08:03:53]produce_requested_data done [08:03:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164096,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:03:53]process_action_free close_receipt [08:03:53]json_value_free [08:03:53]json_value_free done [08:03:53]process_json_proto returns [08:03:53]Send response to host [08:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164096,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:03:53]free response buf [08:03:53]execute_script done [08:03:53]execute_script returns [08:03:53]free content buf [08:03:53]Sock 9.Close socket [08:03:53]Sock 9.Thread stoped [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]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:04]accept exits with 8 [08:06:04]New connection [08:06:04]New thread 3066568036 created [08:06:04]Thread 3066711396 joined [08:06:04]Waiting for new connection... [08:06:04] Sock 8.Parse request [08:06:04]Sock 8.Check first char [08:06:04]Sock 8.First char is OK [08:06:04]request: POST /json_proto HTTP/1.0 [08:06:04]Method: POST [08:06:04]URL: /json_proto [08:06:04]Method is POST - this is cgi request [08:06:04]url: /json_proto [08:06:04]query_string will be loaded in cgi processing [08:06:04]execute_cgi json_proto POST (null) [08:06:04]execute_cgi path=json_proto method=POST [08:06:04]POST find Content-Length [08:06:04]Host: 172.17.56.4:8080 [08:06:04]Content-Length: 674 [08:06:04]Content-Type: application/json [08:06:04] [08:06:04]POST finish read [08:06:04]Found Content-Length = 674 [08:06:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:04]execute_script... [08:06: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)458174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:04]POST & json_proto [08:06:04]process_json_proto [08:06:04]json parsed OK: [08:06:04]protocol is kg_v1.0 [08:06:04]action value=close_receipt [08:06:04]process_action close_receipt [08:06:04]cmd_close_receipt [08:06:04]MH_GetDate [08:06:04]Write to MH i2c: F0 00 00 FB 00 EA [08:06:04]Write i2c OK [08:06:04]MH_I2C_Read... [08:06:04]Read from MH i2c: F0 [08:06:04]MH_I2C_Read... [08:06:04]Read from MH i2c: F0 09 00 [08:06:04]MH_I2C_Read... [08:06:04]Read from MH i2c: F0 09 00 FB 00 00 ED E3 90 66 C9 DC B2 64 74 [08:06:04]GetLastDocTimeStamp 1720771429 [08:06:04]current date 1720771565 [08:06:04]FM_GetShiftState [08:06:04]SAM_PROTO_GetShiftState [08:06:04]wFMCommunicate request_size=4 [08:06:04]MH_SAM_APDU [08:06:04]CAPDU: 80 13 01 00 [08:06:04]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [08:06:04]Write i2c OK [08:06:04]MH_I2C_Read... [08:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:04]Read from MH i2c: E2 [08:06:04]MH_I2C_Read... [08:06:04]Read from MH i2c: E2 0E 00 [08:06:04]MH_I2C_Read... [08:06:04]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C3 [08:06:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:06:04]wFMCommunicate OK [08:06:04]SAM_PROTO_GetShiftState done [08:06:04]FM_GetShiftState done [08:06:04]opened in 1720744654 [08:06:04]opened+sec_in_day 1720831054 [08:06:04]quantity*price = 40048 [08:06:04]sum+1 = 40049 [08:06:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 18 12.07.2024 08:06 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164097 ФПД: 66304742019721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T080605&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164097&fm=66304742019721&tin=02508201610067®Number=0000000000090829&sum=40000 [08:06:05]StoreToDocumentArchive [08:06:05]shift 445 fd 164097 [08:06:05]save to /storage/0445/doc_00164097 [08:06:05]save last doc name /storage/0445/doc_00164097 to /storage/kkm_last_doc_name [08:06:05]save OK [08:06:05]Clear old archive folders... [08:06:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:06:05]tlvbuf is 00D2D4F0 [08:06:05]SAM_PROTO_ClearQueue [08:06:05]wFMCommunicate request_size=4 [08:06:05]MH_SAM_APDU [08:06:05]CAPDU: 80 09 00 00 [08:06:05]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [08:06:05]Write i2c OK [08:06:05]MH_I2C_Read... [08:06:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:05]Read from MH i2c: E2 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: E2 03 00 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [08:06:05]RAPDU: 90 00 [08:06:05]wFMCommunicate OK [08:06:05]SAM_PROTO_ClearQueue done [08:06:05]KKMCreateOFDPacket [08:06:05]OFDProtocolAddRootSTLVToBuf [08:06:05]FM_MakeSignedData [08:06:05]FM_MakeSignedData [08:06:05]SAM_PROTO_SignData [08:06:05]wFMCommunicate request_size=4 [08:06:05]MH_SAM_APDU [08:06:05]CAPDU: 80 0D 01 02 [08:06:05]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [08:06:05]Write i2c OK [08:06:05]MH_I2C_Read... [08:06:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:05]Read from MH i2c: E2 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: E2 03 00 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [08:06:05]RAPDU: 90 00 [08:06:05]wFMCommunicate OK [08:06:05]wFMCommunicate request_size=255 [08:06:05]MH_SAM_APDU [08:06:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 ED E3 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 81 02 00 35 04 06 00 3C 4D C6 98 [08:06:05]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 ED E3 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 81 02 00 35 04 06 00 3C 4D C6 98 00 00 C5 [08:06:05]Write i2c OK [08:06:05]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [08:06:06]RAPDU: 90 00 [08:06:06]wFMCommunicate OK [08:06:06]wFMCommunicate request_size=7 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 0D 02 02 02 52 89 [08:06:06]Write to MH i2c: E2 0A 00 0C 01 80 0D 02 02 02 00 52 89 00 00 66 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [08:06:06]RAPDU: 90 00 [08:06:06]wFMCommunicate OK [08:06:06]wFMCommunicate request_size=4 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 0D 03 02 [08:06:06]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 0B 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 0B 00 0D 01 00 3A 1A 9A 29 4D 2E 33 3D 90 00 8C [08:06:06]RAPDU: 3A 1A 9A 29 4D 2E 33 3D 90 00 [08:06:06]wFMCommunicate OK [08:06:06]SAM_PROTO_SignData done [08:06:06]FM_MakeSignedData done [08:06:06]CreateOFDProtocolMessage [08:06:06]wFMCommunicate request_size=4 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 11 00 00 [08:06:06]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 17 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [08:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:06:06]wFMCommunicate OK [08:06:06]CreateOFDProtocolMessage done [08:06:06]OFDSenderStorePacket 164097 [08:06:06]StoreOFDPacket docnum=164097 [08:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 89 EA 04 01 B6 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 ED E3 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 81 02 00 35 04 06 00 3C 4D C6 98 52 89 3A 1A 9A 29 4D 2E 33 3D [08:06:06]CheckFolder [08:06:06]dirname=/storage/ofd_packets [08:06:06]CheckFolder done [08:06:06]ProducePacketName [08:06:06]name=ofd_packets/00164097 [08:06:06]NVStorageSaveData ofd_packets/00164097 [08:06:06]File name is /storage/ofd_packets/00164097 [08:06:06]Write 298 bytes [08:06:06]NVStorageSaveData done [08:06:06]OFDSenderStorePacket done [08:06:06]KKMCreateOFDPacket done [08:06:06]NVStorageSaveData kkm_last_timestamp [08:06:06]File name is /storage/kkm_last_timestamp [08:06:06]Write 4 bytes [08:06:06]NVStorageSaveData done [08:06:06]ExternCall_PrintAddStr [08:06:06]wPrintStart [08:06:06]Write to MH i2c: 01 00 00 0F 01 10 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: 01 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: 01 07 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [08:06:06]RasterBufferAndPrint [08:06:06]line Счет N : (1)458174 [08:06:06]line ИНН: 02508201610067 [08:06:06]line Контрольно-Кассовый Чек [08:06:06]line ПРОДАЖА [08:06:06]line ТРК (МРК, ГНК) : 11 [08:06:06]line Товар: 2710194210 [08:06:06]line ДТ-К-5 [08:06:06]line 5.570 * 71.90 [08:06:06]line = 400.48 [08:06:06]line НДС 12% НСП 1% [08:06:06]line > о реализуемом товаре [08:06:06]line ОКРУГЛЕНИЕ: -0.48 [08:06:06]line ИТОГО: 400.00 [08:06:06]line Внесено: 400.00 [08:06:06]line СДАЧА: 0.00 [08:06:06]line НСП 1% : 3.54 [08:06:06]line НДС 12% : 42.53 [08:06:06]line Наличными: 400.00 [08:06:06]line Безнал.: 0.00 [08:06:06]line Место: АЗС № 72 "Партнер Нефть" [08:06:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:06:06]line СНО: Общий режим [08:06:06]line Чек 18 12.07.2024 08:06 [08:06:06]line Смена: 445 ФФД: 1.0 [08:06:06]line ЗНМ: 0300000160 [08:06:06]line РНМ: 0000000000090829 [08:06:06]line Версия ККМ: 001 [08:06:06]line ФМ: 0000000000874718 [08:06:06]line ФД: 164097 [08:06:06]line ФПД: 66304742019721 [08:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T080605&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164097&fm=66304742019721&tin=02508201610067®Number=0000000000090829&sum=40000 [08:06:06]OFD Sender: Processing packet 164097 [packets to send 104, broken 103] [08:06:06]ProducePacketName [08:06:06]name=ofd_packets/00164097 [08:06:06]OFD Sender: To server: pG, [08:06:06]CommunicateWithHost lk.salyk.kg:30040 [08:06:06]ConnectInit lk.salyk.kg [08:06:06]written 0, free lines is 4095 [08:06:06]Connected sock=10 [08:06:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 89 EA 04 01 B6 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 ED E3 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 81 02 00 35 04 06 00 3C 4D C6 98 52 89 3A 1A 9A 29 4D 2E 33 3D [08:06:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 06 47 00 F0 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 34 37 31 38 10 04 04 00 01 81 02 00 F4 03 04 00 82 8A 90 66 B6 04 01 00 00 0A 78 DD 62 56 E7 41 A8 [08:06:07]CommunicateWithHost err = 0 [08:06:07]CheckOFDResponse [08:06:07]1017 (14) - 77093643461234 [08:06:07]1041 (16) - 0000000000874718 [08:06:07]1040 (4) - 164097 [08:06:07]1012 (4) - 12.07.2024 01:44 [08:06:07]1206 (1) - 0 [08:06:07]OFD Sender: Remove packet 164097 [08:06:07]ProducePacketName [08:06:07]name=ofd_packets/00164097 [08:06:07]NVStorageDeleteData [08:06:07]Write to MH i2c: 01 00 00 39 01 3A [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 07 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 02 0D 50 [08:06:07]RasterBufferAndPrint [08:06:07]line [08:06:07]line [08:06:07]line [08:06:07]line [08:06:07]line [08:06:07]written 0, free lines is 3336 [08:06:07]MH_Cut [08:06:07]Write to MH i2c: D1 01 00 40 01 01 13 [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: D1 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: D1 01 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: D1 01 00 40 01 00 12 [08:06:07]Write to MH i2c: 01 00 00 41 01 42 [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]OFD Sender: No OFD packet to send [08:06:07]*** Cut start [08:06:07]*** Partial cut [08:06:07]*** CUTSNS_PIN = 1 [08:06:07]*** CUTSNS_PIN = 0 [08:06:08]*** Brake cut motor [08:06:08]Read from MH i2c: 01 [08:06:08]MH_I2C_Read... [08:06:08]*** Stop cut motor [08:06:08]*** Cut end [08:06:08]Read from MH i2c: 01 07 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [08:06:08]process_action close_receipt done [08:06:08]requested_data is exist [08:06:08]produce_requested_data [08:06:08]requested_item fm.sn is exist - process it [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 11 00 00 [08:06:08]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:08]Read from MH i2c: E2 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 17 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [08:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:06:08]wFMCommunicate OK [08:06:08]requested_item fd.num is exist - process it [08:06:08]SAM_PROTO_GetFieldsCounters [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 13 00 00 [08:06:08]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:08]Read from MH i2c: E2 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 62 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [08:06: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:08]wFMCommunicate OK [08:06:08]SAM_PROTO_GetFieldsCounters done [08:06:08]requested_item shift.num is exist - process it [08:06:08]requested_item shift.opened is exist - process it [08:06:08]req_shift_opened [08:06:08]FM_GetShiftState [08:06:08]SAM_PROTO_GetShiftState [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 13 01 00 [08:06:08]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:08]Read from MH i2c: E2 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 0E 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0C [08:06:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:06:08]wFMCommunicate OK [08:06:08]SAM_PROTO_GetShiftState done [08:06:08]FM_GetShiftState done [08:06:08]req_shift_opened done [08:06:08]requested_item shift.open_date is exist - process it [08:06:08]req_shift_open_date [08:06:08]req_shift_open_date done [08:06:08]produce_requested_data done [08:06:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164097,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:06:08]process_action_free close_receipt [08:06:08]json_value_free [08:06:08]json_value_free done [08:06:08]process_json_proto returns [08:06:08]Send response to host [08:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164097,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:06:08]free response buf [08:06:08]execute_script done [08:06:08]execute_script returns [08:06:08]free content buf [08:06:08]Sock 8.Close socket [08:06:08]Sock 8.Thread stoped [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:10]accept exits with 9 [08:07:10]New connection [08:07:10]New thread 3066711396 created [08:07:10]Thread 3066568036 joined [08:07:10]Waiting for new connection... [08:07:10] Sock 9.Parse request [08:07:10]Sock 9.Check first char [08:07:10]Sock 9.First char is OK [08:07:10]request: POST /json_proto HTTP/1.0 [08:07:10]Method: POST [08:07:10]URL: /json_proto [08:07:10]Method is POST - this is cgi request [08:07:10]url: /json_proto [08:07:10]query_string will be loaded in cgi processing [08:07:10]execute_cgi json_proto POST (null) [08:07:10]execute_cgi path=json_proto method=POST [08:07:10]POST find Content-Length [08:07:10]Host: 172.17.56.4:8080 [08:07:10]Content-Length: 674 [08:07:10]Content-Type: application/json [08:07:10] [08:07:10]POST finish read [08:07:10]Found Content-Length = 674 [08:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458175", "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" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:07:10]execute_script... [08:07: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)458175", "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" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:07:10]POST & json_proto [08:07:10]process_json_proto [08:07:10]json parsed OK: [08:07:10]protocol is kg_v1.0 [08:07:10]action value=close_receipt [08:07:10]process_action close_receipt [08:07:10]cmd_close_receipt [08:07:10]MH_GetDate [08:07:10]Write to MH i2c: F0 00 00 45 01 35 [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: F0 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: F0 09 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: F0 09 00 45 01 00 2E E4 90 66 C9 DC B2 64 01 [08:07:10]GetLastDocTimeStamp 1720771565 [08:07:10]current date 1720771630 [08:07:10]FM_GetShiftState [08:07:10]SAM_PROTO_GetShiftState [08:07:10]wFMCommunicate request_size=4 [08:07:10]MH_SAM_APDU [08:07:10]CAPDU: 80 13 01 00 [08:07:10]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:10]Read from MH i2c: E2 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 0E 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0E [08:07:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:07:10]wFMCommunicate OK [08:07:10]SAM_PROTO_GetShiftState done [08:07:10]FM_GetShiftState done [08:07:10]opened in 1720744654 [08:07:10]opened+sec_in_day 1720831054 [08:07:10]quantity*price = 70030 [08:07:10]sum+1 = 70032 [08:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 19 12.07.2024 08:07 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164098 ФПД: 203145599921014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T080710&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164098&fm=203145599921014&tin=02508201610067®Number=0000000000090829&sum=70000 [08:07:11]StoreToDocumentArchive [08:07:11]shift 445 fd 164098 [08:07:11]save to /storage/0445/doc_00164098 [08:07:11]save last doc name /storage/0445/doc_00164098 to /storage/kkm_last_doc_name [08:07:11]save OK [08:07:11]Clear old archive folders... [08:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:07:11]tlvbuf is 00D2D0E0 [08:07:11]SAM_PROTO_ClearQueue [08:07:11]wFMCommunicate request_size=4 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 09 00 00 [08:07:11]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:11]Read from MH i2c: E2 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [08:07:11]RAPDU: 90 00 [08:07:11]wFMCommunicate OK [08:07:11]SAM_PROTO_ClearQueue done [08:07:11]KKMCreateOFDPacket [08:07:11]OFDProtocolAddRootSTLVToBuf [08:07:11]FM_MakeSignedData [08:07:11]FM_MakeSignedData [08:07:11]SAM_PROTO_SignData [08:07:11]wFMCommunicate request_size=4 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 0D 01 02 [08:07:11]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:11]Read from MH i2c: E2 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [08:07:11]RAPDU: 90 00 [08:07:11]wFMCommunicate OK [08:07:11]wFMCommunicate request_size=255 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 2E E4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 81 02 00 35 04 06 00 B8 C2 85 52 [08:07:11]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 2E E4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 81 02 00 35 04 06 00 B8 C2 85 52 00 00 81 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:12]Read from MH i2c: E2 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 03 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [08:07:12]RAPDU: 90 00 [08:07:12]wFMCommunicate OK [08:07:12]wFMCommunicate request_size=7 [08:07:12]MH_SAM_APDU [08:07:12]CAPDU: 80 0D 02 02 02 2B 76 [08:07:12]Write to MH i2c: E2 0A 00 56 01 80 0D 02 02 02 00 2B 76 00 00 76 [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:12]Read from MH i2c: E2 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 03 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [08:07:12]RAPDU: 90 00 [08:07:12]wFMCommunicate OK [08:07:12]wFMCommunicate request_size=4 [08:07:12]MH_SAM_APDU [08:07:12]CAPDU: 80 0D 03 02 [08:07:12]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:12]Read from MH i2c: E2 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 0B 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 0B 00 57 01 00 C6 34 49 F3 D2 11 06 6C 90 00 5F [08:07:12]RAPDU: C6 34 49 F3 D2 11 06 6C 90 00 [08:07:12]wFMCommunicate OK [08:07:12]SAM_PROTO_SignData done [08:07:12]FM_MakeSignedData done [08:07:12]CreateOFDProtocolMessage [08:07:12]wFMCommunicate request_size=4 [08:07:12]MH_SAM_APDU [08:07:12]CAPDU: 80 11 00 00 [08:07:12]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:12]Read from MH i2c: E2 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 17 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [08:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:07:12]wFMCommunicate OK [08:07:12]CreateOFDProtocolMessage done [08:07:12]OFDSenderStorePacket 164098 [08:07:12]StoreOFDPacket docnum=164098 [08:07:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AF 21 04 01 6A DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 2E E4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 81 02 00 35 04 06 00 B8 C2 85 52 2B 76 C6 34 49 F3 D2 11 06 6C [08:07:12]CheckFolder [08:07:12]dirname=/storage/ofd_packets [08:07:12]CheckFolder done [08:07:12]ProducePacketName [08:07:12]name=ofd_packets/00164098 [08:07:12]NVStorageSaveData ofd_packets/00164098 [08:07:12]File name is /storage/ofd_packets/00164098 [08:07:12]Write 298 bytes [08:07:12]NVStorageSaveData done [08:07:12]OFDSenderStorePacket done [08:07:12]KKMCreateOFDPacket done [08:07:12]NVStorageSaveData kkm_last_timestamp [08:07:12]File name is /storage/kkm_last_timestamp [08:07:12]Write 4 bytes [08:07:12]NVStorageSaveData done [08:07:12]ExternCall_PrintAddStr [08:07:12]wPrintStart [08:07:12]Write to MH i2c: 01 00 00 59 01 5A [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: 01 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: 01 07 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [08:07:12]RasterBufferAndPrint [08:07:12]line Счет N : (1)458175 [08:07:12]line ИНН: 02508201610067 [08:07:12]line Контрольно-Кассовый Чек [08:07:12]line ПРОДАЖА [08:07:12]line ТРК (МРК, ГНК) : 21 [08:07:12]line Товар: 2710194210 [08:07:12]line ДТ-К-5 [08:07:12]line 9.740 * 71.90 [08:07:12]line = 700.31 [08:07:12]line НДС 12% НСП 1% [08:07:12]line > о реализуемом товаре [08:07:12]line ОКРУГЛЕНИЕ: -0.31 [08:07:12]line ИТОГО: 700.00 [08:07:12]line Внесено: 700.00 [08:07:12]line СДАЧА: 0.00 [08:07:12]line НСП 1% : 6.20 [08:07:12]line НДС 12% : 74.37 [08:07:12]line Наличными: 700.00 [08:07:12]line Безнал.: 0.00 [08:07:12]line Место: АЗС № 72 "Партнер Нефть" [08:07:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:07:12]line СНО: Общий режим [08:07:12]line Чек 19 12.07.2024 08:07 [08:07:12]line Смена: 445 ФФД: 1.0 [08:07:12]line ЗНМ: 0300000160 [08:07:12]line РНМ: 0000000000090829 [08:07:12]line Версия ККМ: 001 [08:07:12]line ФМ: 0000000000874718 [08:07:12]line ФД: 164098 [08:07:12]line ФПД: 203145599921014 [08:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T080710&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164098&fm=203145599921014&tin=02508201610067®Number=0000000000090829&sum=70000 [08:07:12]OFD Sender: Processing packet 164098 [packets to send 104, broken 103] [08:07:12]ProducePacketName [08:07:12]name=ofd_packets/00164098 [08:07:12]OFD Sender: To server: pG, [08:07:12]CommunicateWithHost lk.salyk.kg:30040 [08:07:12]ConnectInit lk.salyk.kg [08:07:12]written 0, free lines is 4095 [08:07:12]Connected sock=10 [08:07:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AF 21 04 01 6A DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 2E E4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 81 02 00 35 04 06 00 B8 C2 85 52 2B 76 C6 34 49 F3 D2 11 06 6C [08:07:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 8D 47 00 E2 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 34 37 31 38 10 04 04 00 02 81 02 00 F4 03 04 00 C3 8A 90 66 B6 04 01 00 00 C7 85 3A CC 09 DC 88 36 [08:07:12]CommunicateWithHost err = 0 [08:07:12]CheckOFDResponse [08:07:12]1017 (14) - 77093643461234 [08:07:12]1041 (16) - 0000000000874718 [08:07:12]1040 (4) - 164098 [08:07:12]1012 (4) - 12.07.2024 01:45 [08:07:12]1206 (1) - 0 [08:07:12]OFD Sender: Remove packet 164098 [08:07:12]ProducePacketName [08:07:12]name=ofd_packets/00164098 [08:07:12]NVStorageDeleteData [08:07:13]Write to MH i2c: 01 00 00 83 01 84 [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: 01 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: 01 07 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 F3 0C 8A [08:07:13]RasterBufferAndPrint [08:07:13]line [08:07:13]line [08:07:13]line [08:07:13]line [08:07:13]line [08:07:13]written 0, free lines is 3321 [08:07:13]MH_Cut [08:07:13]Write to MH i2c: D1 01 00 8A 01 01 5D [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: D1 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: D1 01 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: D1 01 00 8A 01 00 5C [08:07:13]Write to MH i2c: 01 00 00 8B 01 8C [08:07:13]Write i2c OK [08:07:13]MH_I2C_Read... [08:07:13]OFD Sender: No OFD packet to send [08:07:13]*** Cut start [08:07:13]*** Partial cut [08:07:13]*** CUTSNS_PIN = 1 [08:07:13]*** CUTSNS_PIN = 0 [08:07:14]*** Brake cut motor [08:07:14]Read from MH i2c: 01 [08:07:14]MH_I2C_Read... [08:07:14]*** Stop cut motor [08:07:14]*** Cut end [08:07:14]Read from MH i2c: 01 07 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [08:07:14]process_action close_receipt done [08:07:14]requested_data is exist [08:07:14]produce_requested_data [08:07:14]requested_item fm.sn is exist - process it [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 11 00 00 [08:07:14]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 17 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [08:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:07:14]wFMCommunicate OK [08:07:14]requested_item fd.num is exist - process it [08:07:14]SAM_PROTO_GetFieldsCounters [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 13 00 00 [08:07:14]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 62 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [08:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:14]wFMCommunicate OK [08:07:14]SAM_PROTO_GetFieldsCounters done [08:07:14]requested_item shift.num is exist - process it [08:07:14]requested_item shift.opened is exist - process it [08:07:14]req_shift_opened [08:07:14]FM_GetShiftState [08:07:14]SAM_PROTO_GetShiftState [08:07:14]wFMCommunicate request_size=4 [08:07:14]MH_SAM_APDU [08:07:14]CAPDU: 80 13 01 00 [08:07:14]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [08:07:14]Write i2c OK [08:07:14]MH_I2C_Read... [08:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:14]Read from MH i2c: E2 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 0E 00 [08:07:14]MH_I2C_Read... [08:07:14]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 56 [08:07:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:07:14]wFMCommunicate OK [08:07:14]SAM_PROTO_GetShiftState done [08:07:14]FM_GetShiftState done [08:07:14]req_shift_opened done [08:07:14]requested_item shift.open_date is exist - process it [08:07:14]req_shift_open_date [08:07:14]req_shift_open_date done [08:07:14]produce_requested_data done [08:07:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164098,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:07:14]process_action_free close_receipt [08:07:14]json_value_free [08:07:14]json_value_free done [08:07:14]process_json_proto returns [08:07:14]Send response to host [08:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164098,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:07:14]free response buf [08:07:14]execute_script done [08:07:14]execute_script returns [08:07:14]free content buf [08:07:14]Sock 9.Close socket [08:07:14]Sock 9.Thread stoped [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:31]accept exits with 8 [08:14:31]New connection [08:14:31]New thread 3066568036 created [08:14:31]Thread 3066711396 joined [08:14:31]Waiting for new connection... [08:14:31] Sock 8.Parse request [08:14:31]Sock 8.Check first char [08:14:31]Sock 8.First char is OK [08:14:31]request: POST /json_proto HTTP/1.0 [08:14:31]Method: POST [08:14:31]URL: /json_proto [08:14:31]Method is POST - this is cgi request [08:14:31]url: /json_proto [08:14:31]query_string will be loaded in cgi processing [08:14:31]execute_cgi json_proto POST (null) [08:14:31]execute_cgi path=json_proto method=POST [08:14:31]POST find Content-Length [08:14:31]Host: 172.17.56.4:8080 [08:14:31]Content-Length: 682 [08:14:31]Content-Type: application/json [08:14:31] [08:14:31]POST finish read [08:14:31]Found Content-Length = 682 [08:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:31]execute_script... [08:14:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:31]POST & json_proto [08:14:31]process_json_proto [08:14:31]json parsed OK: [08:14:31]protocol is kg_v1.0 [08:14:31]action value=close_receipt [08:14:31]process_action close_receipt [08:14:31]cmd_close_receipt [08:14:31]MH_GetDate [08:14:31]Write to MH i2c: F0 00 00 8F 01 7F [08:14:31]Write i2c OK [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: F0 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: F0 09 00 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: F0 09 00 8F 01 00 E7 E5 90 66 C9 DC B2 64 05 [08:14:31]GetLastDocTimeStamp 1720771630 [08:14:31]current date 1720772071 [08:14:31]FM_GetShiftState [08:14:31]SAM_PROTO_GetShiftState [08:14:31]wFMCommunicate request_size=4 [08:14:31]MH_SAM_APDU [08:14:31]CAPDU: 80 13 01 00 [08:14:31]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [08:14:31]Write i2c OK [08:14:31]MH_I2C_Read... [08:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:31]Read from MH i2c: E2 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 0E 00 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 58 [08:14:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:14:31]wFMCommunicate OK [08:14:31]SAM_PROTO_GetShiftState done [08:14:31]FM_GetShiftState done [08:14:31]opened in 1720744654 [08:14:31]opened+sec_in_day 1720831054 [08:14:31]quantity*price = 100016 [08:14:31]sum+1 = 100017 [08:14: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 20 12.07.2024 08:14 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164099 ФПД: 252657177633440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T081431&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164099&fm=252657177633440&tin=02508201610067®Number=0000000000090829&sum=100000 [08:14:32]StoreToDocumentArchive [08:14:32]shift 445 fd 164099 [08:14:32]save to /storage/0445/doc_00164099 [08:14:32]save last doc name /storage/0445/doc_00164099 to /storage/kkm_last_doc_name [08:14:32]save OK [08:14:32]Clear old archive folders... [08:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:32]tlvbuf is 00D0ED60 [08:14:32]SAM_PROTO_ClearQueue [08:14:32]wFMCommunicate request_size=4 [08:14:32]MH_SAM_APDU [08:14:32]CAPDU: 80 09 00 00 [08:14:32]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [08:14:32]Write i2c OK [08:14:32]MH_I2C_Read... [08:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:32]Read from MH i2c: E2 [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: E2 03 00 [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [08:14:32]RAPDU: 90 00 [08:14:32]wFMCommunicate OK [08:14:32]SAM_PROTO_ClearQueue done [08:14:32]KKMCreateOFDPacket [08:14:32]OFDProtocolAddRootSTLVToBuf [08:14:32]FM_MakeSignedData [08:14:32]FM_MakeSignedData [08:14:32]SAM_PROTO_SignData [08:14:32]wFMCommunicate request_size=4 [08:14:32]MH_SAM_APDU [08:14:32]CAPDU: 80 0D 01 02 [08:14:32]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [08:14:32]Write i2c OK [08:14:32]MH_I2C_Read... [08:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:32]Read from MH i2c: E2 [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: E2 03 00 [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [08:14:32]RAPDU: 90 00 [08:14:32]wFMCommunicate OK [08:14:32]wFMCommunicate request_size=255 [08:14:32]MH_SAM_APDU [08:14: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E7 E5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 81 02 00 35 04 06 00 E5 [08:14:32]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E7 E5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 81 02 00 35 04 06 00 E5 00 00 32 [08:14:32]Write i2c OK [08:14:32]MH_I2C_Read... [08:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:33]Read from MH i2c: E2 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 03 00 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [08:14:33]RAPDU: 90 00 [08:14:33]wFMCommunicate OK [08:14:33]wFMCommunicate request_size=10 [08:14:33]MH_SAM_APDU [08:14:33]CAPDU: 80 0D 02 02 05 CA 55 52 A2 A0 [08:14:33]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 CA 55 52 A2 A0 00 00 D8 [08:14:33]Write i2c OK [08:14:33]MH_I2C_Read... [08:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:33]Read from MH i2c: E2 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 03 00 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [08:14:33]RAPDU: 90 00 [08:14:33]wFMCommunicate OK [08:14:33]wFMCommunicate request_size=4 [08:14:33]MH_SAM_APDU [08:14:33]CAPDU: 80 0D 03 02 [08:14:33]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [08:14:33]Write i2c OK [08:14:33]MH_I2C_Read... [08:14:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:33]Read from MH i2c: E2 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 0B 00 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 0B 00 A1 01 00 1D 08 29 CE 33 3D 88 79 90 00 AB [08:14:33]RAPDU: 1D 08 29 CE 33 3D 88 79 90 00 [08:14:33]wFMCommunicate OK [08:14:33]SAM_PROTO_SignData done [08:14:33]FM_MakeSignedData done [08:14:33]CreateOFDProtocolMessage [08:14:33]wFMCommunicate request_size=4 [08:14:33]MH_SAM_APDU [08:14:33]CAPDU: 80 11 00 00 [08:14:33]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [08:14:33]Write i2c OK [08:14:33]MH_I2C_Read... [08:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:33]Read from MH i2c: E2 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 17 00 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [08:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:14:33]wFMCommunicate OK [08:14:33]CreateOFDProtocolMessage done [08:14:33]OFDSenderStorePacket 164099 [08:14:33]StoreOFDPacket docnum=164099 [08:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 75 07 01 C0 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E7 E5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 81 02 00 35 04 06 00 E5 CA 55 52 A2 A0 1D 08 29 CE 33 3D 88 79 [08:14:33]CheckFolder [08:14:33]dirname=/storage/ofd_packets [08:14:33]CheckFolder done [08:14:33]ProducePacketName [08:14:33]name=ofd_packets/00164099 [08:14:33]NVStorageSaveData ofd_packets/00164099 [08:14:33]File name is /storage/ofd_packets/00164099 [08:14:33]Write 301 bytes [08:14:33]NVStorageSaveData done [08:14:33]OFDSenderStorePacket done [08:14:33]KKMCreateOFDPacket done [08:14:33]NVStorageSaveData kkm_last_timestamp [08:14:33]File name is /storage/kkm_last_timestamp [08:14:33]Write 4 bytes [08:14:33]NVStorageSaveData done [08:14:33]OFD Sender: Processing packet 164099 [packets to send 104, broken 103] [08:14:33]ProducePacketName [08:14:33]name=ofd_packets/00164099 [08:14:33]OFD Sender: To server: pG, [08:14:33]CommunicateWithHost lk.salyk.kg:30040 [08:14:33]ConnectInit lk.salyk.kg [08:14:33]ExternCall_PrintAddStr [08:14:33]wPrintStart [08:14:33]Write to MH i2c: 01 00 00 A3 01 A4 [08:14:33]Write i2c OK [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: 01 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: 01 07 00 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [08:14:33]RasterBufferAndPrint [08:14:33]line Счет N : (1)458176 [08:14:33]line ИНН: 02508201610067 [08:14:33]line Контрольно-Кассовый Чек [08:14:33]line ПРОДАЖА [08:14:33]line ТРК (МРК, ГНК) : 12 [08:14:33]line Товар: 2710124130 [08:14:33]line Аи-92-К-5 [08:14:33]line 15.200 * 65.80 [08:14:33]line = 1000.16 [08:14:33]line НДС 12% НСП 1% [08:14:33]line > о реализуемом товаре [08:14:33]line ОКРУГЛЕНИЕ: -0.16 [08:14:33]line ИТОГО: 1000.00 [08:14:33]line Внесено: 1000.00 [08:14:33]line СДАЧА: 0.00 [08:14:33]line НСП 1% : 8.85 [08:14:33]line НДС 12% : 106.21 [08:14:33]line Наличными: 1000.00 [08:14:33]line Безнал.: 0.00 [08:14:33]line Место: АЗС № 72 "Партнер Нефть" [08:14:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:14:33]line СНО: Общий режим [08:14:33]line Чек 20 12.07.2024 08:14 [08:14:33]line Смена: 445 ФФД: 1.0 [08:14:33]line ЗНМ: 0300000160 [08:14:33]line РНМ: 0000000000090829 [08:14:33]line Версия ККМ: 001 [08:14:33]line ФМ: 0000000000874718 [08:14:33]line ФД: 164099 [08:14:33]line ФПД: 252657177633440 [08:14:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T081431&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164099&fm=252657177633440&tin=02508201610067®Number=0000000000090829&sum=100000 [08:14:33]Connected sock=11 [08:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 75 07 01 C0 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E7 E5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 81 02 00 35 04 06 00 E5 CA 55 52 A2 A0 1D 08 29 CE 33 3D 88 79 [08:14:33]written 0, free lines is 4095 [08:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1A 46 47 00 73 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 81 02 00 F4 03 04 00 7C 8C 90 66 B6 04 01 00 00 15 F8 74 90 09 CC 0B 15 [08:14:33]CommunicateWithHost err = 0 [08:14:33]CheckOFDResponse [08:14:33]1017 (14) - 77093643461234 [08:14:33]1041 (16) - 0000000000874718 [08:14:33]1040 (4) - 164099 [08:14:33]1012 (4) - 12.07.2024 01:53 [08:14:33]1206 (1) - 0 [08:14:33]OFD Sender: Remove packet 164099 [08:14:33]ProducePacketName [08:14:33]name=ofd_packets/00164099 [08:14:33]NVStorageDeleteData [08:14:34]Write to MH i2c: 01 00 00 CD 01 CE [08:14:34]Write i2c OK [08:14:34]MH_I2C_Read... [08:14:34]Read from MH i2c: 01 [08:14:34]MH_I2C_Read... [08:14:34]Read from MH i2c: 01 07 00 [08:14:34]MH_I2C_Read... [08:14:34]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 00 0D E2 [08:14:34]RasterBufferAndPrint [08:14:34]line [08:14:34]line [08:14:34]line [08:14:34]line [08:14:34]line [08:14:34]written 0, free lines is 3334 [08:14:34]MH_Cut [08:14:34]Write to MH i2c: D1 01 00 D4 01 01 A7 [08:14:34]Write i2c OK [08:14:34]MH_I2C_Read... [08:14:34]Read from MH i2c: D1 [08:14:34]MH_I2C_Read... [08:14:34]Read from MH i2c: D1 01 00 [08:14:34]MH_I2C_Read... [08:14:34]Read from MH i2c: D1 01 00 D4 01 00 A6 [08:14:34]Write to MH i2c: 01 00 00 D5 01 D6 [08:14:34]Write i2c OK [08:14:34]MH_I2C_Read... [08:14:34]OFD Sender: No OFD packet to send [08:14:34]*** Cut start [08:14:34]*** Partial cut [08:14:34]*** CUTSNS_PIN = 1 [08:14:34]*** CUTSNS_PIN = 0 [08:14:35]*** Brake cut motor [08:14:35]Read from MH i2c: 01 [08:14:35]MH_I2C_Read... [08:14:35]*** Stop cut motor [08:14:35]*** Cut end [08:14:35]Read from MH i2c: 01 07 00 [08:14:35]MH_I2C_Read... [08:14:35]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [08:14:35]process_action close_receipt done [08:14:35]requested_data is exist [08:14:35]produce_requested_data [08:14:35]requested_item fm.sn is exist - process it [08:14:35]wFMCommunicate request_size=4 [08:14:35]MH_SAM_APDU [08:14:35]CAPDU: 80 11 00 00 [08:14:35]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [08:14:35]Write i2c OK [08:14:35]MH_I2C_Read... [08:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:35]Read from MH i2c: E2 [08:14:35]MH_I2C_Read... [08:14:35]Read from MH i2c: E2 17 00 [08:14:35]MH_I2C_Read... [08:14:35]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [08:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:14:35]wFMCommunicate OK [08:14:35]requested_item fd.num is exist - process it [08:14:35]SAM_PROTO_GetFieldsCounters [08:14:35]wFMCommunicate request_size=4 [08:14:35]MH_SAM_APDU [08:14:35]CAPDU: 80 13 00 00 [08:14:35]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [08:14:35]Write i2c OK [08:14:35]MH_I2C_Read... [08:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:35]Read from MH i2c: E2 [08:14:35]MH_I2C_Read... [08:14:35]Read from MH i2c: E2 62 00 [08:14:35]MH_I2C_Read... [08:14:35]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [08:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:35]wFMCommunicate OK [08:14:35]SAM_PROTO_GetFieldsCounters done [08:14:35]requested_item shift.num is exist - process it [08:14:35]requested_item shift.opened is exist - process it [08:14:35]req_shift_opened [08:14:35]FM_GetShiftState [08:14:35]SAM_PROTO_GetShiftState [08:14:35]wFMCommunicate request_size=4 [08:14:35]MH_SAM_APDU [08:14:35]CAPDU: 80 13 01 00 [08:14:35]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [08:14:35]Write i2c OK [08:14:35]MH_I2C_Read... [08:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:35]Read from MH i2c: E2 [08:14:35]MH_I2C_Read... [08:14:35]Read from MH i2c: E2 0E 00 [08:14:35]MH_I2C_Read... [08:14:35]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A0 [08:14:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:14:35]wFMCommunicate OK [08:14:35]SAM_PROTO_GetShiftState done [08:14:35]FM_GetShiftState done [08:14:35]req_shift_opened done [08:14:35]requested_item shift.open_date is exist - process it [08:14:35]req_shift_open_date [08:14:35]req_shift_open_date done [08:14:35]produce_requested_data done [08:14:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164099,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:14:35]process_action_free close_receipt [08:14:35]json_value_free [08:14:35]json_value_free done [08:14:35]process_json_proto returns [08:14:35]Send response to host [08:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164099,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:14:35]free response buf [08:14:35]execute_script done [08:14:35]execute_script returns [08:14:35]free content buf [08:14:35]Sock 8.Close socket [08:14:35]Sock 8.Thread stoped [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:18]accept exits with 9 [08:15:18]New connection [08:15:18]New thread 3066711396 created [08:15:18]Thread 3066568036 joined [08:15:18]Waiting for new connection... [08:15:18] Sock 9.Parse request [08:15:18]Sock 9.Check first char [08:15:18]Sock 9.First char is OK [08:15:18]request: POST /json_proto HTTP/1.0 [08:15:18]Method: POST [08:15:18]URL: /json_proto [08:15:18]Method is POST - this is cgi request [08:15:18]url: /json_proto [08:15:18]query_string will be loaded in cgi processing [08:15:18]execute_cgi json_proto POST (null) [08:15:18]execute_cgi path=json_proto method=POST [08:15:18]POST find Content-Length [08:15:18]Host: 172.17.56.4:8080 [08:15:18]Content-Length: 677 [08:15:18]Content-Type: application/json [08:15:18] [08:15:18]POST finish read [08:15:18]Found Content-Length = 677 [08:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:15:18]execute_script... [08:15:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:15:18]POST & json_proto [08:15:18]process_json_proto [08:15:18]json parsed OK: [08:15:18]protocol is kg_v1.0 [08:15:18]action value=close_receipt [08:15:18]process_action close_receipt [08:15:18]cmd_close_receipt [08:15:18]MH_GetDate [08:15:18]Write to MH i2c: F0 00 00 D9 01 C9 [08:15:18]Write i2c OK [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: F0 [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: F0 09 00 [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: F0 09 00 D9 01 00 16 E6 90 66 C9 DC B2 64 7F [08:15:18]GetLastDocTimeStamp 1720772071 [08:15:18]current date 1720772118 [08:15:18]FM_GetShiftState [08:15:18]SAM_PROTO_GetShiftState [08:15:18]wFMCommunicate request_size=4 [08:15:18]MH_SAM_APDU [08:15:18]CAPDU: 80 13 01 00 [08:15:18]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [08:15:18]Write i2c OK [08:15:18]MH_I2C_Read... [08:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:18]Read from MH i2c: E2 [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: E2 0E 00 [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A2 [08:15:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:15:18]wFMCommunicate OK [08:15:18]SAM_PROTO_GetShiftState done [08:15:18]FM_GetShiftState done [08:15:18]opened in 1720744654 [08:15:18]opened+sec_in_day 1720831054 [08:15:18]quantity*price = 30004 [08:15:18]sum+1 = 30006 [08:15:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 21 12.07.2024 08:15 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164100 ФПД: 161326755829458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T081518&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164100&fm=161326755829458&tin=02508201610067®Number=0000000000090829&sum=30000 [08:15:19]StoreToDocumentArchive [08:15:19]shift 445 fd 164100 [08:15:19]save to /storage/0445/doc_00164100 [08:15:19]save last doc name /storage/0445/doc_00164100 to /storage/kkm_last_doc_name [08:15:19]save OK [08:15:19]Clear old archive folders... [08:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:19]tlvbuf is 00D10680 [08:15:19]SAM_PROTO_ClearQueue [08:15:19]wFMCommunicate request_size=4 [08:15:19]MH_SAM_APDU [08:15:19]CAPDU: 80 09 00 00 [08:15:19]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [08:15:19]Write i2c OK [08:15:19]MH_I2C_Read... [08:15:19]OFD Sender: No OFD packet to send [08:15:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:19]Read from MH i2c: E2 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 03 00 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [08:15:19]RAPDU: 90 00 [08:15:19]wFMCommunicate OK [08:15:19]SAM_PROTO_ClearQueue done [08:15:19]KKMCreateOFDPacket [08:15:19]OFDProtocolAddRootSTLVToBuf [08:15:19]FM_MakeSignedData [08:15:19]FM_MakeSignedData [08:15:19]SAM_PROTO_SignData [08:15:19]wFMCommunicate request_size=4 [08:15:19]MH_SAM_APDU [08:15:19]CAPDU: 80 0D 01 02 [08:15:19]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [08:15:19]Write i2c OK [08:15:19]MH_I2C_Read... [08:15:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:19]Read from MH i2c: E2 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 03 00 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [08:15:19]RAPDU: 90 00 [08:15:19]wFMCommunicate OK [08:15:19]wFMCommunicate request_size=255 [08:15:19]MH_SAM_APDU [08:15: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 E6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 81 02 00 35 04 06 00 92 [08:15:19]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 E6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 81 02 00 35 04 06 00 92 00 00 7A [08:15:19]Write i2c OK [08:15:19]MH_I2C_Read... [08:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:19]Read from MH i2c: E2 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 03 00 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [08:15:19]RAPDU: 90 00 [08:15:19]wFMCommunicate OK [08:15:19]wFMCommunicate request_size=10 [08:15:19]MH_SAM_APDU [08:15:19]CAPDU: 80 0D 02 02 05 B9 CF F9 56 D2 [08:15:19]Write to MH i2c: E2 0D 00 EA 01 80 0D 02 02 05 00 B9 CF F9 56 D2 00 00 18 [08:15:19]Write i2c OK [08:15:19]MH_I2C_Read... [08:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:19]Read from MH i2c: E2 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 03 00 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [08:15:19]RAPDU: 90 00 [08:15:19]wFMCommunicate OK [08:15:19]wFMCommunicate request_size=4 [08:15:19]MH_SAM_APDU [08:15:19]CAPDU: 80 0D 03 02 [08:15:19]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [08:15:19]Write i2c OK [08:15:19]MH_I2C_Read... [08:15:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:19]Read from MH i2c: E2 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 0B 00 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 0B 00 EB 01 00 7E FE 30 FB A7 FF DD 92 90 00 24 [08:15:19]RAPDU: 7E FE 30 FB A7 FF DD 92 90 00 [08:15:19]wFMCommunicate OK [08:15:19]SAM_PROTO_SignData done [08:15:19]FM_MakeSignedData done [08:15:19]CreateOFDProtocolMessage [08:15:19]wFMCommunicate request_size=4 [08:15:19]MH_SAM_APDU [08:15:19]CAPDU: 80 11 00 00 [08:15:19]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [08:15:19]Write i2c OK [08:15:19]MH_I2C_Read... [08:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:19]Read from MH i2c: E2 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 17 00 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [08:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:15:19]wFMCommunicate OK [08:15:19]CreateOFDProtocolMessage done [08:15:19]OFDSenderStorePacket 164100 [08:15:19]StoreOFDPacket docnum=164100 [08:15:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9E 61 07 01 FA 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 E6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 81 02 00 35 04 06 00 92 B9 CF F9 56 D2 7E FE 30 FB A7 FF DD 92 [08:15:19]CheckFolder [08:15:19]dirname=/storage/ofd_packets [08:15:19]CheckFolder done [08:15:19]ProducePacketName [08:15:19]name=ofd_packets/00164100 [08:15:19]NVStorageSaveData ofd_packets/00164100 [08:15:19]File name is /storage/ofd_packets/00164100 [08:15:19]Write 301 bytes [08:15:19]NVStorageSaveData done [08:15:19]OFDSenderStorePacket done [08:15:19]KKMCreateOFDPacket done [08:15:19]NVStorageSaveData kkm_last_timestamp [08:15:19]File name is /storage/kkm_last_timestamp [08:15:19]Write 4 bytes [08:15:19]NVStorageSaveData done [08:15:19]ExternCall_PrintAddStr [08:15:19]wPrintStart [08:15:19]Write to MH i2c: 01 00 00 ED 01 EE [08:15:19]Write i2c OK [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: 01 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: 01 07 00 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [08:15:19]RasterBufferAndPrint [08:15:19]line Счет N : (1)458177 [08:15:19]line ИНН: 02508201610067 [08:15:19]line Контрольно-Кассовый Чек [08:15:19]line ПРОДАЖА [08:15:19]line ТРК (МРК, ГНК) : 22 [08:15:19]line Товар: 2710124130 [08:15:19]line Аи-92-К-5 [08:15:19]line 4.560 * 65.80 [08:15:19]line = 300.05 [08:15:19]line НДС 12% НСП 1% [08:15:19]line > о реализуемом товаре [08:15:19]line ОКРУГЛЕНИЕ: -0.05 [08:15:19]line ИТОГО: 300.00 [08:15:19]line Внесено: 300.00 [08:15:19]line СДАЧА: 0.00 [08:15:19]line НСП 1% : 2.65 [08:15:19]line НДС 12% : 31.86 [08:15:19]line Наличными: 300.00 [08:15:19]line Безнал.: 0.00 [08:15:19]line Место: АЗС № 72 "Партнер Нефть" [08:15:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:15:19]line СНО: Общий режим [08:15:19]line Чек 21 12.07.2024 08:15 [08:15:19]line Смена: 445 ФФД: 1.0 [08:15:19]line ЗНМ: 0300000160 [08:15:19]line РНМ: 0000000000090829 [08:15:19]line Версия ККМ: 001 [08:15:19]line ФМ: 0000000000874718 [08:15:19]line ФД: 164100 [08:15:19]line ФПД: 161326755829458 [08:15:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T081518&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164100&fm=161326755829458&tin=02508201610067®Number=0000000000090829&sum=30000 [08:15:19]written 0, free lines is 4095 [08:15:20]OFD Sender: Processing packet 164100 [packets to send 104, broken 103] [08:15:20]ProducePacketName [08:15:20]name=ofd_packets/00164100 [08:15:20]OFD Sender: To server: pG, [08:15:20]CommunicateWithHost lk.salyk.kg:30040 [08:15:20]ConnectInit lk.salyk.kg [08:15:20]Connected sock=8 [08:15:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9E 61 07 01 FA 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 E6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 81 02 00 35 04 06 00 92 B9 CF F9 56 D2 7E FE 30 FB A7 FF DD 92 [08:15:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 02 26 47 00 04 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 34 37 31 38 10 04 04 00 04 81 02 00 F4 03 04 00 AB 8C 90 66 B6 04 01 00 00 BB 12 B3 8C 41 7C 61 5C [08:15:20]CommunicateWithHost err = 0 [08:15:20]CheckOFDResponse [08:15:20]1017 (14) - 77093643461234 [08:15:20]1041 (16) - 0000000000874718 [08:15:20]1040 (4) - 164100 [08:15:20]1012 (4) - 12.07.2024 01:53 [08:15:20]1206 (1) - 0 [08:15:20]OFD Sender: Remove packet 164100 [08:15:20]ProducePacketName [08:15:20]name=ofd_packets/00164100 [08:15:20]NVStorageDeleteData [08:15:20]Write to MH i2c: 01 00 00 17 02 19 [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: 01 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: 01 07 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 F6 0C 22 [08:15:20]RasterBufferAndPrint [08:15:20]line [08:15:20]line [08:15:20]line [08:15:20]line [08:15:20]line [08:15:20]written 0, free lines is 3324 [08:15:20]MH_Cut [08:15:20]Write to MH i2c: D1 01 00 1E 02 01 F2 [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: D1 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: D1 01 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: D1 01 00 1E 02 00 F1 [08:15:20]Write to MH i2c: 01 00 00 1F 02 21 [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]OFD Sender: No OFD packet to send [08:15:21]*** Cut start [08:15:21]*** Partial cut [08:15:21]*** CUTSNS_PIN = 1 [08:15:21]*** CUTSNS_PIN = 0 [08:15:21]*** Brake cut motor [08:15:21]Read from MH i2c: 01 [08:15:21]MH_I2C_Read... [08:15:21]*** Stop cut motor [08:15:21]*** Cut end [08:15:21]Read from MH i2c: 01 07 00 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [08:15:21]process_action close_receipt done [08:15:21]requested_data is exist [08:15:21]produce_requested_data [08:15:21]requested_item fm.sn is exist - process it [08:15:21]wFMCommunicate request_size=4 [08:15:21]MH_SAM_APDU [08:15:21]CAPDU: 80 11 00 00 [08:15:21]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [08:15:21]Write i2c OK [08:15:21]MH_I2C_Read... [08:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:21]Read from MH i2c: E2 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: E2 17 00 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [08:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:15:21]wFMCommunicate OK [08:15:21]requested_item fd.num is exist - process it [08:15:21]SAM_PROTO_GetFieldsCounters [08:15:21]wFMCommunicate request_size=4 [08:15:21]MH_SAM_APDU [08:15:21]CAPDU: 80 13 00 00 [08:15:21]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [08:15:21]Write i2c OK [08:15:21]MH_I2C_Read... [08:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:21]Read from MH i2c: E2 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: E2 62 00 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [08:15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:21]wFMCommunicate OK [08:15:21]SAM_PROTO_GetFieldsCounters done [08:15:21]requested_item shift.num is exist - process it [08:15:21]requested_item shift.opened is exist - process it [08:15:21]req_shift_opened [08:15:21]FM_GetShiftState [08:15:21]SAM_PROTO_GetShiftState [08:15:21]wFMCommunicate request_size=4 [08:15:21]MH_SAM_APDU [08:15:21]CAPDU: 80 13 01 00 [08:15:21]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [08:15:21]Write i2c OK [08:15:21]MH_I2C_Read... [08:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:21]Read from MH i2c: E2 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: E2 0E 00 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EB [08:15:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:15:21]wFMCommunicate OK [08:15:21]SAM_PROTO_GetShiftState done [08:15:21]FM_GetShiftState done [08:15:21]req_shift_opened done [08:15:21]requested_item shift.open_date is exist - process it [08:15:21]req_shift_open_date [08:15:21]req_shift_open_date done [08:15:21]produce_requested_data done [08:15:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164100,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:15:21]process_action_free close_receipt [08:15:21]json_value_free [08:15:21]json_value_free done [08:15:21]process_json_proto returns [08:15:21]Send response to host [08:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164100,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:15:21]free response buf [08:15:21]execute_script done [08:15:21]execute_script returns [08:15:21]free content buf [08:15:21]Sock 9.Close socket [08:15:21]Sock 9.Thread stoped [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]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]accept exits with 10 [08:26:26]New connection [08:26:26]New thread 3066568036 created [08:26:26]Thread 3066711396 joined [08:26:26]Waiting for new connection... [08:26:26] Sock 10.Parse request [08:26:26]Sock 10.Check first char [08:26:26]Sock 10.First char is OK [08:26:26]request: POST /json_proto HTTP/1.0 [08:26:26]Method: POST [08:26:26]URL: /json_proto [08:26:26]Method is POST - this is cgi request [08:26:26]url: /json_proto [08:26:26]query_string will be loaded in cgi processing [08:26:26]execute_cgi json_proto POST (null) [08:26:26]execute_cgi path=json_proto method=POST [08:26:26]POST find Content-Length [08:26:26]Host: 172.17.56.4:8080 [08:26:26]Content-Length: 677 [08:26:26]Content-Type: application/json [08:26:26] [08:26:26]POST finish read [08:26:26]Found Content-Length = 677 [08:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:26]execute_script... [08:26:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:26]POST & json_proto [08:26:26]process_json_proto [08:26:26]json parsed OK: [08:26:26]protocol is kg_v1.0 [08:26:26]action value=close_receipt [08:26:26]process_action close_receipt [08:26:26]cmd_close_receipt [08:26:26]MH_GetDate [08:26:26]Write to MH i2c: F0 00 00 23 02 14 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: F0 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: F0 09 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: F0 09 00 23 02 00 B2 E8 90 66 C9 DC B2 64 68 [08:26:26]GetLastDocTimeStamp 1720772118 [08:26:26]current date 1720772786 [08:26:26]FM_GetShiftState [08:26:26]SAM_PROTO_GetShiftState [08:26:26]wFMCommunicate request_size=4 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 13 01 00 [08:26:26]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 0E 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 ED [08:26:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:26:26]wFMCommunicate OK [08:26:26]SAM_PROTO_GetShiftState done [08:26:26]FM_GetShiftState done [08:26:26]opened in 1720744654 [08:26:26]opened+sec_in_day 1720831054 [08:26:26]quantity*price = 45007 [08:26:26]sum+1 = 45008 [08:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 22 12.07.2024 08:26 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164101 ФПД: 21409190409558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T082626&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164101&fm=21409190409558&tin=02508201610067®Number=0000000000090829&sum=45000 [08:26:27]StoreToDocumentArchive [08:26:27]shift 445 fd 164101 [08:26:27]save to /storage/0445/doc_00164101 [08:26:27]save last doc name /storage/0445/doc_00164101 to /storage/kkm_last_doc_name [08:26:27]save OK [08:26:27]Clear old archive folders... [08:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:27]tlvbuf is B6F1AB40 [08:26:27]SAM_PROTO_ClearQueue [08:26:27]wFMCommunicate request_size=4 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 09 00 00 [08:26:27]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [08:26:27]RAPDU: 90 00 [08:26:27]wFMCommunicate OK [08:26:27]SAM_PROTO_ClearQueue done [08:26:27]KKMCreateOFDPacket [08:26:27]OFDProtocolAddRootSTLVToBuf [08:26:27]FM_MakeSignedData [08:26:27]FM_MakeSignedData [08:26:27]SAM_PROTO_SignData [08:26:27]wFMCommunicate request_size=4 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 0D 01 02 [08:26:27]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [08:26:27]RAPDU: 90 00 [08:26:27]wFMCommunicate OK [08:26:27]wFMCommunicate request_size=255 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 B2 E8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 81 02 00 35 04 06 00 13 [08:26:27]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 B2 E8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 81 02 00 35 04 06 00 13 00 00 13 [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [08:26:27]RAPDU: 90 00 [08:26:27]wFMCommunicate OK [08:26:27]wFMCommunicate request_size=10 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 0D 02 02 05 78 B7 30 75 56 [08:26:27]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 78 B7 30 75 56 00 00 E4 [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [08:26:27]RAPDU: 90 00 [08:26:27]wFMCommunicate OK [08:26:27]wFMCommunicate request_size=4 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 0D 03 02 [08:26:27]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 0B 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 0B 00 35 02 00 3C 25 C7 26 55 C3 A9 6F 90 00 31 [08:26:28]RAPDU: 3C 25 C7 26 55 C3 A9 6F 90 00 [08:26:28]wFMCommunicate OK [08:26:28]SAM_PROTO_SignData done [08:26:28]FM_MakeSignedData done [08:26:28]CreateOFDProtocolMessage [08:26:28]wFMCommunicate request_size=4 [08:26:28]MH_SAM_APDU [08:26:28]CAPDU: 80 11 00 00 [08:26:28]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:28]Read from MH i2c: E2 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 17 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [08:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:26:28]wFMCommunicate OK [08:26:28]CreateOFDProtocolMessage done [08:26:28]OFDSenderStorePacket 164101 [08:26:28]StoreOFDPacket docnum=164101 [08:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C5 09 07 01 97 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 B2 E8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 81 02 00 35 04 06 00 13 78 B7 30 75 56 3C 25 C7 26 55 C3 A9 6F [08:26:28]CheckFolder [08:26:28]dirname=/storage/ofd_packets [08:26:28]CheckFolder done [08:26:28]ProducePacketName [08:26:28]name=ofd_packets/00164101 [08:26:28]NVStorageSaveData ofd_packets/00164101 [08:26:28]File name is /storage/ofd_packets/00164101 [08:26:28]Write 301 bytes [08:26:28]NVStorageSaveData done [08:26:28]OFDSenderStorePacket done [08:26:28]KKMCreateOFDPacket done [08:26:28]NVStorageSaveData kkm_last_timestamp [08:26:28]File name is /storage/kkm_last_timestamp [08:26:28]Write 4 bytes [08:26:28]NVStorageSaveData done [08:26:28]ExternCall_PrintAddStr [08:26:28]wPrintStart [08:26:28]Write to MH i2c: 01 00 00 37 02 39 [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 07 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [08:26:28]RasterBufferAndPrint [08:26:28]line Счет N : (1)458178 [08:26:28]line ИНН: 02508201610067 [08:26:28]line Контрольно-Кассовый Чек [08:26:28]line ПРОДАЖА [08:26:28]line ТРК (МРК, ГНК) : 22 [08:26:28]line Товар: 2710124130 [08:26:28]line Аи-92-К-5 [08:26:28]line 6.840 * 65.80 [08:26:28]line = 450.07 [08:26:28]line НДС 12% НСП 1% [08:26:28]line > о реализуемом товаре [08:26:28]line ОКРУГЛЕНИЕ: -0.07 [08:26:28]line ИТОГО: 450.00 [08:26:28]line Внесено: 450.00 [08:26:28]line СДАЧА: 0.00 [08:26:28]line НСП 1% : 3.98 [08:26:28]line НДС 12% : 47.79 [08:26:28]line Наличными: 450.00 [08:26:28]line Безнал.: 0.00 [08:26:28]line Место: АЗС № 72 "Партнер Нефть" [08:26:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:26:28]line СНО: Общий режим [08:26:28]line Чек 22 12.07.2024 08:26 [08:26:28]line Смена: 445 ФФД: 1.0 [08:26:28]line ЗНМ: 0300000160 [08:26:28]line РНМ: 0000000000090829 [08:26:28]line Версия ККМ: 001 [08:26:28]line ФМ: 0000000000874718 [08:26:28]line ФД: 164101 [08:26:28]line ФПД: 21409190409558 [08:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T082626&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164101&fm=21409190409558&tin=02508201610067®Number=0000000000090829&sum=45000 [08:26:28]OFD Sender: Processing packet 164101 [packets to send 104, broken 103] [08:26:28]ProducePacketName [08:26:28]name=ofd_packets/00164101 [08:26:28]OFD Sender: To server: pG, [08:26:28]CommunicateWithHost lk.salyk.kg:30040 [08:26:28]ConnectInit lk.salyk.kg [08:26:28]written 0, free lines is 4095 [08:26:28]Connected sock=9 [08:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C5 09 07 01 97 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 B2 E8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 81 02 00 35 04 06 00 13 78 B7 30 75 56 3C 25 C7 26 55 C3 A9 6F [08:26:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 51 5E 47 00 8E 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 34 37 31 38 10 04 04 00 05 81 02 00 F4 03 04 00 47 8F 90 66 B6 04 01 00 00 E4 39 74 EC 14 D9 23 B9 [08:26:28]CommunicateWithHost err = 0 [08:26:28]CheckOFDResponse [08:26:28]1017 (14) - 77093643461234 [08:26:28]1041 (16) - 0000000000874718 [08:26:28]1040 (4) - 164101 [08:26:28]1012 (4) - 12.07.2024 02:04 [08:26:28]1206 (1) - 0 [08:26:28]OFD Sender: Remove packet 164101 [08:26:28]ProducePacketName [08:26:28]name=ofd_packets/00164101 [08:26:28]NVStorageDeleteData [08:26:28]Write to MH i2c: 01 00 00 61 02 63 [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 07 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 F6 0C 6C [08:26:28]RasterBufferAndPrint [08:26:28]line [08:26:28]line [08:26:28]line [08:26:28]line [08:26:28]line [08:26:28]written 0, free lines is 3324 [08:26:28]MH_Cut [08:26:28]Write to MH i2c: D1 01 00 68 02 01 3C [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: D1 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: D1 01 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: D1 01 00 68 02 00 3B [08:26:28]Write to MH i2c: 01 00 00 69 02 6B [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:29]OFD Sender: No OFD packet to send [08:26:29]*** Cut start [08:26:29]*** Partial cut [08:26:29]*** CUTSNS_PIN = 1 [08:26:29]*** CUTSNS_PIN = 0 [08:26:29]*** Brake cut motor [08:26:30]Read from MH i2c: 01 [08:26:30]MH_I2C_Read... [08:26:30]*** Stop cut motor [08:26:30]*** Cut end [08:26:30]Read from MH i2c: 01 07 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [08:26:30]process_action close_receipt done [08:26:30]requested_data is exist [08:26:30]produce_requested_data [08:26:30]requested_item fm.sn is exist - process it [08:26:30]wFMCommunicate request_size=4 [08:26:30]MH_SAM_APDU [08:26:30]CAPDU: 80 11 00 00 [08:26:30]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:30]Read from MH i2c: E2 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 17 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [08:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:26:30]wFMCommunicate OK [08:26:30]requested_item fd.num is exist - process it [08:26:30]SAM_PROTO_GetFieldsCounters [08:26:30]wFMCommunicate request_size=4 [08:26:30]MH_SAM_APDU [08:26:30]CAPDU: 80 13 00 00 [08:26:30]Write to MH i2c: E2 08 00 6B 02 80 13 00 00 00 00 00 00 E9 [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:30]Read from MH i2c: E2 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 62 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 62 00 6B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [08:26:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:30]wFMCommunicate OK [08:26:30]SAM_PROTO_GetFieldsCounters done [08:26:30]requested_item shift.num is exist - process it [08:26:30]requested_item shift.opened is exist - process it [08:26:30]req_shift_opened [08:26:30]FM_GetShiftState [08:26:30]SAM_PROTO_GetShiftState [08:26:30]wFMCommunicate request_size=4 [08:26:30]MH_SAM_APDU [08:26:30]CAPDU: 80 13 01 00 [08:26:30]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:30]Read from MH i2c: E2 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 35 [08:26:30]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:26:30]wFMCommunicate OK [08:26:30]SAM_PROTO_GetShiftState done [08:26:30]FM_GetShiftState done [08:26:30]req_shift_opened done [08:26:30]requested_item shift.open_date is exist - process it [08:26:30]req_shift_open_date [08:26:30]req_shift_open_date done [08:26:30]produce_requested_data done [08:26:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164101,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:26:30]process_action_free close_receipt [08:26:30]json_value_free [08:26:30]json_value_free done [08:26:30]process_json_proto returns [08:26:30]Send response to host [08:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164101,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:26:30]free response buf [08:26:30]execute_script done [08:26:30]execute_script returns [08:26:30]free content buf [08:26:30]Sock 10.Close socket [08:26:30]Sock 10.Thread stoped [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:18]accept exits with 8 [08:27:18]New connection [08:27:18]New thread 3066711396 created [08:27:18]Thread 3066568036 joined [08:27:18]Waiting for new connection... [08:27:18] Sock 8.Parse request [08:27:18]Sock 8.Check first char [08:27:18]Sock 8.First char is OK [08:27:18]request: POST /json_proto HTTP/1.0 [08:27:18]Method: POST [08:27:18]URL: /json_proto [08:27:18]Method is POST - this is cgi request [08:27:18]url: /json_proto [08:27:18]query_string will be loaded in cgi processing [08:27:18]execute_cgi json_proto POST (null) [08:27:18]execute_cgi path=json_proto method=POST [08:27:18]POST find Content-Length [08:27:18]Host: 172.17.56.4:8080 [08:27:18]Content-Length: 674 [08:27:18]Content-Type: application/json [08:27:18] [08:27:18]POST finish read [08:27:18]Found Content-Length = 674 [08:27:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:18]execute_script... [08:27:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:18]POST & json_proto [08:27:18]process_json_proto [08:27:18]json parsed OK: [08:27:18]protocol is kg_v1.0 [08:27:18]action value=close_receipt [08:27:18]process_action close_receipt [08:27:18]cmd_close_receipt [08:27:18]MH_GetDate [08:27:18]Write to MH i2c: F0 00 00 6D 02 5E [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: F0 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: F0 09 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: F0 09 00 6D 02 00 E7 E8 90 66 C9 DC B2 64 E7 [08:27:18]GetLastDocTimeStamp 1720772786 [08:27:18]current date 1720772839 [08:27:18]FM_GetShiftState [08:27:18]SAM_PROTO_GetShiftState [08:27:18]wFMCommunicate request_size=4 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 13 01 00 [08:27:18]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 0E 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 37 [08:27:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:27:18]wFMCommunicate OK [08:27:18]SAM_PROTO_GetShiftState done [08:27:18]FM_GetShiftState done [08:27:18]opened in 1720744654 [08:27:18]opened+sec_in_day 1720831054 [08:27:18]quantity*price = 50042 [08:27:18]sum+1 = 50043 [08:27:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 23 12.07.2024 08:27 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164102 ФПД: 268679373643146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T082719&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164102&fm=268679373643146&tin=02508201610067®Number=0000000000090829&sum=50000 [08:27:20]StoreToDocumentArchive [08:27:20]shift 445 fd 164102 [08:27:20]save to /storage/0445/doc_00164102 [08:27:20]save last doc name /storage/0445/doc_00164102 to /storage/kkm_last_doc_name [08:27:20]save OK [08:27:20]Clear old archive folders... [08:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:27:20]tlvbuf is 00CF6060 [08:27:20]SAM_PROTO_ClearQueue [08:27:20]wFMCommunicate request_size=4 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 09 00 00 [08:27:20]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [08:27:20]RAPDU: 90 00 [08:27:20]wFMCommunicate OK [08:27:20]SAM_PROTO_ClearQueue done [08:27:20]KKMCreateOFDPacket [08:27:20]OFDProtocolAddRootSTLVToBuf [08:27:20]FM_MakeSignedData [08:27:20]FM_MakeSignedData [08:27:20]SAM_PROTO_SignData [08:27:20]wFMCommunicate request_size=4 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 0D 01 02 [08:27:20]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [08:27:20]RAPDU: 90 00 [08:27:20]wFMCommunicate OK [08:27:20]wFMCommunicate request_size=255 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 E7 E8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 81 02 00 35 04 06 00 F4 5C CA 9F [08:27:20]Write to MH i2c: E2 02 01 7D 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 E7 E8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 81 02 00 35 04 06 00 F4 5C CA 9F 00 00 A8 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [08:27:20]RAPDU: 90 00 [08:27:20]wFMCommunicate OK [08:27:20]wFMCommunicate request_size=7 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 0D 02 02 02 DD 8A [08:27:20]Write to MH i2c: E2 0A 00 7E 02 80 0D 02 02 02 00 DD 8A 00 00 65 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [08:27:20]RAPDU: 90 00 [08:27:20]wFMCommunicate OK [08:27:20]wFMCommunicate request_size=4 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 0D 03 02 [08:27:20]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 0B 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 0B 00 7F 02 00 1F 61 BB 45 98 47 47 57 90 00 FA [08:27:20]RAPDU: 1F 61 BB 45 98 47 47 57 90 00 [08:27:20]wFMCommunicate OK [08:27:20]SAM_PROTO_SignData done [08:27:20]FM_MakeSignedData done [08:27:20]CreateOFDProtocolMessage [08:27:20]wFMCommunicate request_size=4 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 11 00 00 [08:27:20]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:20]Read from MH i2c: E2 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 17 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [08:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:27:20]wFMCommunicate OK [08:27:20]CreateOFDProtocolMessage done [08:27:20]OFDSenderStorePacket 164102 [08:27:20]StoreOFDPacket docnum=164102 [08:27:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1B A0 04 01 90 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 E7 E8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 81 02 00 35 04 06 00 F4 5C CA 9F DD 8A 1F 61 BB 45 98 47 47 57 [08:27:20]CheckFolder [08:27:20]dirname=/storage/ofd_packets [08:27:20]CheckFolder done [08:27:20]ProducePacketName [08:27:20]name=ofd_packets/00164102 [08:27:20]NVStorageSaveData ofd_packets/00164102 [08:27:20]File name is /storage/ofd_packets/00164102 [08:27:20]Write 298 bytes [08:27:20]NVStorageSaveData done [08:27:20]OFDSenderStorePacket done [08:27:20]KKMCreateOFDPacket done [08:27:20]NVStorageSaveData kkm_last_timestamp [08:27:20]File name is /storage/kkm_last_timestamp [08:27:20]Write 4 bytes [08:27:20]NVStorageSaveData done [08:27:20]ExternCall_PrintAddStr [08:27:20]wPrintStart [08:27:20]Write to MH i2c: 01 00 00 81 02 83 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: 01 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: 01 07 00 [08:27:20]MH_I2C_Read... [08:27:20]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [08:27:20]RasterBufferAndPrint [08:27:20]line Счет N : (1)458179 [08:27:20]line ИНН: 02508201610067 [08:27:20]line Контрольно-Кассовый Чек [08:27:20]line ПРОДАЖА [08:27:20]line ТРК (МРК, ГНК) : 11 [08:27:20]line Товар: 2710194210 [08:27:20]line ДТ-К-5 [08:27:20]line 6.960 * 71.90 [08:27:20]line = 500.42 [08:27:20]line НДС 12% НСП 1% [08:27:20]line > о реализуемом товаре [08:27:20]line ОКРУГЛЕНИЕ: -0.42 [08:27:20]line ИТОГО: 500.00 [08:27:20]line Внесено: 500.00 [08:27:20]line СДАЧА: 0.00 [08:27:20]line НСП 1% : 4.43 [08:27:20]line НДС 12% : 53.14 [08:27:20]line Наличными: 500.00 [08:27:20]line Безнал.: 0.00 [08:27:20]line Место: АЗС № 72 "Партнер Нефть" [08:27:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:27:20]line СНО: Общий режим [08:27:20]line Чек 23 12.07.2024 08:27 [08:27:20]line Смена: 445 ФФД: 1.0 [08:27:20]line ЗНМ: 0300000160 [08:27:20]line РНМ: 0000000000090829 [08:27:20]line Версия ККМ: 001 [08:27:20]line ФМ: 0000000000874718 [08:27:20]line ФД: 164102 [08:27:20]line ФПД: 268679373643146 [08:27:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T082719&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164102&fm=268679373643146&tin=02508201610067®Number=0000000000090829&sum=50000 [08:27:20]OFD Sender: Processing packet 164102 [packets to send 104, broken 103] [08:27:20]ProducePacketName [08:27:20]name=ofd_packets/00164102 [08:27:20]OFD Sender: To server: pG, [08:27:20]CommunicateWithHost lk.salyk.kg:30040 [08:27:20]ConnectInit lk.salyk.kg [08:27:20]written 0, free lines is 4095 [08:27:20]Connected sock=10 [08:27:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1B A0 04 01 90 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 E7 E8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 81 02 00 35 04 06 00 F4 5C CA 9F DD 8A 1F 61 BB 45 98 47 47 57 [08:27:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B E1 47 00 66 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 81 02 00 F4 03 04 00 7C 8F 90 66 B6 04 01 00 00 ED 7C 8D 7D 1A D2 56 56 [08:27:21]CommunicateWithHost err = 0 [08:27:21]CheckOFDResponse [08:27:21]1017 (14) - 77093643461234 [08:27:21]1041 (16) - 0000000000874718 [08:27:21]1040 (4) - 164102 [08:27:21]1012 (4) - 12.07.2024 02:05 [08:27:21]1206 (1) - 0 [08:27:21]OFD Sender: Remove packet 164102 [08:27:21]ProducePacketName [08:27:21]name=ofd_packets/00164102 [08:27:21]NVStorageDeleteData [08:27:21]Write to MH i2c: 01 00 00 AB 02 AD [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: 01 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: 01 07 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 02 0D C3 [08:27:21]RasterBufferAndPrint [08:27:21]line [08:27:21]line [08:27:21]line [08:27:21]line [08:27:21]line [08:27:21]written 0, free lines is 3336 [08:27:21]MH_Cut [08:27:21]Write to MH i2c: D1 01 00 B2 02 01 86 [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: D1 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: D1 01 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: D1 01 00 B2 02 00 85 [08:27:21]Write to MH i2c: 01 00 00 B3 02 B5 [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]OFD Sender: No OFD packet to send [08:27:21]*** Cut start [08:27:21]*** Partial cut [08:27:21]*** CUTSNS_PIN = 1 [08:27:22]*** CUTSNS_PIN = 0 [08:27:22]*** Brake cut motor [08:27:22]Read from MH i2c: 01 [08:27:22]MH_I2C_Read... [08:27:22]*** Stop cut motor [08:27:22]*** Cut end [08:27:22]Read from MH i2c: 01 07 00 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [08:27:22]process_action close_receipt done [08:27:22]requested_data is exist [08:27:22]produce_requested_data [08:27:22]requested_item fm.sn is exist - process it [08:27:22]wFMCommunicate request_size=4 [08:27:22]MH_SAM_APDU [08:27:22]CAPDU: 80 11 00 00 [08:27:22]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [08:27:22]Write i2c OK [08:27:22]MH_I2C_Read... [08:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:22]Read from MH i2c: E2 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: E2 17 00 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [08:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:27:22]wFMCommunicate OK [08:27:22]requested_item fd.num is exist - process it [08:27:22]SAM_PROTO_GetFieldsCounters [08:27:22]wFMCommunicate request_size=4 [08:27:22]MH_SAM_APDU [08:27:22]CAPDU: 80 13 00 00 [08:27:22]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [08:27:22]Write i2c OK [08:27:22]MH_I2C_Read... [08:27:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:22]Read from MH i2c: E2 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: E2 62 00 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: E2 62 00 B5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [08:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:22]wFMCommunicate OK [08:27:22]SAM_PROTO_GetFieldsCounters done [08:27:22]requested_item shift.num is exist - process it [08:27:22]requested_item shift.opened is exist - process it [08:27:22]req_shift_opened [08:27:22]FM_GetShiftState [08:27:22]SAM_PROTO_GetShiftState [08:27:22]wFMCommunicate request_size=4 [08:27:22]MH_SAM_APDU [08:27:22]CAPDU: 80 13 01 00 [08:27:22]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [08:27:22]Write i2c OK [08:27:22]MH_I2C_Read... [08:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:22]Read from MH i2c: E2 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: E2 0E 00 [08:27:22]MH_I2C_Read... [08:27:22]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7F [08:27:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:27:22]wFMCommunicate OK [08:27:22]SAM_PROTO_GetShiftState done [08:27:22]FM_GetShiftState done [08:27:22]req_shift_opened done [08:27:22]requested_item shift.open_date is exist - process it [08:27:22]req_shift_open_date [08:27:22]req_shift_open_date done [08:27:22]produce_requested_data done [08:27:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164102,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:27:22]process_action_free close_receipt [08:27:22]json_value_free [08:27:22]json_value_free done [08:27:22]process_json_proto returns [08:27:22]Send response to host [08:27:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164102,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:27:22]free response buf [08:27:22]execute_script done [08:27:22]execute_script returns [08:27:22]free content buf [08:27:22]Sock 8.Close socket [08:27:22]Sock 8.Thread stoped [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:37]accept exits with 9 [08:34:37]New connection [08:34:37]New thread 3066568036 created [08:34:37]Thread 3066711396 joined [08:34:37]Waiting for new connection... [08:34:37] Sock 9.Parse request [08:34:37]Sock 9.Check first char [08:34:37]Sock 9.First char is OK [08:34:37]request: POST /json_proto HTTP/1.0 [08:34:37]Method: POST [08:34:37]URL: /json_proto [08:34:37]Method is POST - this is cgi request [08:34:37]url: /json_proto [08:34:37]query_string will be loaded in cgi processing [08:34:37]execute_cgi json_proto POST (null) [08:34:37]execute_cgi path=json_proto method=POST [08:34:37]POST find Content-Length [08:34:37]Host: 172.17.56.4:8080 [08:34:37]Content-Length: 790 [08:34:37]Content-Type: application/json [08:34:37] [08:34:37]POST finish read [08:34:37]Found Content-Length = 790 [08:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458180", "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" : 71.26, "quantity" : 21.050, "sum" : 1500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:37]execute_script... [08:34: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)458180", "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" : 71.26, "quantity" : 21.050, "sum" : 1500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:37]POST & json_proto [08:34:37]process_json_proto [08:34:37]json parsed OK: [08:34:37]protocol is kg_v1.0 [08:34:37]action value=close_receipt [08:34:37]process_action close_receipt [08:34:37]cmd_close_receipt [08:34:37]MH_GetDate [08:34:37]Write to MH i2c: F0 00 00 B7 02 A8 [08:34:37]Write i2c OK [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: F0 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: F0 09 00 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: F0 09 00 B7 02 00 9D EA 90 66 C9 DC B2 64 E9 [08:34:37]GetLastDocTimeStamp 1720772839 [08:34:37]current date 1720773277 [08:34:37]FM_GetShiftState [08:34:37]SAM_PROTO_GetShiftState [08:34:37]wFMCommunicate request_size=4 [08:34:37]MH_SAM_APDU [08:34:37]CAPDU: 80 13 01 00 [08:34:37]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [08:34:37]Write i2c OK [08:34:37]MH_I2C_Read... [08:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:37]Read from MH i2c: E2 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: E2 0E 00 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 81 [08:34:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:34:37]wFMCommunicate OK [08:34:37]SAM_PROTO_GetShiftState done [08:34:37]FM_GetShiftState done [08:34:37]opened in 1720744654 [08:34:37]opened+sec_in_day 1720831054 [08:34:37]quantity*price = 150002 [08:34:37]sum+1 = 150003 [08:34:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.02 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 0.00 Безнал.: 1500.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 24 12.07.2024 08:34 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164103 ФПД: 83783126308793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T083437&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164103&fm=83783126308793&tin=02508201610067®Number=0000000000090829&sum=150002 [08:34:38]StoreToDocumentArchive [08:34:38]shift 445 fd 164103 [08:34:38]save to /storage/0445/doc_00164103 [08:34:38]save last doc name /storage/0445/doc_00164103 to /storage/kkm_last_doc_name [08:34:38]save OK [08:34:38]Clear old archive folders... [08:34:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:34:38]tlvbuf is 00D42880 [08:34:38]SAM_PROTO_ClearQueue [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 09 00 00 [08:34:38]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [08:34:38]RAPDU: 90 00 [08:34:38]wFMCommunicate OK [08:34:38]SAM_PROTO_ClearQueue done [08:34:38]KKMCreateOFDPacket [08:34:38]OFDProtocolAddRootSTLVToBuf [08:34:38]FM_MakeSignedData [08:34:38]FM_MakeSignedData [08:34:38]SAM_PROTO_SignData [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 0D 01 02 [08:34:38]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [08:34:38]RAPDU: 90 00 [08:34:38]wFMCommunicate OK [08:34:38]wFMCommunicate request_size=255 [08:34:38]MH_SAM_APDU [08:34: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 3A 52 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F2 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 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 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9D EA 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 81 02 00 35 04 06 00 4C 33 47 7B [08:34:38]Write to MH i2c: E2 02 01 C7 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 52 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F2 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 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 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9D EA 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 81 02 00 35 04 06 00 4C 33 47 7B 00 00 A1 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [08:34:38]RAPDU: 90 00 [08:34:38]wFMCommunicate OK [08:34:38]wFMCommunicate request_size=7 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 0D 02 02 02 57 B9 [08:34:38]Write to MH i2c: E2 0A 00 C8 02 80 0D 02 02 02 00 57 B9 00 00 58 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [08:34:38]RAPDU: 90 00 [08:34:38]wFMCommunicate OK [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 0D 03 02 [08:34:38]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 0B 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 0B 00 C9 02 00 96 3B 6B B3 AF C7 82 A5 90 00 D3 [08:34:38]RAPDU: 96 3B 6B B3 AF C7 82 A5 90 00 [08:34:38]wFMCommunicate OK [08:34:38]SAM_PROTO_SignData done [08:34:38]FM_MakeSignedData done [08:34:38]CreateOFDProtocolMessage [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 11 00 00 [08:34:38]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 17 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [08:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:34:38]wFMCommunicate OK [08:34:38]CreateOFDProtocolMessage done [08:34:38]OFDSenderStorePacket 164103 [08:34:38]StoreOFDPacket docnum=164103 [08:34:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3C 7B 04 01 5C B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 52 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F2 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 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 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9D EA 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 81 02 00 35 04 06 00 4C 33 47 7B 57 B9 96 3B 6B B3 AF C7 82 A5 [08:34:38]CheckFolder [08:34:38]dirname=/storage/ofd_packets [08:34:38]CheckFolder done [08:34:38]ProducePacketName [08:34:38]name=ofd_packets/00164103 [08:34:38]NVStorageSaveData ofd_packets/00164103 [08:34:38]File name is /storage/ofd_packets/00164103 [08:34:38]Write 298 bytes [08:34:38]NVStorageSaveData done [08:34:38]OFDSenderStorePacket done [08:34:38]KKMCreateOFDPacket done [08:34:38]NVStorageSaveData kkm_last_timestamp [08:34:38]File name is /storage/kkm_last_timestamp [08:34:38]Write 4 bytes [08:34:38]NVStorageSaveData done [08:34:38]ExternCall_PrintAddStr [08:34:38]wPrintStart [08:34:38]Write to MH i2c: 01 00 00 CB 02 CD [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: 01 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: 01 07 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [08:34:38]RasterBufferAndPrint [08:34:38]line Счет N : (1)458180 [08:34:38]line ИНН: 02508201610067 [08:34:38]line Контрольно-Кассовый Чек [08:34:38]line ПРОДАЖА [08:34:38]line ТРК (МРК, ГНК) : 21 [08:34:38]line Товар: 2710194210 [08:34:38]line ДТ-К-5 [08:34:38]line 21.050 * 71.26 [08:34:38]line = 1500.02 [08:34:38]line НДС 12% НСП 1% [08:34:38]line > о реализуемом товаре [08:34:38]line ИТОГО: 1500.02 [08:34:38]line НСП 1% : 13.27 [08:34:38]line НДС 12% : 159.29 [08:34:38]line Наличными: 0.00 [08:34:38]line Безнал.: 1500.02 [08:34:38]line Место: АЗС № 72 "Партнер Нефть" [08:34:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:34:38]line СНО: Общий режим [08:34:38]line Чек 24 12.07.2024 08:34 [08:34:38]line Смена: 445 ФФД: 1.0 [08:34:38]line ЗНМ: 0300000160 [08:34:38]line РНМ: 0000000000090829 [08:34:38]line Версия ККМ: 001 [08:34:38]line Платежная система: KICB Банк [08:34:38]line ФМ: 0000000000874718 [08:34:38]line ФД: 164103 [08:34:38]line ФПД: 83783126308793 [08:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T083437&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164103&fm=83783126308793&tin=02508201610067®Number=0000000000090829&sum=150002 [08:34:39]OFD Sender: Processing packet 164103 [packets to send 104, broken 103] [08:34:39]ProducePacketName [08:34:39]name=ofd_packets/00164103 [08:34:39]OFD Sender: To server: pG, [08:34:39]CommunicateWithHost lk.salyk.kg:30040 [08:34:39]ConnectInit lk.salyk.kg [08:34:39]written 0, free lines is 4095 [08:34:39]Connected sock=8 [08:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3C 7B 04 01 5C B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 52 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F2 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 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 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9D EA 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 81 02 00 35 04 06 00 4C 33 47 7B 57 B9 96 3B 6B B3 AF C7 82 A5 [08:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 14 3A 47 00 A7 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 34 37 31 38 10 04 04 00 07 81 02 00 F4 03 04 00 32 91 90 66 B6 04 01 00 00 A4 C1 76 B8 74 0D C2 B5 [08:34:39]CommunicateWithHost err = 0 [08:34:39]CheckOFDResponse [08:34:39]1017 (14) - 77093643461234 [08:34:39]1041 (16) - 0000000000874718 [08:34:39]1040 (4) - 164103 [08:34:39]1012 (4) - 12.07.2024 02:13 [08:34:39]1206 (1) - 0 [08:34:39]OFD Sender: Remove packet 164103 [08:34:39]ProducePacketName [08:34:39]name=ofd_packets/00164103 [08:34:39]NVStorageDeleteData [08:34:39]Write to MH i2c: 01 00 00 F4 02 F6 [08:34:39]Write i2c OK [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: 01 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: 01 07 00 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: 01 07 00 F4 02 00 00 00 00 00 0A 0D 14 [08:34:39]RasterBufferAndPrint [08:34:39]line [08:34:39]line [08:34:39]line [08:34:39]line [08:34:39]line [08:34:39]written 0, free lines is 3344 [08:34:39]MH_Cut [08:34:39]Write to MH i2c: D1 01 00 FB 02 01 CF [08:34:39]Write i2c OK [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: D1 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: D1 01 00 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: D1 01 00 FB 02 00 CE [08:34:39]Write to MH i2c: 01 00 00 FC 02 FE [08:34:39]Write i2c OK [08:34:39]MH_I2C_Read... [08:34:40]OFD Sender: No OFD packet to send [08:34:40]*** Cut start [08:34:40]*** Partial cut [08:34:40]*** CUTSNS_PIN = 1 [08:34:40]*** CUTSNS_PIN = 0 [08:34:40]*** Brake cut motor [08:34:40]Read from MH i2c: 01 [08:34:40]MH_I2C_Read... [08:34:40]*** Stop cut motor [08:34:40]*** Cut end [08:34:40]Read from MH i2c: 01 07 00 [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 FF 0F 13 [08:34:40]process_action close_receipt done [08:34:40]requested_data is exist [08:34:40]produce_requested_data [08:34:40]requested_item fm.sn is exist - process it [08:34:40]wFMCommunicate request_size=4 [08:34:40]MH_SAM_APDU [08:34:40]CAPDU: 80 11 00 00 [08:34:40]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [08:34:40]Write i2c OK [08:34:40]MH_I2C_Read... [08:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 17 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [08:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:34:41]wFMCommunicate OK [08:34:41]requested_item fd.num is exist - process it [08:34:41]SAM_PROTO_GetFieldsCounters [08:34:41]wFMCommunicate request_size=4 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 13 00 00 [08:34:41]Write to MH i2c: E2 08 00 FE 02 80 13 00 00 00 00 00 00 7C [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 62 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 62 00 FE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [08:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:41]wFMCommunicate OK [08:34:41]SAM_PROTO_GetFieldsCounters done [08:34:41]requested_item shift.num is exist - process it [08:34:41]requested_item shift.opened is exist - process it [08:34:41]req_shift_opened [08:34:41]FM_GetShiftState [08:34:41]SAM_PROTO_GetShiftState [08:34:41]wFMCommunicate request_size=4 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 13 01 00 [08:34:41]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 0E 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C8 [08:34:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:34:41]wFMCommunicate OK [08:34:41]SAM_PROTO_GetShiftState done [08:34:41]FM_GetShiftState done [08:34:41]req_shift_opened done [08:34:41]requested_item shift.open_date is exist - process it [08:34:41]req_shift_open_date [08:34:41]req_shift_open_date done [08:34:41]produce_requested_data done [08:34:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164103,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:34:41]process_action_free close_receipt [08:34:41]json_value_free [08:34:41]json_value_free done [08:34:41]process_json_proto returns [08:34:41]Send response to host [08:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164103,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:34:41]free response buf [08:34:41]execute_script done [08:34:41]execute_script returns [08:34:41]free content buf [08:34:41]Sock 9.Close socket [08:34:41]Sock 9.Thread stoped [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:29]accept exits with 10 [08:41:29]New connection [08:41:29]New thread 3066711396 created [08:41:29]Thread 3066568036 joined [08:41:29]Waiting for new connection... [08:41:29] Sock 10.Parse request [08:41:29]Sock 10.Check first char [08:41:29]Sock 10.First char is OK [08:41:29]request: POST /json_proto HTTP/1.0 [08:41:29]Method: POST [08:41:29]URL: /json_proto [08:41:29]Method is POST - this is cgi request [08:41:29]url: /json_proto [08:41:29]query_string will be loaded in cgi processing [08:41:29]execute_cgi json_proto POST (null) [08:41:29]execute_cgi path=json_proto method=POST [08:41:29]POST find Content-Length [08:41:29]Host: 172.17.56.4:8080 [08:41:29]Content-Length: 677 [08:41:29]Content-Type: application/json [08:41:29] [08:41:29]POST finish read [08:41:29]Found Content-Length = 677 [08:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:29]execute_script... [08:41: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)458181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:29]POST & json_proto [08:41:29]process_json_proto [08:41:29]json parsed OK: [08:41:29]protocol is kg_v1.0 [08:41:29]action value=close_receipt [08:41:29]process_action close_receipt [08:41:29]cmd_close_receipt [08:41:29]MH_GetDate [08:41:29]Write to MH i2c: F0 00 00 00 03 F2 [08:41:29]Write i2c OK [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: F0 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: F0 09 00 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: F0 09 00 00 03 00 3A EC 90 66 C9 DC B2 64 D2 [08:41:29]GetLastDocTimeStamp 1720773277 [08:41:29]current date 1720773690 [08:41:29]FM_GetShiftState [08:41:29]SAM_PROTO_GetShiftState [08:41:29]wFMCommunicate request_size=4 [08:41:29]MH_SAM_APDU [08:41:29]CAPDU: 80 13 01 00 [08:41:29]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [08:41:29]Write i2c OK [08:41:29]MH_I2C_Read... [08:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:30]Read from MH i2c: E2 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 0E 00 [08:41:30]MH_I2C_Read... [08:41:30]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CB [08:41:30]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:41:30]wFMCommunicate OK [08:41:30]SAM_PROTO_GetShiftState done [08:41:30]FM_GetShiftState done [08:41:30]opened in 1720744654 [08:41:30]opened+sec_in_day 1720831054 [08:41:30]quantity*price = 50008 [08:41:30]sum+1 = 50009 [08:41:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 25 12.07.2024 08:41 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164104 ФПД: 13390574292036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084130&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164104&fm=13390574292036&tin=02508201610067®Number=0000000000090829&sum=50000 [08:41:31]StoreToDocumentArchive [08:41:31]shift 445 fd 164104 [08:41:31]save to /storage/0445/doc_00164104 [08:41:31]save last doc name /storage/0445/doc_00164104 to /storage/kkm_last_doc_name [08:41:31]save OK [08:41:31]Clear old archive folders... [08:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:31]tlvbuf is 00D21650 [08:41:31]SAM_PROTO_ClearQueue [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 09 00 00 [08:41:31]Write to MH i2c: E2 08 00 0E 03 80 09 00 00 00 00 00 00 83 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [08:41:31]RAPDU: 90 00 [08:41:31]wFMCommunicate OK [08:41:31]SAM_PROTO_ClearQueue done [08:41:31]KKMCreateOFDPacket [08:41:31]OFDProtocolAddRootSTLVToBuf [08:41:31]FM_MakeSignedData [08:41:31]FM_MakeSignedData [08:41:31]SAM_PROTO_SignData [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 0D 01 02 [08:41:31]Write to MH i2c: E2 08 00 0F 03 80 0D 01 02 00 00 00 00 8B [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [08:41:31]RAPDU: 90 00 [08:41:31]wFMCommunicate OK [08:41:31]wFMCommunicate request_size=255 [08:41:31]MH_SAM_APDU [08:41: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 19 00 00 00 F4 03 04 00 3A EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 81 02 00 35 04 06 00 0C [08:41:31]Write to MH i2c: E2 02 01 10 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 19 00 00 00 F4 03 04 00 3A EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 81 02 00 35 04 06 00 0C 00 00 8E [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [08:41:31]RAPDU: 90 00 [08:41:31]wFMCommunicate OK [08:41:31]wFMCommunicate request_size=10 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 0D 02 02 05 2D BC 6C 8C 44 [08:41:31]Write to MH i2c: E2 0D 00 11 03 80 0D 02 02 05 00 2D BC 6C 8C 44 00 00 BD [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [08:41:31]RAPDU: 90 00 [08:41:31]wFMCommunicate OK [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 0D 03 02 [08:41:31]Write to MH i2c: E2 08 00 12 03 80 0D 03 02 00 00 00 00 90 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 0B 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 0B 00 12 03 00 38 29 A4 02 EA A9 65 C7 90 00 57 [08:41:31]RAPDU: 38 29 A4 02 EA A9 65 C7 90 00 [08:41:31]wFMCommunicate OK [08:41:31]SAM_PROTO_SignData done [08:41:31]FM_MakeSignedData done [08:41:31]CreateOFDProtocolMessage [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 11 00 00 [08:41:31]Write to MH i2c: E2 08 00 13 03 80 11 00 00 00 00 00 00 90 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 17 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 17 00 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [08:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:41:31]wFMCommunicate OK [08:41:31]CreateOFDProtocolMessage done [08:41:31]OFDSenderStorePacket 164104 [08:41:31]StoreOFDPacket docnum=164104 [08:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 AD 07 01 0A 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 19 00 00 00 F4 03 04 00 3A EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 81 02 00 35 04 06 00 0C 2D BC 6C 8C 44 38 29 A4 02 EA A9 65 C7 [08:41:31]CheckFolder [08:41:31]dirname=/storage/ofd_packets [08:41:31]CheckFolder done [08:41:31]ProducePacketName [08:41:31]name=ofd_packets/00164104 [08:41:31]NVStorageSaveData ofd_packets/00164104 [08:41:31]File name is /storage/ofd_packets/00164104 [08:41:31]Write 301 bytes [08:41:31]NVStorageSaveData done [08:41:31]OFDSenderStorePacket done [08:41:31]KKMCreateOFDPacket done [08:41:31]NVStorageSaveData kkm_last_timestamp [08:41:31]File name is /storage/kkm_last_timestamp [08:41:31]Write 4 bytes [08:41:31]NVStorageSaveData done [08:41:31]ExternCall_PrintAddStr [08:41:31]wPrintStart [08:41:31]Write to MH i2c: 01 00 00 14 03 17 [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: 01 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: 01 07 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [08:41:31]RasterBufferAndPrint [08:41:31]line Счет N : (1)458181 [08:41:31]line ИНН: 02508201610067 [08:41:31]line Контрольно-Кассовый Чек [08:41:31]line ПРОДАЖА [08:41:31]line ТРК (МРК, ГНК) : 12 [08:41:31]line Товар: 2710124130 [08:41:31]line Аи-92-К-5 [08:41:31]line 7.600 * 65.80 [08:41:31]line = 500.08 [08:41:31]line НДС 12% НСП 1% [08:41:31]line > о реализуемом товаре [08:41:31]line ОКРУГЛЕНИЕ: -0.08 [08:41:31]line ИТОГО: 500.00 [08:41:31]line Внесено: 500.00 [08:41:31]line СДАЧА: 0.00 [08:41:31]line НСП 1% : 4.42 [08:41:31]line НДС 12% : 53.11 [08:41:31]line Наличными: 500.00 [08:41:31]line Безнал.: 0.00 [08:41:31]line Место: АЗС № 72 "Партнер Нефть" [08:41:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:41:31]line СНО: Общий режим [08:41:31]line Чек 25 12.07.2024 08:41 [08:41:31]line Смена: 445 ФФД: 1.0 [08:41:31]line ЗНМ: 0300000160 [08:41:31]line РНМ: 0000000000090829 [08:41:31]line Версия ККМ: 001 [08:41:31]line ФМ: 0000000000874718 [08:41:31]line ФД: 164104 [08:41:31]line ФПД: 13390574292036 [08:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084130&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164104&fm=13390574292036&tin=02508201610067®Number=0000000000090829&sum=50000 [08:41:31]written 0, free lines is 4095 [08:41:31]OFD Sender: Processing packet 164104 [packets to send 104, broken 103] [08:41:31]ProducePacketName [08:41:31]name=ofd_packets/00164104 [08:41:31]OFD Sender: To server: pG, [08:41:31]CommunicateWithHost lk.salyk.kg:30040 [08:41:31]ConnectInit lk.salyk.kg [08:41:31]Connected sock=9 [08:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 AD 07 01 0A 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 19 00 00 00 F4 03 04 00 3A EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 81 02 00 35 04 06 00 0C 2D BC 6C 8C 44 38 29 A4 02 EA A9 65 C7 [08:41:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1E B4 47 00 87 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 34 37 31 38 10 04 04 00 08 81 02 00 F4 03 04 00 CF 92 90 66 B6 04 01 00 00 EF 67 B4 FD AD FA 6F CB [08:41:32]CommunicateWithHost err = 0 [08:41:32]CheckOFDResponse [08:41:32]1017 (14) - 77093643461234 [08:41:32]1041 (16) - 0000000000874718 [08:41:32]1040 (4) - 164104 [08:41:32]1012 (4) - 12.07.2024 02:19 [08:41:32]1206 (1) - 0 [08:41:32]OFD Sender: Remove packet 164104 [08:41:32]ProducePacketName [08:41:32]name=ofd_packets/00164104 [08:41:32]NVStorageDeleteData [08:41:32]Write to MH i2c: 01 00 00 3E 03 41 [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: 01 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: 01 07 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: 01 07 00 3E 03 00 00 00 00 00 02 0D 57 [08:41:32]RasterBufferAndPrint [08:41:32]line [08:41:32]line [08:41:32]line [08:41:32]line [08:41:32]line [08:41:32]written 0, free lines is 3336 [08:41:32]MH_Cut [08:41:32]Write to MH i2c: D1 01 00 45 03 01 1A [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: D1 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: D1 01 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: D1 01 00 45 03 00 19 [08:41:32]Write to MH i2c: 01 00 00 46 03 49 [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]OFD Sender: No OFD packet to send [08:41:32]*** Cut start [08:41:32]*** Partial cut [08:41:32]*** CUTSNS_PIN = 1 [08:41:32]*** CUTSNS_PIN = 0 [08:41:33]*** Brake cut motor [08:41:33]Read from MH i2c: 01 [08:41:33]MH_I2C_Read... [08:41:33]*** Stop cut motor [08:41:33]*** Cut end [08:41:33]Read from MH i2c: 01 07 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 FF 0F 5E [08:41:33]process_action close_receipt done [08:41:33]requested_data is exist [08:41:33]produce_requested_data [08:41:33]requested_item fm.sn is exist - process it [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 11 00 00 [08:41:33]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 17 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [08:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:41:33]wFMCommunicate OK [08:41:33]requested_item fd.num is exist - process it [08:41:33]SAM_PROTO_GetFieldsCounters [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 13 00 00 [08:41:33]Write to MH i2c: E2 08 00 48 03 80 13 00 00 00 00 00 00 C7 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 62 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 62 00 48 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [08:41: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:33]wFMCommunicate OK [08:41:33]SAM_PROTO_GetFieldsCounters done [08:41:33]requested_item shift.num is exist - process it [08:41:33]requested_item shift.opened is exist - process it [08:41:33]req_shift_opened [08:41:33]FM_GetShiftState [08:41:33]SAM_PROTO_GetShiftState [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 13 01 00 [08:41:33]Write to MH i2c: E2 08 00 49 03 80 13 01 00 00 00 00 00 C9 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0E 00 49 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 13 [08:41:33]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:41:33]wFMCommunicate OK [08:41:33]SAM_PROTO_GetShiftState done [08:41:33]FM_GetShiftState done [08:41:33]req_shift_opened done [08:41:33]requested_item shift.open_date is exist - process it [08:41:33]req_shift_open_date [08:41:33]req_shift_open_date done [08:41:33]produce_requested_data done [08:41:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164104,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:41:33]process_action_free close_receipt [08:41:33]json_value_free [08:41:33]json_value_free done [08:41:33]process_json_proto returns [08:41:33]Send response to host [08:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164104,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:41:33]free response buf [08:41:33]execute_script done [08:41:33]execute_script returns [08:41:33]free content buf [08:41:33]Sock 10.Close socket [08:41:33]Sock 10.Thread stoped [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:17]accept exits with 8 [08:42:17]New connection [08:42:17]New thread 3066568036 created [08:42:17]Thread 3066711396 joined [08:42:17]Waiting for new connection... [08:42:17] Sock 8.Parse request [08:42:17]Sock 8.Check first char [08:42:17]Sock 8.First char is OK [08:42:17]request: POST /json_proto HTTP/1.0 [08:42:17]Method: POST [08:42:17]URL: /json_proto [08:42:17]Method is POST - this is cgi request [08:42:17]url: /json_proto [08:42:17]query_string will be loaded in cgi processing [08:42:17]execute_cgi json_proto POST (null) [08:42:17]execute_cgi path=json_proto method=POST [08:42:17]POST find Content-Length [08:42:17]Host: 172.17.56.4:8080 [08:42:17]Content-Length: 682 [08:42:17]Content-Type: application/json [08:42:17] [08:42:17]POST finish read [08:42:17]Found Content-Length = 682 [08:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:17]execute_script... [08:42: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)458182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:17]POST & json_proto [08:42:17]process_json_proto [08:42:17]json parsed OK: [08:42:17]protocol is kg_v1.0 [08:42:17]action value=close_receipt [08:42:17]process_action close_receipt [08:42:17]cmd_close_receipt [08:42:17]MH_GetDate [08:42:17]Write to MH i2c: F0 00 00 4A 03 3C [08:42:17]Write i2c OK [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: F0 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: F0 09 00 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: F0 09 00 4A 03 00 6A EC 90 66 C9 DC B2 64 4C [08:42:17]GetLastDocTimeStamp 1720773690 [08:42:17]current date 1720773738 [08:42:17]FM_GetShiftState [08:42:17]SAM_PROTO_GetShiftState [08:42:17]wFMCommunicate request_size=4 [08:42:17]MH_SAM_APDU [08:42:17]CAPDU: 80 13 01 00 [08:42:17]Write to MH i2c: E2 08 00 4B 03 80 13 01 00 00 00 00 00 CB [08:42:17]Write i2c OK [08:42:17]MH_I2C_Read... [08:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:17]Read from MH i2c: E2 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: E2 0E 00 [08:42:17]MH_I2C_Read... [08:42:17]Read from MH i2c: E2 0E 00 4B 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 15 [08:42:17]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:42:17]wFMCommunicate OK [08:42:17]SAM_PROTO_GetShiftState done [08:42:17]FM_GetShiftState done [08:42:17]opened in 1720744654 [08:42:17]opened+sec_in_day 1720831054 [08:42:17]quantity*price = 100016 [08:42:17]sum+1 = 100017 [08:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 26 12.07.2024 08:42 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164105 ФПД: 214986403492781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084218&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164105&fm=214986403492781&tin=02508201610067®Number=0000000000090829&sum=100000 [08:42:19]StoreToDocumentArchive [08:42:19]shift 445 fd 164105 [08:42:19]save to /storage/0445/doc_00164105 [08:42:19]save last doc name /storage/0445/doc_00164105 to /storage/kkm_last_doc_name [08:42:19]save OK [08:42:19]Clear old archive folders... [08:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:19]tlvbuf is 00D206C0 [08:42:19]SAM_PROTO_ClearQueue [08:42:19]wFMCommunicate request_size=4 [08:42:19]MH_SAM_APDU [08:42:19]CAPDU: 80 09 00 00 [08:42:19]Write to MH i2c: E2 08 00 58 03 80 09 00 00 00 00 00 00 CD [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:19]Read from MH i2c: E2 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 03 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [08:42:19]RAPDU: 90 00 [08:42:19]wFMCommunicate OK [08:42:19]SAM_PROTO_ClearQueue done [08:42:19]KKMCreateOFDPacket [08:42:19]OFDProtocolAddRootSTLVToBuf [08:42:19]FM_MakeSignedData [08:42:19]FM_MakeSignedData [08:42:19]SAM_PROTO_SignData [08:42:19]wFMCommunicate request_size=4 [08:42:19]MH_SAM_APDU [08:42:19]CAPDU: 80 0D 01 02 [08:42:19]Write to MH i2c: E2 08 00 59 03 80 0D 01 02 00 00 00 00 D5 [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:19]Read from MH i2c: E2 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 03 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [08:42:19]RAPDU: 90 00 [08:42:19]wFMCommunicate OK [08:42:19]wFMCommunicate request_size=255 [08:42:19]MH_SAM_APDU [08:42:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 6A EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 81 02 00 35 04 06 00 C3 [08:42:19]Write to MH i2c: E2 02 01 5A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 6A EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 81 02 00 35 04 06 00 C3 00 00 63 [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:19]Read from MH i2c: E2 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 03 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [08:42:19]RAPDU: 90 00 [08:42:19]wFMCommunicate OK [08:42:19]wFMCommunicate request_size=10 [08:42:19]MH_SAM_APDU [08:42:19]CAPDU: 80 0D 02 02 05 87 6C 36 33 AD [08:42:19]Write to MH i2c: E2 0D 00 5B 03 80 0D 02 02 05 00 87 6C 36 33 AD 00 00 EB [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:19]Read from MH i2c: E2 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 03 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [08:42:19]RAPDU: 90 00 [08:42:19]wFMCommunicate OK [08:42:19]wFMCommunicate request_size=4 [08:42:19]MH_SAM_APDU [08:42:19]CAPDU: 80 0D 03 02 [08:42:19]Write to MH i2c: E2 08 00 5C 03 80 0D 03 02 00 00 00 00 DA [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:19]Read from MH i2c: E2 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 0B 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 0B 00 5C 03 00 7C 91 25 74 63 A6 0A 70 90 00 04 [08:42:19]RAPDU: 7C 91 25 74 63 A6 0A 70 90 00 [08:42:19]wFMCommunicate OK [08:42:19]SAM_PROTO_SignData done [08:42:19]FM_MakeSignedData done [08:42:19]CreateOFDProtocolMessage [08:42:19]wFMCommunicate request_size=4 [08:42:19]MH_SAM_APDU [08:42:19]CAPDU: 80 11 00 00 [08:42:19]Write to MH i2c: E2 08 00 5D 03 80 11 00 00 00 00 00 00 DA [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:19]Read from MH i2c: E2 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 17 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: E2 17 00 5D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [08:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:42:19]wFMCommunicate OK [08:42:19]CreateOFDProtocolMessage done [08:42:19]OFDSenderStorePacket 164105 [08:42:19]StoreOFDPacket docnum=164105 [08:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 41 18 07 01 7F 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 6A EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 81 02 00 35 04 06 00 C3 87 6C 36 33 AD 7C 91 25 74 63 A6 0A 70 [08:42:19]CheckFolder [08:42:19]dirname=/storage/ofd_packets [08:42:19]CheckFolder done [08:42:19]ProducePacketName [08:42:19]name=ofd_packets/00164105 [08:42:19]NVStorageSaveData ofd_packets/00164105 [08:42:19]File name is /storage/ofd_packets/00164105 [08:42:19]Write 301 bytes [08:42:19]NVStorageSaveData done [08:42:19]OFDSenderStorePacket done [08:42:19]KKMCreateOFDPacket done [08:42:19]NVStorageSaveData kkm_last_timestamp [08:42:19]File name is /storage/kkm_last_timestamp [08:42:19]Write 4 bytes [08:42:19]NVStorageSaveData done [08:42:19]ExternCall_PrintAddStr [08:42:19]wPrintStart [08:42:19]Write to MH i2c: 01 00 00 5E 03 61 [08:42:19]Write i2c OK [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: 01 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: 01 07 00 [08:42:19]MH_I2C_Read... [08:42:19]Read from MH i2c: 01 07 00 5E 03 00 00 00 00 00 FF 0F 76 [08:42:19]RasterBufferAndPrint [08:42:19]line Счет N : (1)458182 [08:42:19]line ИНН: 02508201610067 [08:42:19]line Контрольно-Кассовый Чек [08:42:19]line ПРОДАЖА [08:42:19]line ТРК (МРК, ГНК) : 22 [08:42:19]line Товар: 2710124130 [08:42:19]line Аи-92-К-5 [08:42:19]line 15.200 * 65.80 [08:42:19]line = 1000.16 [08:42:19]line НДС 12% НСП 1% [08:42:19]line > о реализуемом товаре [08:42:19]line ОКРУГЛЕНИЕ: -0.16 [08:42:19]line ИТОГО: 1000.00 [08:42:19]line Внесено: 1000.00 [08:42:19]line СДАЧА: 0.00 [08:42:19]line НСП 1% : 8.85 [08:42:19]line НДС 12% : 106.21 [08:42:19]line Наличными: 1000.00 [08:42:19]line Безнал.: 0.00 [08:42:19]line Место: АЗС № 72 "Партнер Нефть" [08:42:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:42:19]line СНО: Общий режим [08:42:19]line Чек 26 12.07.2024 08:42 [08:42:19]line Смена: 445 ФФД: 1.0 [08:42:19]line ЗНМ: 0300000160 [08:42:19]line РНМ: 0000000000090829 [08:42:19]line Версия ККМ: 001 [08:42:19]line ФМ: 0000000000874718 [08:42:19]line ФД: 164105 [08:42:19]line ФПД: 214986403492781 [08:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084218&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164105&fm=214986403492781&tin=02508201610067®Number=0000000000090829&sum=100000 [08:42:19]written 0, free lines is 4095 [08:42:19]OFD Sender: Processing packet 164105 [packets to send 104, broken 103] [08:42:19]ProducePacketName [08:42:19]name=ofd_packets/00164105 [08:42:19]OFD Sender: To server: pG, [08:42:19]CommunicateWithHost lk.salyk.kg:30040 [08:42:19]ConnectInit lk.salyk.kg [08:42:19]Connected sock=10 [08:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 41 18 07 01 7F 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 6A EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 81 02 00 35 04 06 00 C3 87 6C 36 33 AD 7C 91 25 74 63 A6 0A 70 [08:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D0 83 47 00 7D 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 34 37 31 38 10 04 04 00 09 81 02 00 F4 03 04 00 FE 92 90 66 B6 04 01 00 00 70 ED BE 92 A0 A5 1F 2D [08:42:19]CommunicateWithHost err = 0 [08:42:19]CheckOFDResponse [08:42:19]1017 (14) - 77093643461234 [08:42:19]1041 (16) - 0000000000874718 [08:42:19]1040 (4) - 164105 [08:42:19]1012 (4) - 12.07.2024 02:20 [08:42:19]1206 (1) - 0 [08:42:19]OFD Sender: Remove packet 164105 [08:42:19]ProducePacketName [08:42:19]name=ofd_packets/00164105 [08:42:19]NVStorageDeleteData [08:42:20]Write to MH i2c: 01 00 00 88 03 8B [08:42:20]Write i2c OK [08:42:20]MH_I2C_Read... [08:42:20]Read from MH i2c: 01 [08:42:20]MH_I2C_Read... [08:42:20]Read from MH i2c: 01 07 00 [08:42:20]MH_I2C_Read... [08:42:20]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 16 0D B5 [08:42:20]RasterBufferAndPrint [08:42:20]line [08:42:20]line [08:42:20]line [08:42:20]line [08:42:20]line [08:42:20]written 0, free lines is 3356 [08:42:20]MH_Cut [08:42:20]Write to MH i2c: D1 01 00 8F 03 01 64 [08:42:20]Write i2c OK [08:42:20]MH_I2C_Read... [08:42:20]Read from MH i2c: D1 [08:42:20]MH_I2C_Read... [08:42:20]Read from MH i2c: D1 01 00 [08:42:20]MH_I2C_Read... [08:42:20]Read from MH i2c: D1 01 00 8F 03 00 63 [08:42:20]Write to MH i2c: 01 00 00 90 03 93 [08:42:20]Write i2c OK [08:42:20]MH_I2C_Read... [08:42:20]OFD Sender: No OFD packet to send [08:42:20]*** Cut start [08:42:20]*** Partial cut [08:42:20]*** CUTSNS_PIN = 1 [08:42:20]*** CUTSNS_PIN = 0 [08:42:20]*** Brake cut motor [08:42:21]Read from MH i2c: 01 [08:42:21]MH_I2C_Read... [08:42:21]*** Stop cut motor [08:42:21]*** Cut end [08:42:21]Read from MH i2c: 01 07 00 [08:42:21]MH_I2C_Read... [08:42:21]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [08:42:21]process_action close_receipt done [08:42:21]requested_data is exist [08:42:21]produce_requested_data [08:42:21]requested_item fm.sn is exist - process it [08:42:21]wFMCommunicate request_size=4 [08:42:21]MH_SAM_APDU [08:42:21]CAPDU: 80 11 00 00 [08:42:21]Write to MH i2c: E2 08 00 91 03 80 11 00 00 00 00 00 00 0E [08:42:21]Write i2c OK [08:42:21]MH_I2C_Read... [08:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:21]Read from MH i2c: E2 [08:42:21]MH_I2C_Read... [08:42:21]Read from MH i2c: E2 17 00 [08:42:21]MH_I2C_Read... [08:42:21]Read from MH i2c: E2 17 00 91 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [08:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:42:21]wFMCommunicate OK [08:42:21]requested_item fd.num is exist - process it [08:42:21]SAM_PROTO_GetFieldsCounters [08:42:21]wFMCommunicate request_size=4 [08:42:21]MH_SAM_APDU [08:42:21]CAPDU: 80 13 00 00 [08:42:21]Write to MH i2c: E2 08 00 92 03 80 13 00 00 00 00 00 00 11 [08:42:21]Write i2c OK [08:42:21]MH_I2C_Read... [08:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:21]Read from MH i2c: E2 [08:42:21]MH_I2C_Read... [08:42:21]Read from MH i2c: E2 62 00 [08:42:21]MH_I2C_Read... [08:42:21]Read from MH i2c: E2 62 00 92 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [08:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:21]wFMCommunicate OK [08:42:21]SAM_PROTO_GetFieldsCounters done [08:42:21]requested_item shift.num is exist - process it [08:42:21]requested_item shift.opened is exist - process it [08:42:21]req_shift_opened [08:42:21]FM_GetShiftState [08:42:21]SAM_PROTO_GetShiftState [08:42:21]wFMCommunicate request_size=4 [08:42:21]MH_SAM_APDU [08:42:21]CAPDU: 80 13 01 00 [08:42:21]Write to MH i2c: E2 08 00 93 03 80 13 01 00 00 00 00 00 13 [08:42:21]Write i2c OK [08:42:21]MH_I2C_Read... [08:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:21]Read from MH i2c: E2 [08:42:21]MH_I2C_Read... [08:42:21]Read from MH i2c: E2 0E 00 [08:42:21]MH_I2C_Read... [08:42:21]Read from MH i2c: E2 0E 00 93 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5D [08:42:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:42:21]wFMCommunicate OK [08:42:21]SAM_PROTO_GetShiftState done [08:42:21]FM_GetShiftState done [08:42:21]req_shift_opened done [08:42:21]requested_item shift.open_date is exist - process it [08:42:21]req_shift_open_date [08:42:21]req_shift_open_date done [08:42:21]produce_requested_data done [08:42:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164105,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:42:21]process_action_free close_receipt [08:42:21]json_value_free [08:42:21]json_value_free done [08:42:21]process_json_proto returns [08:42:21]Send response to host [08:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164105,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:42:21]free response buf [08:42:21]execute_script done [08:42:21]execute_script returns [08:42:21]free content buf [08:42:21]Sock 8.Close socket [08:42:21]Sock 8.Thread stoped [08:42:23]accept exits with 9 [08:42:23]New connection [08:42:23]New thread 3066711396 created [08:42:23]Thread 3066568036 joined [08:42:23]Waiting for new connection... [08:42:23] Sock 9.Parse request [08:42:23]Sock 9.Check first char [08:42:23]Sock 9.First char is OK [08:42:23]request: POST /json_proto HTTP/1.0 [08:42:23]Method: POST [08:42:23]URL: /json_proto [08:42:23]Method is POST - this is cgi request [08:42:23]url: /json_proto [08:42:23]query_string will be loaded in cgi processing [08:42:23]execute_cgi json_proto POST (null) [08:42:23]execute_cgi path=json_proto method=POST [08:42:23]POST find Content-Length [08:42:23]Host: 172.17.56.4:8080 [08:42:23]Content-Length: 677 [08:42:23]Content-Type: application/json [08:42:23] [08:42:23]POST finish read [08:42:23]Found Content-Length = 677 [08:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:23]execute_script... [08:42: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)458183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:23]POST & json_proto [08:42:23]process_json_proto [08:42:23]json parsed OK: [08:42:23]protocol is kg_v1.0 [08:42:23]action value=close_receipt [08:42:23]process_action close_receipt [08:42:23]cmd_close_receipt [08:42:23]MH_GetDate [08:42:23]Write to MH i2c: F0 00 00 94 03 86 [08:42:23]Write i2c OK [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: F0 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: F0 09 00 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: F0 09 00 94 03 00 70 EC 90 66 C9 DC B2 64 9C [08:42:23]GetLastDocTimeStamp 1720773738 [08:42:23]current date 1720773744 [08:42:23]FM_GetShiftState [08:42:23]SAM_PROTO_GetShiftState [08:42:23]wFMCommunicate request_size=4 [08:42:23]MH_SAM_APDU [08:42:23]CAPDU: 80 13 01 00 [08:42:23]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [08:42:23]Write i2c OK [08:42:23]MH_I2C_Read... [08:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:23]Read from MH i2c: E2 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: E2 0E 00 [08:42:23]MH_I2C_Read... [08:42:23]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5F [08:42:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:42:23]wFMCommunicate OK [08:42:23]SAM_PROTO_GetShiftState done [08:42:23]FM_GetShiftState done [08:42:23]opened in 1720744654 [08:42:23]opened+sec_in_day 1720831054 [08:42:23]quantity*price = 33031 [08:42:23]sum+1 = 33033 [08:42:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 27 12.07.2024 08:42 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164106 ФПД: 249311943350508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084224&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164106&fm=249311943350508&tin=02508201610067®Number=0000000000090829&sum=33000 [08:42:24]StoreToDocumentArchive [08:42:24]shift 445 fd 164106 [08:42:24]save to /storage/0445/doc_00164106 [08:42:24]save last doc name /storage/0445/doc_00164106 to /storage/kkm_last_doc_name [08:42:24]save OK [08:42:24]Clear old archive folders... [08:42:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:24]tlvbuf is 00D41600 [08:42:24]SAM_PROTO_ClearQueue [08:42:24]wFMCommunicate request_size=4 [08:42:24]MH_SAM_APDU [08:42:24]CAPDU: 80 09 00 00 [08:42:24]Write to MH i2c: E2 08 00 A2 03 80 09 00 00 00 00 00 00 17 [08:42:24]Write i2c OK [08:42:24]MH_I2C_Read... [08:42:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:25]Read from MH i2c: E2 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 03 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [08:42:25]RAPDU: 90 00 [08:42:25]wFMCommunicate OK [08:42:25]SAM_PROTO_ClearQueue done [08:42:25]KKMCreateOFDPacket [08:42:25]OFDProtocolAddRootSTLVToBuf [08:42:25]FM_MakeSignedData [08:42:25]FM_MakeSignedData [08:42:25]SAM_PROTO_SignData [08:42:25]wFMCommunicate request_size=4 [08:42:25]MH_SAM_APDU [08:42:25]CAPDU: 80 0D 01 02 [08:42:25]Write to MH i2c: E2 08 00 A3 03 80 0D 01 02 00 00 00 00 1F [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:25]Read from MH i2c: E2 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 03 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [08:42:25]RAPDU: 90 00 [08:42:25]wFMCommunicate OK [08:42:25]wFMCommunicate request_size=255 [08:42:25]MH_SAM_APDU [08:42: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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 70 EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 81 02 00 35 04 06 00 E2 [08:42:25]Write to MH i2c: E2 02 01 A4 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 70 EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 81 02 00 35 04 06 00 E2 00 00 84 [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:25]Read from MH i2c: E2 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 03 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [08:42:25]RAPDU: 90 00 [08:42:25]wFMCommunicate OK [08:42:25]wFMCommunicate request_size=10 [08:42:25]MH_SAM_APDU [08:42:25]CAPDU: 80 0D 02 02 05 BF 75 D2 58 EC [08:42:25]Write to MH i2c: E2 0D 00 A5 03 80 0D 02 02 05 00 BF 75 D2 58 EC 00 00 76 [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:25]OFD Sender: No OFD packet to send [08:42:25]Read from MH i2c: E2 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 03 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [08:42:25]RAPDU: 90 00 [08:42:25]wFMCommunicate OK [08:42:25]wFMCommunicate request_size=4 [08:42:25]MH_SAM_APDU [08:42:25]CAPDU: 80 0D 03 02 [08:42:25]Write to MH i2c: E2 08 00 A6 03 80 0D 03 02 00 00 00 00 24 [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:25]Read from MH i2c: E2 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 0B 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 0B 00 A6 03 00 9D 9C FE D1 D0 7A 4D 09 90 00 CD [08:42:25]RAPDU: 9D 9C FE D1 D0 7A 4D 09 90 00 [08:42:25]wFMCommunicate OK [08:42:25]SAM_PROTO_SignData done [08:42:25]FM_MakeSignedData done [08:42:25]CreateOFDProtocolMessage [08:42:25]wFMCommunicate request_size=4 [08:42:25]MH_SAM_APDU [08:42:25]CAPDU: 80 11 00 00 [08:42:25]Write to MH i2c: E2 08 00 A7 03 80 11 00 00 00 00 00 00 24 [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:25]Read from MH i2c: E2 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 17 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 17 00 A7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [08:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:42:25]wFMCommunicate OK [08:42:25]CreateOFDProtocolMessage done [08:42:25]OFDSenderStorePacket 164106 [08:42:25]StoreOFDPacket docnum=164106 [08:42:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 62 07 01 0E 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 70 EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 81 02 00 35 04 06 00 E2 BF 75 D2 58 EC 9D 9C FE D1 D0 7A 4D 09 [08:42:25]CheckFolder [08:42:25]dirname=/storage/ofd_packets [08:42:25]CheckFolder done [08:42:25]ProducePacketName [08:42:25]name=ofd_packets/00164106 [08:42:25]NVStorageSaveData ofd_packets/00164106 [08:42:25]File name is /storage/ofd_packets/00164106 [08:42:25]Write 301 bytes [08:42:25]NVStorageSaveData done [08:42:25]OFDSenderStorePacket done [08:42:25]KKMCreateOFDPacket done [08:42:25]NVStorageSaveData kkm_last_timestamp [08:42:25]File name is /storage/kkm_last_timestamp [08:42:25]Write 4 bytes [08:42:25]NVStorageSaveData done [08:42:25]ExternCall_PrintAddStr [08:42:25]wPrintStart [08:42:25]Write to MH i2c: 01 00 00 A8 03 AB [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: 01 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: 01 07 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 FF 0F C0 [08:42:25]RasterBufferAndPrint [08:42:25]line Счет N : (1)458183 [08:42:25]line ИНН: 02508201610067 [08:42:25]line Контрольно-Кассовый Чек [08:42:25]line ПРОДАЖА [08:42:25]line ТРК (МРК, ГНК) : 12 [08:42:25]line Товар: 2710124130 [08:42:25]line Аи-92-К-5 [08:42:25]line 5.020 * 65.80 [08:42:25]line = 330.32 [08:42:25]line НДС 12% НСП 1% [08:42:25]line > о реализуемом товаре [08:42:25]line ОКРУГЛЕНИЕ: -0.32 [08:42:25]line ИТОГО: 330.00 [08:42:25]line Внесено: 330.00 [08:42:25]line СДАЧА: 0.00 [08:42:25]line НСП 1% : 2.92 [08:42:25]line НДС 12% : 35.08 [08:42:25]line Наличными: 330.00 [08:42:25]line Безнал.: 0.00 [08:42:25]line Место: АЗС № 72 "Партнер Нефть" [08:42:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:42:25]line СНО: Общий режим [08:42:25]line Чек 27 12.07.2024 08:42 [08:42:25]line Смена: 445 ФФД: 1.0 [08:42:25]line ЗНМ: 0300000160 [08:42:25]line РНМ: 0000000000090829 [08:42:25]line Версия ККМ: 001 [08:42:25]line ФМ: 0000000000874718 [08:42:25]line ФД: 164106 [08:42:25]line ФПД: 249311943350508 [08:42:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084224&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164106&fm=249311943350508&tin=02508201610067®Number=0000000000090829&sum=33000 [08:42:25]written 0, free lines is 4095 [08:42:25]OFD Sender: Processing packet 164106 [packets to send 104, broken 103] [08:42:25]ProducePacketName [08:42:25]name=ofd_packets/00164106 [08:42:25]OFD Sender: To server: pG, [08:42:25]CommunicateWithHost lk.salyk.kg:30040 [08:42:25]ConnectInit lk.salyk.kg [08:42:25]Connected sock=10 [08:42:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 62 07 01 0E 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 70 EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 81 02 00 35 04 06 00 E2 BF 75 D2 58 EC 9D 9C FE D1 D0 7A 4D 09 [08:42:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 51 98 47 00 F5 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 34 37 31 38 10 04 04 00 0A 81 02 00 F4 03 04 00 05 93 90 66 B6 04 01 00 00 D9 2E D5 B7 AA F2 75 3F [08:42:25]CommunicateWithHost err = 0 [08:42:25]CheckOFDResponse [08:42:25]1017 (14) - 77093643461234 [08:42:25]1041 (16) - 0000000000874718 [08:42:25]1040 (4) - 164106 [08:42:25]1012 (4) - 12.07.2024 02:20 [08:42:25]1206 (1) - 0 [08:42:25]OFD Sender: Remove packet 164106 [08:42:25]ProducePacketName [08:42:25]name=ofd_packets/00164106 [08:42:25]NVStorageDeleteData [08:42:26]Write to MH i2c: 01 00 00 D2 03 D5 [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: 01 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: 01 07 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 08 0D F1 [08:42:26]RasterBufferAndPrint [08:42:26]line [08:42:26]line [08:42:26]line [08:42:26]line [08:42:26]line [08:42:26]written 0, free lines is 3348 [08:42:26]MH_Cut [08:42:26]Write to MH i2c: D1 01 00 D9 03 01 AE [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: D1 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: D1 01 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: D1 01 00 D9 03 00 AD [08:42:26]Write to MH i2c: 01 00 00 DA 03 DD [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]OFD Sender: No OFD packet to send [08:42:26]*** Cut start [08:42:26]*** Partial cut [08:42:26]*** CUTSNS_PIN = 1 [08:42:26]*** CUTSNS_PIN = 0 [08:42:26]*** Brake cut motor [08:42:27]Read from MH i2c: 01 [08:42:27]MH_I2C_Read... [08:42:27]*** Stop cut motor [08:42:27]*** Cut end [08:42:27]Read from MH i2c: 01 07 00 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [08:42:27]process_action close_receipt done [08:42:27]requested_data is exist [08:42:27]produce_requested_data [08:42:27]requested_item fm.sn is exist - process it [08:42:27]wFMCommunicate request_size=4 [08:42:27]MH_SAM_APDU [08:42:27]CAPDU: 80 11 00 00 [08:42:27]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [08:42:27]Write i2c OK [08:42:27]MH_I2C_Read... [08:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:27]Read from MH i2c: E2 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: E2 17 00 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [08:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:42:27]wFMCommunicate OK [08:42:27]requested_item fd.num is exist - process it [08:42:27]SAM_PROTO_GetFieldsCounters [08:42:27]wFMCommunicate request_size=4 [08:42:27]MH_SAM_APDU [08:42:27]CAPDU: 80 13 00 00 [08:42:27]Write to MH i2c: E2 08 00 DC 03 80 13 00 00 00 00 00 00 5B [08:42:27]Write i2c OK [08:42:27]MH_I2C_Read... [08:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:27]Read from MH i2c: E2 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: E2 62 00 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: E2 62 00 DC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [08:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:27]wFMCommunicate OK [08:42:27]SAM_PROTO_GetFieldsCounters done [08:42:27]requested_item shift.num is exist - process it [08:42:27]requested_item shift.opened is exist - process it [08:42:27]req_shift_opened [08:42:27]FM_GetShiftState [08:42:27]SAM_PROTO_GetShiftState [08:42:27]wFMCommunicate request_size=4 [08:42:27]MH_SAM_APDU [08:42:27]CAPDU: 80 13 01 00 [08:42:27]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [08:42:27]Write i2c OK [08:42:27]MH_I2C_Read... [08:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:27]Read from MH i2c: E2 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: E2 0E 00 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A7 [08:42:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:42:27]wFMCommunicate OK [08:42:27]SAM_PROTO_GetShiftState done [08:42:27]FM_GetShiftState done [08:42:27]req_shift_opened done [08:42:27]requested_item shift.open_date is exist - process it [08:42:27]req_shift_open_date [08:42:27]req_shift_open_date done [08:42:27]produce_requested_data done [08:42:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164106,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:42:27]process_action_free close_receipt [08:42:27]json_value_free [08:42:27]json_value_free done [08:42:27]process_json_proto returns [08:42:27]Send response to host [08:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164106,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:42:27]free response buf [08:42:27]execute_script done [08:42:27]execute_script returns [08:42:27]free content buf [08:42:27]Sock 9.Close socket [08:42:27]Sock 9.Thread stoped [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:19]accept exits with 8 [08:44:19]New connection [08:44:19]New thread 3066568036 created [08:44:19]Thread 3066711396 joined [08:44:19]Waiting for new connection... [08:44:19] Sock 8.Parse request [08:44:19]Sock 8.Check first char [08:44:19]Sock 8.First char is OK [08:44:19]request: POST /json_proto HTTP/1.0 [08:44:19]Method: POST [08:44:19]URL: /json_proto [08:44:19]Method is POST - this is cgi request [08:44:19]url: /json_proto [08:44:19]query_string will be loaded in cgi processing [08:44:19]execute_cgi json_proto POST (null) [08:44:19]execute_cgi path=json_proto method=POST [08:44:19]POST find Content-Length [08:44:19]Host: 172.17.56.4:8080 [08:44:19]Content-Length: 679 [08:44:19]Content-Type: application/json [08:44:19] [08:44:19]POST finish read [08:44:19]Found Content-Length = 679 [08:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458184", "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" : 71.90, "quantity" : 30.600, "sum" : 2200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:19]execute_script... [08:44: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)458184", "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" : 71.90, "quantity" : 30.600, "sum" : 2200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:19]POST & json_proto [08:44:19]process_json_proto [08:44:19]json parsed OK: [08:44:19]protocol is kg_v1.0 [08:44:19]action value=close_receipt [08:44:19]process_action close_receipt [08:44:19]cmd_close_receipt [08:44:19]MH_GetDate [08:44:19]Write to MH i2c: F0 00 00 DE 03 D0 [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: F0 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: F0 09 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: F0 09 00 DE 03 00 E4 EC 90 66 C9 DC B2 64 5A [08:44:19]GetLastDocTimeStamp 1720773744 [08:44:19]current date 1720773860 [08:44:19]FM_GetShiftState [08:44:19]SAM_PROTO_GetShiftState [08:44:19]wFMCommunicate request_size=4 [08:44:19]MH_SAM_APDU [08:44:19]CAPDU: 80 13 01 00 [08:44:19]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [08:44:19]Write i2c OK [08:44:19]MH_I2C_Read... [08:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:19]Read from MH i2c: E2 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 [08:44:19]MH_I2C_Read... [08:44:19]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A9 [08:44:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:44:19]wFMCommunicate OK [08:44:19]SAM_PROTO_GetShiftState done [08:44:19]FM_GetShiftState done [08:44:19]opened in 1720744654 [08:44:19]opened+sec_in_day 1720831054 [08:44:19]quantity*price = 220014 [08:44:19]sum+1 = 220015 [08:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 28 12.07.2024 08:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164107 ФПД: 241879434010536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084420&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164107&fm=241879434010536&tin=02508201610067®Number=0000000000090829&sum=220000 [08:44:21]StoreToDocumentArchive [08:44:21]shift 445 fd 164107 [08:44:21]save to /storage/0445/doc_00164107 [08:44:21]save last doc name /storage/0445/doc_00164107 to /storage/kkm_last_doc_name [08:44:21]save OK [08:44:21]Clear old archive folders... [08:44:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:44:21]tlvbuf is 00D2EE40 [08:44:21]SAM_PROTO_ClearQueue [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 09 00 00 [08:44:21]Write to MH i2c: E2 08 00 EC 03 80 09 00 00 00 00 00 00 61 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]SAM_PROTO_ClearQueue done [08:44:21]KKMCreateOFDPacket [08:44:21]OFDProtocolAddRootSTLVToBuf [08:44:21]FM_MakeSignedData [08:44:21]FM_MakeSignedData [08:44:21]SAM_PROTO_SignData [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 0D 01 02 [08:44:21]Write to MH i2c: E2 08 00 ED 03 80 0D 01 02 00 00 00 00 69 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]wFMCommunicate request_size=255 [08:44:21]MH_SAM_APDU [08:44: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 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E4 EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 81 02 00 35 04 06 00 DB FC F1 BE [08:44:21]Write to MH i2c: E2 02 01 EE 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E4 EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 81 02 00 35 04 06 00 DB FC F1 BE 00 00 3A [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]wFMCommunicate request_size=7 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 0D 02 02 02 1F A8 [08:44:21]Write to MH i2c: E2 0A 00 EF 03 80 0D 02 02 02 00 1F A8 00 00 37 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [08:44:21]RAPDU: 90 00 [08:44:21]wFMCommunicate OK [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 0D 03 02 [08:44:21]Write to MH i2c: E2 08 00 F0 03 80 0D 03 02 00 00 00 00 6E [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 0B 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 0B 00 F0 03 00 47 80 91 D9 74 E8 E0 51 90 00 2D [08:44:21]RAPDU: 47 80 91 D9 74 E8 E0 51 90 00 [08:44:21]wFMCommunicate OK [08:44:21]SAM_PROTO_SignData done [08:44:21]FM_MakeSignedData done [08:44:21]CreateOFDProtocolMessage [08:44:21]wFMCommunicate request_size=4 [08:44:21]MH_SAM_APDU [08:44:21]CAPDU: 80 11 00 00 [08:44:21]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:21]Read from MH i2c: E2 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [08:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:44:21]wFMCommunicate OK [08:44:21]CreateOFDProtocolMessage done [08:44:21]OFDSenderStorePacket 164107 [08:44:21]StoreOFDPacket docnum=164107 [08:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 05 D1 04 01 EA CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E4 EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 81 02 00 35 04 06 00 DB FC F1 BE 1F A8 47 80 91 D9 74 E8 E0 51 [08:44:21]CheckFolder [08:44:21]dirname=/storage/ofd_packets [08:44:21]CheckFolder done [08:44:21]ProducePacketName [08:44:21]name=ofd_packets/00164107 [08:44:21]NVStorageSaveData ofd_packets/00164107 [08:44:21]File name is /storage/ofd_packets/00164107 [08:44:21]Write 298 bytes [08:44:21]NVStorageSaveData done [08:44:21]OFDSenderStorePacket done [08:44:21]KKMCreateOFDPacket done [08:44:21]NVStorageSaveData kkm_last_timestamp [08:44:21]File name is /storage/kkm_last_timestamp [08:44:21]Write 4 bytes [08:44:21]NVStorageSaveData done [08:44:21]ExternCall_PrintAddStr [08:44:21]wPrintStart [08:44:21]Write to MH i2c: 01 00 00 F2 03 F5 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 07 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [08:44:21]RasterBufferAndPrint [08:44:21]line Счет N : (1)458184 [08:44:21]line ИНН: 02508201610067 [08:44:21]line Контрольно-Кассовый Чек [08:44:21]line ПРОДАЖА [08:44:21]line ТРК (МРК, ГНК) : 21 [08:44:21]line Товар: 2710194210 [08:44:21]line ДТ-К-5 [08:44:21]line 30.600 * 71.90 [08:44:21]line = 2200.14 [08:44:21]line НДС 12% НСП 1% [08:44:21]line > о реализуемом товаре [08:44:21]line ОКРУГЛЕНИЕ: -0.14 [08:44:21]line ИТОГО: 2200.00 [08:44:21]line Внесено: 2200.00 [08:44:21]line СДАЧА: 0.00 [08:44:21]line НСП 1% : 19.47 [08:44:21]line НДС 12% : 233.64 [08:44:21]line Наличными: 2200.00 [08:44:21]line Безнал.: 0.00 [08:44:21]line Место: АЗС № 72 "Партнер Нефть" [08:44:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:44:21]line СНО: Общий режим [08:44:21]line Чек 28 12.07.2024 08:44 [08:44:21]line Смена: 445 ФФД: 1.0 [08:44:21]line ЗНМ: 0300000160 [08:44:21]line РНМ: 0000000000090829 [08:44:21]line Версия ККМ: 001 [08:44:21]line ФМ: 0000000000874718 [08:44:21]line ФД: 164107 [08:44:21]line ФПД: 241879434010536 [08:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084420&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164107&fm=241879434010536&tin=02508201610067®Number=0000000000090829&sum=220000 [08:44:21]OFD Sender: Processing packet 164107 [packets to send 104, broken 103] [08:44:21]ProducePacketName [08:44:21]name=ofd_packets/00164107 [08:44:21]OFD Sender: To server: pG, [08:44:21]CommunicateWithHost lk.salyk.kg:30040 [08:44:21]ConnectInit lk.salyk.kg [08:44:21]written 0, free lines is 4095 [08:44:21]Connected sock=10 [08:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 05 D1 04 01 EA CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E4 EC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 81 02 00 35 04 06 00 DB FC F1 BE 1F A8 47 80 91 D9 74 E8 E0 51 [08:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0E 67 47 00 56 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 34 37 31 38 10 04 04 00 0B 81 02 00 F4 03 04 00 79 93 90 66 B6 04 01 00 00 11 C5 0F 94 87 DF DD 4F [08:44:22]CommunicateWithHost err = 0 [08:44:22]CheckOFDResponse [08:44:22]1017 (14) - 77093643461234 [08:44:22]1041 (16) - 0000000000874718 [08:44:22]1040 (4) - 164107 [08:44:22]1012 (4) - 12.07.2024 02:22 [08:44:22]1206 (1) - 0 [08:44:22]OFD Sender: Remove packet 164107 [08:44:22]ProducePacketName [08:44:22]name=ofd_packets/00164107 [08:44:22]NVStorageDeleteData [08:44:22]Write to MH i2c: 01 00 00 1C 04 20 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 07 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 00 0D 34 [08:44:22]RasterBufferAndPrint [08:44:22]line [08:44:22]line [08:44:22]line [08:44:22]line [08:44:22]line [08:44:22]written 0, free lines is 3334 [08:44:22]MH_Cut [08:44:22]Write to MH i2c: D1 01 00 23 04 01 F9 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: D1 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: D1 01 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: D1 01 00 23 04 00 F8 [08:44:22]Write to MH i2c: 01 00 00 24 04 28 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]OFD Sender: No OFD packet to send [08:44:22]*** Cut start [08:44:22]*** Partial cut [08:44:22]*** CUTSNS_PIN = 1 [08:44:23]*** CUTSNS_PIN = 0 [08:44:23]*** Brake cut motor [08:44:23]Read from MH i2c: 01 [08:44:23]*** Stop cut motor [08:44:23]*** Cut end [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: 01 07 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 FF 0F 3D [08:44:23]process_action close_receipt done [08:44:23]requested_data is exist [08:44:23]produce_requested_data [08:44:23]requested_item fm.sn is exist - process it [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 11 00 00 [08:44:23]Write to MH i2c: E2 08 00 25 04 80 11 00 00 00 00 00 00 A3 [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 17 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 17 00 25 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F9 [08:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:44:23]wFMCommunicate OK [08:44:23]requested_item fd.num is exist - process it [08:44:23]SAM_PROTO_GetFieldsCounters [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 13 00 00 [08:44:23]Write to MH i2c: E2 08 00 26 04 80 13 00 00 00 00 00 00 A6 [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 62 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 62 00 26 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [08:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:23]wFMCommunicate OK [08:44:23]SAM_PROTO_GetFieldsCounters done [08:44:23]requested_item shift.num is exist - process it [08:44:23]requested_item shift.opened is exist - process it [08:44:23]req_shift_opened [08:44:23]FM_GetShiftState [08:44:23]SAM_PROTO_GetShiftState [08:44:23]wFMCommunicate request_size=4 [08:44:23]MH_SAM_APDU [08:44:23]CAPDU: 80 13 01 00 [08:44:23]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:23]Read from MH i2c: E2 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 0E 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F2 [08:44:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:44:23]wFMCommunicate OK [08:44:23]SAM_PROTO_GetShiftState done [08:44:23]FM_GetShiftState done [08:44:23]req_shift_opened done [08:44:23]requested_item shift.open_date is exist - process it [08:44:23]req_shift_open_date [08:44:23]req_shift_open_date done [08:44:23]produce_requested_data done [08:44:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164107,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:44:23]process_action_free close_receipt [08:44:23]json_value_free [08:44:23]json_value_free done [08:44:23]process_json_proto returns [08:44:23]Send response to host [08:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164107,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:44:23]free response buf [08:44:23]execute_script done [08:44:23]execute_script returns [08:44:23]free content buf [08:44:23]Sock 8.Close socket [08:44:23]Sock 8.Thread stoped [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:19]accept exits with 9 [08:45:19]New connection [08:45:19]New thread 3066711396 created [08:45:19]Thread 3066568036 joined [08:45:19]Waiting for new connection... [08:45:19] Sock 9.Parse request [08:45:19]Sock 9.Check first char [08:45:19]Sock 9.First char is OK [08:45:19]request: POST /json_proto HTTP/1.0 [08:45:19]Method: POST [08:45:19]URL: /json_proto [08:45:19]Method is POST - this is cgi request [08:45:19]url: /json_proto [08:45:19]query_string will be loaded in cgi processing [08:45:19]execute_cgi json_proto POST (null) [08:45:19]execute_cgi path=json_proto method=POST [08:45:19]POST find Content-Length [08:45:19]Host: 172.17.56.4:8080 [08:45:19]Content-Length: 677 [08:45:19]Content-Type: application/json [08:45:19] [08:45:19]POST finish read [08:45:19]Found Content-Length = 677 [08:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:19]execute_script... [08:45: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)458185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:19]POST & json_proto [08:45:19]process_json_proto [08:45:19]json parsed OK: [08:45:19]protocol is kg_v1.0 [08:45:19]action value=close_receipt [08:45:19]process_action close_receipt [08:45:19]cmd_close_receipt [08:45:19]MH_GetDate [08:45:19]Write to MH i2c: F0 00 00 28 04 1B [08:45:19]Write i2c OK [08:45:19]MH_I2C_Read... [08:45:19]Read from MH i2c: F0 [08:45:19]MH_I2C_Read... [08:45:19]Read from MH i2c: F0 09 00 [08:45:19]MH_I2C_Read... [08:45:19]Read from MH i2c: F0 09 00 28 04 00 1F ED 90 66 C9 DC B2 64 E1 [08:45:19]GetLastDocTimeStamp 1720773860 [08:45:19]current date 1720773919 [08:45:19]FM_GetShiftState [08:45:19]SAM_PROTO_GetShiftState [08:45:19]wFMCommunicate request_size=4 [08:45:19]MH_SAM_APDU [08:45:19]CAPDU: 80 13 01 00 [08:45:19]Write to MH i2c: E2 08 00 29 04 80 13 01 00 00 00 00 00 AA [08:45:19]Write i2c OK [08:45:19]MH_I2C_Read... [08:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:19]Read from MH i2c: E2 [08:45:19]MH_I2C_Read... [08:45:19]Read from MH i2c: E2 0E 00 [08:45:19]MH_I2C_Read... [08:45:19]Read from MH i2c: E2 0E 00 29 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F4 [08:45:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:45:19]wFMCommunicate OK [08:45:19]SAM_PROTO_GetShiftState done [08:45:19]FM_GetShiftState done [08:45:19]opened in 1720744654 [08:45:19]opened+sec_in_day 1720831054 [08:45:19]quantity*price = 60009 [08:45:19]sum+1 = 60011 [08:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 29 12.07.2024 08:45 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164108 ФПД: 169061257980792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084519&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164108&fm=169061257980792&tin=02508201610067®Number=0000000000090829&sum=60000 [08:45:20]StoreToDocumentArchive [08:45:20]shift 445 fd 164108 [08:45:20]save to /storage/0445/doc_00164108 [08:45:20]save last doc name /storage/0445/doc_00164108 to /storage/kkm_last_doc_name [08:45:20]save OK [08:45:20]Clear old archive folders... [08:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:20]tlvbuf is 00D1B8F0 [08:45:20]SAM_PROTO_ClearQueue [08:45:20]wFMCommunicate request_size=4 [08:45:20]MH_SAM_APDU [08:45:20]CAPDU: 80 09 00 00 [08:45:20]Write to MH i2c: E2 08 00 36 04 80 09 00 00 00 00 00 00 AC [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:20]Read from MH i2c: E2 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 03 00 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [08:45:20]RAPDU: 90 00 [08:45:20]wFMCommunicate OK [08:45:20]SAM_PROTO_ClearQueue done [08:45:20]KKMCreateOFDPacket [08:45:20]OFDProtocolAddRootSTLVToBuf [08:45:20]FM_MakeSignedData [08:45:20]FM_MakeSignedData [08:45:20]SAM_PROTO_SignData [08:45:20]wFMCommunicate request_size=4 [08:45:20]MH_SAM_APDU [08:45:20]CAPDU: 80 0D 01 02 [08:45:20]Write to MH i2c: E2 08 00 37 04 80 0D 01 02 00 00 00 00 B4 [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:20]Read from MH i2c: E2 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 03 00 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [08:45:20]RAPDU: 90 00 [08:45:20]wFMCommunicate OK [08:45:20]wFMCommunicate request_size=255 [08:45:20]MH_SAM_APDU [08:45: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1F ED 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 81 02 00 35 04 06 00 99 [08:45:20]Write to MH i2c: E2 02 01 38 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1F ED 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 81 02 00 35 04 06 00 99 00 00 53 [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:20]Read from MH i2c: E2 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 03 00 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [08:45:20]RAPDU: 90 00 [08:45:20]wFMCommunicate OK [08:45:20]wFMCommunicate request_size=10 [08:45:20]MH_SAM_APDU [08:45:20]CAPDU: 80 0D 02 02 05 C2 A4 3A 2B 78 [08:45:20]Write to MH i2c: E2 0D 00 39 04 80 0D 02 02 05 00 C2 A4 3A 2B 78 00 00 04 [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:20]Read from MH i2c: E2 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 03 00 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [08:45:20]RAPDU: 90 00 [08:45:20]wFMCommunicate OK [08:45:20]wFMCommunicate request_size=4 [08:45:20]MH_SAM_APDU [08:45:20]CAPDU: 80 0D 03 02 [08:45:20]Write to MH i2c: E2 08 00 3A 04 80 0D 03 02 00 00 00 00 B9 [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:20]Read from MH i2c: E2 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 0B 00 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 0B 00 3A 04 00 18 70 09 EE DC 3E DE 7D 90 00 AE [08:45:20]RAPDU: 18 70 09 EE DC 3E DE 7D 90 00 [08:45:20]wFMCommunicate OK [08:45:20]SAM_PROTO_SignData done [08:45:20]FM_MakeSignedData done [08:45:20]CreateOFDProtocolMessage [08:45:20]wFMCommunicate request_size=4 [08:45:20]MH_SAM_APDU [08:45:20]CAPDU: 80 11 00 00 [08:45:20]Write to MH i2c: E2 08 00 3B 04 80 11 00 00 00 00 00 00 B9 [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:20]Read from MH i2c: E2 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 17 00 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: E2 17 00 3B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [08:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:45:20]wFMCommunicate OK [08:45:20]CreateOFDProtocolMessage done [08:45:20]OFDSenderStorePacket 164108 [08:45:20]StoreOFDPacket docnum=164108 [08:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F 37 07 01 60 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1F ED 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 81 02 00 35 04 06 00 99 C2 A4 3A 2B 78 18 70 09 EE DC 3E DE 7D [08:45:20]CheckFolder [08:45:20]dirname=/storage/ofd_packets [08:45:20]CheckFolder done [08:45:20]ProducePacketName [08:45:20]name=ofd_packets/00164108 [08:45:20]NVStorageSaveData ofd_packets/00164108 [08:45:20]File name is /storage/ofd_packets/00164108 [08:45:20]Write 301 bytes [08:45:20]NVStorageSaveData done [08:45:20]OFDSenderStorePacket done [08:45:20]KKMCreateOFDPacket done [08:45:20]NVStorageSaveData kkm_last_timestamp [08:45:20]File name is /storage/kkm_last_timestamp [08:45:20]Write 4 bytes [08:45:20]NVStorageSaveData done [08:45:20]ExternCall_PrintAddStr [08:45:20]wPrintStart [08:45:20]Write to MH i2c: 01 00 00 3C 04 40 [08:45:20]Write i2c OK [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: 01 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: 01 07 00 [08:45:20]MH_I2C_Read... [08:45:20]Read from MH i2c: 01 07 00 3C 04 00 00 00 00 00 FF 0F 55 [08:45:20]RasterBufferAndPrint [08:45:20]line Счет N : (1)458185 [08:45:20]line ИНН: 02508201610067 [08:45:20]line Контрольно-Кассовый Чек [08:45:20]line ПРОДАЖА [08:45:20]line ТРК (МРК, ГНК) : 22 [08:45:20]line Товар: 2710124130 [08:45:20]line Аи-92-К-5 [08:45:20]line 9.120 * 65.80 [08:45:20]line = 600.10 [08:45:20]line НДС 12% НСП 1% [08:45:20]line > о реализуемом товаре [08:45:20]line ОКРУГЛЕНИЕ: -0.10 [08:45:20]line ИТОГО: 600.00 [08:45:20]line Внесено: 600.00 [08:45:20]line СДАЧА: 0.00 [08:45:20]line НСП 1% : 5.31 [08:45:20]line НДС 12% : 63.73 [08:45:20]line Наличными: 600.00 [08:45:20]line Безнал.: 0.00 [08:45:20]line Место: АЗС № 72 "Партнер Нефть" [08:45:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:45:20]line СНО: Общий режим [08:45:20]line Чек 29 12.07.2024 08:45 [08:45:20]line Смена: 445 ФФД: 1.0 [08:45:20]line ЗНМ: 0300000160 [08:45:20]line РНМ: 0000000000090829 [08:45:20]line Версия ККМ: 001 [08:45:20]line ФМ: 0000000000874718 [08:45:20]line ФД: 164108 [08:45:20]line ФПД: 169061257980792 [08:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084519&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164108&fm=169061257980792&tin=02508201610067®Number=0000000000090829&sum=60000 [08:45:21]OFD Sender: Processing packet 164108 [packets to send 104, broken 103] [08:45:21]ProducePacketName [08:45:21]name=ofd_packets/00164108 [08:45:21]OFD Sender: To server: pG, [08:45:21]CommunicateWithHost lk.salyk.kg:30040 [08:45:21]ConnectInit lk.salyk.kg [08:45:21]written 0, free lines is 4095 [08:45:21]Connected sock=10 [08:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F 37 07 01 60 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1F ED 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 81 02 00 35 04 06 00 99 C2 A4 3A 2B 78 18 70 09 EE DC 3E DE 7D [08:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 4C 47 00 E9 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 34 37 31 38 10 04 04 00 0C 81 02 00 F4 03 04 00 B4 93 90 66 B6 04 01 00 00 73 08 1A 56 1B A1 54 51 [08:45:21]CommunicateWithHost err = 0 [08:45:21]CheckOFDResponse [08:45:21]1017 (14) - 77093643461234 [08:45:21]1041 (16) - 0000000000874718 [08:45:21]1040 (4) - 164108 [08:45:21]1012 (4) - 12.07.2024 02:23 [08:45:21]1206 (1) - 0 [08:45:21]OFD Sender: Remove packet 164108 [08:45:21]ProducePacketName [08:45:21]name=ofd_packets/00164108 [08:45:21]NVStorageDeleteData [08:45:21]Write to MH i2c: 01 00 00 66 04 6A [08:45:21]Write i2c OK [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: 01 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: 01 07 00 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: 01 07 00 66 04 00 00 00 00 00 01 0D 7F [08:45:21]RasterBufferAndPrint [08:45:21]line [08:45:21]line [08:45:21]line [08:45:21]line [08:45:21]line [08:45:21]written 0, free lines is 3335 [08:45:21]MH_Cut [08:45:21]Write to MH i2c: D1 01 00 6D 04 01 43 [08:45:21]Write i2c OK [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: D1 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: D1 01 00 [08:45:21]MH_I2C_Read... [08:45:21]Read from MH i2c: D1 01 00 6D 04 00 42 [08:45:21]Write to MH i2c: 01 00 00 6E 04 72 [08:45:21]Write i2c OK [08:45:21]MH_I2C_Read... [08:45:22]OFD Sender: No OFD packet to send [08:45:22]*** Cut start [08:45:22]*** Partial cut [08:45:22]*** CUTSNS_PIN = 1 [08:45:22]*** CUTSNS_PIN = 0 [08:45:22]*** Brake cut motor [08:45:22]Read from MH i2c: 01 [08:45:23]MH_I2C_Read... [08:45:23]*** Stop cut motor [08:45:23]*** Cut end [08:45:23]Read from MH i2c: 01 07 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [08:45:23]process_action close_receipt done [08:45:23]requested_data is exist [08:45:23]produce_requested_data [08:45:23]requested_item fm.sn is exist - process it [08:45:23]wFMCommunicate request_size=4 [08:45:23]MH_SAM_APDU [08:45:23]CAPDU: 80 11 00 00 [08:45:23]Write to MH i2c: E2 08 00 6F 04 80 11 00 00 00 00 00 00 ED [08:45:23]Write i2c OK [08:45:23]MH_I2C_Read... [08:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:23]Read from MH i2c: E2 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 17 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 17 00 6F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 43 [08:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:45:23]wFMCommunicate OK [08:45:23]requested_item fd.num is exist - process it [08:45:23]SAM_PROTO_GetFieldsCounters [08:45:23]wFMCommunicate request_size=4 [08:45:23]MH_SAM_APDU [08:45:23]CAPDU: 80 13 00 00 [08:45:23]Write to MH i2c: E2 08 00 70 04 80 13 00 00 00 00 00 00 F0 [08:45:23]Write i2c OK [08:45:23]MH_I2C_Read... [08:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:23]Read from MH i2c: E2 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 62 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 62 00 70 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [08:45: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:23]wFMCommunicate OK [08:45:23]SAM_PROTO_GetFieldsCounters done [08:45:23]requested_item shift.num is exist - process it [08:45:23]requested_item shift.opened is exist - process it [08:45:23]req_shift_opened [08:45:23]FM_GetShiftState [08:45:23]SAM_PROTO_GetShiftState [08:45:23]wFMCommunicate request_size=4 [08:45:23]MH_SAM_APDU [08:45:23]CAPDU: 80 13 01 00 [08:45:23]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [08:45:23]Write i2c OK [08:45:23]MH_I2C_Read... [08:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:23]Read from MH i2c: E2 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 0E 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3C [08:45:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:45:23]wFMCommunicate OK [08:45:23]SAM_PROTO_GetShiftState done [08:45:23]FM_GetShiftState done [08:45:23]req_shift_opened done [08:45:23]requested_item shift.open_date is exist - process it [08:45:23]req_shift_open_date [08:45:23]req_shift_open_date done [08:45:23]produce_requested_data done [08:45:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164108,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:45:23]process_action_free close_receipt [08:45:23]json_value_free [08:45:23]json_value_free done [08:45:23]process_json_proto returns [08:45:23]Send response to host [08:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164108,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:45:23]free response buf [08:45:23]execute_script done [08:45:23]execute_script returns [08:45:23]free content buf [08:45:23]Sock 9.Close socket [08:45:23]Sock 9.Thread stoped [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:49:58]accept exits with 8 [08:49:58]New connection [08:49:58]New thread 3066568036 created [08:49:58]Thread 3066711396 joined [08:49:58]Waiting for new connection... [08:49:58] Sock 8.Parse request [08:49:58]Sock 8.Check first char [08:49:58]Sock 8.First char is OK [08:49:58]request: POST /json_proto HTTP/1.0 [08:49:58]Method: POST [08:49:58]URL: /json_proto [08:49:58]Method is POST - this is cgi request [08:49:58]url: /json_proto [08:49:58]query_string will be loaded in cgi processing [08:49:58]execute_cgi json_proto POST (null) [08:49:58]execute_cgi path=json_proto method=POST [08:49:58]POST find Content-Length [08:49:58]Host: 172.17.56.4:8080 [08:49:58]Content-Length: 679 [08:49:58]Content-Type: application/json [08:49:58] [08:49:58]POST finish read [08:49:58]Found Content-Length = 679 [08:49:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 34.780, "sum" : 2500.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:58]execute_script... [08:49: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)458186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 34.780, "sum" : 2500.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:58]POST & json_proto [08:49:58]process_json_proto [08:49:58]json parsed OK: [08:49:58]protocol is kg_v1.0 [08:49:58]action value=close_receipt [08:49:58]process_action close_receipt [08:49:58]cmd_close_receipt [08:49:58]MH_GetDate [08:49:58]Write to MH i2c: F0 00 00 72 04 65 [08:49:58]Write i2c OK [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: F0 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: F0 09 00 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: F0 09 00 72 04 00 37 EE 90 66 C9 DC B2 64 44 [08:49:58]GetLastDocTimeStamp 1720773919 [08:49:58]current date 1720774199 [08:49:58]FM_GetShiftState [08:49:58]SAM_PROTO_GetShiftState [08:49:58]wFMCommunicate request_size=4 [08:49:58]MH_SAM_APDU [08:49:58]CAPDU: 80 13 01 00 [08:49:58]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [08:49:58]Write i2c OK [08:49:58]MH_I2C_Read... [08:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:58]Read from MH i2c: E2 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 0E 00 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3E [08:49:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:49:58]wFMCommunicate OK [08:49:58]SAM_PROTO_GetShiftState done [08:49:58]FM_GetShiftState done [08:49:58]opened in 1720744654 [08:49:58]opened+sec_in_day 1720831054 [08:49:58]quantity*price = 250068 [08:49:58]sum+1 = 250069 [08:49:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 30 12.07.2024 08:49 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164109 ФПД: 94218432049786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084959&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164109&fm=94218432049786&tin=02508201610067®Number=0000000000090829&sum=250000 [08:49:59]StoreToDocumentArchive [08:49:59]shift 445 fd 164109 [08:49:59]save to /storage/0445/doc_00164109 [08:49:59]save last doc name /storage/0445/doc_00164109 to /storage/kkm_last_doc_name [08:49:59]save OK [08:49:59]Clear old archive folders... [08:49:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:49:59]tlvbuf is 00D2F330 [08:49:59]SAM_PROTO_ClearQueue [08:49:59]wFMCommunicate request_size=4 [08:49:59]MH_SAM_APDU [08:49:59]CAPDU: 80 09 00 00 [08:49:59]Write to MH i2c: E2 08 00 80 04 80 09 00 00 00 00 00 00 F6 [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:49:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:59]Read from MH i2c: E2 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 03 00 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [08:49:59]RAPDU: 90 00 [08:49:59]wFMCommunicate OK [08:49:59]SAM_PROTO_ClearQueue done [08:49:59]KKMCreateOFDPacket [08:49:59]OFDProtocolAddRootSTLVToBuf [08:49:59]FM_MakeSignedData [08:49:59]FM_MakeSignedData [08:49:59]SAM_PROTO_SignData [08:49:59]wFMCommunicate request_size=4 [08:49:59]MH_SAM_APDU [08:49:59]CAPDU: 80 0D 01 02 [08:49:59]Write to MH i2c: E2 08 00 81 04 80 0D 01 02 00 00 00 00 FE [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:49:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:59]Read from MH i2c: E2 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 03 00 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [08:49:59]RAPDU: 90 00 [08:49:59]wFMCommunicate OK [08:49:59]wFMCommunicate request_size=255 [08:49:59]MH_SAM_APDU [08:49: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 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 37 EE 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 81 02 00 35 04 06 00 55 B0 F0 2C [08:49:59]Write to MH i2c: E2 02 01 82 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 37 EE 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 81 02 00 35 04 06 00 55 B0 F0 2C 00 00 DB [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [08:50:00]RAPDU: 90 00 [08:50:00]wFMCommunicate OK [08:50:00]wFMCommunicate request_size=7 [08:50:00]MH_SAM_APDU [08:50:00]CAPDU: 80 0D 02 02 02 72 7A [08:50:00]Write to MH i2c: E2 0A 00 83 04 80 0D 02 02 02 00 72 7A 00 00 F1 [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [08:50:00]RAPDU: 90 00 [08:50:00]wFMCommunicate OK [08:50:00]wFMCommunicate request_size=4 [08:50:00]MH_SAM_APDU [08:50:00]CAPDU: 80 0D 03 02 [08:50:00]Write to MH i2c: E2 08 00 84 04 80 0D 03 02 00 00 00 00 03 [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 0B 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 0B 00 84 04 00 30 1C 77 33 4B D5 D9 69 90 00 5C [08:50:00]RAPDU: 30 1C 77 33 4B D5 D9 69 90 00 [08:50:00]wFMCommunicate OK [08:50:00]SAM_PROTO_SignData done [08:50:00]FM_MakeSignedData done [08:50:00]CreateOFDProtocolMessage [08:50:00]wFMCommunicate request_size=4 [08:50:00]MH_SAM_APDU [08:50:00]CAPDU: 80 11 00 00 [08:50:00]Write to MH i2c: E2 08 00 85 04 80 11 00 00 00 00 00 00 03 [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 17 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 17 00 85 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [08:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:50:00]wFMCommunicate OK [08:50:00]CreateOFDProtocolMessage done [08:50:00]OFDSenderStorePacket 164109 [08:50:00]StoreOFDPacket docnum=164109 [08:50:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EC 68 04 01 91 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 37 EE 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 81 02 00 35 04 06 00 55 B0 F0 2C 72 7A 30 1C 77 33 4B D5 D9 69 [08:50:00]CheckFolder [08:50:00]dirname=/storage/ofd_packets [08:50:00]CheckFolder done [08:50:00]ProducePacketName [08:50:00]name=ofd_packets/00164109 [08:50:00]NVStorageSaveData ofd_packets/00164109 [08:50:00]File name is /storage/ofd_packets/00164109 [08:50:00]Write 298 bytes [08:50:00]NVStorageSaveData done [08:50:00]OFDSenderStorePacket done [08:50:00]KKMCreateOFDPacket done [08:50:00]NVStorageSaveData kkm_last_timestamp [08:50:00]File name is /storage/kkm_last_timestamp [08:50:00]Write 4 bytes [08:50:00]NVStorageSaveData done [08:50:00]ExternCall_PrintAddStr [08:50:00]wPrintStart [08:50:00]Write to MH i2c: 01 00 00 86 04 8A [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: 01 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: 01 07 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: 01 07 00 86 04 00 00 00 00 00 FF 0F 9F [08:50:00]RasterBufferAndPrint [08:50:00]line Счет N : (1)458186 [08:50:00]line ИНН: 02508201610067 [08:50:00]line Контрольно-Кассовый Чек [08:50:00]line ПРОДАЖА [08:50:00]line ТРК (МРК, ГНК) : 11 [08:50:00]line Товар: 2710194210 [08:50:00]line ДТ-К-5 [08:50:00]line 34.780 * 71.90 [08:50:00]line = 2500.68 [08:50:00]line НДС 12% НСП 1% [08:50:00]line > о реализуемом товаре [08:50:00]line ОКРУГЛЕНИЕ: -0.68 [08:50:00]line ИТОГО: 2500.00 [08:50:00]line Внесено: 2500.00 [08:50:00]line СДАЧА: 0.00 [08:50:00]line НСП 1% : 22.13 [08:50:00]line НДС 12% : 265.56 [08:50:00]line Наличными: 2500.00 [08:50:00]line Безнал.: 0.00 [08:50:00]line Место: АЗС № 72 "Партнер Нефть" [08:50:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:50:00]line СНО: Общий режим [08:50:00]line Чек 30 12.07.2024 08:49 [08:50:00]line Смена: 445 ФФД: 1.0 [08:50:00]line ЗНМ: 0300000160 [08:50:00]line РНМ: 0000000000090829 [08:50:00]line Версия ККМ: 001 [08:50:00]line ФМ: 0000000000874718 [08:50:00]line ФД: 164109 [08:50:00]line ФПД: 94218432049786 [08:50:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T084959&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164109&fm=94218432049786&tin=02508201610067®Number=0000000000090829&sum=250000 [08:50:00]OFD Sender: Processing packet 164109 [packets to send 104, broken 103] [08:50:00]ProducePacketName [08:50:00]name=ofd_packets/00164109 [08:50:00]OFD Sender: To server: pG, [08:50:00]CommunicateWithHost lk.salyk.kg:30040 [08:50:00]ConnectInit lk.salyk.kg [08:50:00]written 0, free lines is 4095 [08:50:00]Connected sock=10 [08:50:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EC 68 04 01 91 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 37 EE 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 81 02 00 35 04 06 00 55 B0 F0 2C 72 7A 30 1C 77 33 4B D5 D9 69 [08:50:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 99 2B 47 00 4D 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 34 37 31 38 10 04 04 00 0D 81 02 00 F4 03 04 00 CB 94 90 66 B6 04 01 00 00 AA 51 FB 98 27 33 7C 11 [08:50:00]CommunicateWithHost err = 0 [08:50:00]CheckOFDResponse [08:50:00]1017 (14) - 77093643461234 [08:50:00]1041 (16) - 0000000000874718 [08:50:00]1040 (4) - 164109 [08:50:00]1012 (4) - 12.07.2024 02:28 [08:50:00]1206 (1) - 0 [08:50:00]OFD Sender: Remove packet 164109 [08:50:00]ProducePacketName [08:50:00]name=ofd_packets/00164109 [08:50:00]NVStorageDeleteData [08:50:01]Write to MH i2c: 01 00 00 B0 04 B4 [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: 01 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: 01 07 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 02 0D CA [08:50:01]RasterBufferAndPrint [08:50:01]line [08:50:01]line [08:50:01]line [08:50:01]line [08:50:01]line [08:50:01]written 0, free lines is 3336 [08:50:01]MH_Cut [08:50:01]Write to MH i2c: D1 01 00 B7 04 01 8D [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: D1 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: D1 01 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: D1 01 00 B7 04 00 8C [08:50:01]Write to MH i2c: 01 00 00 B8 04 BC [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]OFD Sender: No OFD packet to send [08:50:01]*** Cut start [08:50:01]*** Partial cut [08:50:01]*** CUTSNS_PIN = 1 [08:50:01]*** CUTSNS_PIN = 0 [08:50:01]*** Brake cut motor [08:50:02]Read from MH i2c: 01 [08:50:02]MH_I2C_Read... [08:50:02]*** Stop cut motor [08:50:02]*** Cut end [08:50:02]Read from MH i2c: 01 07 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: 01 07 00 B8 04 00 00 00 00 00 FF 0F D1 [08:50:02]process_action close_receipt done [08:50:02]requested_data is exist [08:50:02]produce_requested_data [08:50:02]requested_item fm.sn is exist - process it [08:50:02]wFMCommunicate request_size=4 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 11 00 00 [08:50:02]Write to MH i2c: E2 08 00 B9 04 80 11 00 00 00 00 00 00 37 [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 17 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 17 00 B9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [08:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:50:02]wFMCommunicate OK [08:50:02]requested_item fd.num is exist - process it [08:50:02]SAM_PROTO_GetFieldsCounters [08:50:02]wFMCommunicate request_size=4 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 13 00 00 [08:50:02]Write to MH i2c: E2 08 00 BA 04 80 13 00 00 00 00 00 00 3A [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 62 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 62 00 BA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [08:50: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:02]wFMCommunicate OK [08:50:02]SAM_PROTO_GetFieldsCounters done [08:50:02]requested_item shift.num is exist - process it [08:50:02]requested_item shift.opened is exist - process it [08:50:02]req_shift_opened [08:50:02]FM_GetShiftState [08:50:02]SAM_PROTO_GetShiftState [08:50:02]wFMCommunicate request_size=4 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 13 01 00 [08:50:02]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 0E 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 86 [08:50:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [08:50:02]wFMCommunicate OK [08:50:02]SAM_PROTO_GetShiftState done [08:50:02]FM_GetShiftState done [08:50:02]req_shift_opened done [08:50:02]requested_item shift.open_date is exist - process it [08:50:02]req_shift_open_date [08:50:02]req_shift_open_date done [08:50:02]produce_requested_data done [08:50:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164109,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [08:50:02]process_action_free close_receipt [08:50:02]json_value_free [08:50:02]json_value_free done [08:50:02]process_json_proto returns [08:50:02]Send response to host [08:50:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164109,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [08:50:02]free response buf [08:50:02]execute_script done [08:50:02]execute_script returns [08:50:02]free content buf [08:50:02]Sock 8.Close socket [08:50:02]Sock 8.Thread stoped [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:41]accept exits with 9 [09:00:41]New connection [09:00:41]New thread 3066711396 created [09:00:41]Thread 3066568036 joined [09:00:41]Waiting for new connection... [09:00:41] Sock 9.Parse request [09:00:41]Sock 9.Check first char [09:00:41]Sock 9.First char is OK [09:00:41]request: POST /json_proto HTTP/1.0 [09:00:41]Method: POST [09:00:41]URL: /json_proto [09:00:41]Method is POST - this is cgi request [09:00:41]url: /json_proto [09:00:41]query_string will be loaded in cgi processing [09:00:41]execute_cgi json_proto POST (null) [09:00:41]execute_cgi path=json_proto method=POST [09:00:41]POST find Content-Length [09:00:41]Host: 172.17.56.4:8080 [09:00:41]Content-Length: 678 [09:00:41]Content-Type: application/json [09:00:41] [09:00:41]POST finish read [09:00:41]Found Content-Length = 678 [09:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:00:41]execute_script... [09:00: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)458187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:00:41]POST & json_proto [09:00:41]process_json_proto [09:00:41]json parsed OK: [09:00:41]protocol is kg_v1.0 [09:00:41]action value=close_receipt [09:00:41]process_action close_receipt [09:00:41]cmd_close_receipt [09:00:41]MH_GetDate [09:00:41]Write to MH i2c: F0 00 00 BC 04 AF [09:00:41]Write i2c OK [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: F0 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: F0 09 00 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: F0 09 00 BC 04 00 BA F0 90 66 C9 DC B2 64 13 [09:00:41]GetLastDocTimeStamp 1720774199 [09:00:41]current date 1720774842 [09:00:41]FM_GetShiftState [09:00:41]SAM_PROTO_GetShiftState [09:00:41]wFMCommunicate request_size=4 [09:00:41]MH_SAM_APDU [09:00:41]CAPDU: 80 13 01 00 [09:00:41]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [09:00:41]Write i2c OK [09:00:41]MH_I2C_Read... [09:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:41]Read from MH i2c: E2 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 0E 00 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 88 [09:00:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:00:41]wFMCommunicate OK [09:00:41]SAM_PROTO_GetShiftState done [09:00:41]FM_GetShiftState done [09:00:41]opened in 1720744654 [09:00:41]opened+sec_in_day 1720831054 [09:00:41]quantity*price = 70011 [09:00:41]sum+1 = 70012 [09:00:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 31 12.07.2024 09:00 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164110 ФПД: 230382564769010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T090042&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164110&fm=230382564769010&tin=02508201610067®Number=0000000000090829&sum=70000 [09:00:43]StoreToDocumentArchive [09:00:43]shift 445 fd 164110 [09:00:43]save to /storage/0445/doc_00164110 [09:00:43]save last doc name /storage/0445/doc_00164110 to /storage/kkm_last_doc_name [09:00:43]save OK [09:00:43]Clear old archive folders... [09:00:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:43]tlvbuf is 00D247D0 [09:00:43]SAM_PROTO_ClearQueue [09:00:43]wFMCommunicate request_size=4 [09:00:43]MH_SAM_APDU [09:00:43]CAPDU: 80 09 00 00 [09:00:43]Write to MH i2c: E2 08 00 CA 04 80 09 00 00 00 00 00 00 40 [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:43]Read from MH i2c: E2 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 03 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [09:00:43]RAPDU: 90 00 [09:00:43]wFMCommunicate OK [09:00:43]SAM_PROTO_ClearQueue done [09:00:43]KKMCreateOFDPacket [09:00:43]OFDProtocolAddRootSTLVToBuf [09:00:43]FM_MakeSignedData [09:00:43]FM_MakeSignedData [09:00:43]SAM_PROTO_SignData [09:00:43]wFMCommunicate request_size=4 [09:00:43]MH_SAM_APDU [09:00:43]CAPDU: 80 0D 01 02 [09:00:43]Write to MH i2c: E2 08 00 CB 04 80 0D 01 02 00 00 00 00 48 [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:43]Read from MH i2c: E2 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 03 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [09:00:43]RAPDU: 90 00 [09:00:43]wFMCommunicate OK [09:00:43]wFMCommunicate request_size=255 [09:00:43]MH_SAM_APDU [09: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 BA F0 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 81 02 00 35 04 06 00 D1 [09:00:43]Write to MH i2c: E2 02 01 CC 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 BA F0 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 81 02 00 35 04 06 00 D1 00 00 E4 [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:43]Read from MH i2c: E2 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 03 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [09:00:43]RAPDU: 90 00 [09:00:43]wFMCommunicate OK [09:00:43]wFMCommunicate request_size=10 [09:00:43]MH_SAM_APDU [09:00:43]CAPDU: 80 0D 02 02 05 88 1E EF 7C F2 [09:00:43]Write to MH i2c: E2 0D 00 CD 04 80 0D 02 02 05 00 88 1E EF 7C F2 00 00 58 [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:43]Read from MH i2c: E2 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 03 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [09:00:43]RAPDU: 90 00 [09:00:43]wFMCommunicate OK [09:00:43]wFMCommunicate request_size=4 [09:00:43]MH_SAM_APDU [09:00:43]CAPDU: 80 0D 03 02 [09:00:43]Write to MH i2c: E2 08 00 CE 04 80 0D 03 02 00 00 00 00 4D [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:43]Read from MH i2c: E2 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 0B 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 0B 00 CE 04 00 76 60 42 B4 E7 A5 14 C1 90 00 7B [09:00:43]RAPDU: 76 60 42 B4 E7 A5 14 C1 90 00 [09:00:43]wFMCommunicate OK [09:00:43]SAM_PROTO_SignData done [09:00:43]FM_MakeSignedData done [09:00:43]CreateOFDProtocolMessage [09:00:43]wFMCommunicate request_size=4 [09:00:43]MH_SAM_APDU [09:00:43]CAPDU: 80 11 00 00 [09:00:43]Write to MH i2c: E2 08 00 CF 04 80 11 00 00 00 00 00 00 4D [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:43]Read from MH i2c: E2 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 17 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 17 00 CF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [09:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:00:43]wFMCommunicate OK [09:00:43]CreateOFDProtocolMessage done [09:00:43]OFDSenderStorePacket 164110 [09:00:43]StoreOFDPacket docnum=164110 [09:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6F 09 07 01 EA 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 BA F0 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 81 02 00 35 04 06 00 D1 88 1E EF 7C F2 76 60 42 B4 E7 A5 14 C1 [09:00:43]CheckFolder [09:00:43]dirname=/storage/ofd_packets [09:00:43]CheckFolder done [09:00:43]ProducePacketName [09:00:43]name=ofd_packets/00164110 [09:00:43]NVStorageSaveData ofd_packets/00164110 [09:00:43]File name is /storage/ofd_packets/00164110 [09:00:43]Write 301 bytes [09:00:43]NVStorageSaveData done [09:00:43]OFDSenderStorePacket done [09:00:43]KKMCreateOFDPacket done [09:00:43]NVStorageSaveData kkm_last_timestamp [09:00:43]File name is /storage/kkm_last_timestamp [09:00:43]Write 4 bytes [09:00:43]NVStorageSaveData done [09:00:43]ExternCall_PrintAddStr [09:00:43]wPrintStart [09:00:43]Write to MH i2c: 01 00 00 D0 04 D4 [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [09:00:43]RasterBufferAndPrint [09:00:43]line Счет N : (1)458187 [09:00:43]line ИНН: 02508201610067 [09:00:43]line Контрольно-Кассовый Чек [09:00:43]line ПРОДАЖА [09:00:43]line ТРК (МРК, ГНК) : 22 [09:00:43]line Товар: 2710124130 [09:00:43]line Аи-92-К-5 [09:00:43]line 10.640 * 65.80 [09:00:43]line = 700.11 [09:00:43]line НДС 12% НСП 1% [09:00:43]line > о реализуемом товаре [09:00:43]line ОКРУГЛЕНИЕ: -0.11 [09:00:43]line ИТОГО: 700.00 [09:00:43]line Внесено: 700.00 [09:00:43]line СДАЧА: 0.00 [09:00:43]line НСП 1% : 6.20 [09:00:43]line НДС 12% : 74.35 [09:00:43]line Наличными: 700.00 [09:00:43]line Безнал.: 0.00 [09:00:43]line Место: АЗС № 72 "Партнер Нефть" [09:00:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:00:43]line СНО: Общий режим [09:00:43]line Чек 31 12.07.2024 09:00 [09:00:43]line Смена: 445 ФФД: 1.0 [09:00:43]line ЗНМ: 0300000160 [09:00:43]line РНМ: 0000000000090829 [09:00:43]line Версия ККМ: 001 [09:00:43]line ФМ: 0000000000874718 [09:00:43]line ФД: 164110 [09:00:43]line ФПД: 230382564769010 [09:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T090042&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164110&fm=230382564769010&tin=02508201610067®Number=0000000000090829&sum=70000 [09:00:43]OFD Sender: Processing packet 164110 [packets to send 104, broken 103] [09:00:43]ProducePacketName [09:00:43]name=ofd_packets/00164110 [09:00:43]OFD Sender: To server: pG, [09:00:43]CommunicateWithHost lk.salyk.kg:30040 [09:00:43]ConnectInit lk.salyk.kg [09:00:43]written 0, free lines is 4095 [09:00:44]Connected sock=10 [09: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 34 37 31 38 0F 01 00 00 6F 09 07 01 EA 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 BA F0 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 81 02 00 35 04 06 00 D1 88 1E EF 7C F2 76 60 42 B4 E7 A5 14 C1 [09:00:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 27 30 47 00 E8 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 34 37 31 38 10 04 04 00 0E 81 02 00 F4 03 04 00 4F 97 90 66 B6 04 01 00 00 8C 04 A0 95 61 F6 78 1C [09:00:44]CommunicateWithHost err = 0 [09:00:44]CheckOFDResponse [09:00:44]1017 (14) - 77093643461234 [09:00:44]1041 (16) - 0000000000874718 [09:00:44]1040 (4) - 164110 [09:00:44]1012 (4) - 12.07.2024 02:39 [09:00:44]1206 (1) - 0 [09:00:44]OFD Sender: Remove packet 164110 [09:00:44]ProducePacketName [09:00:44]name=ofd_packets/00164110 [09:00:44]NVStorageDeleteData [09:00:44]Write to MH i2c: 01 00 00 FA 04 FE [09:00:44]Write i2c OK [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: 01 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: 01 07 00 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: 01 07 00 FA 04 00 00 00 00 00 EF 0C 00 [09:00:44]RasterBufferAndPrint [09:00:44]line [09:00:44]line [09:00:44]line [09:00:44]line [09:00:44]line [09:00:44]written 0, free lines is 3317 [09:00:44]MH_Cut [09:00:44]Write to MH i2c: D1 01 00 01 05 01 D8 [09:00:44]Write i2c OK [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: D1 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: D1 01 00 [09:00:44]MH_I2C_Read... [09:00:44]Read from MH i2c: D1 01 00 01 05 00 D7 [09:00:44]Write to MH i2c: 01 00 00 02 05 07 [09:00:44]Write i2c OK [09:00:44]MH_I2C_Read... [09:00:44]OFD Sender: No OFD packet to send [09:00:45]*** Cut start [09:00:45]*** Partial cut [09:00:45]*** CUTSNS_PIN = 1 [09:00:45]*** CUTSNS_PIN = 0 [09:00:45]*** Brake cut motor [09:00:45]Read from MH i2c: 01 [09:00:45]MH_I2C_Read... [09:00:45]*** Stop cut motor [09:00:45]*** Cut end [09:00:45]Read from MH i2c: 01 07 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 FF 0F 1C [09:00:45]process_action close_receipt done [09:00:45]requested_data is exist [09:00:45]produce_requested_data [09:00:45]requested_item fm.sn is exist - process it [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 11 00 00 [09:00:45]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 17 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 17 00 03 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [09:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:00:45]wFMCommunicate OK [09:00:45]requested_item fd.num is exist - process it [09:00:45]SAM_PROTO_GetFieldsCounters [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 13 00 00 [09:00:45]Write to MH i2c: E2 08 00 04 05 80 13 00 00 00 00 00 00 85 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 62 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 62 00 04 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [09:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:45]wFMCommunicate OK [09:00:45]SAM_PROTO_GetFieldsCounters done [09:00:45]requested_item shift.num is exist - process it [09:00:45]requested_item shift.opened is exist - process it [09:00:45]req_shift_opened [09:00:45]FM_GetShiftState [09:00:45]SAM_PROTO_GetShiftState [09:00:45]wFMCommunicate request_size=4 [09:00:45]MH_SAM_APDU [09:00:45]CAPDU: 80 13 01 00 [09:00:45]Write to MH i2c: E2 08 00 05 05 80 13 01 00 00 00 00 00 87 [09:00:45]Write i2c OK [09:00:45]MH_I2C_Read... [09:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:45]Read from MH i2c: E2 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 0E 00 [09:00:45]MH_I2C_Read... [09:00:45]Read from MH i2c: E2 0E 00 05 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D1 [09:00:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:00:45]wFMCommunicate OK [09:00:45]SAM_PROTO_GetShiftState done [09:00:45]FM_GetShiftState done [09:00:45]req_shift_opened done [09:00:45]requested_item shift.open_date is exist - process it [09:00:45]req_shift_open_date [09:00:45]req_shift_open_date done [09:00:45]produce_requested_data done [09:00:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164110,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:00:45]process_action_free close_receipt [09:00:45]json_value_free [09:00:45]json_value_free done [09:00:45]process_json_proto returns [09:00:45]Send response to host [09:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164110,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:00:45]free response buf [09:00:45]execute_script done [09:00:45]execute_script returns [09:00:45]free content buf [09:00:45]Sock 9.Close socket [09:00:45]Sock 9.Thread stoped [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]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:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:11]accept exits with 8 [09:18:11]New connection [09:18:11]New thread 3066568036 created [09:18:11]Thread 3066711396 joined [09:18:11]Waiting for new connection... [09:18:11] Sock 8.Parse request [09:18:11]Sock 8.Check first char [09:18:11]Sock 8.First char is OK [09:18:11]request: POST /json_proto HTTP/1.0 [09:18:11]Method: POST [09:18:11]URL: /json_proto [09:18:11]Method is POST - this is cgi request [09:18:11]url: /json_proto [09:18:11]query_string will be loaded in cgi processing [09:18:11]execute_cgi json_proto POST (null) [09:18:11]execute_cgi path=json_proto method=POST [09:18:11]POST find Content-Length [09:18:11]Host: 172.17.56.4:8080 [09:18:11]Content-Length: 677 [09:18:11]Content-Type: application/json [09:18:11] [09:18:11]POST finish read [09:18:11]Found Content-Length = 677 [09:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:11]execute_script... [09:18: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)458188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:11]POST & json_proto [09:18:11]process_json_proto [09:18:11]json parsed OK: [09:18:11]protocol is kg_v1.0 [09:18:11]action value=close_receipt [09:18:11]process_action close_receipt [09:18:11]cmd_close_receipt [09:18:11]MH_GetDate [09:18:11]Write to MH i2c: F0 00 00 06 05 FA [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: F0 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: F0 09 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: F0 09 00 06 05 00 D4 F4 90 66 C9 DC B2 64 7C [09:18:11]GetLastDocTimeStamp 1720774842 [09:18:11]current date 1720775892 [09:18:11]FM_GetShiftState [09:18:11]SAM_PROTO_GetShiftState [09:18:11]wFMCommunicate request_size=4 [09:18:11]MH_SAM_APDU [09:18:11]CAPDU: 80 13 01 00 [09:18:11]Write to MH i2c: E2 08 00 07 05 80 13 01 00 00 00 00 00 89 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:11]Read from MH i2c: E2 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 0E 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 0E 00 07 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D3 [09:18:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:18:11]wFMCommunicate OK [09:18:11]SAM_PROTO_GetShiftState done [09:18:11]FM_GetShiftState done [09:18:11]opened in 1720744654 [09:18:11]opened+sec_in_day 1720831054 [09:18:11]quantity*price = 50008 [09:18:11]sum+1 = 50009 [09:18:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 32 12.07.2024 09:18 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164111 ФПД: 27775853824358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T091812&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164111&fm=27775853824358&tin=02508201610067®Number=0000000000090829&sum=50000 [09:18:12]StoreToDocumentArchive [09:18:12]shift 445 fd 164111 [09:18:12]save to /storage/0445/doc_00164111 [09:18:12]save last doc name /storage/0445/doc_00164111 to /storage/kkm_last_doc_name [09:18:12]save OK [09:18:12]Clear old archive folders... [09:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:12]tlvbuf is 00D26E10 [09:18:12]SAM_PROTO_ClearQueue [09:18:12]wFMCommunicate request_size=4 [09:18:12]MH_SAM_APDU [09:18:12]CAPDU: 80 09 00 00 [09:18:12]Write to MH i2c: E2 08 00 14 05 80 09 00 00 00 00 00 00 8B [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:13]Read from MH i2c: E2 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 03 00 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [09:18:13]RAPDU: 90 00 [09:18:13]wFMCommunicate OK [09:18:13]SAM_PROTO_ClearQueue done [09:18:13]KKMCreateOFDPacket [09:18:13]OFDProtocolAddRootSTLVToBuf [09:18:13]FM_MakeSignedData [09:18:13]FM_MakeSignedData [09:18:13]SAM_PROTO_SignData [09:18:13]wFMCommunicate request_size=4 [09:18:13]MH_SAM_APDU [09:18:13]CAPDU: 80 0D 01 02 [09:18:13]Write to MH i2c: E2 08 00 15 05 80 0D 01 02 00 00 00 00 93 [09:18:13]Write i2c OK [09:18:13]MH_I2C_Read... [09:18:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:13]Read from MH i2c: E2 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 03 00 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [09:18:13]RAPDU: 90 00 [09:18:13]wFMCommunicate OK [09:18:13]wFMCommunicate request_size=255 [09:18:13]MH_SAM_APDU [09:18: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 D4 F4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 81 02 00 35 04 06 00 19 [09:18:13]Write to MH i2c: E2 02 01 16 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 D4 F4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 81 02 00 35 04 06 00 19 00 00 53 [09:18:13]Write i2c OK [09:18:13]MH_I2C_Read... [09:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:13]Read from MH i2c: E2 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 03 00 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [09:18:13]RAPDU: 90 00 [09:18:13]wFMCommunicate OK [09:18:13]wFMCommunicate request_size=10 [09:18:13]MH_SAM_APDU [09:18:13]CAPDU: 80 0D 02 02 05 43 11 E6 89 66 [09:18:13]Write to MH i2c: E2 0D 00 17 05 80 0D 02 02 05 00 43 11 E6 89 66 00 00 C9 [09:18:13]Write i2c OK [09:18:13]MH_I2C_Read... [09:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:13]Read from MH i2c: E2 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 03 00 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [09:18:13]RAPDU: 90 00 [09:18:13]wFMCommunicate OK [09:18:13]wFMCommunicate request_size=4 [09:18:13]MH_SAM_APDU [09:18:13]CAPDU: 80 0D 03 02 [09:18:13]Write to MH i2c: E2 08 00 18 05 80 0D 03 02 00 00 00 00 98 [09:18:13]Write i2c OK [09:18:13]MH_I2C_Read... [09:18:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:13]Read from MH i2c: E2 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 0B 00 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 0B 00 18 05 00 44 98 2B 6A E3 65 0C B6 90 00 14 [09:18:13]RAPDU: 44 98 2B 6A E3 65 0C B6 90 00 [09:18:13]wFMCommunicate OK [09:18:13]SAM_PROTO_SignData done [09:18:13]FM_MakeSignedData done [09:18:13]CreateOFDProtocolMessage [09:18:13]wFMCommunicate request_size=4 [09:18:13]MH_SAM_APDU [09:18:13]CAPDU: 80 11 00 00 [09:18:13]Write to MH i2c: E2 08 00 19 05 80 11 00 00 00 00 00 00 98 [09:18:13]Write i2c OK [09:18:13]MH_I2C_Read... [09:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:13]Read from MH i2c: E2 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 17 00 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: E2 17 00 19 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [09:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:18:13]wFMCommunicate OK [09:18:13]CreateOFDProtocolMessage done [09:18:13]OFDSenderStorePacket 164111 [09:18:13]StoreOFDPacket docnum=164111 [09:18:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 81 07 01 D0 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 D4 F4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 81 02 00 35 04 06 00 19 43 11 E6 89 66 44 98 2B 6A E3 65 0C B6 [09:18:13]CheckFolder [09:18:13]dirname=/storage/ofd_packets [09:18:13]CheckFolder done [09:18:13]ProducePacketName [09:18:13]name=ofd_packets/00164111 [09:18:13]NVStorageSaveData ofd_packets/00164111 [09:18:13]File name is /storage/ofd_packets/00164111 [09:18:13]Write 301 bytes [09:18:13]NVStorageSaveData done [09:18:13]OFDSenderStorePacket done [09:18:13]KKMCreateOFDPacket done [09:18:13]NVStorageSaveData kkm_last_timestamp [09:18:13]File name is /storage/kkm_last_timestamp [09:18:13]Write 4 bytes [09:18:13]NVStorageSaveData done [09:18:13]ExternCall_PrintAddStr [09:18:13]wPrintStart [09:18:13]Write to MH i2c: 01 00 00 1A 05 1F [09:18:13]Write i2c OK [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: 01 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: 01 07 00 [09:18:13]MH_I2C_Read... [09:18:13]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 FF 0F 34 [09:18:13]RasterBufferAndPrint [09:18:13]line Счет N : (1)458188 [09:18:13]line ИНН: 02508201610067 [09:18:13]line Контрольно-Кассовый Чек [09:18:13]line ПРОДАЖА [09:18:13]line ТРК (МРК, ГНК) : 12 [09:18:13]line Товар: 2710124130 [09:18:13]line Аи-92-К-5 [09:18:13]line 7.600 * 65.80 [09:18:13]line = 500.08 [09:18:13]line НДС 12% НСП 1% [09:18:13]line > о реализуемом товаре [09:18:13]line ОКРУГЛЕНИЕ: -0.08 [09:18:13]line ИТОГО: 500.00 [09:18:13]line Внесено: 500.00 [09:18:13]line СДАЧА: 0.00 [09:18:13]line НСП 1% : 4.42 [09:18:13]line НДС 12% : 53.11 [09:18:13]line Наличными: 500.00 [09:18:13]line Безнал.: 0.00 [09:18:13]line Место: АЗС № 72 "Партнер Нефть" [09:18:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:18:13]line СНО: Общий режим [09:18:13]line Чек 32 12.07.2024 09:18 [09:18:13]line Смена: 445 ФФД: 1.0 [09:18:13]line ЗНМ: 0300000160 [09:18:13]line РНМ: 0000000000090829 [09:18:13]line Версия ККМ: 001 [09:18:13]line ФМ: 0000000000874718 [09:18:13]line ФД: 164111 [09:18:13]line ФПД: 27775853824358 [09:18:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T091812&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164111&fm=27775853824358&tin=02508201610067®Number=0000000000090829&sum=50000 [09:18:13]OFD Sender: Processing packet 164111 [packets to send 104, broken 103] [09:18:13]ProducePacketName [09:18:13]name=ofd_packets/00164111 [09:18:13]OFD Sender: To server: pG, [09:18:13]CommunicateWithHost lk.salyk.kg:30040 [09:18:13]ConnectInit lk.salyk.kg [09:18:13]written 0, free lines is 4095 [09:18:13]Connected sock=10 [09:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 81 07 01 D0 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 D4 F4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 81 02 00 35 04 06 00 19 43 11 E6 89 66 44 98 2B 6A E3 65 0C B6 [09:18:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 93 47 00 CB 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 81 02 00 F4 03 04 00 69 9B 90 66 B6 04 01 00 00 73 59 06 40 26 6A 10 16 [09:18:14]CommunicateWithHost err = 0 [09:18:14]CheckOFDResponse [09:18:14]1017 (14) - 77093643461234 [09:18:14]1041 (16) - 0000000000874718 [09:18:14]1040 (4) - 164111 [09:18:14]1012 (4) - 12.07.2024 02:56 [09:18:14]1206 (1) - 0 [09:18:14]OFD Sender: Remove packet 164111 [09:18:14]ProducePacketName [09:18:14]name=ofd_packets/00164111 [09:18:14]NVStorageDeleteData [09:18:14]Write to MH i2c: 01 00 00 44 05 49 [09:18:14]Write i2c OK [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: 01 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: 01 07 00 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: 01 07 00 44 05 00 00 00 00 00 FC 0C 58 [09:18:14]RasterBufferAndPrint [09:18:14]line [09:18:14]line [09:18:14]line [09:18:14]line [09:18:14]line [09:18:14]written 0, free lines is 3330 [09:18:14]MH_Cut [09:18:14]Write to MH i2c: D1 01 00 4B 05 01 22 [09:18:14]Write i2c OK [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: D1 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: D1 01 00 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: D1 01 00 4B 05 00 21 [09:18:14]Write to MH i2c: 01 00 00 4C 05 51 [09:18:14]Write i2c OK [09:18:14]MH_I2C_Read... [09:18:14]OFD Sender: No OFD packet to send [09:18:14]*** Cut start [09:18:14]*** Partial cut [09:18:14]*** CUTSNS_PIN = 1 [09:18:14]*** CUTSNS_PIN = 0 [09:18:15]*** Brake cut motor [09:18:15]Read from MH i2c: 01 [09:18:15]MH_I2C_Read... [09:18:15]*** Stop cut motor [09:18:15]*** Cut end [09:18:15]Read from MH i2c: 01 07 00 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 FF 0F 66 [09:18:15]process_action close_receipt done [09:18:15]requested_data is exist [09:18:15]produce_requested_data [09:18:15]requested_item fm.sn is exist - process it [09:18:15]wFMCommunicate request_size=4 [09:18:15]MH_SAM_APDU [09:18:15]CAPDU: 80 11 00 00 [09:18:15]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [09:18:15]Write i2c OK [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 [09:18:15]MH_I2C_Read... [09:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:15]Read from MH i2c: E2 17 00 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 22 [09:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:18:15]wFMCommunicate OK [09:18:15]requested_item fd.num is exist - process it [09:18:15]SAM_PROTO_GetFieldsCounters [09:18:15]wFMCommunicate request_size=4 [09:18:15]MH_SAM_APDU [09:18:15]CAPDU: 80 13 00 00 [09:18:15]Write to MH i2c: E2 08 00 4E 05 80 13 00 00 00 00 00 00 CF [09:18:15]Write i2c OK [09:18:15]MH_I2C_Read... [09:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:15]Read from MH i2c: E2 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 62 00 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 62 00 4E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [09:18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:15]wFMCommunicate OK [09:18:15]SAM_PROTO_GetFieldsCounters done [09:18:15]requested_item shift.num is exist - process it [09:18:15]requested_item shift.opened is exist - process it [09:18:15]req_shift_opened [09:18:15]FM_GetShiftState [09:18:15]SAM_PROTO_GetShiftState [09:18:15]wFMCommunicate request_size=4 [09:18:15]MH_SAM_APDU [09:18:15]CAPDU: 80 13 01 00 [09:18:15]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [09:18:15]Write i2c OK [09:18:15]MH_I2C_Read... [09:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:15]Read from MH i2c: E2 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 0E 00 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1B [09:18:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:18:15]wFMCommunicate OK [09:18:15]SAM_PROTO_GetShiftState done [09:18:15]FM_GetShiftState done [09:18:15]req_shift_opened done [09:18:15]requested_item shift.open_date is exist - process it [09:18:15]req_shift_open_date [09:18:15]req_shift_open_date done [09:18:15]produce_requested_data done [09:18:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164111,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:18:15]process_action_free close_receipt [09:18:15]json_value_free [09:18:15]json_value_free done [09:18:15]process_json_proto returns [09:18:15]Send response to host [09:18:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164111,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:18:15]free response buf [09:18:15]execute_script done [09:18:15]execute_script returns [09:18:15]free content buf [09:18:15]Sock 8.Close socket [09:18:15]Sock 8.Thread stoped [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:25]accept exits with 9 [09:18:25]New connection [09:18:25]New thread 3066711396 created [09:18:25]Thread 3066568036 joined [09:18:25]Waiting for new connection... [09:18:25] Sock 9.Parse request [09:18:25]Sock 9.Check first char [09:18:25]Sock 9.First char is OK [09:18:25]request: POST /json_proto HTTP/1.0 [09:18:25]Method: POST [09:18:25]URL: /json_proto [09:18:25]Method is POST - this is cgi request [09:18:25]url: /json_proto [09:18:25]query_string will be loaded in cgi processing [09:18:25]execute_cgi json_proto POST (null) [09:18:25]execute_cgi path=json_proto method=POST [09:18:25]POST find Content-Length [09:18:25]Host: 172.17.56.4:8080 [09:18:25]Content-Length: 678 [09:18:25]Content-Type: application/json [09:18:25] [09:18:25]POST finish read [09:18:25]Found Content-Length = 678 [09:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:25]execute_script... [09:18: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)458189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:25]POST & json_proto [09:18:25]process_json_proto [09:18:25]json parsed OK: [09:18:25]protocol is kg_v1.0 [09:18:25]action value=close_receipt [09:18:25]process_action close_receipt [09:18:25]cmd_close_receipt [09:18:25]MH_GetDate [09:18:25]Write to MH i2c: F0 00 00 50 05 44 [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: F0 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: F0 09 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: F0 09 00 50 05 00 E2 F4 90 66 C9 DC B2 64 D4 [09:18:25]GetLastDocTimeStamp 1720775892 [09:18:25]current date 1720775906 [09:18:25]FM_GetShiftState [09:18:25]SAM_PROTO_GetShiftState [09:18:25]wFMCommunicate request_size=4 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 13 01 00 [09:18:25]Write to MH i2c: E2 08 00 51 05 80 13 01 00 00 00 00 00 D3 [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 0E 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 0E 00 51 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1D [09:18:25]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:18:25]wFMCommunicate OK [09:18:25]SAM_PROTO_GetShiftState done [09:18:25]FM_GetShiftState done [09:18:25]opened in 1720744654 [09:18:25]opened+sec_in_day 1720831054 [09:18:25]quantity*price = 66063 [09:18:25]sum+1 = 66064 [09:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 33 12.07.2024 09:18 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164112 ФПД: 147235835506815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T091826&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164112&fm=147235835506815&tin=02508201610067®Number=0000000000090829&sum=66000 [09:18:26]StoreToDocumentArchive [09:18:26]shift 445 fd 164112 [09:18:26]save to /storage/0445/doc_00164112 [09:18:26]save last doc name /storage/0445/doc_00164112 to /storage/kkm_last_doc_name [09:18:26]save OK [09:18:26]Clear old archive folders... [09:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:26]tlvbuf is 00D49BE0 [09:18:26]SAM_PROTO_ClearQueue [09:18:26]wFMCommunicate request_size=4 [09:18:26]MH_SAM_APDU [09:18:26]CAPDU: 80 09 00 00 [09:18:26]Write to MH i2c: E2 08 00 5E 05 80 09 00 00 00 00 00 00 D5 [09:18:26]Write i2c OK [09:18:26]MH_I2C_Read... [09:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:26]Read from MH i2c: E2 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 03 00 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [09:18:26]RAPDU: 90 00 [09:18:26]wFMCommunicate OK [09:18:26]SAM_PROTO_ClearQueue done [09:18:26]KKMCreateOFDPacket [09:18:26]OFDProtocolAddRootSTLVToBuf [09:18:26]FM_MakeSignedData [09:18:26]FM_MakeSignedData [09:18:26]SAM_PROTO_SignData [09:18:26]wFMCommunicate request_size=4 [09:18:26]MH_SAM_APDU [09:18:26]CAPDU: 80 0D 01 02 [09:18:26]Write to MH i2c: E2 08 00 5F 05 80 0D 01 02 00 00 00 00 DD [09:18:26]Write i2c OK [09:18:26]MH_I2C_Read... [09:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:26]Read from MH i2c: E2 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 03 00 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [09:18:26]RAPDU: 90 00 [09:18:26]wFMCommunicate OK [09:18:26]wFMCommunicate request_size=255 [09:18:26]MH_SAM_APDU [09:18: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 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 F4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 81 02 00 35 04 06 00 85 [09:18:26]Write to MH i2c: E2 02 01 60 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 F4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 81 02 00 35 04 06 00 85 00 00 5F [09:18:26]Write i2c OK [09:18:26]MH_I2C_Read... [09:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:27]Read from MH i2c: E2 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 03 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [09:18:27]RAPDU: 90 00 [09:18:27]wFMCommunicate OK [09:18:27]wFMCommunicate request_size=10 [09:18:27]MH_SAM_APDU [09:18:27]CAPDU: 80 0D 02 02 05 E9 03 AC 70 7F [09:18:27]Write to MH i2c: E2 0D 00 61 05 80 0D 02 02 05 00 E9 03 AC 70 7F 00 00 71 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:27]Read from MH i2c: E2 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 03 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [09:18:27]RAPDU: 90 00 [09:18:27]wFMCommunicate OK [09:18:27]wFMCommunicate request_size=4 [09:18:27]MH_SAM_APDU [09:18:27]CAPDU: 80 0D 03 02 [09:18:27]Write to MH i2c: E2 08 00 62 05 80 0D 03 02 00 00 00 00 E2 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:27]Read from MH i2c: E2 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 0B 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 0B 00 62 05 00 D1 F1 E4 47 1A 7C F4 AF 90 00 09 [09:18:27]RAPDU: D1 F1 E4 47 1A 7C F4 AF 90 00 [09:18:27]wFMCommunicate OK [09:18:27]SAM_PROTO_SignData done [09:18:27]FM_MakeSignedData done [09:18:27]CreateOFDProtocolMessage [09:18:27]wFMCommunicate request_size=4 [09:18:27]MH_SAM_APDU [09:18:27]CAPDU: 80 11 00 00 [09:18:27]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:27]Read from MH i2c: E2 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 17 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 38 [09:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:18:27]wFMCommunicate OK [09:18:27]CreateOFDProtocolMessage done [09:18:27]OFDSenderStorePacket 164112 [09:18:27]StoreOFDPacket docnum=164112 [09:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 A4 07 01 FB 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 F4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 81 02 00 35 04 06 00 85 E9 03 AC 70 7F D1 F1 E4 47 1A 7C F4 AF [09:18:27]CheckFolder [09:18:27]dirname=/storage/ofd_packets [09:18:27]CheckFolder done [09:18:27]ProducePacketName [09:18:27]name=ofd_packets/00164112 [09:18:27]NVStorageSaveData ofd_packets/00164112 [09:18:27]File name is /storage/ofd_packets/00164112 [09:18:27]Write 301 bytes [09:18:27]NVStorageSaveData done [09:18:27]OFDSenderStorePacket done [09:18:27]KKMCreateOFDPacket done [09:18:27]NVStorageSaveData kkm_last_timestamp [09:18:27]File name is /storage/kkm_last_timestamp [09:18:27]Write 4 bytes [09:18:27]NVStorageSaveData done [09:18:27]ExternCall_PrintAddStr [09:18:27]wPrintStart [09:18:27]Write to MH i2c: 01 00 00 64 05 69 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 07 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 07 00 64 05 00 00 00 00 00 FF 0F 7E [09:18:27]RasterBufferAndPrint [09:18:27]line Счет N : (1)458189 [09:18:27]line ИНН: 02508201610067 [09:18:27]line Контрольно-Кассовый Чек [09:18:27]line ПРОДАЖА [09:18:27]line ТРК (МРК, ГНК) : 22 [09:18:27]line Товар: 2710124130 [09:18:27]line Аи-92-К-5 [09:18:27]line 10.040 * 65.80 [09:18:27]line = 660.63 [09:18:27]line НДС 12% НСП 1% [09:18:27]line > о реализуемом товаре [09:18:27]line ОКРУГЛЕНИЕ: -0.63 [09:18:27]line ИТОГО: 660.00 [09:18:27]line Внесено: 660.00 [09:18:27]line СДАЧА: 0.00 [09:18:27]line НСП 1% : 5.85 [09:18:27]line НДС 12% : 70.15 [09:18:27]line Наличными: 660.00 [09:18:27]line Безнал.: 0.00 [09:18:27]line Место: АЗС № 72 "Партнер Нефть" [09:18:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:18:27]line СНО: Общий режим [09:18:27]line Чек 33 12.07.2024 09:18 [09:18:27]line Смена: 445 ФФД: 1.0 [09:18:27]line ЗНМ: 0300000160 [09:18:27]line РНМ: 0000000000090829 [09:18:27]line Версия ККМ: 001 [09:18:27]line ФМ: 0000000000874718 [09:18:27]line ФД: 164112 [09:18:27]line ФПД: 147235835506815 [09:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T091826&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164112&fm=147235835506815&tin=02508201610067®Number=0000000000090829&sum=66000 [09:18:27]OFD Sender: Processing packet 164112 [packets to send 104, broken 103] [09:18:27]ProducePacketName [09:18:27]name=ofd_packets/00164112 [09:18:27]OFD Sender: To server: pG, [09:18:27]CommunicateWithHost lk.salyk.kg:30040 [09:18:27]ConnectInit lk.salyk.kg [09:18:27]written 0, free lines is 4095 [09:18:27]Connected sock=10 [09:18:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 A4 07 01 FB 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 F4 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 81 02 00 35 04 06 00 85 E9 03 AC 70 7F D1 F1 E4 47 1A 7C F4 AF [09:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 53 82 47 00 E5 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 34 37 31 38 10 04 04 00 10 81 02 00 F4 03 04 00 77 9B 90 66 B6 04 01 00 00 54 68 C1 67 37 A4 EC 29 [09:18:28]CommunicateWithHost err = 0 [09:18:28]CheckOFDResponse [09:18:28]1017 (14) - 77093643461234 [09:18:28]1041 (16) - 0000000000874718 [09:18:28]1040 (4) - 164112 [09:18:28]1012 (4) - 12.07.2024 02:56 [09:18:28]1206 (1) - 0 [09:18:28]OFD Sender: Remove packet 164112 [09:18:28]ProducePacketName [09:18:28]name=ofd_packets/00164112 [09:18:28]NVStorageDeleteData [09:18:28]Write to MH i2c: 01 00 00 8E 05 93 [09:18:28]Write i2c OK [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: 01 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: 01 07 00 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: 01 07 00 8E 05 00 00 00 00 00 02 0D A9 [09:18:28]RasterBufferAndPrint [09:18:28]line [09:18:28]line [09:18:28]line [09:18:28]line [09:18:28]line [09:18:28]written 0, free lines is 3336 [09:18:28]MH_Cut [09:18:28]Write to MH i2c: D1 01 00 95 05 01 6C [09:18:28]Write i2c OK [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: D1 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: D1 01 00 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: D1 01 00 95 05 00 6B [09:18:28]Write to MH i2c: 01 00 00 96 05 9B [09:18:28]Write i2c OK [09:18:28]MH_I2C_Read... [09:18:28]OFD Sender: No OFD packet to send [09:18:28]*** Cut start [09:18:28]*** Partial cut [09:18:28]*** CUTSNS_PIN = 1 [09:18:28]*** CUTSNS_PIN = 0 [09:18:29]*** Brake cut motor [09:18:29]Read from MH i2c: 01 [09:18:29]MH_I2C_Read... [09:18:29]*** Stop cut motor [09:18:29]*** Cut end [09:18:29]Read from MH i2c: 01 07 00 [09:18:29]MH_I2C_Read... [09:18:29]Read from MH i2c: 01 07 00 96 05 00 00 00 00 00 FF 0F B0 [09:18:29]process_action close_receipt done [09:18:29]requested_data is exist [09:18:29]produce_requested_data [09:18:29]requested_item fm.sn is exist - process it [09:18:29]wFMCommunicate request_size=4 [09:18:29]MH_SAM_APDU [09:18:29]CAPDU: 80 11 00 00 [09:18:29]Write to MH i2c: E2 08 00 97 05 80 11 00 00 00 00 00 00 16 [09:18:29]Write i2c OK [09:18:29]MH_I2C_Read... [09:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:29]Read from MH i2c: E2 [09:18:29]MH_I2C_Read... [09:18:29]Read from MH i2c: E2 17 00 [09:18:29]MH_I2C_Read... [09:18:29]Read from MH i2c: E2 17 00 97 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6C [09:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:18:29]wFMCommunicate OK [09:18:29]requested_item fd.num is exist - process it [09:18:29]SAM_PROTO_GetFieldsCounters [09:18:29]wFMCommunicate request_size=4 [09:18:29]MH_SAM_APDU [09:18:29]CAPDU: 80 13 00 00 [09:18:29]Write to MH i2c: E2 08 00 98 05 80 13 00 00 00 00 00 00 19 [09:18:29]Write i2c OK [09:18:29]MH_I2C_Read... [09:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:29]Read from MH i2c: E2 [09:18:29]MH_I2C_Read... [09:18:29]Read from MH i2c: E2 62 00 [09:18:29]MH_I2C_Read... [09:18:29]Read from MH i2c: E2 62 00 98 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [09:18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:29]wFMCommunicate OK [09:18:29]SAM_PROTO_GetFieldsCounters done [09:18:29]requested_item shift.num is exist - process it [09:18:29]requested_item shift.opened is exist - process it [09:18:29]req_shift_opened [09:18:29]FM_GetShiftState [09:18:29]SAM_PROTO_GetShiftState [09:18:29]wFMCommunicate request_size=4 [09:18:29]MH_SAM_APDU [09:18:29]CAPDU: 80 13 01 00 [09:18:29]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [09:18:29]Write i2c OK [09:18:29]MH_I2C_Read... [09:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:29]Read from MH i2c: E2 [09:18:29]MH_I2C_Read... [09:18:29]Read from MH i2c: E2 0E 00 [09:18:29]MH_I2C_Read... [09:18:29]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 65 [09:18:29]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:18:29]wFMCommunicate OK [09:18:29]SAM_PROTO_GetShiftState done [09:18:29]FM_GetShiftState done [09:18:29]req_shift_opened done [09:18:29]requested_item shift.open_date is exist - process it [09:18:29]req_shift_open_date [09:18:29]req_shift_open_date done [09:18:29]produce_requested_data done [09:18:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164112,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:18:29]process_action_free close_receipt [09:18:29]json_value_free [09:18:29]json_value_free done [09:18:29]process_json_proto returns [09:18:29]Send response to host [09:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164112,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:18:29]free response buf [09:18:29]execute_script done [09:18:29]execute_script returns [09:18:29]free content buf [09:18:29]Sock 9.Close socket [09:18:29]Sock 9.Thread stoped [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:04]accept exits with 8 [09:19:04]New connection [09:19:04]New thread 3066568036 created [09:19:04]Thread 3066711396 joined [09:19:04]Waiting for new connection... [09:19:04] Sock 8.Parse request [09:19:04]Sock 8.Check first char [09:19:04]Sock 8.First char is OK [09:19:04]request: POST /json_proto HTTP/1.0 [09:19:04]Method: POST [09:19:04]URL: /json_proto [09:19:04]Method is POST - this is cgi request [09:19:04]url: /json_proto [09:19:04]query_string will be loaded in cgi processing [09:19:04]execute_cgi json_proto POST (null) [09:19:04]execute_cgi path=json_proto method=POST [09:19:04]POST find Content-Length [09:19:04]Host: 172.17.56.4:8080 [09:19:04]Content-Length: 1178 [09:19:04]Content-Type: application/json [09:19:04] [09:19:04]POST finish read [09:19:04]Found Content-Length = 1178 [09:19:04]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458191\u000A12.07.2024 08:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114464\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:04]execute_script... [09:19:04]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458191\u000A12.07.2024 08:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114464\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:04]POST & json_proto [09:19:04]process_json_proto [09:19:04]json parsed OK: [09:19:04]protocol is kg_v1.0 [09:19:04]action value=print_text [09:19:04]process_action print_text [09:19:04]cmd_print_text [09:19:04]ExternCall_PrintAddStr [09:19:04]wPrintStart [09:19:04]Write to MH i2c: 01 00 00 9A 05 9F [09:19:04]Write i2c OK [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: 01 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: 01 07 00 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [09:19:04]RasterBufferAndPrint [09:19:04]line *****ТОВАРНЫЙ ЧЕК***** [09:19:04]line АЗС 72 [09:19:04]line Партнер нефть [09:19:04]line 02508201610067 [09:19:04]line Кассир : Садыков Н. [09:19:04]line Счет N : (1)458191 [09:19:04]line 12.07.2024 08:44 [09:19:04]line ПРОДАЖА [09:19:04]line ТРК (МРК, ГНК): 22 [09:19:04]line Вид ГСМ : 2710124130 [09:19:04]line Аи-92-К-5 [09:19:04]line 10.000 x 65.80 [09:19:04]line ИТОГ: 658.00 [09:19:04]line Тип оплаты: Талоны: Партнер нефть [09:19:04]line 4114464 [09:19:04]line ______________________ [09:19:04]line (подпись) [09:19:04]written 0, free lines is 4095 [09:19:04]Write to MH i2c: 01 00 00 AE 05 B3 [09:19:04]Write i2c OK [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: 01 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: 01 07 00 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: 01 07 00 AE 05 00 00 00 00 00 0F 0E D7 [09:19:04]RasterBufferAndPrint [09:19:04]line [09:19:04]line [09:19:04]line [09:19:04]line [09:19:04]line [09:19:04]written 0, free lines is 3601 [09:19:04]MH_Cut [09:19:04]Write to MH i2c: D1 01 00 B5 05 01 8C [09:19:04]Write i2c OK [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: D1 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: D1 01 00 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: D1 01 00 B5 05 00 8B [09:19:04]Write to MH i2c: 01 00 00 B6 05 BB [09:19:04]Write i2c OK [09:19:04]MH_I2C_Read... [09:19:05]*** Cut start [09:19:05]*** Partial cut [09:19:05]*** CUTSNS_PIN = 1 [09:19:05]*** CUTSNS_PIN = 0 [09:19:05]*** Brake cut motor [09:19:05]Read from MH i2c: 01 [09:19:05]MH_I2C_Read... [09:19:05]*** Stop cut motor [09:19:05]*** Cut end [09:19:05]Read from MH i2c: 01 07 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: 01 07 00 B6 05 00 00 00 00 00 FF 0F D0 [09:19:05]process_action print_text done [09:19:05]requested_data is exist [09:19:05]produce_requested_data [09:19:05]requested_item fm.sn is exist - process it [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 11 00 00 [09:19:05]Write to MH i2c: E2 08 00 B7 05 80 11 00 00 00 00 00 00 36 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 17 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 17 00 B7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [09:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:19:05]wFMCommunicate OK [09:19:05]requested_item fd.num is exist - process it [09:19:05]SAM_PROTO_GetFieldsCounters [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 13 00 00 [09:19:05]Write to MH i2c: E2 08 00 B8 05 80 13 00 00 00 00 00 00 39 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 62 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 62 00 B8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [09:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:05]wFMCommunicate OK [09:19:05]SAM_PROTO_GetFieldsCounters done [09:19:05]requested_item shift.num is exist - process it [09:19:05]requested_item shift.opened is exist - process it [09:19:05]req_shift_opened [09:19:05]FM_GetShiftState [09:19:05]SAM_PROTO_GetShiftState [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 13 01 00 [09:19:05]Write to MH i2c: E2 08 00 B9 05 80 13 01 00 00 00 00 00 3B [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0E 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0E 00 B9 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 85 [09:19:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:19:05]wFMCommunicate OK [09:19:05]SAM_PROTO_GetShiftState done [09:19:05]FM_GetShiftState done [09:19:05]req_shift_opened done [09:19:05]requested_item shift.open_date is exist - process it [09:19:05]req_shift_open_date [09:19:05]req_shift_open_date done [09:19:05]produce_requested_data done [09:19:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164112,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:19:05]process_action_free print_text [09:19:05]json_value_free [09:19:05]json_value_free done [09:19:05]process_json_proto returns [09:19:05]Send response to host [09:19:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164112,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:19:05]free response buf [09:19:05]execute_script done [09:19:05]execute_script returns [09:19:05]free content buf [09:19:05]Sock 8.Close socket [09:19:05]Sock 8.Thread stoped [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:17]accept exits with 9 [09:19:17]New connection [09:19:17]New thread 3066711396 created [09:19:17]Thread 3066568036 joined [09:19:17]Waiting for new connection... [09:19:17] Sock 9.Parse request [09:19:17]Sock 9.Check first char [09:19:17]Sock 9.First char is OK [09:19:17]request: POST /json_proto HTTP/1.0 [09:19:17]Method: POST [09:19:17]URL: /json_proto [09:19:17]Method is POST - this is cgi request [09:19:17]url: /json_proto [09:19:17]query_string will be loaded in cgi processing [09:19:17]execute_cgi json_proto POST (null) [09:19:17]execute_cgi path=json_proto method=POST [09:19:17]POST find Content-Length [09:19:17]Host: 172.17.56.4:8080 [09:19:17]Content-Length: 679 [09:19:17]Content-Type: application/json [09:19:17] [09:19:17]POST finish read [09:19:17]Found Content-Length = 679 [09:19:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [09:19:17]execute_script... [09:19: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)458190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [09:19:17]POST & json_proto [09:19:17]process_json_proto [09:19:17]json parsed OK: [09:19:17]protocol is kg_v1.0 [09:19:17]action value=close_receipt [09:19:17]process_action close_receipt [09:19:17]cmd_close_receipt [09:19:17]MH_GetDate [09:19:17]Write to MH i2c: F0 00 00 BA 05 AE [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: F0 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: F0 09 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: F0 09 00 BA 05 00 16 F5 90 66 C9 DC B2 64 73 [09:19:17]GetLastDocTimeStamp 1720775906 [09:19:17]current date 1720775958 [09:19:17]FM_GetShiftState [09:19:17]SAM_PROTO_GetShiftState [09:19:17]wFMCommunicate request_size=4 [09:19:17]MH_SAM_APDU [09:19:17]CAPDU: 80 13 01 00 [09:19:17]Write to MH i2c: E2 08 00 BB 05 80 13 01 00 00 00 00 00 3D [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:18]Read from MH i2c: E2 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 0E 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 0E 00 BB 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 87 [09:19:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:19:18]wFMCommunicate OK [09:19:18]SAM_PROTO_GetShiftState done [09:19:18]FM_GetShiftState done [09:19:18]opened in 1720744654 [09:19:18]opened+sec_in_day 1720831054 [09:19:18]quantity*price = 200025 [09:19:18]sum+1 = 200027 [09:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 34 12.07.2024 09:19 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164113 ФПД: 244987389075826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T091918&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164113&fm=244987389075826&tin=02508201610067®Number=0000000000090829&sum=200000 [09:19:19]StoreToDocumentArchive [09:19:19]shift 445 fd 164113 [09:19:19]save to /storage/0445/doc_00164113 [09:19:19]save last doc name /storage/0445/doc_00164113 to /storage/kkm_last_doc_name [09:19:19]save OK [09:19:19]Clear old archive folders... [09:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:19:19]tlvbuf is 00D4A050 [09:19:19]SAM_PROTO_ClearQueue [09:19:19]wFMCommunicate request_size=4 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 09 00 00 [09:19:19]Write to MH i2c: E2 08 00 C8 05 80 09 00 00 00 00 00 00 3F [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 03 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 03 00 C8 05 00 90 00 41 [09:19:19]RAPDU: 90 00 [09:19:19]wFMCommunicate OK [09:19:19]SAM_PROTO_ClearQueue done [09:19:19]KKMCreateOFDPacket [09:19:19]OFDProtocolAddRootSTLVToBuf [09:19:19]FM_MakeSignedData [09:19:19]FM_MakeSignedData [09:19:19]SAM_PROTO_SignData [09:19:19]wFMCommunicate request_size=4 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 0D 01 02 [09:19:19]Write to MH i2c: E2 08 00 C9 05 80 0D 01 02 00 00 00 00 47 [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 03 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 03 00 C9 05 00 90 00 42 [09:19:19]RAPDU: 90 00 [09:19:19]wFMCommunicate OK [09:19:19]wFMCommunicate request_size=255 [09:19:19]MH_SAM_APDU [09:19: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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 22 00 00 00 F4 03 04 00 16 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 81 02 00 35 04 06 00 DE D0 92 4C [09:19:19]Write to MH i2c: E2 02 01 CA 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 22 00 00 00 F4 03 04 00 16 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 81 02 00 35 04 06 00 DE D0 92 4C 00 00 3B [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 03 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [09:19:19]RAPDU: 90 00 [09:19:19]wFMCommunicate OK [09:19:19]wFMCommunicate request_size=7 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 0D 02 02 02 E1 72 [09:19:19]Write to MH i2c: E2 0A 00 CB 05 80 0D 02 02 02 00 E1 72 00 00 A1 [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 03 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [09:19:19]RAPDU: 90 00 [09:19:19]wFMCommunicate OK [09:19:19]wFMCommunicate request_size=4 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 0D 03 02 [09:19:19]Write to MH i2c: E2 08 00 CC 05 80 0D 03 02 00 00 00 00 4C [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 0B 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 0B 00 CC 05 00 DB 88 A6 84 97 99 82 76 90 00 02 [09:19:19]RAPDU: DB 88 A6 84 97 99 82 76 90 00 [09:19:19]wFMCommunicate OK [09:19:19]SAM_PROTO_SignData done [09:19:19]FM_MakeSignedData done [09:19:19]CreateOFDProtocolMessage [09:19:19]wFMCommunicate request_size=4 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 11 00 00 [09:19:19]Write to MH i2c: E2 08 00 CD 05 80 11 00 00 00 00 00 00 4C [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 17 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 17 00 CD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [09:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:19:19]wFMCommunicate OK [09:19:19]CreateOFDProtocolMessage done [09:19:19]OFDSenderStorePacket 164113 [09:19:19]StoreOFDPacket docnum=164113 [09:19:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0D CB 04 01 11 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 22 00 00 00 F4 03 04 00 16 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 81 02 00 35 04 06 00 DE D0 92 4C E1 72 DB 88 A6 84 97 99 82 76 [09:19:19]CheckFolder [09:19:19]dirname=/storage/ofd_packets [09:19:19]CheckFolder done [09:19:19]ProducePacketName [09:19:19]name=ofd_packets/00164113 [09:19:19]NVStorageSaveData ofd_packets/00164113 [09:19:19]File name is /storage/ofd_packets/00164113 [09:19:19]Write 298 bytes [09:19:19]NVStorageSaveData done [09:19:19]OFDSenderStorePacket done [09:19:19]KKMCreateOFDPacket done [09:19:19]NVStorageSaveData kkm_last_timestamp [09:19:19]File name is /storage/kkm_last_timestamp [09:19:19]Write 4 bytes [09:19:19]NVStorageSaveData done [09:19:19]ExternCall_PrintAddStr [09:19:19]wPrintStart [09:19:19]Write to MH i2c: 01 00 00 CE 05 D3 [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: 01 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: 01 07 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: 01 07 00 CE 05 00 00 00 00 00 FF 0F E8 [09:19:19]RasterBufferAndPrint [09:19:19]line Счет N : (1)458190 [09:19:19]line ИНН: 02508201610067 [09:19:19]line Контрольно-Кассовый Чек [09:19:19]line ПРОДАЖА [09:19:19]line ТРК (МРК, ГНК) : 11 [09:19:19]line Товар: 2710194210 [09:19:19]line ДТ-К-5 [09:19:19]line 27.820 * 71.90 [09:19:19]line = 2000.26 [09:19:19]line НДС 12% НСП 1% [09:19:19]line > о реализуемом товаре [09:19:19]line ОКРУГЛЕНИЕ: -0.26 [09:19:19]line ИТОГО: 2000.00 [09:19:19]line Внесено: 2000.00 [09:19:19]line СДАЧА: 0.00 [09:19:19]line НСП 1% : 17.70 [09:19:19]line НДС 12% : 212.42 [09:19:19]line Наличными: 2000.00 [09:19:19]line Безнал.: 0.00 [09:19:19]line Место: АЗС № 72 "Партнер Нефть" [09:19:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:19:19]line СНО: Общий режим [09:19:19]line Чек 34 12.07.2024 09:19 [09:19:19]line Смена: 445 ФФД: 1.0 [09:19:19]line ЗНМ: 0300000160 [09:19:19]line РНМ: 0000000000090829 [09:19:19]line Версия ККМ: 001 [09:19:19]line ФМ: 0000000000874718 [09:19:19]line ФД: 164113 [09:19:19]line ФПД: 244987389075826 [09:19:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T091918&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164113&fm=244987389075826&tin=02508201610067®Number=0000000000090829&sum=200000 [09:19:19]OFD Sender: Processing packet 164113 [packets to send 104, broken 103] [09:19:19]ProducePacketName [09:19:19]name=ofd_packets/00164113 [09:19:19]OFD Sender: To server: pG, [09:19:19]CommunicateWithHost lk.salyk.kg:30040 [09:19:19]ConnectInit lk.salyk.kg [09:19:19]written 0, free lines is 4095 [09:19:20]Connected sock=10 [09:19:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0D CB 04 01 11 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 22 00 00 00 F4 03 04 00 16 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 81 02 00 35 04 06 00 DE D0 92 4C E1 72 DB 88 A6 84 97 99 82 76 [09:19:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 03 A9 47 00 EE 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 34 37 31 38 10 04 04 00 11 81 02 00 F4 03 04 00 AB 9B 90 66 B6 04 01 00 00 25 94 F4 D9 B7 DD A4 DF [09:19:20]CommunicateWithHost err = 0 [09:19:20]CheckOFDResponse [09:19:20]1017 (14) - 77093643461234 [09:19:20]1041 (16) - 0000000000874718 [09:19:20]1040 (4) - 164113 [09:19:20]1012 (4) - 12.07.2024 02:57 [09:19:20]1206 (1) - 0 [09:19:20]OFD Sender: Remove packet 164113 [09:19:20]ProducePacketName [09:19:20]name=ofd_packets/00164113 [09:19:20]NVStorageDeleteData [09:19:20]Write to MH i2c: 01 00 00 F8 05 FD [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 07 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 00 0D 11 [09:19:20]RasterBufferAndPrint [09:19:20]line [09:19:20]line [09:19:20]line [09:19:20]line [09:19:20]line [09:19:20]written 0, free lines is 3334 [09:19:20]MH_Cut [09:19:20]Write to MH i2c: D1 01 00 FF 05 01 D6 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: D1 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: D1 01 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: D1 01 00 FF 05 00 D5 [09:19:20]Write to MH i2c: 01 00 00 00 06 06 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]OFD Sender: No OFD packet to send [09:19:21]*** Cut start [09:19:21]*** Partial cut [09:19:21]*** CUTSNS_PIN = 1 [09:19:21]*** CUTSNS_PIN = 0 [09:19:21]*** Brake cut motor [09:19:21]Read from MH i2c: 01 [09:19:21]MH_I2C_Read... [09:19:21]*** Stop cut motor [09:19:21]*** Cut end [09:19:21]Read from MH i2c: 01 07 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: 01 07 00 00 06 00 00 00 00 00 FF 0F 1B [09:19:21]process_action close_receipt done [09:19:21]requested_data is exist [09:19:21]produce_requested_data [09:19:21]requested_item fm.sn is exist - process it [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 11 00 00 [09:19:21]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 17 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [09:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:19:21]wFMCommunicate OK [09:19:21]requested_item fd.num is exist - process it [09:19:21]SAM_PROTO_GetFieldsCounters [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 13 00 00 [09:19:21]Write to MH i2c: E2 08 00 02 06 80 13 00 00 00 00 00 00 84 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 62 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 62 00 02 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [09:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:21]wFMCommunicate OK [09:19:21]SAM_PROTO_GetFieldsCounters done [09:19:21]requested_item shift.num is exist - process it [09:19:21]requested_item shift.opened is exist - process it [09:19:21]req_shift_opened [09:19:21]FM_GetShiftState [09:19:21]SAM_PROTO_GetShiftState [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 13 01 00 [09:19:21]Write to MH i2c: E2 08 00 03 06 80 13 01 00 00 00 00 00 86 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0E 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0E 00 03 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D0 [09:19:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:19:21]wFMCommunicate OK [09:19:21]SAM_PROTO_GetShiftState done [09:19:21]FM_GetShiftState done [09:19:21]req_shift_opened done [09:19:21]requested_item shift.open_date is exist - process it [09:19:21]req_shift_open_date [09:19:21]req_shift_open_date done [09:19:21]produce_requested_data done [09:19:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164113,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:19:21]process_action_free close_receipt [09:19:21]json_value_free [09:19:21]json_value_free done [09:19:21]process_json_proto returns [09:19:21]Send response to host [09:19:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164113,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:19:21]free response buf [09:19:21]execute_script done [09:19:21]execute_script returns [09:19:21]free content buf [09:19:21]Sock 9.Close socket [09:19:21]Sock 9.Thread stoped [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:13]accept exits with 8 [09:20:13]New connection [09:20:13]New thread 3066568036 created [09:20:13]Thread 3066711396 joined [09:20:13]Waiting for new connection... [09:20:13] Sock 8.Parse request [09:20:13]Sock 8.Check first char [09:20:13]Sock 8.First char is OK [09:20:13]request: POST /json_proto HTTP/1.0 [09:20:13]Method: POST [09:20:13]URL: /json_proto [09:20:13]Method is POST - this is cgi request [09:20:13]url: /json_proto [09:20:13]query_string will be loaded in cgi processing [09:20:13]execute_cgi json_proto POST (null) [09:20:13]execute_cgi path=json_proto method=POST [09:20:13]POST find Content-Length [09:20:13]Host: 172.17.56.4:8080 [09:20:13]Content-Length: 674 [09:20:13]Content-Type: application/json [09:20:13] [09:20:13]POST finish read [09:20:13]Found Content-Length = 674 [09:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458192", "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" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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:20:13]execute_script... [09:20: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)458192", "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" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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:20:13]POST & json_proto [09:20:13]process_json_proto [09:20:13]json parsed OK: [09:20:13]protocol is kg_v1.0 [09:20:13]action value=close_receipt [09:20:13]process_action close_receipt [09:20:13]cmd_close_receipt [09:20:13]MH_GetDate [09:20:13]Write to MH i2c: F0 00 00 04 06 F9 [09:20:13]Write i2c OK [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: F0 [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: F0 09 00 [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: F0 09 00 04 06 00 4D F5 90 66 C9 DC B2 64 F5 [09:20:13]GetLastDocTimeStamp 1720775958 [09:20:13]current date 1720776013 [09:20:13]FM_GetShiftState [09:20:13]SAM_PROTO_GetShiftState [09:20:13]wFMCommunicate request_size=4 [09:20:13]MH_SAM_APDU [09:20:13]CAPDU: 80 13 01 00 [09:20:13]Write to MH i2c: E2 08 00 05 06 80 13 01 00 00 00 00 00 88 [09:20:13]Write i2c OK [09:20:13]MH_I2C_Read... [09:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:13]Read from MH i2c: E2 [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: E2 0E 00 [09:20:13]MH_I2C_Read... [09:20:13]Read from MH i2c: E2 0E 00 05 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D2 [09:20:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:20:13]wFMCommunicate OK [09:20:13]SAM_PROTO_GetShiftState done [09:20:13]FM_GetShiftState done [09:20:13]opened in 1720744654 [09:20:13]opened+sec_in_day 1720831054 [09:20:13]quantity*price = 30054 [09:20:13]sum+1 = 30055 [09:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 35 12.07.2024 09:20 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164114 ФПД: 118207741429842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164114&fm=118207741429842&tin=02508201610067®Number=0000000000090829&sum=30000 [09:20:14]StoreToDocumentArchive [09:20:14]shift 445 fd 164114 [09:20:14]save to /storage/0445/doc_00164114 [09:20:14]save last doc name /storage/0445/doc_00164114 to /storage/kkm_last_doc_name [09:20:14]save OK [09:20:14]Clear old archive folders... [09:20:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:20:14]tlvbuf is 00CF5840 [09:20:14]SAM_PROTO_ClearQueue [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 09 00 00 [09:20:14]Write to MH i2c: E2 08 00 12 06 80 09 00 00 00 00 00 00 8A [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 03 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [09:20:14]RAPDU: 90 00 [09:20:14]wFMCommunicate OK [09:20:14]SAM_PROTO_ClearQueue done [09:20:14]KKMCreateOFDPacket [09:20:14]OFDProtocolAddRootSTLVToBuf [09:20:14]FM_MakeSignedData [09:20:14]FM_MakeSignedData [09:20:14]SAM_PROTO_SignData [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 0D 01 02 [09:20:14]Write to MH i2c: E2 08 00 13 06 80 0D 01 02 00 00 00 00 92 [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 03 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [09:20:14]RAPDU: 90 00 [09:20:14]wFMCommunicate OK [09:20:14]wFMCommunicate request_size=255 [09:20:14]MH_SAM_APDU [09:20: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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 4D F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 81 02 00 35 04 06 00 6B 82 62 70 [09:20:14]Write to MH i2c: E2 02 01 14 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 4D F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 81 02 00 35 04 06 00 6B 82 62 70 00 00 AC [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 03 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [09:20:14]RAPDU: 90 00 [09:20:14]wFMCommunicate OK [09:20:14]wFMCommunicate request_size=7 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 0D 02 02 02 08 52 [09:20:14]Write to MH i2c: E2 0A 00 15 06 80 0D 02 02 02 00 08 52 00 00 F3 [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 03 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [09:20:14]RAPDU: 90 00 [09:20:14]wFMCommunicate OK [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 0D 03 02 [09:20:14]Write to MH i2c: E2 08 00 16 06 80 0D 03 02 00 00 00 00 97 [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 0B 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 0B 00 16 06 00 1D 3E CC 18 F5 95 E9 60 90 00 AA [09:20:14]RAPDU: 1D 3E CC 18 F5 95 E9 60 90 00 [09:20:14]wFMCommunicate OK [09:20:14]SAM_PROTO_SignData done [09:20:14]FM_MakeSignedData done [09:20:14]CreateOFDProtocolMessage [09:20:14]wFMCommunicate request_size=4 [09:20:14]MH_SAM_APDU [09:20:14]CAPDU: 80 11 00 00 [09:20:14]Write to MH i2c: E2 08 00 17 06 80 11 00 00 00 00 00 00 97 [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:14]Read from MH i2c: E2 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 17 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: E2 17 00 17 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [09:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:20:14]wFMCommunicate OK [09:20:14]CreateOFDProtocolMessage done [09:20:14]OFDSenderStorePacket 164114 [09:20:14]StoreOFDPacket docnum=164114 [09:20:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1A 1A 04 01 59 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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 4D F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 81 02 00 35 04 06 00 6B 82 62 70 08 52 1D 3E CC 18 F5 95 E9 60 [09:20:14]CheckFolder [09:20:14]dirname=/storage/ofd_packets [09:20:14]CheckFolder done [09:20:14]ProducePacketName [09:20:14]name=ofd_packets/00164114 [09:20:14]NVStorageSaveData ofd_packets/00164114 [09:20:14]File name is /storage/ofd_packets/00164114 [09:20:14]Write 298 bytes [09:20:14]NVStorageSaveData done [09:20:14]OFDSenderStorePacket done [09:20:14]KKMCreateOFDPacket done [09:20:14]NVStorageSaveData kkm_last_timestamp [09:20:14]File name is /storage/kkm_last_timestamp [09:20:14]Write 4 bytes [09:20:14]NVStorageSaveData done [09:20:14]ExternCall_PrintAddStr [09:20:14]wPrintStart [09:20:14]Write to MH i2c: 01 00 00 18 06 1E [09:20:14]Write i2c OK [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: 01 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: 01 07 00 [09:20:14]MH_I2C_Read... [09:20:14]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [09:20:14]RasterBufferAndPrint [09:20:14]line Счет N : (1)458192 [09:20:14]line ИНН: 02508201610067 [09:20:14]line Контрольно-Кассовый Чек [09:20:14]line ПРОДАЖА [09:20:14]line ТРК (МРК, ГНК) : 21 [09:20:14]line Товар: 2710194210 [09:20:14]line ДТ-К-5 [09:20:14]line 4.180 * 71.90 [09:20:14]line = 300.54 [09:20:14]line НДС 12% НСП 1% [09:20:14]line > о реализуемом товаре [09:20:14]line ОКРУГЛЕНИЕ: -0.54 [09:20:14]line ИТОГО: 300.00 [09:20:14]line Внесено: 300.00 [09:20:14]line СДАЧА: 0.00 [09:20:14]line НСП 1% : 2.66 [09:20:14]line НДС 12% : 31.92 [09:20:14]line Наличными: 300.00 [09:20:14]line Безнал.: 0.00 [09:20:14]line Место: АЗС № 72 "Партнер Нефть" [09:20:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:20:14]line СНО: Общий режим [09:20:14]line Чек 35 12.07.2024 09:20 [09:20:14]line Смена: 445 ФФД: 1.0 [09:20:14]line ЗНМ: 0300000160 [09:20:14]line РНМ: 0000000000090829 [09:20:14]line Версия ККМ: 001 [09:20:14]line ФМ: 0000000000874718 [09:20:14]line ФД: 164114 [09:20:14]line ФПД: 118207741429842 [09:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164114&fm=118207741429842&tin=02508201610067®Number=0000000000090829&sum=30000 [09:20:15]OFD Sender: Processing packet 164114 [packets to send 104, broken 103] [09:20:15]ProducePacketName [09:20:15]name=ofd_packets/00164114 [09:20:15]OFD Sender: To server: pG, [09:20:15]CommunicateWithHost lk.salyk.kg:30040 [09:20:15]ConnectInit lk.salyk.kg [09:20:15]written 0, free lines is 4095 [09:20:15]Connected sock=10 [09:20:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1A 1A 04 01 59 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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 4D F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 81 02 00 35 04 06 00 6B 82 62 70 08 52 1D 3E CC 18 F5 95 E9 60 [09:20:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E8 87 47 00 17 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 34 37 31 38 10 04 04 00 12 81 02 00 F4 03 04 00 E2 9B 90 66 B6 04 01 00 00 3E 61 D7 04 DD 5A D7 2E [09:20:15]CommunicateWithHost err = 0 [09:20:15]CheckOFDResponse [09:20:15]1017 (14) - 77093643461234 [09:20:15]1041 (16) - 0000000000874718 [09:20:15]1040 (4) - 164114 [09:20:15]1012 (4) - 12.07.2024 02:58 [09:20:15]1206 (1) - 0 [09:20:15]OFD Sender: Remove packet 164114 [09:20:15]ProducePacketName [09:20:15]name=ofd_packets/00164114 [09:20:15]NVStorageDeleteData [09:20:15]Write to MH i2c: 01 00 00 42 06 48 [09:20:15]Write i2c OK [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: 01 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: 01 07 00 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 EF 0C 4A [09:20:15]RasterBufferAndPrint [09:20:15]line [09:20:15]line [09:20:15]line [09:20:15]line [09:20:15]line [09:20:15]written 0, free lines is 3317 [09:20:15]MH_Cut [09:20:15]Write to MH i2c: D1 01 00 49 06 01 21 [09:20:15]Write i2c OK [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: D1 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: D1 01 00 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: D1 01 00 49 06 00 20 [09:20:15]Write to MH i2c: 01 00 00 4A 06 50 [09:20:15]Write i2c OK [09:20:15]MH_I2C_Read... [09:20:15]OFD Sender: No OFD packet to send [09:20:16]*** Cut start [09:20:16]*** Partial cut [09:20:16]*** CUTSNS_PIN = 1 [09:20:16]*** CUTSNS_PIN = 0 [09:20:16]*** Brake cut motor [09:20:16]Read from MH i2c: 01 [09:20:16]MH_I2C_Read... [09:20:16]*** Stop cut motor [09:20:16]*** Cut end [09:20:16]Read from MH i2c: 01 07 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 FF 0F 65 [09:20:16]process_action close_receipt done [09:20:16]requested_data is exist [09:20:16]produce_requested_data [09:20:16]requested_item fm.sn is exist - process it [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 11 00 00 [09:20:16]Write to MH i2c: E2 08 00 4B 06 80 11 00 00 00 00 00 00 CB [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 17 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 17 00 4B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [09:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:20:16]wFMCommunicate OK [09:20:16]requested_item fd.num is exist - process it [09:20:16]SAM_PROTO_GetFieldsCounters [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 13 00 00 [09:20:16]Write to MH i2c: E2 08 00 4C 06 80 13 00 00 00 00 00 00 CE [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:17]Read from MH i2c: E2 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 62 00 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 62 00 4C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [09:20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:17]wFMCommunicate OK [09:20:17]SAM_PROTO_GetFieldsCounters done [09:20:17]requested_item shift.num is exist - process it [09:20:17]requested_item shift.opened is exist - process it [09:20:17]req_shift_opened [09:20:17]FM_GetShiftState [09:20:17]SAM_PROTO_GetShiftState [09:20:17]wFMCommunicate request_size=4 [09:20:17]MH_SAM_APDU [09:20:17]CAPDU: 80 13 01 00 [09:20:17]Write to MH i2c: E2 08 00 4D 06 80 13 01 00 00 00 00 00 D0 [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:17]Read from MH i2c: E2 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 0E 00 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: E2 0E 00 4D 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1A [09:20:17]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:20:17]wFMCommunicate OK [09:20:17]SAM_PROTO_GetShiftState done [09:20:17]FM_GetShiftState done [09:20:17]req_shift_opened done [09:20:17]requested_item shift.open_date is exist - process it [09:20:17]req_shift_open_date [09:20:17]req_shift_open_date done [09:20:17]produce_requested_data done [09:20:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164114,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:20:17]process_action_free close_receipt [09:20:17]json_value_free [09:20:17]json_value_free done [09:20:17]process_json_proto returns [09:20:17]Send response to host [09:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164114,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:20:17]free response buf [09:20:17]execute_script done [09:20:17]execute_script returns [09:20:17]free content buf [09:20:17]Sock 8.Close socket [09:20:17]Sock 8.Thread stoped [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:39]accept exits with 9 [09:20:39]New connection [09:20:39]New thread 3066711396 created [09:20:39]Thread 3066568036 joined [09:20:39]Waiting for new connection... [09:20:39] Sock 9.Parse request [09:20:39]Sock 9.Check first char [09:20:39]Sock 9.First char is OK [09:20:39]request: POST /json_proto HTTP/1.0 [09:20:39]Method: POST [09:20:39]URL: /json_proto [09:20:39]Method is POST - this is cgi request [09:20:39]url: /json_proto [09:20:39]query_string will be loaded in cgi processing [09:20:39]execute_cgi json_proto POST (null) [09:20:39]execute_cgi path=json_proto method=POST [09:20:39]POST find Content-Length [09:20:39]Host: 172.17.56.4:8080 [09:20:39]Content-Length: 677 [09:20:39]Content-Type: application/json [09:20:39] [09:20:39]POST finish read [09:20:39]Found Content-Length = 677 [09:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.440, "sum" : 160.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:39]execute_script... [09:20: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)458193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.440, "sum" : 160.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:39]POST & json_proto [09:20:39]process_json_proto [09:20:39]json parsed OK: [09:20:39]protocol is kg_v1.0 [09:20:39]action value=close_receipt [09:20:39]process_action close_receipt [09:20:39]cmd_close_receipt [09:20:39]MH_GetDate [09:20:39]Write to MH i2c: F0 00 00 4E 06 43 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: F0 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: F0 09 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: F0 09 00 4E 06 00 68 F5 90 66 C9 DC B2 64 5A [09:20:39]GetLastDocTimeStamp 1720776013 [09:20:39]current date 1720776040 [09:20:39]FM_GetShiftState [09:20:39]SAM_PROTO_GetShiftState [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 13 01 00 [09:20:39]Write to MH i2c: E2 08 00 4F 06 80 13 01 00 00 00 00 00 D2 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 0E 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 0E 00 4F 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1C [09:20:39]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:20:39]wFMCommunicate OK [09:20:39]SAM_PROTO_GetShiftState done [09:20:39]FM_GetShiftState done [09:20:39]opened in 1720744654 [09:20:39]opened+sec_in_day 1720831054 [09:20:39]quantity*price = 16055 [09:20:39]sum+1 = 16056 [09:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.05 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 36 12.07.2024 09:20 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164115 ФПД: 32883214403407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092040&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164115&fm=32883214403407&tin=02508201610067®Number=0000000000090829&sum=16000 [09:20:40]StoreToDocumentArchive [09:20:40]shift 445 fd 164115 [09:20:40]save to /storage/0445/doc_00164115 [09:20:40]save last doc name /storage/0445/doc_00164115 to /storage/kkm_last_doc_name [09:20:40]save OK [09:20:40]Clear old archive folders... [09:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:40]tlvbuf is 00D532D0 [09:20:40]SAM_PROTO_ClearQueue [09:20:40]wFMCommunicate request_size=4 [09:20:40]MH_SAM_APDU [09:20:40]CAPDU: 80 09 00 00 [09:20:40]Write to MH i2c: E2 08 00 5C 06 80 09 00 00 00 00 00 00 D4 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:40]Read from MH i2c: E2 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 03 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 03 00 5C 06 00 90 00 D6 [09:20:40]RAPDU: 90 00 [09:20:40]wFMCommunicate OK [09:20:40]SAM_PROTO_ClearQueue done [09:20:40]KKMCreateOFDPacket [09:20:40]OFDProtocolAddRootSTLVToBuf [09:20:40]FM_MakeSignedData [09:20:40]FM_MakeSignedData [09:20:40]SAM_PROTO_SignData [09:20:40]wFMCommunicate request_size=4 [09:20:40]MH_SAM_APDU [09:20:40]CAPDU: 80 0D 01 02 [09:20:40]Write to MH i2c: E2 08 00 5D 06 80 0D 01 02 00 00 00 00 DC [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:40]Read from MH i2c: E2 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 03 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [09:20:40]RAPDU: 90 00 [09:20:40]wFMCommunicate OK [09:20:40]wFMCommunicate request_size=255 [09:20:40]MH_SAM_APDU [09:20: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 88 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B7 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 81 02 00 35 04 06 00 1D [09:20:40]Write to MH i2c: E2 02 01 5E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B7 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 81 02 00 35 04 06 00 1D 00 00 E0 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:40]Read from MH i2c: E2 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 03 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [09:20:40]RAPDU: 90 00 [09:20:40]wFMCommunicate OK [09:20:40]wFMCommunicate request_size=10 [09:20:40]MH_SAM_APDU [09:20:40]CAPDU: 80 0D 02 02 05 E8 38 50 47 4F [09:20:40]Write to MH i2c: E2 0D 00 5F 06 80 0D 02 02 05 00 E8 38 50 47 4F 00 00 EF [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [09:20:41]RAPDU: 90 00 [09:20:41]wFMCommunicate OK [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 0D 03 02 [09:20:41]Write to MH i2c: E2 08 00 60 06 80 0D 03 02 00 00 00 00 E1 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:41]OFD Sender: No OFD packet to send [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 0B 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 0B 00 60 06 00 BC 2E 48 57 EF EA 6C 3B 90 00 EB [09:20:41]RAPDU: BC 2E 48 57 EF EA 6C 3B 90 00 [09:20:41]wFMCommunicate OK [09:20:41]SAM_PROTO_SignData done [09:20:41]FM_MakeSignedData done [09:20:41]CreateOFDProtocolMessage [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 11 00 00 [09:20:41]Write to MH i2c: E2 08 00 61 06 80 11 00 00 00 00 00 00 E1 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 17 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 17 00 61 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [09:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:20:41]wFMCommunicate OK [09:20:41]CreateOFDProtocolMessage done [09:20:41]OFDSenderStorePacket 164115 [09:20:41]StoreOFDPacket docnum=164115 [09:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 30 69 07 01 C8 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 88 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B7 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 81 02 00 35 04 06 00 1D E8 38 50 47 4F BC 2E 48 57 EF EA 6C 3B [09:20:41]CheckFolder [09:20:41]dirname=/storage/ofd_packets [09:20:41]CheckFolder done [09:20:41]ProducePacketName [09:20:41]name=ofd_packets/00164115 [09:20:41]NVStorageSaveData ofd_packets/00164115 [09:20:41]File name is /storage/ofd_packets/00164115 [09:20:41]Write 301 bytes [09:20:41]NVStorageSaveData done [09:20:41]OFDSenderStorePacket done [09:20:41]KKMCreateOFDPacket done [09:20:41]NVStorageSaveData kkm_last_timestamp [09:20:41]File name is /storage/kkm_last_timestamp [09:20:41]Write 4 bytes [09:20:41]NVStorageSaveData done [09:20:41]ExternCall_PrintAddStr [09:20:41]wPrintStart [09:20:41]Write to MH i2c: 01 00 00 62 06 68 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 07 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 FF 0F 7D [09:20:41]RasterBufferAndPrint [09:20:41]line Счет N : (1)458193 [09:20:41]line ИНН: 02508201610067 [09:20:41]line Контрольно-Кассовый Чек [09:20:41]line ПРОДАЖА [09:20:41]line ТРК (МРК, ГНК) : 12 [09:20:41]line Товар: 2710124130 [09:20:41]line Аи-92-К-5 [09:20:41]line 2.440 * 65.80 [09:20:41]line = 160.55 [09:20:41]line НДС 12% НСП 1% [09:20:41]line > о реализуемом товаре [09:20:41]line ОКРУГЛЕНИЕ: -0.55 [09:20:41]line ИТОГО: 160.00 [09:20:41]line Внесено: 160.00 [09:20:41]line СДАЧА: 0.00 [09:20:41]line НСП 1% : 1.42 [09:20:41]line НДС 12% : 17.05 [09:20:41]line Наличными: 160.00 [09:20:41]line Безнал.: 0.00 [09:20:41]line Место: АЗС № 72 "Партнер Нефть" [09:20:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:20:41]line СНО: Общий режим [09:20:41]line Чек 36 12.07.2024 09:20 [09:20:41]line Смена: 445 ФФД: 1.0 [09:20:41]line ЗНМ: 0300000160 [09:20:41]line РНМ: 0000000000090829 [09:20:41]line Версия ККМ: 001 [09:20:41]line ФМ: 0000000000874718 [09:20:41]line ФД: 164115 [09:20:41]line ФПД: 32883214403407 [09:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092040&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164115&fm=32883214403407&tin=02508201610067®Number=0000000000090829&sum=16000 [09:20:41]OFD Sender: Processing packet 164115 [packets to send 104, broken 103] [09:20:41]ProducePacketName [09:20:41]name=ofd_packets/00164115 [09:20:41]OFD Sender: To server: pG, [09:20:41]CommunicateWithHost lk.salyk.kg:30040 [09:20:41]ConnectInit lk.salyk.kg [09:20:41]written 0, free lines is 4095 [09:20:41]Connected sock=10 [09:20:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 30 69 07 01 C8 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 88 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B7 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 81 02 00 35 04 06 00 1D E8 38 50 47 4F BC 2E 48 57 EF EA 6C 3B [09:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CD 2F 47 00 28 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 34 37 31 38 10 04 04 00 13 81 02 00 F4 03 04 00 FC 9B 90 66 B6 04 01 00 00 7D DC D7 26 0D 9C D3 CA [09:20:41]CommunicateWithHost err = 0 [09:20:41]CheckOFDResponse [09:20:41]1017 (14) - 77093643461234 [09:20:41]1041 (16) - 0000000000874718 [09:20:41]1040 (4) - 164115 [09:20:41]1012 (4) - 12.07.2024 02:59 [09:20:41]1206 (1) - 0 [09:20:41]OFD Sender: Remove packet 164115 [09:20:41]ProducePacketName [09:20:41]name=ofd_packets/00164115 [09:20:41]NVStorageDeleteData [09:20:41]Write to MH i2c: 01 00 00 8C 06 92 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 07 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 07 00 8C 06 00 00 00 00 00 F3 0C 98 [09:20:41]RasterBufferAndPrint [09:20:41]line [09:20:41]line [09:20:41]line [09:20:41]line [09:20:41]line [09:20:41]written 0, free lines is 3323 [09:20:41]MH_Cut [09:20:41]Write to MH i2c: D1 01 00 93 06 01 6B [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: D1 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: D1 01 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: D1 01 00 93 06 00 6A [09:20:41]Write to MH i2c: 01 00 00 94 06 9A [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:42]OFD Sender: No OFD packet to send [09:20:42]*** Cut start [09:20:42]*** Partial cut [09:20:42]*** CUTSNS_PIN = 1 [09:20:42]*** CUTSNS_PIN = 0 [09:20:42]*** Brake cut motor [09:20:43]Read from MH i2c: 01 [09:20:43]MH_I2C_Read... [09:20:43]*** Stop cut motor [09:20:43]*** Cut end [09:20:43]Read from MH i2c: 01 07 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 07 00 94 06 00 00 00 00 00 FF 0F AF [09:20:43]process_action close_receipt done [09:20:43]requested_data is exist [09:20:43]produce_requested_data [09:20:43]requested_item fm.sn is exist - process it [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 11 00 00 [09:20:43]Write to MH i2c: E2 08 00 95 06 80 11 00 00 00 00 00 00 15 [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 17 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 17 00 95 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6B [09:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:20:43]wFMCommunicate OK [09:20:43]requested_item fd.num is exist - process it [09:20:43]SAM_PROTO_GetFieldsCounters [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 13 00 00 [09:20:43]Write to MH i2c: E2 08 00 96 06 80 13 00 00 00 00 00 00 18 [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 62 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 62 00 96 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [09:20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:43]wFMCommunicate OK [09:20:43]SAM_PROTO_GetFieldsCounters done [09:20:43]requested_item shift.num is exist - process it [09:20:43]requested_item shift.opened is exist - process it [09:20:43]req_shift_opened [09:20:43]FM_GetShiftState [09:20:43]SAM_PROTO_GetShiftState [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 13 01 00 [09:20:43]Write to MH i2c: E2 08 00 97 06 80 13 01 00 00 00 00 00 1A [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 0E 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 0E 00 97 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 64 [09:20:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:20:43]wFMCommunicate OK [09:20:43]SAM_PROTO_GetShiftState done [09:20:43]FM_GetShiftState done [09:20:43]req_shift_opened done [09:20:43]requested_item shift.open_date is exist - process it [09:20:43]req_shift_open_date [09:20:43]req_shift_open_date done [09:20:43]produce_requested_data done [09:20:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164115,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:20:43]process_action_free close_receipt [09:20:43]json_value_free [09:20:43]json_value_free done [09:20:43]process_json_proto returns [09:20:43]Send response to host [09:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164115,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:20:43]free response buf [09:20:43]execute_script done [09:20:43]execute_script returns [09:20:43]free content buf [09:20:43]Sock 9.Close socket [09:20:43]Sock 9.Thread stoped [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:38]accept exits with 8 [09:21:38]New connection [09:21:38]New thread 3066568036 created [09:21:38]Thread 3066711396 joined [09:21:38]Waiting for new connection... [09:21:38] Sock 8.Parse request [09:21:38]Sock 8.Check first char [09:21:38]Sock 8.First char is OK [09:21:38]request: POST /json_proto HTTP/1.0 [09:21:38]Method: POST [09:21:38]URL: /json_proto [09:21:38]Method is POST - this is cgi request [09:21:38]url: /json_proto [09:21:38]query_string will be loaded in cgi processing [09:21:38]execute_cgi json_proto POST (null) [09:21:38]execute_cgi path=json_proto method=POST [09:21:38]POST find Content-Length [09:21:38]Host: 172.17.56.4:8080 [09:21:38]Content-Length: 677 [09:21:38]Content-Type: application/json [09:21:38] [09:21:38]POST finish read [09:21:38]Found Content-Length = 677 [09:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:38]execute_script... [09:21:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:38]POST & json_proto [09:21:38]process_json_proto [09:21:38]json parsed OK: [09:21:38]protocol is kg_v1.0 [09:21:38]action value=close_receipt [09:21:38]process_action close_receipt [09:21:38]cmd_close_receipt [09:21:38]MH_GetDate [09:21:38]Write to MH i2c: F0 00 00 98 06 8D [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 09 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 09 00 98 06 00 A3 F5 90 66 C9 DC B2 64 DF [09:21:38]GetLastDocTimeStamp 1720776040 [09:21:38]current date 1720776099 [09:21:38]FM_GetShiftState [09:21:38]SAM_PROTO_GetShiftState [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 13 01 00 [09:21:38]Write to MH i2c: E2 08 00 99 06 80 13 01 00 00 00 00 00 1C [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:38]Read from MH i2c: E2 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 0E 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 0E 00 99 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 66 [09:21:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:21:38]wFMCommunicate OK [09:21:38]SAM_PROTO_GetShiftState done [09:21:38]FM_GetShiftState done [09:21:38]opened in 1720744654 [09:21:38]opened+sec_in_day 1720831054 [09:21:38]quantity*price = 50008 [09:21:38]sum+1 = 50009 [09:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 37 12.07.2024 09:21 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164116 ФПД: 142624974214592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092139&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164116&fm=142624974214592&tin=02508201610067®Number=0000000000090829&sum=50000 [09:21:40]StoreToDocumentArchive [09:21:40]shift 445 fd 164116 [09:21:40]save to /storage/0445/doc_00164116 [09:21:40]save last doc name /storage/0445/doc_00164116 to /storage/kkm_last_doc_name [09:21:40]save OK [09:21:40]Clear old archive folders... [09:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:40]tlvbuf is 00D1AE00 [09:21:40]SAM_PROTO_ClearQueue [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 09 00 00 [09:21:40]Write to MH i2c: E2 08 00 A6 06 80 09 00 00 00 00 00 00 1E [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 A6 06 00 90 00 20 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]SAM_PROTO_ClearQueue done [09:21:40]KKMCreateOFDPacket [09:21:40]OFDProtocolAddRootSTLVToBuf [09:21:40]FM_MakeSignedData [09:21:40]FM_MakeSignedData [09:21:40]SAM_PROTO_SignData [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 01 02 [09:21:40]Write to MH i2c: E2 08 00 A7 06 80 0D 01 02 00 00 00 00 26 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=255 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 25 00 00 00 F4 03 04 00 A3 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 81 02 00 35 04 06 00 81 [09:21:40]Write to MH i2c: E2 02 01 A8 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 25 00 00 00 F4 03 04 00 A3 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 81 02 00 35 04 06 00 81 00 00 28 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=10 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 02 02 05 B7 76 EC 95 C0 [09:21:40]Write to MH i2c: E2 0D 00 A9 06 80 0D 02 02 05 00 B7 76 EC 95 C0 00 00 A1 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 A9 06 00 90 00 23 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 03 02 [09:21:40]Write to MH i2c: E2 08 00 AA 06 80 0D 03 02 00 00 00 00 2B [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0B 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0B 00 AA 06 00 E2 2B 6A 16 02 70 00 DA 90 00 05 [09:21:40]RAPDU: E2 2B 6A 16 02 70 00 DA 90 00 [09:21:40]wFMCommunicate OK [09:21:40]SAM_PROTO_SignData done [09:21:40]FM_MakeSignedData done [09:21:40]CreateOFDProtocolMessage [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 11 00 00 [09:21:40]Write to MH i2c: E2 08 00 AB 06 80 11 00 00 00 00 00 00 2B [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 17 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 17 00 AB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [09:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:21:40]wFMCommunicate OK [09:21:40]CreateOFDProtocolMessage done [09:21:40]OFDSenderStorePacket 164116 [09:21:40]StoreOFDPacket docnum=164116 [09:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4E 6C 07 01 C9 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 25 00 00 00 F4 03 04 00 A3 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 81 02 00 35 04 06 00 81 B7 76 EC 95 C0 E2 2B 6A 16 02 70 00 DA [09:21:40]CheckFolder [09:21:40]dirname=/storage/ofd_packets [09:21:40]CheckFolder done [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00164116 [09:21:40]NVStorageSaveData ofd_packets/00164116 [09:21:40]File name is /storage/ofd_packets/00164116 [09:21:40]Write 301 bytes [09:21:40]NVStorageSaveData done [09:21:40]OFDSenderStorePacket done [09:21:40]KKMCreateOFDPacket done [09:21:40]NVStorageSaveData kkm_last_timestamp [09:21:40]File name is /storage/kkm_last_timestamp [09:21:40]Write 4 bytes [09:21:40]NVStorageSaveData done [09:21:40]OFD Sender: Processing packet 164116 [packets to send 104, broken 103] [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00164116 [09:21:40]OFD Sender: To server: pG, [09:21:40]CommunicateWithHost lk.salyk.kg:30040 [09:21:40]ConnectInit lk.salyk.kg [09:21:40]ExternCall_PrintAddStr [09:21:40]wPrintStart [09:21:40]Write to MH i2c: 01 00 00 AC 06 B2 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [09:21:40]RasterBufferAndPrint [09:21:40]line Счет N : (1)458194 [09:21:40]line ИНН: 02508201610067 [09:21:40]line Контрольно-Кассовый Чек [09:21:40]line ПРОДАЖА [09:21:40]line ТРК (МРК, ГНК) : 12 [09:21:40]line Товар: 2710124130 [09:21:40]line Аи-92-К-5 [09:21:40]line 7.600 * 65.80 [09:21:40]line = 500.08 [09:21:40]line НДС 12% НСП 1% [09:21:40]line > о реализуемом товаре [09:21:40]line ОКРУГЛЕНИЕ: -0.08 [09:21:40]line ИТОГО: 500.00 [09:21:40]line Внесено: 500.00 [09:21:40]line СДАЧА: 0.00 [09:21:40]line НСП 1% : 4.42 [09:21:40]line НДС 12% : 53.11 [09:21:40]line Наличными: 500.00 [09:21:40]line Безнал.: 0.00 [09:21:40]line Место: АЗС № 72 "Партнер Нефть" [09:21:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:21:40]line СНО: Общий режим [09:21:40]line Чек 37 12.07.2024 09:21 [09:21:40]line Смена: 445 ФФД: 1.0 [09:21:40]line ЗНМ: 0300000160 [09:21:40]line РНМ: 0000000000090829 [09:21:40]line Версия ККМ: 001 [09:21:40]line ФМ: 0000000000874718 [09:21:40]line ФД: 164116 [09:21:40]line ФПД: 142624974214592 [09:21:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092139&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164116&fm=142624974214592&tin=02508201610067®Number=0000000000090829&sum=50000 [09:21:40]Connected sock=11 [09:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4E 6C 07 01 C9 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 25 00 00 00 F4 03 04 00 A3 F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 81 02 00 35 04 06 00 81 B7 76 EC 95 C0 E2 2B 6A 16 02 70 00 DA [09:21:40]written 0, free lines is 4095 [09:21:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2F 4A 47 00 F9 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 34 37 31 38 10 04 04 00 14 81 02 00 F4 03 04 00 38 9C 90 66 B6 04 01 00 00 75 CA 5C 72 C9 12 9F F3 [09:21:41]CommunicateWithHost err = 0 [09:21:41]CheckOFDResponse [09:21:41]1017 (14) - 77093643461234 [09:21:41]1041 (16) - 0000000000874718 [09:21:41]1040 (4) - 164116 [09:21:41]1012 (4) - 12.07.2024 03:00 [09:21:41]1206 (1) - 0 [09:21:41]OFD Sender: Remove packet 164116 [09:21:41]ProducePacketName [09:21:41]name=ofd_packets/00164116 [09:21:41]NVStorageDeleteData [09:21:41]Write to MH i2c: 01 00 00 D6 06 DC [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 07 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 07 00 D6 06 00 00 00 00 00 EF 0C DE [09:21:41]RasterBufferAndPrint [09:21:41]line [09:21:41]line [09:21:41]line [09:21:41]line [09:21:41]line [09:21:41]written 0, free lines is 3317 [09:21:41]MH_Cut [09:21:41]Write to MH i2c: D1 01 00 DD 06 01 B5 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: D1 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: D1 01 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: D1 01 00 DD 06 00 B4 [09:21:41]Write to MH i2c: 01 00 00 DE 06 E4 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]OFD Sender: No OFD packet to send [09:21:42]*** Cut start [09:21:42]*** Partial cut [09:21:42]*** CUTSNS_PIN = 1 [09:21:42]*** CUTSNS_PIN = 0 [09:21:42]*** Brake cut motor [09:21:42]Read from MH i2c: 01 [09:21:42]MH_I2C_Read... [09:21:42]*** Stop cut motor [09:21:42]*** Cut end [09:21:42]Read from MH i2c: 01 07 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: 01 07 00 DE 06 00 00 00 00 00 FF 0F F9 [09:21:42]process_action close_receipt done [09:21:42]requested_data is exist [09:21:42]produce_requested_data [09:21:42]requested_item fm.sn is exist - process it [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 11 00 00 [09:21:42]Write to MH i2c: E2 08 00 DF 06 80 11 00 00 00 00 00 00 5F [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 DF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B5 [09:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:21:42]wFMCommunicate OK [09:21:42]requested_item fd.num is exist - process it [09:21:42]SAM_PROTO_GetFieldsCounters [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 13 00 00 [09:21:42]Write to MH i2c: E2 08 00 E0 06 80 13 00 00 00 00 00 00 62 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 62 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 62 00 E0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [09:21:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:42]wFMCommunicate OK [09:21:42]SAM_PROTO_GetFieldsCounters done [09:21:42]requested_item shift.num is exist - process it [09:21:42]requested_item shift.opened is exist - process it [09:21:42]req_shift_opened [09:21:42]FM_GetShiftState [09:21:42]SAM_PROTO_GetShiftState [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 13 01 00 [09:21:42]Write to MH i2c: E2 08 00 E1 06 80 13 01 00 00 00 00 00 64 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0E 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0E 00 E1 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AE [09:21:42]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:21:42]wFMCommunicate OK [09:21:42]SAM_PROTO_GetShiftState done [09:21:42]FM_GetShiftState done [09:21:42]req_shift_opened done [09:21:42]requested_item shift.open_date is exist - process it [09:21:42]req_shift_open_date [09:21:42]req_shift_open_date done [09:21:42]produce_requested_data done [09:21:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164116,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:21:42]process_action_free close_receipt [09:21:42]json_value_free [09:21:42]json_value_free done [09:21:42]process_json_proto returns [09:21:42]Send response to host [09:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164116,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:21:42]free response buf [09:21:42]execute_script done [09:21:42]execute_script returns [09:21:42]free content buf [09:21:42]Sock 8.Close socket [09:21:42]Sock 8.Thread stoped [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:37]accept exits with 9 [09:22:37]New connection [09:22:37]New thread 3066711396 created [09:22:37]Thread 3066568036 joined [09:22:37]Waiting for new connection... [09:22:37] Sock 9.Parse request [09:22:37]Sock 9.Check first char [09:22:37]Sock 9.First char is OK [09:22:37]request: POST /json_proto HTTP/1.0 [09:22:37]Method: POST [09:22:37]URL: /json_proto [09:22:37]Method is POST - this is cgi request [09:22:37]url: /json_proto [09:22:37]query_string will be loaded in cgi processing [09:22:37]execute_cgi json_proto POST (null) [09:22:37]execute_cgi path=json_proto method=POST [09:22:37]POST find Content-Length [09:22:37]Host: 172.17.56.4:8080 [09:22:37]Content-Length: 678 [09:22:37]Content-Type: application/json [09:22:37] [09:22:37]POST finish read [09:22:37]Found Content-Length = 678 [09:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:37]execute_script... [09:22:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:37]POST & json_proto [09:22:37]process_json_proto [09:22:37]json parsed OK: [09:22:37]protocol is kg_v1.0 [09:22:37]action value=close_receipt [09:22:37]process_action close_receipt [09:22:37]cmd_close_receipt [09:22:37]MH_GetDate [09:22:37]Write to MH i2c: F0 00 00 E2 06 D7 [09:22:37]Write i2c OK [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: F0 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: F0 09 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: F0 09 00 E2 06 00 DE F5 90 66 C9 DC B2 64 64 [09:22:37]GetLastDocTimeStamp 1720776099 [09:22:37]current date 1720776158 [09:22:37]FM_GetShiftState [09:22:37]SAM_PROTO_GetShiftState [09:22:37]wFMCommunicate request_size=4 [09:22:37]MH_SAM_APDU [09:22:37]CAPDU: 80 13 01 00 [09:22:37]Write to MH i2c: E2 08 00 E3 06 80 13 01 00 00 00 00 00 66 [09:22:37]Write i2c OK [09:22:37]MH_I2C_Read... [09:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:37]Read from MH i2c: E2 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 0E 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 0E 00 E3 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B0 [09:22:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:22:37]wFMCommunicate OK [09:22:37]SAM_PROTO_GetShiftState done [09:22:37]FM_GetShiftState done [09:22:37]opened in 1720744654 [09:22:37]opened+sec_in_day 1720831054 [09:22:37]quantity*price = 66063 [09:22:37]sum+1 = 66064 [09:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 38 12.07.2024 09:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164117 ФПД: 107981470992937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092238&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164117&fm=107981470992937&tin=02508201610067®Number=0000000000090829&sum=66000 [09:22:39]StoreToDocumentArchive [09:22:39]shift 445 fd 164117 [09:22:39]save to /storage/0445/doc_00164117 [09:22:39]save last doc name /storage/0445/doc_00164117 to /storage/kkm_last_doc_name [09:22:39]save OK [09:22:39]Clear old archive folders... [09:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:39]tlvbuf is 00D49BD0 [09:22:39]SAM_PROTO_ClearQueue [09:22:39]wFMCommunicate request_size=4 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 09 00 00 [09:22:39]Write to MH i2c: E2 08 00 F0 06 80 09 00 00 00 00 00 00 68 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 F0 06 00 90 00 6A [09:22:39]RAPDU: 90 00 [09:22:39]wFMCommunicate OK [09:22:39]SAM_PROTO_ClearQueue done [09:22:39]KKMCreateOFDPacket [09:22:39]OFDProtocolAddRootSTLVToBuf [09:22:39]FM_MakeSignedData [09:22:39]FM_MakeSignedData [09:22:39]SAM_PROTO_SignData [09:22:39]wFMCommunicate request_size=4 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 0D 01 02 [09:22:39]Write to MH i2c: E2 08 00 F1 06 80 0D 01 02 00 00 00 00 70 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 F1 06 00 90 00 6B [09:22:39]RAPDU: 90 00 [09:22:39]wFMCommunicate OK [09:22:39]wFMCommunicate request_size=255 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 DE F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 81 02 00 35 04 06 00 62 [09:22:39]Write to MH i2c: E2 02 01 F2 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 DE F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 81 02 00 35 04 06 00 62 00 00 D6 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 F2 06 00 90 00 6C [09:22:39]RAPDU: 90 00 [09:22:39]wFMCommunicate OK [09:22:39]wFMCommunicate request_size=10 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 0D 02 02 05 35 65 38 8A 29 [09:22:39]Write to MH i2c: E2 0D 00 F3 06 80 0D 02 02 05 00 35 65 38 8A 29 00 00 02 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 F3 06 00 90 00 6D [09:22:39]RAPDU: 90 00 [09:22:39]wFMCommunicate OK [09:22:39]wFMCommunicate request_size=4 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 0D 03 02 [09:22:39]Write to MH i2c: E2 08 00 F4 06 80 0D 03 02 00 00 00 00 75 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 0B 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 0B 00 F4 06 00 10 9B D8 21 27 36 4C 8D 90 00 50 [09:22:39]RAPDU: 10 9B D8 21 27 36 4C 8D 90 00 [09:22:39]wFMCommunicate OK [09:22:39]SAM_PROTO_SignData done [09:22:39]FM_MakeSignedData done [09:22:39]CreateOFDProtocolMessage [09:22:39]wFMCommunicate request_size=4 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 11 00 00 [09:22:39]Write to MH i2c: E2 08 00 F5 06 80 11 00 00 00 00 00 00 75 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 17 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 17 00 F5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [09:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:22:39]wFMCommunicate OK [09:22:39]CreateOFDProtocolMessage done [09:22:39]OFDSenderStorePacket 164117 [09:22:39]StoreOFDPacket docnum=164117 [09:22:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A A7 07 01 42 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 DE F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 81 02 00 35 04 06 00 62 35 65 38 8A 29 10 9B D8 21 27 36 4C 8D [09:22:39]CheckFolder [09:22:39]dirname=/storage/ofd_packets [09:22:39]CheckFolder done [09:22:39]ProducePacketName [09:22:39]name=ofd_packets/00164117 [09:22:39]NVStorageSaveData ofd_packets/00164117 [09:22:39]File name is /storage/ofd_packets/00164117 [09:22:39]Write 301 bytes [09:22:39]NVStorageSaveData done [09:22:39]OFDSenderStorePacket done [09:22:39]KKMCreateOFDPacket done [09:22:39]NVStorageSaveData kkm_last_timestamp [09:22:39]File name is /storage/kkm_last_timestamp [09:22:39]Write 4 bytes [09:22:39]NVStorageSaveData done [09:22:39]ExternCall_PrintAddStr [09:22:39]wPrintStart [09:22:39]Write to MH i2c: 01 00 00 F6 06 FC [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: 01 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: 01 07 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 FF 0F 11 [09:22:39]RasterBufferAndPrint [09:22:39]line Счет N : (1)458195 [09:22:39]line ИНН: 02508201610067 [09:22:39]line Контрольно-Кассовый Чек [09:22:39]line ПРОДАЖА [09:22:39]line ТРК (МРК, ГНК) : 22 [09:22:39]line Товар: 2710124130 [09:22:39]line Аи-92-К-5 [09:22:39]line 10.040 * 65.80 [09:22:39]line = 660.63 [09:22:39]line НДС 12% НСП 1% [09:22:39]line > о реализуемом товаре [09:22:39]line ОКРУГЛЕНИЕ: -0.63 [09:22:39]line ИТОГО: 660.00 [09:22:39]line Внесено: 660.00 [09:22:39]line СДАЧА: 0.00 [09:22:39]line НСП 1% : 5.85 [09:22:39]line НДС 12% : 70.15 [09:22:39]line Наличными: 660.00 [09:22:39]line Безнал.: 0.00 [09:22:39]line Место: АЗС № 72 "Партнер Нефть" [09:22:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:22:39]line СНО: Общий режим [09:22:39]line Чек 38 12.07.2024 09:22 [09:22:39]line Смена: 445 ФФД: 1.0 [09:22:39]line ЗНМ: 0300000160 [09:22:39]line РНМ: 0000000000090829 [09:22:39]line Версия ККМ: 001 [09:22:39]line ФМ: 0000000000874718 [09:22:39]line ФД: 164117 [09:22:39]line ФПД: 107981470992937 [09:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092238&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164117&fm=107981470992937&tin=02508201610067®Number=0000000000090829&sum=66000 [09:22:39]written 0, free lines is 4095 [09:22:39]OFD Sender: Processing packet 164117 [packets to send 104, broken 103] [09:22:39]ProducePacketName [09:22:39]name=ofd_packets/00164117 [09:22:39]OFD Sender: To server: pG, [09:22:39]CommunicateWithHost lk.salyk.kg:30040 [09:22:39]ConnectInit lk.salyk.kg [09:22:40]Connected sock=10 [09:22:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A A7 07 01 42 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 DE F5 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 81 02 00 35 04 06 00 62 35 65 38 8A 29 10 9B D8 21 27 36 4C 8D [09:22:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 14 F3 47 00 10 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 81 02 00 F4 03 04 00 73 9C 90 66 B6 04 01 00 00 EF 94 94 92 F3 A9 D7 57 [09:22:40]CommunicateWithHost err = 0 [09:22:40]CheckOFDResponse [09:22:40]1017 (14) - 77093643461234 [09:22:40]1041 (16) - 0000000000874718 [09:22:40]1040 (4) - 164117 [09:22:40]1012 (4) - 12.07.2024 03:01 [09:22:40]1206 (1) - 0 [09:22:40]OFD Sender: Remove packet 164117 [09:22:40]ProducePacketName [09:22:40]name=ofd_packets/00164117 [09:22:40]NVStorageDeleteData [09:22:40]Write to MH i2c: 01 00 00 20 07 27 [09:22:40]Write i2c OK [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: 01 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: 01 07 00 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 F6 0C 30 [09:22:40]RasterBufferAndPrint [09:22:40]line [09:22:40]line [09:22:40]line [09:22:40]line [09:22:40]line [09:22:40]written 0, free lines is 3324 [09:22:40]MH_Cut [09:22:40]Write to MH i2c: D1 01 00 27 07 01 00 [09:22:40]Write i2c OK [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: D1 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: D1 01 00 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: D1 01 00 27 07 00 FF [09:22:40]Write to MH i2c: 01 00 00 28 07 2F [09:22:40]Write i2c OK [09:22:40]MH_I2C_Read... [09:22:40]OFD Sender: No OFD packet to send [09:22:41]*** Cut start [09:22:41]*** Partial cut [09:22:41]*** CUTSNS_PIN = 1 [09:22:41]*** CUTSNS_PIN = 0 [09:22:41]*** Brake cut motor [09:22:41]Read from MH i2c: 01 [09:22:41]MH_I2C_Read... [09:22:41]*** Stop cut motor [09:22:41]*** Cut end [09:22:41]Read from MH i2c: 01 07 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [09:22:41]process_action close_receipt done [09:22:41]requested_data is exist [09:22:41]produce_requested_data [09:22:41]requested_item fm.sn is exist - process it [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 11 00 00 [09:22:41]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 17 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [09:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:22:41]wFMCommunicate OK [09:22:41]requested_item fd.num is exist - process it [09:22:41]SAM_PROTO_GetFieldsCounters [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 13 00 00 [09:22:41]Write to MH i2c: E2 08 00 2A 07 80 13 00 00 00 00 00 00 AD [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 62 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 62 00 2A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [09:22:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:41]wFMCommunicate OK [09:22:41]SAM_PROTO_GetFieldsCounters done [09:22:41]requested_item shift.num is exist - process it [09:22:41]requested_item shift.opened is exist - process it [09:22:41]req_shift_opened [09:22:41]FM_GetShiftState [09:22:41]SAM_PROTO_GetShiftState [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 13 01 00 [09:22:41]Write to MH i2c: E2 08 00 2B 07 80 13 01 00 00 00 00 00 AF [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 0E 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 0E 00 2B 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F9 [09:22:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:22:41]wFMCommunicate OK [09:22:41]SAM_PROTO_GetShiftState done [09:22:41]FM_GetShiftState done [09:22:41]req_shift_opened done [09:22:41]requested_item shift.open_date is exist - process it [09:22:41]req_shift_open_date [09:22:41]req_shift_open_date done [09:22:41]produce_requested_data done [09:22:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164117,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:22:41]process_action_free close_receipt [09:22:41]json_value_free [09:22:41]json_value_free done [09:22:41]process_json_proto returns [09:22:41]Send response to host [09:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164117,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:22:41]free response buf [09:22:41]execute_script done [09:22:41]execute_script returns [09:22:41]free content buf [09:22:41]Sock 9.Close socket [09:22:41]Sock 9.Thread stoped [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:46]accept exits with 8 [09:25:46]New connection [09:25:46]New thread 3066568036 created [09:25:46]Thread 3066711396 joined [09:25:46]Waiting for new connection... [09:25:46] Sock 8.Parse request [09:25:46]Sock 8.Check first char [09:25:46]Sock 8.First char is OK [09:25:46]request: POST /json_proto HTTP/1.0 [09:25:46]Method: POST [09:25:46]URL: /json_proto [09:25:46]Method is POST - this is cgi request [09:25:46]url: /json_proto [09:25:46]query_string will be loaded in cgi processing [09:25:46]execute_cgi json_proto POST (null) [09:25:46]execute_cgi path=json_proto method=POST [09:25:46]POST find Content-Length [09:25:46]Host: 172.17.56.4:8080 [09:25:46]Content-Length: 840 [09:25:46]Content-Type: application/json [09:25:46] [09:25:46]POST finish read [09:25:46]Found Content-Length = 840 [09:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:46]execute_script... [09:25: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)458196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:46]POST & json_proto [09:25:46]process_json_proto [09:25:46]json parsed OK: [09:25:46]protocol is kg_v1.0 [09:25:46]action value=close_receipt [09:25:46]process_action close_receipt [09:25:46]cmd_close_receipt [09:25:46]MH_GetDate [09:25:46]Write to MH i2c: F0 00 00 2C 07 22 [09:25:46]Write i2c OK [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: F0 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: F0 09 00 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: F0 09 00 2C 07 00 9B F6 90 66 C9 DC B2 64 6D [09:25:46]GetLastDocTimeStamp 1720776158 [09:25:46]current date 1720776347 [09:25:46]FM_GetShiftState [09:25:46]SAM_PROTO_GetShiftState [09:25:46]wFMCommunicate request_size=4 [09:25:46]MH_SAM_APDU [09:25:46]CAPDU: 80 13 01 00 [09:25:46]Write to MH i2c: E2 08 00 2D 07 80 13 01 00 00 00 00 00 B1 [09:25:46]Write i2c OK [09:25:46]MH_I2C_Read... [09:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:46]Read from MH i2c: E2 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 0E 00 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 0E 00 2D 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FB [09:25:46]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:25:46]wFMCommunicate OK [09:25:46]SAM_PROTO_GetShiftState done [09:25:46]FM_GetShiftState done [09:25:46]opened in 1720744654 [09:25:46]opened+sec_in_day 1720831054 [09:25:46]quantity*price = 50023 [09:25:46]sum+1 = 50025 [09:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 39 12.07.2024 09:25 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164118 ФПД: 3525801452389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092547&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164118&fm=3525801452389&tin=02508201610067®Number=0000000000090829&sum=50024 [09:25:47]StoreToDocumentArchive [09:25:47]shift 445 fd 164118 [09:25:47]save to /storage/0445/doc_00164118 [09:25:47]save last doc name /storage/0445/doc_00164118 to /storage/kkm_last_doc_name [09:25:47]save OK [09:25:47]Clear old archive folders... [09:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:47]tlvbuf is 00D346E0 [09:25:47]SAM_PROTO_ClearQueue [09:25:47]wFMCommunicate request_size=4 [09:25:47]MH_SAM_APDU [09:25:47]CAPDU: 80 09 00 00 [09:25:47]Write to MH i2c: E2 08 00 3A 07 80 09 00 00 00 00 00 00 B3 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:47]Read from MH i2c: E2 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 3A 07 00 90 00 B5 [09:25:47]RAPDU: 90 00 [09:25:47]wFMCommunicate OK [09:25:47]SAM_PROTO_ClearQueue done [09:25:47]KKMCreateOFDPacket [09:25:47]OFDProtocolAddRootSTLVToBuf [09:25:47]FM_MakeSignedData [09:25:47]FM_MakeSignedData [09:25:47]SAM_PROTO_SignData [09:25:47]wFMCommunicate request_size=4 [09:25:47]MH_SAM_APDU [09:25:47]CAPDU: 80 0D 01 02 [09:25:47]Write to MH i2c: E2 08 00 3B 07 80 0D 01 02 00 00 00 00 BB [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:47]Read from MH i2c: E2 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [09:25:47]RAPDU: 90 00 [09:25:47]wFMCommunicate OK [09:25:47]wFMCommunicate request_size=255 [09:25:47]MH_SAM_APDU [09:25: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B F6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 81 02 00 35 04 06 00 03 [09:25:47]Write to MH i2c: E2 02 01 3C 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B F6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 81 02 00 35 04 06 00 03 00 00 8A [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 3C 07 00 90 00 B7 [09:25:48]RAPDU: 90 00 [09:25:48]wFMCommunicate OK [09:25:48]wFMCommunicate request_size=10 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 0D 02 02 05 34 EA 24 A3 65 [09:25:48]Write to MH i2c: E2 0D 00 3D 07 80 0D 02 02 05 00 34 EA 24 A3 65 00 00 12 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 3D 07 00 90 00 B8 [09:25:48]RAPDU: 90 00 [09:25:48]wFMCommunicate OK [09:25:48]wFMCommunicate request_size=4 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 0D 03 02 [09:25:48]Write to MH i2c: E2 08 00 3E 07 80 0D 03 02 00 00 00 00 C0 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 0B 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 0B 00 3E 07 00 A5 66 33 D1 D8 65 3E 98 90 00 E3 [09:25:48]RAPDU: A5 66 33 D1 D8 65 3E 98 90 00 [09:25:48]wFMCommunicate OK [09:25:48]SAM_PROTO_SignData done [09:25:48]FM_MakeSignedData done [09:25:48]CreateOFDProtocolMessage [09:25:48]wFMCommunicate request_size=4 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 11 00 00 [09:25:48]Write to MH i2c: E2 08 00 3F 07 80 11 00 00 00 00 00 00 C0 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 17 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 17 00 3F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [09:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:25:48]wFMCommunicate OK [09:25:48]CreateOFDProtocolMessage done [09:25:48]OFDSenderStorePacket 164118 [09:25:48]StoreOFDPacket docnum=164118 [09:25:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A3 27 07 01 27 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B F6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 81 02 00 35 04 06 00 03 34 EA 24 A3 65 A5 66 33 D1 D8 65 3E 98 [09:25:48]CheckFolder [09:25:48]dirname=/storage/ofd_packets [09:25:48]CheckFolder done [09:25:48]ProducePacketName [09:25:48]name=ofd_packets/00164118 [09:25:48]NVStorageSaveData ofd_packets/00164118 [09:25:48]File name is /storage/ofd_packets/00164118 [09:25:48]Write 301 bytes [09:25:48]NVStorageSaveData done [09:25:48]OFDSenderStorePacket done [09:25:48]KKMCreateOFDPacket done [09:25:48]NVStorageSaveData kkm_last_timestamp [09:25:48]File name is /storage/kkm_last_timestamp [09:25:48]Write 4 bytes [09:25:48]NVStorageSaveData done [09:25:48]ExternCall_PrintAddStr [09:25:48]wPrintStart [09:25:48]Write to MH i2c: 01 00 00 40 07 47 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 07 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 07 00 40 07 00 00 00 00 00 FF 0F 5C [09:25:48]RasterBufferAndPrint [09:25:48]line Счет N : (1)458196 [09:25:48]line ИНН: 02508201610067 [09:25:48]line Контрольно-Кассовый Чек [09:25:48]line ПРОДАЖА [09:25:48]line ТРК (МРК, ГНК) : 22 [09:25:48]line Товар: 2710124130 [09:25:48]line Аи-92-К-5 [09:25:48]line 7.670 * 65.22 [09:25:48]line = 500.24 [09:25:48]line НДС 12% НСП 1% [09:25:48]line > о реализуемом товаре [09:25:48]line ИТОГО: 500.24 [09:25:48]line НСП 1% : 4.43 [09:25:48]line НДС 12% : 53.12 [09:25:48]line Наличными: 0.00 [09:25:48]line Безнал.: 500.24 [09:25:48]line Место: АЗС № 72 "Партнер Нефть" [09:25:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:25:48]line СНО: Общий режим [09:25:48]line Чек 39 12.07.2024 09:25 [09:25:48]line Смена: 445 ФФД: 1.0 [09:25:48]line ЗНМ: 0300000160 [09:25:48]line РНМ: 0000000000090829 [09:25:48]line Версия ККМ: 001 [09:25:48]line Платежная система: АКБ Кыргызстан [09:25:48]line ФМ: 0000000000874718 [09:25:48]line ФД: 164118 [09:25:48]line ФПД: 3525801452389 [09:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092547&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164118&fm=3525801452389&tin=02508201610067®Number=0000000000090829&sum=50024 [09:25:48]written 0, free lines is 4095 [09:25:48]OFD Sender: Processing packet 164118 [packets to send 104, broken 103] [09:25:48]ProducePacketName [09:25:48]name=ofd_packets/00164118 [09:25:48]OFD Sender: To server: pG, [09:25:48]CommunicateWithHost lk.salyk.kg:30040 [09:25:48]ConnectInit lk.salyk.kg [09:25:48]Connected sock=10 [09:25:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A3 27 07 01 27 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B F6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 81 02 00 35 04 06 00 03 34 EA 24 A3 65 A5 66 33 D1 D8 65 3E 98 [09:25:48]Write to MH i2c: 01 00 00 69 07 70 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 07 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 07 00 69 07 00 00 00 00 00 0E 0D 92 [09:25:48]RasterBufferAndPrint [09:25:48]line [09:25:48]line [09:25:48]line [09:25:48]line [09:25:48]line [09:25:48]written 0, free lines is 3348 [09:25:48]MH_Cut [09:25:48]Write to MH i2c: D1 01 00 70 07 01 49 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: D1 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: D1 01 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: D1 01 00 70 07 00 48 [09:25:48]Write to MH i2c: 01 00 00 71 07 78 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B 50 47 00 79 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 34 37 31 38 10 04 04 00 16 81 02 00 F4 03 04 00 30 9D 90 66 B6 04 01 00 00 82 C1 DE C9 21 D7 FB 1A [09:25:49]CommunicateWithHost err = 0 [09:25:49]CheckOFDResponse [09:25:49]1017 (14) - 77093643461234 [09:25:49]1041 (16) - 0000000000874718 [09:25:49]1040 (4) - 164118 [09:25:49]1012 (4) - 12.07.2024 03:04 [09:25:49]1206 (1) - 0 [09:25:49]OFD Sender: Remove packet 164118 [09:25:49]ProducePacketName [09:25:49]name=ofd_packets/00164118 [09:25:49]NVStorageDeleteData [09:25:49]*** Cut start [09:25:49]*** Partial cut [09:25:49]*** CUTSNS_PIN = 1 [09:25:49]*** CUTSNS_PIN = 0 [09:25:49]OFD Sender: No OFD packet to send [09:25:49]*** Brake cut motor [09:25:50]Read from MH i2c: 01 [09:25:50]MH_I2C_Read... [09:25:50]*** Stop cut motor [09:25:50]*** Cut end [09:25:50]Read from MH i2c: 01 07 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 FF 0F 8D [09:25:50]process_action close_receipt done [09:25:50]requested_data is exist [09:25:50]produce_requested_data [09:25:50]requested_item fm.sn is exist - process it [09:25:50]wFMCommunicate request_size=4 [09:25:50]MH_SAM_APDU [09:25:50]CAPDU: 80 11 00 00 [09:25:50]Write to MH i2c: E2 08 00 72 07 80 11 00 00 00 00 00 00 F3 [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:50]Read from MH i2c: E2 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 17 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 17 00 72 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [09:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:25:50]wFMCommunicate OK [09:25:50]requested_item fd.num is exist - process it [09:25:50]SAM_PROTO_GetFieldsCounters [09:25:50]wFMCommunicate request_size=4 [09:25:50]MH_SAM_APDU [09:25:50]CAPDU: 80 13 00 00 [09:25:50]Write to MH i2c: E2 08 00 73 07 80 13 00 00 00 00 00 00 F6 [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:50]Read from MH i2c: E2 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 62 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 62 00 73 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [09:25: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:50]wFMCommunicate OK [09:25:50]SAM_PROTO_GetFieldsCounters done [09:25:50]requested_item shift.num is exist - process it [09:25:50]requested_item shift.opened is exist - process it [09:25:50]req_shift_opened [09:25:50]FM_GetShiftState [09:25:50]SAM_PROTO_GetShiftState [09:25:50]wFMCommunicate request_size=4 [09:25:50]MH_SAM_APDU [09:25:50]CAPDU: 80 13 01 00 [09:25:50]Write to MH i2c: E2 08 00 74 07 80 13 01 00 00 00 00 00 F8 [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:50]Read from MH i2c: E2 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 0E 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 0E 00 74 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 42 [09:25:50]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:25:50]wFMCommunicate OK [09:25:50]SAM_PROTO_GetShiftState done [09:25:50]FM_GetShiftState done [09:25:50]req_shift_opened done [09:25:50]requested_item shift.open_date is exist - process it [09:25:50]req_shift_open_date [09:25:50]req_shift_open_date done [09:25:50]produce_requested_data done [09:25:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164118,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:25:50]process_action_free close_receipt [09:25:50]json_value_free [09:25:50]json_value_free done [09:25:50]process_json_proto returns [09:25:50]Send response to host [09:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164118,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:25:50]free response buf [09:25:50]execute_script done [09:25:50]execute_script returns [09:25:50]free content buf [09:25:50]Sock 8.Close socket [09:25:50]Sock 8.Thread stoped [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:22]accept exits with 9 [09:26:22]New connection [09:26:22]New thread 3066711396 created [09:26:22]Thread 3066568036 joined [09:26:22]Waiting for new connection... [09:26:22] Sock 9.Parse request [09:26:22]Sock 9.Check first char [09:26:22]Sock 9.First char is OK [09:26:22]request: POST /json_proto HTTP/1.0 [09:26:22]Method: POST [09:26:22]URL: /json_proto [09:26:22]Method is POST - this is cgi request [09:26:22]url: /json_proto [09:26:22]query_string will be loaded in cgi processing [09:26:22]execute_cgi json_proto POST (null) [09:26:22]execute_cgi path=json_proto method=POST [09:26:22]POST find Content-Length [09:26:22]Host: 172.17.56.4:8080 [09:26:22]Content-Length: 679 [09:26:22]Content-Type: application/json [09:26:22] [09:26:22]POST finish read [09:26:22]Found Content-Length = 679 [09:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:22]execute_script... [09:26:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:22]POST & json_proto [09:26:22]process_json_proto [09:26:22]json parsed OK: [09:26:22]protocol is kg_v1.0 [09:26:22]action value=close_receipt [09:26:22]process_action close_receipt [09:26:22]cmd_close_receipt [09:26:22]MH_GetDate [09:26:22]Write to MH i2c: F0 00 00 75 07 6B [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: F0 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: F0 09 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: F0 09 00 75 07 00 BE F6 90 66 C9 DC B2 64 D9 [09:26:22]GetLastDocTimeStamp 1720776347 [09:26:22]current date 1720776382 [09:26:22]FM_GetShiftState [09:26:22]SAM_PROTO_GetShiftState [09:26:22]wFMCommunicate request_size=4 [09:26:22]MH_SAM_APDU [09:26:22]CAPDU: 80 13 01 00 [09:26:22]Write to MH i2c: E2 08 00 76 07 80 13 01 00 00 00 00 00 FA [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:22]Read from MH i2c: E2 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 0E 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 0E 00 76 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 44 [09:26:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:26:22]wFMCommunicate OK [09:26:22]SAM_PROTO_GetShiftState done [09:26:22]FM_GetShiftState done [09:26:22]opened in 1720744654 [09:26:22]opened+sec_in_day 1720831054 [09:26:22]quantity*price = 150055 [09:26:22]sum+1 = 150056 [09:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 40 12.07.2024 09:26 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164119 ФПД: 108887165469867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164119&fm=108887165469867&tin=02508201610067®Number=0000000000090829&sum=150000 [09:26:23]StoreToDocumentArchive [09:26:23]shift 445 fd 164119 [09:26:23]save to /storage/0445/doc_00164119 [09:26:23]save last doc name /storage/0445/doc_00164119 to /storage/kkm_last_doc_name [09:26:23]save OK [09:26:23]Clear old archive folders... [09:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:26:23]tlvbuf is 00D1F5A0 [09:26:23]SAM_PROTO_ClearQueue [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 09 00 00 [09:26:23]Write to MH i2c: E2 08 00 83 07 80 09 00 00 00 00 00 00 FC [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [09:26:23]RAPDU: 90 00 [09:26:23]wFMCommunicate OK [09:26:23]SAM_PROTO_ClearQueue done [09:26:23]KKMCreateOFDPacket [09:26:23]OFDProtocolAddRootSTLVToBuf [09:26:23]FM_MakeSignedData [09:26:23]FM_MakeSignedData [09:26:23]SAM_PROTO_SignData [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 0D 01 02 [09:26:23]Write to MH i2c: E2 08 00 84 07 80 0D 01 02 00 00 00 00 04 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [09:26:23]RAPDU: 90 00 [09:26:23]wFMCommunicate OK [09:26:23]wFMCommunicate request_size=255 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 BF F6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 81 02 00 35 04 06 00 63 08 44 D1 [09:26:23]Write to MH i2c: E2 02 01 85 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 BF F6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 81 02 00 35 04 06 00 63 08 44 D1 00 00 B6 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 85 07 00 90 00 00 [09:26:23]RAPDU: 90 00 [09:26:23]wFMCommunicate OK [09:26:23]wFMCommunicate request_size=7 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 0D 02 02 02 84 AB [09:26:23]Write to MH i2c: E2 0A 00 86 07 80 0D 02 02 02 00 84 AB 00 00 3A [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 86 07 00 90 00 01 [09:26:23]RAPDU: 90 00 [09:26:23]wFMCommunicate OK [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 0D 03 02 [09:26:23]Write to MH i2c: E2 08 00 87 07 80 0D 03 02 00 00 00 00 09 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 0B 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 0B 00 87 07 00 D6 67 F2 52 1F BB D1 54 90 00 8A [09:26:23]RAPDU: D6 67 F2 52 1F BB D1 54 90 00 [09:26:23]wFMCommunicate OK [09:26:23]SAM_PROTO_SignData done [09:26:23]FM_MakeSignedData done [09:26:23]CreateOFDProtocolMessage [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 11 00 00 [09:26:23]Write to MH i2c: E2 08 00 88 07 80 11 00 00 00 00 00 00 09 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 17 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 17 00 88 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [09:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:26:24]wFMCommunicate OK [09:26:24]CreateOFDProtocolMessage done [09:26:24]OFDSenderStorePacket 164119 [09:26:24]StoreOFDPacket docnum=164119 [09:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 00 48 04 01 43 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 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 BF F6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 81 02 00 35 04 06 00 63 08 44 D1 84 AB D6 67 F2 52 1F BB D1 54 [09:26:24]CheckFolder [09:26:24]dirname=/storage/ofd_packets [09:26:24]CheckFolder done [09:26:24]ProducePacketName [09:26:24]name=ofd_packets/00164119 [09:26:24]NVStorageSaveData ofd_packets/00164119 [09:26:24]File name is /storage/ofd_packets/00164119 [09:26:24]Write 298 bytes [09:26:24]NVStorageSaveData done [09:26:24]OFDSenderStorePacket done [09:26:24]KKMCreateOFDPacket done [09:26:24]NVStorageSaveData kkm_last_timestamp [09:26:24]File name is /storage/kkm_last_timestamp [09:26:24]Write 4 bytes [09:26:24]NVStorageSaveData done [09:26:24]ExternCall_PrintAddStr [09:26:24]wPrintStart [09:26:24]Write to MH i2c: 01 00 00 89 07 90 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 89 07 00 00 00 00 00 FF 0F A5 [09:26:24]RasterBufferAndPrint [09:26:24]line Счет N : (1)458197 [09:26:24]line ИНН: 02508201610067 [09:26:24]line Контрольно-Кассовый Чек [09:26:24]line ПРОДАЖА [09:26:24]line ТРК (МРК, ГНК) : 11 [09:26:24]line Товар: 2710194210 [09:26:24]line ДТ-К-5 [09:26:24]line 20.870 * 71.90 [09:26:24]line = 1500.55 [09:26:24]line НДС 12% НСП 1% [09:26:24]line > о реализуемом товаре [09:26:24]line ОКРУГЛЕНИЕ: -0.55 [09:26:24]line ИТОГО: 1500.00 [09:26:24]line Внесено: 1500.00 [09:26:24]line СДАЧА: 0.00 [09:26:24]line НСП 1% : 13.28 [09:26:24]line НДС 12% : 159.35 [09:26:24]line Наличными: 1500.00 [09:26:24]line Безнал.: 0.00 [09:26:24]line Место: АЗС № 72 "Партнер Нефть" [09:26:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:26:24]line СНО: Общий режим [09:26:24]line Чек 40 12.07.2024 09:26 [09:26:24]line Смена: 445 ФФД: 1.0 [09:26:24]line ЗНМ: 0300000160 [09:26:24]line РНМ: 0000000000090829 [09:26:24]line Версия ККМ: 001 [09:26:24]line ФМ: 0000000000874718 [09:26:24]line ФД: 164119 [09:26:24]line ФПД: 108887165469867 [09:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T092623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164119&fm=108887165469867&tin=02508201610067®Number=0000000000090829&sum=150000 [09:26:24]OFD Sender: Processing packet 164119 [packets to send 104, broken 103] [09:26:24]ProducePacketName [09:26:24]name=ofd_packets/00164119 [09:26:24]OFD Sender: To server: pG, [09:26:24]CommunicateWithHost lk.salyk.kg:30040 [09:26:24]ConnectInit lk.salyk.kg [09:26:24]written 0, free lines is 4095 [09:26:24]Connected sock=10 [09:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 00 48 04 01 43 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 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 BF F6 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 81 02 00 35 04 06 00 63 08 44 D1 84 AB D6 67 F2 52 1F BB D1 54 [09:26:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 0C 47 00 16 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 34 37 31 38 10 04 04 00 17 81 02 00 F4 03 04 00 53 9D 90 66 B6 04 01 00 00 C6 6E AD 25 CD 86 CF 16 [09:26:24]CommunicateWithHost err = 0 [09:26:24]CheckOFDResponse [09:26:24]1017 (14) - 77093643461234 [09:26:24]1041 (16) - 0000000000874718 [09:26:24]1040 (4) - 164119 [09:26:24]1012 (4) - 12.07.2024 03:04 [09:26:24]1206 (1) - 0 [09:26:24]OFD Sender: Remove packet 164119 [09:26:24]ProducePacketName [09:26:24]name=ofd_packets/00164119 [09:26:24]NVStorageDeleteData [09:26:24]Write to MH i2c: 01 00 00 B3 07 BA [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 B3 07 00 00 00 00 00 EE 0C BB [09:26:24]RasterBufferAndPrint [09:26:24]line [09:26:24]line [09:26:24]line [09:26:24]line [09:26:24]line [09:26:24]written 0, free lines is 3316 [09:26:24]MH_Cut [09:26:24]Write to MH i2c: D1 01 00 BA 07 01 93 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: D1 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: D1 01 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: D1 01 00 BA 07 00 92 [09:26:24]Write to MH i2c: 01 00 00 BB 07 C2 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:25]OFD Sender: No OFD packet to send [09:26:25]*** Cut start [09:26:25]*** Partial cut [09:26:25]*** CUTSNS_PIN = 1 [09:26:25]*** CUTSNS_PIN = 0 [09:26:25]*** Brake cut motor [09:26:26]Read from MH i2c: 01 [09:26:26]MH_I2C_Read... [09:26:26]*** Stop cut motor [09:26:26]*** Cut end [09:26:26]Read from MH i2c: 01 07 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 FF 0F D7 [09:26:26]process_action close_receipt done [09:26:26]requested_data is exist [09:26:26]produce_requested_data [09:26:26]requested_item fm.sn is exist - process it [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 11 00 00 [09:26:26]Write to MH i2c: E2 08 00 BC 07 80 11 00 00 00 00 00 00 3D [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 BC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [09:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:26:26]wFMCommunicate OK [09:26:26]requested_item fd.num is exist - process it [09:26:26]SAM_PROTO_GetFieldsCounters [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 13 00 00 [09:26:26]Write to MH i2c: E2 08 00 BD 07 80 13 00 00 00 00 00 00 40 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 62 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 62 00 BD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [09:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_GetFieldsCounters done [09:26:26]requested_item shift.num is exist - process it [09:26:26]requested_item shift.opened is exist - process it [09:26:26]req_shift_opened [09:26:26]FM_GetShiftState [09:26:26]SAM_PROTO_GetShiftState [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 13 01 00 [09:26:26]Write to MH i2c: E2 08 00 BE 07 80 13 01 00 00 00 00 00 42 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0E 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0E 00 BE 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8C [09:26:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_GetShiftState done [09:26:26]FM_GetShiftState done [09:26:26]req_shift_opened done [09:26:26]requested_item shift.open_date is exist - process it [09:26:26]req_shift_open_date [09:26:26]req_shift_open_date done [09:26:26]produce_requested_data done [09:26:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164119,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:26:26]process_action_free close_receipt [09:26:26]json_value_free [09:26:26]json_value_free done [09:26:26]process_json_proto returns [09:26:26]Send response to host [09:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164119,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:26:26]free response buf [09:26:26]execute_script done [09:26:26]execute_script returns [09:26:26]free content buf [09:26:26]Sock 9.Close socket [09:26:26]Sock 9.Thread stoped [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:37]accept exits with 8 [09:32:37]New connection [09:32:37]New thread 3066568036 created [09:32:37]Thread 3066711396 joined [09:32:37]Waiting for new connection... [09:32:37] Sock 8.Parse request [09:32:37]Sock 8.Check first char [09:32:37]Sock 8.First char is OK [09:32:37]request: POST /json_proto HTTP/1.0 [09:32:37]Method: POST [09:32:37]URL: /json_proto [09:32:37]Method is POST - this is cgi request [09:32:37]url: /json_proto [09:32:37]query_string will be loaded in cgi processing [09:32:37]execute_cgi json_proto POST (null) [09:32:37]execute_cgi path=json_proto method=POST [09:32:37]POST find Content-Length [09:32:37]Host: 172.17.56.4:8080 [09:32:37]Content-Length: 682 [09:32:37]Content-Type: application/json [09:32:37] [09:32:37]POST finish read [09:32:37]Found Content-Length = 682 [09:32:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:32:37]execute_script... [09:32:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:32:37]POST & json_proto [09:32:37]process_json_proto [09:32:37]json parsed OK: [09:32:37]protocol is kg_v1.0 [09:32:37]action value=close_receipt [09:32:37]process_action close_receipt [09:32:37]cmd_close_receipt [09:32:37]MH_GetDate [09:32:37]Write to MH i2c: F0 00 00 BF 07 B5 [09:32:37]Write i2c OK [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: F0 [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: F0 09 00 [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: F0 09 00 BF 07 00 36 F8 90 66 C9 DC B2 64 9D [09:32:37]GetLastDocTimeStamp 1720776383 [09:32:37]current date 1720776758 [09:32:37]FM_GetShiftState [09:32:37]SAM_PROTO_GetShiftState [09:32:37]wFMCommunicate request_size=4 [09:32:37]MH_SAM_APDU [09:32:37]CAPDU: 80 13 01 00 [09:32:37]Write to MH i2c: E2 08 00 C0 07 80 13 01 00 00 00 00 00 44 [09:32:37]Write i2c OK [09:32:37]MH_I2C_Read... [09:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:37]Read from MH i2c: E2 [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: E2 0E 00 [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: E2 0E 00 C0 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8E [09:32:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:32:37]wFMCommunicate OK [09:32:37]SAM_PROTO_GetShiftState done [09:32:37]FM_GetShiftState done [09:32:37]opened in 1720744654 [09:32:37]opened+sec_in_day 1720831054 [09:32:37]quantity*price = 100016 [09:32:37]sum+1 = 100017 [09:32:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 41 12.07.2024 09:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164120 ФПД: 235159399993837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T093238&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164120&fm=235159399993837&tin=02508201610067®Number=0000000000090829&sum=100000 [09:32:38]StoreToDocumentArchive [09:32:38]shift 445 fd 164120 [09:32:38]save to /storage/0445/doc_00164120 [09:32:38]save last doc name /storage/0445/doc_00164120 to /storage/kkm_last_doc_name [09:32:38]save OK [09:32:38]Clear old archive folders... [09:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:38]tlvbuf is 00D2B1D0 [09:32:38]SAM_PROTO_ClearQueue [09:32:38]wFMCommunicate request_size=4 [09:32:38]MH_SAM_APDU [09:32:38]CAPDU: 80 09 00 00 [09:32:38]Write to MH i2c: E2 08 00 CD 07 80 09 00 00 00 00 00 00 46 [09:32:38]Write i2c OK [09:32:38]MH_I2C_Read... [09:32:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:38]Read from MH i2c: E2 [09:32:38]MH_I2C_Read... [09:32:38]Read from MH i2c: E2 03 00 [09:32:38]MH_I2C_Read... [09:32:38]Read from MH i2c: E2 03 00 CD 07 00 90 00 48 [09:32:38]RAPDU: 90 00 [09:32:38]wFMCommunicate OK [09:32:38]SAM_PROTO_ClearQueue done [09:32:38]KKMCreateOFDPacket [09:32:38]OFDProtocolAddRootSTLVToBuf [09:32:38]FM_MakeSignedData [09:32:38]FM_MakeSignedData [09:32:38]SAM_PROTO_SignData [09:32:38]wFMCommunicate request_size=4 [09:32:38]MH_SAM_APDU [09:32:38]CAPDU: 80 0D 01 02 [09:32:38]Write to MH i2c: E2 08 00 CE 07 80 0D 01 02 00 00 00 00 4E [09:32:38]Write i2c OK [09:32:38]MH_I2C_Read... [09:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:38]Read from MH i2c: E2 [09:32:38]MH_I2C_Read... [09:32:38]Read from MH i2c: E2 03 00 [09:32:38]MH_I2C_Read... [09:32:38]Read from MH i2c: E2 03 00 CE 07 00 90 00 49 [09:32:38]RAPDU: 90 00 [09:32:38]wFMCommunicate OK [09:32:38]wFMCommunicate request_size=255 [09:32:38]MH_SAM_APDU [09:32:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 36 F8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 81 02 00 35 04 06 00 D5 [09:32:38]Write to MH i2c: E2 02 01 CF 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 36 F8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 81 02 00 35 04 06 00 D5 00 00 E4 [09:32:38]Write i2c OK [09:32:38]MH_I2C_Read... [09:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:38]Read from MH i2c: E2 [09:32:38]MH_I2C_Read... [09:32:38]Read from MH i2c: E2 03 00 [09:32:38]MH_I2C_Read... [09:32:38]Read from MH i2c: E2 03 00 CF 07 00 90 00 4A [09:32:38]RAPDU: 90 00 [09:32:38]wFMCommunicate OK [09:32:38]wFMCommunicate request_size=10 [09:32:38]MH_SAM_APDU [09:32:38]CAPDU: 80 0D 02 02 05 E0 50 80 91 ED [09:32:39]Write to MH i2c: E2 0D 00 D0 07 80 0D 02 02 05 00 E0 50 80 91 ED 00 00 89 [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:39]Read from MH i2c: E2 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 03 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 03 00 D0 07 00 90 00 4B [09:32:39]RAPDU: 90 00 [09:32:39]wFMCommunicate OK [09:32:39]wFMCommunicate request_size=4 [09:32:39]MH_SAM_APDU [09:32:39]CAPDU: 80 0D 03 02 [09:32:39]Write to MH i2c: E2 08 00 D1 07 80 0D 03 02 00 00 00 00 53 [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:39]Read from MH i2c: E2 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 0B 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 0B 00 D1 07 00 9A 32 22 F8 23 04 17 A8 90 00 20 [09:32:39]RAPDU: 9A 32 22 F8 23 04 17 A8 90 00 [09:32:39]wFMCommunicate OK [09:32:39]SAM_PROTO_SignData done [09:32:39]FM_MakeSignedData done [09:32:39]CreateOFDProtocolMessage [09:32:39]wFMCommunicate request_size=4 [09:32:39]MH_SAM_APDU [09:32:39]CAPDU: 80 11 00 00 [09:32:39]Write to MH i2c: E2 08 00 D2 07 80 11 00 00 00 00 00 00 53 [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:39]Read from MH i2c: E2 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 17 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 17 00 D2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [09:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:32:39]wFMCommunicate OK [09:32:39]CreateOFDProtocolMessage done [09:32:39]OFDSenderStorePacket 164120 [09:32:39]StoreOFDPacket docnum=164120 [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31333267+1689443529=1720776796 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:10]*** Is cutter blocked? [00:00:10]*** FLAG_PRN_KEY set [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 08 00 00 00 FF 0F 21 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 5D F8 90 66 C9 DC B2 64 05 [09:33:17]Current date/time: 12.07.2024 09:33 [09:33:17]FM_Init [09:33:17]wFMConnect [09:33:17]MH_SAM_On [09:33:17]Write to MH i2c: E0 00 00 08 00 E7 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_init finished! [09:33:17]*** atr: [09:33:17]*** 0F 3B D5 18 FF 81 91 FE [09:33:17]*** 1F C3 80 73 C8 21 10 0A [09:33:17]*** 00 00 00 00 00 00 00 00 [09:33:17]*** 00 00 00 00 00 00 00 00 [09:33:17]*** 00 00 00 00 00 00 00 00 [09:33:17]*** 00 00 00 00 00 00 00 00 [09:33:17]*** 00 00 00 00 00 00 00 00 [09:33:17]*** 00 00 00 00 00 00 00 00 [09:33:17]*** FLAG_PRN_KEY reset [09:33:17]Read from MH i2c: E0 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E0 10 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:33:17]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:33:17]wFMCommunicate request_size=10 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:33:17]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:33:17]RAPDU: 90 00 [09:33:17]wFMCommunicate OK [09:33:17]wFMCommunicate request_size=4 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 11 00 00 [09:33:17]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 17 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [09:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:33:17]wFMCommunicate OK [09:33:17]Detected FM SN is 0000000000874718 [09:33:17]Stored FM SN is 0000000000874718 [09:33:17]wFMCommunicate request_size=9 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 16 00 00 04 29 B3 00 00 [09:33:17]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:33:17]RAPDU: 90 00 [09:33:17]wFMCommunicate OK [09:33:17]FM PIN OK [09:33:17]wFMCommunicate request_size=8 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 14 04 00 03 02 00 01 [09:33:17]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:33:17]RAPDU: 90 00 [09:33:17]wFMCommunicate OK [09:33:17]wFMCommunicate request_size=13 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:33:17]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:33:17]*** FLAG_PRN_KEY set [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:33:17]RAPDU: 90 00 [09:33:17]wFMCommunicate OK [09:33:17]wFMCommunicate request_size=4 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 11 00 00 [09:33:17]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 17 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [09:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:33:17]wFMCommunicate OK [09:33:17]DocumentArchiveInit [09:33:17]Start Httpd... [09:33:17]Httpd thread 3067137380 created [09:33:17]Write to MH i2c: 01 00 00 0F 00 0F [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 0F 00 00 08 00 00 00 FF 0F 2C [09:33:17]MH Int Process started [09:33:17]Allocated Socket 8 [09:33:17]Bind OK [09:33:17]Listen OK [09:33:17]httpd running on port 8080 [09:33:17]Waiting for new connection... [09:33:17]OFD Sender: No OFD packet to send [09:33:17]int [09:33:17]Write to MH i2c: 01 00 00 10 00 10 [09:33:17]*** FLAG_PRN_KEY reset [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 10 00 00 00 00 00 00 FF 0F 25 [09:33:17]state=0 [09:33:17]int [09:33:17]Write to MH i2c: 01 00 00 11 00 11 [09:33:17]*** FLAG_PRN_KEY set [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 11 00 00 08 00 00 00 FF 0F 2E [09:33:17]state=0 [09:33:17]Key pressed [09:33:17]Feed [09:33:17]Write to MH i2c: D8 00 00 12 00 E9 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: D8 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: D8 01 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: D8 01 00 12 00 00 EA [09:33:17]int [09:33:17]Write to MH i2c: 01 00 00 13 00 13 [09:33:17]*** FLAG_PRN_KEY reset [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 13 00 00 00 00 00 00 F5 0F 1E [09:33:17]state=2 [09:33:17]Stop feed [09:33:17]int [09:33:17]Write to MH i2c: 01 00 00 14 00 14 [09:33:17]*** FLAG_PRN_KEY set [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 14 00 00 08 00 00 00 F5 0F 27 [09:33:17]state=0 [09:33:17]Key pressed [09:33:17]Feed [09:33:17]Write to MH i2c: D8 00 00 15 00 EC [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: D8 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: D8 01 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: D8 01 00 15 00 00 ED [09:33:17]int [09:33:17]Write to MH i2c: 01 00 00 16 00 16 [09:33:17]*** FLAG_PRN_KEY reset [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 16 00 00 00 00 00 00 F5 0F 21 [09:33:17]state=2 [09:33:17]Stop feed [09:33:18]int [09:33:18]Write to MH i2c: 01 00 00 17 00 17 [09:33:18]*** FLAG_PRN_KEY set [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 17 00 00 08 00 00 00 F5 0F 2A [09:33:18]state=0 [09:33:18]Key pressed [09:33:18]Feed [09:33:18]Write to MH i2c: D8 00 00 18 00 EF [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 01 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 01 00 18 00 00 F0 [09:33:18]int [09:33:18]Write to MH i2c: 01 00 00 19 00 19 [09:33:18]*** FLAG_PRN_KEY reset [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 19 00 00 00 00 00 00 F5 0F 24 [09:33:18]state=2 [09:33:18]Stop feed [09:33:18]int [09:33:18]Write to MH i2c: 01 00 00 1A 00 1A [09:33:18]*** FLAG_PRN_KEY set [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 1A 00 00 08 00 00 00 F5 0F 2D [09:33:18]state=0 [09:33:18]Key pressed [09:33:18]Feed [09:33:18]Write to MH i2c: D8 00 00 1B 00 F2 [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 01 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 01 00 1B 00 00 F3 [09:33:18]int [09:33:18]Write to MH i2c: 01 00 00 1C 00 1C [09:33:18]*** FLAG_PRN_KEY reset [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 1C 00 00 00 00 00 00 F5 0F 27 [09:33:18]state=2 [09:33:18]Stop feed [09:33:18]int [09:33:18]Write to MH i2c: 01 00 00 1D 00 1D [09:33:18]*** FLAG_PRN_KEY set [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 1D 00 00 08 00 00 00 F5 0F 30 [09:33:18]state=0 [09:33:18]Key pressed [09:33:18]Feed [09:33:18]Write to MH i2c: D8 00 00 1E 00 F5 [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 01 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 01 00 1E 00 00 F6 [09:33:18]int [09:33:18]Write to MH i2c: 01 00 00 1F 00 1F [09:33:18]*** FLAG_PRN_KEY reset [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 1F 00 00 00 00 00 00 F7 0F 2C [09:33:18]state=2 [09:33:18]Stop feed [09:33:18]int [09:33:18]Write to MH i2c: 01 00 00 20 00 20 [09:33:18]*** FLAG_PRN_KEY set [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 20 00 00 08 00 00 00 FF 0F 3D [09:33:18]state=0 [09:33:18]Key pressed [09:33:18]Feed [09:33:18]Write to MH i2c: D8 00 00 21 00 F8 [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 01 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: D8 01 00 21 00 00 F9 [09:33:19]int [09:33:19]Write to MH i2c: 01 00 00 22 00 22 [09:33:19]*** FLAG_PRN_KEY reset [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 07 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 07 00 22 00 00 00 00 00 00 FF 0F 37 [09:33:19]state=2 [09:33:19]Stop feed [09:33:19]int [09:33:19]Write to MH i2c: 01 00 00 23 00 23 [09:33:19]*** FLAG_PRN_KEY set [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 07 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 07 00 23 00 00 08 00 00 00 FF 0F 40 [09:33:19]state=0 [09:33:19]Key pressed [09:33:19]Feed [09:33:19]Write to MH i2c: D8 00 00 24 00 FB [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: D8 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: D8 01 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: D8 01 00 24 00 00 FC [09:33:19]int [09:33:19]Write to MH i2c: 01 00 00 25 00 25 [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 07 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 07 00 25 00 00 48 00 00 00 3C 00 B0 [09:33:19]state=2 [09:33:19]Key pressed [09:33:20]int [09:33:20]Write to MH i2c: 01 00 00 26 00 26 [09:33:20]*** FLAG_PRN_KEY reset [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 26 00 00 00 00 00 00 F7 0F 33 [09:33:20]state=2 [09:33:20]Stop feed [09:33:20]int [09:33:20]Write to MH i2c: 01 00 00 27 00 27 [09:33:20]*** FLAG_PRN_KEY set [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 27 00 00 08 00 00 00 FF 0F 44 [09:33:20]state=0 [09:33:20]Key pressed [09:33:20]Feed [09:33:20]Write to MH i2c: D8 00 00 28 00 FF [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: D8 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: D8 01 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: D8 01 00 28 00 00 00 [09:33:20]int [09:33:20]Write to MH i2c: 01 00 00 29 00 29 [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 29 00 00 48 00 00 00 3C 00 B4 [09:33:20]state=2 [09:33:20]Key pressed [09:33:20]int line is 0 - check status [09:33:20]Write to MH i2c: 01 00 00 2A 00 2A [09:33:20]*** FLAG_PRN_KEY reset [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 2A 00 00 00 00 00 00 F6 0F 36 [09:33:20]state=2 [09:33:20]Stop feed [09:33:20]int [09:33:20]Write to MH i2c: 01 00 00 2B 00 2B [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 2B 00 00 00 00 00 00 F7 0F 38 [09:33:20]state=0 [09:33:20]int [09:33:20]Write to MH i2c: 01 00 00 2C 00 2C [09:33:20]*** FLAG_PRN_KEY set [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 2C 00 00 08 00 00 00 FE 0F 48 [09:33:20]state=0 [09:33:20]Key pressed [09:33:20]Feed [09:33:20]Write to MH i2c: D8 00 00 2D 00 04 [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: D8 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: D8 01 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: D8 01 00 2D 00 00 05 [09:33:20]int [09:33:20]Write to MH i2c: 01 00 00 2E 00 2E [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 2E 00 00 48 00 00 00 3C 00 B9 [09:33:20]state=2 [09:33:20]Key pressed [09:33:21]int [09:33:21]Write to MH i2c: 01 00 00 2F 00 2F [09:33:21]*** FLAG_PRN_KEY reset [09:33:21]Write i2c OK [09:33:21]MH_I2C_Read... [09:33:21]Read from MH i2c: 01 [09:33:21]MH_I2C_Read... [09:33:21]Read from MH i2c: 01 07 00 [09:33:21]MH_I2C_Read... [09:33:21]Read from MH i2c: 01 07 00 2F 00 00 00 00 00 00 F7 0F 3C [09:33:21]state=2 [09:33:21]Stop feed [09:33:22]OFD Sender: No OFD packet to send [09:33:25]accept exits with 9 [09:33:25]New connection [09:33:25]New thread 3066850660 created [09:33:25]Waiting for new connection... [09:33:25] Sock 9.Parse request [09:33:25]Sock 9.Check first char [09:33:25]Sock 9.First char is OK [09:33:25]request: POST /json_proto HTTP/1.0 [09:33:25]Method: POST [09:33:25]URL: /json_proto [09:33:25]Method is POST - this is cgi request [09:33:25]url: /json_proto [09:33:25]query_string will be loaded in cgi processing [09:33:25]execute_cgi json_proto POST (null) [09:33:25]execute_cgi path=json_proto method=POST [09:33:25]POST find Content-Length [09:33:25]Host: 172.17.56.4:8080 [09:33:25]Content-Length: 215 [09:33:25]Content-Type: application/json [09:33:25] [09:33:25]POST finish read [09:33:25]Found Content-Length = 215 [09:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:25]execute_script... [09:33:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:25]POST & json_proto [09:33:25]process_json_proto [09:33:25]json parsed OK: [09:33:25]protocol is kg_v1.0 [09:33:25]action value=get_value [09:33:25]process_action get_value [09:33:25]cmd_get_value [09:33:25]process_action get_value done [09:33:25]requested_data is exist [09:33:25]produce_requested_data [09:33:25]requested_item kkm.sn is exist - process it [09:33:25]requested_item kkm.ver is exist - process it [09:33:25]requested_item fm.sn is exist - process it [09:33:25]wFMCommunicate request_size=4 [09:33:25]MH_SAM_APDU [09:33:25]CAPDU: 80 11 00 00 [09:33:25]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:25]Read from MH i2c: E2 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 17 00 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [09:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:33:25]wFMCommunicate OK [09:33:25]requested_item fd.num is exist - process it [09:33:25]SAM_PROTO_GetFieldsCounters [09:33:25]wFMCommunicate request_size=4 [09:33:25]MH_SAM_APDU [09:33:25]CAPDU: 80 13 00 00 [09:33:25]Write to MH i2c: E2 08 00 31 00 80 13 00 00 00 00 00 00 AD [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:25]Read from MH i2c: E2 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 62 00 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 62 00 31 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [09:33: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:25]wFMCommunicate OK [09:33:25]SAM_PROTO_GetFieldsCounters done [09:33:25]requested_item shift.num is exist - process it [09:33:25]requested_item shift.opened is exist - process it [09:33:25]req_shift_opened [09:33:25]FM_GetShiftState [09:33:25]SAM_PROTO_GetShiftState [09:33:25]wFMCommunicate request_size=4 [09:33:25]MH_SAM_APDU [09:33:25]CAPDU: 80 13 01 00 [09:33:25]Write to MH i2c: E2 08 00 32 00 80 13 01 00 00 00 00 00 AF [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:25]Read from MH i2c: E2 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 0E 00 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 0E 00 32 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F9 [09:33:25]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:33:25]wFMCommunicate OK [09:33:25]SAM_PROTO_GetShiftState done [09:33:25]FM_GetShiftState done [09:33:25]req_shift_opened done [09:33:25]requested_item shift.open_date is exist - process it [09:33:25]req_shift_open_date [09:33:25]req_shift_open_date done [09:33:25]produce_requested_data done [09:33:25]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164120,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:33:25]process_action_free get_value [09:33:25]json_value_free [09:33:25]json_value_free done [09:33:25]process_json_proto returns [09:33:25]Send response to host [09:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164120,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:33:25]free response buf [09:33:25]execute_script done [09:33:25]execute_script returns [09:33:25]free content buf [09:33:25]Sock 9.Close socket [09:33:25]Sock 9.Thread stoped [09:33:25]accept exits with 7 [09:33:25]New connection [09:33:25]New thread 3066707300 created [09:33:25]Thread 3066850660 joined [09:33:25]Waiting for new connection... [09:33:25] Sock 7.Parse request [09:33:25]Sock 7.Check first char [09:33:25]Sock 7.First char is OK [09:33:25]request: POST /json_proto HTTP/1.0 [09:33:25]Method: POST [09:33:25]URL: /json_proto [09:33:25]Method is POST - this is cgi request [09:33:25]url: /json_proto [09:33:25]query_string will be loaded in cgi processing [09:33:25]execute_cgi json_proto POST (null) [09:33:25]execute_cgi path=json_proto method=POST [09:33:25]POST find Content-Length [09:33:25]Host: 172.17.56.4:8080 [09:33:25]Content-Length: 331 [09:33:25]Content-Type: application/json [09:33:25] [09:33:25]POST finish read [09:33:25]Found Content-Length = 331 [09:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:33:25]execute_script... [09:33:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:33:25]POST & json_proto [09:33:25]process_json_proto [09:33:25]json parsed OK: [09:33:25]protocol is kg_v1.0 [09:33:25]action value=get_value [09:33:25]process_action get_value [09:33:25]cmd_get_value [09:33:25]process_action get_value done [09:33:25]requested_data is exist [09:33:25]produce_requested_data [09:33:25]requested_item fm.sale.total is exist - process it [09:33:25]SAM_PROTO_GetFMData [09:33:25]wFMCommunicate request_size=4 [09:33:25]MH_SAM_APDU [09:33:25]CAPDU: 80 13 03 00 [09:33:25]Write to MH i2c: E2 08 00 33 00 80 13 03 00 00 00 00 00 B2 [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 FD 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 FD 00 33 00 00 C4 04 85 04 C0 04 6E 04 04 00 9B 7D 02 00 69 04 A3 00 6F 04 04 00 8F 7C 02 00 B1 04 05 00 42 20 58 55 02 70 04 05 00 71 93 96 33 02 72 04 04 00 D1 8C C1 21 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 29 99 75 3F 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 AE 9C 49 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0C 01 00 00 B1 04 04 00 2C 6E 44 03 70 04 04 00 2C 6E 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A D6 58 EF 03 09 00 90 00 3B [09:33:26]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9B 7D 02 00 69 04 A3 00 6F 04 04 00 8F 7C 02 00 B1 04 05 00 42 20 58 55 02 70 04 05 00 71 93 96 33 02 72 04 04 00 D1 8C C1 21 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 29 99 75 3F 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 AE 9C 49 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0C 01 00 00 B1 04 04 00 2C 6E 44 03 70 04 04 00 2C 6E 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A D6 58 EF 03 09 00 90 00 [09:33:26]wFMCommunicate OK [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 17 00 00 [09:33:26]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 FD 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 FD 00 34 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 67 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 F3 [09:33:26]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 67 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [09:33:26]wFMCommunicate OK [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 17 00 00 [09:33:26]Write to MH i2c: E2 08 00 35 00 80 17 00 00 00 00 00 00 B5 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 FD 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 FD 00 35 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 CA [09:33:26]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [09:33:26]wFMCommunicate OK [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 17 00 00 [09:33:26]Write to MH i2c: E2 08 00 36 00 80 17 00 00 00 00 00 00 B6 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 FD 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 FD 00 36 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 2E [09:33:26]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [09:33:26]wFMCommunicate OK [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 17 00 00 [09:33:26]Write to MH i2c: E2 08 00 37 00 80 17 00 00 00 00 00 00 B7 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 E1 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 E1 00 37 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A5 [09:33:27]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:33:27]wFMCommunicate OK [09:33:27]SAM_PROTO_GetFMData done [09:33:27]requested_item fm.sale_refund.total is exist - process it [09:33:27]requested_item fm.buy.total is exist - process it [09:33:27]requested_item shift.sale.total is exist - process it [09:33:27]SAM_PROTO_GetShiftData [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 13 02 00 [09:33:27]Write to MH i2c: E2 08 00 38 00 80 13 02 00 00 00 00 00 B6 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]OFD Sender: No OFD packet to send [09:33:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 FD 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 FD 00 38 00 00 AE 04 AA 04 AA 04 6E 04 04 00 29 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 A7 15 35 70 04 03 00 E4 44 31 72 04 03 00 C3 D0 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 A3 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 78 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 A6 [09:33:27]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 29 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 A7 15 35 70 04 03 00 E4 44 31 72 04 03 00 C3 D0 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 A3 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 78 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:33:27]wFMCommunicate OK [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 17 00 00 [09:33:27]Write to MH i2c: E2 08 00 39 00 80 17 00 00 00 00 00 00 B9 [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:27]Read from MH i2c: E2 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 FD 00 [09:33:27]MH_I2C_Read... [09:33:27]Read from MH i2c: E2 FD 00 39 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 DB [09:33:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:33:27]wFMCommunicate OK [09:33:27]wFMCommunicate request_size=4 [09:33:27]MH_SAM_APDU [09:33:27]CAPDU: 80 17 00 00 [09:33:27]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [09:33:27]Write i2c OK [09:33:27]MH_I2C_Read... [09:33:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:28]Read from MH i2c: E2 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 FD 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 FD 00 3A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 71 [09:33:28]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:33:28]wFMCommunicate OK [09:33:28]wFMCommunicate request_size=4 [09:33:28]MH_SAM_APDU [09:33:28]CAPDU: 80 17 00 00 [09:33:28]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [09:33:28]Write i2c OK [09:33:28]MH_I2C_Read... [09:33:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:28]Read from MH i2c: E2 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 FD 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 FD 00 3B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 2D [09:33:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:33:28]wFMCommunicate OK [09:33:28]wFMCommunicate request_size=4 [09:33:28]MH_SAM_APDU [09:33:28]CAPDU: 80 17 00 00 [09:33:28]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [09:33:28]Write i2c OK [09:33:28]MH_I2C_Read... [09:33:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:33:28]Read from MH i2c: E2 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 CB 00 [09:33:28]MH_I2C_Read... [09:33:28]Read from MH i2c: E2 CB 00 3C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A5 [09:33:28]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:33:28]wFMCommunicate OK [09:33:28]SAM_PROTO_GetShiftData done [09:33:28]requested_item shift.sale.total_cash is exist - process it [09:33:28]requested_item shift.sale_refund.total is exist - process it [09:33:28]requested_item shift.sale_refund.total_cash is exist - process it [09:33:28]requested_item shift.buy.total is exist - process it [09:33:28]requested_item shift.buy.total_cash is exist - process it [09:33:28]produce_requested_data done [09:33:28]produce_requested_data return {"fm.sale.total":100217733.78,"fm.sale_refund.total":548163.00,"fm.buy.total":0.00,"shift.sale.total":34789.51,"shift.sale.total_cash":32289.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:33:28]process_action_free get_value [09:33:28]json_value_free [09:33:28]json_value_free done [09:33:28]process_json_proto returns [09:33:28]Send response to host [09:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100217733.78,"fm.sale_refund.total":548163.00,"fm.buy.total":0.00,"shift.sale.total":34789.51,"shift.sale.total_cash":32289.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:33:28]free response buf [09:33:28]execute_script done [09:33:28]execute_script returns [09:33:28]free content buf [09:33:28]Sock 7.Close socket [09:33:28]Sock 7.Thread stoped [09:33:28]accept exits with 9 [09:33:28]New connection [09:33:28]New thread 3066850660 created [09:33:28]Thread 3066707300 joined [09:33:28]Waiting for new connection... [09:33:28] Sock 9.Parse request [09:33:28]Sock 9.Check first char [09:33:28]Sock 9.First char is OK [09:33:28]request: POST /json_proto HTTP/1.0 [09:33:28]Method: POST [09:33:28]URL: /json_proto [09:33:28]Method is POST - this is cgi request [09:33:28]url: /json_proto [09:33:28]query_string will be loaded in cgi processing [09:33:28]execute_cgi json_proto POST (null) [09:33:28]execute_cgi path=json_proto method=POST [09:33:28]POST find Content-Length [09:33:28]Host: 172.17.56.4:8080 [09:33:28]Content-Length: 144 [09:33:28]Content-Type: application/json [09:33:28] [09:33:28]POST finish read [09:33:28]Found Content-Length = 144 [09:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [09:33:28]execute_script... [09:33:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [09:33:28]POST & json_proto [09:33:28]process_json_proto [09:33:28]json parsed OK: [09:33:28]protocol is kg_v1.0 [09:33:28]action value=print_doc [09:33:28]process_action print_doc [09:33:28]process_action_free print_doc [09:33:28]json_value_free [09:33:28]json_value_free done [09:33:28]process_json_proto returns [09:33:28]Send response to host [09:33:28]{"protocol":"kg_v1.0","response":{"error":1000,"error_desc":"Open file error(LoadLastDocumentFromArchive)"}} [09:33:28]free response buf [09:33:28]execute_script done [09:33:28]execute_script returns [09:33:28]free content buf [09:33:28]Sock 9.Close socket [09:33:28]Sock 9.Thread stoped [09:33:32]OFD Sender: No OFD packet to send [09:33:37]accept exits with 7 [09:33:37]New connection [09:33:37]New thread 3066707300 created [09:33:37]Thread 3066850660 joined [09:33:37]Waiting for new connection... [09:33:37] Sock 7.Parse request [09:33:37]Sock 7.Check first char [09:33:37]Sock 7.First char is OK [09:33:37]request: POST /json_proto HTTP/1.0 [09:33:37]Method: POST [09:33:37]URL: /json_proto [09:33:37]Method is POST - this is cgi request [09:33:37]url: /json_proto [09:33:37]query_string will be loaded in cgi processing [09:33:37]execute_cgi json_proto POST (null) [09:33:37]execute_cgi path=json_proto method=POST [09:33:37]POST find Content-Length [09:33:37]Host: 172.17.56.4:8080 [09:33:37]Content-Length: 215 [09:33:37]Content-Type: application/json [09:33:37] [09:33:37]POST finish read [09:33:37]Found Content-Length = 215 [09:33:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:37]execute_script... [09:33:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:37]POST & json_proto [09:33:37]process_json_proto [09:33:37]json parsed OK: [09:33:37]protocol is kg_v1.0 [09:33:37]action value=get_value [09:33:37]process_action get_value [09:33:37]cmd_get_value [09:33:37]process_action get_value done [09:33:37]requested_data is exist [09:33:37]produce_requested_data [09:33:37]requested_item kkm.sn is exist - process it [09:33:37]requested_item kkm.ver is exist - process it [09:33:37]requested_item fm.sn is exist - process it [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 11 00 00 [09:33:37]Write to MH i2c: E2 08 00 3D 00 80 11 00 00 00 00 00 00 B7 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [09:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:33:37]wFMCommunicate OK [09:33:37]requested_item fd.num is exist - process it [09:33:37]SAM_PROTO_GetFieldsCounters [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 13 00 00 [09:33:37]Write to MH i2c: E2 08 00 3E 00 80 13 00 00 00 00 00 00 BA [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]OFD Sender: No OFD packet to send [09:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 62 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 62 00 3E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [09:33: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:37]wFMCommunicate OK [09:33:37]SAM_PROTO_GetFieldsCounters done [09:33:37]requested_item shift.num is exist - process it [09:33:37]requested_item shift.opened is exist - process it [09:33:37]req_shift_opened [09:33:37]FM_GetShiftState [09:33:37]SAM_PROTO_GetShiftState [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 13 01 00 [09:33:37]Write to MH i2c: E2 08 00 3F 00 80 13 01 00 00 00 00 00 BC [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0E 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0E 00 3F 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 06 [09:33:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:33:37]wFMCommunicate OK [09:33:37]SAM_PROTO_GetShiftState done [09:33:37]FM_GetShiftState done [09:33:37]req_shift_opened done [09:33:37]requested_item shift.open_date is exist - process it [09:33:37]req_shift_open_date [09:33:37]req_shift_open_date done [09:33:37]produce_requested_data done [09:33:37]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164120,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:33:37]process_action_free get_value [09:33:37]json_value_free [09:33:37]json_value_free done [09:33:37]process_json_proto returns [09:33:37]Send response to host [09:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164120,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:33:37]free response buf [09:33:37]execute_script done [09:33:37]execute_script returns [09:33:37]free content buf [09:33:37]Sock 7.Close socket [09:33:37]Sock 7.Thread stoped [09:33:37]accept exits with 9 [09:33:37]New connection [09:33:37]New thread 3066850660 created [09:33:37]Thread 3066707300 joined [09:33:37]Waiting for new connection... [09:33:37] Sock 9.Parse request [09:33:37]Sock 9.Check first char [09:33:37]Sock 9.First char is OK [09:33:37]request: POST /json_proto HTTP/1.0 [09:33:37]Method: POST [09:33:37]URL: /json_proto [09:33:37]Method is POST - this is cgi request [09:33:37]url: /json_proto [09:33:37]query_string will be loaded in cgi processing [09:33:37]execute_cgi json_proto POST (null) [09:33:37]execute_cgi path=json_proto method=POST [09:33:37]POST find Content-Length [09:33:37]Host: 172.17.56.4:8080 [09:33:37]Content-Length: 331 [09:33:37]Content-Type: application/json [09:33:37] [09:33:37]POST finish read [09:33:37]Found Content-Length = 331 [09:33:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:33:37]execute_script... [09:33:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:33:37]POST & json_proto [09:33:37]process_json_proto [09:33:37]json parsed OK: [09:33:37]protocol is kg_v1.0 [09:33:37]action value=get_value [09:33:37]process_action get_value [09:33:37]cmd_get_value [09:33:37]process_action get_value done [09:33:37]requested_data is exist [09:33:37]produce_requested_data [09:33:37]requested_item fm.sale.total is exist - process it [09:33:37]SAM_PROTO_GetFMData [09:33:37]wFMCommunicate request_size=4 [09:33:38]MH_SAM_APDU [09:33:38]CAPDU: 80 13 03 00 [09:33:38]Write to MH i2c: E2 08 00 40 00 80 13 03 00 00 00 00 00 BF [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:33:38]Read from MH i2c: E2 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: E2 FD 00 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: E2 FD 00 40 00 00 C4 04 85 04 C0 04 6E 04 04 00 9B 7D 02 00 69 04 A3 00 6F 04 04 00 8F 7C 02 00 B1 04 05 00 42 20 58 55 02 70 04 05 00 71 93 96 33 02 72 04 04 00 D1 8C C1 21 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 29 99 75 3F 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 AE 9C 49 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0C 01 00 00 B1 04 04 00 2C 6E 44 03 70 04 04 00 2C 6E 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A D6 58 EF 03 09 00 90 00 48 [09:33:38]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9B 7D 02 00 69 04 A3 00 6F 04 04 00 8F 7C 02 00 B1 04 05 00 42 20 58 55 02 70 04 05 00 71 93 96 33 02 72 04 04 00 D1 8C C1 21 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 29 99 75 3F 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 AE 9C 49 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0C 01 00 00 B1 04 04 00 2C 6E 44 03 70 04 04 00 2C 6E 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1A D6 58 EF 03 09 00 90 00 [09:33:38]wFMCommunicate OK [09:33:38]wFMCommunicate request_size=4 [09:33:38]MH_SAM_APDU [09:33:38]CAPDU: 80 17 00 00 [09:33:38]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:38]Read from MH i2c: E2 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: E2 FD 00 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: E2 FD 00 41 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 67 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 00 [09:33:38]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 67 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [09:33:38]wFMCommunicate OK [09:33:38]wFMCommunicate request_size=4 [09:33:38]MH_SAM_APDU [09:33:38]CAPDU: 80 17 00 00 [09:33:38]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 FD 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 FD 00 42 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 D7 [09:33:39]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [09:33:39]wFMCommunicate OK [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 17 00 00 [09:33:39]Write to MH i2c: E2 08 00 43 00 80 17 00 00 00 00 00 00 C3 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 FD 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 FD 00 43 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 3B [09:33:39]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [09:33:39]wFMCommunicate OK [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 17 00 00 [09:33:39]Write to MH i2c: E2 08 00 44 00 80 17 00 00 00 00 00 00 C4 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 E1 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 E1 00 44 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B2 [09:33:39]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:33:39]wFMCommunicate OK [09:33:39]SAM_PROTO_GetFMData done [09:33:39]requested_item fm.sale_refund.total is exist - process it [09:33:39]requested_item fm.buy.total is exist - process it [09:33:39]requested_item shift.sale.total is exist - process it [09:33:39]SAM_PROTO_GetShiftData [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 13 02 00 [09:33:39]Write to MH i2c: E2 08 00 45 00 80 13 02 00 00 00 00 00 C3 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:33:40]Read from MH i2c: E2 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 FD 00 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 FD 00 45 00 00 AE 04 AA 04 AA 04 6E 04 04 00 29 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 A7 15 35 70 04 03 00 E4 44 31 72 04 03 00 C3 D0 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 A3 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 78 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 B3 [09:33:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 29 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 A7 15 35 70 04 03 00 E4 44 31 72 04 03 00 C3 D0 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 A3 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 47 78 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:33:40]wFMCommunicate OK [09:33:40]wFMCommunicate request_size=4 [09:33:40]MH_SAM_APDU [09:33:40]CAPDU: 80 17 00 00 [09:33:40]Write to MH i2c: E2 08 00 46 00 80 17 00 00 00 00 00 00 C6 [09:33:40]Write i2c OK [09:33:40]MH_I2C_Read... [09:33:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:40]Read from MH i2c: E2 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 FD 00 [09:33:40]MH_I2C_Read... [09:33:40]Read from MH i2c: E2 FD 00 46 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 E8 [09:33:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:33:40]wFMCommunicate OK [09:33:40]wFMCommunicate request_size=4 [09:33:40]MH_SAM_APDU [09:33:40]CAPDU: 80 17 00 00 [09:33:40]Write to MH i2c: E2 08 00 47 00 80 17 00 00 00 00 00 00 C7 [09:33:40]Write i2c OK [09:33:40]MH_I2C_Read... [09:33:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:41]Read from MH i2c: E2 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 FD 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 FD 00 47 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 7E [09:33:41]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:33:41]wFMCommunicate OK [09:33:41]wFMCommunicate request_size=4 [09:33:41]MH_SAM_APDU [09:33:41]CAPDU: 80 17 00 00 [09:33:41]Write to MH i2c: E2 08 00 48 00 80 17 00 00 00 00 00 00 C8 [09:33:41]Write i2c OK [09:33:41]MH_I2C_Read... [09:33:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:41]Read from MH i2c: E2 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 FD 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 FD 00 48 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 3A [09:33:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:33:41]wFMCommunicate OK [09:33:41]wFMCommunicate request_size=4 [09:33:41]MH_SAM_APDU [09:33:41]CAPDU: 80 17 00 00 [09:33:41]Write to MH i2c: E2 08 00 49 00 80 17 00 00 00 00 00 00 C9 [09:33:41]Write i2c OK [09:33:41]MH_I2C_Read... [09:33:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:33:41]Read from MH i2c: E2 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 CB 00 [09:33:41]MH_I2C_Read... [09:33:41]Read from MH i2c: E2 CB 00 49 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B2 [09:33:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:33:41]wFMCommunicate OK [09:33:41]SAM_PROTO_GetShiftData done [09:33:41]requested_item shift.sale.total_cash is exist - process it [09:33:41]requested_item shift.sale_refund.total is exist - process it [09:33:41]requested_item shift.sale_refund.total_cash is exist - process it [09:33:41]requested_item shift.buy.total is exist - process it [09:33:41]requested_item shift.buy.total_cash is exist - process it [09:33:41]produce_requested_data done [09:33:41]produce_requested_data return {"fm.sale.total":100217733.78,"fm.sale_refund.total":548163.00,"fm.buy.total":0.00,"shift.sale.total":34789.51,"shift.sale.total_cash":32289.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:33:41]process_action_free get_value [09:33:41]json_value_free [09:33:41]json_value_free done [09:33:41]process_json_proto returns [09:33:41]Send response to host [09:33:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100217733.78,"fm.sale_refund.total":548163.00,"fm.buy.total":0.00,"shift.sale.total":34789.51,"shift.sale.total_cash":32289.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:33:41]free response buf [09:33:41]execute_script done [09:33:41]execute_script returns [09:33:41]free content buf [09:33:41]Sock 9.Close socket [09:33:41]Sock 9.Thread stoped [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:03]accept exits with 7 [09:35:03]New connection [09:35:03]New thread 3066707300 created [09:35:03]Thread 3066850660 joined [09:35:03]Waiting for new connection... [09:35:03] Sock 7.Parse request [09:35:03]Sock 7.Check first char [09:35:03]Sock 7.First char is OK [09:35:03]request: POST /json_proto HTTP/1.0 [09:35:03]Method: POST [09:35:03]URL: /json_proto [09:35:03]Method is POST - this is cgi request [09:35:03]url: /json_proto [09:35:03]query_string will be loaded in cgi processing [09:35:03]execute_cgi json_proto POST (null) [09:35:03]execute_cgi path=json_proto method=POST [09:35:03]POST find Content-Length [09:35:03]Host: 172.17.56.4:8080 [09:35:03]Content-Length: 677 [09:35:03]Content-Type: application/json [09:35:03] [09:35:03]POST finish read [09:35:03]Found Content-Length = 677 [09:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:35:03]execute_script... [09:35:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:35:03]POST & json_proto [09:35:03]process_json_proto [09:35:03]json parsed OK: [09:35:03]protocol is kg_v1.0 [09:35:03]action value=close_receipt [09:35:03]process_action close_receipt [09:35:03]cmd_close_receipt [09:35:03]MH_GetDate [09:35:03]Write to MH i2c: F0 00 00 4A 00 39 [09:35:03]Write i2c OK [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: F0 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: F0 09 00 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: F0 09 00 4A 00 00 C8 F8 90 66 C9 DC B2 64 B3 [09:35:03]GetLastDocTimeStamp 97 [09:35:03]current date 1720776904 [09:35:03]FM_GetShiftState [09:35:03]SAM_PROTO_GetShiftState [09:35:03]wFMCommunicate request_size=4 [09:35:03]MH_SAM_APDU [09:35:03]CAPDU: 80 13 01 00 [09:35:03]Write to MH i2c: E2 08 00 4B 00 80 13 01 00 00 00 00 00 C8 [09:35:03]Write i2c OK [09:35:03]MH_I2C_Read... [09:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:03]Read from MH i2c: E2 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: E2 0E 00 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: E2 0E 00 4B 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 12 [09:35:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:35:03]wFMCommunicate OK [09:35:03]SAM_PROTO_GetShiftState done [09:35:03]FM_GetShiftState done [09:35:03]opened in 1720744654 [09:35:03]opened+sec_in_day 1720831054 [09:35:03]quantity*price = 50008 [09:35:03]sum+1 = 50009 [09:35:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 42 12.07.2024 09:35 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164121 ФПД: 225495563460781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T093504&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164121&fm=225495563460781&tin=02508201610067®Number=0000000000090829&sum=50000 [09:35:04]StoreToDocumentArchive [09:35:04]shift 445 fd 164121 [09:35:04]save to /storage/0445/doc_00164121 [09:35:04]save last doc name /storage/0445/doc_00164121 to /storage/kkm_last_doc_name [09:35:04]save OK [09:35:04]Clear old archive folders... [09:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:04]tlvbuf is 009F5A60 [09:35:04]SAM_PROTO_ClearQueue [09:35:04]wFMCommunicate request_size=4 [09:35:04]MH_SAM_APDU [09:35:04]CAPDU: 80 09 00 00 [09:35:04]Write to MH i2c: E2 08 00 58 00 80 09 00 00 00 00 00 00 CA [09:35:04]Write i2c OK [09:35:04]MH_I2C_Read... [09:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:04]Read from MH i2c: E2 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 03 00 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 03 00 58 00 00 90 00 CC [09:35:04]RAPDU: 90 00 [09:35:04]wFMCommunicate OK [09:35:04]SAM_PROTO_ClearQueue done [09:35:04]KKMCreateOFDPacket [09:35:04]OFDProtocolAddRootSTLVToBuf [09:35:04]FM_MakeSignedData [09:35:04]FM_MakeSignedData [09:35:04]SAM_PROTO_SignData [09:35:04]wFMCommunicate request_size=4 [09:35:04]MH_SAM_APDU [09:35:04]CAPDU: 80 0D 01 02 [09:35:04]Write to MH i2c: E2 08 00 59 00 80 0D 01 02 00 00 00 00 D2 [09:35:04]Write i2c OK [09:35:04]MH_I2C_Read... [09:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:04]Read from MH i2c: E2 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 03 00 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 03 00 59 00 00 90 00 CD [09:35:04]RAPDU: 90 00 [09:35:04]wFMCommunicate OK [09:35:04]wFMCommunicate request_size=255 [09:35:04]MH_SAM_APDU [09:35:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 00 00 00 F4 03 04 00 C8 F8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 81 02 00 35 04 06 00 CD [09:35:04]Write to MH i2c: E2 02 01 5A 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 00 00 00 F4 03 04 00 C8 F8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 81 02 00 35 04 06 00 CD 00 00 52 [09:35:04]Write i2c OK [09:35:04]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 5A 00 00 90 00 CE [09:35:05]RAPDU: 90 00 [09:35:05]wFMCommunicate OK [09:35:05]wFMCommunicate request_size=10 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 0D 02 02 05 16 46 F5 60 AD [09:35:05]Write to MH i2c: E2 0D 00 5B 00 80 0D 02 02 05 00 16 46 F5 60 AD 00 00 3D [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 5B 00 00 90 00 CF [09:35:05]RAPDU: 90 00 [09:35:05]wFMCommunicate OK [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 0D 03 02 [09:35:05]Write to MH i2c: E2 08 00 5C 00 80 0D 03 02 00 00 00 00 D7 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 0B 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 0B 00 5C 00 00 7D 95 FF D6 E5 99 57 E2 90 00 76 [09:35:05]RAPDU: 7D 95 FF D6 E5 99 57 E2 90 00 [09:35:05]wFMCommunicate OK [09:35:05]SAM_PROTO_SignData done [09:35:05]FM_MakeSignedData done [09:35:05]CreateOFDProtocolMessage [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 11 00 00 [09:35:05]Write to MH i2c: E2 08 00 5D 00 80 11 00 00 00 00 00 00 D7 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 17 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 17 00 5D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [09:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:35:05]wFMCommunicate OK [09:35:05]CreateOFDProtocolMessage done [09:35:05]OFDSenderStorePacket 164121 [09:35:05]StoreOFDPacket docnum=164121 [09:35:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2E 03 07 01 62 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 00 00 00 F4 03 04 00 C8 F8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 81 02 00 35 04 06 00 CD 16 46 F5 60 AD 7D 95 FF D6 E5 99 57 E2 [09:35:05]CheckFolder [09:35:05]dirname=/storage/ofd_packets [09:35:05]CheckFolder done [09:35:05]ProducePacketName [09:35:05]name=ofd_packets/00164121 [09:35:05]NVStorageSaveData ofd_packets/00164121 [09:35:05]File name is /storage/ofd_packets/00164121 [09:35:05]Write 301 bytes [09:35:05]NVStorageSaveData done [09:35:05]OFDSenderStorePacket done [09:35:05]KKMCreateOFDPacket done [09:35:05]NVStorageSaveData kkm_last_timestamp [09:35:05]File name is /storage/kkm_last_timestamp [09:35:05]Write 4 bytes [09:35:05]NVStorageSaveData done [09:35:05]ExternCall_PrintAddStr [09:35:05]wPrintStart [09:35:05]Write to MH i2c: 01 00 00 5E 00 5E [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 07 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 07 00 5E 00 00 00 00 00 00 FF 0F 73 [09:35:05]RasterBufferAndPrint [09:35:05]line Счет N : (1)458199 [09:35:05]line ИНН: 02508201610067 [09:35:05]line Контрольно-Кассовый Чек [09:35:05]line ПРОДАЖА [09:35:05]line ТРК (МРК, ГНК) : 12 [09:35:05]line Товар: 2710124130 [09:35:05]line Аи-92-К-5 [09:35:05]line 7.600 * 65.80 [09:35:05]line = 500.08 [09:35:05]line НДС 12% НСП 1% [09:35:05]line > о реализуемом товаре [09:35:05]line ОКРУГЛЕНИЕ: -0.08 [09:35:05]line ИТОГО: 500.00 [09:35:05]line Внесено: 500.00 [09:35:05]line СДАЧА: 0.00 [09:35:05]line НСП 1% : 4.42 [09:35:05]line НДС 12% : 53.11 [09:35:05]line Наличными: 500.00 [09:35:05]line Безнал.: 0.00 [09:35:05]line Место: АЗС № 72 "Партнер Нефть" [09:35:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:35:05]line СНО: Общий режим [09:35:05]line Чек 42 12.07.2024 09:35 [09:35:05]line Смена: 445 ФФД: 1.0 [09:35:05]line ЗНМ: 0300000160 [09:35:05]line РНМ: 0000000000090829 [09:35:05]line Версия ККМ: 001 [09:35:05]line ФМ: 0000000000874718 [09:35:05]line ФД: 164121 [09:35:05]line ФПД: 225495563460781 [09:35:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T093504&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164121&fm=225495563460781&tin=02508201610067®Number=0000000000090829&sum=50000 [09:35:05]written 0, free lines is 4095 [09:35:05]OFD Sender: Processing packet 164121 [packets to send 104, broken 103] [09:35:05]ProducePacketName [09:35:05]name=ofd_packets/00164121 [09:35:05]OFD Sender: To server: pG, [09:35:05]CommunicateWithHost lk.salyk.kg:30040 [09:35:05]ConnectInit lk.salyk.kg [09:35:05]Connected sock=10 [09: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 34 37 31 38 0F 01 00 00 2E 03 07 01 62 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 00 00 00 F4 03 04 00 C8 F8 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 81 02 00 35 04 06 00 CD 16 46 F5 60 AD 7D 95 FF D6 E5 99 57 E2 [09:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2C BC 47 00 0C 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 34 37 31 38 10 04 04 00 19 81 02 00 F4 03 04 00 5C 9F 90 66 B6 04 01 00 00 13 6D FF DD EF 02 AA D9 [09:35:05]CommunicateWithHost err = 0 [09:35:05]CheckOFDResponse [09:35:05]1017 (14) - 77093643461234 [09:35:05]1041 (16) - 0000000000874718 [09:35:05]1040 (4) - 164121 [09:35:05]1012 (4) - 12.07.2024 03:13 [09:35:05]1206 (1) - 0 [09:35:05]OFD Sender: Remove packet 164121 [09:35:05]ProducePacketName [09:35:05]name=ofd_packets/00164121 [09:35:05]NVStorageDeleteData [09:35:05]Write to MH i2c: 01 00 00 88 00 88 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 07 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 07 00 88 00 00 00 00 00 00 FF 0C 9A [09:35:05]RasterBufferAndPrint [09:35:05]line [09:35:05]line [09:35:05]line [09:35:05]line [09:35:05]line [09:35:05]written 0, free lines is 3333 [09:35:05]MH_Cut [09:35:05]Write to MH i2c: D1 01 00 8F 00 01 61 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: D1 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: D1 01 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: D1 01 00 8F 00 00 60 [09:35:05]Write to MH i2c: 01 00 00 90 00 90 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:06]OFD Sender: No OFD packet to send [09:35:06]*** Cut start [09:35:06]*** Partial cut [09:35:06]*** CUTSNS_PIN = 1 [09:35:06]*** CUTSNS_PIN = 0 [09:35:06]*** Brake cut motor [09:35:07]*** Stop cut motor [09:35:07]*** Cut end [09:35:07]Read from MH i2c: 01 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: 01 07 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 FF 0F A5 [09:35:07]process_action close_receipt done [09:35:07]requested_data is exist [09:35:07]produce_requested_data [09:35:07]requested_item fm.sn is exist - process it [09:35:07]wFMCommunicate request_size=4 [09:35:07]MH_SAM_APDU [09:35:07]CAPDU: 80 11 00 00 [09:35:07]Write to MH i2c: E2 08 00 91 00 80 11 00 00 00 00 00 00 0B [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:07]Read from MH i2c: E2 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 17 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 17 00 91 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [09:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:35:07]wFMCommunicate OK [09:35:07]requested_item fd.num is exist - process it [09:35:07]SAM_PROTO_GetFieldsCounters [09:35:07]wFMCommunicate request_size=4 [09:35:07]MH_SAM_APDU [09:35:07]CAPDU: 80 13 00 00 [09:35:07]Write to MH i2c: E2 08 00 92 00 80 13 00 00 00 00 00 00 0E [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:07]Read from MH i2c: E2 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 62 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 62 00 92 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:07]wFMCommunicate OK [09:35:07]SAM_PROTO_GetFieldsCounters done [09:35:07]requested_item shift.num is exist - process it [09:35:07]requested_item shift.opened is exist - process it [09:35:07]req_shift_opened [09:35:07]FM_GetShiftState [09:35:07]SAM_PROTO_GetShiftState [09:35:07]wFMCommunicate request_size=4 [09:35:07]MH_SAM_APDU [09:35:07]CAPDU: 80 13 01 00 [09:35:07]Write to MH i2c: E2 08 00 93 00 80 13 01 00 00 00 00 00 10 [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:07]Read from MH i2c: E2 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 0E 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 0E 00 93 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5A [09:35:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:35:07]wFMCommunicate OK [09:35:07]SAM_PROTO_GetShiftState done [09:35:07]FM_GetShiftState done [09:35:07]req_shift_opened done [09:35:07]requested_item shift.open_date is exist - process it [09:35:07]req_shift_open_date [09:35:07]req_shift_open_date done [09:35:07]produce_requested_data done [09:35:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164121,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:35:07]process_action_free close_receipt [09:35:07]json_value_free [09:35:07]json_value_free done [09:35:07]process_json_proto returns [09:35:07]Send response to host [09:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164121,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:35:07]free response buf [09:35:07]execute_script done [09:35:07]execute_script returns [09:35:07]free content buf [09:35:07]Sock 7.Close socket [09:35:07]Sock 7.Thread stoped [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:21]accept exits with 9 [09:39:21]New connection [09:39:21]New thread 3066850660 created [09:39:21]Thread 3066707300 joined [09:39:21]Waiting for new connection... [09:39:21] Sock 9.Parse request [09:39:21]Sock 9.Check first char [09:39:21]Sock 9.First char is OK [09:39:21]request: POST /json_proto HTTP/1.0 [09:39:21]Method: POST [09:39:21]URL: /json_proto [09:39:21]Method is POST - this is cgi request [09:39:21]url: /json_proto [09:39:21]query_string will be loaded in cgi processing [09:39:21]execute_cgi json_proto POST (null) [09:39:21]execute_cgi path=json_proto method=POST [09:39:21]POST find Content-Length [09:39:21]Host: 172.17.56.4:8080 [09:39:21]Content-Length: 790 [09:39:21]Content-Type: application/json [09:39:21] [09:39:21]POST finish read [09:39:21]Found Content-Length = 790 [09:39:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458200", "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" : 71.26, "quantity" : 35.000, "sum" : 2494.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2494.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:21]execute_script... [09:39: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)458200", "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" : 71.26, "quantity" : 35.000, "sum" : 2494.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2494.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:21]POST & json_proto [09:39:21]process_json_proto [09:39:21]json parsed OK: [09:39:21]protocol is kg_v1.0 [09:39:21]action value=close_receipt [09:39:21]process_action close_receipt [09:39:21]cmd_close_receipt [09:39:21]MH_GetDate [09:39:21]Write to MH i2c: F0 00 00 94 00 83 [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: F0 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: F0 09 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: F0 09 00 94 00 00 CA F9 90 66 C9 DC B2 64 00 [09:39:21]GetLastDocTimeStamp 1720776904 [09:39:21]current date 1720777162 [09:39:21]FM_GetShiftState [09:39:21]SAM_PROTO_GetShiftState [09:39:21]wFMCommunicate request_size=4 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 13 01 00 [09:39:21]Write to MH i2c: E2 08 00 95 00 80 13 01 00 00 00 00 00 12 [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 0E 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 0E 00 95 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5C [09:39:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:39:21]wFMCommunicate OK [09:39:21]SAM_PROTO_GetShiftState done [09:39:21]FM_GetShiftState done [09:39:21]opened in 1720744654 [09:39:21]opened+sec_in_day 1720831054 [09:39:21]quantity*price = 249410 [09:39:21]sum+1 = 249411 [09:39:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2494.10 НСП 1% : 22.07 НДС 12% : 264.86 Наличными: 0.00 Безнал.: 2494.10 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 43 12.07.2024 09:39 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164122 ФПД: 138178163787193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T093922&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164122&fm=138178163787193&tin=02508201610067®Number=0000000000090829&sum=249410 [09:39:23]StoreToDocumentArchive [09:39:23]shift 445 fd 164122 [09:39:23]save to /storage/0445/doc_00164122 [09:39:23]save last doc name /storage/0445/doc_00164122 to /storage/kkm_last_doc_name [09:39:23]save OK [09:39:23]Clear old archive folders... [09:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:39:23]tlvbuf is 00A13AF0 [09:39:23]SAM_PROTO_ClearQueue [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 09 00 00 [09:39:23]Write to MH i2c: E2 08 00 A2 00 80 09 00 00 00 00 00 00 14 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 03 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 03 00 A2 00 00 90 00 16 [09:39:23]RAPDU: 90 00 [09:39:23]wFMCommunicate OK [09:39:23]SAM_PROTO_ClearQueue done [09:39:23]KKMCreateOFDPacket [09:39:23]OFDProtocolAddRootSTLVToBuf [09:39:23]FM_MakeSignedData [09:39:23]FM_MakeSignedData [09:39:23]SAM_PROTO_SignData [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 0D 01 02 [09:39:23]Write to MH i2c: E2 08 00 A3 00 80 0D 01 02 00 00 00 00 1C [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 03 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 03 00 A3 00 00 90 00 17 [09:39:23]RAPDU: 90 00 [09:39:23]wFMCommunicate OK [09:39:23]wFMCommunicate request_size=255 [09:39:23]MH_SAM_APDU [09:39: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 B8 88 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 42 CE 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 CE 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 CE 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CA F9 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 81 02 00 35 04 06 00 7D AC 1C 5E [09:39:23]Write to MH i2c: E2 02 01 A4 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 42 CE 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 CE 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 CE 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CA F9 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 81 02 00 35 04 06 00 7D AC 1C 5E 00 00 4F [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 03 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 03 00 A4 00 00 90 00 18 [09:39:23]RAPDU: 90 00 [09:39:23]wFMCommunicate OK [09:39:23]wFMCommunicate request_size=7 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 0D 02 02 02 45 B9 [09:39:23]Write to MH i2c: E2 0A 00 A5 00 80 0D 02 02 02 00 45 B9 00 00 21 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 03 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 03 00 A5 00 00 90 00 19 [09:39:23]RAPDU: 90 00 [09:39:23]wFMCommunicate OK [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 0D 03 02 [09:39:23]Write to MH i2c: E2 08 00 A6 00 80 0D 03 02 00 00 00 00 21 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 0B 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 0B 00 A6 00 00 25 75 AC 7C 04 FF 1D D6 90 00 DA [09:39:23]RAPDU: 25 75 AC 7C 04 FF 1D D6 90 00 [09:39:23]wFMCommunicate OK [09:39:23]SAM_PROTO_SignData done [09:39:23]FM_MakeSignedData done [09:39:23]CreateOFDProtocolMessage [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 11 00 00 [09:39:23]Write to MH i2c: E2 08 00 A7 00 80 11 00 00 00 00 00 00 21 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 17 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 17 00 A7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [09:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:39:23]wFMCommunicate OK [09:39:23]CreateOFDProtocolMessage done [09:39:23]OFDSenderStorePacket 164122 [09:39:23]StoreOFDPacket docnum=164122 [09:39:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 5B 04 01 9C 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 B8 88 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 42 CE 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 CE 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 CE 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CA F9 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 81 02 00 35 04 06 00 7D AC 1C 5E 45 B9 25 75 AC 7C 04 FF 1D D6 [09:39:23]CheckFolder [09:39:23]dirname=/storage/ofd_packets [09:39:23]CheckFolder done [09:39:23]ProducePacketName [09:39:23]name=ofd_packets/00164122 [09:39:23]NVStorageSaveData ofd_packets/00164122 [09:39:23]File name is /storage/ofd_packets/00164122 [09:39:23]Write 298 bytes [09:39:23]NVStorageSaveData done [09:39:23]OFDSenderStorePacket done [09:39:23]KKMCreateOFDPacket done [09:39:23]NVStorageSaveData kkm_last_timestamp [09:39:23]File name is /storage/kkm_last_timestamp [09:39:23]Write 4 bytes [09:39:23]NVStorageSaveData done [09:39:23]ExternCall_PrintAddStr [09:39:23]wPrintStart [09:39:23]Write to MH i2c: 01 00 00 A8 00 A8 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: 01 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: 01 07 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: 01 07 00 A8 00 00 00 00 00 00 FF 0F BD [09:39:23]RasterBufferAndPrint [09:39:23]line Счет N : (1)458200 [09:39:23]line ИНН: 02508201610067 [09:39:23]line Контрольно-Кассовый Чек [09:39:23]line ПРОДАЖА [09:39:23]line ТРК (МРК, ГНК) : 21 [09:39:23]line Товар: 2710194210 [09:39:23]line ДТ-К-5 [09:39:23]line 35.000 * 71.26 [09:39:23]line = 2494.10 [09:39:23]line НДС 12% НСП 1% [09:39:23]line > о реализуемом товаре [09:39:23]line ИТОГО: 2494.10 [09:39:23]line НСП 1% : 22.07 [09:39:23]line НДС 12% : 264.86 [09:39:23]line Наличными: 0.00 [09:39:23]line Безнал.: 2494.10 [09:39:23]line Место: АЗС № 72 "Партнер Нефть" [09:39:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:39:23]line СНО: Общий режим [09:39:23]line Чек 43 12.07.2024 09:39 [09:39:23]line Смена: 445 ФФД: 1.0 [09:39:23]line ЗНМ: 0300000160 [09:39:23]line РНМ: 0000000000090829 [09:39:23]line Версия ККМ: 001 [09:39:23]line Платежная система: KICB Банк [09:39:23]line ФМ: 0000000000874718 [09:39:23]line ФД: 164122 [09:39:23]line ФПД: 138178163787193 [09:39:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T093922&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164122&fm=138178163787193&tin=02508201610067®Number=0000000000090829&sum=249410 [09:39:23]OFD Sender: Processing packet 164122 [packets to send 104, broken 103] [09:39:23]ProducePacketName [09:39:23]name=ofd_packets/00164122 [09:39:23]OFD Sender: To server: pG, [09:39:23]CommunicateWithHost lk.salyk.kg:30040 [09:39:23]ConnectInit lk.salyk.kg [09:39:23]written 0, free lines is 4095 [09:39:24]Connected sock=10 [09:39:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 5B 04 01 9C 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 B8 88 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 42 CE 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 CE 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 CE 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CA F9 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 81 02 00 35 04 06 00 7D AC 1C 5E 45 B9 25 75 AC 7C 04 FF 1D D6 [09:39:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B3 73 47 00 FE 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 34 37 31 38 10 04 04 00 1A 81 02 00 F4 03 04 00 5F A0 90 66 B6 04 01 00 00 E9 04 E9 0F EE E3 A2 8F [09:39:24]CommunicateWithHost err = 0 [09:39:24]CheckOFDResponse [09:39:24]1017 (14) - 77093643461234 [09:39:24]1041 (16) - 0000000000874718 [09:39:24]1040 (4) - 164122 [09:39:24]1012 (4) - 12.07.2024 03:17 [09:39:24]1206 (1) - 0 [09:39:24]OFD Sender: Remove packet 164122 [09:39:24]ProducePacketName [09:39:24]name=ofd_packets/00164122 [09:39:24]NVStorageDeleteData [09:39:24]Write to MH i2c: 01 00 00 D1 00 D1 [09:39:24]Write i2c OK [09:39:24]MH_I2C_Read... [09:39:24]Read from MH i2c: 01 [09:39:24]MH_I2C_Read... [09:39:24]Read from MH i2c: 01 07 00 [09:39:24]MH_I2C_Read... [09:39:24]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 02 0D E7 [09:39:24]RasterBufferAndPrint [09:39:24]line [09:39:24]line [09:39:24]line [09:39:24]line [09:39:24]line [09:39:24]written 0, free lines is 3336 [09:39:24]MH_Cut [09:39:24]Write to MH i2c: D1 01 00 D8 00 01 AA [09:39:24]Write i2c OK [09:39:24]MH_I2C_Read... [09:39:24]Read from MH i2c: D1 [09:39:24]MH_I2C_Read... [09:39:24]Read from MH i2c: D1 01 00 [09:39:24]MH_I2C_Read... [09:39:24]Read from MH i2c: D1 01 00 D8 00 00 A9 [09:39:24]Write to MH i2c: 01 00 00 D9 00 D9 [09:39:24]Write i2c OK [09:39:24]MH_I2C_Read... [09:39:24]OFD Sender: No OFD packet to send [09:39:25]*** Cut start [09:39:25]*** Partial cut [09:39:25]*** CUTSNS_PIN = 1 [09:39:25]*** CUTSNS_PIN = 0 [09:39:25]*** Brake cut motor [09:39:25]Read from MH i2c: 01 [09:39:25]MH_I2C_Read... [09:39:25]*** Stop cut motor [09:39:25]*** Cut end [09:39:25]Read from MH i2c: 01 07 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 FF 0F EE [09:39:25]process_action close_receipt done [09:39:25]requested_data is exist [09:39:25]produce_requested_data [09:39:25]requested_item fm.sn is exist - process it [09:39:25]wFMCommunicate request_size=4 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 11 00 00 [09:39:25]Write to MH i2c: E2 08 00 DA 00 80 11 00 00 00 00 00 00 54 [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 17 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 17 00 DA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [09:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:39:25]wFMCommunicate OK [09:39:25]requested_item fd.num is exist - process it [09:39:25]SAM_PROTO_GetFieldsCounters [09:39:25]wFMCommunicate request_size=4 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 13 00 00 [09:39:25]Write to MH i2c: E2 08 00 DB 00 80 13 00 00 00 00 00 00 57 [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 62 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 62 00 DB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:25]wFMCommunicate OK [09:39:25]SAM_PROTO_GetFieldsCounters done [09:39:25]requested_item shift.num is exist - process it [09:39:25]requested_item shift.opened is exist - process it [09:39:25]req_shift_opened [09:39:25]FM_GetShiftState [09:39:25]SAM_PROTO_GetShiftState [09:39:25]wFMCommunicate request_size=4 [09:39:25]MH_SAM_APDU [09:39:25]CAPDU: 80 13 01 00 [09:39:25]Write to MH i2c: E2 08 00 DC 00 80 13 01 00 00 00 00 00 59 [09:39:25]Write i2c OK [09:39:25]MH_I2C_Read... [09:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:25]Read from MH i2c: E2 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 0E 00 [09:39:25]MH_I2C_Read... [09:39:25]Read from MH i2c: E2 0E 00 DC 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A3 [09:39:25]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:39:25]wFMCommunicate OK [09:39:25]SAM_PROTO_GetShiftState done [09:39:25]FM_GetShiftState done [09:39:25]req_shift_opened done [09:39:25]requested_item shift.open_date is exist - process it [09:39:25]req_shift_open_date [09:39:25]req_shift_open_date done [09:39:25]produce_requested_data done [09:39:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164122,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:39:25]process_action_free close_receipt [09:39:25]json_value_free [09:39:25]json_value_free done [09:39:25]process_json_proto returns [09:39:25]Send response to host [09:39:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164122,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:39:25]free response buf [09:39:25]execute_script done [09:39:25]execute_script returns [09:39:25]free content buf [09:39:25]Sock 9.Close socket [09:39:25]Sock 9.Thread stoped [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:12]accept exits with 7 [09:40:12]New connection [09:40:12]New thread 3066707300 created [09:40:12]Thread 3066850660 joined [09:40:12]Waiting for new connection... [09:40:12] Sock 7.Parse request [09:40:12]Sock 7.Check first char [09:40:12]Sock 7.First char is OK [09:40:12]request: POST /json_proto HTTP/1.0 [09:40:12]Method: POST [09:40:12]URL: /json_proto [09:40:12]Method is POST - this is cgi request [09:40:12]url: /json_proto [09:40:12]query_string will be loaded in cgi processing [09:40:12]execute_cgi json_proto POST (null) [09:40:12]execute_cgi path=json_proto method=POST [09:40:12]POST find Content-Length [09:40:12]Host: 172.17.56.4:8080 [09:40:12]Content-Length: 678 [09:40:12]Content-Type: application/json [09:40:12] [09:40:12]POST finish read [09:40:12]Found Content-Length = 678 [09:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:40:12]execute_script... [09:40: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)458201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:40:12]POST & json_proto [09:40:12]process_json_proto [09:40:12]json parsed OK: [09:40:12]protocol is kg_v1.0 [09:40:12]action value=close_receipt [09:40:12]process_action close_receipt [09:40:12]cmd_close_receipt [09:40:12]MH_GetDate [09:40:12]Write to MH i2c: F0 00 00 DD 00 CC [09:40:12]Write i2c OK [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: F0 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: F0 09 00 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: F0 09 00 DD 00 00 FD F9 90 66 C9 DC B2 64 7C [09:40:12]GetLastDocTimeStamp 1720777162 [09:40:12]current date 1720777213 [09:40:12]FM_GetShiftState [09:40:12]SAM_PROTO_GetShiftState [09:40:12]wFMCommunicate request_size=4 [09:40:12]MH_SAM_APDU [09:40:12]CAPDU: 80 13 01 00 [09:40:12]Write to MH i2c: E2 08 00 DE 00 80 13 01 00 00 00 00 00 5B [09:40:12]Write i2c OK [09:40:12]MH_I2C_Read... [09:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:12]Read from MH i2c: E2 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: E2 0E 00 [09:40:12]MH_I2C_Read... [09:40:12]Read from MH i2c: E2 0E 00 DE 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A5 [09:40:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:40:12]wFMCommunicate OK [09:40:12]SAM_PROTO_GetShiftState done [09:40:12]FM_GetShiftState done [09:40:12]opened in 1720744654 [09:40:12]opened+sec_in_day 1720831054 [09:40:12]quantity*price = 70011 [09:40:12]sum+1 = 70012 [09:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 44 12.07.2024 09:40 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164123 ФПД: 273739051756975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T094013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164123&fm=273739051756975&tin=02508201610067®Number=0000000000090829&sum=70000 [09:40:14]StoreToDocumentArchive [09:40:14]shift 445 fd 164123 [09:40:14]save to /storage/0445/doc_00164123 [09:40:14]save last doc name /storage/0445/doc_00164123 to /storage/kkm_last_doc_name [09:40:14]save OK [09:40:14]Clear old archive folders... [09:40:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:14]tlvbuf is 009E0C40 [09:40:14]SAM_PROTO_ClearQueue [09:40:14]wFMCommunicate request_size=4 [09:40:14]MH_SAM_APDU [09:40:14]CAPDU: 80 09 00 00 [09:40:14]Write to MH i2c: E2 08 00 EB 00 80 09 00 00 00 00 00 00 5D [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:14]Read from MH i2c: E2 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 03 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 03 00 EB 00 00 90 00 5F [09:40:14]RAPDU: 90 00 [09:40:14]wFMCommunicate OK [09:40:14]SAM_PROTO_ClearQueue done [09:40:14]KKMCreateOFDPacket [09:40:14]OFDProtocolAddRootSTLVToBuf [09:40:14]FM_MakeSignedData [09:40:14]FM_MakeSignedData [09:40:14]SAM_PROTO_SignData [09:40:14]wFMCommunicate request_size=4 [09:40:14]MH_SAM_APDU [09:40:14]CAPDU: 80 0D 01 02 [09:40:14]Write to MH i2c: E2 08 00 EC 00 80 0D 01 02 00 00 00 00 65 [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:14]Read from MH i2c: E2 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 03 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 03 00 EC 00 00 90 00 60 [09:40:14]RAPDU: 90 00 [09:40:14]wFMCommunicate OK [09:40:14]wFMCommunicate request_size=255 [09:40:14]MH_SAM_APDU [09:40: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FD F9 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 81 02 00 35 04 06 00 F8 [09:40:14]Write to MH i2c: E2 02 01 ED 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FD F9 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 81 02 00 35 04 06 00 F8 00 00 8E [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:14]Read from MH i2c: E2 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 03 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 03 00 ED 00 00 90 00 61 [09:40:14]RAPDU: 90 00 [09:40:14]wFMCommunicate OK [09:40:14]wFMCommunicate request_size=10 [09:40:14]MH_SAM_APDU [09:40:14]CAPDU: 80 0D 02 02 05 F6 D6 F0 ED AF [09:40:14]Write to MH i2c: E2 0D 00 EE 00 80 0D 02 02 05 00 F6 D6 F0 ED AF 00 00 CA [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:14]Read from MH i2c: E2 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 03 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 03 00 EE 00 00 90 00 62 [09:40:14]RAPDU: 90 00 [09:40:14]wFMCommunicate OK [09:40:14]wFMCommunicate request_size=4 [09:40:14]MH_SAM_APDU [09:40:14]CAPDU: 80 0D 03 02 [09:40:14]Write to MH i2c: E2 08 00 EF 00 80 0D 03 02 00 00 00 00 6A [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:14]Read from MH i2c: E2 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 0B 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 0B 00 EF 00 00 CC 87 E8 59 55 7D BD F8 90 00 86 [09:40:14]RAPDU: CC 87 E8 59 55 7D BD F8 90 00 [09:40:14]wFMCommunicate OK [09:40:14]SAM_PROTO_SignData done [09:40:14]FM_MakeSignedData done [09:40:14]CreateOFDProtocolMessage [09:40:14]wFMCommunicate request_size=4 [09:40:14]MH_SAM_APDU [09:40:14]CAPDU: 80 11 00 00 [09:40:14]Write to MH i2c: E2 08 00 F0 00 80 11 00 00 00 00 00 00 6A [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:14]Read from MH i2c: E2 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 17 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: E2 17 00 F0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [09:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:40:14]wFMCommunicate OK [09:40:14]CreateOFDProtocolMessage done [09:40:14]OFDSenderStorePacket 164123 [09:40:14]StoreOFDPacket docnum=164123 [09:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC F9 07 01 6C 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FD F9 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 81 02 00 35 04 06 00 F8 F6 D6 F0 ED AF CC 87 E8 59 55 7D BD F8 [09:40:14]CheckFolder [09:40:14]dirname=/storage/ofd_packets [09:40:14]CheckFolder done [09:40:14]ProducePacketName [09:40:14]name=ofd_packets/00164123 [09:40:14]NVStorageSaveData ofd_packets/00164123 [09:40:14]File name is /storage/ofd_packets/00164123 [09:40:14]Write 301 bytes [09:40:14]NVStorageSaveData done [09:40:14]OFDSenderStorePacket done [09:40:14]KKMCreateOFDPacket done [09:40:14]NVStorageSaveData kkm_last_timestamp [09:40:14]File name is /storage/kkm_last_timestamp [09:40:14]Write 4 bytes [09:40:14]NVStorageSaveData done [09:40:14]OFD Sender: Processing packet 164123 [packets to send 104, broken 103] [09:40:14]ProducePacketName [09:40:14]name=ofd_packets/00164123 [09:40:14]OFD Sender: To server: pG, [09:40:14]CommunicateWithHost lk.salyk.kg:30040 [09:40:14]ConnectInit lk.salyk.kg [09:40:14]ExternCall_PrintAddStr [09:40:14]wPrintStart [09:40:14]Write to MH i2c: 01 00 00 F1 00 F1 [09:40:14]Write i2c OK [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: 01 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: 01 07 00 [09:40:14]MH_I2C_Read... [09:40:14]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 FF 0F 06 [09:40:14]RasterBufferAndPrint [09:40:14]line Счет N : (1)458201 [09:40:14]line ИНН: 02508201610067 [09:40:14]line Контрольно-Кассовый Чек [09:40:14]line ПРОДАЖА [09:40:14]line ТРК (МРК, ГНК) : 12 [09:40:14]line Товар: 2710124130 [09:40:14]line Аи-92-К-5 [09:40:14]line 10.640 * 65.80 [09:40:14]line = 700.11 [09:40:14]line НДС 12% НСП 1% [09:40:14]line > о реализуемом товаре [09:40:14]line ОКРУГЛЕНИЕ: -0.11 [09:40:14]line ИТОГО: 700.00 [09:40:14]line Внесено: 700.00 [09:40:14]line СДАЧА: 0.00 [09:40:14]line НСП 1% : 6.20 [09:40:14]line НДС 12% : 74.35 [09:40:14]line Наличными: 700.00 [09:40:14]line Безнал.: 0.00 [09:40:14]line Место: АЗС № 72 "Партнер Нефть" [09:40:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:40:14]line СНО: Общий режим [09:40:14]line Чек 44 12.07.2024 09:40 [09:40:14]line Смена: 445 ФФД: 1.0 [09:40:14]line ЗНМ: 0300000160 [09:40:14]line РНМ: 0000000000090829 [09:40:14]line Версия ККМ: 001 [09:40:14]line ФМ: 0000000000874718 [09:40:14]line ФД: 164123 [09:40:14]line ФПД: 273739051756975 [09:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T094013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164123&fm=273739051756975&tin=02508201610067®Number=0000000000090829&sum=70000 [09:40:14]Connected sock=11 [09:40:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC F9 07 01 6C 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FD F9 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 81 02 00 35 04 06 00 F8 F6 D6 F0 ED AF CC 87 E8 59 55 7D BD F8 [09:40:15]written 0, free lines is 4095 [09:40:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2F 83 47 00 6D 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 34 37 31 38 10 04 04 00 1B 81 02 00 F4 03 04 00 92 A0 90 66 B6 04 01 00 00 DC 30 63 87 B7 D5 CD 3E [09:40:15]CommunicateWithHost err = 0 [09:40:15]CheckOFDResponse [09:40:15]1017 (14) - 77093643461234 [09:40:15]1041 (16) - 0000000000874718 [09:40:15]1040 (4) - 164123 [09:40:15]1012 (4) - 12.07.2024 03:18 [09:40:15]1206 (1) - 0 [09:40:15]OFD Sender: Remove packet 164123 [09:40:15]ProducePacketName [09:40:15]name=ofd_packets/00164123 [09:40:15]NVStorageDeleteData [09:40:15]Write to MH i2c: 01 00 00 1B 01 1C [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: 01 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: 01 07 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: 01 07 00 1B 01 00 00 00 00 00 F2 0C 21 [09:40:15]RasterBufferAndPrint [09:40:15]line [09:40:15]line [09:40:15]line [09:40:15]line [09:40:15]line [09:40:15]written 0, free lines is 3320 [09:40:15]MH_Cut [09:40:15]Write to MH i2c: D1 01 00 22 01 01 F5 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: D1 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: D1 01 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: D1 01 00 22 01 00 F4 [09:40:15]Write to MH i2c: 01 00 00 23 01 24 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]OFD Sender: No OFD packet to send [09:40:16]*** Cut start [09:40:16]*** Partial cut [09:40:16]*** CUTSNS_PIN = 1 [09:40:16]*** CUTSNS_PIN = 0 [09:40:16]*** Brake cut motor [09:40:16]Read from MH i2c: 01 [09:40:16]MH_I2C_Read... [09:40:16]*** Stop cut motor [09:40:16]*** Cut end [09:40:16]Read from MH i2c: 01 07 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: 01 07 00 23 01 00 00 00 00 00 FF 0F 39 [09:40:16]process_action close_receipt done [09:40:16]requested_data is exist [09:40:16]produce_requested_data [09:40:16]requested_item fm.sn is exist - process it [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 11 00 00 [09:40:16]Write to MH i2c: E2 08 00 24 01 80 11 00 00 00 00 00 00 9F [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 17 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 17 00 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [09:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:40:16]wFMCommunicate OK [09:40:16]requested_item fd.num is exist - process it [09:40:16]SAM_PROTO_GetFieldsCounters [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 13 00 00 [09:40:16]Write to MH i2c: E2 08 00 25 01 80 13 00 00 00 00 00 00 A2 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 62 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 62 00 25 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [09:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_GetFieldsCounters done [09:40:16]requested_item shift.num is exist - process it [09:40:16]requested_item shift.opened is exist - process it [09:40:16]req_shift_opened [09:40:16]FM_GetShiftState [09:40:16]SAM_PROTO_GetShiftState [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 13 01 00 [09:40:16]Write to MH i2c: E2 08 00 26 01 80 13 01 00 00 00 00 00 A4 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0E 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0E 00 26 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EE [09:40:16]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_GetShiftState done [09:40:16]FM_GetShiftState done [09:40:16]req_shift_opened done [09:40:16]requested_item shift.open_date is exist - process it [09:40:16]req_shift_open_date [09:40:16]req_shift_open_date done [09:40:16]produce_requested_data done [09:40:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164123,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:40:16]process_action_free close_receipt [09:40:16]json_value_free [09:40:16]json_value_free done [09:40:16]process_json_proto returns [09:40:16]Send response to host [09:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164123,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:40:16]free response buf [09:40:16]execute_script done [09:40:16]execute_script returns [09:40:16]free content buf [09:40:16]Sock 7.Close socket [09:40:16]Sock 7.Thread stoped [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:04]accept exits with 9 [09:41:04]New connection [09:41:04]New thread 3066850660 created [09:41:04]Thread 3066707300 joined [09:41:04]Waiting for new connection... [09:41:04] Sock 9.Parse request [09:41:04]Sock 9.Check first char [09:41:04]Sock 9.First char is OK [09:41:04]request: POST /json_proto HTTP/1.0 [09:41:04]Method: POST [09:41:04]URL: /json_proto [09:41:04]Method is POST - this is cgi request [09:41:04]url: /json_proto [09:41:04]query_string will be loaded in cgi processing [09:41:04]execute_cgi json_proto POST (null) [09:41:04]execute_cgi path=json_proto method=POST [09:41:04]POST find Content-Length [09:41:04]Host: 172.17.56.4:8080 [09:41:04]Content-Length: 1185 [09:41:04]Content-Type: application/json [09:41:04] [09:41:04]POST finish read [09:41:04]Found Content-Length = 1185 [09:41:04]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458202\u000A12.07.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 719.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32771\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:04]execute_script... [09:41:04]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458202\u000A12.07.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 719.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32771\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:04]POST & json_proto [09:41:04]process_json_proto [09:41:04]json parsed OK: [09:41:04]protocol is kg_v1.0 [09:41:04]action value=print_text [09:41:04]process_action print_text [09:41:04]cmd_print_text [09:41:04]ExternCall_PrintAddStr [09:41:04]wPrintStart [09:41:04]Write to MH i2c: 01 00 00 27 01 28 [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: 01 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: 01 07 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: 01 07 00 27 01 00 00 00 00 00 FF 0F 3D [09:41:04]RasterBufferAndPrint [09:41:04]line *****ТОВАРНЫЙ ЧЕК***** [09:41:04]line АЗС 72 [09:41:04]line Партнер нефть [09:41:04]line 02508201610067 [09:41:04]line Кассир : Садыков Н. [09:41:04]line Счет N : (1)458202 [09:41:04]line 12.07.2024 09:06 [09:41:04]line ПРОДАЖА [09:41:04]line ТРК (МРК, ГНК): 11 [09:41:04]line Вид ГСМ : 2710194210 [09:41:04]line ДТ-К-5 [09:41:04]line 10.000 x 71.90 [09:41:04]line ИТОГ: 719.00 [09:41:04]line Тип оплаты: Талоны: Топливная Карта [09:41:04]line 32771 [09:41:04]line ______________________ [09:41:04]line (подпись) [09:41:04]written 0, free lines is 4095 [09:41:04]Write to MH i2c: 01 00 00 3B 01 3C [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: 01 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: 01 07 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 0C 0E 5D [09:41:04]RasterBufferAndPrint [09:41:04]line [09:41:04]line [09:41:04]line [09:41:04]line [09:41:04]line [09:41:04]written 0, free lines is 3597 [09:41:04]MH_Cut [09:41:04]Write to MH i2c: D1 01 00 42 01 01 15 [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: D1 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: D1 01 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: D1 01 00 42 01 00 14 [09:41:04]Write to MH i2c: 01 00 00 43 01 44 [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:05]*** Cut start [09:41:05]*** Partial cut [09:41:05]*** CUTSNS_PIN = 1 [09:41:05]*** CUTSNS_PIN = 0 [09:41:05]*** Brake cut motor [09:41:05]Read from MH i2c: 01 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: 01 07 00 [09:41:05]MH_I2C_Read... [09:41:05]*** Stop cut motor [09:41:05]*** Cut end [09:41:05]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [09:41:05]process_action print_text done [09:41:05]requested_data is exist [09:41:05]produce_requested_data [09:41:05]requested_item fm.sn is exist - process it [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 11 00 00 [09:41:05]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]OFD Sender: No OFD packet to send [09:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 17 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [09:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:41:05]wFMCommunicate OK [09:41:05]requested_item fd.num is exist - process it [09:41:05]SAM_PROTO_GetFieldsCounters [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 13 00 00 [09:41:05]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 62 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [09:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:05]wFMCommunicate OK [09:41:05]SAM_PROTO_GetFieldsCounters done [09:41:05]requested_item shift.num is exist - process it [09:41:05]requested_item shift.opened is exist - process it [09:41:05]req_shift_opened [09:41:05]FM_GetShiftState [09:41:05]SAM_PROTO_GetShiftState [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 13 01 00 [09:41:05]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 0E 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0E [09:41:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:41:05]wFMCommunicate OK [09:41:05]SAM_PROTO_GetShiftState done [09:41:05]FM_GetShiftState done [09:41:05]req_shift_opened done [09:41:05]requested_item shift.open_date is exist - process it [09:41:05]req_shift_open_date [09:41:05]req_shift_open_date done [09:41:05]produce_requested_data done [09:41:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164123,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:41:05]process_action_free print_text [09:41:05]json_value_free [09:41:05]json_value_free done [09:41:05]process_json_proto returns [09:41:05]Send response to host [09:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164123,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:41:05]free response buf [09:41:05]execute_script done [09:41:05]execute_script returns [09:41:05]free content buf [09:41:05]Sock 9.Close socket [09:41:05]Sock 9.Thread stoped [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:31]accept exits with 7 [09:42:31]New connection [09:42:31]New thread 3066707300 created [09:42:31]Thread 3066850660 joined [09:42:31]Waiting for new connection... [09:42:31] Sock 7.Parse request [09:42:31]Sock 7.Check first char [09:42:31]Sock 7.First char is OK [09:42:31]request: POST /json_proto HTTP/1.0 [09:42:31]Method: POST [09:42:31]URL: /json_proto [09:42:31]Method is POST - this is cgi request [09:42:31]url: /json_proto [09:42:31]query_string will be loaded in cgi processing [09:42:31]execute_cgi json_proto POST (null) [09:42:31]execute_cgi path=json_proto method=POST [09:42:31]POST find Content-Length [09:42:31]Host: 172.17.56.4:8080 [09:42:31]Content-Length: 677 [09:42:31]Content-Type: application/json [09:42:31] [09:42:31]POST finish read [09:42:31]Found Content-Length = 677 [09:42:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:31]execute_script... [09:42: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)458203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:31]POST & json_proto [09:42:31]process_json_proto [09:42:31]json parsed OK: [09:42:31]protocol is kg_v1.0 [09:42:31]action value=close_receipt [09:42:31]process_action close_receipt [09:42:31]cmd_close_receipt [09:42:31]MH_GetDate [09:42:31]Write to MH i2c: F0 00 00 47 01 37 [09:42:31]Write i2c OK [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: F0 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: F0 09 00 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: F0 09 00 47 01 00 88 FA 90 66 C9 DC B2 64 73 [09:42:31]GetLastDocTimeStamp 1720777213 [09:42:31]current date 1720777352 [09:42:31]FM_GetShiftState [09:42:31]SAM_PROTO_GetShiftState [09:42:31]wFMCommunicate request_size=4 [09:42:31]MH_SAM_APDU [09:42:31]CAPDU: 80 13 01 00 [09:42:31]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [09:42:31]Write i2c OK [09:42:31]MH_I2C_Read... [09:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:32]Read from MH i2c: E2 [09:42:32]MH_I2C_Read... [09:42:32]Read from MH i2c: E2 0E 00 [09:42:32]MH_I2C_Read... [09:42:32]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 10 [09:42:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:42:32]wFMCommunicate OK [09:42:32]SAM_PROTO_GetShiftState done [09:42:32]FM_GetShiftState done [09:42:32]opened in 1720744654 [09:42:32]opened+sec_in_day 1720831054 [09:42:32]quantity*price = 32044 [09:42:32]sum+1 = 32046 [09:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 45 12.07.2024 09:42 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164124 ФПД: 247797903590793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T094232&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164124&fm=247797903590793&tin=02508201610067®Number=0000000000090829&sum=32000 [09:42:33]StoreToDocumentArchive [09:42:33]shift 445 fd 164124 [09:42:33]save to /storage/0445/doc_00164124 [09:42:33]save last doc name /storage/0445/doc_00164124 to /storage/kkm_last_doc_name [09:42:33]save OK [09:42:33]Clear old archive folders... [09:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:33]tlvbuf is 009EAF80 [09:42:33]SAM_PROTO_ClearQueue [09:42:33]wFMCommunicate request_size=4 [09:42:33]MH_SAM_APDU [09:42:33]CAPDU: 80 09 00 00 [09:42:33]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [09:42:33]Write i2c OK [09:42:33]MH_I2C_Read... [09:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:33]Read from MH i2c: E2 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 03 00 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [09:42:33]RAPDU: 90 00 [09:42:33]wFMCommunicate OK [09:42:33]SAM_PROTO_ClearQueue done [09:42:33]KKMCreateOFDPacket [09:42:33]OFDProtocolAddRootSTLVToBuf [09:42:33]FM_MakeSignedData [09:42:33]FM_MakeSignedData [09:42:33]SAM_PROTO_SignData [09:42:33]wFMCommunicate request_size=4 [09:42:33]MH_SAM_APDU [09:42:33]CAPDU: 80 0D 01 02 [09:42:33]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [09:42:33]Write i2c OK [09:42:33]MH_I2C_Read... [09:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:33]Read from MH i2c: E2 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 03 00 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [09:42:33]RAPDU: 90 00 [09:42:33]wFMCommunicate OK [09:42:33]wFMCommunicate request_size=255 [09:42:33]MH_SAM_APDU [09: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 88 FA 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 81 02 00 35 04 06 00 E1 [09:42:33]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 88 FA 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 81 02 00 35 04 06 00 E1 00 00 C2 [09:42:33]Write i2c OK [09:42:33]MH_I2C_Read... [09:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:33]Read from MH i2c: E2 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 03 00 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [09:42:33]RAPDU: 90 00 [09:42:33]wFMCommunicate OK [09:42:33]wFMCommunicate request_size=10 [09:42:33]MH_SAM_APDU [09:42:33]CAPDU: 80 0D 02 02 05 5E F2 05 05 89 [09:42:33]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 5E F2 05 05 89 00 00 C0 [09:42:33]Write i2c OK [09:42:33]MH_I2C_Read... [09:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:33]Read from MH i2c: E2 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 03 00 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [09:42:33]RAPDU: 90 00 [09:42:33]wFMCommunicate OK [09:42:33]wFMCommunicate request_size=4 [09:42:33]MH_SAM_APDU [09:42:33]CAPDU: 80 0D 03 02 [09:42:33]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [09:42:33]Write i2c OK [09:42:33]MH_I2C_Read... [09:42:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:33]Read from MH i2c: E2 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 0B 00 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 0B 00 59 01 00 CA AF DE 08 E3 18 6A 90 90 00 2A [09:42:33]RAPDU: CA AF DE 08 E3 18 6A 90 90 00 [09:42:33]wFMCommunicate OK [09:42:33]SAM_PROTO_SignData done [09:42:33]FM_MakeSignedData done [09:42:33]CreateOFDProtocolMessage [09:42:33]wFMCommunicate request_size=4 [09:42:33]MH_SAM_APDU [09:42:33]CAPDU: 80 11 00 00 [09:42:33]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [09:42:33]Write i2c OK [09:42:33]MH_I2C_Read... [09:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:33]Read from MH i2c: E2 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 17 00 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [09:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:42:33]wFMCommunicate OK [09:42:33]CreateOFDProtocolMessage done [09:42:33]OFDSenderStorePacket 164124 [09:42:33]StoreOFDPacket docnum=164124 [09:42:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC E6 07 01 4A 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 88 FA 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 81 02 00 35 04 06 00 E1 5E F2 05 05 89 CA AF DE 08 E3 18 6A 90 [09:42:33]CheckFolder [09:42:33]dirname=/storage/ofd_packets [09:42:33]CheckFolder done [09:42:33]ProducePacketName [09:42:33]name=ofd_packets/00164124 [09:42:33]NVStorageSaveData ofd_packets/00164124 [09:42:33]File name is /storage/ofd_packets/00164124 [09:42:33]Write 301 bytes [09:42:33]NVStorageSaveData done [09:42:33]OFDSenderStorePacket done [09:42:33]KKMCreateOFDPacket done [09:42:33]NVStorageSaveData kkm_last_timestamp [09:42:33]File name is /storage/kkm_last_timestamp [09:42:33]Write 4 bytes [09:42:33]NVStorageSaveData done [09:42:33]ExternCall_PrintAddStr [09:42:33]wPrintStart [09:42:33]Write to MH i2c: 01 00 00 5B 01 5C [09:42:33]Write i2c OK [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: 01 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: 01 07 00 [09:42:33]MH_I2C_Read... [09:42:33]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [09:42:33]RasterBufferAndPrint [09:42:33]line Счет N : (1)458203 [09:42:33]line ИНН: 02508201610067 [09:42:33]line Контрольно-Кассовый Чек [09:42:33]line ПРОДАЖА [09:42:33]line ТРК (МРК, ГНК) : 12 [09:42:33]line Товар: 2710124130 [09:42:33]line Аи-92-К-5 [09:42:33]line 4.870 * 65.80 [09:42:33]line = 320.45 [09:42:33]line НДС 12% НСП 1% [09:42:33]line > о реализуемом товаре [09:42:33]line ОКРУГЛЕНИЕ: -0.45 [09:42:33]line ИТОГО: 320.00 [09:42:33]line Внесено: 320.00 [09:42:33]line СДАЧА: 0.00 [09:42:33]line НСП 1% : 2.84 [09:42:33]line НДС 12% : 34.03 [09:42:33]line Наличными: 320.00 [09:42:33]line Безнал.: 0.00 [09:42:33]line Место: АЗС № 72 "Партнер Нефть" [09:42:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:42:33]line СНО: Общий режим [09:42:33]line Чек 45 12.07.2024 09:42 [09:42:33]line Смена: 445 ФФД: 1.0 [09:42:33]line ЗНМ: 0300000160 [09:42:33]line РНМ: 0000000000090829 [09:42:33]line Версия ККМ: 001 [09:42:33]line ФМ: 0000000000874718 [09:42:33]line ФД: 164124 [09:42:33]line ФПД: 247797903590793 [09:42:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T094232&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164124&fm=247797903590793&tin=02508201610067®Number=0000000000090829&sum=32000 [09:42:34]written 0, free lines is 4095 [09:42:34]OFD Sender: Processing packet 164124 [packets to send 104, broken 103] [09:42:34]ProducePacketName [09:42:34]name=ofd_packets/00164124 [09:42:34]OFD Sender: To server: pG, [09:42:34]CommunicateWithHost lk.salyk.kg:30040 [09:42:34]ConnectInit lk.salyk.kg [09:42:34]Connected sock=10 [09: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 34 37 31 38 0F 01 00 00 EC E6 07 01 4A 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 88 FA 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 81 02 00 35 04 06 00 E1 5E F2 05 05 89 CA AF DE 08 E3 18 6A 90 [09:42:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8B 99 47 00 96 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 81 02 00 F4 03 04 00 1D A1 90 66 B6 04 01 00 00 CB 6C 0E 40 85 C2 34 36 [09:42:34]CommunicateWithHost err = 0 [09:42:34]CheckOFDResponse [09:42:34]1017 (14) - 77093643461234 [09:42:34]1041 (16) - 0000000000874718 [09:42:34]1040 (4) - 164124 [09:42:34]1012 (4) - 12.07.2024 03:21 [09:42:34]1206 (1) - 0 [09:42:34]OFD Sender: Remove packet 164124 [09:42:34]ProducePacketName [09:42:34]name=ofd_packets/00164124 [09:42:34]NVStorageDeleteData [09:42:34]Write to MH i2c: 01 00 00 85 01 86 [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 07 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 F4 0C 8D [09:42:34]RasterBufferAndPrint [09:42:34]line [09:42:34]line [09:42:34]line [09:42:34]line [09:42:34]line [09:42:34]written 0, free lines is 3323 [09:42:34]MH_Cut [09:42:34]Write to MH i2c: D1 01 00 8C 01 01 5F [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: D1 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: D1 01 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: D1 01 00 8C 01 00 5E [09:42:34]Write to MH i2c: 01 00 00 8D 01 8E [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]OFD Sender: No OFD packet to send [09:42:35]*** Cut start [09:42:35]*** Partial cut [09:42:35]*** CUTSNS_PIN = 1 [09:42:35]*** CUTSNS_PIN = 0 [09:42:35]*** Brake cut motor [09:42:35]Read from MH i2c: 01 [09:42:35]MH_I2C_Read... [09:42:35]*** Stop cut motor [09:42:35]*** Cut end [09:42:35]Read from MH i2c: 01 07 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [09:42:35]process_action close_receipt done [09:42:35]requested_data is exist [09:42:35]produce_requested_data [09:42:35]requested_item fm.sn is exist - process it [09:42:35]wFMCommunicate request_size=4 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 11 00 00 [09:42:35]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 17 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [09:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:42:35]wFMCommunicate OK [09:42:35]requested_item fd.num is exist - process it [09:42:35]SAM_PROTO_GetFieldsCounters [09:42:35]wFMCommunicate request_size=4 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 13 00 00 [09:42:35]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 62 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [09:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:35]wFMCommunicate OK [09:42:35]SAM_PROTO_GetFieldsCounters done [09:42:35]requested_item shift.num is exist - process it [09:42:35]requested_item shift.opened is exist - process it [09:42:35]req_shift_opened [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 90 01 80 13 01 00 00 00 00 00 0E [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 90 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 58 [09:42:35]RAPDU: 09 00 01 CE 7A 90 66 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]req_shift_opened done [09:42:35]requested_item shift.open_date is exist - process it [09:42:35]req_shift_open_date [09:42:35]req_shift_open_date done [09:42:35]produce_requested_data done [09:42:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164124,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:42:35]process_action_free close_receipt [09:42:35]json_value_free [09:42:35]json_value_free done [09:42:35]process_json_proto returns [09:42:35]Send response to host [09:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164124,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:42:35]free response buf [09:42:35]execute_script done [09:42:35]execute_script returns [09:42:35]free content buf [09:42:35]Sock 7.Close socket [09:42:35]Sock 7.Thread stoped [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:09]recv_with_timeout no data received [09:47:10]OFD Sender: No OFD packet to send [09:47:12]accept exits with 9 [09:47:12]New connection [09:47:12]New thread 3066850660 created [09:47:12]Thread 3066707300 joined [09:47:12]Waiting for new connection... [09:47:12] Sock 9.Parse request [09:47:12]Sock 9.Check first char [09:47:12]Sock 9.First char is OK [09:47:12]request: POST /json_proto HTTP/1.0 [09:47:12]Method: POST [09:47:12]URL: /json_proto [09:47:12]Method is POST - this is cgi request [09:47:12]url: /json_proto [09:47:12]query_string will be loaded in cgi processing [09:47:12]execute_cgi json_proto POST (null) [09:47:12]execute_cgi path=json_proto method=POST [09:47:12]POST find Content-Length [09:47:12]Host: 172.17.56.4:8080 [09:47:12]Content-Length: 677 [09:47:12]Content-Type: application/json [09:47:12] [09:47:12]POST finish read [09:47:12]Found Content-Length = 677 [09:47:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [09:47:12]execute_script... [09:47: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)458204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [09:47:12]POST & json_proto [09:47:12]process_json_proto [09:47:12]json parsed OK: [09:47:12]protocol is kg_v1.0 [09:47:12]action value=close_receipt [09:47:12]process_action close_receipt [09:47:12]cmd_close_receipt [09:47:12]MH_GetDate [09:47:12]Write to MH i2c: F0 00 00 91 01 81 [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: F0 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: F0 09 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: F0 09 00 91 01 00 A1 FB 90 66 C9 DC B2 64 D7 [09:47:12]GetLastDocTimeStamp 1720777352 [09:47:12]current date 1720777633 [09:47:12]FM_GetShiftState [09:47:12]SAM_PROTO_GetShiftState [09:47:12]wFMCommunicate request_size=4 [09:47:12]MH_SAM_APDU [09:47:12]CAPDU: 80 13 01 00 [09:47:12]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:12]Read from MH i2c: E2 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 0E 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5A [09:47:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:47:12]wFMCommunicate OK [09:47:12]SAM_PROTO_GetShiftState done [09:47:12]FM_GetShiftState done [09:47:12]opened in 1720744654 [09:47:12]opened+sec_in_day 1720831054 [09:47:12]quantity*price = 10001 [09:47:12]sum+1 = 10003 [09:47:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 46 12.07.2024 09:47 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164125 ФПД: 91568535760491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T094713&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164125&fm=91568535760491&tin=02508201610067®Number=0000000000090829&sum=10000 [09:47:14]StoreToDocumentArchive [09:47:14]shift 445 fd 164125 [09:47:14]save to /storage/0445/doc_00164125 [09:47:14]save last doc name /storage/0445/doc_00164125 to /storage/kkm_last_doc_name [09:47:14]save OK [09:47:14]Clear old archive folders... [09:47:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:14]tlvbuf is 00A04150 [09:47:14]SAM_PROTO_ClearQueue [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 09 00 00 [09:47:14]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [09:47:14]RAPDU: 90 00 [09:47:14]wFMCommunicate OK [09:47:14]SAM_PROTO_ClearQueue done [09:47:14]KKMCreateOFDPacket [09:47:14]OFDProtocolAddRootSTLVToBuf [09:47:14]FM_MakeSignedData [09:47:14]FM_MakeSignedData [09:47:14]SAM_PROTO_SignData [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 0D 01 02 [09:47:14]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [09:47:14]RAPDU: 90 00 [09:47:14]wFMCommunicate OK [09:47:14]wFMCommunicate request_size=255 [09:47:14]MH_SAM_APDU [09:47: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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A1 FB 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 81 02 00 35 04 06 00 53 [09:47:14]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A1 FB 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 81 02 00 35 04 06 00 53 00 00 86 [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [09:47:14]RAPDU: 90 00 [09:47:14]wFMCommunicate OK [09:47:14]wFMCommunicate request_size=10 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 0D 02 02 05 47 F6 0B EE 6B [09:47:14]Write to MH i2c: E2 0D 00 A2 01 80 0D 02 02 05 00 47 F6 0B EE 6B 00 00 C8 [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [09:47:14]RAPDU: 90 00 [09:47:14]wFMCommunicate OK [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 0D 03 02 [09:47:14]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 0B 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 0B 00 A3 01 00 5A 9F 45 02 AA DB 41 B8 90 00 DE [09:47:14]RAPDU: 5A 9F 45 02 AA DB 41 B8 90 00 [09:47:14]wFMCommunicate OK [09:47:14]SAM_PROTO_SignData done [09:47:14]FM_MakeSignedData done [09:47:14]CreateOFDProtocolMessage [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 11 00 00 [09:47:14]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 17 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [09:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:47:14]wFMCommunicate OK [09:47:14]CreateOFDProtocolMessage done [09:47:14]OFDSenderStorePacket 164125 [09:47:14]StoreOFDPacket docnum=164125 [09:47:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 91 3D 07 01 96 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A1 FB 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 81 02 00 35 04 06 00 53 47 F6 0B EE 6B 5A 9F 45 02 AA DB 41 B8 [09:47:14]CheckFolder [09:47:14]dirname=/storage/ofd_packets [09:47:14]CheckFolder done [09:47:14]ProducePacketName [09:47:14]name=ofd_packets/00164125 [09:47:14]NVStorageSaveData ofd_packets/00164125 [09:47:14]File name is /storage/ofd_packets/00164125 [09:47:14]Write 301 bytes [09:47:14]NVStorageSaveData done [09:47:14]OFDSenderStorePacket done [09:47:14]KKMCreateOFDPacket done [09:47:14]NVStorageSaveData kkm_last_timestamp [09:47:14]File name is /storage/kkm_last_timestamp [09:47:14]Write 4 bytes [09:47:14]NVStorageSaveData done [09:47:14]ExternCall_PrintAddStr [09:47:14]wPrintStart [09:47:14]Write to MH i2c: 01 00 00 A5 01 A6 [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: 01 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: 01 07 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [09:47:14]RasterBufferAndPrint [09:47:14]line Счет N : (1)458204 [09:47:14]line ИНН: 02508201610067 [09:47:14]line Контрольно-Кассовый Чек [09:47:14]line ПРОДАЖА [09:47:14]line ТРК (МРК, ГНК) : 12 [09:47:14]line Товар: 2710124130 [09:47:14]line Аи-92-К-5 [09:47:14]line 1.520 * 65.80 [09:47:14]line = 100.02 [09:47:14]line НДС 12% НСП 1% [09:47:14]line > о реализуемом товаре [09:47:14]line ОКРУГЛЕНИЕ: -0.02 [09:47:14]line ИТОГО: 100.00 [09:47:14]line Внесено: 100.00 [09:47:14]line СДАЧА: 0.00 [09:47:14]line НСП 1% : 0.88 [09:47:14]line НДС 12% : 10.62 [09:47:14]line Наличными: 100.00 [09:47:14]line Безнал.: 0.00 [09:47:14]line Место: АЗС № 72 "Партнер Нефть" [09:47:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:47:14]line СНО: Общий режим [09:47:14]line Чек 46 12.07.2024 09:47 [09:47:14]line Смена: 445 ФФД: 1.0 [09:47:14]line ЗНМ: 0300000160 [09:47:14]line РНМ: 0000000000090829 [09:47:14]line Версия ККМ: 001 [09:47:14]line ФМ: 0000000000874718 [09:47:14]line ФД: 164125 [09:47:14]line ФПД: 91568535760491 [09:47:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T094713&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164125&fm=91568535760491&tin=02508201610067®Number=0000000000090829&sum=10000 [09:47:14]written 0, free lines is 4095 [09:47:14]OFD Sender: Processing packet 164125 [packets to send 104, broken 103] [09:47:14]ProducePacketName [09:47:14]name=ofd_packets/00164125 [09:47:14]OFD Sender: To server: pG, [09:47:14]CommunicateWithHost lk.salyk.kg:30040 [09:47:14]ConnectInit lk.salyk.kg [09:47:15]Connected sock=11 [09:47:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 91 3D 07 01 96 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A1 FB 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 81 02 00 35 04 06 00 53 47 F6 0B EE 6B 5A 9F 45 02 AA DB 41 B8 [09:47:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 52 B0 47 00 0B 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 34 37 31 38 10 04 04 00 1D 81 02 00 F4 03 04 00 36 A2 90 66 B6 04 01 00 00 86 EF CD DC 52 A9 61 27 [09:47:15]CommunicateWithHost err = 0 [09:47:15]CheckOFDResponse [09:47:15]1017 (14) - 77093643461234 [09:47:15]1041 (16) - 0000000000874718 [09:47:15]1040 (4) - 164125 [09:47:15]1012 (4) - 12.07.2024 03:25 [09:47:15]1206 (1) - 0 [09:47:15]OFD Sender: Remove packet 164125 [09:47:15]ProducePacketName [09:47:15]name=ofd_packets/00164125 [09:47:15]NVStorageDeleteData [09:47:15]Write to MH i2c: 01 00 00 CF 01 D0 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 07 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 EF 0C D2 [09:47:15]RasterBufferAndPrint [09:47:15]line [09:47:15]line [09:47:15]line [09:47:15]line [09:47:15]line [09:47:15]written 0, free lines is 3317 [09:47:15]MH_Cut [09:47:15]Write to MH i2c: D1 01 00 D6 01 01 A9 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: D1 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: D1 01 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: D1 01 00 D6 01 00 A8 [09:47:15]Write to MH i2c: 01 00 00 D7 01 D8 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]OFD Sender: No OFD packet to send [09:47:16]*** Cut start [09:47:16]*** Partial cut [09:47:16]*** CUTSNS_PIN = 1 [09:47:16]*** CUTSNS_PIN = 0 [09:47:16]*** Brake cut motor [09:47:16]Read from MH i2c: 01 [09:47:16]MH_I2C_Read... [09:47:16]*** Stop cut motor [09:47:16]*** Cut end [09:47:16]Read from MH i2c: 01 07 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [09:47:16]process_action close_receipt done [09:47:16]requested_data is exist [09:47:16]produce_requested_data [09:47:16]requested_item fm.sn is exist - process it [09:47:16]wFMCommunicate request_size=4 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 11 00 00 [09:47:16]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 17 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [09:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:47:16]wFMCommunicate OK [09:47:16]requested_item fd.num is exist - process it [09:47:16]SAM_PROTO_GetFieldsCounters [09:47:16]wFMCommunicate request_size=4 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 13 00 00 [09:47:16]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 62 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [09:47: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:16]wFMCommunicate OK [09:47:16]SAM_PROTO_GetFieldsCounters done [09:47:16]requested_item shift.num is exist - process it [09:47:16]requested_item shift.opened is exist - process it [09:47:16]req_shift_opened [09:47:16]FM_GetShiftState [09:47:16]SAM_PROTO_GetShiftState [09:47:16]wFMCommunicate request_size=4 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 13 01 00 [09:47:16]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 0E 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A2 [09:47:16]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:47:16]wFMCommunicate OK [09:47:16]SAM_PROTO_GetShiftState done [09:47:16]FM_GetShiftState done [09:47:16]req_shift_opened done [09:47:16]requested_item shift.open_date is exist - process it [09:47:16]req_shift_open_date [09:47:16]req_shift_open_date done [09:47:16]produce_requested_data done [09:47:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164125,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:47:16]process_action_free close_receipt [09:47:16]json_value_free [09:47:16]json_value_free done [09:47:16]process_json_proto returns [09:47:16]Send response to host [09:47:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164125,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:47:16]free response buf [09:47:16]execute_script done [09:47:16]execute_script returns [09:47:16]free content buf [09:47:16]Sock 9.Close socket [09:47:16]Sock 9.Thread stoped [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:08]accept exits with 7 [09:50:08]New connection [09:50:08]New thread 3066707300 created [09:50:08]Thread 3066850660 joined [09:50:08]Waiting for new connection... [09:50:08] Sock 7.Parse request [09:50:08]Sock 7.Check first char [09:50:08]Sock 7.First char is OK [09:50:08]request: POST /json_proto HTTP/1.0 [09:50:08]Method: POST [09:50:08]URL: /json_proto [09:50:08]Method is POST - this is cgi request [09:50:08]url: /json_proto [09:50:08]query_string will be loaded in cgi processing [09:50:08]execute_cgi json_proto POST (null) [09:50:08]execute_cgi path=json_proto method=POST [09:50:08]POST find Content-Length [09:50:08]Host: 172.17.56.4:8080 [09:50:08]Content-Length: 677 [09:50:08]Content-Type: application/json [09:50:08] [09:50:08]POST finish read [09:50:08]Found Content-Length = 677 [09:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:50:08]execute_script... [09:50: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)458205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:50:08]POST & json_proto [09:50:08]process_json_proto [09:50:08]json parsed OK: [09:50:08]protocol is kg_v1.0 [09:50:08]action value=close_receipt [09:50:08]process_action close_receipt [09:50:08]cmd_close_receipt [09:50:08]MH_GetDate [09:50:08]Write to MH i2c: F0 00 00 DB 01 CB [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: F0 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: F0 09 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: F0 09 00 DB 01 00 50 FC 90 66 C9 DC B2 64 D1 [09:50:08]GetLastDocTimeStamp 1720777633 [09:50:08]current date 1720777808 [09:50:08]FM_GetShiftState [09:50:08]SAM_PROTO_GetShiftState [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 13 01 00 [09:50:08]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0E 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A4 [09:50:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:50:08]wFMCommunicate OK [09:50:08]SAM_PROTO_GetShiftState done [09:50:08]FM_GetShiftState done [09:50:08]opened in 1720744654 [09:50:08]opened+sec_in_day 1720831054 [09:50:08]quantity*price = 20003 [09:50:08]sum+1 = 20004 [09:50:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 47 12.07.2024 09:50 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164126 ФПД: 234519326828157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T095008&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164126&fm=234519326828157&tin=02508201610067®Number=0000000000090829&sum=20000 [09:50:09]StoreToDocumentArchive [09:50:09]shift 445 fd 164126 [09:50:09]save to /storage/0445/doc_00164126 [09:50:09]save last doc name /storage/0445/doc_00164126 to /storage/kkm_last_doc_name [09:50:09]save OK [09:50:09]Clear old archive folders... [09:50:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:09]tlvbuf is 009E9F30 [09:50:09]SAM_PROTO_ClearQueue [09:50:09]wFMCommunicate request_size=4 [09:50:09]MH_SAM_APDU [09:50:09]CAPDU: 80 09 00 00 [09:50:09]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 03 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [09:50:09]RAPDU: 90 00 [09:50:09]wFMCommunicate OK [09:50:09]SAM_PROTO_ClearQueue done [09:50:09]KKMCreateOFDPacket [09:50:09]OFDProtocolAddRootSTLVToBuf [09:50:09]FM_MakeSignedData [09:50:09]FM_MakeSignedData [09:50:09]SAM_PROTO_SignData [09:50:09]wFMCommunicate request_size=4 [09:50:09]MH_SAM_APDU [09:50:09]CAPDU: 80 0D 01 02 [09:50:09]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 03 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [09:50:09]RAPDU: 90 00 [09:50:09]wFMCommunicate OK [09:50:09]wFMCommunicate request_size=255 [09:50:09]MH_SAM_APDU [09:50: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 50 FC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 81 02 00 35 04 06 00 D5 [09:50:09]Write to MH i2c: E2 02 01 EB 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 50 FC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 81 02 00 35 04 06 00 D5 00 00 23 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 03 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [09:50:09]RAPDU: 90 00 [09:50:09]wFMCommunicate OK [09:50:09]wFMCommunicate request_size=10 [09:50:09]MH_SAM_APDU [09:50:09]CAPDU: 80 0D 02 02 05 4B 49 2B 26 7D [09:50:09]Write to MH i2c: E2 0D 00 EC 01 80 0D 02 02 05 00 4B 49 2B 26 7D 00 00 D3 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 03 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [09:50:09]RAPDU: 90 00 [09:50:09]wFMCommunicate OK [09:50:09]wFMCommunicate request_size=4 [09:50:09]MH_SAM_APDU [09:50:09]CAPDU: 80 0D 03 02 [09:50:09]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 0B 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 0B 00 ED 01 00 03 DA 8F D1 7F 71 53 D6 90 00 C0 [09:50:09]RAPDU: 03 DA 8F D1 7F 71 53 D6 90 00 [09:50:09]wFMCommunicate OK [09:50:09]SAM_PROTO_SignData done [09:50:09]FM_MakeSignedData done [09:50:09]CreateOFDProtocolMessage [09:50:09]wFMCommunicate request_size=4 [09:50:09]MH_SAM_APDU [09:50:09]CAPDU: 80 11 00 00 [09:50:09]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 17 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [09:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:50:09]wFMCommunicate OK [09:50:09]CreateOFDProtocolMessage done [09:50:09]OFDSenderStorePacket 164126 [09:50:09]StoreOFDPacket docnum=164126 [09:50:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 09 07 01 F2 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 50 FC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 81 02 00 35 04 06 00 D5 4B 49 2B 26 7D 03 DA 8F D1 7F 71 53 D6 [09:50:09]CheckFolder [09:50:09]dirname=/storage/ofd_packets [09:50:09]CheckFolder done [09:50:09]ProducePacketName [09:50:09]name=ofd_packets/00164126 [09:50:09]NVStorageSaveData ofd_packets/00164126 [09:50:09]File name is /storage/ofd_packets/00164126 [09:50:09]Write 301 bytes [09:50:09]NVStorageSaveData done [09:50:09]OFDSenderStorePacket done [09:50:09]KKMCreateOFDPacket done [09:50:09]NVStorageSaveData kkm_last_timestamp [09:50:09]File name is /storage/kkm_last_timestamp [09:50:09]Write 4 bytes [09:50:09]NVStorageSaveData done [09:50:09]ExternCall_PrintAddStr [09:50:09]wPrintStart [09:50:09]Write to MH i2c: 01 00 00 EF 01 F0 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 07 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [09:50:09]RasterBufferAndPrint [09:50:09]line Счет N : (1)458205 [09:50:09]line ИНН: 02508201610067 [09:50:09]line Контрольно-Кассовый Чек [09:50:09]line ПРОДАЖА [09:50:09]line ТРК (МРК, ГНК) : 12 [09:50:09]line Товар: 2710124130 [09:50:09]line Аи-92-К-5 [09:50:09]line 3.040 * 65.80 [09:50:09]line = 200.03 [09:50:09]line НДС 12% НСП 1% [09:50:09]line > о реализуемом товаре [09:50:09]line ОКРУГЛЕНИЕ: -0.03 [09:50:09]line ИТОГО: 200.00 [09:50:09]line Внесено: 200.00 [09:50:09]line СДАЧА: 0.00 [09:50:09]line НСП 1% : 1.77 [09:50:09]line НДС 12% : 21.24 [09:50:09]line Наличными: 200.00 [09:50:09]line Безнал.: 0.00 [09:50:09]line Место: АЗС № 72 "Партнер Нефть" [09:50:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:50:09]line СНО: Общий режим [09:50:09]line Чек 47 12.07.2024 09:50 [09:50:09]line Смена: 445 ФФД: 1.0 [09:50:09]line ЗНМ: 0300000160 [09:50:09]line РНМ: 0000000000090829 [09:50:09]line Версия ККМ: 001 [09:50:09]line ФМ: 0000000000874718 [09:50:09]line ФД: 164126 [09:50:10]line ФПД: 234519326828157 [09:50:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T095008&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164126&fm=234519326828157&tin=02508201610067®Number=0000000000090829&sum=20000 [09:50:10]OFD Sender: Processing packet 164126 [packets to send 104, broken 103] [09:50:10]ProducePacketName [09:50:10]name=ofd_packets/00164126 [09:50:10]OFD Sender: To server: pG, [09:50:10]CommunicateWithHost lk.salyk.kg:30040 [09:50:10]ConnectInit lk.salyk.kg [09:50:10]written 0, free lines is 4095 [09:50:10]Connected sock=10 [09:50:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 09 07 01 F2 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 50 FC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 81 02 00 35 04 06 00 D5 4B 49 2B 26 7D 03 DA 8F D1 7F 71 53 D6 [09:50:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4C B5 47 00 F0 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 34 37 31 38 10 04 04 00 1E 81 02 00 F4 03 04 00 E5 A2 90 66 B6 04 01 00 00 47 53 4A B1 78 5C 96 8A [09:50:10]CommunicateWithHost err = 0 [09:50:10]CheckOFDResponse [09:50:10]1017 (14) - 77093643461234 [09:50:10]1041 (16) - 0000000000874718 [09:50:10]1040 (4) - 164126 [09:50:10]1012 (4) - 12.07.2024 03:28 [09:50:10]1206 (1) - 0 [09:50:10]OFD Sender: Remove packet 164126 [09:50:10]ProducePacketName [09:50:10]name=ofd_packets/00164126 [09:50:10]NVStorageDeleteData [09:50:10]Write to MH i2c: 01 00 00 19 02 1B [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: 01 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: 01 07 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 EF 0C 1D [09:50:10]RasterBufferAndPrint [09:50:10]line [09:50:10]line [09:50:10]line [09:50:10]line [09:50:10]line [09:50:10]written 0, free lines is 3317 [09:50:10]MH_Cut [09:50:10]Write to MH i2c: D1 01 00 20 02 01 F4 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: D1 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: D1 01 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: D1 01 00 20 02 00 F3 [09:50:10]Write to MH i2c: 01 00 00 21 02 23 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:11]OFD Sender: No OFD packet to send [09:50:11]*** Cut start [09:50:11]*** Partial cut [09:50:11]*** CUTSNS_PIN = 1 [09:50:11]*** CUTSNS_PIN = 0 [09:50:11]*** Brake cut motor [09:50:11]Read from MH i2c: 01 [09:50:11]MH_I2C_Read... [09:50:11]*** Stop cut motor [09:50:11]*** Cut end [09:50:11]Read from MH i2c: 01 07 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [09:50:11]process_action close_receipt done [09:50:11]requested_data is exist [09:50:11]produce_requested_data [09:50:11]requested_item fm.sn is exist - process it [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 11 00 00 [09:50:11]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:12]Read from MH i2c: E2 [09:50:12]MH_I2C_Read... [09:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:12]Read from MH i2c: E2 17 00 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [09:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:50:12]wFMCommunicate OK [09:50:12]requested_item fd.num is exist - process it [09:50:12]SAM_PROTO_GetFieldsCounters [09:50:12]wFMCommunicate request_size=4 [09:50:12]MH_SAM_APDU [09:50:12]CAPDU: 80 13 00 00 [09:50:12]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [09:50:12]Write i2c OK [09:50:12]MH_I2C_Read... [09:50:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:12]Read from MH i2c: E2 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: E2 62 00 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: E2 62 00 23 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [09:50: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:12]wFMCommunicate OK [09:50:12]SAM_PROTO_GetFieldsCounters done [09:50:12]requested_item shift.num is exist - process it [09:50:12]requested_item shift.opened is exist - process it [09:50:12]req_shift_opened [09:50:12]FM_GetShiftState [09:50:12]SAM_PROTO_GetShiftState [09:50:12]wFMCommunicate request_size=4 [09:50:12]MH_SAM_APDU [09:50:12]CAPDU: 80 13 01 00 [09:50:12]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [09:50:12]Write i2c OK [09:50:12]MH_I2C_Read... [09:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:12]Read from MH i2c: E2 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: E2 0E 00 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 ED [09:50:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:50:12]wFMCommunicate OK [09:50:12]SAM_PROTO_GetShiftState done [09:50:12]FM_GetShiftState done [09:50:12]req_shift_opened done [09:50:12]requested_item shift.open_date is exist - process it [09:50:12]req_shift_open_date [09:50:12]req_shift_open_date done [09:50:12]produce_requested_data done [09:50:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164126,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:50:12]process_action_free close_receipt [09:50:12]json_value_free [09:50:12]json_value_free done [09:50:12]process_json_proto returns [09:50:12]Send response to host [09:50:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164126,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:50:12]free response buf [09:50:12]execute_script done [09:50:12]execute_script returns [09:50:12]free content buf [09:50:12]Sock 7.Close socket [09:50:12]Sock 7.Thread stoped [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:51:59]accept exits with 9 [09:51:59]New connection [09:51:59]New thread 3066850660 created [09:51:59]Thread 3066707300 joined [09:51:59]Waiting for new connection... [09:51:59] Sock 9.Parse request [09:51:59]Sock 9.Check first char [09:51:59]Sock 9.First char is OK [09:51:59]request: POST /json_proto HTTP/1.0 [09:51:59]Method: POST [09:51:59]URL: /json_proto [09:51:59]Method is POST - this is cgi request [09:51:59]url: /json_proto [09:51:59]query_string will be loaded in cgi processing [09:51:59]execute_cgi json_proto POST (null) [09:51:59]execute_cgi path=json_proto method=POST [09:51:59]POST find Content-Length [09:51:59]Host: 172.17.56.4:8080 [09:51:59]Content-Length: 677 [09:51:59]Content-Type: application/json [09:51:59] [09:51:59]POST finish read [09:51:59]Found Content-Length = 677 [09:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:51:59]execute_script... [09:51: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)458206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:51:59]POST & json_proto [09:51:59]process_json_proto [09:51:59]json parsed OK: [09:51:59]protocol is kg_v1.0 [09:51:59]action value=close_receipt [09:51:59]process_action close_receipt [09:51:59]cmd_close_receipt [09:51:59]MH_GetDate [09:51:59]Write to MH i2c: F0 00 00 25 02 16 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: F0 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: F0 09 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: F0 09 00 25 02 00 C0 FC 90 66 C9 DC B2 64 8C [09:51:59]GetLastDocTimeStamp 1720777808 [09:51:59]current date 1720777920 [09:51:59]FM_GetShiftState [09:51:59]SAM_PROTO_GetShiftState [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 13 01 00 [09:51:59]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0E 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EF [09:51:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:51:59]wFMCommunicate OK [09:51:59]SAM_PROTO_GetShiftState done [09:51:59]FM_GetShiftState done [09:51:59]opened in 1720744654 [09:51:59]opened+sec_in_day 1720831054 [09:51:59]quantity*price = 60009 [09:51:59]sum+1 = 60011 [09:51:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 48 12.07.2024 09:52 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164127 ФПД: 27416417333009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T095200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164127&fm=27416417333009&tin=02508201610067®Number=0000000000090829&sum=60000 [09:52:00]StoreToDocumentArchive [09:52:00]shift 445 fd 164127 [09:52:00]save to /storage/0445/doc_00164127 [09:52:00]save last doc name /storage/0445/doc_00164127 to /storage/kkm_last_doc_name [09:52:00]save OK [09:52:00]Clear old archive folders... [09:52:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:00]tlvbuf is 00A06960 [09:52:00]SAM_PROTO_ClearQueue [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 09 00 00 [09:52:00]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 03 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [09:52:00]RAPDU: 90 00 [09:52:00]wFMCommunicate OK [09:52:00]SAM_PROTO_ClearQueue done [09:52:00]KKMCreateOFDPacket [09:52:00]OFDProtocolAddRootSTLVToBuf [09:52:00]FM_MakeSignedData [09:52:00]FM_MakeSignedData [09:52:00]SAM_PROTO_SignData [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 0D 01 02 [09:52:00]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 03 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [09:52:00]RAPDU: 90 00 [09:52:00]wFMCommunicate OK [09:52:00]wFMCommunicate request_size=255 [09:52:00]MH_SAM_APDU [09:52: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 C0 FC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 81 02 00 35 04 06 00 18 [09:52:00]Write to MH i2c: E2 02 01 35 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 C0 FC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 81 02 00 35 04 06 00 18 00 00 A3 [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 03 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [09:52:01]RAPDU: 90 00 [09:52:01]wFMCommunicate OK [09:52:01]wFMCommunicate request_size=10 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 0D 02 02 05 EF 61 D0 EF 11 [09:52:01]Write to MH i2c: E2 0D 00 36 02 80 0D 02 02 05 00 EF 61 D0 EF 11 00 00 DC [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 03 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [09:52:01]RAPDU: 90 00 [09:52:01]wFMCommunicate OK [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 0D 03 02 [09:52:01]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:01]OFD Sender: No OFD packet to send [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 0B 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 0B 00 37 02 00 2D 7B D2 C0 B2 E7 05 6B 90 00 F8 [09:52:01]RAPDU: 2D 7B D2 C0 B2 E7 05 6B 90 00 [09:52:01]wFMCommunicate OK [09:52:01]SAM_PROTO_SignData done [09:52:01]FM_MakeSignedData done [09:52:01]CreateOFDProtocolMessage [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 11 00 00 [09:52:01]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 17 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [09:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:52:01]wFMCommunicate OK [09:52:01]CreateOFDProtocolMessage done [09:52:01]OFDSenderStorePacket 164127 [09:52:01]StoreOFDPacket docnum=164127 [09:52:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 2D 07 01 79 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 C0 FC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 81 02 00 35 04 06 00 18 EF 61 D0 EF 11 2D 7B D2 C0 B2 E7 05 6B [09:52:01]CheckFolder [09:52:01]dirname=/storage/ofd_packets [09:52:01]CheckFolder done [09:52:01]ProducePacketName [09:52:01]name=ofd_packets/00164127 [09:52:01]NVStorageSaveData ofd_packets/00164127 [09:52:01]File name is /storage/ofd_packets/00164127 [09:52:01]Write 301 bytes [09:52:01]NVStorageSaveData done [09:52:01]OFDSenderStorePacket done [09:52:01]KKMCreateOFDPacket done [09:52:01]NVStorageSaveData kkm_last_timestamp [09:52:01]File name is /storage/kkm_last_timestamp [09:52:01]Write 4 bytes [09:52:01]NVStorageSaveData done [09:52:01]ExternCall_PrintAddStr [09:52:01]wPrintStart [09:52:01]Write to MH i2c: 01 00 00 39 02 3B [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: 01 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: 01 07 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [09:52:01]RasterBufferAndPrint [09:52:01]line Счет N : (1)458206 [09:52:01]line ИНН: 02508201610067 [09:52:01]line Контрольно-Кассовый Чек [09:52:01]line ПРОДАЖА [09:52:01]line ТРК (МРК, ГНК) : 12 [09:52:01]line Товар: 2710124130 [09:52:01]line Аи-92-К-5 [09:52:01]line 9.120 * 65.80 [09:52:01]line = 600.10 [09:52:01]line НДС 12% НСП 1% [09:52:01]line > о реализуемом товаре [09:52:01]line ОКРУГЛЕНИЕ: -0.10 [09:52:01]line ИТОГО: 600.00 [09:52:01]line Внесено: 600.00 [09:52:01]line СДАЧА: 0.00 [09:52:01]line НСП 1% : 5.31 [09:52:01]line НДС 12% : 63.73 [09:52:01]line Наличными: 600.00 [09:52:01]line Безнал.: 0.00 [09:52:01]line Место: АЗС № 72 "Партнер Нефть" [09:52:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:52:01]line СНО: Общий режим [09:52:01]line Чек 48 12.07.2024 09:52 [09:52:01]line Смена: 445 ФФД: 1.0 [09:52:01]line ЗНМ: 0300000160 [09:52:01]line РНМ: 0000000000090829 [09:52:01]line Версия ККМ: 001 [09:52:01]line ФМ: 0000000000874718 [09:52:01]line ФД: 164127 [09:52:01]line ФПД: 27416417333009 [09:52:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T095200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164127&fm=27416417333009&tin=02508201610067®Number=0000000000090829&sum=60000 [09:52:01]OFD Sender: Processing packet 164127 [packets to send 104, broken 103] [09:52:01]ProducePacketName [09:52:01]name=ofd_packets/00164127 [09:52:01]OFD Sender: To server: pG, [09:52:01]CommunicateWithHost lk.salyk.kg:30040 [09:52:01]ConnectInit lk.salyk.kg [09:52:01]written 0, free lines is 4095 [09:52:01]Connected sock=7 [09:52:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 2D 07 01 79 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 C0 FC 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 81 02 00 35 04 06 00 18 EF 61 D0 EF 11 2D 7B D2 C0 B2 E7 05 6B [09:52:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 66 14 47 00 DE 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 81 02 00 F4 03 04 00 54 A3 90 66 B6 04 01 00 00 9B 1F 5B 77 C0 5D C8 A1 [09:52:01]CommunicateWithHost err = 0 [09:52:01]CheckOFDResponse [09:52:01]1017 (14) - 77093643461234 [09:52:01]1041 (16) - 0000000000874718 [09:52:01]1040 (4) - 164127 [09:52:01]1012 (4) - 12.07.2024 03:30 [09:52:01]1206 (1) - 0 [09:52:01]OFD Sender: Remove packet 164127 [09:52:01]ProducePacketName [09:52:01]name=ofd_packets/00164127 [09:52:01]NVStorageDeleteData [09:52:02]Write to MH i2c: 01 00 00 63 02 65 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 EF 0C 67 [09:52:02]RasterBufferAndPrint [09:52:02]line [09:52:02]line [09:52:02]line [09:52:02]line [09:52:02]line [09:52:02]written 0, free lines is 3317 [09:52:02]MH_Cut [09:52:02]Write to MH i2c: D1 01 00 6A 02 01 3E [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: D1 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: D1 01 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: D1 01 00 6A 02 00 3D [09:52:02]Write to MH i2c: 01 00 00 6B 02 6D [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]OFD Sender: No OFD packet to send [09:52:02]*** Cut start [09:52:02]*** Partial cut [09:52:02]*** CUTSNS_PIN = 1 [09:52:02]*** CUTSNS_PIN = 0 [09:52:02]*** Brake cut motor [09:52:03]Read from MH i2c: 01 [09:52:03]MH_I2C_Read... [09:52:03]*** Stop cut motor [09:52:03]*** Cut end [09:52:03]Read from MH i2c: 01 07 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [09:52:03]process_action close_receipt done [09:52:03]requested_data is exist [09:52:03]produce_requested_data [09:52:03]requested_item fm.sn is exist - process it [09:52:03]wFMCommunicate request_size=4 [09:52:03]MH_SAM_APDU [09:52:03]CAPDU: 80 11 00 00 [09:52:03]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:03]Read from MH i2c: E2 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 17 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [09:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:52:03]wFMCommunicate OK [09:52:03]requested_item fd.num is exist - process it [09:52:03]SAM_PROTO_GetFieldsCounters [09:52:03]wFMCommunicate request_size=4 [09:52:03]MH_SAM_APDU [09:52:03]CAPDU: 80 13 00 00 [09:52:03]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:03]Read from MH i2c: E2 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 62 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [09:52: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:03]wFMCommunicate OK [09:52:03]SAM_PROTO_GetFieldsCounters done [09:52:03]requested_item shift.num is exist - process it [09:52:03]requested_item shift.opened is exist - process it [09:52:03]req_shift_opened [09:52:03]FM_GetShiftState [09:52:03]SAM_PROTO_GetShiftState [09:52:03]wFMCommunicate request_size=4 [09:52:03]MH_SAM_APDU [09:52:03]CAPDU: 80 13 01 00 [09:52:03]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:03]Read from MH i2c: E2 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 0E 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 37 [09:52:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:52:03]wFMCommunicate OK [09:52:03]SAM_PROTO_GetShiftState done [09:52:03]FM_GetShiftState done [09:52:03]req_shift_opened done [09:52:03]requested_item shift.open_date is exist - process it [09:52:03]req_shift_open_date [09:52:03]req_shift_open_date done [09:52:03]produce_requested_data done [09:52:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164127,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:52:03]process_action_free close_receipt [09:52:03]json_value_free [09:52:03]json_value_free done [09:52:03]process_json_proto returns [09:52:03]Send response to host [09:52:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164127,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:52:03]free response buf [09:52:03]execute_script done [09:52:03]execute_script returns [09:52:03]free content buf [09:52:03]Sock 9.Close socket [09:52:03]Sock 9.Thread stoped [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:54]accept exits with 10 [09:53:54]New connection [09:53:54]New thread 3066707300 created [09:53:54]Thread 3066850660 joined [09:53:54]Waiting for new connection... [09:53:54] Sock 10.Parse request [09:53:54]Sock 10.Check first char [09:53:54]Sock 10.First char is OK [09:53:54]request: POST /json_proto HTTP/1.0 [09:53:54]Method: POST [09:53:54]URL: /json_proto [09:53:54]Method is POST - this is cgi request [09:53:54]url: /json_proto [09:53:54]query_string will be loaded in cgi processing [09:53:54]execute_cgi json_proto POST (null) [09:53:54]execute_cgi path=json_proto method=POST [09:53:54]POST find Content-Length [09:53:54]Host: 172.17.56.4:8080 [09:53:54]Content-Length: 1189 [09:53:54]Content-Type: application/json [09:53:54] [09:53:54]POST finish read [09:53:54]Found Content-Length = 1189 [09:53:54]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458207\u000A12.07.2024 09:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 2632.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24196\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:54]execute_script... [09:53:54]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458207\u000A12.07.2024 09:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 2632.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24196\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:54]POST & json_proto [09:53:54]process_json_proto [09:53:54]json parsed OK: [09:53:54]protocol is kg_v1.0 [09:53:54]action value=print_text [09:53:54]process_action print_text [09:53:54]cmd_print_text [09:53:54]ExternCall_PrintAddStr [09:53:54]wPrintStart [09:53:54]Write to MH i2c: 01 00 00 6F 02 71 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [09:53:54]RasterBufferAndPrint [09:53:54]line *****ТОВАРНЫЙ ЧЕК***** [09:53:54]line АЗС 72 [09:53:54]line Партнер нефть [09:53:54]line 02508201610067 [09:53:54]line Кассир : Садыков Н. [09:53:54]line Счет N : (1)458207 [09:53:54]line 12.07.2024 09:19 [09:53:54]line ПРОДАЖА [09:53:54]line ТРК (МРК, ГНК): 22 [09:53:54]line Вид ГСМ : 2710124130 [09:53:54]line Аи-92-К-5 [09:53:54]line 40.000 x 65.80 [09:53:54]line ИТОГ: 2632.00 [09:53:54]line Тип оплаты: Талоны: Топливная Карта [09:53:54]line 24196 [09:53:54]line ______________________ [09:53:54]line (подпись) [09:53:54]written 0, free lines is 4095 [09:53:54]Write to MH i2c: 01 00 00 83 02 85 [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 10 0E AA [09:53:54]RasterBufferAndPrint [09:53:54]line [09:53:54]line [09:53:54]line [09:53:54]line [09:53:54]line [09:53:54]written 0, free lines is 3601 [09:53:54]MH_Cut [09:53:54]Write to MH i2c: D1 01 00 8A 02 01 5E [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: D1 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: D1 01 00 [09:53:54]MH_I2C_Read... [09:53:54]Read from MH i2c: D1 01 00 8A 02 00 5D [09:53:54]Write to MH i2c: 01 00 00 8B 02 8D [09:53:54]Write i2c OK [09:53:54]MH_I2C_Read... [09:53:55]*** Cut start [09:53:55]*** Partial cut [09:53:55]*** CUTSNS_PIN = 1 [09:53:55]*** CUTSNS_PIN = 0 [09:53:55]*** Brake cut motor [09:53:55]Read from MH i2c: 01 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: 01 07 00 [09:53:55]MH_I2C_Read... [09:53:55]*** Stop cut motor [09:53:55]*** Cut end [09:53:55]Read from MH i2c: 01 07 00 8B 02 00 00 00 00 00 FF 0F A2 [09:53:55]process_action print_text done [09:53:55]requested_data is exist [09:53:55]produce_requested_data [09:53:55]requested_item fm.sn is exist - process it [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 11 00 00 [09:53:55]Write to MH i2c: E2 08 00 8C 02 80 11 00 00 00 00 00 00 08 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:55]Read from MH i2c: E2 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 17 00 8C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [09:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:53:55]wFMCommunicate OK [09:53:55]requested_item fd.num is exist - process it [09:53:55]SAM_PROTO_GetFieldsCounters [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 13 00 00 [09:53:55]Write to MH i2c: E2 08 00 8D 02 80 13 00 00 00 00 00 00 0B [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:56]Read from MH i2c: E2 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 62 00 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 62 00 8D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [09:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:56]wFMCommunicate OK [09:53:56]SAM_PROTO_GetFieldsCounters done [09:53:56]requested_item shift.num is exist - process it [09:53:56]requested_item shift.opened is exist - process it [09:53:56]req_shift_opened [09:53:56]FM_GetShiftState [09:53:56]SAM_PROTO_GetShiftState [09:53:56]wFMCommunicate request_size=4 [09:53:56]MH_SAM_APDU [09:53:56]CAPDU: 80 13 01 00 [09:53:56]Write to MH i2c: E2 08 00 8E 02 80 13 01 00 00 00 00 00 0D [09:53:56]Write i2c OK [09:53:56]MH_I2C_Read... [09:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:56]Read from MH i2c: E2 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 0E 00 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 0E 00 8E 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 57 [09:53:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:53:56]wFMCommunicate OK [09:53:56]SAM_PROTO_GetShiftState done [09:53:56]FM_GetShiftState done [09:53:56]req_shift_opened done [09:53:56]requested_item shift.open_date is exist - process it [09:53:56]req_shift_open_date [09:53:56]req_shift_open_date done [09:53:56]produce_requested_data done [09:53:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164127,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:53:56]process_action_free print_text [09:53:56]json_value_free [09:53:56]json_value_free done [09:53:56]process_json_proto returns [09:53:56]Send response to host [09:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164127,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:53:56]free response buf [09:53:56]execute_script done [09:53:56]execute_script returns [09:53:56]free content buf [09:53:56]Sock 10.Close socket [09:53:56]Sock 10.Thread stoped [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:36]accept exits with 7 [09:56:36]New connection [09:56:36]New thread 3066850660 created [09:56:36]Thread 3066707300 joined [09:56:36]Waiting for new connection... [09:56:36] Sock 7.Parse request [09:56:36]Sock 7.Check first char [09:56:36]Sock 7.First char is OK [09:56:36]request: POST /json_proto HTTP/1.0 [09:56:36]Method: POST [09:56:36]URL: /json_proto [09:56:36]Method is POST - this is cgi request [09:56:36]url: /json_proto [09:56:36]query_string will be loaded in cgi processing [09:56:36]execute_cgi json_proto POST (null) [09:56:36]execute_cgi path=json_proto method=POST [09:56:36]POST find Content-Length [09:56:36]Host: 172.17.56.4:8080 [09:56:36]Content-Length: 682 [09:56:36]Content-Type: application/json [09:56:36] [09:56:36]POST finish read [09:56:36]Found Content-Length = 682 [09:56:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:36]execute_script... [09:56: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)458208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:36]POST & json_proto [09:56:36]process_json_proto [09:56:36]json parsed OK: [09:56:36]protocol is kg_v1.0 [09:56:36]action value=close_receipt [09:56:36]process_action close_receipt [09:56:36]cmd_close_receipt [09:56:36]MH_GetDate [09:56:36]Write to MH i2c: F0 00 00 8F 02 80 [09:56:36]Write i2c OK [09:56:36]MH_I2C_Read... [09:56:36]Read from MH i2c: F0 [09:56:36]MH_I2C_Read... [09:56:36]Read from MH i2c: F0 09 00 [09:56:36]MH_I2C_Read... [09:56:36]Read from MH i2c: F0 09 00 8F 02 00 D5 FD 90 66 C9 DC B2 64 0C [09:56:36]GetLastDocTimeStamp 1720777920 [09:56:36]current date 1720778197 [09:56:36]FM_GetShiftState [09:56:36]SAM_PROTO_GetShiftState [09:56:36]wFMCommunicate request_size=4 [09:56:36]MH_SAM_APDU [09:56:36]CAPDU: 80 13 01 00 [09:56:36]Write to MH i2c: E2 08 00 90 02 80 13 01 00 00 00 00 00 0F [09:56:36]Write i2c OK [09:56:36]MH_I2C_Read... [09:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:36]Read from MH i2c: E2 [09:56:36]MH_I2C_Read... [09:56:36]Read from MH i2c: E2 0E 00 [09:56:36]MH_I2C_Read... [09:56:36]Read from MH i2c: E2 0E 00 90 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 59 [09:56:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:56:36]wFMCommunicate OK [09:56:36]SAM_PROTO_GetShiftState done [09:56:36]FM_GetShiftState done [09:56:36]opened in 1720744654 [09:56:36]opened+sec_in_day 1720831054 [09:56:36]quantity*price = 100016 [09:56:36]sum+1 = 100017 [09:56:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 49 12.07.2024 09:56 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164128 ФПД: 77603952986908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T095637&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164128&fm=77603952986908&tin=02508201610067®Number=0000000000090829&sum=100000 [09:56:38]StoreToDocumentArchive [09:56:38]shift 445 fd 164128 [09:56:38]save to /storage/0445/doc_00164128 [09:56:38]save last doc name /storage/0445/doc_00164128 to /storage/kkm_last_doc_name [09:56:38]save OK [09:56:38]Clear old archive folders... [09:56:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:38]tlvbuf is 009F5AD0 [09:56:38]SAM_PROTO_ClearQueue [09:56:38]wFMCommunicate request_size=4 [09:56:38]MH_SAM_APDU [09:56:38]CAPDU: 80 09 00 00 [09:56:38]Write to MH i2c: E2 08 00 9D 02 80 09 00 00 00 00 00 00 11 [09:56:38]Write i2c OK [09:56:38]MH_I2C_Read... [09:56:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:38]Read from MH i2c: E2 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 03 00 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [09:56:38]RAPDU: 90 00 [09:56:38]wFMCommunicate OK [09:56:38]SAM_PROTO_ClearQueue done [09:56:38]KKMCreateOFDPacket [09:56:38]OFDProtocolAddRootSTLVToBuf [09:56:38]FM_MakeSignedData [09:56:38]FM_MakeSignedData [09:56:38]SAM_PROTO_SignData [09:56:38]wFMCommunicate request_size=4 [09:56:38]MH_SAM_APDU [09:56:38]CAPDU: 80 0D 01 02 [09:56:38]Write to MH i2c: E2 08 00 9E 02 80 0D 01 02 00 00 00 00 19 [09:56:38]Write i2c OK [09:56:38]MH_I2C_Read... [09:56:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:38]Read from MH i2c: E2 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 03 00 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [09:56:38]RAPDU: 90 00 [09:56:38]wFMCommunicate OK [09:56:38]wFMCommunicate request_size=255 [09:56:38]MH_SAM_APDU [09:56:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 D5 FD 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 81 02 00 35 04 06 00 46 [09:56:38]Write to MH i2c: E2 02 01 9F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 D5 FD 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 81 02 00 35 04 06 00 46 00 00 D4 [09:56:38]Write i2c OK [09:56:38]MH_I2C_Read... [09:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:38]Read from MH i2c: E2 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 03 00 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [09:56:38]RAPDU: 90 00 [09:56:38]wFMCommunicate OK [09:56:38]wFMCommunicate request_size=10 [09:56:38]MH_SAM_APDU [09:56:38]CAPDU: 80 0D 02 02 05 94 94 0D 0B 1C [09:56:38]Write to MH i2c: E2 0D 00 A0 02 80 0D 02 02 05 00 94 94 0D 0B 1C 00 00 82 [09:56:38]Write i2c OK [09:56:38]MH_I2C_Read... [09:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:38]Read from MH i2c: E2 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 03 00 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 03 00 A0 02 00 90 00 16 [09:56:38]RAPDU: 90 00 [09:56:38]wFMCommunicate OK [09:56:38]wFMCommunicate request_size=4 [09:56:38]MH_SAM_APDU [09:56:38]CAPDU: 80 0D 03 02 [09:56:38]Write to MH i2c: E2 08 00 A1 02 80 0D 03 02 00 00 00 00 1E [09:56:38]Write i2c OK [09:56:38]MH_I2C_Read... [09:56:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:38]Read from MH i2c: E2 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 0B 00 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 0B 00 A1 02 00 2D 69 81 36 A6 1E 41 8B 90 00 FC [09:56:38]RAPDU: 2D 69 81 36 A6 1E 41 8B 90 00 [09:56:38]wFMCommunicate OK [09:56:38]SAM_PROTO_SignData done [09:56:38]FM_MakeSignedData done [09:56:38]CreateOFDProtocolMessage [09:56:38]wFMCommunicate request_size=4 [09:56:38]MH_SAM_APDU [09:56:38]CAPDU: 80 11 00 00 [09:56:38]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [09:56:38]Write i2c OK [09:56:38]MH_I2C_Read... [09:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:38]Read from MH i2c: E2 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 17 00 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: E2 17 00 A2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 74 [09:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:56:38]wFMCommunicate OK [09:56:38]CreateOFDProtocolMessage done [09:56:38]OFDSenderStorePacket 164128 [09:56:38]StoreOFDPacket docnum=164128 [09:56:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A 71 07 01 A0 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 D5 FD 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 81 02 00 35 04 06 00 46 94 94 0D 0B 1C 2D 69 81 36 A6 1E 41 8B [09:56:38]CheckFolder [09:56:38]dirname=/storage/ofd_packets [09:56:38]CheckFolder done [09:56:38]ProducePacketName [09:56:38]name=ofd_packets/00164128 [09:56:38]NVStorageSaveData ofd_packets/00164128 [09:56:38]File name is /storage/ofd_packets/00164128 [09:56:38]Write 301 bytes [09:56:38]NVStorageSaveData done [09:56:38]OFDSenderStorePacket done [09:56:38]KKMCreateOFDPacket done [09:56:38]NVStorageSaveData kkm_last_timestamp [09:56:38]File name is /storage/kkm_last_timestamp [09:56:38]Write 4 bytes [09:56:38]NVStorageSaveData done [09:56:38]ExternCall_PrintAddStr [09:56:38]wPrintStart [09:56:38]Write to MH i2c: 01 00 00 A3 02 A5 [09:56:38]Write i2c OK [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: 01 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: 01 07 00 [09:56:38]MH_I2C_Read... [09:56:38]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 FF 0F BA [09:56:38]RasterBufferAndPrint [09:56:38]line Счет N : (1)458208 [09:56:38]line ИНН: 02508201610067 [09:56:38]line Контрольно-Кассовый Чек [09:56:38]line ПРОДАЖА [09:56:38]line ТРК (МРК, ГНК) : 22 [09:56:38]line Товар: 2710124130 [09:56:38]line Аи-92-К-5 [09:56:38]line 15.200 * 65.80 [09:56:38]line = 1000.16 [09:56:38]line НДС 12% НСП 1% [09:56:38]line > о реализуемом товаре [09:56:38]line ОКРУГЛЕНИЕ: -0.16 [09:56:38]line ИТОГО: 1000.00 [09:56:38]line Внесено: 1000.00 [09:56:38]line СДАЧА: 0.00 [09:56:38]line НСП 1% : 8.85 [09:56:38]line НДС 12% : 106.21 [09:56:38]line Наличными: 1000.00 [09:56:38]line Безнал.: 0.00 [09:56:38]line Место: АЗС № 72 "Партнер Нефть" [09:56:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:56:38]line СНО: Общий режим [09:56:38]line Чек 49 12.07.2024 09:56 [09:56:38]line Смена: 445 ФФД: 1.0 [09:56:38]line ЗНМ: 0300000160 [09:56:38]line РНМ: 0000000000090829 [09:56:38]line Версия ККМ: 001 [09:56:38]line ФМ: 0000000000874718 [09:56:38]line ФД: 164128 [09:56:38]line ФПД: 77603952986908 [09:56:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T095637&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164128&fm=77603952986908&tin=02508201610067®Number=0000000000090829&sum=100000 [09:56:38]OFD Sender: Processing packet 164128 [packets to send 104, broken 103] [09:56:38]ProducePacketName [09:56:38]name=ofd_packets/00164128 [09:56:38]OFD Sender: To server: pG, [09:56:38]CommunicateWithHost lk.salyk.kg:30040 [09:56:38]ConnectInit lk.salyk.kg [09:56:38]written 0, free lines is 4095 [09:56:39]Connected sock=10 [09:56:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A 71 07 01 A0 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 D5 FD 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 81 02 00 35 04 06 00 46 94 94 0D 0B 1C 2D 69 81 36 A6 1E 41 8B [09:56:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 37 02 47 00 B1 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 34 37 31 38 10 04 04 00 20 81 02 00 F4 03 04 00 6A A4 90 66 B6 04 01 00 00 BF CA 9F 33 AF 2C F8 EB [09:56:39]CommunicateWithHost err = 0 [09:56:39]CheckOFDResponse [09:56:39]1017 (14) - 77093643461234 [09:56:39]1041 (16) - 0000000000874718 [09:56:39]1040 (4) - 164128 [09:56:39]1012 (4) - 12.07.2024 03:35 [09:56:39]1206 (1) - 0 [09:56:39]OFD Sender: Remove packet 164128 [09:56:39]ProducePacketName [09:56:39]name=ofd_packets/00164128 [09:56:39]NVStorageDeleteData [09:56:39]Write to MH i2c: 01 00 00 CD 02 CF [09:56:39]Write i2c OK [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: 01 [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: 01 07 00 [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 F8 0C DA [09:56:39]RasterBufferAndPrint [09:56:39]line [09:56:39]line [09:56:39]line [09:56:39]line [09:56:39]line [09:56:39]written 0, free lines is 3329 [09:56:39]MH_Cut [09:56:39]Write to MH i2c: D1 01 00 D4 02 01 A8 [09:56:39]Write i2c OK [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: D1 [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: D1 01 00 [09:56:39]MH_I2C_Read... [09:56:39]Read from MH i2c: D1 01 00 D4 02 00 A7 [09:56:39]Write to MH i2c: 01 00 00 D5 02 D7 [09:56:39]Write i2c OK [09:56:39]MH_I2C_Read... [09:56:39]OFD Sender: No OFD packet to send [09:56:40]*** Cut start [09:56:40]*** Partial cut [09:56:40]*** CUTSNS_PIN = 1 [09:56:40]*** CUTSNS_PIN = 0 [09:56:40]*** Brake cut motor [09:56:40]Read from MH i2c: 01 [09:56:40]MH_I2C_Read... [09:56:40]*** Stop cut motor [09:56:40]*** Cut end [09:56:40]Read from MH i2c: 01 07 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: 01 07 00 D5 02 00 00 00 00 00 FF 0F EC [09:56:40]process_action close_receipt done [09:56:40]requested_data is exist [09:56:40]produce_requested_data [09:56:40]requested_item fm.sn is exist - process it [09:56:40]wFMCommunicate request_size=4 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 11 00 00 [09:56:40]Write to MH i2c: E2 08 00 D6 02 80 11 00 00 00 00 00 00 52 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 17 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 17 00 D6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [09:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:56:40]wFMCommunicate OK [09:56:40]requested_item fd.num is exist - process it [09:56:40]SAM_PROTO_GetFieldsCounters [09:56:40]wFMCommunicate request_size=4 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 13 00 00 [09:56:40]Write to MH i2c: E2 08 00 D7 02 80 13 00 00 00 00 00 00 55 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 62 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 62 00 D7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [09:56: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:40]wFMCommunicate OK [09:56:40]SAM_PROTO_GetFieldsCounters done [09:56:40]requested_item shift.num is exist - process it [09:56:40]requested_item shift.opened is exist - process it [09:56:40]req_shift_opened [09:56:40]FM_GetShiftState [09:56:40]SAM_PROTO_GetShiftState [09:56:40]wFMCommunicate request_size=4 [09:56:40]MH_SAM_APDU [09:56:40]CAPDU: 80 13 01 00 [09:56:40]Write to MH i2c: E2 08 00 D8 02 80 13 01 00 00 00 00 00 57 [09:56:40]Write i2c OK [09:56:40]MH_I2C_Read... [09:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:40]Read from MH i2c: E2 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 0E 00 [09:56:40]MH_I2C_Read... [09:56:40]Read from MH i2c: E2 0E 00 D8 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A1 [09:56:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [09:56:40]wFMCommunicate OK [09:56:40]SAM_PROTO_GetShiftState done [09:56:40]FM_GetShiftState done [09:56:40]req_shift_opened done [09:56:40]requested_item shift.open_date is exist - process it [09:56:40]req_shift_open_date [09:56:40]req_shift_open_date done [09:56:40]produce_requested_data done [09:56:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164128,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [09:56:40]process_action_free close_receipt [09:56:40]json_value_free [09:56:40]json_value_free done [09:56:40]process_json_proto returns [09:56:40]Send response to host [09:56:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164128,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [09:56:40]free response buf [09:56:40]execute_script done [09:56:40]execute_script returns [09:56:40]free content buf [09:56:40]Sock 7.Close socket [09:56:40]Sock 7.Thread stoped [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:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:33]accept exits with 9 [10:02:33]New connection [10:02:33]New thread 3066707300 created [10:02:33]Thread 3066850660 joined [10:02:33]Waiting for new connection... [10:02:33] Sock 9.Parse request [10:02:33]Sock 9.Check first char [10:02:33]Sock 9.First char is OK [10:02:33]request: POST /json_proto HTTP/1.0 [10:02:33]Method: POST [10:02:33]URL: /json_proto [10:02:33]Method is POST - this is cgi request [10:02:33]url: /json_proto [10:02:33]query_string will be loaded in cgi processing [10:02:33]execute_cgi json_proto POST (null) [10:02:33]execute_cgi path=json_proto method=POST [10:02:33]POST find Content-Length [10:02:33]Host: 172.17.56.4:8080 [10:02:33]Content-Length: 679 [10:02:33]Content-Type: application/json [10:02:33] [10:02:33]POST finish read [10:02:33]Found Content-Length = 679 [10:02:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458209", "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" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:33]execute_script... [10:02: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)458209", "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" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:33]POST & json_proto [10:02:33]process_json_proto [10:02:33]json parsed OK: [10:02:33]protocol is kg_v1.0 [10:02:33]action value=close_receipt [10:02:33]process_action close_receipt [10:02:33]cmd_close_receipt [10:02:33]MH_GetDate [10:02:33]Write to MH i2c: F0 00 00 D9 02 CA [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: F0 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: F0 09 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: F0 09 00 D9 02 00 3A FF 90 66 C9 DC B2 64 BD [10:02:33]GetLastDocTimeStamp 1720778197 [10:02:33]current date 1720778554 [10:02:33]FM_GetShiftState [10:02:33]SAM_PROTO_GetShiftState [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 13 01 00 [10:02:33]Write to MH i2c: E2 08 00 DA 02 80 13 01 00 00 00 00 00 59 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 0E 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 0E 00 DA 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A3 [10:02:33]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:02:33]wFMCommunicate OK [10:02:33]SAM_PROTO_GetShiftState done [10:02:33]FM_GetShiftState done [10:02:33]opened in 1720744654 [10:02:33]opened+sec_in_day 1720831054 [10:02:33]quantity*price = 120001 [10:02:33]sum+1 = 120002 [10:02:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 50 12.07.2024 10:02 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164129 ФПД: 31267637170182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T100234&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164129&fm=31267637170182&tin=02508201610067®Number=0000000000090829&sum=120000 [10:02:34]StoreToDocumentArchive [10:02:34]shift 445 fd 164129 [10:02:34]save to /storage/0445/doc_00164129 [10:02:34]save last doc name /storage/0445/doc_00164129 to /storage/kkm_last_doc_name [10:02:34]save OK [10:02:34]Clear old archive folders... [10:02:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:02:34]tlvbuf is 009FA320 [10:02:34]SAM_PROTO_ClearQueue [10:02:34]wFMCommunicate request_size=4 [10:02:34]MH_SAM_APDU [10:02:34]CAPDU: 80 09 00 00 [10:02:34]Write to MH i2c: E2 08 00 E7 02 80 09 00 00 00 00 00 00 5B [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [10:02:34]RAPDU: 90 00 [10:02:34]wFMCommunicate OK [10:02:34]SAM_PROTO_ClearQueue done [10:02:34]KKMCreateOFDPacket [10:02:34]OFDProtocolAddRootSTLVToBuf [10:02:34]FM_MakeSignedData [10:02:34]FM_MakeSignedData [10:02:34]SAM_PROTO_SignData [10:02:34]wFMCommunicate request_size=4 [10:02:34]MH_SAM_APDU [10:02:34]CAPDU: 80 0D 01 02 [10:02:34]Write to MH i2c: E2 08 00 E8 02 80 0D 01 02 00 00 00 00 63 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 03 00 E8 02 00 90 00 5E [10:02:34]RAPDU: 90 00 [10:02:34]wFMCommunicate OK [10:02:34]wFMCommunicate request_size=255 [10:02:34]MH_SAM_APDU [10:02: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 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 32 00 00 00 F4 03 04 00 3A FF 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 81 02 00 35 04 06 00 1C 70 10 68 [10:02:34]Write to MH i2c: E2 02 01 E9 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 32 00 00 00 F4 03 04 00 3A FF 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 81 02 00 35 04 06 00 1C 70 10 68 00 00 14 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:35]Read from MH i2c: E2 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 03 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 03 00 E9 02 00 90 00 5F [10:02:35]RAPDU: 90 00 [10:02:35]wFMCommunicate OK [10:02:35]wFMCommunicate request_size=7 [10:02:35]MH_SAM_APDU [10:02:35]CAPDU: 80 0D 02 02 02 10 06 [10:02:35]Write to MH i2c: E2 0A 00 EA 02 80 0D 02 02 02 00 10 06 00 00 80 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:35]Read from MH i2c: E2 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 03 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [10:02:35]RAPDU: 90 00 [10:02:35]wFMCommunicate OK [10:02:35]wFMCommunicate request_size=4 [10:02:35]MH_SAM_APDU [10:02:35]CAPDU: 80 0D 03 02 [10:02:35]Write to MH i2c: E2 08 00 EB 02 80 0D 03 02 00 00 00 00 68 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:35]Read from MH i2c: E2 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 0B 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 0B 00 EB 02 00 41 4C 22 A3 07 0D 33 70 90 00 72 [10:02:35]RAPDU: 41 4C 22 A3 07 0D 33 70 90 00 [10:02:35]wFMCommunicate OK [10:02:35]SAM_PROTO_SignData done [10:02:35]FM_MakeSignedData done [10:02:35]CreateOFDProtocolMessage [10:02:35]wFMCommunicate request_size=4 [10:02:35]MH_SAM_APDU [10:02:35]CAPDU: 80 11 00 00 [10:02:35]Write to MH i2c: E2 08 00 EC 02 80 11 00 00 00 00 00 00 68 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:35]Read from MH i2c: E2 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 17 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 17 00 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [10:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:02:35]wFMCommunicate OK [10:02:35]CreateOFDProtocolMessage done [10:02:35]OFDSenderStorePacket 164129 [10:02:35]StoreOFDPacket docnum=164129 [10:02:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E6 29 04 01 3B 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 32 00 00 00 F4 03 04 00 3A FF 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 81 02 00 35 04 06 00 1C 70 10 68 10 06 41 4C 22 A3 07 0D 33 70 [10:02:35]CheckFolder [10:02:35]dirname=/storage/ofd_packets [10:02:35]CheckFolder done [10:02:35]ProducePacketName [10:02:35]name=ofd_packets/00164129 [10:02:35]NVStorageSaveData ofd_packets/00164129 [10:02:35]File name is /storage/ofd_packets/00164129 [10:02:35]Write 298 bytes [10:02:35]NVStorageSaveData done [10:02:35]OFDSenderStorePacket done [10:02:35]KKMCreateOFDPacket done [10:02:35]NVStorageSaveData kkm_last_timestamp [10:02:35]File name is /storage/kkm_last_timestamp [10:02:35]Write 4 bytes [10:02:35]NVStorageSaveData done [10:02:35]ExternCall_PrintAddStr [10:02:35]wPrintStart [10:02:35]Write to MH i2c: 01 00 00 ED 02 EF [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 07 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 07 00 ED 02 00 00 00 00 00 FF 0F 04 [10:02:35]RasterBufferAndPrint [10:02:35]line Счет N : (1)458209 [10:02:35]line ИНН: 02508201610067 [10:02:35]line Контрольно-Кассовый Чек [10:02:35]line ПРОДАЖА [10:02:35]line ТРК (МРК, ГНК) : 21 [10:02:35]line Товар: 2710194210 [10:02:35]line ДТ-К-5 [10:02:35]line 16.690 * 71.90 [10:02:35]line = 1200.01 [10:02:35]line НДС 12% НСП 1% [10:02:35]line > о реализуемом товаре [10:02:35]line ОКРУГЛЕНИЕ: -0.01 [10:02:35]line ИТОГО: 1200.00 [10:02:35]line Внесено: 1200.00 [10:02:35]line СДАЧА: 0.00 [10:02:35]line НСП 1% : 10.62 [10:02:35]line НДС 12% : 127.43 [10:02:35]line Наличными: 1200.00 [10:02:35]line Безнал.: 0.00 [10:02:35]line Место: АЗС № 72 "Партнер Нефть" [10:02:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:02:35]line СНО: Общий режим [10:02:35]line Чек 50 12.07.2024 10:02 [10:02:35]line Смена: 445 ФФД: 1.0 [10:02:35]line ЗНМ: 0300000160 [10:02:35]line РНМ: 0000000000090829 [10:02:35]line Версия ККМ: 001 [10:02:35]line ФМ: 0000000000874718 [10:02:35]line ФД: 164129 [10:02:35]line ФПД: 31267637170182 [10:02:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T100234&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164129&fm=31267637170182&tin=02508201610067®Number=0000000000090829&sum=120000 [10:02:35]OFD Sender: Processing packet 164129 [packets to send 104, broken 103] [10:02:35]ProducePacketName [10:02:35]name=ofd_packets/00164129 [10:02:35]OFD Sender: To server: pG, [10:02:35]CommunicateWithHost lk.salyk.kg:30040 [10:02:35]ConnectInit lk.salyk.kg [10:02:35]written 0, free lines is 4095 [10:02:35]Connected sock=10 [10:02:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E6 29 04 01 3B 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 32 00 00 00 F4 03 04 00 3A FF 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 81 02 00 35 04 06 00 1C 70 10 68 10 06 41 4C 22 A3 07 0D 33 70 [10:02:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F8 91 47 00 49 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 81 02 00 F4 03 04 00 CE A5 90 66 B6 04 01 00 00 81 14 42 11 21 16 E6 F1 [10:02:35]CommunicateWithHost err = 0 [10:02:35]CheckOFDResponse [10:02:35]1017 (14) - 77093643461234 [10:02:35]1041 (16) - 0000000000874718 [10:02:35]1040 (4) - 164129 [10:02:35]1012 (4) - 12.07.2024 03:41 [10:02:35]1206 (1) - 0 [10:02:35]OFD Sender: Remove packet 164129 [10:02:35]ProducePacketName [10:02:35]name=ofd_packets/00164129 [10:02:35]NVStorageDeleteData [10:02:35]Write to MH i2c: 01 00 00 17 03 1A [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 07 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 F3 0C 20 [10:02:35]RasterBufferAndPrint [10:02:35]line [10:02:35]line [10:02:35]line [10:02:35]line [10:02:35]line [10:02:35]written 0, free lines is 3321 [10:02:35]MH_Cut [10:02:35]Write to MH i2c: D1 01 00 1E 03 01 F3 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: D1 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: D1 01 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: D1 01 00 1E 03 00 F2 [10:02:35]Write to MH i2c: 01 00 00 1F 03 22 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:36]OFD Sender: No OFD packet to send [10:02:36]*** Cut start [10:02:36]*** Partial cut [10:02:36]*** CUTSNS_PIN = 1 [10:02:36]*** CUTSNS_PIN = 0 [10:02:36]*** Brake cut motor [10:02:37]Read from MH i2c: 01 [10:02:37]MH_I2C_Read... [10:02:37]*** Stop cut motor [10:02:37]*** Cut end [10:02:37]Read from MH i2c: 01 07 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 FF 0F 37 [10:02:37]process_action close_receipt done [10:02:37]requested_data is exist [10:02:37]produce_requested_data [10:02:37]requested_item fm.sn is exist - process it [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 11 00 00 [10:02:37]Write to MH i2c: E2 08 00 20 03 80 11 00 00 00 00 00 00 9D [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 17 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 17 00 20 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [10:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:02:37]wFMCommunicate OK [10:02:37]requested_item fd.num is exist - process it [10:02:37]SAM_PROTO_GetFieldsCounters [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 13 00 00 [10:02:37]Write to MH i2c: E2 08 00 21 03 80 13 00 00 00 00 00 00 A0 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 62 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 62 00 21 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:37]wFMCommunicate OK [10:02:37]SAM_PROTO_GetFieldsCounters done [10:02:37]requested_item shift.num is exist - process it [10:02:37]requested_item shift.opened is exist - process it [10:02:37]req_shift_opened [10:02:37]FM_GetShiftState [10:02:37]SAM_PROTO_GetShiftState [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 13 01 00 [10:02:37]Write to MH i2c: E2 08 00 22 03 80 13 01 00 00 00 00 00 A2 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:37]Read from MH i2c: E2 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 0E 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: E2 0E 00 22 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EC [10:02:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:02:37]wFMCommunicate OK [10:02:37]SAM_PROTO_GetShiftState done [10:02:37]FM_GetShiftState done [10:02:37]req_shift_opened done [10:02:37]requested_item shift.open_date is exist - process it [10:02:37]req_shift_open_date [10:02:37]req_shift_open_date done [10:02:37]produce_requested_data done [10:02:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164129,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:02:37]process_action_free close_receipt [10:02:37]json_value_free [10:02:37]json_value_free done [10:02:37]process_json_proto returns [10:02:37]Send response to host [10:02:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164129,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:02:37]free response buf [10:02:37]execute_script done [10:02:37]execute_script returns [10:02:37]free content buf [10:02:37]Sock 9.Close socket [10:02:37]Sock 9.Thread stoped [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:02:58]accept exits with 7 [10:02:58]New connection [10:02:58]New thread 3066850660 created [10:02:58]Thread 3066707300 joined [10:02:58]Waiting for new connection... [10:02:58] Sock 7.Parse request [10:02:58]Sock 7.Check first char [10:02:58]Sock 7.First char is OK [10:02:58]request: POST /json_proto HTTP/1.0 [10:02:58]Method: POST [10:02:58]URL: /json_proto [10:02:58]Method is POST - this is cgi request [10:02:58]url: /json_proto [10:02:58]query_string will be loaded in cgi processing [10:02:58]execute_cgi json_proto POST (null) [10:02:58]execute_cgi path=json_proto method=POST [10:02:58]POST find Content-Length [10:02:58]Host: 172.17.56.4:8080 [10:02:58]Content-Length: 674 [10:02:58]Content-Type: application/json [10:02:58] [10:02:58]POST finish read [10:02:58]Found Content-Length = 674 [10:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458210", "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" : 71.90, "quantity" : 5.570, "sum" : 400.48, "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:02:58]execute_script... [10:02:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458210", "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" : 71.90, "quantity" : 5.570, "sum" : 400.48, "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:02:58]POST & json_proto [10:02:58]process_json_proto [10:02:58]json parsed OK: [10:02:58]protocol is kg_v1.0 [10:02:58]action value=close_receipt [10:02:58]process_action close_receipt [10:02:58]cmd_close_receipt [10:02:58]MH_GetDate [10:02:58]Write to MH i2c: F0 00 00 23 03 15 [10:02:58]Write i2c OK [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: F0 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: F0 09 00 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: F0 09 00 23 03 00 53 FF 90 66 C9 DC B2 64 21 [10:02:58]GetLastDocTimeStamp 1720778554 [10:02:58]current date 1720778579 [10:02:58]FM_GetShiftState [10:02:58]SAM_PROTO_GetShiftState [10:02:58]wFMCommunicate request_size=4 [10:02:58]MH_SAM_APDU [10:02:58]CAPDU: 80 13 01 00 [10:02:58]Write to MH i2c: E2 08 00 24 03 80 13 01 00 00 00 00 00 A4 [10:02:58]Write i2c OK [10:02:58]MH_I2C_Read... [10:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:58]Read from MH i2c: E2 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 0E 00 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 0E 00 24 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EE [10:02:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:02:58]wFMCommunicate OK [10:02:58]SAM_PROTO_GetShiftState done [10:02:58]FM_GetShiftState done [10:02:58]opened in 1720744654 [10:02:58]opened+sec_in_day 1720831054 [10:02:58]quantity*price = 40048 [10:02:58]sum+1 = 40049 [10:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 51 12.07.2024 10:02 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164130 ФПД: 107120209316363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T100259&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164130&fm=107120209316363&tin=02508201610067®Number=0000000000090829&sum=40000 [10:02:59]StoreToDocumentArchive [10:02:59]shift 445 fd 164130 [10:02:59]save to /storage/0445/doc_00164130 [10:02:59]save last doc name /storage/0445/doc_00164130 to /storage/kkm_last_doc_name [10:02:59]save OK [10:02:59]Clear old archive folders... [10:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:02:59]tlvbuf is 00A027A0 [10:02:59]SAM_PROTO_ClearQueue [10:02:59]wFMCommunicate request_size=4 [10:02:59]MH_SAM_APDU [10:02:59]CAPDU: 80 09 00 00 [10:02:59]Write to MH i2c: E2 08 00 31 03 80 09 00 00 00 00 00 00 A6 [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:59]Read from MH i2c: E2 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 03 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 03 00 31 03 00 90 00 A8 [10:02:59]RAPDU: 90 00 [10:02:59]wFMCommunicate OK [10:02:59]SAM_PROTO_ClearQueue done [10:02:59]KKMCreateOFDPacket [10:02:59]OFDProtocolAddRootSTLVToBuf [10:02:59]FM_MakeSignedData [10:02:59]FM_MakeSignedData [10:02:59]SAM_PROTO_SignData [10:02:59]wFMCommunicate request_size=4 [10:02:59]MH_SAM_APDU [10:02:59]CAPDU: 80 0D 01 02 [10:02:59]Write to MH i2c: E2 08 00 32 03 80 0D 01 02 00 00 00 00 AE [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:59]Read from MH i2c: E2 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 03 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 03 00 32 03 00 90 00 A9 [10:02:59]RAPDU: 90 00 [10:02:59]wFMCommunicate OK [10:02:59]wFMCommunicate request_size=255 [10:02:59]MH_SAM_APDU [10:02: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 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 53 FF 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 81 02 00 35 04 06 00 61 6C DE 06 [10:02:59]Write to MH i2c: E2 02 01 33 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 53 FF 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 81 02 00 35 04 06 00 61 6C DE 06 00 00 7D [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:59]Read from MH i2c: E2 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 03 00 [10:02:59]MH_I2C_Read... [10:02:59]Read from MH i2c: E2 03 00 33 03 00 90 00 AA [10:02:59]RAPDU: 90 00 [10:02:59]wFMCommunicate OK [10:02:59]wFMCommunicate request_size=7 [10:02:59]MH_SAM_APDU [10:02:59]CAPDU: 80 0D 02 02 02 4A 0B [10:02:59]Write to MH i2c: E2 0A 00 34 03 80 0D 02 02 02 00 4A 0B 00 00 0A [10:02:59]Write i2c OK [10:02:59]MH_I2C_Read... [10:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:00]Read from MH i2c: E2 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: E2 03 00 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [10:03:00]RAPDU: 90 00 [10:03:00]wFMCommunicate OK [10:03:00]wFMCommunicate request_size=4 [10:03:00]MH_SAM_APDU [10:03:00]CAPDU: 80 0D 03 02 [10:03:00]Write to MH i2c: E2 08 00 35 03 80 0D 03 02 00 00 00 00 B3 [10:03:00]Write i2c OK [10:03:00]MH_I2C_Read... [10:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:00]Read from MH i2c: E2 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: E2 0B 00 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: E2 0B 00 35 03 00 DB 66 B5 DA BF 1E 20 8B 90 00 0C [10:03:00]RAPDU: DB 66 B5 DA BF 1E 20 8B 90 00 [10:03:00]wFMCommunicate OK [10:03:00]SAM_PROTO_SignData done [10:03:00]FM_MakeSignedData done [10:03:00]CreateOFDProtocolMessage [10:03:00]wFMCommunicate request_size=4 [10:03:00]MH_SAM_APDU [10:03:00]CAPDU: 80 11 00 00 [10:03:00]Write to MH i2c: E2 08 00 36 03 80 11 00 00 00 00 00 00 B3 [10:03:00]Write i2c OK [10:03:00]MH_I2C_Read... [10:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:00]Read from MH i2c: E2 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: E2 17 00 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: E2 17 00 36 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [10:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:03:00]wFMCommunicate OK [10:03:00]CreateOFDProtocolMessage done [10:03:00]OFDSenderStorePacket 164130 [10:03:00]StoreOFDPacket docnum=164130 [10:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 66 7E 04 01 74 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 53 FF 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 81 02 00 35 04 06 00 61 6C DE 06 4A 0B DB 66 B5 DA BF 1E 20 8B [10:03:00]CheckFolder [10:03:00]dirname=/storage/ofd_packets [10:03:00]CheckFolder done [10:03:00]ProducePacketName [10:03:00]name=ofd_packets/00164130 [10:03:00]NVStorageSaveData ofd_packets/00164130 [10:03:00]File name is /storage/ofd_packets/00164130 [10:03:00]Write 298 bytes [10:03:00]NVStorageSaveData done [10:03:00]OFDSenderStorePacket done [10:03:00]KKMCreateOFDPacket done [10:03:00]NVStorageSaveData kkm_last_timestamp [10:03:00]File name is /storage/kkm_last_timestamp [10:03:00]Write 4 bytes [10:03:00]NVStorageSaveData done [10:03:00]ExternCall_PrintAddStr [10:03:00]wPrintStart [10:03:00]Write to MH i2c: 01 00 00 37 03 3A [10:03:00]Write i2c OK [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: 01 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: 01 07 00 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 FF 0F 4F [10:03:00]RasterBufferAndPrint [10:03:00]line Счет N : (1)458210 [10:03:00]line ИНН: 02508201610067 [10:03:00]line Контрольно-Кассовый Чек [10:03:00]line ПРОДАЖА [10:03:00]line ТРК (МРК, ГНК) : 21 [10:03:00]line Товар: 2710194210 [10:03:00]line ДТ-К-5 [10:03:00]line 5.570 * 71.90 [10:03:00]line = 400.48 [10:03:00]line НДС 12% НСП 1% [10:03:00]line > о реализуемом товаре [10:03:00]line ОКРУГЛЕНИЕ: -0.48 [10:03:00]line ИТОГО: 400.00 [10:03:00]line Внесено: 400.00 [10:03:00]line СДАЧА: 0.00 [10:03:00]line НСП 1% : 3.54 [10:03:00]line НДС 12% : 42.53 [10:03:00]line Наличными: 400.00 [10:03:00]line Безнал.: 0.00 [10:03:00]line Место: АЗС № 72 "Партнер Нефть" [10:03:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:03:00]line СНО: Общий режим [10:03:00]line Чек 51 12.07.2024 10:02 [10:03:00]line Смена: 445 ФФД: 1.0 [10:03:00]line ЗНМ: 0300000160 [10:03:00]line РНМ: 0000000000090829 [10:03:00]line Версия ККМ: 001 [10:03:00]line ФМ: 0000000000874718 [10:03:00]line ФД: 164130 [10:03:00]line ФПД: 107120209316363 [10:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T100259&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164130&fm=107120209316363&tin=02508201610067®Number=0000000000090829&sum=40000 [10:03:00]OFD Sender: Processing packet 164130 [packets to send 104, broken 103] [10:03:00]ProducePacketName [10:03:00]name=ofd_packets/00164130 [10:03:00]OFD Sender: To server: pG, [10:03:00]CommunicateWithHost lk.salyk.kg:30040 [10:03:00]ConnectInit lk.salyk.kg [10:03:00]written 0, free lines is 4095 [10:03:00]Connected sock=10 [10:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 66 7E 04 01 74 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 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 53 FF 90 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 81 02 00 35 04 06 00 61 6C DE 06 4A 0B DB 66 B5 DA BF 1E 20 8B [10:03:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B3 D6 47 00 8A 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 81 02 00 F4 03 04 00 E7 A5 90 66 B6 04 01 00 00 78 0A 9B 8F F4 BE 8A 2C [10:03:00]CommunicateWithHost err = 0 [10:03:00]CheckOFDResponse [10:03:00]1017 (14) - 77093643461234 [10:03:00]1041 (16) - 0000000000874718 [10:03:00]1040 (4) - 164130 [10:03:00]1012 (4) - 12.07.2024 03:41 [10:03:00]1206 (1) - 0 [10:03:00]OFD Sender: Remove packet 164130 [10:03:00]ProducePacketName [10:03:00]name=ofd_packets/00164130 [10:03:00]NVStorageDeleteData [10:03:00]Write to MH i2c: 01 00 00 61 03 64 [10:03:00]Write i2c OK [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: 01 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: 01 07 00 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 E6 0C 5D [10:03:00]RasterBufferAndPrint [10:03:00]line [10:03:00]line [10:03:00]line [10:03:00]line [10:03:00]line [10:03:00]written 0, free lines is 3308 [10:03:00]MH_Cut [10:03:00]Write to MH i2c: D1 01 00 68 03 01 3D [10:03:00]Write i2c OK [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: D1 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: D1 01 00 [10:03:00]MH_I2C_Read... [10:03:00]Read from MH i2c: D1 01 00 68 03 00 3C [10:03:00]Write to MH i2c: 01 00 00 69 03 6C [10:03:00]Write i2c OK [10:03:00]MH_I2C_Read... [10:03:01]OFD Sender: No OFD packet to send [10:03:01]*** Cut start [10:03:01]*** Partial cut [10:03:01]*** CUTSNS_PIN = 1 [10:03:01]*** CUTSNS_PIN = 0 [10:03:01]*** Brake cut motor [10:03:02]Read from MH i2c: 01 [10:03:02]MH_I2C_Read... [10:03:02]*** Stop cut motor [10:03:02]*** Cut end [10:03:02]Read from MH i2c: 01 07 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 FF 0F 81 [10:03:02]process_action close_receipt done [10:03:02]requested_data is exist [10:03:02]produce_requested_data [10:03:02]requested_item fm.sn is exist - process it [10:03:02]wFMCommunicate request_size=4 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 11 00 00 [10:03:02]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 17 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 17 00 6A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [10:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:03:02]wFMCommunicate OK [10:03:02]requested_item fd.num is exist - process it [10:03:02]SAM_PROTO_GetFieldsCounters [10:03:02]wFMCommunicate request_size=4 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 13 00 00 [10:03:02]Write to MH i2c: E2 08 00 6B 03 80 13 00 00 00 00 00 00 EA [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 62 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 62 00 6B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [10:03:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:02]wFMCommunicate OK [10:03:02]SAM_PROTO_GetFieldsCounters done [10:03:02]requested_item shift.num is exist - process it [10:03:02]requested_item shift.opened is exist - process it [10:03:02]req_shift_opened [10:03:02]FM_GetShiftState [10:03:02]SAM_PROTO_GetShiftState [10:03:02]wFMCommunicate request_size=4 [10:03:02]MH_SAM_APDU [10:03:02]CAPDU: 80 13 01 00 [10:03:02]Write to MH i2c: E2 08 00 6C 03 80 13 01 00 00 00 00 00 EC [10:03:02]Write i2c OK [10:03:02]MH_I2C_Read... [10:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:02]Read from MH i2c: E2 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 0E 00 [10:03:02]MH_I2C_Read... [10:03:02]Read from MH i2c: E2 0E 00 6C 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 36 [10:03:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:03:02]wFMCommunicate OK [10:03:02]SAM_PROTO_GetShiftState done [10:03:02]FM_GetShiftState done [10:03:02]req_shift_opened done [10:03:02]requested_item shift.open_date is exist - process it [10:03:02]req_shift_open_date [10:03:02]req_shift_open_date done [10:03:02]produce_requested_data done [10:03:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164130,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:03:02]process_action_free close_receipt [10:03:02]json_value_free [10:03:02]json_value_free done [10:03:02]process_json_proto returns [10:03:02]Send response to host [10:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164130,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:03:02]free response buf [10:03:02]execute_script done [10:03:02]execute_script returns [10:03:02]free content buf [10:03:02]Sock 7.Close socket [10:03:02]Sock 7.Thread stoped [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:08]accept exits with 9 [10:05:08]New connection [10:05:08]New thread 3066707300 created [10:05:08]Thread 3066850660 joined [10:05:08]Waiting for new connection... [10:05:08] Sock 9.Parse request [10:05:08]Sock 9.Check first char [10:05:08]Sock 9.First char is OK [10:05:08]request: POST /json_proto HTTP/1.0 [10:05:08]Method: POST [10:05:08]URL: /json_proto [10:05:08]Method is POST - this is cgi request [10:05:08]url: /json_proto [10:05:08]query_string will be loaded in cgi processing [10:05:08]execute_cgi json_proto POST (null) [10:05:08]execute_cgi path=json_proto method=POST [10:05:08]POST find Content-Length [10:05:08]Host: 172.17.56.4:8080 [10:05:08]Content-Length: 1188 [10:05:08]Content-Type: application/json [10:05:08] [10:05:08]POST finish read [10:05:08]Found Content-Length = 1188 [10:05:08]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458211\u000A12.07.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32594\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:08]execute_script... [10:05:08]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458211\u000A12.07.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32594\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:08]POST & json_proto [10:05:08]process_json_proto [10:05:08]json parsed OK: [10:05:08]protocol is kg_v1.0 [10:05:08]action value=print_text [10:05:08]process_action print_text [10:05:08]cmd_print_text [10:05:08]ExternCall_PrintAddStr [10:05:08]wPrintStart [10:05:08]Write to MH i2c: 01 00 00 6D 03 70 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: 01 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: 01 07 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: 01 07 00 6D 03 00 00 00 00 00 FF 0F 85 [10:05:08]RasterBufferAndPrint [10:05:08]line *****ТОВАРНЫЙ ЧЕК***** [10:05:08]line АЗС 72 [10:05:08]line Партнер нефть [10:05:08]line 02508201610067 [10:05:08]line Кассир : Садыков Н. [10:05:08]line Счет N : (1)458211 [10:05:08]line 12.07.2024 09:30 [10:05:08]line ПРОДАЖА [10:05:08]line ТРК (МРК, ГНК): 12 [10:05:08]line Вид ГСМ : 2710124130 [10:05:08]line Аи-92-К-5 [10:05:08]line 10.000 x 65.80 [10:05:08]line ИТОГ: 658.00 [10:05:08]line Тип оплаты: Талоны: Топливная Карта [10:05:08]line 32594 [10:05:08]line ______________________ [10:05:08]line (подпись) [10:05:08]written 0, free lines is 4095 [10:05:08]Write to MH i2c: 01 00 00 81 03 84 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: 01 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: 01 07 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: 01 07 00 81 03 00 00 00 00 00 0E 0E A7 [10:05:08]RasterBufferAndPrint [10:05:08]line [10:05:08]line [10:05:08]line [10:05:08]line [10:05:08]line [10:05:08]written 0, free lines is 3600 [10:05:08]MH_Cut [10:05:08]Write to MH i2c: D1 01 00 88 03 01 5D [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: D1 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: D1 01 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: D1 01 00 88 03 00 5C [10:05:08]Write to MH i2c: 01 00 00 89 03 8C [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** Cut start [10:05:08]*** Partial cut [10:05:08]*** CUTSNS_PIN = 1 [10:05:08]*** CUTSNS_PIN = 0 [10:05:09]*** Brake cut motor [10:05:09]Read from MH i2c: 01 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 07 00 [10:05:09]MH_I2C_Read... [10:05:09]*** Stop cut motor [10:05:09]*** Cut end [10:05:09]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 FF 0F A1 [10:05:09]process_action print_text done [10:05:09]requested_data is exist [10:05:09]produce_requested_data [10:05:09]requested_item fm.sn is exist - process it [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 11 00 00 [10:05:09]Write to MH i2c: E2 08 00 8A 03 80 11 00 00 00 00 00 00 07 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 17 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 17 00 8A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [10:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:05:09]wFMCommunicate OK [10:05:09]requested_item fd.num is exist - process it [10:05:09]SAM_PROTO_GetFieldsCounters [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 13 00 00 [10:05:09]Write to MH i2c: E2 08 00 8B 03 80 13 00 00 00 00 00 00 0A [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:09]Read from MH i2c: E2 62 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 62 00 8B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [10:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:09]wFMCommunicate OK [10:05:09]SAM_PROTO_GetFieldsCounters done [10:05:09]requested_item shift.num is exist - process it [10:05:09]requested_item shift.opened is exist - process it [10:05:09]req_shift_opened [10:05:09]FM_GetShiftState [10:05:09]SAM_PROTO_GetShiftState [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 13 01 00 [10:05:09]Write to MH i2c: E2 08 00 8C 03 80 13 01 00 00 00 00 00 0C [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0E 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0E 00 8C 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 56 [10:05:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:05:09]wFMCommunicate OK [10:05:09]SAM_PROTO_GetShiftState done [10:05:09]FM_GetShiftState done [10:05:09]req_shift_opened done [10:05:09]requested_item shift.open_date is exist - process it [10:05:09]req_shift_open_date [10:05:09]req_shift_open_date done [10:05:09]produce_requested_data done [10:05:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164130,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:05:09]process_action_free print_text [10:05:09]json_value_free [10:05:09]json_value_free done [10:05:09]process_json_proto returns [10:05:09]Send response to host [10:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164130,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:05:09]free response buf [10:05:09]execute_script done [10:05:09]execute_script returns [10:05:09]free content buf [10:05:09]Sock 9.Close socket [10:05:09]Sock 9.Thread stoped [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:17]accept exits with 7 [10:05:17]New connection [10:05:17]New thread 3066850660 created [10:05:17]Thread 3066707300 joined [10:05:17]Waiting for new connection... [10:05:17] Sock 7.Parse request [10:05:17]Sock 7.Check first char [10:05:17]Sock 7.First char is OK [10:05:17]request: POST /json_proto HTTP/1.0 [10:05:17]Method: POST [10:05:17]URL: /json_proto [10:05:17]Method is POST - this is cgi request [10:05:17]url: /json_proto [10:05:17]query_string will be loaded in cgi processing [10:05:17]execute_cgi json_proto POST (null) [10:05:17]execute_cgi path=json_proto method=POST [10:05:17]POST find Content-Length [10:05:17]Host: 172.17.56.4:8080 [10:05:17]Content-Length: 1188 [10:05:17]Content-Type: application/json [10:05:17] [10:05:17]POST finish read [10:05:17]Found Content-Length = 1188 [10:05:17]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458212\u000A12.07.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32594\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:17]execute_script... [10:05:17]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458212\u000A12.07.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32594\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:17]POST & json_proto [10:05:17]process_json_proto [10:05:17]json parsed OK: [10:05:17]protocol is kg_v1.0 [10:05:17]action value=print_text [10:05:17]process_action print_text [10:05:17]cmd_print_text [10:05:17]ExternCall_PrintAddStr [10:05:17]wPrintStart [10:05:17]Write to MH i2c: 01 00 00 8D 03 90 [10:05:17]Write i2c OK [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: 01 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: 01 07 00 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FF 0F A5 [10:05:17]RasterBufferAndPrint [10:05:17]line *****ТОВАРНЫЙ ЧЕК***** [10:05:17]line АЗС 72 [10:05:17]line Партнер нефть [10:05:17]line 02508201610067 [10:05:17]line Кассир : Садыков Н. [10:05:17]line Счет N : (1)458212 [10:05:17]line 12.07.2024 09:30 [10:05:17]line ПРОДАЖА [10:05:17]line ТРК (МРК, ГНК): 22 [10:05:17]line Вид ГСМ : 2710124130 [10:05:17]line Аи-92-К-5 [10:05:17]line 10.000 x 65.80 [10:05:17]line ИТОГ: 658.00 [10:05:17]line Тип оплаты: Талоны: Топливная Карта [10:05:17]line 32594 [10:05:17]line ______________________ [10:05:17]line (подпись) [10:05:17]written 0, free lines is 4095 [10:05:17]Write to MH i2c: 01 00 00 A1 03 A4 [10:05:17]Write i2c OK [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: 01 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: 01 07 00 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 0F 0E C8 [10:05:17]RasterBufferAndPrint [10:05:17]line [10:05:17]line [10:05:17]line [10:05:17]line [10:05:17]line [10:05:17]written 0, free lines is 3601 [10:05:17]MH_Cut [10:05:17]Write to MH i2c: D1 01 00 A8 03 01 7D [10:05:17]Write i2c OK [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: D1 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: D1 01 00 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: D1 01 00 A8 03 00 7C [10:05:17]Write to MH i2c: 01 00 00 A9 03 AC [10:05:17]Write i2c OK [10:05:17]MH_I2C_Read... [10:05:18]*** Cut start [10:05:18]*** Partial cut [10:05:18]*** CUTSNS_PIN = 1 [10:05:18]*** CUTSNS_PIN = 0 [10:05:18]*** Brake cut motor [10:05:18]Read from MH i2c: 01 [10:05:18]MH_I2C_Read... [10:05:18]*** Stop cut motor [10:05:18]*** Cut end [10:05:18]Read from MH i2c: 01 07 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [10:05:18]process_action print_text done [10:05:18]requested_data is exist [10:05:18]produce_requested_data [10:05:18]requested_item fm.sn is exist - process it [10:05:18]wFMCommunicate request_size=4 [10:05:18]MH_SAM_APDU [10:05:18]CAPDU: 80 11 00 00 [10:05:18]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:19]Read from MH i2c: E2 [10:05:19]MH_I2C_Read... [10:05:19]Read from MH i2c: E2 17 00 [10:05:19]MH_I2C_Read... [10:05:19]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7D [10:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:05:19]wFMCommunicate OK [10:05:19]requested_item fd.num is exist - process it [10:05:19]SAM_PROTO_GetFieldsCounters [10:05:19]wFMCommunicate request_size=4 [10:05:19]MH_SAM_APDU [10:05:19]CAPDU: 80 13 00 00 [10:05:19]Write to MH i2c: E2 08 00 AB 03 80 13 00 00 00 00 00 00 2A [10:05:19]Write i2c OK [10:05:19]MH_I2C_Read... [10:05:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:19]Read from MH i2c: E2 [10:05:19]MH_I2C_Read... [10:05:19]Read from MH i2c: E2 62 00 [10:05:19]MH_I2C_Read... [10:05:19]Read from MH i2c: E2 62 00 AB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:19]wFMCommunicate OK [10:05:19]SAM_PROTO_GetFieldsCounters done [10:05:19]requested_item shift.num is exist - process it [10:05:19]requested_item shift.opened is exist - process it [10:05:19]req_shift_opened [10:05:19]FM_GetShiftState [10:05:19]SAM_PROTO_GetShiftState [10:05:19]wFMCommunicate request_size=4 [10:05:19]MH_SAM_APDU [10:05:19]CAPDU: 80 13 01 00 [10:05:19]Write to MH i2c: E2 08 00 AC 03 80 13 01 00 00 00 00 00 2C [10:05:19]Write i2c OK [10:05:19]MH_I2C_Read... [10:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:19]Read from MH i2c: E2 [10:05:19]MH_I2C_Read... [10:05:19]Read from MH i2c: E2 0E 00 [10:05:19]MH_I2C_Read... [10:05:19]Read from MH i2c: E2 0E 00 AC 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 76 [10:05:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:05:19]wFMCommunicate OK [10:05:19]SAM_PROTO_GetShiftState done [10:05:19]FM_GetShiftState done [10:05:19]req_shift_opened done [10:05:19]requested_item shift.open_date is exist - process it [10:05:19]req_shift_open_date [10:05:19]req_shift_open_date done [10:05:19]produce_requested_data done [10:05:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164130,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:05:19]process_action_free print_text [10:05:19]json_value_free [10:05:19]json_value_free done [10:05:19]process_json_proto returns [10:05:19]Send response to host [10:05:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164130,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:05:19]free response buf [10:05:19]execute_script done [10:05:19]execute_script returns [10:05:19]free content buf [10:05:19]Sock 7.Close socket [10:05:19]Sock 7.Thread stoped [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:02]accept exits with 9 [10:07:02]New connection [10:07:02]New thread 3066707300 created [10:07:02]Thread 3066850660 joined [10:07:02]Waiting for new connection... [10:07:02] Sock 9.Parse request [10:07:02]Sock 9.Check first char [10:07:02]Sock 9.First char is OK [10:07:02]request: POST /json_proto HTTP/1.0 [10:07:02]Method: POST [10:07:02]URL: /json_proto [10:07:02]Method is POST - this is cgi request [10:07:02]url: /json_proto [10:07:02]query_string will be loaded in cgi processing [10:07:02]execute_cgi json_proto POST (null) [10:07:02]execute_cgi path=json_proto method=POST [10:07:02]POST find Content-Length [10:07:02]Host: 172.17.56.4:8080 [10:07:02]Content-Length: 1189 [10:07:02]Content-Type: application/json [10:07:02] [10:07:02]POST finish read [10:07:02]Found Content-Length = 1189 [10:07:02]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458213\u000A12.07.2024 09:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03469\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:02]execute_script... [10:07:02]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458213\u000A12.07.2024 09:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03469\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:02]POST & json_proto [10:07:02]process_json_proto [10:07:02]json parsed OK: [10:07:02]protocol is kg_v1.0 [10:07:02]action value=print_text [10:07:02]process_action print_text [10:07:02]cmd_print_text [10:07:02]ExternCall_PrintAddStr [10:07:02]wPrintStart [10:07:02]Write to MH i2c: 01 00 00 AD 03 B0 [10:07:02]Write i2c OK [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: 01 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: 01 07 00 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [10:07:02]RasterBufferAndPrint [10:07:02]line *****ТОВАРНЫЙ ЧЕК***** [10:07:02]line АЗС 72 [10:07:02]line Партнер нефть [10:07:02]line 02508201610067 [10:07:02]line Кассир : Садыков Н. [10:07:02]line Счет N : (1)458213 [10:07:02]line 12.07.2024 09:32 [10:07:02]line ПРОДАЖА [10:07:02]line ТРК (МРК, ГНК): 12 [10:07:02]line Вид ГСМ : 2710124130 [10:07:02]line Аи-92-К-5 [10:07:02]line 20.000 x 65.80 [10:07:02]line ИТОГ: 1316.00 [10:07:02]line Тип оплаты: Талоны: Топливная Карта [10:07:02]line 03469 [10:07:02]line ______________________ [10:07:02]line (подпись) [10:07:02]written 0, free lines is 4095 [10:07:02]Write to MH i2c: 01 00 00 C1 03 C4 [10:07:02]Write i2c OK [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: 01 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: 01 07 00 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 0F 0E E8 [10:07:02]RasterBufferAndPrint [10:07:02]line [10:07:02]line [10:07:02]line [10:07:02]line [10:07:02]line [10:07:02]written 0, free lines is 3601 [10:07:02]MH_Cut [10:07:02]Write to MH i2c: D1 01 00 C8 03 01 9D [10:07:02]Write i2c OK [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: D1 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: D1 01 00 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: D1 01 00 C8 03 00 9C [10:07:02]Write to MH i2c: 01 00 00 C9 03 CC [10:07:02]Write i2c OK [10:07:02]MH_I2C_Read... [10:07:03]*** Cut start [10:07:03]*** Partial cut [10:07:03]*** CUTSNS_PIN = 1 [10:07:03]*** CUTSNS_PIN = 0 [10:07:03]*** Brake cut motor [10:07:03]Read from MH i2c: 01 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: 01 07 00 [10:07:03]MH_I2C_Read... [10:07:03]*** Stop cut motor [10:07:03]*** Cut end [10:07:03]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 FF 0F E1 [10:07:03]process_action print_text done [10:07:03]requested_data is exist [10:07:03]produce_requested_data [10:07:03]requested_item fm.sn is exist - process it [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 11 00 00 [10:07:03]Write to MH i2c: E2 08 00 CA 03 80 11 00 00 00 00 00 00 47 [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 17 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 17 00 CA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9D [10:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:07:03]wFMCommunicate OK [10:07:03]requested_item fd.num is exist - process it [10:07:03]SAM_PROTO_GetFieldsCounters [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 13 00 00 [10:07:03]Write to MH i2c: E2 08 00 CB 03 80 13 00 00 00 00 00 00 4A [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:03]Read from MH i2c: E2 62 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 62 00 CB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [10:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:03]wFMCommunicate OK [10:07:03]SAM_PROTO_GetFieldsCounters done [10:07:03]requested_item shift.num is exist - process it [10:07:03]requested_item shift.opened is exist - process it [10:07:03]req_shift_opened [10:07:03]FM_GetShiftState [10:07:03]SAM_PROTO_GetShiftState [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 13 01 00 [10:07:03]Write to MH i2c: E2 08 00 CC 03 80 13 01 00 00 00 00 00 4C [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 0E 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 0E 00 CC 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 96 [10:07:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:07:03]wFMCommunicate OK [10:07:03]SAM_PROTO_GetShiftState done [10:07:03]FM_GetShiftState done [10:07:03]req_shift_opened done [10:07:03]requested_item shift.open_date is exist - process it [10:07:03]req_shift_open_date [10:07:03]req_shift_open_date done [10:07:03]produce_requested_data done [10:07:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164130,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:07:03]process_action_free print_text [10:07:03]json_value_free [10:07:03]json_value_free done [10:07:03]process_json_proto returns [10:07:03]Send response to host [10:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164130,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:07:03]free response buf [10:07:03]execute_script done [10:07:03]execute_script returns [10:07:03]free content buf [10:07:03]Sock 9.Close socket [10:07:03]Sock 9.Thread stoped [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:10]accept exits with 7 [10:11:10]New connection [10:11:10]New thread 3066850660 created [10:11:10]Thread 3066707300 joined [10:11:10]Waiting for new connection... [10:11:10] Sock 7.Parse request [10:11:10]Sock 7.Check first char [10:11:10]Sock 7.First char is OK [10:11:10]request: POST /json_proto HTTP/1.0 [10:11:10]Method: POST [10:11:10]URL: /json_proto [10:11:10]Method is POST - this is cgi request [10:11:10]url: /json_proto [10:11:10]query_string will be loaded in cgi processing [10:11:10]execute_cgi json_proto POST (null) [10:11:10]execute_cgi path=json_proto method=POST [10:11:10]POST find Content-Length [10:11:10]Host: 172.17.56.4:8080 [10:11:10]Content-Length: 677 [10:11:10]Content-Type: application/json [10:11:10] [10:11:10]POST finish read [10:11:10]Found Content-Length = 677 [10:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:10]execute_script... [10:11: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)458214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:10]POST & json_proto [10:11:10]process_json_proto [10:11:10]json parsed OK: [10:11:10]protocol is kg_v1.0 [10:11:10]action value=close_receipt [10:11:10]process_action close_receipt [10:11:10]cmd_close_receipt [10:11:10]MH_GetDate [10:11:10]Write to MH i2c: F0 00 00 CD 03 BF [10:11:10]Write i2c OK [10:11:10]MH_I2C_Read... [10:11:10]Read from MH i2c: F0 [10:11:10]MH_I2C_Read... [10:11:10]Read from MH i2c: F0 09 00 [10:11:10]MH_I2C_Read... [10:11:10]Read from MH i2c: F0 09 00 CD 03 00 3E 01 91 66 C9 DC B2 64 B9 [10:11:10]GetLastDocTimeStamp 1720778579 [10:11:10]current date 1720779070 [10:11:10]FM_GetShiftState [10:11:10]SAM_PROTO_GetShiftState [10:11:10]wFMCommunicate request_size=4 [10:11:10]MH_SAM_APDU [10:11:10]CAPDU: 80 13 01 00 [10:11:10]Write to MH i2c: E2 08 00 CE 03 80 13 01 00 00 00 00 00 4E [10:11:10]Write i2c OK [10:11:10]MH_I2C_Read... [10:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:10]Read from MH i2c: E2 [10:11:10]MH_I2C_Read... [10:11:10]Read from MH i2c: E2 0E 00 [10:11:10]MH_I2C_Read... [10:11:10]Read from MH i2c: E2 0E 00 CE 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 98 [10:11:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:11:10]wFMCommunicate OK [10:11:10]SAM_PROTO_GetShiftState done [10:11:10]FM_GetShiftState done [10:11:10]opened in 1720744654 [10:11:10]opened+sec_in_day 1720831054 [10:11:10]quantity*price = 50008 [10:11:10]sum+1 = 50009 [10:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 52 12.07.2024 10:11 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164131 ФПД: 111038167912953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164131&fm=111038167912953&tin=02508201610067®Number=0000000000090829&sum=50000 [10:11:11]StoreToDocumentArchive [10:11:11]shift 445 fd 164131 [10:11:11]save to /storage/0445/doc_00164131 [10:11:11]save last doc name /storage/0445/doc_00164131 to /storage/kkm_last_doc_name [10:11:11]save OK [10:11:11]Clear old archive folders... [10:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:11]tlvbuf is 009FC560 [10:11:11]SAM_PROTO_ClearQueue [10:11:11]wFMCommunicate request_size=4 [10:11:11]MH_SAM_APDU [10:11:11]CAPDU: 80 09 00 00 [10:11:11]Write to MH i2c: E2 08 00 DB 03 80 09 00 00 00 00 00 00 50 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [10:11:11]RAPDU: 90 00 [10:11:11]wFMCommunicate OK [10:11:11]SAM_PROTO_ClearQueue done [10:11:11]KKMCreateOFDPacket [10:11:11]OFDProtocolAddRootSTLVToBuf [10:11:11]FM_MakeSignedData [10:11:11]FM_MakeSignedData [10:11:11]SAM_PROTO_SignData [10:11:11]wFMCommunicate request_size=4 [10:11:11]MH_SAM_APDU [10:11:11]CAPDU: 80 0D 01 02 [10:11:11]Write to MH i2c: E2 08 00 DC 03 80 0D 01 02 00 00 00 00 58 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [10:11:11]RAPDU: 90 00 [10:11:11]wFMCommunicate OK [10:11:11]wFMCommunicate request_size=255 [10:11:11]MH_SAM_APDU [10:11: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 34 00 00 00 F4 03 04 00 3E 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 81 02 00 35 04 06 00 64 [10:11:11]Write to MH i2c: E2 02 01 DD 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 34 00 00 00 F4 03 04 00 3E 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 81 02 00 35 04 06 00 64 00 00 03 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [10:11:11]RAPDU: 90 00 [10:11:11]wFMCommunicate OK [10:11:11]wFMCommunicate request_size=10 [10:11:11]MH_SAM_APDU [10:11:11]CAPDU: 80 0D 02 02 05 FD 16 8E 11 F9 [10:11:11]Write to MH i2c: E2 0D 00 DE 03 80 0D 02 02 05 00 FD 16 8E 11 F9 00 00 10 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [10:11:11]RAPDU: 90 00 [10:11:11]wFMCommunicate OK [10:11:11]wFMCommunicate request_size=4 [10:11:11]MH_SAM_APDU [10:11:11]CAPDU: 80 0D 03 02 [10:11:11]Write to MH i2c: E2 08 00 DF 03 80 0D 03 02 00 00 00 00 5D [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 0B 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 0B 00 DF 03 00 DA 9F FE B4 83 0D 53 C8 90 00 34 [10:11:11]RAPDU: DA 9F FE B4 83 0D 53 C8 90 00 [10:11:11]wFMCommunicate OK [10:11:11]SAM_PROTO_SignData done [10:11:11]FM_MakeSignedData done [10:11:11]CreateOFDProtocolMessage [10:11:11]wFMCommunicate request_size=4 [10:11:11]MH_SAM_APDU [10:11:11]CAPDU: 80 11 00 00 [10:11:11]Write to MH i2c: E2 08 00 E0 03 80 11 00 00 00 00 00 00 5D [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:11]Read from MH i2c: E2 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 17 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: E2 17 00 E0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [10:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:11:11]wFMCommunicate OK [10:11:11]CreateOFDProtocolMessage done [10:11:11]OFDSenderStorePacket 164131 [10:11:11]StoreOFDPacket docnum=164131 [10:11:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 43 2C 07 01 69 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 34 00 00 00 F4 03 04 00 3E 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 81 02 00 35 04 06 00 64 FD 16 8E 11 F9 DA 9F FE B4 83 0D 53 C8 [10:11:11]CheckFolder [10:11:11]dirname=/storage/ofd_packets [10:11:11]CheckFolder done [10:11:11]ProducePacketName [10:11:11]name=ofd_packets/00164131 [10:11:11]NVStorageSaveData ofd_packets/00164131 [10:11:11]File name is /storage/ofd_packets/00164131 [10:11:11]Write 301 bytes [10:11:11]NVStorageSaveData done [10:11:11]OFDSenderStorePacket done [10:11:11]KKMCreateOFDPacket done [10:11:11]NVStorageSaveData kkm_last_timestamp [10:11:11]File name is /storage/kkm_last_timestamp [10:11:11]Write 4 bytes [10:11:11]NVStorageSaveData done [10:11:11]ExternCall_PrintAddStr [10:11:11]wPrintStart [10:11:11]Write to MH i2c: 01 00 00 E1 03 E4 [10:11:11]Write i2c OK [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: 01 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: 01 07 00 [10:11:11]MH_I2C_Read... [10:11:11]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [10:11:11]RasterBufferAndPrint [10:11:11]line Счет N : (1)458214 [10:11:11]line ИНН: 02508201610067 [10:11:11]line Контрольно-Кассовый Чек [10:11:11]line ПРОДАЖА [10:11:11]line ТРК (МРК, ГНК) : 12 [10:11:11]line Товар: 2710124130 [10:11:11]line Аи-92-К-5 [10:11:11]line 7.600 * 65.80 [10:11:11]line = 500.08 [10:11:11]line НДС 12% НСП 1% [10:11:11]line > о реализуемом товаре [10:11:11]line ОКРУГЛЕНИЕ: -0.08 [10:11:11]line ИТОГО: 500.00 [10:11:11]line Внесено: 500.00 [10:11:11]line СДАЧА: 0.00 [10:11:11]line НСП 1% : 4.42 [10:11:11]line НДС 12% : 53.11 [10:11:11]line Наличными: 500.00 [10:11:11]line Безнал.: 0.00 [10:11:11]line Место: АЗС № 72 "Партнер Нефть" [10:11:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:11:11]line СНО: Общий режим [10:11:11]line Чек 52 12.07.2024 10:11 [10:11:11]line Смена: 445 ФФД: 1.0 [10:11:11]line ЗНМ: 0300000160 [10:11:11]line РНМ: 0000000000090829 [10:11:11]line Версия ККМ: 001 [10:11:11]line ФМ: 0000000000874718 [10:11:11]line ФД: 164131 [10:11:11]line ФПД: 111038167912953 [10:11:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164131&fm=111038167912953&tin=02508201610067®Number=0000000000090829&sum=50000 [10:11:12]OFD Sender: Processing packet 164131 [packets to send 104, broken 103] [10:11:12]ProducePacketName [10:11:12]name=ofd_packets/00164131 [10:11:12]OFD Sender: To server: pG, [10:11:12]CommunicateWithHost lk.salyk.kg:30040 [10:11:12]ConnectInit lk.salyk.kg [10:11:12]written 0, free lines is 4095 [10:11:12]Connected sock=10 [10:11:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 43 2C 07 01 69 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 34 00 00 00 F4 03 04 00 3E 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 81 02 00 35 04 06 00 64 FD 16 8E 11 F9 DA 9F FE B4 83 0D 53 C8 [10:11:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 77 78 47 00 89 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 34 37 31 38 10 04 04 00 23 81 02 00 F4 03 04 00 D3 A7 90 66 B6 04 01 00 00 C3 07 CC B6 9C 71 12 BA [10:11:12]CommunicateWithHost err = 0 [10:11:12]CheckOFDResponse [10:11:12]1017 (14) - 77093643461234 [10:11:12]1041 (16) - 0000000000874718 [10:11:12]1040 (4) - 164131 [10:11:12]1012 (4) - 12.07.2024 03:49 [10:11:12]1206 (1) - 0 [10:11:12]OFD Sender: Remove packet 164131 [10:11:12]ProducePacketName [10:11:12]name=ofd_packets/00164131 [10:11:12]NVStorageDeleteData [10:11:12]Write to MH i2c: 01 00 00 0B 04 0F [10:11:12]Write i2c OK [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: 01 [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: 01 07 00 [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: 01 07 00 0B 04 00 00 00 00 00 F4 0C 16 [10:11:12]RasterBufferAndPrint [10:11:12]line [10:11:12]line [10:11:12]line [10:11:12]line [10:11:12]line [10:11:12]written 0, free lines is 3323 [10:11:12]MH_Cut [10:11:12]Write to MH i2c: D1 01 00 12 04 01 E8 [10:11:12]Write i2c OK [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: D1 [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: D1 01 00 [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: D1 01 00 12 04 00 E7 [10:11:12]Write to MH i2c: 01 00 00 13 04 17 [10:11:12]Write i2c OK [10:11:12]MH_I2C_Read... [10:11:12]OFD Sender: No OFD packet to send [10:11:13]*** Cut start [10:11:13]*** Partial cut [10:11:13]*** CUTSNS_PIN = 1 [10:11:13]*** CUTSNS_PIN = 0 [10:11:13]*** Brake cut motor [10:11:13]Read from MH i2c: 01 [10:11:13]MH_I2C_Read... [10:11:13]*** Stop cut motor [10:11:13]*** Cut end [10:11:13]Read from MH i2c: 01 07 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 FF 0F 2C [10:11:13]process_action close_receipt done [10:11:13]requested_data is exist [10:11:13]produce_requested_data [10:11:13]requested_item fm.sn is exist - process it [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 11 00 00 [10:11:13]Write to MH i2c: E2 08 00 14 04 80 11 00 00 00 00 00 00 92 [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 17 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 17 00 14 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E8 [10:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:11:13]wFMCommunicate OK [10:11:13]requested_item fd.num is exist - process it [10:11:13]SAM_PROTO_GetFieldsCounters [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 13 00 00 [10:11:13]Write to MH i2c: E2 08 00 15 04 80 13 00 00 00 00 00 00 95 [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 62 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 62 00 15 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [10:11:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:13]wFMCommunicate OK [10:11:13]SAM_PROTO_GetFieldsCounters done [10:11:13]requested_item shift.num is exist - process it [10:11:13]requested_item shift.opened is exist - process it [10:11:13]req_shift_opened [10:11:13]FM_GetShiftState [10:11:13]SAM_PROTO_GetShiftState [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 13 01 00 [10:11:13]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:14]Read from MH i2c: E2 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: E2 0E 00 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E1 [10:11:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:11:14]wFMCommunicate OK [10:11:14]SAM_PROTO_GetShiftState done [10:11:14]FM_GetShiftState done [10:11:14]req_shift_opened done [10:11:14]requested_item shift.open_date is exist - process it [10:11:14]req_shift_open_date [10:11:14]req_shift_open_date done [10:11:14]produce_requested_data done [10:11:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164131,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:11:14]process_action_free close_receipt [10:11:14]json_value_free [10:11:14]json_value_free done [10:11:14]process_json_proto returns [10:11:14]Send response to host [10:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164131,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:11:14]free response buf [10:11:14]execute_script done [10:11:14]execute_script returns [10:11:14]free content buf [10:11:14]Sock 7.Close socket [10:11:14]Sock 7.Thread stoped [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:06]accept exits with 9 [10:13:06]New connection [10:13:06]New thread 3066707300 created [10:13:06]Thread 3066850660 joined [10:13:06]Waiting for new connection... [10:13:06] Sock 9.Parse request [10:13:06]Sock 9.Check first char [10:13:06]Sock 9.First char is OK [10:13:06]request: POST /json_proto HTTP/1.0 [10:13:06]Method: POST [10:13:06]URL: /json_proto [10:13:06]Method is POST - this is cgi request [10:13:06]url: /json_proto [10:13:06]query_string will be loaded in cgi processing [10:13:06]execute_cgi json_proto POST (null) [10:13:06]execute_cgi path=json_proto method=POST [10:13:06]POST find Content-Length [10:13:06]Host: 172.17.56.4:8080 [10:13:06]Content-Length: 673 [10:13:06]Content-Type: application/json [10:13:06] [10:13:06]POST finish read [10:13:06]Found Content-Length = 673 [10:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:06]execute_script... [10:13:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:06]POST & json_proto [10:13:06]process_json_proto [10:13:06]json parsed OK: [10:13:06]protocol is kg_v1.0 [10:13:06]action value=close_receipt [10:13:06]process_action close_receipt [10:13:06]cmd_close_receipt [10:13:06]MH_GetDate [10:13:06]Write to MH i2c: F0 00 00 17 04 0A [10:13:06]Write i2c OK [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: F0 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: F0 09 00 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: F0 09 00 17 04 00 B3 01 91 66 C9 DC B2 64 79 [10:13:06]GetLastDocTimeStamp 1720779070 [10:13:06]current date 1720779187 [10:13:06]FM_GetShiftState [10:13:06]SAM_PROTO_GetShiftState [10:13:06]wFMCommunicate request_size=4 [10:13:06]MH_SAM_APDU [10:13:06]CAPDU: 80 13 01 00 [10:13:06]Write to MH i2c: E2 08 00 18 04 80 13 01 00 00 00 00 00 99 [10:13:06]Write i2c OK [10:13:06]MH_I2C_Read... [10:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:06]Read from MH i2c: E2 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: E2 0E 00 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: E2 0E 00 18 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E3 [10:13:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:13:06]wFMCommunicate OK [10:13:06]SAM_PROTO_GetShiftState done [10:13:06]FM_GetShiftState done [10:13:06]opened in 1720744654 [10:13:06]opened+sec_in_day 1720831054 [10:13:06]quantity*price = 7040 [10:13:06]sum+1 = 7042 [10:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.48 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 53 12.07.2024 10:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164132 ФПД: 188841800021446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101307&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164132&fm=188841800021446&tin=02508201610067®Number=0000000000090829&sum=7000 [10:13:07]StoreToDocumentArchive [10:13:07]shift 445 fd 164132 [10:13:07]save to /storage/0445/doc_00164132 [10:13:07]save last doc name /storage/0445/doc_00164132 to /storage/kkm_last_doc_name [10:13:07]save OK [10:13:07]Clear old archive folders... [10:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:07]tlvbuf is 009FE0C0 [10:13:07]SAM_PROTO_ClearQueue [10:13:07]wFMCommunicate request_size=4 [10:13:07]MH_SAM_APDU [10:13:07]CAPDU: 80 09 00 00 [10:13:07]Write to MH i2c: E2 08 00 25 04 80 09 00 00 00 00 00 00 9B [10:13:07]Write i2c OK [10:13:07]MH_I2C_Read... [10:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:07]Read from MH i2c: E2 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [10:13:07]RAPDU: 90 00 [10:13:07]wFMCommunicate OK [10:13:07]SAM_PROTO_ClearQueue done [10:13:07]KKMCreateOFDPacket [10:13:07]OFDProtocolAddRootSTLVToBuf [10:13:07]FM_MakeSignedData [10:13:07]FM_MakeSignedData [10:13:07]SAM_PROTO_SignData [10:13:07]wFMCommunicate request_size=4 [10:13:07]MH_SAM_APDU [10:13:07]CAPDU: 80 0D 01 02 [10:13:07]Write to MH i2c: E2 08 00 26 04 80 0D 01 02 00 00 00 00 A3 [10:13:07]Write i2c OK [10:13:07]MH_I2C_Read... [10:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:07]Read from MH i2c: E2 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 [10:13:07]MH_I2C_Read... [10:13:07]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [10:13:07]RAPDU: 90 00 [10:13:07]wFMCommunicate OK [10:13:07]wFMCommunicate request_size=255 [10:13:07]MH_SAM_APDU [10:13:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 B3 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 81 02 00 35 04 06 00 AB [10:13:07]Write to MH i2c: E2 02 01 27 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 B3 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 81 02 00 35 04 06 00 AB 00 00 50 [10:13:07]Write i2c OK [10:13:07]MH_I2C_Read... [10:13:08]OFD Sender: No OFD packet to send [10:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:08]Read from MH i2c: E2 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 03 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [10:13:08]RAPDU: 90 00 [10:13:08]wFMCommunicate OK [10:13:08]wFMCommunicate request_size=10 [10:13:08]MH_SAM_APDU [10:13:08]CAPDU: 80 0D 02 02 05 C0 28 68 B5 C6 [10:13:08]Write to MH i2c: E2 0D 00 28 04 80 0D 02 02 05 00 C0 28 68 B5 C6 00 00 7B [10:13:08]Write i2c OK [10:13:08]MH_I2C_Read... [10:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:08]Read from MH i2c: E2 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 03 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [10:13:08]RAPDU: 90 00 [10:13:08]wFMCommunicate OK [10:13:08]wFMCommunicate request_size=4 [10:13:08]MH_SAM_APDU [10:13:08]CAPDU: 80 0D 03 02 [10:13:08]Write to MH i2c: E2 08 00 29 04 80 0D 03 02 00 00 00 00 A8 [10:13:08]Write i2c OK [10:13:08]MH_I2C_Read... [10:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:08]Read from MH i2c: E2 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 0B 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 0B 00 29 04 00 DD 9C F7 A0 31 35 04 41 90 00 64 [10:13:08]RAPDU: DD 9C F7 A0 31 35 04 41 90 00 [10:13:08]wFMCommunicate OK [10:13:08]SAM_PROTO_SignData done [10:13:08]FM_MakeSignedData done [10:13:08]CreateOFDProtocolMessage [10:13:08]wFMCommunicate request_size=4 [10:13:08]MH_SAM_APDU [10:13:08]CAPDU: 80 11 00 00 [10:13:08]Write to MH i2c: E2 08 00 2A 04 80 11 00 00 00 00 00 00 A8 [10:13:08]Write i2c OK [10:13:08]MH_I2C_Read... [10:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:08]Read from MH i2c: E2 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 17 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: E2 17 00 2A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [10:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:13:08]wFMCommunicate OK [10:13:08]CreateOFDProtocolMessage done [10:13:08]OFDSenderStorePacket 164132 [10:13:08]StoreOFDPacket docnum=164132 [10:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 C4 07 01 2E 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 B3 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 81 02 00 35 04 06 00 AB C0 28 68 B5 C6 DD 9C F7 A0 31 35 04 41 [10:13:08]CheckFolder [10:13:08]dirname=/storage/ofd_packets [10:13:08]CheckFolder done [10:13:08]ProducePacketName [10:13:08]name=ofd_packets/00164132 [10:13:08]NVStorageSaveData ofd_packets/00164132 [10:13:08]File name is /storage/ofd_packets/00164132 [10:13:08]Write 301 bytes [10:13:08]NVStorageSaveData done [10:13:08]OFDSenderStorePacket done [10:13:08]KKMCreateOFDPacket done [10:13:08]NVStorageSaveData kkm_last_timestamp [10:13:08]File name is /storage/kkm_last_timestamp [10:13:08]Write 4 bytes [10:13:08]NVStorageSaveData done [10:13:08]ExternCall_PrintAddStr [10:13:08]wPrintStart [10:13:08]Write to MH i2c: 01 00 00 2B 04 2F [10:13:08]Write i2c OK [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: 01 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: 01 07 00 [10:13:08]MH_I2C_Read... [10:13:08]Read from MH i2c: 01 07 00 2B 04 00 00 00 00 00 FF 0F 44 [10:13:08]RasterBufferAndPrint [10:13:08]line Счет N : (1)458215 [10:13:08]line ИНН: 02508201610067 [10:13:08]line Контрольно-Кассовый Чек [10:13:08]line ПРОДАЖА [10:13:08]line ТРК (МРК, ГНК) : 12 [10:13:08]line Товар: 2710124130 [10:13:08]line Аи-92-К-5 [10:13:08]line 1.070 * 65.80 [10:13:08]line = 70.41 [10:13:08]line НДС 12% НСП 1% [10:13:08]line > о реализуемом товаре [10:13:08]line ОКРУГЛЕНИЕ: -0.41 [10:13:08]line ИТОГО: 70.00 [10:13:08]line Внесено: 70.00 [10:13:08]line СДАЧА: 0.00 [10:13:08]line НСП 1% : 0.62 [10:13:08]line НДС 12% : 7.48 [10:13:08]line Наличными: 70.00 [10:13:08]line Безнал.: 0.00 [10:13:08]line Место: АЗС № 72 "Партнер Нефть" [10:13:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:13:08]line СНО: Общий режим [10:13:08]line Чек 53 12.07.2024 10:13 [10:13:08]line Смена: 445 ФФД: 1.0 [10:13:08]line ЗНМ: 0300000160 [10:13:08]line РНМ: 0000000000090829 [10:13:08]line Версия ККМ: 001 [10:13:08]line ФМ: 0000000000874718 [10:13:08]line ФД: 164132 [10:13:08]line ФПД: 188841800021446 [10:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101307&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164132&fm=188841800021446&tin=02508201610067®Number=0000000000090829&sum=7000 [10:13:08]OFD Sender: Processing packet 164132 [packets to send 104, broken 103] [10:13:08]ProducePacketName [10:13:08]name=ofd_packets/00164132 [10:13:08]OFD Sender: To server: pG, [10:13:08]CommunicateWithHost lk.salyk.kg:30040 [10:13:08]ConnectInit lk.salyk.kg [10:13:08]written 0, free lines is 4095 [10:13:08]Connected sock=10 [10:13:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 C4 07 01 2E 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 B3 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 81 02 00 35 04 06 00 AB C0 28 68 B5 C6 DD 9C F7 A0 31 35 04 41 [10:13:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DB 81 47 00 60 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 81 02 00 F4 03 04 00 48 A8 90 66 B6 04 01 00 00 9D 9B CF 49 55 A0 B1 D4 [10:13:08]CommunicateWithHost err = 0 [10:13:08]CheckOFDResponse [10:13:08]1017 (14) - 77093643461234 [10:13:08]1041 (16) - 0000000000874718 [10:13:08]1040 (4) - 164132 [10:13:08]1012 (4) - 12.07.2024 03:51 [10:13:08]1206 (1) - 0 [10:13:08]OFD Sender: Remove packet 164132 [10:13:08]ProducePacketName [10:13:08]name=ofd_packets/00164132 [10:13:08]NVStorageDeleteData [10:13:09]Write to MH i2c: 01 00 00 55 04 59 [10:13:09]Write i2c OK [10:13:09]MH_I2C_Read... [10:13:09]Read from MH i2c: 01 [10:13:09]MH_I2C_Read... [10:13:09]Read from MH i2c: 01 07 00 [10:13:09]MH_I2C_Read... [10:13:09]Read from MH i2c: 01 07 00 55 04 00 00 00 00 00 E7 0C 53 [10:13:09]RasterBufferAndPrint [10:13:09]line [10:13:09]line [10:13:09]line [10:13:09]line [10:13:09]line [10:13:09]written 0, free lines is 3310 [10:13:09]MH_Cut [10:13:09]Write to MH i2c: D1 01 00 5C 04 01 32 [10:13:09]Write i2c OK [10:13:09]MH_I2C_Read... [10:13:09]Read from MH i2c: D1 [10:13:09]MH_I2C_Read... [10:13:09]Read from MH i2c: D1 01 00 [10:13:09]MH_I2C_Read... [10:13:09]Read from MH i2c: D1 01 00 5C 04 00 31 [10:13:09]Write to MH i2c: 01 00 00 5D 04 61 [10:13:09]Write i2c OK [10:13:09]MH_I2C_Read... [10:13:09]OFD Sender: No OFD packet to send [10:13:09]*** Cut start [10:13:09]*** Partial cut [10:13:09]*** CUTSNS_PIN = 1 [10:13:09]*** CUTSNS_PIN = 0 [10:13:09]*** Brake cut motor [10:13:10]Read from MH i2c: 01 [10:13:10]MH_I2C_Read... [10:13:10]*** Stop cut motor [10:13:10]*** Cut end [10:13:10]Read from MH i2c: 01 07 00 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 FF 0F 76 [10:13:10]process_action close_receipt done [10:13:10]requested_data is exist [10:13:10]produce_requested_data [10:13:10]requested_item fm.sn is exist - process it [10:13:10]wFMCommunicate request_size=4 [10:13:10]MH_SAM_APDU [10:13:10]CAPDU: 80 11 00 00 [10:13:10]Write to MH i2c: E2 08 00 5E 04 80 11 00 00 00 00 00 00 DC [10:13:10]Write i2c OK [10:13:10]MH_I2C_Read... [10:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:10]Read from MH i2c: E2 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 17 00 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 17 00 5E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 32 [10:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:13:10]wFMCommunicate OK [10:13:10]requested_item fd.num is exist - process it [10:13:10]SAM_PROTO_GetFieldsCounters [10:13:10]wFMCommunicate request_size=4 [10:13:10]MH_SAM_APDU [10:13:10]CAPDU: 80 13 00 00 [10:13:10]Write to MH i2c: E2 08 00 5F 04 80 13 00 00 00 00 00 00 DF [10:13:10]Write i2c OK [10:13:10]MH_I2C_Read... [10:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:10]Read from MH i2c: E2 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 62 00 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 62 00 5F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [10:13:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:10]wFMCommunicate OK [10:13:10]SAM_PROTO_GetFieldsCounters done [10:13:10]requested_item shift.num is exist - process it [10:13:10]requested_item shift.opened is exist - process it [10:13:10]req_shift_opened [10:13:10]FM_GetShiftState [10:13:10]SAM_PROTO_GetShiftState [10:13:10]wFMCommunicate request_size=4 [10:13:10]MH_SAM_APDU [10:13:10]CAPDU: 80 13 01 00 [10:13:10]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [10:13:10]Write i2c OK [10:13:10]MH_I2C_Read... [10:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:10]Read from MH i2c: E2 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 0E 00 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2B [10:13:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:13:10]wFMCommunicate OK [10:13:10]SAM_PROTO_GetShiftState done [10:13:10]FM_GetShiftState done [10:13:10]req_shift_opened done [10:13:10]requested_item shift.open_date is exist - process it [10:13:10]req_shift_open_date [10:13:10]req_shift_open_date done [10:13:10]produce_requested_data done [10:13:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164132,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:13:10]process_action_free close_receipt [10:13:10]json_value_free [10:13:10]json_value_free done [10:13:10]process_json_proto returns [10:13:10]Send response to host [10:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164132,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:13:10]free response buf [10:13:10]execute_script done [10:13:10]execute_script returns [10:13:10]free content buf [10:13:10]Sock 9.Close socket [10:13:10]Sock 9.Thread stoped [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:43]accept exits with 7 [10:13:43]New connection [10:13:43]New thread 3066850660 created [10:13:43]Thread 3066707300 joined [10:13:43]Waiting for new connection... [10:13:43] Sock 7.Parse request [10:13:43]Sock 7.Check first char [10:13:43]Sock 7.First char is OK [10:13:43]request: POST /json_proto HTTP/1.0 [10:13:43]Method: POST [10:13:43]URL: /json_proto [10:13:43]Method is POST - this is cgi request [10:13:43]url: /json_proto [10:13:43]query_string will be loaded in cgi processing [10:13:43]execute_cgi json_proto POST (null) [10:13:43]execute_cgi path=json_proto method=POST [10:13:43]POST find Content-Length [10:13:43]Host: 172.17.56.4:8080 [10:13:43]Content-Length: 677 [10:13:43]Content-Type: application/json [10:13:43] [10:13:43]POST finish read [10:13:43]Found Content-Length = 677 [10:13:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:13:43]execute_script... [10: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)458216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:13:43]POST & json_proto [10:13:43]process_json_proto [10:13:43]json parsed OK: [10:13:43]protocol is kg_v1.0 [10:13:43]action value=close_receipt [10:13:43]process_action close_receipt [10:13:43]cmd_close_receipt [10:13:43]MH_GetDate [10:13:43]Write to MH i2c: F0 00 00 61 04 54 [10:13:43]Write i2c OK [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: F0 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: F0 09 00 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: F0 09 00 61 04 00 D8 01 91 66 C9 DC B2 64 E8 [10:13:43]GetLastDocTimeStamp 1720779187 [10:13:43]current date 1720779224 [10:13:43]FM_GetShiftState [10:13:43]SAM_PROTO_GetShiftState [10:13:43]wFMCommunicate request_size=4 [10:13:43]MH_SAM_APDU [10:13:43]CAPDU: 80 13 01 00 [10:13:43]Write to MH i2c: E2 08 00 62 04 80 13 01 00 00 00 00 00 E3 [10:13:43]Write i2c OK [10:13:43]MH_I2C_Read... [10:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:43]Read from MH i2c: E2 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: E2 0E 00 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: E2 0E 00 62 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2D [10:13:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:13:43]wFMCommunicate OK [10:13:43]SAM_PROTO_GetShiftState done [10:13:43]FM_GetShiftState done [10:13:43]opened in 1720744654 [10:13:43]opened+sec_in_day 1720831054 [10:13:43]quantity*price = 40006 [10:13:43]sum+1 = 40007 [10:13:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 54 12.07.2024 10:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164133 ФПД: 266256976247085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164133&fm=266256976247085&tin=02508201610067®Number=0000000000090829&sum=40000 [10:13:44]StoreToDocumentArchive [10:13:44]shift 445 fd 164133 [10:13:44]save to /storage/0445/doc_00164133 [10:13:44]save last doc name /storage/0445/doc_00164133 to /storage/kkm_last_doc_name [10:13:44]save OK [10:13:44]Clear old archive folders... [10:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:44]tlvbuf is 009E5900 [10:13:44]SAM_PROTO_ClearQueue [10:13:44]wFMCommunicate request_size=4 [10:13:44]MH_SAM_APDU [10:13:44]CAPDU: 80 09 00 00 [10:13:44]Write to MH i2c: E2 08 00 6F 04 80 09 00 00 00 00 00 00 E5 [10:13:44]Write i2c OK [10:13:44]MH_I2C_Read... [10:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:44]Read from MH i2c: E2 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 03 00 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [10:13:44]RAPDU: 90 00 [10:13:44]wFMCommunicate OK [10:13:44]SAM_PROTO_ClearQueue done [10:13:44]KKMCreateOFDPacket [10:13:44]OFDProtocolAddRootSTLVToBuf [10:13:44]FM_MakeSignedData [10:13:44]FM_MakeSignedData [10:13:44]SAM_PROTO_SignData [10:13:44]wFMCommunicate request_size=4 [10:13:44]MH_SAM_APDU [10:13:44]CAPDU: 80 0D 01 02 [10:13:44]Write to MH i2c: E2 08 00 70 04 80 0D 01 02 00 00 00 00 ED [10:13:44]Write i2c OK [10:13:44]MH_I2C_Read... [10:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:44]Read from MH i2c: E2 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 03 00 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [10:13:44]RAPDU: 90 00 [10:13:44]wFMCommunicate OK [10:13:44]wFMCommunicate request_size=255 [10:13:44]MH_SAM_APDU [10:13: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 36 00 00 00 F4 03 04 00 D8 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 81 02 00 35 04 06 00 F2 [10:13:44]Write to MH i2c: E2 02 01 71 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 36 00 00 00 F4 03 04 00 D8 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 81 02 00 35 04 06 00 F2 00 00 A4 [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:45]Read from MH i2c: E2 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 03 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 03 00 71 04 00 90 00 E9 [10:13:45]RAPDU: 90 00 [10:13:45]wFMCommunicate OK [10:13:45]wFMCommunicate request_size=10 [10:13:45]MH_SAM_APDU [10:13:45]CAPDU: 80 0D 02 02 05 28 C8 7C F9 2D [10:13:45]Write to MH i2c: E2 0D 00 72 04 80 0D 02 02 05 00 28 C8 7C F9 2D 00 00 8C [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:45]Read from MH i2c: E2 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 03 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 03 00 72 04 00 90 00 EA [10:13:45]RAPDU: 90 00 [10:13:45]wFMCommunicate OK [10:13:45]wFMCommunicate request_size=4 [10:13:45]MH_SAM_APDU [10:13:45]CAPDU: 80 0D 03 02 [10:13:45]Write to MH i2c: E2 08 00 73 04 80 0D 03 02 00 00 00 00 F2 [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:45]Read from MH i2c: E2 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 0B 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 0B 00 73 04 00 93 CF ED E7 53 FA 94 84 90 00 8E [10:13:45]RAPDU: 93 CF ED E7 53 FA 94 84 90 00 [10:13:45]wFMCommunicate OK [10:13:45]SAM_PROTO_SignData done [10:13:45]FM_MakeSignedData done [10:13:45]CreateOFDProtocolMessage [10:13:45]wFMCommunicate request_size=4 [10:13:45]MH_SAM_APDU [10:13:45]CAPDU: 80 11 00 00 [10:13:45]Write to MH i2c: E2 08 00 74 04 80 11 00 00 00 00 00 00 F2 [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:45]Read from MH i2c: E2 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 17 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 17 00 74 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 48 [10:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:13:45]wFMCommunicate OK [10:13:45]CreateOFDProtocolMessage done [10:13:45]OFDSenderStorePacket 164133 [10:13:45]StoreOFDPacket docnum=164133 [10:13:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 4E 07 01 17 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 36 00 00 00 F4 03 04 00 D8 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 81 02 00 35 04 06 00 F2 28 C8 7C F9 2D 93 CF ED E7 53 FA 94 84 [10:13:45]CheckFolder [10:13:45]dirname=/storage/ofd_packets [10:13:45]CheckFolder done [10:13:45]ProducePacketName [10:13:45]name=ofd_packets/00164133 [10:13:45]NVStorageSaveData ofd_packets/00164133 [10:13:45]File name is /storage/ofd_packets/00164133 [10:13:45]Write 301 bytes [10:13:45]NVStorageSaveData done [10:13:45]OFDSenderStorePacket done [10:13:45]KKMCreateOFDPacket done [10:13:45]NVStorageSaveData kkm_last_timestamp [10:13:45]File name is /storage/kkm_last_timestamp [10:13:45]Write 4 bytes [10:13:45]NVStorageSaveData done [10:13:45]ExternCall_PrintAddStr [10:13:45]wPrintStart [10:13:45]Write to MH i2c: 01 00 00 75 04 79 [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: 01 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: 01 07 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: 01 07 00 75 04 00 00 00 00 00 FF 0F 8E [10:13:45]RasterBufferAndPrint [10:13:45]line Счет N : (1)458216 [10:13:45]line ИНН: 02508201610067 [10:13:45]line Контрольно-Кассовый Чек [10:13:45]line ПРОДАЖА [10:13:45]line ТРК (МРК, ГНК) : 12 [10:13:45]line Товар: 2710124130 [10:13:45]line Аи-92-К-5 [10:13:45]line 6.080 * 65.80 [10:13:45]line = 400.06 [10:13:45]line НДС 12% НСП 1% [10:13:45]line > о реализуемом товаре [10:13:45]line ОКРУГЛЕНИЕ: -0.06 [10:13:45]line ИТОГО: 400.00 [10:13:45]line Внесено: 400.00 [10:13:45]line СДАЧА: 0.00 [10:13:45]line НСП 1% : 3.54 [10:13:45]line НДС 12% : 42.48 [10:13:45]line Наличными: 400.00 [10:13:45]line Безнал.: 0.00 [10:13:45]line Место: АЗС № 72 "Партнер Нефть" [10:13:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:13:45]line СНО: Общий режим [10:13:45]line Чек 54 12.07.2024 10:13 [10:13:45]line Смена: 445 ФФД: 1.0 [10:13:45]line ЗНМ: 0300000160 [10:13:45]line РНМ: 0000000000090829 [10:13:45]line Версия ККМ: 001 [10:13:45]line ФМ: 0000000000874718 [10:13:45]line ФД: 164133 [10:13:45]line ФПД: 266256976247085 [10:13:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164133&fm=266256976247085&tin=02508201610067®Number=0000000000090829&sum=40000 [10:13:45]OFD Sender: Processing packet 164133 [packets to send 104, broken 103] [10:13:45]ProducePacketName [10:13:45]name=ofd_packets/00164133 [10:13:45]OFD Sender: To server: pG, [10:13:45]CommunicateWithHost lk.salyk.kg:30040 [10:13:45]ConnectInit lk.salyk.kg [10:13:45]written 0, free lines is 4095 [10:13:45]Connected sock=10 [10: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 34 37 31 38 0F 01 00 00 B8 4E 07 01 17 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 36 00 00 00 F4 03 04 00 D8 01 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 81 02 00 35 04 06 00 F2 28 C8 7C F9 2D 93 CF ED E7 53 FA 94 84 [10:13:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9C 06 47 00 C4 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 34 37 31 38 10 04 04 00 25 81 02 00 F4 03 04 00 6D A8 90 66 B6 04 01 00 00 94 A6 DE 00 DB C8 E7 4A [10:13:46]CommunicateWithHost err = 0 [10:13:46]CheckOFDResponse [10:13:46]1017 (14) - 77093643461234 [10:13:46]1041 (16) - 0000000000874718 [10:13:46]1040 (4) - 164133 [10:13:46]1012 (4) - 12.07.2024 03:52 [10:13:46]1206 (1) - 0 [10:13:46]OFD Sender: Remove packet 164133 [10:13:46]ProducePacketName [10:13:46]name=ofd_packets/00164133 [10:13:46]NVStorageDeleteData [10:13:46]Write to MH i2c: 01 00 00 9F 04 A3 [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: 01 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: 01 07 00 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 EE 0C A4 [10:13:46]RasterBufferAndPrint [10:13:46]line [10:13:46]line [10:13:46]line [10:13:46]line [10:13:46]line [10:13:46]written 0, free lines is 3316 [10:13:46]MH_Cut [10:13:46]Write to MH i2c: D1 01 00 A6 04 01 7C [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: D1 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: D1 01 00 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: D1 01 00 A6 04 00 7B [10:13:46]Write to MH i2c: 01 00 00 A7 04 AB [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:46]OFD Sender: No OFD packet to send [10:13:46]*** Cut start [10:13:46]*** Partial cut [10:13:46]*** CUTSNS_PIN = 1 [10:13:46]*** CUTSNS_PIN = 0 [10:13:47]*** Brake cut motor [10:13:47]Read from MH i2c: 01 [10:13:47]MH_I2C_Read... [10:13:47]*** Stop cut motor [10:13:47]*** Cut end [10:13:47]Read from MH i2c: 01 07 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 FF 0F C0 [10:13:47]process_action close_receipt done [10:13:47]requested_data is exist [10:13:47]produce_requested_data [10:13:47]requested_item fm.sn is exist - process it [10:13:47]wFMCommunicate request_size=4 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 11 00 00 [10:13:47]Write to MH i2c: E2 08 00 A8 04 80 11 00 00 00 00 00 00 26 [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 17 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 17 00 A8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7C [10:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:13:47]wFMCommunicate OK [10:13:47]requested_item fd.num is exist - process it [10:13:47]SAM_PROTO_GetFieldsCounters [10:13:47]wFMCommunicate request_size=4 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 13 00 00 [10:13:47]Write to MH i2c: E2 08 00 A9 04 80 13 00 00 00 00 00 00 29 [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 62 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 62 00 A9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [10:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:47]wFMCommunicate OK [10:13:47]SAM_PROTO_GetFieldsCounters done [10:13:47]requested_item shift.num is exist - process it [10:13:47]requested_item shift.opened is exist - process it [10:13:47]req_shift_opened [10:13:47]FM_GetShiftState [10:13:47]SAM_PROTO_GetShiftState [10:13:47]wFMCommunicate request_size=4 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 13 01 00 [10:13:47]Write to MH i2c: E2 08 00 AA 04 80 13 01 00 00 00 00 00 2B [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 0E 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 0E 00 AA 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 75 [10:13:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:13:47]wFMCommunicate OK [10:13:47]SAM_PROTO_GetShiftState done [10:13:47]FM_GetShiftState done [10:13:47]req_shift_opened done [10:13:47]requested_item shift.open_date is exist - process it [10:13:47]req_shift_open_date [10:13:47]req_shift_open_date done [10:13:47]produce_requested_data done [10:13:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164133,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:13:47]process_action_free close_receipt [10:13:47]json_value_free [10:13:47]json_value_free done [10:13:47]process_json_proto returns [10:13:47]Send response to host [10:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164133,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:13:47]free response buf [10:13:47]execute_script done [10:13:47]execute_script returns [10:13:47]free content buf [10:13:47]Sock 7.Close socket [10:13:47]Sock 7.Thread stoped [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:55]accept exits with 9 [10:15:55]New connection [10:15:55]New thread 3066707300 created [10:15:55]Thread 3066850660 joined [10:15:55]Waiting for new connection... [10:15:55] Sock 9.Parse request [10:15:55]Sock 9.Check first char [10:15:55]Sock 9.First char is OK [10:15:55]request: POST /json_proto HTTP/1.0 [10:15:55]Method: POST [10:15:55]URL: /json_proto [10:15:55]Method is POST - this is cgi request [10:15:55]url: /json_proto [10:15:55]query_string will be loaded in cgi processing [10:15:55]execute_cgi json_proto POST (null) [10:15:55]execute_cgi path=json_proto method=POST [10:15:55]POST find Content-Length [10:15:55]Host: 172.17.56.4:8080 [10:15:55]Content-Length: 677 [10:15:55]Content-Type: application/json [10:15:55] [10:15:55]POST finish read [10:15:55]Found Content-Length = 677 [10:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:15:55]execute_script... [10:15: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)458218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:15:55]POST & json_proto [10:15:55]process_json_proto [10:15:55]json parsed OK: [10:15:55]protocol is kg_v1.0 [10:15:55]action value=close_receipt [10:15:55]process_action close_receipt [10:15:55]cmd_close_receipt [10:15:55]MH_GetDate [10:15:55]Write to MH i2c: F0 00 00 AB 04 9E [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: F0 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: F0 09 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: F0 09 00 AB 04 00 5C 02 91 66 C9 DC B2 64 B7 [10:15:55]GetLastDocTimeStamp 1720779224 [10:15:55]current date 1720779356 [10:15:55]FM_GetShiftState [10:15:55]SAM_PROTO_GetShiftState [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 13 01 00 [10:15:55]Write to MH i2c: E2 08 00 AC 04 80 13 01 00 00 00 00 00 2D [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 0E 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 0E 00 AC 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 77 [10:15:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:15:55]wFMCommunicate OK [10:15:55]SAM_PROTO_GetShiftState done [10:15:55]FM_GetShiftState done [10:15:55]opened in 1720744654 [10:15:55]opened+sec_in_day 1720831054 [10:15:55]quantity*price = 40006 [10:15:55]sum+1 = 40007 [10:15:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 55 12.07.2024 10:15 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164134 ФПД: 46968389445691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101556&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164134&fm=46968389445691&tin=02508201610067®Number=0000000000090829&sum=40000 [10:15:56]StoreToDocumentArchive [10:15:56]shift 445 fd 164134 [10:15:56]save to /storage/0445/doc_00164134 [10:15:56]save last doc name /storage/0445/doc_00164134 to /storage/kkm_last_doc_name [10:15:56]save OK [10:15:56]Clear old archive folders... [10:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:56]tlvbuf is 009EFBC0 [10:15:56]SAM_PROTO_ClearQueue [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 09 00 00 [10:15:56]Write to MH i2c: E2 08 00 B9 04 80 09 00 00 00 00 00 00 2F [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 03 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [10:15:56]RAPDU: 90 00 [10:15:56]wFMCommunicate OK [10:15:56]SAM_PROTO_ClearQueue done [10:15:56]KKMCreateOFDPacket [10:15:56]OFDProtocolAddRootSTLVToBuf [10:15:56]FM_MakeSignedData [10:15:56]FM_MakeSignedData [10:15:56]SAM_PROTO_SignData [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 0D 01 02 [10:15:56]Write to MH i2c: E2 08 00 BA 04 80 0D 01 02 00 00 00 00 37 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 03 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [10:15:56]RAPDU: 90 00 [10:15:56]wFMCommunicate OK [10:15:56]wFMCommunicate request_size=255 [10:15:56]MH_SAM_APDU [10:15: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 37 00 00 00 F4 03 04 00 5C 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 81 02 00 35 04 06 00 2A [10:15:56]Write to MH i2c: E2 02 01 BB 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 37 00 00 00 F4 03 04 00 5C 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 81 02 00 35 04 06 00 2A 00 00 AD [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 BB 04 00 90 00 33 [10:15:57]RAPDU: 90 00 [10:15:57]wFMCommunicate OK [10:15:57]wFMCommunicate request_size=10 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 0D 02 02 05 B7 AE 2B 28 3B [10:15:57]Write to MH i2c: E2 0D 00 BC 04 80 0D 02 02 05 00 B7 AE 2B 28 3B 00 00 37 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [10:15:57]RAPDU: 90 00 [10:15:57]wFMCommunicate OK [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 0D 03 02 [10:15:57]Write to MH i2c: E2 08 00 BD 04 80 0D 03 02 00 00 00 00 3C [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 0B 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 0B 00 BD 04 00 02 E1 1F 43 A5 A8 9F 3D 90 00 AB [10:15:57]RAPDU: 02 E1 1F 43 A5 A8 9F 3D 90 00 [10:15:57]wFMCommunicate OK [10:15:57]SAM_PROTO_SignData done [10:15:57]FM_MakeSignedData done [10:15:57]CreateOFDProtocolMessage [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 11 00 00 [10:15:57]Write to MH i2c: E2 08 00 BE 04 80 11 00 00 00 00 00 00 3C [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 17 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 17 00 BE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 92 [10:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:15:57]wFMCommunicate OK [10:15:57]CreateOFDProtocolMessage done [10:15:57]OFDSenderStorePacket 164134 [10:15:57]StoreOFDPacket docnum=164134 [10:15:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 54 67 07 01 92 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 37 00 00 00 F4 03 04 00 5C 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 81 02 00 35 04 06 00 2A B7 AE 2B 28 3B 02 E1 1F 43 A5 A8 9F 3D [10:15:57]CheckFolder [10:15:57]dirname=/storage/ofd_packets [10:15:57]CheckFolder done [10:15:57]ProducePacketName [10:15:57]name=ofd_packets/00164134 [10:15:57]NVStorageSaveData ofd_packets/00164134 [10:15:57]File name is /storage/ofd_packets/00164134 [10:15:57]Write 301 bytes [10:15:57]NVStorageSaveData done [10:15:57]OFDSenderStorePacket done [10:15:57]KKMCreateOFDPacket done [10:15:57]NVStorageSaveData kkm_last_timestamp [10:15:57]File name is /storage/kkm_last_timestamp [10:15:57]Write 4 bytes [10:15:57]NVStorageSaveData done [10:15:57]ExternCall_PrintAddStr [10:15:57]wPrintStart [10:15:57]Write to MH i2c: 01 00 00 BF 04 C3 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: 01 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: 01 07 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 FF 0F D8 [10:15:57]RasterBufferAndPrint [10:15:57]line Счет N : (1)458218 [10:15:57]line ИНН: 02508201610067 [10:15:57]line Контрольно-Кассовый Чек [10:15:57]line ПРОДАЖА [10:15:57]line ТРК (МРК, ГНК) : 12 [10:15:57]line Товар: 2710124130 [10:15:57]line Аи-92-К-5 [10:15:57]line 6.080 * 65.80 [10:15:57]line = 400.06 [10:15:57]line НДС 12% НСП 1% [10:15:57]line > о реализуемом товаре [10:15:57]line ОКРУГЛЕНИЕ: -0.06 [10:15:57]line ИТОГО: 400.00 [10:15:57]line Внесено: 400.00 [10:15:57]line СДАЧА: 0.00 [10:15:57]line НСП 1% : 3.54 [10:15:57]line НДС 12% : 42.48 [10:15:57]line Наличными: 400.00 [10:15:57]line Безнал.: 0.00 [10:15:57]line Место: АЗС № 72 "Партнер Нефть" [10:15:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:15:57]line СНО: Общий режим [10:15:57]line Чек 55 12.07.2024 10:15 [10:15:57]line Смена: 445 ФФД: 1.0 [10:15:57]line ЗНМ: 0300000160 [10:15:57]line РНМ: 0000000000090829 [10:15:57]line Версия ККМ: 001 [10:15:57]line ФМ: 0000000000874718 [10:15:57]line ФД: 164134 [10:15:57]line ФПД: 46968389445691 [10:15:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101556&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164134&fm=46968389445691&tin=02508201610067®Number=0000000000090829&sum=40000 [10:15:57]OFD Sender: Processing packet 164134 [packets to send 104, broken 103] [10:15:57]ProducePacketName [10:15:57]name=ofd_packets/00164134 [10:15:57]OFD Sender: To server: pG, [10:15:57]CommunicateWithHost lk.salyk.kg:30040 [10:15:57]ConnectInit lk.salyk.kg [10:15:57]written 0, free lines is 4095 [10:15:57]Connected sock=10 [10:15:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 54 67 07 01 92 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 37 00 00 00 F4 03 04 00 5C 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 81 02 00 35 04 06 00 2A B7 AE 2B 28 3B 02 E1 1F 43 A5 A8 9F 3D [10:15:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 65 60 47 00 8F 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 81 02 00 F4 03 04 00 F1 A8 90 66 B6 04 01 00 00 01 57 37 1B 46 BD 2E A2 [10:15:57]CommunicateWithHost err = 0 [10:15:57]CheckOFDResponse [10:15:57]1017 (14) - 77093643461234 [10:15:57]1041 (16) - 0000000000874718 [10:15:57]1040 (4) - 164134 [10:15:57]1012 (4) - 12.07.2024 03:54 [10:15:57]1206 (1) - 0 [10:15:57]OFD Sender: Remove packet 164134 [10:15:57]ProducePacketName [10:15:57]name=ofd_packets/00164134 [10:15:57]NVStorageDeleteData [10:15:58]Write to MH i2c: 01 00 00 E9 04 ED [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 E9 04 00 00 00 00 00 EF 0C EF [10:15:58]RasterBufferAndPrint [10:15:58]line [10:15:58]line [10:15:58]line [10:15:58]line [10:15:58]line [10:15:58]written 0, free lines is 3318 [10:15:58]MH_Cut [10:15:58]Write to MH i2c: D1 01 00 F0 04 01 C6 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: D1 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: D1 01 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: D1 01 00 F0 04 00 C5 [10:15:58]Write to MH i2c: 01 00 00 F1 04 F5 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]OFD Sender: No OFD packet to send [10:15:58]*** Cut start [10:15:58]*** Partial cut [10:15:58]*** CUTSNS_PIN = 1 [10:15:58]*** CUTSNS_PIN = 0 [10:15:58]*** Brake cut motor [10:15:59]Read from MH i2c: 01 [10:15:59]MH_I2C_Read... [10:15:59]*** Stop cut motor [10:15:59]*** Cut end [10:15:59]Read from MH i2c: 01 07 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 07 00 F1 04 00 00 00 00 00 FF 0F 0A [10:15:59]process_action close_receipt done [10:15:59]requested_data is exist [10:15:59]produce_requested_data [10:15:59]requested_item fm.sn is exist - process it [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 11 00 00 [10:15:59]Write to MH i2c: E2 08 00 F2 04 80 11 00 00 00 00 00 00 70 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 17 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 17 00 F2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C6 [10:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:15:59]wFMCommunicate OK [10:15:59]requested_item fd.num is exist - process it [10:15:59]SAM_PROTO_GetFieldsCounters [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 13 00 00 [10:15:59]Write to MH i2c: E2 08 00 F3 04 80 13 00 00 00 00 00 00 73 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 62 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 62 00 F3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [10:15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:59]wFMCommunicate OK [10:15:59]SAM_PROTO_GetFieldsCounters done [10:15:59]requested_item shift.num is exist - process it [10:15:59]requested_item shift.opened is exist - process it [10:15:59]req_shift_opened [10:15:59]FM_GetShiftState [10:15:59]SAM_PROTO_GetShiftState [10:15:59]wFMCommunicate request_size=4 [10:15:59]MH_SAM_APDU [10:15:59]CAPDU: 80 13 01 00 [10:15:59]Write to MH i2c: E2 08 00 F4 04 80 13 01 00 00 00 00 00 75 [10:15:59]Write i2c OK [10:15:59]MH_I2C_Read... [10:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:59]Read from MH i2c: E2 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 0E 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: E2 0E 00 F4 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BF [10:15:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:15:59]wFMCommunicate OK [10:15:59]SAM_PROTO_GetShiftState done [10:15:59]FM_GetShiftState done [10:15:59]req_shift_opened done [10:15:59]requested_item shift.open_date is exist - process it [10:15:59]req_shift_open_date [10:15:59]req_shift_open_date done [10:15:59]produce_requested_data done [10:15:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164134,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:15:59]process_action_free close_receipt [10:15:59]json_value_free [10:15:59]json_value_free done [10:15:59]process_json_proto returns [10:15:59]Send response to host [10:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164134,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:15:59]free response buf [10:15:59]execute_script done [10:15:59]execute_script returns [10:15:59]free content buf [10:15:59]Sock 9.Close socket [10:15:59]Sock 9.Thread stoped [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:26]accept exits with 7 [10:17:26]New connection [10:17:26]New thread 3066850660 created [10:17:26]Thread 3066707300 joined [10:17:26]Waiting for new connection... [10:17:26] Sock 7.Parse request [10:17:26]Sock 7.Check first char [10:17:26]Sock 7.First char is OK [10:17:26]request: POST /json_proto HTTP/1.0 [10:17:26]Method: POST [10:17:26]URL: /json_proto [10:17:26]Method is POST - this is cgi request [10:17:26]url: /json_proto [10:17:26]query_string will be loaded in cgi processing [10:17:26]execute_cgi json_proto POST (null) [10:17:26]execute_cgi path=json_proto method=POST [10:17:26]POST find Content-Length [10:17:26]Host: 172.17.56.4:8080 [10:17:26]Content-Length: 677 [10:17:26]Content-Type: application/json [10:17:26] [10:17:26]POST finish read [10:17:26]Found Content-Length = 677 [10:17:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:26]execute_script... [10:17: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)458219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:26]POST & json_proto [10:17:26]process_json_proto [10:17:26]json parsed OK: [10:17:26]protocol is kg_v1.0 [10:17:26]action value=close_receipt [10:17:26]process_action close_receipt [10:17:26]cmd_close_receipt [10:17:26]MH_GetDate [10:17:26]Write to MH i2c: F0 00 00 F5 04 E8 [10:17:26]Write i2c OK [10:17:26]MH_I2C_Read... [10:17:26]Read from MH i2c: F0 [10:17:26]MH_I2C_Read... [10:17:26]Read from MH i2c: F0 09 00 [10:17:26]MH_I2C_Read... [10:17:26]Read from MH i2c: F0 09 00 F5 04 00 B7 02 91 66 C9 DC B2 64 5C [10:17:26]GetLastDocTimeStamp 1720779356 [10:17:26]current date 1720779447 [10:17:26]FM_GetShiftState [10:17:26]SAM_PROTO_GetShiftState [10:17:26]wFMCommunicate request_size=4 [10:17:26]MH_SAM_APDU [10:17:26]CAPDU: 80 13 01 00 [10:17:26]Write to MH i2c: E2 08 00 F6 04 80 13 01 00 00 00 00 00 77 [10:17:26]Write i2c OK [10:17:26]MH_I2C_Read... [10:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:26]Read from MH i2c: E2 [10:17:26]MH_I2C_Read... [10:17:26]Read from MH i2c: E2 0E 00 [10:17:26]MH_I2C_Read... [10:17:26]Read from MH i2c: E2 0E 00 F6 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C1 [10:17:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:17:26]wFMCommunicate OK [10:17:26]SAM_PROTO_GetShiftState done [10:17:26]FM_GetShiftState done [10:17:26]opened in 1720744654 [10:17:26]opened+sec_in_day 1720831054 [10:17:26]quantity*price = 65010 [10:17:26]sum+1 = 65011 [10:17:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.04 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 56 12.07.2024 10:17 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164135 ФПД: 118348037085228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101727&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164135&fm=118348037085228&tin=02508201610067®Number=0000000000090829&sum=65000 [10:17:27]StoreToDocumentArchive [10:17:27]shift 445 fd 164135 [10:17:27]save to /storage/0445/doc_00164135 [10:17:27]save last doc name /storage/0445/doc_00164135 to /storage/kkm_last_doc_name [10:17:27]save OK [10:17:27]Clear old archive folders... [10:17:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:27]tlvbuf is 009FE510 [10:17:27]SAM_PROTO_ClearQueue [10:17:27]wFMCommunicate request_size=4 [10:17:27]MH_SAM_APDU [10:17:27]CAPDU: 80 09 00 00 [10:17:27]Write to MH i2c: E2 08 00 03 05 80 09 00 00 00 00 00 00 7A [10:17:27]Write i2c OK [10:17:27]MH_I2C_Read... [10:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:27]Read from MH i2c: E2 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 03 00 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [10:17:27]RAPDU: 90 00 [10:17:27]wFMCommunicate OK [10:17:27]SAM_PROTO_ClearQueue done [10:17:27]KKMCreateOFDPacket [10:17:27]OFDProtocolAddRootSTLVToBuf [10:17:27]FM_MakeSignedData [10:17:27]FM_MakeSignedData [10:17:27]SAM_PROTO_SignData [10:17:27]wFMCommunicate request_size=4 [10:17:27]MH_SAM_APDU [10:17:27]CAPDU: 80 0D 01 02 [10:17:27]Write to MH i2c: E2 08 00 04 05 80 0D 01 02 00 00 00 00 82 [10:17:27]Write i2c OK [10:17:27]MH_I2C_Read... [10:17:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:27]Read from MH i2c: E2 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 03 00 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [10:17:27]RAPDU: 90 00 [10:17:27]wFMCommunicate OK [10:17:27]wFMCommunicate request_size=255 [10:17:27]MH_SAM_APDU [10:17: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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 38 00 00 00 F4 03 04 00 B7 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 81 02 00 35 04 06 00 6B [10:17:27]Write to MH i2c: E2 02 01 05 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 38 00 00 00 F4 03 04 00 B7 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 81 02 00 35 04 06 00 6B 00 00 E4 [10:17:28]Write i2c OK [10:17:28]MH_I2C_Read... [10:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:28]Read from MH i2c: E2 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 03 00 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [10:17:28]RAPDU: 90 00 [10:17:28]wFMCommunicate OK [10:17:28]wFMCommunicate request_size=10 [10:17:28]MH_SAM_APDU [10:17:28]CAPDU: 80 0D 02 02 05 A3 0C B5 D8 2C [10:17:28]Write to MH i2c: E2 0D 00 06 05 80 0D 02 02 05 00 A3 0C B5 D8 2C 00 00 F7 [10:17:28]Write i2c OK [10:17:28]MH_I2C_Read... [10:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:28]Read from MH i2c: E2 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 03 00 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [10:17:28]RAPDU: 90 00 [10:17:28]wFMCommunicate OK [10:17:28]wFMCommunicate request_size=4 [10:17:28]MH_SAM_APDU [10:17:28]CAPDU: 80 0D 03 02 [10:17:28]Write to MH i2c: E2 08 00 07 05 80 0D 03 02 00 00 00 00 87 [10:17:28]Write i2c OK [10:17:28]MH_I2C_Read... [10:17:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:28]Read from MH i2c: E2 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 0B 00 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 0B 00 07 05 00 90 7E 0C 96 3C EC D9 A8 90 00 E1 [10:17:28]RAPDU: 90 7E 0C 96 3C EC D9 A8 90 00 [10:17:28]wFMCommunicate OK [10:17:28]SAM_PROTO_SignData done [10:17:28]FM_MakeSignedData done [10:17:28]CreateOFDProtocolMessage [10:17:28]wFMCommunicate request_size=4 [10:17:28]MH_SAM_APDU [10:17:28]CAPDU: 80 11 00 00 [10:17:28]Write to MH i2c: E2 08 00 08 05 80 11 00 00 00 00 00 00 87 [10:17:28]Write i2c OK [10:17:28]MH_I2C_Read... [10:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:28]Read from MH i2c: E2 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 17 00 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: E2 17 00 08 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [10:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:28]wFMCommunicate OK [10:17:28]CreateOFDProtocolMessage done [10:17:28]OFDSenderStorePacket 164135 [10:17:28]StoreOFDPacket docnum=164135 [10:17:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F3 33 07 01 B3 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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 38 00 00 00 F4 03 04 00 B7 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 81 02 00 35 04 06 00 6B A3 0C B5 D8 2C 90 7E 0C 96 3C EC D9 A8 [10:17:28]CheckFolder [10:17:28]dirname=/storage/ofd_packets [10:17:28]CheckFolder done [10:17:28]ProducePacketName [10:17:28]name=ofd_packets/00164135 [10:17:28]NVStorageSaveData ofd_packets/00164135 [10:17:28]File name is /storage/ofd_packets/00164135 [10:17:28]Write 301 bytes [10:17:28]NVStorageSaveData done [10:17:28]OFDSenderStorePacket done [10:17:28]KKMCreateOFDPacket done [10:17:28]NVStorageSaveData kkm_last_timestamp [10:17:28]File name is /storage/kkm_last_timestamp [10:17:28]Write 4 bytes [10:17:28]NVStorageSaveData done [10:17:28]ExternCall_PrintAddStr [10:17:28]wPrintStart [10:17:28]Write to MH i2c: 01 00 00 09 05 0E [10:17:28]Write i2c OK [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: 01 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: 01 07 00 [10:17:28]MH_I2C_Read... [10:17:28]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 FF 0F 23 [10:17:28]RasterBufferAndPrint [10:17:28]line Счет N : (1)458219 [10:17:28]line ИНН: 02508201610067 [10:17:28]line Контрольно-Кассовый Чек [10:17:28]line ПРОДАЖА [10:17:28]line ТРК (МРК, ГНК) : 12 [10:17:28]line Товар: 2710124130 [10:17:28]line Аи-92-К-5 [10:17:28]line 9.880 * 65.80 [10:17:28]line = 650.10 [10:17:28]line НДС 12% НСП 1% [10:17:28]line > о реализуемом товаре [10:17:28]line ОКРУГЛЕНИЕ: -0.10 [10:17:28]line ИТОГО: 650.00 [10:17:28]line Внесено: 650.00 [10:17:28]line СДАЧА: 0.00 [10:17:28]line НСП 1% : 5.75 [10:17:28]line НДС 12% : 69.04 [10:17:28]line Наличными: 650.00 [10:17:28]line Безнал.: 0.00 [10:17:28]line Место: АЗС № 72 "Партнер Нефть" [10:17:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:17:28]line СНО: Общий режим [10:17:28]line Чек 56 12.07.2024 10:17 [10:17:28]line Смена: 445 ФФД: 1.0 [10:17:28]line ЗНМ: 0300000160 [10:17:28]line РНМ: 0000000000090829 [10:17:28]line Версия ККМ: 001 [10:17:28]line ФМ: 0000000000874718 [10:17:28]line ФД: 164135 [10:17:28]line ФПД: 118348037085228 [10:17:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101727&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164135&fm=118348037085228&tin=02508201610067®Number=0000000000090829&sum=65000 [10:17:28]OFD Sender: Processing packet 164135 [packets to send 104, broken 103] [10:17:28]ProducePacketName [10:17:28]name=ofd_packets/00164135 [10:17:28]OFD Sender: To server: pG, [10:17:28]CommunicateWithHost lk.salyk.kg:30040 [10:17:28]ConnectInit lk.salyk.kg [10:17:28]written 0, free lines is 4095 [10:17:28]Connected sock=11 [10:17:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F3 33 07 01 B3 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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 38 00 00 00 F4 03 04 00 B7 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 81 02 00 35 04 06 00 6B A3 0C B5 D8 2C 90 7E 0C 96 3C EC D9 A8 [10:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 28 FC 47 00 76 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 34 37 31 38 10 04 04 00 27 81 02 00 F4 03 04 00 4C A9 90 66 B6 04 01 00 00 42 FE 23 06 15 20 07 64 [10:17:29]CommunicateWithHost err = 0 [10:17:29]CheckOFDResponse [10:17:29]1017 (14) - 77093643461234 [10:17:29]1041 (16) - 0000000000874718 [10:17:29]1040 (4) - 164135 [10:17:29]1012 (4) - 12.07.2024 03:55 [10:17:29]1206 (1) - 0 [10:17:29]OFD Sender: Remove packet 164135 [10:17:29]ProducePacketName [10:17:29]name=ofd_packets/00164135 [10:17:29]NVStorageDeleteData [10:17:29]Write to MH i2c: 01 00 00 33 05 38 [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: 01 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: 01 07 00 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 F8 0C 43 [10:17:29]RasterBufferAndPrint [10:17:29]line [10:17:29]line [10:17:29]line [10:17:29]line [10:17:29]line [10:17:29]written 0, free lines is 3327 [10:17:29]MH_Cut [10:17:29]Write to MH i2c: D1 01 00 3A 05 01 11 [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: D1 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: D1 01 00 [10:17:29]MH_I2C_Read... [10:17:29]Read from MH i2c: D1 01 00 3A 05 00 10 [10:17:29]Write to MH i2c: 01 00 00 3B 05 40 [10:17:29]Write i2c OK [10:17:29]MH_I2C_Read... [10:17:29]OFD Sender: No OFD packet to send [10:17:29]*** Cut start [10:17:29]*** Partial cut [10:17:29]*** CUTSNS_PIN = 1 [10:17:29]*** CUTSNS_PIN = 0 [10:17:30]*** Brake cut motor [10:17:30]Read from MH i2c: 01 [10:17:30]MH_I2C_Read... [10:17:30]*** Stop cut motor [10:17:30]*** Cut end [10:17:30]Read from MH i2c: 01 07 00 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: 01 07 00 3B 05 00 00 00 00 00 FF 0F 55 [10:17:30]process_action close_receipt done [10:17:30]requested_data is exist [10:17:30]produce_requested_data [10:17:30]requested_item fm.sn is exist - process it [10:17:30]wFMCommunicate request_size=4 [10:17:30]MH_SAM_APDU [10:17:30]CAPDU: 80 11 00 00 [10:17:30]Write to MH i2c: E2 08 00 3C 05 80 11 00 00 00 00 00 00 BB [10:17:30]Write i2c OK [10:17:30]MH_I2C_Read... [10:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:30]Read from MH i2c: E2 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: E2 17 00 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: E2 17 00 3C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 11 [10:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:30]wFMCommunicate OK [10:17:30]requested_item fd.num is exist - process it [10:17:30]SAM_PROTO_GetFieldsCounters [10:17:30]wFMCommunicate request_size=4 [10:17:30]MH_SAM_APDU [10:17:30]CAPDU: 80 13 00 00 [10:17:30]Write to MH i2c: E2 08 00 3D 05 80 13 00 00 00 00 00 00 BE [10:17:30]Write i2c OK [10:17:30]MH_I2C_Read... [10:17:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:30]Read from MH i2c: E2 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: E2 62 00 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: E2 62 00 3D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [10:17: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:30]wFMCommunicate OK [10:17:30]SAM_PROTO_GetFieldsCounters done [10:17:30]requested_item shift.num is exist - process it [10:17:30]requested_item shift.opened is exist - process it [10:17:30]req_shift_opened [10:17:30]FM_GetShiftState [10:17:30]SAM_PROTO_GetShiftState [10:17:30]wFMCommunicate request_size=4 [10:17:30]MH_SAM_APDU [10:17:30]CAPDU: 80 13 01 00 [10:17:30]Write to MH i2c: E2 08 00 3E 05 80 13 01 00 00 00 00 00 C0 [10:17:30]Write i2c OK [10:17:30]MH_I2C_Read... [10:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:30]Read from MH i2c: E2 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: E2 0E 00 [10:17:30]MH_I2C_Read... [10:17:30]Read from MH i2c: E2 0E 00 3E 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0A [10:17:30]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:17:30]wFMCommunicate OK [10:17:30]SAM_PROTO_GetShiftState done [10:17:30]FM_GetShiftState done [10:17:30]req_shift_opened done [10:17:30]requested_item shift.open_date is exist - process it [10:17:30]req_shift_open_date [10:17:30]req_shift_open_date done [10:17:30]produce_requested_data done [10:17:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164135,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:17:30]process_action_free close_receipt [10:17:30]json_value_free [10:17:30]json_value_free done [10:17:30]process_json_proto returns [10:17:30]Send response to host [10:17:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164135,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:17:30]free response buf [10:17:30]execute_script done [10:17:30]execute_script returns [10:17:30]free content buf [10:17:30]Sock 7.Close socket [10:17:30]Sock 7.Thread stoped [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:40]accept exits with 9 [10:17:40]New connection [10:17:40]New thread 3066707300 created [10:17:40]Thread 3066850660 joined [10:17:40]Waiting for new connection... [10:17:40] Sock 9.Parse request [10:17:40]Sock 9.Check first char [10:17:40]Sock 9.First char is OK [10:17:40]request: POST /json_proto HTTP/1.0 [10:17:40]Method: POST [10:17:40]URL: /json_proto [10:17:40]Method is POST - this is cgi request [10:17:40]url: /json_proto [10:17:40]query_string will be loaded in cgi processing [10:17:40]execute_cgi json_proto POST (null) [10:17:40]execute_cgi path=json_proto method=POST [10:17:40]POST find Content-Length [10:17:40]Host: 172.17.56.4:8080 [10:17:40]Content-Length: 790 [10:17:40]Content-Type: application/json [10:17:40] [10:17:40]POST finish read [10:17:40]Found Content-Length = 790 [10:17:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458217", "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" : 71.26, "quantity" : 63.150, "sum" : 4500.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4500.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:40]execute_script... [10:17: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)458217", "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" : 71.26, "quantity" : 63.150, "sum" : 4500.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4500.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:40]POST & json_proto [10:17:40]process_json_proto [10:17:40]json parsed OK: [10:17:40]protocol is kg_v1.0 [10:17:40]action value=close_receipt [10:17:40]process_action close_receipt [10:17:40]cmd_close_receipt [10:17:40]MH_GetDate [10:17:40]Write to MH i2c: F0 00 00 3F 05 33 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: F0 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: F0 09 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: F0 09 00 3F 05 00 C4 02 91 66 C9 DC B2 64 B4 [10:17:40]GetLastDocTimeStamp 1720779447 [10:17:40]current date 1720779460 [10:17:40]FM_GetShiftState [10:17:40]SAM_PROTO_GetShiftState [10:17:40]wFMCommunicate request_size=4 [10:17:40]MH_SAM_APDU [10:17:40]CAPDU: 80 13 01 00 [10:17:40]Write to MH i2c: E2 08 00 40 05 80 13 01 00 00 00 00 00 C2 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:40]Read from MH i2c: E2 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 0E 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 0E 00 40 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0C [10:17:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:17:40]wFMCommunicate OK [10:17:40]SAM_PROTO_GetShiftState done [10:17:40]FM_GetShiftState done [10:17:40]opened in 1720744654 [10:17:40]opened+sec_in_day 1720831054 [10:17:40]quantity*price = 450006 [10:17:40]sum+1 = 450008 [10:17:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4500.07 НСП 1% : 39.82 НДС 12% : 477.88 Наличными: 0.00 Безнал.: 4500.07 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 57 12.07.2024 10:17 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164136 ФПД: 238783198593583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101740&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164136&fm=238783198593583&tin=02508201610067®Number=0000000000090829&sum=450007 [10:17:41]StoreToDocumentArchive [10:17:41]shift 445 fd 164136 [10:17:41]save to /storage/0445/doc_00164136 [10:17:41]save last doc name /storage/0445/doc_00164136 to /storage/kkm_last_doc_name [10:17:41]save OK [10:17:41]Clear old archive folders... [10:17:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:41]tlvbuf is 009E8E50 [10:17:41]SAM_PROTO_ClearQueue [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 09 00 00 [10:17:41]Write to MH i2c: E2 08 00 4D 05 80 09 00 00 00 00 00 00 C4 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [10:17:41]RAPDU: 90 00 [10:17:41]wFMCommunicate OK [10:17:41]SAM_PROTO_ClearQueue done [10:17:41]KKMCreateOFDPacket [10:17:41]OFDProtocolAddRootSTLVToBuf [10:17:41]FM_MakeSignedData [10:17:41]FM_MakeSignedData [10:17:41]SAM_PROTO_SignData [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 0D 01 02 [10:17:41]Write to MH i2c: E2 08 00 4E 05 80 0D 01 02 00 00 00 00 CC [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [10:17:41]RAPDU: 90 00 [10:17:41]wFMCommunicate OK [10:17:41]wFMCommunicate request_size=255 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE F6 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D7 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C4 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 81 02 00 35 04 06 00 D9 2C 0B BB [10:17:41]Write to MH i2c: E2 02 01 4F 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE F6 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D7 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C4 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 81 02 00 35 04 06 00 D9 2C 0B BB 00 00 1F [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [10:17:41]RAPDU: 90 00 [10:17:41]wFMCommunicate OK [10:17:41]wFMCommunicate request_size=7 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 0D 02 02 02 02 2F [10:17:41]Write to MH i2c: E2 0A 00 50 05 80 0D 02 02 02 00 02 2F 00 00 04 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [10:17:41]RAPDU: 90 00 [10:17:41]wFMCommunicate OK [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 0D 03 02 [10:17:41]Write to MH i2c: E2 08 00 51 05 80 0D 03 02 00 00 00 00 D1 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 0B 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 0B 00 51 05 00 DE 27 89 40 C5 A1 A8 DC 90 00 8A [10:17:41]RAPDU: DE 27 89 40 C5 A1 A8 DC 90 00 [10:17:41]wFMCommunicate OK [10:17:41]SAM_PROTO_SignData done [10:17:41]FM_MakeSignedData done [10:17:41]CreateOFDProtocolMessage [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 11 00 00 [10:17:41]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 17 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 27 [10:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:41]wFMCommunicate OK [10:17:41]CreateOFDProtocolMessage done [10:17:41]OFDSenderStorePacket 164136 [10:17:41]StoreOFDPacket docnum=164136 [10:17:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B1 81 04 01 7D F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE F6 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D7 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C4 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 81 02 00 35 04 06 00 D9 2C 0B BB 02 2F DE 27 89 40 C5 A1 A8 DC [10:17:41]CheckFolder [10:17:41]dirname=/storage/ofd_packets [10:17:41]CheckFolder done [10:17:41]ProducePacketName [10:17:41]name=ofd_packets/00164136 [10:17:41]NVStorageSaveData ofd_packets/00164136 [10:17:41]File name is /storage/ofd_packets/00164136 [10:17:41]Write 298 bytes [10:17:41]NVStorageSaveData done [10:17:41]OFDSenderStorePacket done [10:17:41]KKMCreateOFDPacket done [10:17:41]NVStorageSaveData kkm_last_timestamp [10:17:41]File name is /storage/kkm_last_timestamp [10:17:41]Write 4 bytes [10:17:41]NVStorageSaveData done [10:17:41]ExternCall_PrintAddStr [10:17:41]wPrintStart [10:17:41]Write to MH i2c: 01 00 00 53 05 58 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: 01 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: 01 07 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 FF 0F 6D [10:17:41]RasterBufferAndPrint [10:17:41]line Счет N : (1)458217 [10:17:41]line ИНН: 02508201610067 [10:17:41]line Контрольно-Кассовый Чек [10:17:41]line ПРОДАЖА [10:17:41]line ТРК (МРК, ГНК) : 21 [10:17:41]line Товар: 2710194210 [10:17:41]line ДТ-К-5 [10:17:41]line 63.150 * 71.26 [10:17:41]line = 4500.07 [10:17:41]line НДС 12% НСП 1% [10:17:41]line > о реализуемом товаре [10:17:41]line ИТОГО: 4500.07 [10:17:41]line НСП 1% : 39.82 [10:17:41]line НДС 12% : 477.88 [10:17:41]line Наличными: 0.00 [10:17:41]line Безнал.: 4500.07 [10:17:41]line Место: АЗС № 72 "Партнер Нефть" [10:17:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:17:41]line СНО: Общий режим [10:17:41]line Чек 57 12.07.2024 10:17 [10:17:41]line Смена: 445 ФФД: 1.0 [10:17:41]line ЗНМ: 0300000160 [10:17:41]line РНМ: 0000000000090829 [10:17:41]line Версия ККМ: 001 [10:17:41]line Платежная система: KICB Банк [10:17:41]line ФМ: 0000000000874718 [10:17:41]line ФД: 164136 [10:17:41]line ФПД: 238783198593583 [10:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T101740&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164136&fm=238783198593583&tin=02508201610067®Number=0000000000090829&sum=450007 [10:17:42]OFD Sender: Processing packet 164136 [packets to send 104, broken 103] [10:17:42]ProducePacketName [10:17:42]name=ofd_packets/00164136 [10:17:42]OFD Sender: To server: pG, [10:17:42]CommunicateWithHost lk.salyk.kg:30040 [10:17:42]ConnectInit lk.salyk.kg [10:17:42]written 0, free lines is 4095 [10:17:42]Connected sock=10 [10:17:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B1 81 04 01 7D F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE F6 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D7 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C4 02 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 81 02 00 35 04 06 00 D9 2C 0B BB 02 2F DE 27 89 40 C5 A1 A8 DC [10:17:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D7 5A 47 00 C5 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 81 02 00 F4 03 04 00 59 A9 90 66 B6 04 01 00 00 09 82 31 CC EE B9 23 0A [10:17:42]CommunicateWithHost err = 0 [10:17:42]CheckOFDResponse [10:17:42]1017 (14) - 77093643461234 [10:17:42]1041 (16) - 0000000000874718 [10:17:42]1040 (4) - 164136 [10:17:42]1012 (4) - 12.07.2024 03:56 [10:17:42]1206 (1) - 0 [10:17:42]OFD Sender: Remove packet 164136 [10:17:42]ProducePacketName [10:17:42]name=ofd_packets/00164136 [10:17:42]NVStorageDeleteData [10:17:42]Write to MH i2c: 01 00 00 7C 05 81 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 07 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 02 0D 97 [10:17:42]RasterBufferAndPrint [10:17:42]line [10:17:42]line [10:17:42]line [10:17:42]line [10:17:42]line [10:17:42]written 0, free lines is 3337 [10:17:42]MH_Cut [10:17:42]Write to MH i2c: D1 01 00 83 05 01 5A [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: D1 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: D1 01 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: D1 01 00 83 05 00 59 [10:17:42]Write to MH i2c: 01 00 00 84 05 89 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:43]OFD Sender: No OFD packet to send [10:17:43]*** Cut start [10:17:43]*** Partial cut [10:17:43]*** CUTSNS_PIN = 1 [10:17:43]*** CUTSNS_PIN = 0 [10:17:43]*** Brake cut motor [10:17:43]Read from MH i2c: 01 [10:17:43]MH_I2C_Read... [10:17:43]*** Stop cut motor [10:17:43]*** Cut end [10:17:43]Read from MH i2c: 01 07 00 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: 01 07 00 84 05 00 00 00 00 00 FF 0F 9E [10:17:43]process_action close_receipt done [10:17:43]requested_data is exist [10:17:43]produce_requested_data [10:17:43]requested_item fm.sn is exist - process it [10:17:43]wFMCommunicate request_size=4 [10:17:43]MH_SAM_APDU [10:17:43]CAPDU: 80 11 00 00 [10:17:43]Write to MH i2c: E2 08 00 85 05 80 11 00 00 00 00 00 00 04 [10:17:43]Write i2c OK [10:17:43]MH_I2C_Read... [10:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:43]Read from MH i2c: E2 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: E2 17 00 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: E2 17 00 85 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [10:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:43]wFMCommunicate OK [10:17:43]requested_item fd.num is exist - process it [10:17:43]SAM_PROTO_GetFieldsCounters [10:17:43]wFMCommunicate request_size=4 [10:17:43]MH_SAM_APDU [10:17:43]CAPDU: 80 13 00 00 [10:17:43]Write to MH i2c: E2 08 00 86 05 80 13 00 00 00 00 00 00 07 [10:17:43]Write i2c OK [10:17:43]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 62 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 62 00 86 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:17: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:44]wFMCommunicate OK [10:17:44]SAM_PROTO_GetFieldsCounters done [10:17:44]requested_item shift.num is exist - process it [10:17:44]requested_item shift.opened is exist - process it [10:17:44]req_shift_opened [10:17:44]FM_GetShiftState [10:17:44]SAM_PROTO_GetShiftState [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 13 01 00 [10:17:44]Write to MH i2c: E2 08 00 87 05 80 13 01 00 00 00 00 00 09 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 0E 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 0E 00 87 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 53 [10:17:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:17:44]wFMCommunicate OK [10:17:44]SAM_PROTO_GetShiftState done [10:17:44]FM_GetShiftState done [10:17:44]req_shift_opened done [10:17:44]requested_item shift.open_date is exist - process it [10:17:44]req_shift_open_date [10:17:44]req_shift_open_date done [10:17:44]produce_requested_data done [10:17:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164136,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:17:44]process_action_free close_receipt [10:17:44]json_value_free [10:17:44]json_value_free done [10:17:44]process_json_proto returns [10:17:44]Send response to host [10:17:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164136,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:17:44]free response buf [10:17:44]execute_script done [10:17:44]execute_script returns [10:17:44]free content buf [10:17:44]Sock 9.Close socket [10:17:44]Sock 9.Thread stoped [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:51]accept exits with 7 [10:20:51]New connection [10:20:51]New thread 3066850660 created [10:20:51]Thread 3066707300 joined [10:20:51]Waiting for new connection... [10:20:51] Sock 7.Parse request [10:20:51]Sock 7.Check first char [10:20:51]Sock 7.First char is OK [10:20:51]request: POST /json_proto HTTP/1.0 [10:20:51]Method: POST [10:20:51]URL: /json_proto [10:20:51]Method is POST - this is cgi request [10:20:51]url: /json_proto [10:20:51]query_string will be loaded in cgi processing [10:20:51]execute_cgi json_proto POST (null) [10:20:51]execute_cgi path=json_proto method=POST [10:20:51]POST find Content-Length [10:20:51]Host: 172.17.56.4:8080 [10:20:51]Content-Length: 682 [10:20:51]Content-Type: application/json [10:20:51] [10:20:51]POST finish read [10:20:51]Found Content-Length = 682 [10:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:20:51]execute_script... [10:20:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:20:51]POST & json_proto [10:20:51]process_json_proto [10:20:51]json parsed OK: [10:20:51]protocol is kg_v1.0 [10:20:51]action value=close_receipt [10:20:51]process_action close_receipt [10:20:51]cmd_close_receipt [10:20:51]MH_GetDate [10:20:51]Write to MH i2c: F0 00 00 88 05 7C [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: F0 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: F0 09 00 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: F0 09 00 88 05 00 84 03 91 66 C9 DC B2 64 BE [10:20:51]GetLastDocTimeStamp 1720779460 [10:20:51]current date 1720779652 [10:20:51]FM_GetShiftState [10:20:51]SAM_PROTO_GetShiftState [10:20:51]wFMCommunicate request_size=4 [10:20:51]MH_SAM_APDU [10:20:51]CAPDU: 80 13 01 00 [10:20:51]Write to MH i2c: E2 08 00 89 05 80 13 01 00 00 00 00 00 0B [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:51]Read from MH i2c: E2 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 0E 00 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: E2 0E 00 89 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 55 [10:20:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:20:51]wFMCommunicate OK [10:20:51]SAM_PROTO_GetShiftState done [10:20:51]FM_GetShiftState done [10:20:51]opened in 1720744654 [10:20:51]opened+sec_in_day 1720831054 [10:20:51]quantity*price = 100016 [10:20:51]sum+1 = 100017 [10:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 58 12.07.2024 10:20 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164137 ФПД: 54382173245163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T102052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164137&fm=54382173245163&tin=02508201610067®Number=0000000000090829&sum=100000 [10:20:52]StoreToDocumentArchive [10:20:52]shift 445 fd 164137 [10:20:52]save to /storage/0445/doc_00164137 [10:20:52]save last doc name /storage/0445/doc_00164137 to /storage/kkm_last_doc_name [10:20:52]save OK [10:20:52]Clear old archive folders... [10:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:52]tlvbuf is 009FC790 [10:20:52]SAM_PROTO_ClearQueue [10:20:52]wFMCommunicate request_size=4 [10:20:52]MH_SAM_APDU [10:20:52]CAPDU: 80 09 00 00 [10:20:52]Write to MH i2c: E2 08 00 96 05 80 09 00 00 00 00 00 00 0D [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [10:20:52]RAPDU: 90 00 [10:20:52]wFMCommunicate OK [10:20:52]SAM_PROTO_ClearQueue done [10:20:52]KKMCreateOFDPacket [10:20:52]OFDProtocolAddRootSTLVToBuf [10:20:52]FM_MakeSignedData [10:20:52]FM_MakeSignedData [10:20:52]SAM_PROTO_SignData [10:20:52]wFMCommunicate request_size=4 [10:20:52]MH_SAM_APDU [10:20:52]CAPDU: 80 0D 01 02 [10:20:52]Write to MH i2c: E2 08 00 97 05 80 0D 01 02 00 00 00 00 15 [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:52]Read from MH i2c: E2 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 [10:20:52]MH_I2C_Read... [10:20:52]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [10:20:52]RAPDU: 90 00 [10:20:52]wFMCommunicate OK [10:20:52]wFMCommunicate request_size=255 [10:20:52]MH_SAM_APDU [10:20: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 84 03 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 81 02 00 35 04 06 00 31 [10:20:52]Write to MH i2c: E2 02 01 98 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 84 03 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 81 02 00 35 04 06 00 31 00 00 83 [10:20:52]Write i2c OK [10:20:52]MH_I2C_Read... [10:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:53]Read from MH i2c: E2 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 03 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [10:20:53]RAPDU: 90 00 [10:20:53]wFMCommunicate OK [10:20:53]wFMCommunicate request_size=10 [10:20:53]MH_SAM_APDU [10:20:53]CAPDU: 80 0D 02 02 05 75 D6 1E 4E EB [10:20:53]Write to MH i2c: E2 0D 00 99 05 80 0D 02 02 05 00 75 D6 1E 4E EB 00 00 C4 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:53]Read from MH i2c: E2 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 03 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [10:20:53]RAPDU: 90 00 [10:20:53]wFMCommunicate OK [10:20:53]wFMCommunicate request_size=4 [10:20:53]MH_SAM_APDU [10:20:53]CAPDU: 80 0D 03 02 [10:20:53]Write to MH i2c: E2 08 00 9A 05 80 0D 03 02 00 00 00 00 1A [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:53]Read from MH i2c: E2 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 0B 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 0B 00 9A 05 00 C6 71 33 57 D2 67 8D 40 90 00 E2 [10:20:53]RAPDU: C6 71 33 57 D2 67 8D 40 90 00 [10:20:53]wFMCommunicate OK [10:20:53]SAM_PROTO_SignData done [10:20:53]FM_MakeSignedData done [10:20:53]CreateOFDProtocolMessage [10:20:53]wFMCommunicate request_size=4 [10:20:53]MH_SAM_APDU [10:20:53]CAPDU: 80 11 00 00 [10:20:53]Write to MH i2c: E2 08 00 9B 05 80 11 00 00 00 00 00 00 1A [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:53]Read from MH i2c: E2 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 17 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 17 00 9B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 70 [10:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:20:53]wFMCommunicate OK [10:20:53]CreateOFDProtocolMessage done [10:20:53]OFDSenderStorePacket 164137 [10:20:53]StoreOFDPacket docnum=164137 [10:20:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8F 34 07 01 EA 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 84 03 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 81 02 00 35 04 06 00 31 75 D6 1E 4E EB C6 71 33 57 D2 67 8D 40 [10:20:53]CheckFolder [10:20:53]dirname=/storage/ofd_packets [10:20:53]CheckFolder done [10:20:53]ProducePacketName [10:20:53]name=ofd_packets/00164137 [10:20:53]NVStorageSaveData ofd_packets/00164137 [10:20:53]File name is /storage/ofd_packets/00164137 [10:20:53]Write 301 bytes [10:20:53]NVStorageSaveData done [10:20:53]OFDSenderStorePacket done [10:20:53]KKMCreateOFDPacket done [10:20:53]NVStorageSaveData kkm_last_timestamp [10:20:53]File name is /storage/kkm_last_timestamp [10:20:53]Write 4 bytes [10:20:53]NVStorageSaveData done [10:20:53]ExternCall_PrintAddStr [10:20:53]wPrintStart [10:20:53]Write to MH i2c: 01 00 00 9C 05 A1 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 07 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 FF 0F B6 [10:20:53]RasterBufferAndPrint [10:20:53]line Счет N : (1)458220 [10:20:53]line ИНН: 02508201610067 [10:20:53]line Контрольно-Кассовый Чек [10:20:53]line ПРОДАЖА [10:20:53]line ТРК (МРК, ГНК) : 12 [10:20:53]line Товар: 2710124130 [10:20:53]line Аи-92-К-5 [10:20:53]line 15.200 * 65.80 [10:20:53]line = 1000.16 [10:20:53]line НДС 12% НСП 1% [10:20:53]line > о реализуемом товаре [10:20:53]line ОКРУГЛЕНИЕ: -0.16 [10:20:53]line ИТОГО: 1000.00 [10:20:53]line Внесено: 1000.00 [10:20:53]line СДАЧА: 0.00 [10:20:53]line НСП 1% : 8.85 [10:20:53]line НДС 12% : 106.21 [10:20:53]line Наличными: 1000.00 [10:20:53]line Безнал.: 0.00 [10:20:53]line Место: АЗС № 72 "Партнер Нефть" [10:20:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:20:53]line СНО: Общий режим [10:20:53]line Чек 58 12.07.2024 10:20 [10:20:53]line Смена: 445 ФФД: 1.0 [10:20:53]line ЗНМ: 0300000160 [10:20:53]line РНМ: 0000000000090829 [10:20:53]line Версия ККМ: 001 [10:20:53]line ФМ: 0000000000874718 [10:20:53]line ФД: 164137 [10:20:53]line ФПД: 54382173245163 [10:20:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T102052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164137&fm=54382173245163&tin=02508201610067®Number=0000000000090829&sum=100000 [10:20:53]OFD Sender: Processing packet 164137 [packets to send 104, broken 103] [10:20:53]ProducePacketName [10:20:53]name=ofd_packets/00164137 [10:20:53]OFD Sender: To server: pG, [10:20:53]CommunicateWithHost lk.salyk.kg:30040 [10:20:53]ConnectInit lk.salyk.kg [10:20:53]written 0, free lines is 4095 [10:20:53]Connected sock=10 [10:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8F 34 07 01 EA 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 84 03 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 81 02 00 35 04 06 00 31 75 D6 1E 4E EB C6 71 33 57 D2 67 8D 40 [10:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5E 70 47 00 2A A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 81 02 00 F4 03 04 00 18 AA 90 66 B6 04 01 00 00 0F B5 78 85 81 55 3E B6 [10:20:53]CommunicateWithHost err = 0 [10:20:53]CheckOFDResponse [10:20:53]1017 (14) - 77093643461234 [10:20:53]1041 (16) - 0000000000874718 [10:20:53]1040 (4) - 164137 [10:20:53]1012 (4) - 12.07.2024 03:59 [10:20:53]1206 (1) - 0 [10:20:53]OFD Sender: Remove packet 164137 [10:20:53]ProducePacketName [10:20:53]name=ofd_packets/00164137 [10:20:53]NVStorageDeleteData [10:20:53]Write to MH i2c: 01 00 00 C6 05 CB [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 07 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 07 00 C6 05 00 00 00 00 00 F2 0C D0 [10:20:53]RasterBufferAndPrint [10:20:53]line [10:20:53]line [10:20:53]line [10:20:53]line [10:20:53]line [10:20:53]written 0, free lines is 3322 [10:20:53]MH_Cut [10:20:53]Write to MH i2c: D1 01 00 CD 05 01 A4 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: D1 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: D1 01 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: D1 01 00 CD 05 00 A3 [10:20:53]Write to MH i2c: 01 00 00 CE 05 D3 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:54]OFD Sender: No OFD packet to send [10:20:54]*** Cut start [10:20:54]*** Partial cut [10:20:54]*** CUTSNS_PIN = 1 [10:20:54]*** CUTSNS_PIN = 0 [10:20:54]*** Brake cut motor [10:20:55]Read from MH i2c: 01 [10:20:55]MH_I2C_Read... [10:20:55]*** Stop cut motor [10:20:55]*** Cut end [10:20:55]Read from MH i2c: 01 07 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: 01 07 00 CE 05 00 00 00 00 00 FF 0F E8 [10:20:55]process_action close_receipt done [10:20:55]requested_data is exist [10:20:55]produce_requested_data [10:20:55]requested_item fm.sn is exist - process it [10:20:55]wFMCommunicate request_size=4 [10:20:55]MH_SAM_APDU [10:20:55]CAPDU: 80 11 00 00 [10:20:55]Write to MH i2c: E2 08 00 CF 05 80 11 00 00 00 00 00 00 4E [10:20:55]Write i2c OK [10:20:55]MH_I2C_Read... [10:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:55]Read from MH i2c: E2 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 17 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 17 00 CF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A4 [10:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:20:55]wFMCommunicate OK [10:20:55]requested_item fd.num is exist - process it [10:20:55]SAM_PROTO_GetFieldsCounters [10:20:55]wFMCommunicate request_size=4 [10:20:55]MH_SAM_APDU [10:20:55]CAPDU: 80 13 00 00 [10:20:55]Write to MH i2c: E2 08 00 D0 05 80 13 00 00 00 00 00 00 51 [10:20:55]Write i2c OK [10:20:55]MH_I2C_Read... [10:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:55]Read from MH i2c: E2 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 62 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 62 00 D0 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [10:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:55]wFMCommunicate OK [10:20:55]SAM_PROTO_GetFieldsCounters done [10:20:55]requested_item shift.num is exist - process it [10:20:55]requested_item shift.opened is exist - process it [10:20:55]req_shift_opened [10:20:55]FM_GetShiftState [10:20:55]SAM_PROTO_GetShiftState [10:20:55]wFMCommunicate request_size=4 [10:20:55]MH_SAM_APDU [10:20:55]CAPDU: 80 13 01 00 [10:20:55]Write to MH i2c: E2 08 00 D1 05 80 13 01 00 00 00 00 00 53 [10:20:55]Write i2c OK [10:20:55]MH_I2C_Read... [10:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:55]Read from MH i2c: E2 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 0E 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 0E 00 D1 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9D [10:20:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:20:55]wFMCommunicate OK [10:20:55]SAM_PROTO_GetShiftState done [10:20:55]FM_GetShiftState done [10:20:55]req_shift_opened done [10:20:55]requested_item shift.open_date is exist - process it [10:20:55]req_shift_open_date [10:20:55]req_shift_open_date done [10:20:55]produce_requested_data done [10:20:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164137,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:20:55]process_action_free close_receipt [10:20:55]json_value_free [10:20:55]json_value_free done [10:20:55]process_json_proto returns [10:20:55]Send response to host [10:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164137,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:20:55]free response buf [10:20:55]execute_script done [10:20:55]execute_script returns [10:20:55]free content buf [10:20:55]Sock 7.Close socket [10:20:55]Sock 7.Thread stoped [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:37]accept exits with 9 [10:21:37]New connection [10:21:37]New thread 3066707300 created [10:21:37]Thread 3066850660 joined [10:21:37]Waiting for new connection... [10:21:37] Sock 9.Parse request [10:21:37]Sock 9.Check first char [10:21:37]Sock 9.First char is OK [10:21:37]request: POST /json_proto HTTP/1.0 [10:21:37]Method: POST [10:21:37]URL: /json_proto [10:21:37]Method is POST - this is cgi request [10:21:37]url: /json_proto [10:21:37]query_string will be loaded in cgi processing [10:21:37]execute_cgi json_proto POST (null) [10:21:37]execute_cgi path=json_proto method=POST [10:21:37]POST find Content-Length [10:21:37]Host: 172.17.56.4:8080 [10:21:37]Content-Length: 677 [10:21:37]Content-Type: application/json [10:21:37] [10:21:37]POST finish read [10:21:37]Found Content-Length = 677 [10:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:21:37]execute_script... [10:21:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:21:37]POST & json_proto [10:21:37]process_json_proto [10:21:37]json parsed OK: [10:21:37]protocol is kg_v1.0 [10:21:37]action value=close_receipt [10:21:37]process_action close_receipt [10:21:37]cmd_close_receipt [10:21:37]MH_GetDate [10:21:37]Write to MH i2c: F0 00 00 D2 05 C6 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: F0 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: F0 09 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: F0 09 00 D2 05 00 B1 03 91 66 C9 DC B2 64 35 [10:21:37]GetLastDocTimeStamp 1720779652 [10:21:37]current date 1720779697 [10:21:37]FM_GetShiftState [10:21:37]SAM_PROTO_GetShiftState [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 13 01 00 [10:21:37]Write to MH i2c: E2 08 00 D3 05 80 13 01 00 00 00 00 00 55 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0E 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0E 00 D3 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9F [10:21:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:21:37]wFMCommunicate OK [10:21:37]SAM_PROTO_GetShiftState done [10:21:37]FM_GetShiftState done [10:21:37]opened in 1720744654 [10:21:37]opened+sec_in_day 1720831054 [10:21:37]quantity*price = 60009 [10:21:37]sum+1 = 60011 [10:21:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 59 12.07.2024 10:21 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164138 ФПД: 271447952206662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T102138&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164138&fm=271447952206662&tin=02508201610067®Number=0000000000090829&sum=60000 [10:21:38]StoreToDocumentArchive [10:21:38]shift 445 fd 164138 [10:21:38]save to /storage/0445/doc_00164138 [10:21:38]save last doc name /storage/0445/doc_00164138 to /storage/kkm_last_doc_name [10:21:38]save OK [10:21:38]Clear old archive folders... [10:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:38]tlvbuf is 009FE2D0 [10:21:38]SAM_PROTO_ClearQueue [10:21:38]wFMCommunicate request_size=4 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 09 00 00 [10:21:38]Write to MH i2c: E2 08 00 E0 05 80 09 00 00 00 00 00 00 57 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:38]Read from MH i2c: E2 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 E0 05 00 90 00 59 [10:21:38]RAPDU: 90 00 [10:21:38]wFMCommunicate OK [10:21:38]SAM_PROTO_ClearQueue done [10:21:38]KKMCreateOFDPacket [10:21:38]OFDProtocolAddRootSTLVToBuf [10:21:38]FM_MakeSignedData [10:21:38]FM_MakeSignedData [10:21:38]SAM_PROTO_SignData [10:21:38]wFMCommunicate request_size=4 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 0D 01 02 [10:21:38]Write to MH i2c: E2 08 00 E1 05 80 0D 01 02 00 00 00 00 5F [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:38]Read from MH i2c: E2 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [10:21:38]RAPDU: 90 00 [10:21:38]wFMCommunicate OK [10:21:38]wFMCommunicate request_size=255 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B2 03 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 81 02 00 35 04 06 00 F6 [10:21:38]Write to MH i2c: E2 02 01 E2 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B2 03 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 81 02 00 35 04 06 00 F6 00 00 41 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:38]Read from MH i2c: E2 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [10:21:38]RAPDU: 90 00 [10:21:38]wFMCommunicate OK [10:21:38]wFMCommunicate request_size=10 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 0D 02 02 05 E1 66 C4 2B 46 [10:21:38]Write to MH i2c: E2 0D 00 E3 05 80 0D 02 02 05 00 E1 66 C4 2B 46 00 00 E8 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:38]Read from MH i2c: E2 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 03 00 E3 05 00 90 00 5C [10:21:38]RAPDU: 90 00 [10:21:38]wFMCommunicate OK [10:21:38]wFMCommunicate request_size=4 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 0D 03 02 [10:21:38]Write to MH i2c: E2 08 00 E4 05 80 0D 03 02 00 00 00 00 64 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:38]Read from MH i2c: E2 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 0B 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 0B 00 E4 05 00 38 2B 35 7B 9C 62 95 71 90 00 7C [10:21:38]RAPDU: 38 2B 35 7B 9C 62 95 71 90 00 [10:21:38]wFMCommunicate OK [10:21:38]SAM_PROTO_SignData done [10:21:38]FM_MakeSignedData done [10:21:38]CreateOFDProtocolMessage [10:21:38]wFMCommunicate request_size=4 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 11 00 00 [10:21:38]Write to MH i2c: E2 08 00 E5 05 80 11 00 00 00 00 00 00 64 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:38]Read from MH i2c: E2 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 17 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 17 00 E5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BA [10:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:21:38]wFMCommunicate OK [10:21:38]CreateOFDProtocolMessage done [10:21:38]OFDSenderStorePacket 164138 [10:21:38]StoreOFDPacket docnum=164138 [10:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 44 9F 07 01 96 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B2 03 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 81 02 00 35 04 06 00 F6 E1 66 C4 2B 46 38 2B 35 7B 9C 62 95 71 [10:21:38]CheckFolder [10:21:38]dirname=/storage/ofd_packets [10:21:38]CheckFolder done [10:21:38]ProducePacketName [10:21:38]name=ofd_packets/00164138 [10:21:38]NVStorageSaveData ofd_packets/00164138 [10:21:38]File name is /storage/ofd_packets/00164138 [10:21:38]Write 301 bytes [10:21:38]NVStorageSaveData done [10:21:38]OFDSenderStorePacket done [10:21:38]KKMCreateOFDPacket done [10:21:38]NVStorageSaveData kkm_last_timestamp [10:21:38]File name is /storage/kkm_last_timestamp [10:21:38]Write 4 bytes [10:21:38]NVStorageSaveData done [10:21:38]ExternCall_PrintAddStr [10:21:38]wPrintStart [10:21:38]Write to MH i2c: 01 00 00 E6 05 EB [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: 01 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: 01 07 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: 01 07 00 E6 05 00 00 00 00 00 FF 0F 00 [10:21:38]RasterBufferAndPrint [10:21:38]line Счет N : (1)458221 [10:21:38]line ИНН: 02508201610067 [10:21:38]line Контрольно-Кассовый Чек [10:21:38]line ПРОДАЖА [10:21:38]line ТРК (МРК, ГНК) : 22 [10:21:38]line Товар: 2710124130 [10:21:38]line Аи-92-К-5 [10:21:38]line 9.120 * 65.80 [10:21:38]line = 600.10 [10:21:38]line НДС 12% НСП 1% [10:21:38]line > о реализуемом товаре [10:21:38]line ОКРУГЛЕНИЕ: -0.10 [10:21:38]line ИТОГО: 600.00 [10:21:38]line Внесено: 600.00 [10:21:38]line СДАЧА: 0.00 [10:21:38]line НСП 1% : 5.31 [10:21:38]line НДС 12% : 63.73 [10:21:38]line Наличными: 600.00 [10:21:38]line Безнал.: 0.00 [10:21:38]line Место: АЗС № 72 "Партнер Нефть" [10:21:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:21:38]line СНО: Общий режим [10:21:38]line Чек 59 12.07.2024 10:21 [10:21:38]line Смена: 445 ФФД: 1.0 [10:21:38]line ЗНМ: 0300000160 [10:21:38]line РНМ: 0000000000090829 [10:21:38]line Версия ККМ: 001 [10:21:38]line ФМ: 0000000000874718 [10:21:38]line ФД: 164138 [10:21:38]line ФПД: 271447952206662 [10:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T102138&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164138&fm=271447952206662&tin=02508201610067®Number=0000000000090829&sum=60000 [10:21:39]OFD Sender: Processing packet 164138 [packets to send 104, broken 103] [10:21:39]ProducePacketName [10:21:39]name=ofd_packets/00164138 [10:21:39]OFD Sender: To server: pG, [10:21:39]CommunicateWithHost lk.salyk.kg:30040 [10:21:39]ConnectInit lk.salyk.kg [10:21:39]written 0, free lines is 4095 [10:21:39]Connected sock=10 [10:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 44 9F 07 01 96 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B2 03 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 81 02 00 35 04 06 00 F6 E1 66 C4 2B 46 38 2B 35 7B 9C 62 95 71 [10:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6D B0 47 00 60 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 34 37 31 38 10 04 04 00 2A 81 02 00 F4 03 04 00 46 AA 90 66 B6 04 01 00 00 8A 81 3E 17 48 FC 0B EE [10:21:39]CommunicateWithHost err = 0 [10:21:39]CheckOFDResponse [10:21:39]1017 (14) - 77093643461234 [10:21:39]1041 (16) - 0000000000874718 [10:21:39]1040 (4) - 164138 [10:21:39]1012 (4) - 12.07.2024 04:00 [10:21:39]1206 (1) - 0 [10:21:39]OFD Sender: Remove packet 164138 [10:21:39]ProducePacketName [10:21:39]name=ofd_packets/00164138 [10:21:39]NVStorageDeleteData [10:21:39]Write to MH i2c: 01 00 00 10 06 16 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 10 06 00 00 00 00 00 F1 0C 1A [10:21:39]RasterBufferAndPrint [10:21:39]line [10:21:39]line [10:21:39]line [10:21:39]line [10:21:39]line [10:21:39]written 0, free lines is 3320 [10:21:39]MH_Cut [10:21:39]Write to MH i2c: D1 01 00 17 06 01 EF [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: D1 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: D1 01 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: D1 01 00 17 06 00 EE [10:21:39]Write to MH i2c: 01 00 00 18 06 1E [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:40]OFD Sender: No OFD packet to send [10:21:40]*** Cut start [10:21:40]*** Partial cut [10:21:40]*** CUTSNS_PIN = 1 [10:21:40]*** CUTSNS_PIN = 0 [10:21:40]*** Brake cut motor [10:21:40]Read from MH i2c: 01 [10:21:40]MH_I2C_Read... [10:21:40]*** Stop cut motor [10:21:40]*** Cut end [10:21:40]Read from MH i2c: 01 07 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [10:21:40]process_action close_receipt done [10:21:40]requested_data is exist [10:21:40]produce_requested_data [10:21:40]requested_item fm.sn is exist - process it [10:21:40]wFMCommunicate request_size=4 [10:21:40]MH_SAM_APDU [10:21:40]CAPDU: 80 11 00 00 [10:21:40]Write to MH i2c: E2 08 00 19 06 80 11 00 00 00 00 00 00 99 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 17 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 17 00 19 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EF [10:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:21:41]wFMCommunicate OK [10:21:41]requested_item fd.num is exist - process it [10:21:41]SAM_PROTO_GetFieldsCounters [10:21:41]wFMCommunicate request_size=4 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 13 00 00 [10:21:41]Write to MH i2c: E2 08 00 1A 06 80 13 00 00 00 00 00 00 9C [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 62 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 62 00 1A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [10:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:41]wFMCommunicate OK [10:21:41]SAM_PROTO_GetFieldsCounters done [10:21:41]requested_item shift.num is exist - process it [10:21:41]requested_item shift.opened is exist - process it [10:21:41]req_shift_opened [10:21:41]FM_GetShiftState [10:21:41]SAM_PROTO_GetShiftState [10:21:41]wFMCommunicate request_size=4 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 13 01 00 [10:21:41]Write to MH i2c: E2 08 00 1B 06 80 13 01 00 00 00 00 00 9E [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 0E 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 0E 00 1B 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E8 [10:21:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:21:41]wFMCommunicate OK [10:21:41]SAM_PROTO_GetShiftState done [10:21:41]FM_GetShiftState done [10:21:41]req_shift_opened done [10:21:41]requested_item shift.open_date is exist - process it [10:21:41]req_shift_open_date [10:21:41]req_shift_open_date done [10:21:41]produce_requested_data done [10:21:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164138,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:21:41]process_action_free close_receipt [10:21:41]json_value_free [10:21:41]json_value_free done [10:21:41]process_json_proto returns [10:21:41]Send response to host [10:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164138,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:21:41]free response buf [10:21:41]execute_script done [10:21:41]execute_script returns [10:21:41]free content buf [10:21:41]Sock 9.Close socket [10:21:41]Sock 9.Thread stoped [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:39]accept exits with 7 [10:24:39]New connection [10:24:39]New thread 3066850660 created [10:24:39]Thread 3066707300 joined [10:24:39]Waiting for new connection... [10:24:39] Sock 7.Parse request [10:24:39]Sock 7.Check first char [10:24:39]Sock 7.First char is OK [10:24:39]request: POST /json_proto HTTP/1.0 [10:24:39]Method: POST [10:24:39]URL: /json_proto [10:24:39]Method is POST - this is cgi request [10:24:39]url: /json_proto [10:24:39]query_string will be loaded in cgi processing [10:24:39]execute_cgi json_proto POST (null) [10:24:39]execute_cgi path=json_proto method=POST [10:24:39]POST find Content-Length [10:24:39]Host: 172.17.56.4:8080 [10:24:39]Content-Length: 682 [10:24:39]Content-Type: application/json [10:24:39] [10:24:39]POST finish read [10:24:39]Found Content-Length = 682 [10:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:24:39]execute_script... [10:24:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:24:39]POST & json_proto [10:24:39]process_json_proto [10:24:39]json parsed OK: [10:24:39]protocol is kg_v1.0 [10:24:39]action value=close_receipt [10:24:39]process_action close_receipt [10:24:39]cmd_close_receipt [10:24:39]MH_GetDate [10:24:39]Write to MH i2c: F0 00 00 1C 06 11 [10:24:39]Write i2c OK [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: F0 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: F0 09 00 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: F0 09 00 1C 06 00 68 04 91 66 C9 DC B2 64 38 [10:24:39]GetLastDocTimeStamp 1720779698 [10:24:39]current date 1720779880 [10:24:39]FM_GetShiftState [10:24:39]SAM_PROTO_GetShiftState [10:24:39]wFMCommunicate request_size=4 [10:24:39]MH_SAM_APDU [10:24:39]CAPDU: 80 13 01 00 [10:24:39]Write to MH i2c: E2 08 00 1D 06 80 13 01 00 00 00 00 00 A0 [10:24:39]Write i2c OK [10:24:39]MH_I2C_Read... [10:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:39]Read from MH i2c: E2 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: E2 0E 00 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: E2 0E 00 1D 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EA [10:24:39]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:24:39]wFMCommunicate OK [10:24:39]SAM_PROTO_GetShiftState done [10:24:39]FM_GetShiftState done [10:24:39]opened in 1720744654 [10:24:39]opened+sec_in_day 1720831054 [10:24:39]quantity*price = 100016 [10:24:39]sum+1 = 100017 [10:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 60 12.07.2024 10:24 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164139 ФПД: 128586850768213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T102440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164139&fm=128586850768213&tin=02508201610067®Number=0000000000090829&sum=100000 [10:24:40]StoreToDocumentArchive [10:24:40]shift 445 fd 164139 [10:24:40]save to /storage/0445/doc_00164139 [10:24:40]save last doc name /storage/0445/doc_00164139 to /storage/kkm_last_doc_name [10:24:40]save OK [10:24:40]Clear old archive folders... [10:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:40]tlvbuf is 009E6330 [10:24:40]SAM_PROTO_ClearQueue [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 09 00 00 [10:24:40]Write to MH i2c: E2 08 00 2A 06 80 09 00 00 00 00 00 00 A2 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [10:24:40]RAPDU: 90 00 [10:24:40]wFMCommunicate OK [10:24:40]SAM_PROTO_ClearQueue done [10:24:40]KKMCreateOFDPacket [10:24:40]OFDProtocolAddRootSTLVToBuf [10:24:40]FM_MakeSignedData [10:24:40]FM_MakeSignedData [10:24:40]SAM_PROTO_SignData [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 0D 01 02 [10:24:40]Write to MH i2c: E2 08 00 2B 06 80 0D 01 02 00 00 00 00 AA [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [10:24:40]RAPDU: 90 00 [10:24:40]wFMCommunicate OK [10:24:40]wFMCommunicate request_size=255 [10:24:40]MH_SAM_APDU [10:24: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 68 04 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 81 02 00 35 04 06 00 74 [10:24:40]Write to MH i2c: E2 02 01 2C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 68 04 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 81 02 00 35 04 06 00 74 00 00 44 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [10:24:41]RAPDU: 90 00 [10:24:41]wFMCommunicate OK [10:24:41]wFMCommunicate request_size=10 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 0D 02 02 05 F2 F5 90 15 55 [10:24:41]Write to MH i2c: E2 0D 00 2D 06 80 0D 02 02 05 00 F2 F5 90 15 55 00 00 98 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [10:24:41]RAPDU: 90 00 [10:24:41]wFMCommunicate OK [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 0D 03 02 [10:24:41]Write to MH i2c: E2 08 00 2E 06 80 0D 03 02 00 00 00 00 AF [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 0B 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 0B 00 2E 06 00 96 66 6D 54 47 43 D4 C8 90 00 93 [10:24:41]RAPDU: 96 66 6D 54 47 43 D4 C8 90 00 [10:24:41]wFMCommunicate OK [10:24:41]SAM_PROTO_SignData done [10:24:41]FM_MakeSignedData done [10:24:41]CreateOFDProtocolMessage [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 11 00 00 [10:24:41]Write to MH i2c: E2 08 00 2F 06 80 11 00 00 00 00 00 00 AF [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 17 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 17 00 2F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 05 [10:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:24:41]wFMCommunicate OK [10:24:41]CreateOFDProtocolMessage done [10:24:41]OFDSenderStorePacket 164139 [10:24:41]StoreOFDPacket docnum=164139 [10:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A8 A1 07 01 76 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 68 04 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 81 02 00 35 04 06 00 74 F2 F5 90 15 55 96 66 6D 54 47 43 D4 C8 [10:24:41]CheckFolder [10:24:41]dirname=/storage/ofd_packets [10:24:41]CheckFolder done [10:24:41]ProducePacketName [10:24:41]name=ofd_packets/00164139 [10:24:41]NVStorageSaveData ofd_packets/00164139 [10:24:41]File name is /storage/ofd_packets/00164139 [10:24:41]Write 301 bytes [10:24:41]NVStorageSaveData done [10:24:41]OFDSenderStorePacket done [10:24:41]KKMCreateOFDPacket done [10:24:41]NVStorageSaveData kkm_last_timestamp [10:24:41]File name is /storage/kkm_last_timestamp [10:24:41]Write 4 bytes [10:24:41]NVStorageSaveData done [10:24:41]ExternCall_PrintAddStr [10:24:41]wPrintStart [10:24:41]Write to MH i2c: 01 00 00 30 06 36 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: 01 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: 01 07 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 FF 0F 4B [10:24:41]RasterBufferAndPrint [10:24:41]line Счет N : (1)458222 [10:24:41]line ИНН: 02508201610067 [10:24:41]line Контрольно-Кассовый Чек [10:24:41]line ПРОДАЖА [10:24:41]line ТРК (МРК, ГНК) : 12 [10:24:41]line Товар: 2710124130 [10:24:41]line Аи-92-К-5 [10:24:41]line 15.200 * 65.80 [10:24:41]line = 1000.16 [10:24:41]line НДС 12% НСП 1% [10:24:41]line > о реализуемом товаре [10:24:41]line ОКРУГЛЕНИЕ: -0.16 [10:24:41]line ИТОГО: 1000.00 [10:24:41]line Внесено: 1000.00 [10:24:41]line СДАЧА: 0.00 [10:24:41]line НСП 1% : 8.85 [10:24:41]line НДС 12% : 106.21 [10:24:41]line Наличными: 1000.00 [10:24:41]line Безнал.: 0.00 [10:24:41]line Место: АЗС № 72 "Партнер Нефть" [10:24:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:24:41]line СНО: Общий режим [10:24:41]line Чек 60 12.07.2024 10:24 [10:24:41]line Смена: 445 ФФД: 1.0 [10:24:41]line ЗНМ: 0300000160 [10:24:41]line РНМ: 0000000000090829 [10:24:41]line Версия ККМ: 001 [10:24:41]line ФМ: 0000000000874718 [10:24:41]line ФД: 164139 [10:24:41]line ФПД: 128586850768213 [10:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T102440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164139&fm=128586850768213&tin=02508201610067®Number=0000000000090829&sum=100000 [10:24:41]OFD Sender: Processing packet 164139 [packets to send 104, broken 103] [10:24:41]ProducePacketName [10:24:41]name=ofd_packets/00164139 [10:24:41]OFD Sender: To server: pG, [10:24:41]CommunicateWithHost lk.salyk.kg:30040 [10:24:41]ConnectInit lk.salyk.kg [10:24:41]written 0, free lines is 4095 [10:24:41]Connected sock=10 [10:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A8 A1 07 01 76 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 68 04 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 81 02 00 35 04 06 00 74 F2 F5 90 15 55 96 66 6D 54 47 43 D4 C8 [10:24:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C8 E0 47 00 FE 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 81 02 00 F4 03 04 00 FD AA 90 66 B6 04 01 00 00 B6 17 3C 4B DD D9 68 16 [10:24:42]CommunicateWithHost err = 0 [10:24:42]CheckOFDResponse [10:24:42]1017 (14) - 77093643461234 [10:24:42]1041 (16) - 0000000000874718 [10:24:42]1040 (4) - 164139 [10:24:42]1012 (4) - 12.07.2024 04:03 [10:24:42]1206 (1) - 0 [10:24:42]OFD Sender: Remove packet 164139 [10:24:42]ProducePacketName [10:24:42]name=ofd_packets/00164139 [10:24:42]NVStorageDeleteData [10:24:42]Write to MH i2c: 01 00 00 5A 06 60 [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: 01 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: 01 07 00 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 0B 0D 7F [10:24:42]RasterBufferAndPrint [10:24:42]line [10:24:42]line [10:24:42]line [10:24:42]line [10:24:42]line [10:24:42]written 0, free lines is 3345 [10:24:42]MH_Cut [10:24:42]Write to MH i2c: D1 01 00 61 06 01 39 [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: D1 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: D1 01 00 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: D1 01 00 61 06 00 38 [10:24:42]Write to MH i2c: 01 00 00 62 06 68 [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]OFD Sender: No OFD packet to send [10:24:42]*** Cut start [10:24:42]*** Partial cut [10:24:42]*** CUTSNS_PIN = 1 [10:24:42]*** CUTSNS_PIN = 0 [10:24:43]*** Brake cut motor [10:24:43]Read from MH i2c: 01 [10:24:43]MH_I2C_Read... [10:24:43]*** Stop cut motor [10:24:43]*** Cut end [10:24:43]Read from MH i2c: 01 07 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 FF 0F 7D [10:24:43]process_action close_receipt done [10:24:43]requested_data is exist [10:24:43]produce_requested_data [10:24:43]requested_item fm.sn is exist - process it [10:24:43]wFMCommunicate request_size=4 [10:24:43]MH_SAM_APDU [10:24:43]CAPDU: 80 11 00 00 [10:24:43]Write to MH i2c: E2 08 00 63 06 80 11 00 00 00 00 00 00 E3 [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:43]Read from MH i2c: E2 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 17 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 17 00 63 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 39 [10:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:24:43]wFMCommunicate OK [10:24:43]requested_item fd.num is exist - process it [10:24:43]SAM_PROTO_GetFieldsCounters [10:24:43]wFMCommunicate request_size=4 [10:24:43]MH_SAM_APDU [10:24:43]CAPDU: 80 13 00 00 [10:24:43]Write to MH i2c: E2 08 00 64 06 80 13 00 00 00 00 00 00 E6 [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:43]Read from MH i2c: E2 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 62 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 62 00 64 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [10:24:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:43]wFMCommunicate OK [10:24:43]SAM_PROTO_GetFieldsCounters done [10:24:43]requested_item shift.num is exist - process it [10:24:43]requested_item shift.opened is exist - process it [10:24:43]req_shift_opened [10:24:43]FM_GetShiftState [10:24:43]SAM_PROTO_GetShiftState [10:24:43]wFMCommunicate request_size=4 [10:24:43]MH_SAM_APDU [10:24:43]CAPDU: 80 13 01 00 [10:24:43]Write to MH i2c: E2 08 00 65 06 80 13 01 00 00 00 00 00 E8 [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:43]Read from MH i2c: E2 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 0E 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 0E 00 65 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 32 [10:24:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:24:43]wFMCommunicate OK [10:24:43]SAM_PROTO_GetShiftState done [10:24:43]FM_GetShiftState done [10:24:43]req_shift_opened done [10:24:43]requested_item shift.open_date is exist - process it [10:24:43]req_shift_open_date [10:24:43]req_shift_open_date done [10:24:43]produce_requested_data done [10:24:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164139,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:24:43]process_action_free close_receipt [10:24:43]json_value_free [10:24:43]json_value_free done [10:24:43]process_json_proto returns [10:24:43]Send response to host [10:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164139,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:24:43]free response buf [10:24:43]execute_script done [10:24:43]execute_script returns [10:24:43]free content buf [10:24:43]Sock 7.Close socket [10:24:43]Sock 7.Thread stoped [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:19]accept exits with 9 [10:27:19]New connection [10:27:19]New thread 3066707300 created [10:27:19]Thread 3066850660 joined [10:27:19]Waiting for new connection... [10:27:19] Sock 9.Parse request [10:27:19]Sock 9.Check first char [10:27:19]Sock 9.First char is OK [10:27:19]request: POST /json_proto HTTP/1.0 [10:27:19]Method: POST [10:27:19]URL: /json_proto [10:27:19]Method is POST - this is cgi request [10:27:19]url: /json_proto [10:27:19]query_string will be loaded in cgi processing [10:27:19]execute_cgi json_proto POST (null) [10:27:19]execute_cgi path=json_proto method=POST [10:27:19]POST find Content-Length [10:27:19]Host: 172.17.56.4:8080 [10:27:19]Content-Length: 674 [10:27:19]Content-Type: application/json [10:27:19] [10:27:19]POST finish read [10:27:19]Found Content-Length = 674 [10:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458223", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:19]execute_script... [10:27:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458223", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:19]POST & json_proto [10:27:19]process_json_proto [10:27:19]json parsed OK: [10:27:19]protocol is kg_v1.0 [10:27:19]action value=close_receipt [10:27:19]process_action close_receipt [10:27:19]cmd_close_receipt [10:27:19]MH_GetDate [10:27:19]Write to MH i2c: F0 00 00 66 06 5B [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: F0 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: F0 09 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: F0 09 00 66 06 00 08 05 91 66 C9 DC B2 64 23 [10:27:19]GetLastDocTimeStamp 1720779880 [10:27:19]current date 1720780040 [10:27:19]FM_GetShiftState [10:27:19]SAM_PROTO_GetShiftState [10:27:19]wFMCommunicate request_size=4 [10:27:19]MH_SAM_APDU [10:27:19]CAPDU: 80 13 01 00 [10:27:19]Write to MH i2c: E2 08 00 67 06 80 13 01 00 00 00 00 00 EA [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:19]Read from MH i2c: E2 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 0E 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 0E 00 67 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 34 [10:27:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:27:19]wFMCommunicate OK [10:27:19]SAM_PROTO_GetShiftState done [10:27:19]FM_GetShiftState done [10:27:19]opened in 1720744654 [10:27:19]opened+sec_in_day 1720831054 [10:27:19]quantity*price = 50042 [10:27:19]sum+1 = 50043 [10:27:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 61 12.07.2024 10:27 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164140 ФПД: 106348308595539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T102720&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164140&fm=106348308595539&tin=02508201610067®Number=0000000000090829&sum=50000 [10:27:20]StoreToDocumentArchive [10:27:20]shift 445 fd 164140 [10:27:20]save to /storage/0445/doc_00164140 [10:27:20]save last doc name /storage/0445/doc_00164140 to /storage/kkm_last_doc_name [10:27:20]save OK [10:27:20]Clear old archive folders... [10:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:20]tlvbuf is 009E2870 [10:27:20]SAM_PROTO_ClearQueue [10:27:20]wFMCommunicate request_size=4 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 09 00 00 [10:27:20]Write to MH i2c: E2 08 00 74 06 80 09 00 00 00 00 00 00 EC [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [10:27:20]RAPDU: 90 00 [10:27:20]wFMCommunicate OK [10:27:20]SAM_PROTO_ClearQueue done [10:27:20]KKMCreateOFDPacket [10:27:20]OFDProtocolAddRootSTLVToBuf [10:27:20]FM_MakeSignedData [10:27:20]FM_MakeSignedData [10:27:20]SAM_PROTO_SignData [10:27:20]wFMCommunicate request_size=4 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 0D 01 02 [10:27:20]Write to MH i2c: E2 08 00 75 06 80 0D 01 02 00 00 00 00 F4 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [10:27:20]RAPDU: 90 00 [10:27:20]wFMCommunicate OK [10:27:20]wFMCommunicate request_size=255 [10:27:20]MH_SAM_APDU [10:27: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 08 05 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 81 02 00 35 04 06 00 60 B9 25 28 [10:27:20]Write to MH i2c: E2 02 01 76 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 08 05 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 81 02 00 35 04 06 00 60 B9 25 28 00 00 DD [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [10:27:21]RAPDU: 90 00 [10:27:21]wFMCommunicate OK [10:27:21]wFMCommunicate request_size=7 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 0D 02 02 02 03 53 [10:27:21]Write to MH i2c: E2 0A 00 77 06 80 0D 02 02 02 00 03 53 00 00 51 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 77 06 00 90 00 F1 [10:27:21]RAPDU: 90 00 [10:27:21]wFMCommunicate OK [10:27:21]wFMCommunicate request_size=4 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 0D 03 02 [10:27:21]Write to MH i2c: E2 08 00 78 06 80 0D 03 02 00 00 00 00 F9 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 0B 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 0B 00 78 06 00 92 8B B7 AD B9 BC E1 05 90 00 D6 [10:27:21]RAPDU: 92 8B B7 AD B9 BC E1 05 90 00 [10:27:21]wFMCommunicate OK [10:27:21]SAM_PROTO_SignData done [10:27:21]FM_MakeSignedData done [10:27:21]CreateOFDProtocolMessage [10:27:21]wFMCommunicate request_size=4 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 11 00 00 [10:27:21]Write to MH i2c: E2 08 00 79 06 80 11 00 00 00 00 00 00 F9 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 17 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 17 00 79 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4F [10:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:27:21]wFMCommunicate OK [10:27:21]CreateOFDProtocolMessage done [10:27:21]OFDSenderStorePacket 164140 [10:27:21]StoreOFDPacket docnum=164140 [10:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 5A 04 01 D7 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 08 05 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 81 02 00 35 04 06 00 60 B9 25 28 03 53 92 8B B7 AD B9 BC E1 05 [10:27:21]CheckFolder [10:27:21]dirname=/storage/ofd_packets [10:27:21]CheckFolder done [10:27:21]ProducePacketName [10:27:21]name=ofd_packets/00164140 [10:27:21]NVStorageSaveData ofd_packets/00164140 [10:27:21]File name is /storage/ofd_packets/00164140 [10:27:21]Write 298 bytes [10:27:21]NVStorageSaveData done [10:27:21]OFDSenderStorePacket done [10:27:21]KKMCreateOFDPacket done [10:27:21]NVStorageSaveData kkm_last_timestamp [10:27:21]File name is /storage/kkm_last_timestamp [10:27:21]Write 4 bytes [10:27:21]NVStorageSaveData done [10:27:21]ExternCall_PrintAddStr [10:27:21]wPrintStart [10:27:21]Write to MH i2c: 01 00 00 7A 06 80 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 07 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 FF 0F 95 [10:27:21]RasterBufferAndPrint [10:27:21]line Счет N : (1)458223 [10:27:21]line ИНН: 02508201610067 [10:27:21]line Контрольно-Кассовый Чек [10:27:21]line ПРОДАЖА [10:27:21]line ТРК (МРК, ГНК) : 21 [10:27:21]line Товар: 2710194210 [10:27:21]line ДТ-К-5 [10:27:21]line 6.960 * 71.90 [10:27:21]line = 500.42 [10:27:21]line НДС 12% НСП 1% [10:27:21]line > о реализуемом товаре [10:27:21]line ОКРУГЛЕНИЕ: -0.42 [10:27:21]line ИТОГО: 500.00 [10:27:21]line Внесено: 500.00 [10:27:21]line СДАЧА: 0.00 [10:27:21]line НСП 1% : 4.43 [10:27:21]line НДС 12% : 53.14 [10:27:21]line Наличными: 500.00 [10:27:21]line Безнал.: 0.00 [10:27:21]line Место: АЗС № 72 "Партнер Нефть" [10:27:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:27:21]line СНО: Общий режим [10:27:21]line Чек 61 12.07.2024 10:27 [10:27:21]line Смена: 445 ФФД: 1.0 [10:27:21]line ЗНМ: 0300000160 [10:27:21]line РНМ: 0000000000090829 [10:27:21]line Версия ККМ: 001 [10:27:21]line ФМ: 0000000000874718 [10:27:21]line ФД: 164140 [10:27:21]line ФПД: 106348308595539 [10:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T102720&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164140&fm=106348308595539&tin=02508201610067®Number=0000000000090829&sum=50000 [10:27:21]OFD Sender: Processing packet 164140 [packets to send 104, broken 103] [10:27:21]ProducePacketName [10:27:21]name=ofd_packets/00164140 [10:27:21]OFD Sender: To server: pG, [10:27:21]CommunicateWithHost lk.salyk.kg:30040 [10:27:21]ConnectInit lk.salyk.kg [10:27:21]written 0, free lines is 4095 [10:27:21]Connected sock=10 [10:27:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 5A 04 01 D7 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 08 05 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 81 02 00 35 04 06 00 60 B9 25 28 03 53 92 8B B7 AD B9 BC E1 05 [10:27:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 6C 47 00 6A E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 81 02 00 F4 03 04 00 9C AB 90 66 B6 04 01 00 00 7F 58 17 F3 DE D8 EA F3 [10:27:21]CommunicateWithHost err = 0 [10:27:21]CheckOFDResponse [10:27:21]1017 (14) - 77093643461234 [10:27:21]1041 (16) - 0000000000874718 [10:27:21]1040 (4) - 164140 [10:27:21]1012 (4) - 12.07.2024 04:05 [10:27:21]1206 (1) - 0 [10:27:21]OFD Sender: Remove packet 164140 [10:27:21]ProducePacketName [10:27:21]name=ofd_packets/00164140 [10:27:21]NVStorageDeleteData [10:27:21]Write to MH i2c: 01 00 00 A4 06 AA [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 07 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 08 0D C6 [10:27:21]RasterBufferAndPrint [10:27:21]line [10:27:21]line [10:27:21]line [10:27:21]line [10:27:21]line [10:27:21]written 0, free lines is 3343 [10:27:22]MH_Cut [10:27:22]Write to MH i2c: D1 01 00 AB 06 01 83 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: D1 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: D1 01 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: D1 01 00 AB 06 00 82 [10:27:22]Write to MH i2c: 01 00 00 AC 06 B2 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]OFD Sender: No OFD packet to send [10:27:22]*** Cut start [10:27:22]*** Partial cut [10:27:22]*** CUTSNS_PIN = 1 [10:27:22]*** CUTSNS_PIN = 0 [10:27:22]*** Brake cut motor [10:27:23]Read from MH i2c: 01 [10:27:23]MH_I2C_Read... [10:27:23]*** Stop cut motor [10:27:23]*** Cut end [10:27:23]Read from MH i2c: 01 07 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [10:27:23]process_action close_receipt done [10:27:23]requested_data is exist [10:27:23]produce_requested_data [10:27:23]requested_item fm.sn is exist - process it [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 11 00 00 [10:27:23]Write to MH i2c: E2 08 00 AD 06 80 11 00 00 00 00 00 00 2D [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 AD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 83 [10:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:27:23]wFMCommunicate OK [10:27:23]requested_item fd.num is exist - process it [10:27:23]SAM_PROTO_GetFieldsCounters [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 13 00 00 [10:27:23]Write to MH i2c: E2 08 00 AE 06 80 13 00 00 00 00 00 00 30 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 62 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 62 00 AE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [10:27:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_GetFieldsCounters done [10:27:23]requested_item shift.num is exist - process it [10:27:23]requested_item shift.opened is exist - process it [10:27:23]req_shift_opened [10:27:23]FM_GetShiftState [10:27:23]SAM_PROTO_GetShiftState [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 13 01 00 [10:27:23]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0E 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7C [10:27:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_GetShiftState done [10:27:23]FM_GetShiftState done [10:27:23]req_shift_opened done [10:27:23]requested_item shift.open_date is exist - process it [10:27:23]req_shift_open_date [10:27:23]req_shift_open_date done [10:27:23]produce_requested_data done [10:27:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164140,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:27:23]process_action_free close_receipt [10:27:23]json_value_free [10:27:23]json_value_free done [10:27:23]process_json_proto returns [10:27:23]Send response to host [10:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164140,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:27:23]free response buf [10:27:23]execute_script done [10:27:23]execute_script returns [10:27:23]free content buf [10:27:23]Sock 9.Close socket [10:27:23]Sock 9.Thread stoped [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:26]accept exits with 7 [10:32:26]New connection [10:32:26]New thread 3066850660 created [10:32:26]Thread 3066707300 joined [10:32:26]Waiting for new connection... [10:32:26] Sock 7.Parse request [10:32:26]Sock 7.Check first char [10:32:26]Sock 7.First char is OK [10:32:26]request: POST /json_proto HTTP/1.0 [10:32:26]Method: POST [10:32:26]URL: /json_proto [10:32:26]Method is POST - this is cgi request [10:32:26]url: /json_proto [10:32:26]query_string will be loaded in cgi processing [10:32:26]execute_cgi json_proto POST (null) [10:32:26]execute_cgi path=json_proto method=POST [10:32:26]POST find Content-Length [10:32:26]Host: 172.17.56.4:8080 [10:32:26]Content-Length: 677 [10:32:26]Content-Type: application/json [10:32:26] [10:32:26]POST finish read [10:32:26]Found Content-Length = 677 [10:32:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:26]execute_script... [10:32: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)458224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:26]POST & json_proto [10:32:26]process_json_proto [10:32:26]json parsed OK: [10:32:26]protocol is kg_v1.0 [10:32:26]action value=close_receipt [10:32:26]process_action close_receipt [10:32:26]cmd_close_receipt [10:32:26]MH_GetDate [10:32:26]Write to MH i2c: F0 00 00 B0 06 A5 [10:32:26]Write i2c OK [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: F0 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: F0 09 00 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: F0 09 00 B0 06 00 3B 06 91 66 C9 DC B2 64 A1 [10:32:26]GetLastDocTimeStamp 1720780040 [10:32:26]current date 1720780347 [10:32:26]FM_GetShiftState [10:32:26]SAM_PROTO_GetShiftState [10:32:26]wFMCommunicate request_size=4 [10:32:26]MH_SAM_APDU [10:32:26]CAPDU: 80 13 01 00 [10:32:26]Write to MH i2c: E2 08 00 B1 06 80 13 01 00 00 00 00 00 34 [10:32:26]Write i2c OK [10:32:26]MH_I2C_Read... [10:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:26]Read from MH i2c: E2 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: E2 0E 00 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: E2 0E 00 B1 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7E [10:32:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:32:26]wFMCommunicate OK [10:32:26]SAM_PROTO_GetShiftState done [10:32:26]FM_GetShiftState done [10:32:26]opened in 1720744654 [10:32:26]opened+sec_in_day 1720831054 [10:32:26]quantity*price = 14015 [10:32:26]sum+1 = 14016 [10:32:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.88 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 62 12.07.2024 10:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164141 ФПД: 102439918745793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103227&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164141&fm=102439918745793&tin=02508201610067®Number=0000000000090829&sum=14000 [10:32:27]StoreToDocumentArchive [10:32:27]shift 445 fd 164141 [10:32:27]save to /storage/0445/doc_00164141 [10:32:27]save last doc name /storage/0445/doc_00164141 to /storage/kkm_last_doc_name [10:32:27]save OK [10:32:27]Clear old archive folders... [10:32:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:27]tlvbuf is 009E5120 [10:32:27]SAM_PROTO_ClearQueue [10:32:27]wFMCommunicate request_size=4 [10:32:27]MH_SAM_APDU [10:32:27]CAPDU: 80 09 00 00 [10:32:27]Write to MH i2c: E2 08 00 BE 06 80 09 00 00 00 00 00 00 36 [10:32:27]Write i2c OK [10:32:27]MH_I2C_Read... [10:32:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:27]Read from MH i2c: E2 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 03 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [10:32:27]RAPDU: 90 00 [10:32:27]wFMCommunicate OK [10:32:27]SAM_PROTO_ClearQueue done [10:32:27]KKMCreateOFDPacket [10:32:27]OFDProtocolAddRootSTLVToBuf [10:32:27]FM_MakeSignedData [10:32:27]FM_MakeSignedData [10:32:27]SAM_PROTO_SignData [10:32:27]wFMCommunicate request_size=4 [10:32:27]MH_SAM_APDU [10:32:27]CAPDU: 80 0D 01 02 [10:32:27]Write to MH i2c: E2 08 00 BF 06 80 0D 01 02 00 00 00 00 3E [10:32:27]Write i2c OK [10:32:27]MH_I2C_Read... [10:32:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:27]Read from MH i2c: E2 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 03 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [10:32:27]RAPDU: 90 00 [10:32:27]wFMCommunicate OK [10:32:27]wFMCommunicate request_size=255 [10:32:27]MH_SAM_APDU [10:32: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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3B 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 81 02 00 35 04 06 00 5D [10:32:27]Write to MH i2c: E2 02 01 C0 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3B 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 81 02 00 35 04 06 00 5D 00 00 C8 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 C0 06 00 90 00 3A [10:32:28]RAPDU: 90 00 [10:32:28]wFMCommunicate OK [10:32:28]wFMCommunicate request_size=10 [10:32:28]MH_SAM_APDU [10:32:28]CAPDU: 80 0D 02 02 05 2B 26 F7 B8 C1 [10:32:28]Write to MH i2c: E2 0D 00 C1 06 80 0D 02 02 05 00 2B 26 F7 B8 C1 00 00 0C [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 C1 06 00 90 00 3B [10:32:28]RAPDU: 90 00 [10:32:28]wFMCommunicate OK [10:32:28]wFMCommunicate request_size=4 [10:32:28]MH_SAM_APDU [10:32:28]CAPDU: 80 0D 03 02 [10:32:28]Write to MH i2c: E2 08 00 C2 06 80 0D 03 02 00 00 00 00 43 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 0B 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 0B 00 C2 06 00 AF 86 C7 5C CA 46 33 94 90 00 73 [10:32:28]RAPDU: AF 86 C7 5C CA 46 33 94 90 00 [10:32:28]wFMCommunicate OK [10:32:28]SAM_PROTO_SignData done [10:32:28]FM_MakeSignedData done [10:32:28]CreateOFDProtocolMessage [10:32:28]wFMCommunicate request_size=4 [10:32:28]MH_SAM_APDU [10:32:28]CAPDU: 80 11 00 00 [10:32:28]Write to MH i2c: E2 08 00 C3 06 80 11 00 00 00 00 00 00 43 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 17 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 17 00 C3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [10:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:32:28]wFMCommunicate OK [10:32:28]CreateOFDProtocolMessage done [10:32:28]OFDSenderStorePacket 164141 [10:32:28]StoreOFDPacket docnum=164141 [10:32:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9A 3C 07 01 AA 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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3B 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 81 02 00 35 04 06 00 5D 2B 26 F7 B8 C1 AF 86 C7 5C CA 46 33 94 [10:32:28]CheckFolder [10:32:28]dirname=/storage/ofd_packets [10:32:28]CheckFolder done [10:32:28]ProducePacketName [10:32:28]name=ofd_packets/00164141 [10:32:28]NVStorageSaveData ofd_packets/00164141 [10:32:28]File name is /storage/ofd_packets/00164141 [10:32:28]Write 301 bytes [10:32:28]NVStorageSaveData done [10:32:28]OFDSenderStorePacket done [10:32:28]KKMCreateOFDPacket done [10:32:28]NVStorageSaveData kkm_last_timestamp [10:32:28]File name is /storage/kkm_last_timestamp [10:32:28]Write 4 bytes [10:32:28]NVStorageSaveData done [10:32:28]ExternCall_PrintAddStr [10:32:28]wPrintStart [10:32:28]Write to MH i2c: 01 00 00 C4 06 CA [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: 01 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: 01 07 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: 01 07 00 C4 06 00 00 00 00 00 FF 0F DF [10:32:28]RasterBufferAndPrint [10:32:28]line Счет N : (1)458224 [10:32:28]line ИНН: 02508201610067 [10:32:28]line Контрольно-Кассовый Чек [10:32:28]line ПРОДАЖА [10:32:28]line ТРК (МРК, ГНК) : 12 [10:32:28]line Товар: 2710124130 [10:32:28]line Аи-92-К-5 [10:32:28]line 2.130 * 65.80 [10:32:28]line = 140.15 [10:32:28]line НДС 12% НСП 1% [10:32:28]line > о реализуемом товаре [10:32:28]line ОКРУГЛЕНИЕ: -0.15 [10:32:28]line ИТОГО: 140.00 [10:32:28]line Внесено: 140.00 [10:32:28]line СДАЧА: 0.00 [10:32:28]line НСП 1% : 1.24 [10:32:28]line НДС 12% : 14.88 [10:32:28]line Наличными: 140.00 [10:32:28]line Безнал.: 0.00 [10:32:28]line Место: АЗС № 72 "Партнер Нефть" [10:32:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:32:28]line СНО: Общий режим [10:32:28]line Чек 62 12.07.2024 10:32 [10:32:28]line Смена: 445 ФФД: 1.0 [10:32:28]line ЗНМ: 0300000160 [10:32:28]line РНМ: 0000000000090829 [10:32:28]line Версия ККМ: 001 [10:32:28]line ФМ: 0000000000874718 [10:32:28]line ФД: 164141 [10:32:28]line ФПД: 102439918745793 [10:32:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103227&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164141&fm=102439918745793&tin=02508201610067®Number=0000000000090829&sum=14000 [10:32:28]written 0, free lines is 4095 [10:32:28]OFD Sender: Processing packet 164141 [packets to send 104, broken 103] [10:32:28]ProducePacketName [10:32:28]name=ofd_packets/00164141 [10:32:28]OFD Sender: To server: pG, [10:32:28]CommunicateWithHost lk.salyk.kg:30040 [10:32:28]ConnectInit lk.salyk.kg [10:32:28]Connected sock=10 [10:32:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9A 3C 07 01 AA 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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3B 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 81 02 00 35 04 06 00 5D 2B 26 F7 B8 C1 AF 86 C7 5C CA 46 33 94 [10:32:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E6 98 47 00 A9 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 34 37 31 38 10 04 04 00 2D 81 02 00 F4 03 04 00 D0 AC 90 66 B6 04 01 00 00 D7 AA 65 9D FE 29 3E CB [10:32:29]CommunicateWithHost err = 0 [10:32:29]CheckOFDResponse [10:32:29]1017 (14) - 77093643461234 [10:32:29]1041 (16) - 0000000000874718 [10:32:29]1040 (4) - 164141 [10:32:29]1012 (4) - 12.07.2024 04:10 [10:32:29]1206 (1) - 0 [10:32:29]OFD Sender: Remove packet 164141 [10:32:29]ProducePacketName [10:32:29]name=ofd_packets/00164141 [10:32:29]NVStorageDeleteData [10:32:29]Write to MH i2c: 01 00 00 EE 06 F4 [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: 01 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: 01 07 00 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: 01 07 00 EE 06 00 00 00 00 00 F2 0C F9 [10:32:29]RasterBufferAndPrint [10:32:29]line [10:32:29]line [10:32:29]line [10:32:29]line [10:32:29]line [10:32:29]written 0, free lines is 3322 [10:32:29]MH_Cut [10:32:29]Write to MH i2c: D1 01 00 F5 06 01 CD [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: D1 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: D1 01 00 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: D1 01 00 F5 06 00 CC [10:32:29]Write to MH i2c: 01 00 00 F6 06 FC [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:29]OFD Sender: No OFD packet to send [10:32:29]*** Cut start [10:32:29]*** Partial cut [10:32:29]*** CUTSNS_PIN = 1 [10:32:29]*** CUTSNS_PIN = 0 [10:32:30]*** Brake cut motor [10:32:30]Read from MH i2c: 01 [10:32:30]MH_I2C_Read... [10:32:30]*** Stop cut motor [10:32:30]*** Cut end [10:32:30]Read from MH i2c: 01 07 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 FF 0F 11 [10:32:30]process_action close_receipt done [10:32:30]requested_data is exist [10:32:30]produce_requested_data [10:32:30]requested_item fm.sn is exist - process it [10:32:30]wFMCommunicate request_size=4 [10:32:30]MH_SAM_APDU [10:32:30]CAPDU: 80 11 00 00 [10:32:30]Write to MH i2c: E2 08 00 F7 06 80 11 00 00 00 00 00 00 77 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:30]Read from MH i2c: E2 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 17 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 17 00 F7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [10:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:32:30]wFMCommunicate OK [10:32:30]requested_item fd.num is exist - process it [10:32:30]SAM_PROTO_GetFieldsCounters [10:32:30]wFMCommunicate request_size=4 [10:32:30]MH_SAM_APDU [10:32:30]CAPDU: 80 13 00 00 [10:32:30]Write to MH i2c: E2 08 00 F8 06 80 13 00 00 00 00 00 00 7A [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:30]Read from MH i2c: E2 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 62 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 62 00 F8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [10:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:30]wFMCommunicate OK [10:32:30]SAM_PROTO_GetFieldsCounters done [10:32:30]requested_item shift.num is exist - process it [10:32:30]requested_item shift.opened is exist - process it [10:32:30]req_shift_opened [10:32:30]FM_GetShiftState [10:32:30]SAM_PROTO_GetShiftState [10:32:30]wFMCommunicate request_size=4 [10:32:30]MH_SAM_APDU [10:32:30]CAPDU: 80 13 01 00 [10:32:30]Write to MH i2c: E2 08 00 F9 06 80 13 01 00 00 00 00 00 7C [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:30]Read from MH i2c: E2 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 0E 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 0E 00 F9 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C6 [10:32:30]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:32:30]wFMCommunicate OK [10:32:30]SAM_PROTO_GetShiftState done [10:32:30]FM_GetShiftState done [10:32:30]req_shift_opened done [10:32:30]requested_item shift.open_date is exist - process it [10:32:30]req_shift_open_date [10:32:30]req_shift_open_date done [10:32:30]produce_requested_data done [10:32:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164141,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:32:30]process_action_free close_receipt [10:32:30]json_value_free [10:32:30]json_value_free done [10:32:30]process_json_proto returns [10:32:30]Send response to host [10:32:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164141,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:32:30]free response buf [10:32:30]execute_script done [10:32:30]execute_script returns [10:32:30]free content buf [10:32:30]Sock 7.Close socket [10:32:30]Sock 7.Thread stoped [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:07]accept exits with 9 [10:33:07]New connection [10:33:07]New thread 3066707300 created [10:33:07]Thread 3066850660 joined [10:33:07]Waiting for new connection... [10:33:07] Sock 9.Parse request [10:33:07]Sock 9.Check first char [10:33:07]Sock 9.First char is OK [10:33:07]request: POST /json_proto HTTP/1.0 [10:33:07]Method: POST [10:33:07]URL: /json_proto [10:33:07]Method is POST - this is cgi request [10:33:07]url: /json_proto [10:33:07]query_string will be loaded in cgi processing [10:33:07]execute_cgi json_proto POST (null) [10:33:07]execute_cgi path=json_proto method=POST [10:33:07]POST find Content-Length [10:33:07]Host: 172.17.56.4:8080 [10:33:07]Content-Length: 679 [10:33:07]Content-Type: application/json [10:33:07] [10:33:07]POST finish read [10:33:07]Found Content-Length = 679 [10:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458225", "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" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:07]execute_script... [10:33:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458225", "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" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:07]POST & json_proto [10:33:07]process_json_proto [10:33:07]json parsed OK: [10:33:07]protocol is kg_v1.0 [10:33:07]action value=close_receipt [10:33:07]process_action close_receipt [10:33:07]cmd_close_receipt [10:33:07]MH_GetDate [10:33:07]Write to MH i2c: F0 00 00 FA 06 EF [10:33:07]Write i2c OK [10:33:07]MH_I2C_Read... [10:33:07]Read from MH i2c: F0 [10:33:07]MH_I2C_Read... [10:33:07]Read from MH i2c: F0 09 00 [10:33:07]MH_I2C_Read... [10:33:07]Read from MH i2c: F0 09 00 FA 06 00 63 06 91 66 C9 DC B2 64 13 [10:33:07]GetLastDocTimeStamp 1720780347 [10:33:07]current date 1720780387 [10:33:07]FM_GetShiftState [10:33:07]SAM_PROTO_GetShiftState [10:33:07]wFMCommunicate request_size=4 [10:33:07]MH_SAM_APDU [10:33:07]CAPDU: 80 13 01 00 [10:33:07]Write to MH i2c: E2 08 00 FB 06 80 13 01 00 00 00 00 00 7E [10:33:07]Write i2c OK [10:33:07]MH_I2C_Read... [10:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:07]Read from MH i2c: E2 [10:33:07]MH_I2C_Read... [10:33:07]Read from MH i2c: E2 0E 00 [10:33:07]MH_I2C_Read... [10:33:07]Read from MH i2c: E2 0E 00 FB 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C8 [10:33:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:33:07]wFMCommunicate OK [10:33:07]SAM_PROTO_GetShiftState done [10:33:07]FM_GetShiftState done [10:33:07]opened in 1720744654 [10:33:07]opened+sec_in_day 1720831054 [10:33:07]quantity*price = 100012 [10:33:07]sum+1 = 100014 [10:33:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 63 12.07.2024 10:33 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164142 ФПД: 50218530852686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103307&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164142&fm=50218530852686&tin=02508201610067®Number=0000000000090829&sum=100000 [10:33:08]StoreToDocumentArchive [10:33:08]shift 445 fd 164142 [10:33:08]save to /storage/0445/doc_00164142 [10:33:08]save last doc name /storage/0445/doc_00164142 to /storage/kkm_last_doc_name [10:33:08]save OK [10:33:08]Clear old archive folders... [10:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:33:08]tlvbuf is 009F2820 [10:33:08]SAM_PROTO_ClearQueue [10:33:08]wFMCommunicate request_size=4 [10:33:08]MH_SAM_APDU [10:33:08]CAPDU: 80 09 00 00 [10:33:08]Write to MH i2c: E2 08 00 08 07 80 09 00 00 00 00 00 00 81 [10:33:08]Write i2c OK [10:33:08]MH_I2C_Read... [10:33:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:08]Read from MH i2c: E2 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 03 00 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [10:33:08]RAPDU: 90 00 [10:33:08]wFMCommunicate OK [10:33:08]SAM_PROTO_ClearQueue done [10:33:08]KKMCreateOFDPacket [10:33:08]OFDProtocolAddRootSTLVToBuf [10:33:08]FM_MakeSignedData [10:33:08]FM_MakeSignedData [10:33:08]SAM_PROTO_SignData [10:33:08]wFMCommunicate request_size=4 [10:33:08]MH_SAM_APDU [10:33:08]CAPDU: 80 0D 01 02 [10:33:08]Write to MH i2c: E2 08 00 09 07 80 0D 01 02 00 00 00 00 89 [10:33:08]Write i2c OK [10:33:08]MH_I2C_Read... [10:33:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:08]Read from MH i2c: E2 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 03 00 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [10:33:08]RAPDU: 90 00 [10:33:08]wFMCommunicate OK [10:33:08]wFMCommunicate request_size=255 [10:33:08]MH_SAM_APDU [10:33: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 63 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 81 02 00 35 04 06 00 2D AC 69 B1 [10:33:08]Write to MH i2c: E2 02 01 0A 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 63 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 81 02 00 35 04 06 00 2D AC 69 B1 00 00 4B [10:33:08]Write i2c OK [10:33:08]MH_I2C_Read... [10:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:08]Read from MH i2c: E2 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 03 00 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 03 00 0A 07 00 90 00 85 [10:33:08]RAPDU: 90 00 [10:33:08]wFMCommunicate OK [10:33:08]wFMCommunicate request_size=7 [10:33:08]MH_SAM_APDU [10:33:08]CAPDU: 80 0D 02 02 02 4F 4E [10:33:08]Write to MH i2c: E2 0A 00 0B 07 80 0D 02 02 02 00 4F 4E 00 00 2D [10:33:08]Write i2c OK [10:33:08]MH_I2C_Read... [10:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:08]Read from MH i2c: E2 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 03 00 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 03 00 0B 07 00 90 00 86 [10:33:08]RAPDU: 90 00 [10:33:08]wFMCommunicate OK [10:33:08]wFMCommunicate request_size=4 [10:33:08]MH_SAM_APDU [10:33:08]CAPDU: 80 0D 03 02 [10:33:08]Write to MH i2c: E2 08 00 0C 07 80 0D 03 02 00 00 00 00 8E [10:33:08]Write i2c OK [10:33:08]MH_I2C_Read... [10:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:08]Read from MH i2c: E2 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 0B 00 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 0B 00 0C 07 00 B8 FB 5F 09 44 F6 D7 49 90 00 04 [10:33:08]RAPDU: B8 FB 5F 09 44 F6 D7 49 90 00 [10:33:08]wFMCommunicate OK [10:33:08]SAM_PROTO_SignData done [10:33:08]FM_MakeSignedData done [10:33:08]CreateOFDProtocolMessage [10:33:08]wFMCommunicate request_size=4 [10:33:08]MH_SAM_APDU [10:33:08]CAPDU: 80 11 00 00 [10:33:08]Write to MH i2c: E2 08 00 0D 07 80 11 00 00 00 00 00 00 8E [10:33:08]Write i2c OK [10:33:08]MH_I2C_Read... [10:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:08]Read from MH i2c: E2 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 17 00 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: E2 17 00 0D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E4 [10:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:33:08]wFMCommunicate OK [10:33:08]CreateOFDProtocolMessage done [10:33:08]OFDSenderStorePacket 164142 [10:33:08]StoreOFDPacket docnum=164142 [10:33:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C0 9F 04 01 29 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 63 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 81 02 00 35 04 06 00 2D AC 69 B1 4F 4E B8 FB 5F 09 44 F6 D7 49 [10:33:08]CheckFolder [10:33:08]dirname=/storage/ofd_packets [10:33:08]CheckFolder done [10:33:08]ProducePacketName [10:33:08]name=ofd_packets/00164142 [10:33:08]NVStorageSaveData ofd_packets/00164142 [10:33:08]File name is /storage/ofd_packets/00164142 [10:33:08]Write 298 bytes [10:33:08]NVStorageSaveData done [10:33:08]OFDSenderStorePacket done [10:33:08]KKMCreateOFDPacket done [10:33:08]NVStorageSaveData kkm_last_timestamp [10:33:08]File name is /storage/kkm_last_timestamp [10:33:08]Write 4 bytes [10:33:08]NVStorageSaveData done [10:33:08]ExternCall_PrintAddStr [10:33:08]wPrintStart [10:33:08]Write to MH i2c: 01 00 00 0E 07 15 [10:33:08]Write i2c OK [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: 01 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: 01 07 00 [10:33:08]MH_I2C_Read... [10:33:08]Read from MH i2c: 01 07 00 0E 07 00 00 00 00 00 FF 0F 2A [10:33:08]RasterBufferAndPrint [10:33:08]line Счет N : (1)458225 [10:33:08]line ИНН: 02508201610067 [10:33:08]line Контрольно-Кассовый Чек [10:33:08]line ПРОДАЖА [10:33:08]line ТРК (МРК, ГНК) : 21 [10:33:08]line Товар: 2710194210 [10:33:08]line ДТ-К-5 [10:33:08]line 13.910 * 71.90 [10:33:08]line = 1000.13 [10:33:08]line НДС 12% НСП 1% [10:33:08]line > о реализуемом товаре [10:33:08]line ОКРУГЛЕНИЕ: -0.13 [10:33:08]line ИТОГО: 1000.00 [10:33:08]line Внесено: 1000.00 [10:33:08]line СДАЧА: 0.00 [10:33:08]line НСП 1% : 8.85 [10:33:08]line НДС 12% : 106.21 [10:33:08]line Наличными: 1000.00 [10:33:08]line Безнал.: 0.00 [10:33:08]line Место: АЗС № 72 "Партнер Нефть" [10:33:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:33:08]line СНО: Общий режим [10:33:08]line Чек 63 12.07.2024 10:33 [10:33:08]line Смена: 445 ФФД: 1.0 [10:33:08]line ЗНМ: 0300000160 [10:33:08]line РНМ: 0000000000090829 [10:33:08]line Версия ККМ: 001 [10:33:08]line ФМ: 0000000000874718 [10:33:08]line ФД: 164142 [10:33:08]line ФПД: 50218530852686 [10:33:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103307&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164142&fm=50218530852686&tin=02508201610067®Number=0000000000090829&sum=100000 [10:33:09]OFD Sender: Processing packet 164142 [packets to send 104, broken 103] [10:33:09]ProducePacketName [10:33:09]name=ofd_packets/00164142 [10:33:09]OFD Sender: To server: pG, [10:33:09]CommunicateWithHost lk.salyk.kg:30040 [10:33:09]ConnectInit lk.salyk.kg [10:33:09]written 0, free lines is 4095 [10:33:09]Connected sock=10 [10:33:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C0 9F 04 01 29 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 63 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 81 02 00 35 04 06 00 2D AC 69 B1 4F 4E B8 FB 5F 09 44 F6 D7 49 [10:33:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7F 15 47 00 07 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 34 37 31 38 10 04 04 00 2E 81 02 00 F4 03 04 00 F8 AC 90 66 B6 04 01 00 00 F2 44 5E D6 45 7C A2 9C [10:33:09]CommunicateWithHost err = 0 [10:33:09]CheckOFDResponse [10:33:09]1017 (14) - 77093643461234 [10:33:09]1041 (16) - 0000000000874718 [10:33:09]1040 (4) - 164142 [10:33:09]1012 (4) - 12.07.2024 04:11 [10:33:09]1206 (1) - 0 [10:33:09]OFD Sender: Remove packet 164142 [10:33:09]ProducePacketName [10:33:09]name=ofd_packets/00164142 [10:33:09]NVStorageDeleteData [10:33:09]Write to MH i2c: 01 00 00 38 07 3F [10:33:09]Write i2c OK [10:33:09]MH_I2C_Read... [10:33:09]Read from MH i2c: 01 [10:33:09]MH_I2C_Read... [10:33:09]Read from MH i2c: 01 07 00 [10:33:09]MH_I2C_Read... [10:33:09]Read from MH i2c: 01 07 00 38 07 00 00 00 00 00 FB 0C 4D [10:33:09]RasterBufferAndPrint [10:33:09]line [10:33:09]line [10:33:09]line [10:33:09]line [10:33:09]line [10:33:09]written 0, free lines is 3329 [10:33:09]MH_Cut [10:33:09]Write to MH i2c: D1 01 00 3F 07 01 18 [10:33:09]Write i2c OK [10:33:09]MH_I2C_Read... [10:33:09]Read from MH i2c: D1 [10:33:09]MH_I2C_Read... [10:33:09]Read from MH i2c: D1 01 00 [10:33:09]MH_I2C_Read... [10:33:09]Read from MH i2c: D1 01 00 3F 07 00 17 [10:33:09]Write to MH i2c: 01 00 00 40 07 47 [10:33:09]Write i2c OK [10:33:09]MH_I2C_Read... [10:33:09]OFD Sender: No OFD packet to send [10:33:10]*** Cut start [10:33:10]*** Partial cut [10:33:10]*** CUTSNS_PIN = 1 [10:33:10]*** CUTSNS_PIN = 0 [10:33:10]*** Brake cut motor [10:33:10]Read from MH i2c: 01 [10:33:10]MH_I2C_Read... [10:33:10]*** Stop cut motor [10:33:10]*** Cut end [10:33:10]Read from MH i2c: 01 07 00 [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: 01 07 00 40 07 00 00 00 00 00 FF 0F 5C [10:33:10]process_action close_receipt done [10:33:10]requested_data is exist [10:33:10]produce_requested_data [10:33:10]requested_item fm.sn is exist - process it [10:33:10]wFMCommunicate request_size=4 [10:33:10]MH_SAM_APDU [10:33:10]CAPDU: 80 11 00 00 [10:33:10]Write to MH i2c: E2 08 00 41 07 80 11 00 00 00 00 00 00 C2 [10:33:10]Write i2c OK [10:33:10]MH_I2C_Read... [10:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:10]Read from MH i2c: E2 [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: E2 17 00 [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: E2 17 00 41 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [10:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:33:10]wFMCommunicate OK [10:33:10]requested_item fd.num is exist - process it [10:33:10]SAM_PROTO_GetFieldsCounters [10:33:10]wFMCommunicate request_size=4 [10:33:10]MH_SAM_APDU [10:33:10]CAPDU: 80 13 00 00 [10:33:10]Write to MH i2c: E2 08 00 42 07 80 13 00 00 00 00 00 00 C5 [10:33:10]Write i2c OK [10:33:10]MH_I2C_Read... [10:33:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:10]Read from MH i2c: E2 [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: E2 62 00 [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: E2 62 00 42 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:33:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:10]wFMCommunicate OK [10:33:10]SAM_PROTO_GetFieldsCounters done [10:33:10]requested_item shift.num is exist - process it [10:33:10]requested_item shift.opened is exist - process it [10:33:10]req_shift_opened [10:33:10]FM_GetShiftState [10:33:10]SAM_PROTO_GetShiftState [10:33:10]wFMCommunicate request_size=4 [10:33:10]MH_SAM_APDU [10:33:10]CAPDU: 80 13 01 00 [10:33:10]Write to MH i2c: E2 08 00 43 07 80 13 01 00 00 00 00 00 C7 [10:33:10]Write i2c OK [10:33:10]MH_I2C_Read... [10:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:10]Read from MH i2c: E2 [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: E2 0E 00 [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: E2 0E 00 43 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 11 [10:33:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:33:10]wFMCommunicate OK [10:33:10]SAM_PROTO_GetShiftState done [10:33:10]FM_GetShiftState done [10:33:10]req_shift_opened done [10:33:10]requested_item shift.open_date is exist - process it [10:33:10]req_shift_open_date [10:33:10]req_shift_open_date done [10:33:10]produce_requested_data done [10:33:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164142,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:33:10]process_action_free close_receipt [10:33:10]json_value_free [10:33:10]json_value_free done [10:33:10]process_json_proto returns [10:33:10]Send response to host [10:33:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164142,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:33:10]free response buf [10:33:10]execute_script done [10:33:10]execute_script returns [10:33:10]free content buf [10:33:10]Sock 9.Close socket [10:33:10]Sock 9.Thread stoped [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:51]accept exits with 7 [10:34:51]New connection [10:34:51]New thread 3066850660 created [10:34:51]Thread 3066707300 joined [10:34:51]Waiting for new connection... [10:34:51] Sock 7.Parse request [10:34:51]Sock 7.Check first char [10:34:51]Sock 7.First char is OK [10:34:51]request: POST /json_proto HTTP/1.0 [10:34:51]Method: POST [10:34:51]URL: /json_proto [10:34:51]Method is POST - this is cgi request [10:34:51]url: /json_proto [10:34:51]query_string will be loaded in cgi processing [10:34:51]execute_cgi json_proto POST (null) [10:34:51]execute_cgi path=json_proto method=POST [10:34:51]POST find Content-Length [10:34:51]Host: 172.17.56.4:8080 [10:34:51]Content-Length: 677 [10:34:51]Content-Type: application/json [10:34:51] [10:34:51]POST finish read [10:34:51]Found Content-Length = 677 [10:34:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:51]execute_script... [10:34: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)458226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:51]POST & json_proto [10:34:51]process_json_proto [10:34:51]json parsed OK: [10:34:51]protocol is kg_v1.0 [10:34:51]action value=close_receipt [10:34:51]process_action close_receipt [10:34:51]cmd_close_receipt [10:34:51]MH_GetDate [10:34:51]Write to MH i2c: F0 00 00 44 07 3A [10:34:51]Write i2c OK [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: F0 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: F0 09 00 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: F0 09 00 44 07 00 CC 06 91 66 C9 DC B2 64 C7 [10:34:51]GetLastDocTimeStamp 1720780387 [10:34:51]current date 1720780492 [10:34:51]FM_GetShiftState [10:34:51]SAM_PROTO_GetShiftState [10:34:51]wFMCommunicate request_size=4 [10:34:51]MH_SAM_APDU [10:34:51]CAPDU: 80 13 01 00 [10:34:51]Write to MH i2c: E2 08 00 45 07 80 13 01 00 00 00 00 00 C9 [10:34:51]Write i2c OK [10:34:51]MH_I2C_Read... [10:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:51]Read from MH i2c: E2 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: E2 0E 00 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: E2 0E 00 45 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 13 [10:34:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:34:51]wFMCommunicate OK [10:34:51]SAM_PROTO_GetShiftState done [10:34:51]FM_GetShiftState done [10:34:51]opened in 1720744654 [10:34:51]opened+sec_in_day 1720831054 [10:34:51]quantity*price = 30004 [10:34:51]sum+1 = 30006 [10:34:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 64 12.07.2024 10:34 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164143 ФПД: 115560497649634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103452&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164143&fm=115560497649634&tin=02508201610067®Number=0000000000090829&sum=30000 [10:34:52]StoreToDocumentArchive [10:34:52]shift 445 fd 164143 [10:34:52]save to /storage/0445/doc_00164143 [10:34:52]save last doc name /storage/0445/doc_00164143 to /storage/kkm_last_doc_name [10:34:52]save OK [10:34:52]Clear old archive folders... [10:34:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:52]tlvbuf is 009EF050 [10:34:52]SAM_PROTO_ClearQueue [10:34:52]wFMCommunicate request_size=4 [10:34:52]MH_SAM_APDU [10:34:52]CAPDU: 80 09 00 00 [10:34:52]Write to MH i2c: E2 08 00 52 07 80 09 00 00 00 00 00 00 CB [10:34:52]Write i2c OK [10:34:52]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 52 07 00 90 00 CD [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]SAM_PROTO_ClearQueue done [10:34:53]KKMCreateOFDPacket [10:34:53]OFDProtocolAddRootSTLVToBuf [10:34:53]FM_MakeSignedData [10:34:53]FM_MakeSignedData [10:34:53]SAM_PROTO_SignData [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 01 02 [10:34:53]Write to MH i2c: E2 08 00 53 07 80 0D 01 02 00 00 00 00 D3 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]wFMCommunicate request_size=255 [10:34:53]MH_SAM_APDU [10:34: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CC 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 81 02 00 35 04 06 00 69 [10:34:53]Write to MH i2c: E2 02 01 54 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CC 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 81 02 00 35 04 06 00 69 00 00 EF [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]wFMCommunicate request_size=10 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 02 02 05 1A 06 69 97 E2 [10:34:53]Write to MH i2c: E2 0D 00 55 07 80 0D 02 02 05 00 1A 06 69 97 E2 00 00 E2 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 55 07 00 90 00 D0 [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 03 02 [10:34:53]Write to MH i2c: E2 08 00 56 07 80 0D 03 02 00 00 00 00 D8 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 0B 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 0B 00 56 07 00 DE 02 2B B6 39 B3 CD 3A 90 00 8D [10:34:53]RAPDU: DE 02 2B B6 39 B3 CD 3A 90 00 [10:34:53]wFMCommunicate OK [10:34:53]SAM_PROTO_SignData done [10:34:53]FM_MakeSignedData done [10:34:53]CreateOFDProtocolMessage [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 11 00 00 [10:34:53]Write to MH i2c: E2 08 00 57 07 80 11 00 00 00 00 00 00 D8 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 17 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 17 00 57 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2E [10:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:34:53]wFMCommunicate OK [10:34:53]CreateOFDProtocolMessage done [10:34:53]OFDSenderStorePacket 164143 [10:34:53]StoreOFDPacket docnum=164143 [10:34:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 56 07 01 84 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CC 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 81 02 00 35 04 06 00 69 1A 06 69 97 E2 DE 02 2B B6 39 B3 CD 3A [10:34:53]CheckFolder [10:34:53]dirname=/storage/ofd_packets [10:34:53]CheckFolder done [10:34:53]ProducePacketName [10:34:53]name=ofd_packets/00164143 [10:34:53]NVStorageSaveData ofd_packets/00164143 [10:34:53]File name is /storage/ofd_packets/00164143 [10:34:53]Write 301 bytes [10:34:53]NVStorageSaveData done [10:34:53]OFDSenderStorePacket done [10:34:53]KKMCreateOFDPacket done [10:34:53]NVStorageSaveData kkm_last_timestamp [10:34:53]File name is /storage/kkm_last_timestamp [10:34:53]Write 4 bytes [10:34:53]NVStorageSaveData done [10:34:53]ExternCall_PrintAddStr [10:34:53]wPrintStart [10:34:53]Write to MH i2c: 01 00 00 58 07 5F [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: 01 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: 01 07 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: 01 07 00 58 07 00 00 00 00 00 FF 0F 74 [10:34:53]RasterBufferAndPrint [10:34:53]line Счет N : (1)458226 [10:34:53]line ИНН: 02508201610067 [10:34:53]line Контрольно-Кассовый Чек [10:34:53]line ПРОДАЖА [10:34:53]line ТРК (МРК, ГНК) : 12 [10:34:53]line Товар: 2710124130 [10:34:53]line Аи-92-К-5 [10:34:53]line 4.560 * 65.80 [10:34:53]line = 300.05 [10:34:53]line НДС 12% НСП 1% [10:34:53]line > о реализуемом товаре [10:34:53]line ОКРУГЛЕНИЕ: -0.05 [10:34:53]line ИТОГО: 300.00 [10:34:53]line Внесено: 300.00 [10:34:53]line СДАЧА: 0.00 [10:34:53]line НСП 1% : 2.65 [10:34:53]line НДС 12% : 31.86 [10:34:53]line Наличными: 300.00 [10:34:53]line Безнал.: 0.00 [10:34:53]line Место: АЗС № 72 "Партнер Нефть" [10:34:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:34:53]line СНО: Общий режим [10:34:53]line Чек 64 12.07.2024 10:34 [10:34:53]line Смена: 445 ФФД: 1.0 [10:34:53]line ЗНМ: 0300000160 [10:34:53]line РНМ: 0000000000090829 [10:34:53]line Версия ККМ: 001 [10:34:53]line ФМ: 0000000000874718 [10:34:53]line ФД: 164143 [10:34:53]line ФПД: 115560497649634 [10:34:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103452&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164143&fm=115560497649634&tin=02508201610067®Number=0000000000090829&sum=30000 [10:34:53]written 0, free lines is 4095 [10:34:53]OFD Sender: Processing packet 164143 [packets to send 104, broken 103] [10:34:53]ProducePacketName [10:34:53]name=ofd_packets/00164143 [10:34:53]OFD Sender: To server: pG, [10:34:53]CommunicateWithHost lk.salyk.kg:30040 [10:34:53]ConnectInit lk.salyk.kg [10:34:53]Connected sock=10 [10:34:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 56 07 01 84 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CC 06 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 81 02 00 35 04 06 00 69 1A 06 69 97 E2 DE 02 2B B6 39 B3 CD 3A [10:34:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 62 B6 47 00 D8 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 34 37 31 38 10 04 04 00 2F 81 02 00 F4 03 04 00 61 AD 90 66 B6 04 01 00 00 D0 4F 47 C4 CE 3C 22 6B [10:34:53]CommunicateWithHost err = 0 [10:34:53]CheckOFDResponse [10:34:53]1017 (14) - 77093643461234 [10:34:53]1041 (16) - 0000000000874718 [10:34:53]1040 (4) - 164143 [10:34:53]1012 (4) - 12.07.2024 04:13 [10:34:53]1206 (1) - 0 [10:34:53]OFD Sender: Remove packet 164143 [10:34:53]ProducePacketName [10:34:53]name=ofd_packets/00164143 [10:34:53]NVStorageDeleteData [10:34:53]Write to MH i2c: 01 00 00 82 07 89 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: 01 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: 01 07 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: 01 07 00 82 07 00 00 00 00 00 06 0D A3 [10:34:53]RasterBufferAndPrint [10:34:53]line [10:34:53]line [10:34:53]line [10:34:53]line [10:34:53]line [10:34:53]written 0, free lines is 3340 [10:34:54]MH_Cut [10:34:54]Write to MH i2c: D1 01 00 89 07 01 62 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: D1 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: D1 01 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: D1 01 00 89 07 00 61 [10:34:54]Write to MH i2c: 01 00 00 8A 07 91 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]OFD Sender: No OFD packet to send [10:34:54]*** Cut start [10:34:54]*** Partial cut [10:34:54]*** CUTSNS_PIN = 1 [10:34:54]*** CUTSNS_PIN = 0 [10:34:54]*** Brake cut motor [10:34:55]Read from MH i2c: 01 [10:34:55]MH_I2C_Read... [10:34:55]*** Stop cut motor [10:34:55]*** Cut end [10:34:55]Read from MH i2c: 01 07 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: 01 07 00 8A 07 00 00 00 00 00 FF 0F A6 [10:34:55]process_action close_receipt done [10:34:55]requested_data is exist [10:34:55]produce_requested_data [10:34:55]requested_item fm.sn is exist - process it [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 11 00 00 [10:34:55]Write to MH i2c: E2 08 00 8B 07 80 11 00 00 00 00 00 00 0C [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 17 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 17 00 8B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [10:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:34:55]wFMCommunicate OK [10:34:55]requested_item fd.num is exist - process it [10:34:55]SAM_PROTO_GetFieldsCounters [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 13 00 00 [10:34:55]Write to MH i2c: E2 08 00 8C 07 80 13 00 00 00 00 00 00 0F [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 62 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 62 00 8C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [10:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:55]wFMCommunicate OK [10:34:55]SAM_PROTO_GetFieldsCounters done [10:34:55]requested_item shift.num is exist - process it [10:34:55]requested_item shift.opened is exist - process it [10:34:55]req_shift_opened [10:34:55]FM_GetShiftState [10:34:55]SAM_PROTO_GetShiftState [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 13 01 00 [10:34:55]Write to MH i2c: E2 08 00 8D 07 80 13 01 00 00 00 00 00 11 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 0E 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 0E 00 8D 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5B [10:34:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:34:55]wFMCommunicate OK [10:34:55]SAM_PROTO_GetShiftState done [10:34:55]FM_GetShiftState done [10:34:55]req_shift_opened done [10:34:55]requested_item shift.open_date is exist - process it [10:34:55]req_shift_open_date [10:34:55]req_shift_open_date done [10:34:55]produce_requested_data done [10:34:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164143,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:34:55]process_action_free close_receipt [10:34:55]json_value_free [10:34:55]json_value_free done [10:34:55]process_json_proto returns [10:34:55]Send response to host [10:34:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164143,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:34:55]free response buf [10:34:55]execute_script done [10:34:55]execute_script returns [10:34:55]free content buf [10:34:55]Sock 7.Close socket [10:34:55]Sock 7.Thread stoped [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:00]accept exits with 9 [10:38:00]New connection [10:38:00]New thread 3066707300 created [10:38:00]Thread 3066850660 joined [10:38:00]Waiting for new connection... [10:38:00] Sock 9.Parse request [10:38:00]Sock 9.Check first char [10:38:00]Sock 9.First char is OK [10:38:00]request: POST /json_proto HTTP/1.0 [10:38:00]Method: POST [10:38:00]URL: /json_proto [10:38:00]Method is POST - this is cgi request [10:38:00]url: /json_proto [10:38:00]query_string will be loaded in cgi processing [10:38:00]execute_cgi json_proto POST (null) [10:38:00]execute_cgi path=json_proto method=POST [10:38:00]POST find Content-Length [10:38:00]Host: 172.17.56.4:8080 [10:38:00]Content-Length: 677 [10:38:00]Content-Type: application/json [10:38:00] [10:38:00]POST finish read [10:38:00]Found Content-Length = 677 [10:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:00]execute_script... [10:38:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:00]POST & json_proto [10:38:00]process_json_proto [10:38:00]json parsed OK: [10:38:00]protocol is kg_v1.0 [10:38:00]action value=close_receipt [10:38:00]process_action close_receipt [10:38:00]cmd_close_receipt [10:38:00]MH_GetDate [10:38:00]Write to MH i2c: F0 00 00 8E 07 84 [10:38:00]Write i2c OK [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: F0 [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: F0 09 00 [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: F0 09 00 8E 07 00 89 07 91 66 C9 DC B2 64 CF [10:38:00]GetLastDocTimeStamp 1720780492 [10:38:00]current date 1720780681 [10:38:00]FM_GetShiftState [10:38:00]SAM_PROTO_GetShiftState [10:38:00]wFMCommunicate request_size=4 [10:38:00]MH_SAM_APDU [10:38:00]CAPDU: 80 13 01 00 [10:38:00]Write to MH i2c: E2 08 00 8F 07 80 13 01 00 00 00 00 00 13 [10:38:00]Write i2c OK [10:38:00]MH_I2C_Read... [10:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:00]Read from MH i2c: E2 [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: E2 0E 00 [10:38:00]MH_I2C_Read... [10:38:00]Read from MH i2c: E2 0E 00 8F 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5D [10:38:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:38:00]wFMCommunicate OK [10:38:00]SAM_PROTO_GetShiftState done [10:38:00]FM_GetShiftState done [10:38:00]opened in 1720744654 [10:38:00]opened+sec_in_day 1720831054 [10:38:00]quantity*price = 22043 [10:38:00]sum+1 = 22044 [10:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 65 12.07.2024 10:38 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164144 ФПД: 51426850353268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103801&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164144&fm=51426850353268&tin=02508201610067®Number=0000000000090829&sum=22000 [10:38:01]StoreToDocumentArchive [10:38:01]shift 445 fd 164144 [10:38:01]save to /storage/0445/doc_00164144 [10:38:01]save last doc name /storage/0445/doc_00164144 to /storage/kkm_last_doc_name [10:38:01]save OK [10:38:01]Clear old archive folders... [10:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:01]tlvbuf is 00A012C0 [10:38:01]SAM_PROTO_ClearQueue [10:38:01]wFMCommunicate request_size=4 [10:38:01]MH_SAM_APDU [10:38:01]CAPDU: 80 09 00 00 [10:38:01]Write to MH i2c: E2 08 00 9C 07 80 09 00 00 00 00 00 00 15 [10:38:01]Write i2c OK [10:38:01]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 9C 07 00 90 00 17 [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]SAM_PROTO_ClearQueue done [10:38:02]KKMCreateOFDPacket [10:38:02]OFDProtocolAddRootSTLVToBuf [10:38:02]FM_MakeSignedData [10:38:02]FM_MakeSignedData [10:38:02]SAM_PROTO_SignData [10:38:02]wFMCommunicate request_size=4 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 0D 01 02 [10:38:02]Write to MH i2c: E2 08 00 9D 07 80 0D 01 02 00 00 00 00 1D [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 9D 07 00 90 00 18 [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]wFMCommunicate request_size=255 [10:38:02]MH_SAM_APDU [10:38: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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 89 07 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 81 02 00 35 04 06 00 2E [10:38:02]Write to MH i2c: E2 02 01 9E 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 89 07 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 81 02 00 35 04 06 00 2E 00 00 70 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 9E 07 00 90 00 19 [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]wFMCommunicate request_size=10 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 0D 02 02 05 C5 BF 25 B0 74 [10:38:02]Write to MH i2c: E2 0D 00 9F 07 80 0D 02 02 05 00 C5 BF 25 B0 74 00 00 F7 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]wFMCommunicate request_size=4 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 0D 03 02 [10:38:02]Write to MH i2c: E2 08 00 A0 07 80 0D 03 02 00 00 00 00 22 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 0B 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 0B 00 A0 07 00 84 21 85 76 ED 48 C9 09 90 00 CA [10:38:02]RAPDU: 84 21 85 76 ED 48 C9 09 90 00 [10:38:02]wFMCommunicate OK [10:38:02]SAM_PROTO_SignData done [10:38:02]FM_MakeSignedData done [10:38:02]CreateOFDProtocolMessage [10:38:02]wFMCommunicate request_size=4 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 11 00 00 [10:38:02]Write to MH i2c: E2 08 00 A1 07 80 11 00 00 00 00 00 00 22 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 17 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 17 00 A1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 78 [10:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:38:02]wFMCommunicate OK [10:38:02]CreateOFDProtocolMessage done [10:38:02]OFDSenderStorePacket 164144 [10:38:02]StoreOFDPacket docnum=164144 [10:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F5 DB 07 01 23 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 89 07 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 81 02 00 35 04 06 00 2E C5 BF 25 B0 74 84 21 85 76 ED 48 C9 09 [10:38:02]CheckFolder [10:38:02]dirname=/storage/ofd_packets [10:38:02]CheckFolder done [10:38:02]ProducePacketName [10:38:02]name=ofd_packets/00164144 [10:38:02]NVStorageSaveData ofd_packets/00164144 [10:38:02]File name is /storage/ofd_packets/00164144 [10:38:02]Write 301 bytes [10:38:02]NVStorageSaveData done [10:38:02]OFDSenderStorePacket done [10:38:02]KKMCreateOFDPacket done [10:38:02]NVStorageSaveData kkm_last_timestamp [10:38:02]File name is /storage/kkm_last_timestamp [10:38:02]Write 4 bytes [10:38:02]NVStorageSaveData done [10:38:02]ExternCall_PrintAddStr [10:38:02]wPrintStart [10:38:02]Write to MH i2c: 01 00 00 A2 07 A9 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 A2 07 00 00 00 00 00 FF 0F BE [10:38:02]RasterBufferAndPrint [10:38:02]line Счет N : (1)458227 [10:38:02]line ИНН: 02508201610067 [10:38:02]line Контрольно-Кассовый Чек [10:38:02]line ПРОДАЖА [10:38:02]line ТРК (МРК, ГНК) : 22 [10:38:02]line Товар: 2710124130 [10:38:02]line Аи-92-К-5 [10:38:02]line 3.350 * 65.80 [10:38:02]line = 220.43 [10:38:02]line НДС 12% НСП 1% [10:38:02]line > о реализуемом товаре [10:38:02]line ОКРУГЛЕНИЕ: -0.43 [10:38:02]line ИТОГО: 220.00 [10:38:02]line Внесено: 220.00 [10:38:02]line СДАЧА: 0.00 [10:38:02]line НСП 1% : 1.95 [10:38:02]line НДС 12% : 23.41 [10:38:02]line Наличными: 220.00 [10:38:02]line Безнал.: 0.00 [10:38:02]line Место: АЗС № 72 "Партнер Нефть" [10:38:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:38:02]line СНО: Общий режим [10:38:02]line Чек 65 12.07.2024 10:38 [10:38:02]line Смена: 445 ФФД: 1.0 [10:38:02]line ЗНМ: 0300000160 [10:38:02]line РНМ: 0000000000090829 [10:38:02]line Версия ККМ: 001 [10:38:02]line ФМ: 0000000000874718 [10:38:02]line ФД: 164144 [10:38:02]line ФПД: 51426850353268 [10:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103801&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164144&fm=51426850353268&tin=02508201610067®Number=0000000000090829&sum=22000 [10:38:02]written 0, free lines is 4095 [10:38:02]OFD Sender: Processing packet 164144 [packets to send 104, broken 103] [10:38:02]ProducePacketName [10:38:02]name=ofd_packets/00164144 [10:38:02]OFD Sender: To server: pG, [10:38:02]CommunicateWithHost lk.salyk.kg:30040 [10:38:02]ConnectInit lk.salyk.kg [10:38:03]Write to MH i2c: 01 00 00 CC 07 D3 [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: 01 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: 01 07 00 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: 01 07 00 CC 07 00 00 00 00 00 FB 0C E1 [10:38:03]RasterBufferAndPrint [10:38:03]line [10:38:03]line [10:38:03]line [10:38:03]line [10:38:03]line [10:38:03]written 0, free lines is 3330 [10:38:03]MH_Cut [10:38:03]Write to MH i2c: D1 01 00 D3 07 01 AC [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: D1 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: D1 01 00 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: D1 01 00 D3 07 00 AB [10:38:03]Write to MH i2c: 01 00 00 D4 07 DB [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]*** Cut start [10:38:03]*** Partial cut [10:38:03]*** CUTSNS_PIN = 1 [10:38:03]*** CUTSNS_PIN = 0 [10:38:04]*** Brake cut motor [10:38:04]Read from MH i2c: 01 [10:38:04]MH_I2C_Read... [10:38:04]*** Stop cut motor [10:38:04]*** Cut end [10:38:04]Read from MH i2c: 01 07 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 FF 0F F0 [10:38:04]process_action close_receipt done [10:38:04]requested_data is exist [10:38:04]produce_requested_data [10:38:04]requested_item fm.sn is exist - process it [10:38:04]wFMCommunicate request_size=4 [10:38:04]MH_SAM_APDU [10:38:04]CAPDU: 80 11 00 00 [10:38:04]Write to MH i2c: E2 08 00 D5 07 80 11 00 00 00 00 00 00 56 [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:04]Read from MH i2c: E2 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 17 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 17 00 D5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [10:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:38:04]wFMCommunicate OK [10:38:04]requested_item fd.num is exist - process it [10:38:04]SAM_PROTO_GetFieldsCounters [10:38:04]wFMCommunicate request_size=4 [10:38:04]MH_SAM_APDU [10:38:04]CAPDU: 80 13 00 00 [10:38:04]Write to MH i2c: E2 08 00 D6 07 80 13 00 00 00 00 00 00 59 [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:04]Read from MH i2c: E2 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 62 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 62 00 D6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [10:38:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:04]wFMCommunicate OK [10:38:04]SAM_PROTO_GetFieldsCounters done [10:38:04]requested_item shift.num is exist - process it [10:38:04]requested_item shift.opened is exist - process it [10:38:04]req_shift_opened [10:38:04]FM_GetShiftState [10:38:04]SAM_PROTO_GetShiftState [10:38:04]wFMCommunicate request_size=4 [10:38:04]MH_SAM_APDU [10:38:04]CAPDU: 80 13 01 00 [10:38:04]Write to MH i2c: E2 08 00 D7 07 80 13 01 00 00 00 00 00 5B [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:04]Read from MH i2c: E2 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 0E 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 0E 00 D7 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A5 [10:38:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:38:04]wFMCommunicate OK [10:38:04]SAM_PROTO_GetShiftState done [10:38:04]FM_GetShiftState done [10:38:04]req_shift_opened done [10:38:04]requested_item shift.open_date is exist - process it [10:38:04]req_shift_open_date [10:38:04]req_shift_open_date done [10:38:04]produce_requested_data done [10:38:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164144,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:38:04]process_action_free close_receipt [10:38:04]json_value_free [10:38:04]json_value_free done [10:38:04]process_json_proto returns [10:38:04]Send response to host [10:38:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164144,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:38:04]free response buf [10:38:04]execute_script done [10:38:04]execute_script returns [10:38:04]free content buf [10:38:04]Sock 9.Close socket [10:38:04]Sock 9.Thread stoped [10:38:55]accept exits with 7 [10:38:55]New connection [10:38:55]New thread 3066850660 created [10:38:55]Thread 3066707300 joined [10:38:55]Waiting for new connection... [10:38:55] Sock 7.Parse request [10:38:55]Sock 7.Check first char [10:38:55]Sock 7.First char is OK [10:38:55]request: POST /json_proto HTTP/1.0 [10:38:55]Method: POST [10:38:55]URL: /json_proto [10:38:55]Method is POST - this is cgi request [10:38:55]url: /json_proto [10:38:55]query_string will be loaded in cgi processing [10:38:55]execute_cgi json_proto POST (null) [10:38:55]execute_cgi path=json_proto method=POST [10:38:55]POST find Content-Length [10:38:55]Host: 172.17.56.4:8080 [10:38:55]Content-Length: 677 [10:38:55]Content-Type: application/json [10:38:55] [10:38:55]POST finish read [10:38:55]Found Content-Length = 677 [10:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:38:55]execute_script... [10: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)458228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:38:55]POST & json_proto [10:38:55]process_json_proto [10:38:55]json parsed OK: [10:38:55]protocol is kg_v1.0 [10:38:55]action value=close_receipt [10:38:55]process_action close_receipt [10:38:55]cmd_close_receipt [10:38:55]MH_GetDate [10:38:55]Write to MH i2c: F0 00 00 D8 07 CE [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: F0 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: F0 09 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: F0 09 00 D8 07 00 C0 07 91 66 C9 DC B2 64 50 [10:38:55]GetLastDocTimeStamp 1720780681 [10:38:55]current date 1720780736 [10:38:55]FM_GetShiftState [10:38:55]SAM_PROTO_GetShiftState [10:38:55]wFMCommunicate request_size=4 [10:38:55]MH_SAM_APDU [10:38:55]CAPDU: 80 13 01 00 [10:38:55]Write to MH i2c: E2 08 00 D9 07 80 13 01 00 00 00 00 00 5D [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:55]Read from MH i2c: E2 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 0E 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 0E 00 D9 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A7 [10:38:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:38:55]wFMCommunicate OK [10:38:55]SAM_PROTO_GetShiftState done [10:38:55]FM_GetShiftState done [10:38:55]opened in 1720744654 [10:38:55]opened+sec_in_day 1720831054 [10:38:55]quantity*price = 20003 [10:38:55]sum+1 = 20004 [10: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 66 12.07.2024 10:38 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164145 ФПД: 152566729681580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103856&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164145&fm=152566729681580&tin=02508201610067®Number=0000000000090829&sum=20000 [10:38:56]StoreToDocumentArchive [10:38:56]shift 445 fd 164145 [10:38:56]save to /storage/0445/doc_00164145 [10:38:56]save last doc name /storage/0445/doc_00164145 to /storage/kkm_last_doc_name [10:38:56]save OK [10:38:56]Clear old archive folders... [10:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:56]tlvbuf is 00A01230 [10:38:56]SAM_PROTO_ClearQueue [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 09 00 00 [10:38:56]Write to MH i2c: E2 08 00 E6 07 80 09 00 00 00 00 00 00 5F [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 03 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 03 00 E6 07 00 90 00 61 [10:38:56]RAPDU: 90 00 [10:38:56]wFMCommunicate OK [10:38:56]SAM_PROTO_ClearQueue done [10:38:56]KKMCreateOFDPacket [10:38:56]OFDProtocolAddRootSTLVToBuf [10:38:56]FM_MakeSignedData [10:38:56]FM_MakeSignedData [10:38:56]SAM_PROTO_SignData [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 0D 01 02 [10:38:56]Write to MH i2c: E2 08 00 E7 07 80 0D 01 02 00 00 00 00 67 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 03 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 03 00 E7 07 00 90 00 62 [10:38:56]RAPDU: 90 00 [10:38:56]wFMCommunicate OK [10:38:56]wFMCommunicate request_size=255 [10:38:56]MH_SAM_APDU [10: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 00 00 00 F4 03 04 00 C0 07 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 81 02 00 35 04 06 00 8A [10:38:56]Write to MH i2c: E2 02 01 E8 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 00 00 00 F4 03 04 00 C0 07 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 81 02 00 35 04 06 00 8A 00 00 7D [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 03 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 03 00 E8 07 00 90 00 63 [10:38:56]RAPDU: 90 00 [10:38:56]wFMCommunicate OK [10:38:56]wFMCommunicate request_size=10 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 0D 02 02 05 C2 35 BA 2A AC [10:38:56]Write to MH i2c: E2 0D 00 E9 07 80 0D 02 02 05 00 C2 35 BA 2A AC 00 00 FB [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 03 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [10:38:56]RAPDU: 90 00 [10:38:56]wFMCommunicate OK [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 0D 03 02 [10:38:56]Write to MH i2c: E2 08 00 EA 07 80 0D 03 02 00 00 00 00 6C [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:57]Read from MH i2c: E2 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 0B 00 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 0B 00 EA 07 00 01 C7 4A 0B 42 81 60 44 90 00 F1 [10:38:57]RAPDU: 01 C7 4A 0B 42 81 60 44 90 00 [10:38:57]wFMCommunicate OK [10:38:57]SAM_PROTO_SignData done [10:38:57]FM_MakeSignedData done [10:38:57]CreateOFDProtocolMessage [10:38:57]wFMCommunicate request_size=4 [10:38:57]MH_SAM_APDU [10:38:57]CAPDU: 80 11 00 00 [10:38:57]Write to MH i2c: E2 08 00 EB 07 80 11 00 00 00 00 00 00 6C [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:57]Read from MH i2c: E2 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 17 00 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 17 00 EB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C2 [10:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:38:57]wFMCommunicate OK [10:38:57]CreateOFDProtocolMessage done [10:38:57]OFDSenderStorePacket 164145 [10:38:57]StoreOFDPacket docnum=164145 [10:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9C 12 07 01 33 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 00 00 00 F4 03 04 00 C0 07 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 81 02 00 35 04 06 00 8A C2 35 BA 2A AC 01 C7 4A 0B 42 81 60 44 [10:38:57]CheckFolder [10:38:57]dirname=/storage/ofd_packets [10:38:57]CheckFolder done [10:38:57]ProducePacketName [10:38:57]name=ofd_packets/00164145 [10:38:57]NVStorageSaveData ofd_packets/00164145 [10:38:57]File name is /storage/ofd_packets/00164145 [10:38:57]Write 301 bytes [10:38:57]NVStorageSaveData done [10:38:57]OFDSenderStorePacket done [10:38:57]KKMCreateOFDPacket done [10:38:57]NVStorageSaveData kkm_last_timestamp [10:38:57]File name is /storage/kkm_last_timestamp [10:38:57]Write 4 bytes [10:38:57]NVStorageSaveData done [10:38:57]ExternCall_PrintAddStr [10:38:57]wPrintStart [10:38:57]Write to MH i2c: 01 00 00 EC 07 F3 [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: 01 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: 01 07 00 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: 01 07 00 EC 07 00 00 00 00 00 FF 0F 08 [10:38:57]RasterBufferAndPrint [10:38:57]line Счет N : (1)458228 [10:38:57]line ИНН: 02508201610067 [10:38:57]line Контрольно-Кассовый Чек [10:38:57]line ПРОДАЖА [10:38:57]line ТРК (МРК, ГНК) : 12 [10:38:57]line Товар: 2710124130 [10:38:57]line Аи-92-К-5 [10:38:57]line 3.040 * 65.80 [10:38:57]line = 200.03 [10:38:57]line НДС 12% НСП 1% [10:38:57]line > о реализуемом товаре [10:38:57]line ОКРУГЛЕНИЕ: -0.03 [10:38:57]line ИТОГО: 200.00 [10:38:57]line Внесено: 200.00 [10:38:57]line СДАЧА: 0.00 [10:38:57]line НСП 1% : 1.77 [10:38:57]line НДС 12% : 21.24 [10:38:57]line Наличными: 200.00 [10:38:57]line Безнал.: 0.00 [10:38:57]line Место: АЗС № 72 "Партнер Нефть" [10:38:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:38:57]line СНО: Общий режим [10:38:57]line Чек 66 12.07.2024 10:38 [10:38:57]line Смена: 445 ФФД: 1.0 [10:38:57]line ЗНМ: 0300000160 [10:38:57]line РНМ: 0000000000090829 [10:38:57]line Версия ККМ: 001 [10:38:57]line ФМ: 0000000000874718 [10:38:57]line ФД: 164145 [10:38:57]line ФПД: 152566729681580 [10:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T103856&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164145&fm=152566729681580&tin=02508201610067®Number=0000000000090829&sum=20000 [10:38:57]written 0, free lines is 4095 [10:38:57]Write to MH i2c: 01 00 00 16 08 1E [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: 01 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: 01 07 00 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: 01 07 00 16 08 00 00 00 00 00 F3 0C 24 [10:38:57]RasterBufferAndPrint [10:38:57]line [10:38:57]line [10:38:57]line [10:38:57]line [10:38:57]line [10:38:57]written 0, free lines is 3322 [10:38:57]MH_Cut [10:38:57]Write to MH i2c: D1 01 00 1D 08 01 F7 [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: D1 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: D1 01 00 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: D1 01 00 1D 08 00 F6 [10:38:57]Write to MH i2c: 01 00 00 1E 08 26 [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:58]*** Cut start [10:38:58]*** Partial cut [10:38:58]*** CUTSNS_PIN = 1 [10:38:58]*** CUTSNS_PIN = 0 [10:38:58]*** Brake cut motor [10:38:59]Read from MH i2c: 01 [10:38:59]MH_I2C_Read... [10:38:59]*** Stop cut motor [10:38:59]*** Cut end [10:38:59]Read from MH i2c: 01 07 00 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: 01 07 00 1E 08 00 00 00 00 00 FF 0F 3B [10:38:59]process_action close_receipt done [10:38:59]requested_data is exist [10:38:59]produce_requested_data [10:38:59]requested_item fm.sn is exist - process it [10:38:59]wFMCommunicate request_size=4 [10:38:59]MH_SAM_APDU [10:38:59]CAPDU: 80 11 00 00 [10:38:59]Write to MH i2c: E2 08 00 1F 08 80 11 00 00 00 00 00 00 A1 [10:38:59]Write i2c OK [10:38:59]MH_I2C_Read... [10:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:59]Read from MH i2c: E2 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: E2 17 00 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: E2 17 00 1F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [10:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:38:59]wFMCommunicate OK [10:38:59]requested_item fd.num is exist - process it [10:38:59]SAM_PROTO_GetFieldsCounters [10:38:59]wFMCommunicate request_size=4 [10:38:59]MH_SAM_APDU [10:38:59]CAPDU: 80 13 00 00 [10:38:59]Write to MH i2c: E2 08 00 20 08 80 13 00 00 00 00 00 00 A4 [10:38:59]Write i2c OK [10:38:59]MH_I2C_Read... [10:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:59]Read from MH i2c: E2 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: E2 62 00 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: E2 62 00 20 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:59]wFMCommunicate OK [10:38:59]SAM_PROTO_GetFieldsCounters done [10:38:59]requested_item shift.num is exist - process it [10:38:59]requested_item shift.opened is exist - process it [10:38:59]req_shift_opened [10:38:59]FM_GetShiftState [10:38:59]SAM_PROTO_GetShiftState [10:38:59]wFMCommunicate request_size=4 [10:38:59]MH_SAM_APDU [10:38:59]CAPDU: 80 13 01 00 [10:38:59]Write to MH i2c: E2 08 00 21 08 80 13 01 00 00 00 00 00 A6 [10:38:59]Write i2c OK [10:38:59]MH_I2C_Read... [10:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:59]Read from MH i2c: E2 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: E2 0E 00 [10:38:59]MH_I2C_Read... [10:38:59]Read from MH i2c: E2 0E 00 21 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F0 [10:38:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:38:59]wFMCommunicate OK [10:38:59]SAM_PROTO_GetShiftState done [10:38:59]FM_GetShiftState done [10:38:59]req_shift_opened done [10:38:59]requested_item shift.open_date is exist - process it [10:38:59]req_shift_open_date [10:38:59]req_shift_open_date done [10:38:59]produce_requested_data done [10:38:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164145,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:38:59]process_action_free close_receipt [10:38:59]json_value_free [10:38:59]json_value_free done [10:38:59]process_json_proto returns [10:38:59]Send response to host [10:38:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164145,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:38:59]free response buf [10:38:59]execute_script done [10:38:59]execute_script returns [10:38:59]free content buf [10:38:59]Sock 7.Close socket [10:38:59]Sock 7.Thread stoped [10:40:15]ConnectInit Can't connect to host [10:40:15]CommunicateWithHost connect error [10:40:15]CommunicateWithHost err = -1 [10:40:15]OFD Sender: Server communicate error [10:40:15]OFD Sender: Processing packet 164144 [packets to send 105, broken 103] [10:40:15]ProducePacketName [10:40:15]name=ofd_packets/00164144 [10:40:15]OFD Sender: To server: pG, [10:40:15]CommunicateWithHost lk.salyk.kg:30040 [10:40:15]ConnectInit lk.salyk.kg [10:40:15]Connected sock=7 [10:40:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F5 DB 07 01 23 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 89 07 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 81 02 00 35 04 06 00 2E C5 BF 25 B0 74 84 21 85 76 ED 48 C9 09 [10:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B6 79 47 00 84 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 81 02 00 F4 03 04 00 A3 AE 90 66 B6 04 01 00 00 6F 2D 9E AD 03 F2 A0 89 [10:40:16]CommunicateWithHost err = 0 [10:40:16]CheckOFDResponse [10:40:16]1017 (14) - 77093643461234 [10:40:16]1041 (16) - 0000000000874718 [10:40:16]1040 (4) - 164144 [10:40:16]1012 (4) - 12.07.2024 04:18 [10:40:16]1206 (1) - 0 [10:40:16]OFD Sender: Remove packet 164144 [10:40:16]ProducePacketName [10:40:16]name=ofd_packets/00164144 [10:40:16]NVStorageDeleteData [10:40:16]OFD Sender: Processing packet 164145 [packets to send 104, broken 103] [10:40:16]ProducePacketName [10:40:16]name=ofd_packets/00164145 [10:40:16]OFD Sender: To server: pG, [10:40:16]CommunicateWithHost lk.salyk.kg:30040 [10:40:16]ConnectInit lk.salyk.kg [10:40:16]Connected sock=7 [10:40:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9C 12 07 01 33 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 00 00 00 F4 03 04 00 C0 07 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 81 02 00 35 04 06 00 8A C2 35 BA 2A AC 01 C7 4A 0B 42 81 60 44 [10:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 95 42 47 00 20 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 34 37 31 38 10 04 04 00 31 81 02 00 F4 03 04 00 A4 AE 90 66 B6 04 01 00 00 CC 3A 1B FD 23 6D CB 18 [10:40:16]CommunicateWithHost err = 0 [10:40:16]CheckOFDResponse [10:40:16]1017 (14) - 77093643461234 [10:40:16]1041 (16) - 0000000000874718 [10:40:16]1040 (4) - 164145 [10:40:16]1012 (4) - 12.07.2024 04:18 [10:40:16]1206 (1) - 0 [10:40:16]OFD Sender: Remove packet 164145 [10:40:16]ProducePacketName [10:40:16]name=ofd_packets/00164145 [10:40:16]NVStorageDeleteData [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:14]accept exits with 9 [10:43:14]New connection [10:43:14]New thread 3066707300 created [10:43:14]Thread 3066850660 joined [10:43:14]Waiting for new connection... [10:43:14] Sock 9.Parse request [10:43:14]Sock 9.Check first char [10:43:14]Sock 9.First char is OK [10:43:14]request: POST /json_proto HTTP/1.0 [10:43:14]Method: POST [10:43:14]URL: /json_proto [10:43:14]Method is POST - this is cgi request [10:43:14]url: /json_proto [10:43:14]query_string will be loaded in cgi processing [10:43:14]execute_cgi json_proto POST (null) [10:43:14]execute_cgi path=json_proto method=POST [10:43:14]POST find Content-Length [10:43:14]Host: 172.17.56.4:8080 [10:43:14]Content-Length: 840 [10:43:14]Content-Type: application/json [10:43:14] [10:43:14]POST finish read [10:43:14]Found Content-Length = 840 [10:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:14]execute_script... [10:43: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)458229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:14]POST & json_proto [10:43:14]process_json_proto [10:43:14]json parsed OK: [10:43:14]protocol is kg_v1.0 [10:43:14]action value=close_receipt [10:43:14]process_action close_receipt [10:43:14]cmd_close_receipt [10:43:14]MH_GetDate [10:43:14]Write to MH i2c: F0 00 00 22 08 19 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: F0 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: F0 09 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: F0 09 00 22 08 00 C3 08 91 66 C9 DC B2 64 9F [10:43:14]GetLastDocTimeStamp 1720780736 [10:43:14]current date 1720780995 [10:43:14]FM_GetShiftState [10:43:14]SAM_PROTO_GetShiftState [10:43:14]wFMCommunicate request_size=4 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 13 01 00 [10:43:14]Write to MH i2c: E2 08 00 23 08 80 13 01 00 00 00 00 00 A8 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0E 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0E 00 23 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F2 [10:43:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:43:14]wFMCommunicate OK [10:43:14]SAM_PROTO_GetShiftState done [10:43:14]FM_GetShiftState done [10:43:14]opened in 1720744654 [10:43:14]opened+sec_in_day 1720831054 [10:43:14]quantity*price = 40045 [10:43:14]sum+1 = 40046 [10:43:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.45 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 67 12.07.2024 10:43 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164146 ФПД: 241530404858739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104315&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164146&fm=241530404858739&tin=02508201610067®Number=0000000000090829&sum=40045 [10:43:16]StoreToDocumentArchive [10:43:16]shift 445 fd 164146 [10:43:16]save to /storage/0445/doc_00164146 [10:43:16]save last doc name /storage/0445/doc_00164146 to /storage/kkm_last_doc_name [10:43:16]save OK [10:43:16]Clear old archive folders... [10:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:16]tlvbuf is 009EE280 [10:43:16]SAM_PROTO_ClearQueue [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 09 00 00 [10:43:16]Write to MH i2c: E2 08 00 30 08 80 09 00 00 00 00 00 00 AA [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 03 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 03 00 30 08 00 90 00 AC [10:43:16]RAPDU: 90 00 [10:43:16]wFMCommunicate OK [10:43:16]SAM_PROTO_ClearQueue done [10:43:16]KKMCreateOFDPacket [10:43:16]OFDProtocolAddRootSTLVToBuf [10:43:16]FM_MakeSignedData [10:43:16]FM_MakeSignedData [10:43:16]SAM_PROTO_SignData [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 0D 01 02 [10:43:16]Write to MH i2c: E2 08 00 31 08 80 0D 01 02 00 00 00 00 B2 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 03 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 03 00 31 08 00 90 00 AD [10:43:16]RAPDU: 90 00 [10:43:16]wFMCommunicate OK [10:43:16]wFMCommunicate request_size=255 [10:43:16]MH_SAM_APDU [10:43: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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C3 08 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 81 02 00 35 04 06 00 DB [10:43:16]Write to MH i2c: E2 02 01 32 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C3 08 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 81 02 00 35 04 06 00 DB 00 00 E6 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 03 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 03 00 32 08 00 90 00 AE [10:43:16]RAPDU: 90 00 [10:43:16]wFMCommunicate OK [10:43:16]wFMCommunicate request_size=10 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 0D 02 02 05 AB AD FB EB 73 [10:43:16]Write to MH i2c: E2 0D 00 33 08 80 0D 02 02 05 00 AB AD FB EB 73 00 00 70 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 03 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 03 00 33 08 00 90 00 AF [10:43:16]RAPDU: 90 00 [10:43:16]wFMCommunicate OK [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 0D 03 02 [10:43:16]Write to MH i2c: E2 08 00 34 08 80 0D 03 02 00 00 00 00 B7 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 0B 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 0B 00 34 08 00 24 DD 33 CA 99 CF 9A 20 90 00 D8 [10:43:16]RAPDU: 24 DD 33 CA 99 CF 9A 20 90 00 [10:43:16]wFMCommunicate OK [10:43:16]SAM_PROTO_SignData done [10:43:16]FM_MakeSignedData done [10:43:16]CreateOFDProtocolMessage [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 11 00 00 [10:43:16]Write to MH i2c: E2 08 00 35 08 80 11 00 00 00 00 00 00 B7 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 17 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 17 00 35 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [10:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:43:16]wFMCommunicate OK [10:43:16]CreateOFDProtocolMessage done [10:43:16]OFDSenderStorePacket 164146 [10:43:16]StoreOFDPacket docnum=164146 [10:43:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5F 6C 07 01 41 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C3 08 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 81 02 00 35 04 06 00 DB AB AD FB EB 73 24 DD 33 CA 99 CF 9A 20 [10:43:16]CheckFolder [10:43:16]dirname=/storage/ofd_packets [10:43:16]CheckFolder done [10:43:16]ProducePacketName [10:43:16]name=ofd_packets/00164146 [10:43:16]NVStorageSaveData ofd_packets/00164146 [10:43:16]File name is /storage/ofd_packets/00164146 [10:43:16]Write 301 bytes [10:43:16]NVStorageSaveData done [10:43:16]OFDSenderStorePacket done [10:43:16]KKMCreateOFDPacket done [10:43:16]NVStorageSaveData kkm_last_timestamp [10:43:16]File name is /storage/kkm_last_timestamp [10:43:16]Write 4 bytes [10:43:16]NVStorageSaveData done [10:43:16]ExternCall_PrintAddStr [10:43:16]wPrintStart [10:43:16]Write to MH i2c: 01 00 00 36 08 3E [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 07 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 07 00 36 08 00 00 00 00 00 FF 0F 53 [10:43:16]RasterBufferAndPrint [10:43:16]line Счет N : (1)458229 [10:43:16]line ИНН: 02508201610067 [10:43:16]line Контрольно-Кассовый Чек [10:43:16]line ПРОДАЖА [10:43:16]line ТРК (МРК, ГНК) : 22 [10:43:16]line Товар: 2710124130 [10:43:16]line Аи-92-К-5 [10:43:16]line 6.140 * 65.22 [10:43:16]line = 400.45 [10:43:16]line НДС 12% НСП 1% [10:43:16]line > о реализуемом товаре [10:43:16]line ИТОГО: 400.45 [10:43:16]line НСП 1% : 3.54 [10:43:16]line НДС 12% : 42.53 [10:43:16]line Наличными: 0.00 [10:43:16]line Безнал.: 400.45 [10:43:16]line Место: АЗС № 72 "Партнер Нефть" [10:43:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:43:16]line СНО: Общий режим [10:43:16]line Чек 67 12.07.2024 10:43 [10:43:16]line Смена: 445 ФФД: 1.0 [10:43:16]line ЗНМ: 0300000160 [10:43:16]line РНМ: 0000000000090829 [10:43:16]line Версия ККМ: 001 [10:43:16]line Платежная система: АКБ Кыргызстан [10:43:16]line ФМ: 0000000000874718 [10:43:16]line ФД: 164146 [10:43:16]line ФПД: 241530404858739 [10:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104315&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164146&fm=241530404858739&tin=02508201610067®Number=0000000000090829&sum=40045 [10:43:16]OFD Sender: Processing packet 164146 [packets to send 104, broken 103] [10:43:16]ProducePacketName [10:43:16]name=ofd_packets/00164146 [10:43:16]OFD Sender: To server: pG, [10:43:16]CommunicateWithHost lk.salyk.kg:30040 [10:43:16]ConnectInit lk.salyk.kg [10:43:16]written 0, free lines is 4095 [10:43:17]Connected sock=10 [10:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5F 6C 07 01 41 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C3 08 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 81 02 00 35 04 06 00 DB AB AD FB EB 73 24 DD 33 CA 99 CF 9A 20 [10:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 36 47 47 00 5E B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 81 02 00 F4 03 04 00 58 AF 90 66 B6 04 01 00 00 E6 D9 FF 0B 1E F4 C3 5C [10:43:17]CommunicateWithHost err = 0 [10:43:17]CheckOFDResponse [10:43:17]1017 (14) - 77093643461234 [10:43:17]1041 (16) - 0000000000874718 [10:43:17]1040 (4) - 164146 [10:43:17]1012 (4) - 12.07.2024 04:21 [10:43:17]1206 (1) - 0 [10:43:17]OFD Sender: Remove packet 164146 [10:43:17]ProducePacketName [10:43:17]name=ofd_packets/00164146 [10:43:17]NVStorageDeleteData [10:43:17]Write to MH i2c: 01 00 00 5F 08 67 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: 01 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: 01 07 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: 01 07 00 5F 08 00 00 00 00 00 11 0D 8C [10:43:17]RasterBufferAndPrint [10:43:17]line [10:43:17]line [10:43:17]line [10:43:17]line [10:43:17]line [10:43:17]written 0, free lines is 3351 [10:43:17]MH_Cut [10:43:17]Write to MH i2c: D1 01 00 66 08 01 40 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: D1 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: D1 01 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: D1 01 00 66 08 00 3F [10:43:17]Write to MH i2c: 01 00 00 67 08 6F [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]OFD Sender: No OFD packet to send [10:43:18]*** Cut start [10:43:18]*** Partial cut [10:43:18]*** CUTSNS_PIN = 1 [10:43:18]*** CUTSNS_PIN = 0 [10:43:18]*** Brake cut motor [10:43:18]Read from MH i2c: 01 [10:43:18]MH_I2C_Read... [10:43:18]*** Stop cut motor [10:43:18]*** Cut end [10:43:18]Read from MH i2c: 01 07 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: 01 07 00 67 08 00 00 00 00 00 FF 0F 84 [10:43:18]process_action close_receipt done [10:43:18]requested_data is exist [10:43:18]produce_requested_data [10:43:18]requested_item fm.sn is exist - process it [10:43:18]wFMCommunicate request_size=4 [10:43:18]MH_SAM_APDU [10:43:18]CAPDU: 80 11 00 00 [10:43:18]Write to MH i2c: E2 08 00 68 08 80 11 00 00 00 00 00 00 EA [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:18]Read from MH i2c: E2 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 17 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 17 00 68 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [10:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:43:18]wFMCommunicate OK [10:43:18]requested_item fd.num is exist - process it [10:43:18]SAM_PROTO_GetFieldsCounters [10:43:18]wFMCommunicate request_size=4 [10:43:18]MH_SAM_APDU [10:43:18]CAPDU: 80 13 00 00 [10:43:18]Write to MH i2c: E2 08 00 69 08 80 13 00 00 00 00 00 00 ED [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:18]Read from MH i2c: E2 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 62 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 62 00 69 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [10:43: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:18]wFMCommunicate OK [10:43:18]SAM_PROTO_GetFieldsCounters done [10:43:18]requested_item shift.num is exist - process it [10:43:18]requested_item shift.opened is exist - process it [10:43:18]req_shift_opened [10:43:18]FM_GetShiftState [10:43:18]SAM_PROTO_GetShiftState [10:43:18]wFMCommunicate request_size=4 [10:43:18]MH_SAM_APDU [10:43:18]CAPDU: 80 13 01 00 [10:43:18]Write to MH i2c: E2 08 00 6A 08 80 13 01 00 00 00 00 00 EF [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:18]Read from MH i2c: E2 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 0E 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 0E 00 6A 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 39 [10:43:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:43:18]wFMCommunicate OK [10:43:18]SAM_PROTO_GetShiftState done [10:43:18]FM_GetShiftState done [10:43:18]req_shift_opened done [10:43:18]requested_item shift.open_date is exist - process it [10:43:18]req_shift_open_date [10:43:18]req_shift_open_date done [10:43:18]produce_requested_data done [10:43:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164146,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:43:18]process_action_free close_receipt [10:43:18]json_value_free [10:43:18]json_value_free done [10:43:18]process_json_proto returns [10:43:18]Send response to host [10:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164146,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:43:18]free response buf [10:43:18]execute_script done [10:43:18]execute_script returns [10:43:18]free content buf [10:43:18]Sock 9.Close socket [10:43:18]Sock 9.Thread stoped [10:43:22]OFD Sender: No OFD packet to send [10:43:27]accept exits with 7 [10:43:27]New connection [10:43:27]New thread 3066850660 created [10:43:27]Thread 3066707300 joined [10:43:27]Waiting for new connection... [10:43:27] Sock 7.Parse request [10:43:27]Sock 7.Check first char [10:43:27]Sock 7.First char is OK [10:43:27]request: POST /json_proto HTTP/1.0 [10:43:27]Method: POST [10:43:27]URL: /json_proto [10:43:27]Method is POST - this is cgi request [10:43:27]url: /json_proto [10:43:27]query_string will be loaded in cgi processing [10:43:27]execute_cgi json_proto POST (null) [10:43:27]execute_cgi path=json_proto method=POST [10:43:27]POST find Content-Length [10:43:27]Host: 172.17.56.4:8080 [10:43:27]Content-Length: 677 [10:43:27]Content-Type: application/json [10:43:27] [10:43:27]POST finish read [10:43:27]Found Content-Length = 677 [10:43:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:43:27]execute_script... [10:43: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)458230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:43:27]POST & json_proto [10:43:27]process_json_proto [10:43:27]json parsed OK: [10:43:27]protocol is kg_v1.0 [10:43:27]action value=close_receipt [10:43:27]process_action close_receipt [10:43:27]cmd_close_receipt [10:43:27]MH_GetDate [10:43:27]Write to MH i2c: F0 00 00 6B 08 62 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: F0 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: F0 09 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: F0 09 00 6B 08 00 D0 08 91 66 C9 DC B2 64 F5 [10:43:27]GetLastDocTimeStamp 1720780995 [10:43:27]current date 1720781008 [10:43:27]FM_GetShiftState [10:43:27]SAM_PROTO_GetShiftState [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 13 01 00 [10:43:27]Write to MH i2c: E2 08 00 6C 08 80 13 01 00 00 00 00 00 F1 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 0E 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 0E 00 6C 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3B [10:43:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:43:27]wFMCommunicate OK [10:43:27]SAM_PROTO_GetShiftState done [10:43:27]FM_GetShiftState done [10:43:27]opened in 1720744654 [10:43:27]opened+sec_in_day 1720831054 [10:43:27]quantity*price = 40006 [10:43:27]sum+1 = 40007 [10:43: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 68 12.07.2024 10:43 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164147 ФПД: 154221728081219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104328&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164147&fm=154221728081219&tin=02508201610067®Number=0000000000090829&sum=40000 [10:43:28]StoreToDocumentArchive [10:43:28]shift 445 fd 164147 [10:43:28]save to /storage/0445/doc_00164147 [10:43:28]save last doc name /storage/0445/doc_00164147 to /storage/kkm_last_doc_name [10:43:28]save OK [10:43:28]Clear old archive folders... [10:43:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:28]tlvbuf is 00A1E620 [10:43:28]SAM_PROTO_ClearQueue [10:43:28]wFMCommunicate request_size=4 [10:43:28]MH_SAM_APDU [10:43:28]CAPDU: 80 09 00 00 [10:43:28]Write to MH i2c: E2 08 00 79 08 80 09 00 00 00 00 00 00 F3 [10:43:28]Write i2c OK [10:43:28]MH_I2C_Read... [10:43:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:28]Read from MH i2c: E2 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: E2 03 00 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: E2 03 00 79 08 00 90 00 F5 [10:43:28]RAPDU: 90 00 [10:43:28]wFMCommunicate OK [10:43:28]SAM_PROTO_ClearQueue done [10:43:28]KKMCreateOFDPacket [10:43:28]OFDProtocolAddRootSTLVToBuf [10:43:28]FM_MakeSignedData [10:43:28]FM_MakeSignedData [10:43:28]SAM_PROTO_SignData [10:43:28]wFMCommunicate request_size=4 [10:43:28]MH_SAM_APDU [10:43:28]CAPDU: 80 0D 01 02 [10:43:28]Write to MH i2c: E2 08 00 7A 08 80 0D 01 02 00 00 00 00 FB [10:43:28]Write i2c OK [10:43:28]MH_I2C_Read... [10:43:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 03 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 03 00 7A 08 00 90 00 F6 [10:43:29]RAPDU: 90 00 [10:43:29]wFMCommunicate OK [10:43:29]wFMCommunicate request_size=255 [10:43:29]MH_SAM_APDU [10:43: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 44 00 00 00 F4 03 04 00 D0 08 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 81 02 00 35 04 06 00 8C [10:43:29]Write to MH i2c: E2 02 01 7B 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 44 00 00 00 F4 03 04 00 D0 08 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 81 02 00 35 04 06 00 8C 00 00 67 [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 03 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 03 00 7B 08 00 90 00 F7 [10:43:29]RAPDU: 90 00 [10:43:29]wFMCommunicate OK [10:43:29]wFMCommunicate request_size=10 [10:43:29]MH_SAM_APDU [10:43:29]CAPDU: 80 0D 02 02 05 43 8B 51 A5 43 [10:43:29]Write to MH i2c: E2 0D 00 7C 08 80 0D 02 02 05 00 43 8B 51 A5 43 00 00 0F [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 03 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 03 00 7C 08 00 90 00 F8 [10:43:29]RAPDU: 90 00 [10:43:29]wFMCommunicate OK [10:43:29]wFMCommunicate request_size=4 [10:43:29]MH_SAM_APDU [10:43:29]CAPDU: 80 0D 03 02 [10:43:29]Write to MH i2c: E2 08 00 7D 08 80 0D 03 02 00 00 00 00 00 [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0B 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0B 00 7D 08 00 CE 22 FC C3 90 D8 5C 35 90 00 A9 [10:43:29]RAPDU: CE 22 FC C3 90 D8 5C 35 90 00 [10:43:29]wFMCommunicate OK [10:43:29]SAM_PROTO_SignData done [10:43:29]FM_MakeSignedData done [10:43:29]CreateOFDProtocolMessage [10:43:29]wFMCommunicate request_size=4 [10:43:29]MH_SAM_APDU [10:43:29]CAPDU: 80 11 00 00 [10:43:29]Write to MH i2c: E2 08 00 7E 08 80 11 00 00 00 00 00 00 00 [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 17 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 17 00 7E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [10:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:43:29]wFMCommunicate OK [10:43:29]CreateOFDProtocolMessage done [10:43:29]OFDSenderStorePacket 164147 [10:43:29]StoreOFDPacket docnum=164147 [10:43:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BE 9A 07 01 26 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 44 00 00 00 F4 03 04 00 D0 08 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 81 02 00 35 04 06 00 8C 43 8B 51 A5 43 CE 22 FC C3 90 D8 5C 35 [10:43:29]CheckFolder [10:43:29]dirname=/storage/ofd_packets [10:43:29]CheckFolder done [10:43:29]ProducePacketName [10:43:29]name=ofd_packets/00164147 [10:43:29]NVStorageSaveData ofd_packets/00164147 [10:43:29]File name is /storage/ofd_packets/00164147 [10:43:29]Write 301 bytes [10:43:29]NVStorageSaveData done [10:43:29]OFDSenderStorePacket done [10:43:29]KKMCreateOFDPacket done [10:43:29]NVStorageSaveData kkm_last_timestamp [10:43:29]File name is /storage/kkm_last_timestamp [10:43:29]Write 4 bytes [10:43:29]NVStorageSaveData done [10:43:29]ExternCall_PrintAddStr [10:43:29]wPrintStart [10:43:29]Write to MH i2c: 01 00 00 7F 08 87 [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: 01 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: 01 07 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [10:43:29]RasterBufferAndPrint [10:43:29]line Счет N : (1)458230 [10:43:29]line ИНН: 02508201610067 [10:43:29]line Контрольно-Кассовый Чек [10:43:29]line ПРОДАЖА [10:43:29]line ТРК (МРК, ГНК) : 12 [10:43:29]line Товар: 2710124130 [10:43:29]line Аи-92-К-5 [10:43:29]line 6.080 * 65.80 [10:43:29]line = 400.06 [10:43:29]line НДС 12% НСП 1% [10:43:29]line > о реализуемом товаре [10:43:29]line ОКРУГЛЕНИЕ: -0.06 [10:43:29]line ИТОГО: 400.00 [10:43:29]line Внесено: 400.00 [10:43:29]line СДАЧА: 0.00 [10:43:29]line НСП 1% : 3.54 [10:43:29]line НДС 12% : 42.48 [10:43:29]line Наличными: 400.00 [10:43:29]line Безнал.: 0.00 [10:43:29]line Место: АЗС № 72 "Партнер Нефть" [10:43:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:43:29]line СНО: Общий режим [10:43:29]line Чек 68 12.07.2024 10:43 [10:43:29]line Смена: 445 ФФД: 1.0 [10:43:29]line ЗНМ: 0300000160 [10:43:29]line РНМ: 0000000000090829 [10:43:29]line Версия ККМ: 001 [10:43:29]line ФМ: 0000000000874718 [10:43:29]line ФД: 164147 [10:43:29]line ФПД: 154221728081219 [10:43:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104328&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164147&fm=154221728081219&tin=02508201610067®Number=0000000000090829&sum=40000 [10:43:29]written 0, free lines is 4095 [10:43:29]OFD Sender: Processing packet 164147 [packets to send 104, broken 103] [10:43:29]ProducePacketName [10:43:29]name=ofd_packets/00164147 [10:43:29]OFD Sender: To server: pG, [10:43:29]CommunicateWithHost lk.salyk.kg:30040 [10:43:29]ConnectInit lk.salyk.kg [10:43:29]Connected sock=10 [10:43:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BE 9A 07 01 26 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 44 00 00 00 F4 03 04 00 D0 08 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 81 02 00 35 04 06 00 8C 43 8B 51 A5 43 CE 22 FC C3 90 D8 5C 35 [10:43:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C5 93 47 00 61 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 34 37 31 38 10 04 04 00 33 81 02 00 F4 03 04 00 65 AF 90 66 B6 04 01 00 00 26 2D FD B1 7E 6A 6A 5D [10:43:29]CommunicateWithHost err = 0 [10:43:29]CheckOFDResponse [10:43:29]1017 (14) - 77093643461234 [10:43:29]1041 (16) - 0000000000874718 [10:43:29]1040 (4) - 164147 [10:43:29]1012 (4) - 12.07.2024 04:21 [10:43:29]1206 (1) - 0 [10:43:29]OFD Sender: Remove packet 164147 [10:43:29]ProducePacketName [10:43:29]name=ofd_packets/00164147 [10:43:29]NVStorageDeleteData [10:43:29]Write to MH i2c: 01 00 00 A9 08 B1 [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: 01 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: 01 07 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: 01 07 00 A9 08 00 00 00 00 00 0B 0D D0 [10:43:29]RasterBufferAndPrint [10:43:29]line [10:43:29]line [10:43:29]line [10:43:29]line [10:43:29]line [10:43:29]written 0, free lines is 3348 [10:43:29]MH_Cut [10:43:29]Write to MH i2c: D1 01 00 B0 08 01 8A [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: D1 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: D1 01 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: D1 01 00 B0 08 00 89 [10:43:29]Write to MH i2c: 01 00 00 B1 08 B9 [10:43:29]Write i2c OK [10:43:29]MH_I2C_Read... [10:43:30]OFD Sender: No OFD packet to send [10:43:30]*** Cut start [10:43:30]*** Partial cut [10:43:30]*** CUTSNS_PIN = 1 [10:43:30]*** CUTSNS_PIN = 0 [10:43:30]*** Brake cut motor [10:43:31]Read from MH i2c: 01 [10:43:31]MH_I2C_Read... [10:43:31]*** Stop cut motor [10:43:31]*** Cut end [10:43:31]Read from MH i2c: 01 07 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: 01 07 00 B1 08 00 00 00 00 00 FF 0F CE [10:43:31]process_action close_receipt done [10:43:31]requested_data is exist [10:43:31]produce_requested_data [10:43:31]requested_item fm.sn is exist - process it [10:43:31]wFMCommunicate request_size=4 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 11 00 00 [10:43:31]Write to MH i2c: E2 08 00 B2 08 80 11 00 00 00 00 00 00 34 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 17 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 17 00 B2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [10:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:43:31]wFMCommunicate OK [10:43:31]requested_item fd.num is exist - process it [10:43:31]SAM_PROTO_GetFieldsCounters [10:43:31]wFMCommunicate request_size=4 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 13 00 00 [10:43:31]Write to MH i2c: E2 08 00 B3 08 80 13 00 00 00 00 00 00 37 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 62 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 62 00 B3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [10:43: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:31]wFMCommunicate OK [10:43:31]SAM_PROTO_GetFieldsCounters done [10:43:31]requested_item shift.num is exist - process it [10:43:31]requested_item shift.opened is exist - process it [10:43:31]req_shift_opened [10:43:31]FM_GetShiftState [10:43:31]SAM_PROTO_GetShiftState [10:43:31]wFMCommunicate request_size=4 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 13 01 00 [10:43:31]Write to MH i2c: E2 08 00 B4 08 80 13 01 00 00 00 00 00 39 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 [10:43:31]MH_I2C_Read... [10:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:31]Read from MH i2c: E2 0E 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: E2 0E 00 B4 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 83 [10:43:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:43:31]wFMCommunicate OK [10:43:31]SAM_PROTO_GetShiftState done [10:43:31]FM_GetShiftState done [10:43:31]req_shift_opened done [10:43:31]requested_item shift.open_date is exist - process it [10:43:31]req_shift_open_date [10:43:31]req_shift_open_date done [10:43:31]produce_requested_data done [10:43:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164147,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:43:31]process_action_free close_receipt [10:43:31]json_value_free [10:43:31]json_value_free done [10:43:31]process_json_proto returns [10:43:31]Send response to host [10:43:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164147,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:43:31]free response buf [10:43:31]execute_script done [10:43:31]execute_script returns [10:43:31]free content buf [10:43:31]Sock 7.Close socket [10:43:31]Sock 7.Thread stoped [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:40]accept exits with 9 [10:44:40]New connection [10:44:40]New thread 3066707300 created [10:44:40]Thread 3066850660 joined [10:44:40]Waiting for new connection... [10:44:40] Sock 9.Parse request [10:44:40]Sock 9.Check first char [10:44:40]Sock 9.First char is OK [10:44:40]request: POST /json_proto HTTP/1.0 [10:44:40]Method: POST [10:44:40]URL: /json_proto [10:44:40]Method is POST - this is cgi request [10:44:40]url: /json_proto [10:44:40]query_string will be loaded in cgi processing [10:44:40]execute_cgi json_proto POST (null) [10:44:40]execute_cgi path=json_proto method=POST [10:44:40]POST find Content-Length [10:44:40]Host: 172.17.56.4:8080 [10:44:40]Content-Length: 791 [10:44:40]Content-Type: application/json [10:44:40] [10:44:40]POST finish read [10:44:40]Found Content-Length = 791 [10:44:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:40]execute_script... [10:44: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)458231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:40]POST & json_proto [10:44:40]process_json_proto [10:44:40]json parsed OK: [10:44:40]protocol is kg_v1.0 [10:44:40]action value=close_receipt [10:44:40]process_action close_receipt [10:44:40]cmd_close_receipt [10:44:40]MH_GetDate [10:44:40]Write to MH i2c: F0 00 00 B5 08 AC [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: F0 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: F0 09 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: F0 09 00 B5 08 00 19 09 91 66 C9 DC B2 64 89 [10:44:40]GetLastDocTimeStamp 1720781008 [10:44:40]current date 1720781081 [10:44:40]FM_GetShiftState [10:44:40]SAM_PROTO_GetShiftState [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 13 01 00 [10:44:40]Write to MH i2c: E2 08 00 B6 08 80 13 01 00 00 00 00 00 3B [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 0E 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 0E 00 B6 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 85 [10:44:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:44:40]wFMCommunicate OK [10:44:40]SAM_PROTO_GetShiftState done [10:44:40]FM_GetShiftState done [10:44:40]opened in 1720744654 [10:44:40]opened+sec_in_day 1720831054 [10:44:40]quantity*price = 65220 [10:44:40]sum+1 = 65221 [10:44:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 69 12.07.2024 10:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164148 ФПД: 117866050490245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104441&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164148&fm=117866050490245&tin=02508201610067®Number=0000000000090829&sum=65220 [10:44:41]StoreToDocumentArchive [10:44:41]shift 445 fd 164148 [10:44:41]save to /storage/0445/doc_00164148 [10:44:41]save last doc name /storage/0445/doc_00164148 to /storage/kkm_last_doc_name [10:44:41]save OK [10:44:41]Clear old archive folders... [10:44:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:41]tlvbuf is 00A07F20 [10:44:41]SAM_PROTO_ClearQueue [10:44:41]wFMCommunicate request_size=4 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 09 00 00 [10:44:41]Write to MH i2c: E2 08 00 C3 08 80 09 00 00 00 00 00 00 3D [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 03 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 03 00 C3 08 00 90 00 3F [10:44:42]RAPDU: 90 00 [10:44:42]wFMCommunicate OK [10:44:42]SAM_PROTO_ClearQueue done [10:44:42]KKMCreateOFDPacket [10:44:42]OFDProtocolAddRootSTLVToBuf [10:44:42]FM_MakeSignedData [10:44:42]FM_MakeSignedData [10:44:42]SAM_PROTO_SignData [10:44:42]wFMCommunicate request_size=4 [10:44:42]MH_SAM_APDU [10:44:42]CAPDU: 80 0D 01 02 [10:44:42]Write to MH i2c: E2 08 00 C4 08 80 0D 01 02 00 00 00 00 45 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 03 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 03 00 C4 08 00 90 00 40 [10:44:42]RAPDU: 90 00 [10:44:42]wFMCommunicate OK [10:44:42]wFMCommunicate request_size=255 [10:44:42]MH_SAM_APDU [10: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 09 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 81 02 00 35 04 06 00 6B [10:44:42]Write to MH i2c: E2 02 01 C5 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 09 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 81 02 00 35 04 06 00 6B 00 00 0F [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 03 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 03 00 C5 08 00 90 00 41 [10:44:42]RAPDU: 90 00 [10:44:42]wFMCommunicate OK [10:44:42]wFMCommunicate request_size=10 [10:44:42]MH_SAM_APDU [10:44:42]CAPDU: 80 0D 02 02 05 32 D4 12 0F 85 [10:44:42]Write to MH i2c: E2 0D 00 C6 08 80 0D 02 02 05 00 32 D4 12 0F 85 00 00 FE [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 03 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 03 00 C6 08 00 90 00 42 [10:44:42]RAPDU: 90 00 [10:44:42]wFMCommunicate OK [10:44:42]wFMCommunicate request_size=4 [10:44:42]MH_SAM_APDU [10:44:42]CAPDU: 80 0D 03 02 [10:44:42]Write to MH i2c: E2 08 00 C7 08 80 0D 03 02 00 00 00 00 4A [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 0B 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 0B 00 C7 08 00 4B 87 01 88 E8 E6 5A DD 90 00 AB [10:44:42]RAPDU: 4B 87 01 88 E8 E6 5A DD 90 00 [10:44:42]wFMCommunicate OK [10:44:42]SAM_PROTO_SignData done [10:44:42]FM_MakeSignedData done [10:44:42]CreateOFDProtocolMessage [10:44:42]wFMCommunicate request_size=4 [10:44:42]MH_SAM_APDU [10:44:42]CAPDU: 80 11 00 00 [10:44:42]Write to MH i2c: E2 08 00 C8 08 80 11 00 00 00 00 00 00 4A [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:42]Read from MH i2c: E2 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 17 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: E2 17 00 C8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [10:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:44:42]wFMCommunicate OK [10:44:42]CreateOFDProtocolMessage done [10:44:42]OFDSenderStorePacket 164148 [10:44:42]StoreOFDPacket docnum=164148 [10:44:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA 26 07 01 41 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 09 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 81 02 00 35 04 06 00 6B 32 D4 12 0F 85 4B 87 01 88 E8 E6 5A DD [10:44:42]CheckFolder [10:44:42]dirname=/storage/ofd_packets [10:44:42]CheckFolder done [10:44:42]ProducePacketName [10:44:42]name=ofd_packets/00164148 [10:44:42]NVStorageSaveData ofd_packets/00164148 [10:44:42]File name is /storage/ofd_packets/00164148 [10:44:42]Write 301 bytes [10:44:42]NVStorageSaveData done [10:44:42]OFDSenderStorePacket done [10:44:42]KKMCreateOFDPacket done [10:44:42]NVStorageSaveData kkm_last_timestamp [10:44:42]File name is /storage/kkm_last_timestamp [10:44:42]Write 4 bytes [10:44:42]NVStorageSaveData done [10:44:42]ExternCall_PrintAddStr [10:44:42]wPrintStart [10:44:42]Write to MH i2c: 01 00 00 C9 08 D1 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 07 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [10:44:42]RasterBufferAndPrint [10:44:42]line Счет N : (1)458231 [10:44:42]line ИНН: 02508201610067 [10:44:42]line Контрольно-Кассовый Чек [10:44:42]line ПРОДАЖА [10:44:42]line ТРК (МРК, ГНК) : 22 [10:44:42]line Товар: 2710124130 [10:44:42]line Аи-92-К-5 [10:44:42]line 10.000 * 65.22 [10:44:42]line = 652.20 [10:44:42]line НДС 12% НСП 1% [10:44:42]line > о реализуемом товаре [10:44:42]line ИТОГО: 652.20 [10:44:42]line НСП 1% : 5.77 [10:44:42]line НДС 12% : 69.26 [10:44:42]line Наличными: 0.00 [10:44:42]line Безнал.: 652.20 [10:44:42]line Место: АЗС № 72 "Партнер Нефть" [10:44:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:44:42]line СНО: Общий режим [10:44:42]line Чек 69 12.07.2024 10:44 [10:44:42]line Смена: 445 ФФД: 1.0 [10:44:42]line ЗНМ: 0300000160 [10:44:42]line РНМ: 0000000000090829 [10:44:42]line Версия ККМ: 001 [10:44:42]line Платежная система: KICB Банк [10:44:42]line ФМ: 0000000000874718 [10:44:42]line ФД: 164148 [10:44:42]line ФПД: 117866050490245 [10:44:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104441&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164148&fm=117866050490245&tin=02508201610067®Number=0000000000090829&sum=65220 [10:44:42]written 0, free lines is 4095 [10:44:42]OFD Sender: Processing packet 164148 [packets to send 104, broken 103] [10:44:42]ProducePacketName [10:44:42]name=ofd_packets/00164148 [10:44:42]OFD Sender: To server: pG, [10:44:42]CommunicateWithHost lk.salyk.kg:30040 [10:44:42]ConnectInit lk.salyk.kg [10:44:42]Connected sock=10 [10:44:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA 26 07 01 41 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 19 09 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 81 02 00 35 04 06 00 6B 32 D4 12 0F 85 4B 87 01 88 E8 E6 5A DD [10:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5B CB 47 00 09 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 81 02 00 F4 03 04 00 AE AF 90 66 B6 04 01 00 00 99 8A 73 24 14 D7 F9 8A [10:44:42]CommunicateWithHost err = 0 [10:44:42]CheckOFDResponse [10:44:42]1017 (14) - 77093643461234 [10:44:42]1041 (16) - 0000000000874718 [10:44:42]1040 (4) - 164148 [10:44:42]1012 (4) - 12.07.2024 04:23 [10:44:42]1206 (1) - 0 [10:44:42]OFD Sender: Remove packet 164148 [10:44:42]ProducePacketName [10:44:42]name=ofd_packets/00164148 [10:44:42]NVStorageDeleteData [10:44:42]Write to MH i2c: 01 00 00 F2 08 FA [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 07 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 07 00 F2 08 00 00 00 00 00 0B 0D 19 [10:44:42]RasterBufferAndPrint [10:44:42]line [10:44:42]line [10:44:42]line [10:44:42]line [10:44:42]line [10:44:42]written 0, free lines is 3345 [10:44:42]MH_Cut [10:44:42]Write to MH i2c: D1 01 00 F9 08 01 D3 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: D1 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: D1 01 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: D1 01 00 F9 08 00 D2 [10:44:42]Write to MH i2c: 01 00 00 FA 08 02 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:43]OFD Sender: No OFD packet to send [10:44:43]*** Cut start [10:44:43]*** Partial cut [10:44:43]*** CUTSNS_PIN = 1 [10:44:43]*** CUTSNS_PIN = 0 [10:44:43]*** Brake cut motor [10:44:44]Read from MH i2c: 01 [10:44:44]MH_I2C_Read... [10:44:44]*** Stop cut motor [10:44:44]*** Cut end [10:44:44]Read from MH i2c: 01 07 00 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: 01 07 00 FA 08 00 00 00 00 00 FF 0F 17 [10:44:44]process_action close_receipt done [10:44:44]requested_data is exist [10:44:44]produce_requested_data [10:44:44]requested_item fm.sn is exist - process it [10:44:44]wFMCommunicate request_size=4 [10:44:44]MH_SAM_APDU [10:44:44]CAPDU: 80 11 00 00 [10:44:44]Write to MH i2c: E2 08 00 FB 08 80 11 00 00 00 00 00 00 7D [10:44:44]Write i2c OK [10:44:44]MH_I2C_Read... [10:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:44]Read from MH i2c: E2 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 17 00 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 17 00 FB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [10:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:44:44]wFMCommunicate OK [10:44:44]requested_item fd.num is exist - process it [10:44:44]SAM_PROTO_GetFieldsCounters [10:44:44]wFMCommunicate request_size=4 [10:44:44]MH_SAM_APDU [10:44:44]CAPDU: 80 13 00 00 [10:44:44]Write to MH i2c: E2 08 00 FC 08 80 13 00 00 00 00 00 00 80 [10:44:44]Write i2c OK [10:44:44]MH_I2C_Read... [10:44:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:44]Read from MH i2c: E2 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 62 00 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 62 00 FC 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [10:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:44]wFMCommunicate OK [10:44:44]SAM_PROTO_GetFieldsCounters done [10:44:44]requested_item shift.num is exist - process it [10:44:44]requested_item shift.opened is exist - process it [10:44:44]req_shift_opened [10:44:44]FM_GetShiftState [10:44:44]SAM_PROTO_GetShiftState [10:44:44]wFMCommunicate request_size=4 [10:44:44]MH_SAM_APDU [10:44:44]CAPDU: 80 13 01 00 [10:44:44]Write to MH i2c: E2 08 00 FD 08 80 13 01 00 00 00 00 00 82 [10:44:44]Write i2c OK [10:44:44]MH_I2C_Read... [10:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:44]Read from MH i2c: E2 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 0E 00 [10:44:44]MH_I2C_Read... [10:44:44]Read from MH i2c: E2 0E 00 FD 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CC [10:44:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:44:44]wFMCommunicate OK [10:44:44]SAM_PROTO_GetShiftState done [10:44:44]FM_GetShiftState done [10:44:44]req_shift_opened done [10:44:44]requested_item shift.open_date is exist - process it [10:44:44]req_shift_open_date [10:44:44]req_shift_open_date done [10:44:44]produce_requested_data done [10:44:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164148,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:44:44]process_action_free close_receipt [10:44:44]json_value_free [10:44:44]json_value_free done [10:44:44]process_json_proto returns [10:44:44]Send response to host [10:44:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164148,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:44:44]free response buf [10:44:44]execute_script done [10:44:44]execute_script returns [10:44:44]free content buf [10:44:44]Sock 9.Close socket [10:44:44]Sock 9.Thread stoped [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]accept exits with 7 [10:47:43]New connection [10:47:43]New thread 3066850660 created [10:47:43]Thread 3066707300 joined [10:47:43]Waiting for new connection... [10:47:43] Sock 7.Parse request [10:47:43]Sock 7.Check first char [10:47:43]Sock 7.First char is OK [10:47:43]request: POST /json_proto HTTP/1.0 [10:47:43]Method: POST [10:47:43]URL: /json_proto [10:47:43]Method is POST - this is cgi request [10:47:43]url: /json_proto [10:47:43]query_string will be loaded in cgi processing [10:47:43]execute_cgi json_proto POST (null) [10:47:43]execute_cgi path=json_proto method=POST [10:47:43]POST find Content-Length [10:47:43]Host: 172.17.56.4:8080 [10:47:43]Content-Length: 677 [10:47:43]Content-Type: application/json [10:47:43] [10:47:43]POST finish read [10:47:43]Found Content-Length = 677 [10:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.260, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:43]execute_script... [10:47:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.260, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:43]POST & json_proto [10:47:43]process_json_proto [10:47:43]json parsed OK: [10:47:43]protocol is kg_v1.0 [10:47:43]action value=close_receipt [10:47:43]process_action close_receipt [10:47:43]cmd_close_receipt [10:47:43]MH_GetDate [10:47:43]Write to MH i2c: F0 00 00 FE 08 F5 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: F0 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: F0 09 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: F0 09 00 FE 08 00 D0 09 91 66 C9 DC B2 64 89 [10:47:43]GetLastDocTimeStamp 1720781081 [10:47:43]current date 1720781264 [10:47:43]FM_GetShiftState [10:47:43]SAM_PROTO_GetShiftState [10:47:43]wFMCommunicate request_size=4 [10:47:43]MH_SAM_APDU [10:47:43]CAPDU: 80 13 01 00 [10:47:43]Write to MH i2c: E2 08 00 FF 08 80 13 01 00 00 00 00 00 84 [10:47:43]Write i2c OK [10:47:43]MH_I2C_Read... [10:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:43]Read from MH i2c: E2 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 0E 00 [10:47:43]MH_I2C_Read... [10:47:43]Read from MH i2c: E2 0E 00 FF 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CE [10:47:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:47:43]wFMCommunicate OK [10:47:43]SAM_PROTO_GetShiftState done [10:47:43]FM_GetShiftState done [10:47:43]opened in 1720744654 [10:47:43]opened+sec_in_day 1720831054 [10:47:43]quantity*price = 28030 [10:47:43]sum+1 = 28032 [10:47:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 70 12.07.2024 10:47 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164149 ФПД: 61169829985108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104744&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164149&fm=61169829985108&tin=02508201610067®Number=0000000000090829&sum=28000 [10:47:44]StoreToDocumentArchive [10:47:44]shift 445 fd 164149 [10:47:44]save to /storage/0445/doc_00164149 [10:47:44]save last doc name /storage/0445/doc_00164149 to /storage/kkm_last_doc_name [10:47:44]save OK [10:47:44]Clear old archive folders... [10:47:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:44]tlvbuf is 00A13A70 [10:47:44]SAM_PROTO_ClearQueue [10:47:44]wFMCommunicate request_size=4 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 09 00 00 [10:47:44]Write to MH i2c: E2 08 00 0C 09 80 09 00 00 00 00 00 00 87 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 0C 09 00 90 00 89 [10:47:44]RAPDU: 90 00 [10:47:44]wFMCommunicate OK [10:47:44]SAM_PROTO_ClearQueue done [10:47:44]KKMCreateOFDPacket [10:47:44]OFDProtocolAddRootSTLVToBuf [10:47:44]FM_MakeSignedData [10:47:44]FM_MakeSignedData [10:47:44]SAM_PROTO_SignData [10:47:44]wFMCommunicate request_size=4 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 0D 01 02 [10:47:44]Write to MH i2c: E2 08 00 0D 09 80 0D 01 02 00 00 00 00 8F [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 0D 09 00 90 00 8A [10:47:44]RAPDU: 90 00 [10:47:44]wFMCommunicate OK [10:47:44]wFMCommunicate request_size=255 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D0 09 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 81 02 00 35 04 06 00 37 [10:47:44]Write to MH i2c: E2 02 01 0E 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D0 09 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 81 02 00 35 04 06 00 37 00 00 0D [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 0E 09 00 90 00 8B [10:47:44]RAPDU: 90 00 [10:47:44]wFMCommunicate OK [10:47:44]wFMCommunicate request_size=10 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 0D 02 02 05 A2 35 FC BB 54 [10:47:44]Write to MH i2c: E2 0D 00 0F 09 80 0D 02 02 05 00 A2 35 FC BB 54 00 00 7E [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 03 00 0F 09 00 90 00 8C [10:47:44]RAPDU: 90 00 [10:47:44]wFMCommunicate OK [10:47:44]wFMCommunicate request_size=4 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 0D 03 02 [10:47:44]Write to MH i2c: E2 08 00 10 09 80 0D 03 02 00 00 00 00 94 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 0B 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 0B 00 10 09 00 DD FE C1 F4 7F 98 CF 9E 90 00 A9 [10:47:44]RAPDU: DD FE C1 F4 7F 98 CF 9E 90 00 [10:47:44]wFMCommunicate OK [10:47:44]SAM_PROTO_SignData done [10:47:44]FM_MakeSignedData done [10:47:44]CreateOFDProtocolMessage [10:47:44]wFMCommunicate request_size=4 [10:47:44]MH_SAM_APDU [10:47:44]CAPDU: 80 11 00 00 [10:47:44]Write to MH i2c: E2 08 00 11 09 80 11 00 00 00 00 00 00 94 [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:44]Read from MH i2c: E2 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 17 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: E2 17 00 11 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EA [10:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:47:44]wFMCommunicate OK [10:47:44]CreateOFDProtocolMessage done [10:47:44]OFDSenderStorePacket 164149 [10:47:44]StoreOFDPacket docnum=164149 [10:47:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 58 4A 07 01 13 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D0 09 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 81 02 00 35 04 06 00 37 A2 35 FC BB 54 DD FE C1 F4 7F 98 CF 9E [10:47:44]CheckFolder [10:47:44]dirname=/storage/ofd_packets [10:47:44]CheckFolder done [10:47:44]ProducePacketName [10:47:44]name=ofd_packets/00164149 [10:47:44]NVStorageSaveData ofd_packets/00164149 [10:47:44]File name is /storage/ofd_packets/00164149 [10:47:44]Write 301 bytes [10:47:44]NVStorageSaveData done [10:47:44]OFDSenderStorePacket done [10:47:44]KKMCreateOFDPacket done [10:47:44]NVStorageSaveData kkm_last_timestamp [10:47:44]File name is /storage/kkm_last_timestamp [10:47:44]Write 4 bytes [10:47:44]NVStorageSaveData done [10:47:44]ExternCall_PrintAddStr [10:47:44]wPrintStart [10:47:44]Write to MH i2c: 01 00 00 12 09 1B [10:47:44]Write i2c OK [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: 01 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: 01 07 00 [10:47:44]MH_I2C_Read... [10:47:44]Read from MH i2c: 01 07 00 12 09 00 00 00 00 00 FF 0F 30 [10:47:44]RasterBufferAndPrint [10:47:44]line Счет N : (1)458232 [10:47:44]line ИНН: 02508201610067 [10:47:44]line Контрольно-Кассовый Чек [10:47:44]line ПРОДАЖА [10:47:44]line ТРК (МРК, ГНК) : 22 [10:47:44]line Товар: 2710124130 [10:47:44]line Аи-92-К-5 [10:47:44]line 4.260 * 65.80 [10:47:44]line = 280.31 [10:47:44]line НДС 12% НСП 1% [10:47:44]line > о реализуемом товаре [10:47:44]line ОКРУГЛЕНИЕ: -0.31 [10:47:44]line ИТОГО: 280.00 [10:47:44]line Внесено: 280.00 [10:47:44]line СДАЧА: 0.00 [10:47:44]line НСП 1% : 2.48 [10:47:44]line НДС 12% : 29.77 [10:47:44]line Наличными: 280.00 [10:47:44]line Безнал.: 0.00 [10:47:44]line Место: АЗС № 72 "Партнер Нефть" [10:47:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:47:44]line СНО: Общий режим [10:47:44]line Чек 70 12.07.2024 10:47 [10:47:44]line Смена: 445 ФФД: 1.0 [10:47:44]line ЗНМ: 0300000160 [10:47:44]line РНМ: 0000000000090829 [10:47:44]line Версия ККМ: 001 [10:47:44]line ФМ: 0000000000874718 [10:47:44]line ФД: 164149 [10:47:44]line ФПД: 61169829985108 [10:47:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104744&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164149&fm=61169829985108&tin=02508201610067®Number=0000000000090829&sum=28000 [10:47:45]written 0, free lines is 4095 [10:47:45]OFD Sender: Processing packet 164149 [packets to send 104, broken 103] [10:47:45]ProducePacketName [10:47:45]name=ofd_packets/00164149 [10:47:45]OFD Sender: To server: pG, [10:47:45]CommunicateWithHost lk.salyk.kg:30040 [10:47:45]ConnectInit lk.salyk.kg [10:47:45]Connected sock=9 [10:47:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 58 4A 07 01 13 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D0 09 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 81 02 00 35 04 06 00 37 A2 35 FC BB 54 DD FE C1 F4 7F 98 CF 9E [10:47:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AC EE 47 00 53 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 34 37 31 38 10 04 04 00 35 81 02 00 F4 03 04 00 64 B0 90 66 B6 04 01 00 00 17 0A 6B 25 B6 0A FA DF [10:47:45]CommunicateWithHost err = 0 [10:47:45]CheckOFDResponse [10:47:45]1017 (14) - 77093643461234 [10:47:45]1041 (16) - 0000000000874718 [10:47:45]1040 (4) - 164149 [10:47:45]1012 (4) - 12.07.2024 04:26 [10:47:45]1206 (1) - 0 [10:47:45]OFD Sender: Remove packet 164149 [10:47:45]ProducePacketName [10:47:45]name=ofd_packets/00164149 [10:47:45]NVStorageDeleteData [10:47:45]Write to MH i2c: 01 00 00 3C 09 45 [10:47:45]Write i2c OK [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: 01 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: 01 07 00 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: 01 07 00 3C 09 00 00 00 00 00 02 0D 5B [10:47:45]RasterBufferAndPrint [10:47:45]line [10:47:45]line [10:47:45]line [10:47:45]line [10:47:45]line [10:47:45]written 0, free lines is 3336 [10:47:45]MH_Cut [10:47:45]Write to MH i2c: D1 01 00 43 09 01 1E [10:47:45]Write i2c OK [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: D1 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: D1 01 00 [10:47:45]MH_I2C_Read... [10:47:45]Read from MH i2c: D1 01 00 43 09 00 1D [10:47:45]Write to MH i2c: 01 00 00 44 09 4D [10:47:45]Write i2c OK [10:47:45]MH_I2C_Read... [10:47:46]OFD Sender: No OFD packet to send [10:47:46]*** Cut start [10:47:46]*** Partial cut [10:47:46]*** CUTSNS_PIN = 1 [10:47:46]*** CUTSNS_PIN = 0 [10:47:46]*** Brake cut motor [10:47:47]Read from MH i2c: 01 [10:47:47]MH_I2C_Read... [10:47:47]*** Stop cut motor [10:47:47]*** Cut end [10:47:47]Read from MH i2c: 01 07 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: 01 07 00 44 09 00 00 00 00 00 FF 0F 62 [10:47:47]process_action close_receipt done [10:47:47]requested_data is exist [10:47:47]produce_requested_data [10:47:47]requested_item fm.sn is exist - process it [10:47:47]wFMCommunicate request_size=4 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 11 00 00 [10:47:47]Write to MH i2c: E2 08 00 45 09 80 11 00 00 00 00 00 00 C8 [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 17 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 17 00 45 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [10:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:47:47]wFMCommunicate OK [10:47:47]requested_item fd.num is exist - process it [10:47:47]SAM_PROTO_GetFieldsCounters [10:47:47]wFMCommunicate request_size=4 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 13 00 00 [10:47:47]Write to MH i2c: E2 08 00 46 09 80 13 00 00 00 00 00 00 CB [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 62 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 62 00 46 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [10:47:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:47]wFMCommunicate OK [10:47:47]SAM_PROTO_GetFieldsCounters done [10:47:47]requested_item shift.num is exist - process it [10:47:47]requested_item shift.opened is exist - process it [10:47:47]req_shift_opened [10:47:47]FM_GetShiftState [10:47:47]SAM_PROTO_GetShiftState [10:47:47]wFMCommunicate request_size=4 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 13 01 00 [10:47:47]Write to MH i2c: E2 08 00 47 09 80 13 01 00 00 00 00 00 CD [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 0E 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 0E 00 47 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 17 [10:47:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:47:47]wFMCommunicate OK [10:47:47]SAM_PROTO_GetShiftState done [10:47:47]FM_GetShiftState done [10:47:47]req_shift_opened done [10:47:47]requested_item shift.open_date is exist - process it [10:47:47]req_shift_open_date [10:47:47]req_shift_open_date done [10:47:47]produce_requested_data done [10:47:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164149,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:47:47]process_action_free close_receipt [10:47:47]json_value_free [10:47:47]json_value_free done [10:47:47]process_json_proto returns [10:47:47]Send response to host [10:47:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164149,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:47:47]free response buf [10:47:47]execute_script done [10:47:47]execute_script returns [10:47:47]free content buf [10:47:47]Sock 7.Close socket [10:47:47]Sock 7.Thread stoped [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:40]accept exits with 10 [10:48:40]New connection [10:48:40]New thread 3066707300 created [10:48:40]Thread 3066850660 joined [10:48:40]Waiting for new connection... [10:48:40] Sock 10.Parse request [10:48:40]Sock 10.Check first char [10:48:40]Sock 10.First char is OK [10:48:40]request: POST /json_proto HTTP/1.0 [10:48:40]Method: POST [10:48:40]URL: /json_proto [10:48:40]Method is POST - this is cgi request [10:48:40]url: /json_proto [10:48:40]query_string will be loaded in cgi processing [10:48:40]execute_cgi json_proto POST (null) [10:48:40]execute_cgi path=json_proto method=POST [10:48:40]POST find Content-Length [10:48:40]Host: 172.17.56.4:8080 [10:48:40]Content-Length: 639 [10:48:40]Content-Type: application/json [10:48:40] [10:48:40]POST finish read [10:48:40]Found Content-Length = 639 [10:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:40]execute_script... [10:48: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)458233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:40]POST & json_proto [10:48:40]process_json_proto [10:48:40]json parsed OK: [10:48:40]protocol is kg_v1.0 [10:48:40]action value=close_receipt [10:48:40]process_action close_receipt [10:48:40]cmd_close_receipt [10:48:40]MH_GetDate [10:48:40]Write to MH i2c: F0 00 00 48 09 40 [10:48:40]Write i2c OK [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: F0 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: F0 09 00 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: F0 09 00 48 09 00 09 0A 91 66 C9 DC B2 64 0E [10:48:40]GetLastDocTimeStamp 1720781264 [10:48:40]current date 1720781321 [10:48:40]FM_GetShiftState [10:48:40]SAM_PROTO_GetShiftState [10:48:40]wFMCommunicate request_size=4 [10:48:40]MH_SAM_APDU [10:48:40]CAPDU: 80 13 01 00 [10:48:40]Write to MH i2c: E2 08 00 49 09 80 13 01 00 00 00 00 00 CF [10:48:40]Write i2c OK [10:48:40]MH_I2C_Read... [10:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:40]Read from MH i2c: E2 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: E2 0E 00 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: E2 0E 00 49 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 19 [10:48:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:48:40]wFMCommunicate OK [10:48:40]SAM_PROTO_GetShiftState done [10:48:40]FM_GetShiftState done [10:48:40]opened in 1720744654 [10:48:40]opened+sec_in_day 1720831054 [10:48:40]quantity*price = 32900 [10:48:40]sum+1 = 32901 [10:48:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 71 12.07.2024 10:48 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164150 ФПД: 15806401568391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104841&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164150&fm=15806401568391&tin=02508201610067®Number=0000000000090829&sum=32900 [10:48:41]StoreToDocumentArchive [10:48:41]shift 445 fd 164150 [10:48:41]save to /storage/0445/doc_00164150 [10:48:41]save last doc name /storage/0445/doc_00164150 to /storage/kkm_last_doc_name [10:48:41]save OK [10:48:41]Clear old archive folders... [10:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:41]tlvbuf is B6EC1720 [10:48:41]SAM_PROTO_ClearQueue [10:48:41]wFMCommunicate request_size=4 [10:48:41]MH_SAM_APDU [10:48:41]CAPDU: 80 09 00 00 [10:48:41]Write to MH i2c: E2 08 00 56 09 80 09 00 00 00 00 00 00 D1 [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:41]Read from MH i2c: E2 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 03 00 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 03 00 56 09 00 90 00 D3 [10:48:41]RAPDU: 90 00 [10:48:41]wFMCommunicate OK [10:48:41]SAM_PROTO_ClearQueue done [10:48:41]KKMCreateOFDPacket [10:48:41]OFDProtocolAddRootSTLVToBuf [10:48:41]FM_MakeSignedData [10:48:41]FM_MakeSignedData [10:48:41]SAM_PROTO_SignData [10:48:41]wFMCommunicate request_size=4 [10:48:41]MH_SAM_APDU [10:48:41]CAPDU: 80 0D 01 02 [10:48:41]Write to MH i2c: E2 08 00 57 09 80 0D 01 02 00 00 00 00 D9 [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:41]Read from MH i2c: E2 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 03 00 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 03 00 57 09 00 90 00 D4 [10:48:41]RAPDU: 90 00 [10:48:41]wFMCommunicate OK [10:48:41]wFMCommunicate request_size=255 [10:48:41]MH_SAM_APDU [10:48: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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 09 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 81 02 00 35 04 06 00 0E [10:48:41]Write to MH i2c: E2 02 01 58 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 09 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 81 02 00 35 04 06 00 0E 00 00 0A [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:41]Read from MH i2c: E2 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 03 00 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [10:48:41]RAPDU: 90 00 [10:48:41]wFMCommunicate OK [10:48:41]wFMCommunicate request_size=10 [10:48:41]MH_SAM_APDU [10:48:41]CAPDU: 80 0D 02 02 05 60 36 F3 5E 87 [10:48:41]Write to MH i2c: E2 0D 00 59 09 80 0D 02 02 05 00 60 36 F3 5E 87 00 00 54 [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:41]Read from MH i2c: E2 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 03 00 [10:48:41]MH_I2C_Read... [10:48:41]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [10:48:41]RAPDU: 90 00 [10:48:41]wFMCommunicate OK [10:48:41]wFMCommunicate request_size=4 [10:48:41]MH_SAM_APDU [10:48:41]CAPDU: 80 0D 03 02 [10:48:41]Write to MH i2c: E2 08 00 5A 09 80 0D 03 02 00 00 00 00 DE [10:48:41]Write i2c OK [10:48:41]MH_I2C_Read... [10:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:42]Read from MH i2c: E2 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: E2 0B 00 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: E2 0B 00 5A 09 00 ED F5 27 43 00 2F 19 C6 90 00 39 [10:48:42]RAPDU: ED F5 27 43 00 2F 19 C6 90 00 [10:48:42]wFMCommunicate OK [10:48:42]SAM_PROTO_SignData done [10:48:42]FM_MakeSignedData done [10:48:42]CreateOFDProtocolMessage [10:48:42]wFMCommunicate request_size=4 [10:48:42]MH_SAM_APDU [10:48:42]CAPDU: 80 11 00 00 [10:48:42]Write to MH i2c: E2 08 00 5B 09 80 11 00 00 00 00 00 00 DE [10:48:42]Write i2c OK [10:48:42]MH_I2C_Read... [10:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:42]Read from MH i2c: E2 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: E2 17 00 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: E2 17 00 5B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [10:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:48:42]wFMCommunicate OK [10:48:42]CreateOFDProtocolMessage done [10:48:42]OFDSenderStorePacket 164150 [10:48:42]StoreOFDPacket docnum=164150 [10:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 22 07 01 F5 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 09 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 81 02 00 35 04 06 00 0E 60 36 F3 5E 87 ED F5 27 43 00 2F 19 C6 [10:48:42]CheckFolder [10:48:42]dirname=/storage/ofd_packets [10:48:42]CheckFolder done [10:48:42]ProducePacketName [10:48:42]name=ofd_packets/00164150 [10:48:42]NVStorageSaveData ofd_packets/00164150 [10:48:42]File name is /storage/ofd_packets/00164150 [10:48:42]Write 301 bytes [10:48:42]NVStorageSaveData done [10:48:42]OFDSenderStorePacket done [10:48:42]KKMCreateOFDPacket done [10:48:42]NVStorageSaveData kkm_last_timestamp [10:48:42]File name is /storage/kkm_last_timestamp [10:48:42]Write 4 bytes [10:48:42]NVStorageSaveData done [10:48:42]ExternCall_PrintAddStr [10:48:42]wPrintStart [10:48:42]Write to MH i2c: 01 00 00 5C 09 65 [10:48:42]Write i2c OK [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: 01 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: 01 07 00 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 FF 0F 7A [10:48:42]RasterBufferAndPrint [10:48:42]line Счет N : (1)458233 [10:48:42]line ИНН: 02508201610067 [10:48:42]line Контрольно-Кассовый Чек [10:48:42]line ПРОДАЖА [10:48:42]line ТРК (МРК, ГНК) : 12 [10:48:42]line Товар: 2710124130 [10:48:42]line Аи-92-К-5 [10:48:42]line 5.000 * 65.80 [10:48:42]line = 329.00 [10:48:42]line НДС 12% НСП 1% [10:48:42]line > о реализуемом товаре [10:48:42]line ИТОГО: 329.00 [10:48:42]line НСП 1% : 2.91 [10:48:42]line НДС 12% : 34.94 [10:48:42]line Наличными: 329.00 [10:48:42]line Безнал.: 0.00 [10:48:42]line Место: АЗС № 72 "Партнер Нефть" [10:48:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:48:42]line СНО: Общий режим [10:48:42]line Чек 71 12.07.2024 10:48 [10:48:42]line Смена: 445 ФФД: 1.0 [10:48:42]line ЗНМ: 0300000160 [10:48:42]line РНМ: 0000000000090829 [10:48:42]line Версия ККМ: 001 [10:48:42]line ФМ: 0000000000874718 [10:48:42]line ФД: 164150 [10:48:42]line ФПД: 15806401568391 [10:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104841&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164150&fm=15806401568391&tin=02508201610067®Number=0000000000090829&sum=32900 [10:48:42]OFD Sender: Processing packet 164150 [packets to send 104, broken 103] [10:48:42]ProducePacketName [10:48:42]name=ofd_packets/00164150 [10:48:42]OFD Sender: To server: pG, [10:48:42]CommunicateWithHost lk.salyk.kg:30040 [10:48:42]ConnectInit lk.salyk.kg [10:48:42]written 0, free lines is 4095 [10:48:42]Connected sock=9 [10:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 22 07 01 F5 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 09 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 81 02 00 35 04 06 00 0E 60 36 F3 5E 87 ED F5 27 43 00 2F 19 C6 [10:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 60 C3 47 00 B9 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 34 37 31 38 10 04 04 00 36 81 02 00 F4 03 04 00 9D B0 90 66 B6 04 01 00 00 37 57 78 CB AE 98 E5 95 [10:48:42]CommunicateWithHost err = 0 [10:48:42]CheckOFDResponse [10:48:42]1017 (14) - 77093643461234 [10:48:42]1041 (16) - 0000000000874718 [10:48:42]1040 (4) - 164150 [10:48:42]1012 (4) - 12.07.2024 04:27 [10:48:42]1206 (1) - 0 [10:48:42]OFD Sender: Remove packet 164150 [10:48:42]ProducePacketName [10:48:42]name=ofd_packets/00164150 [10:48:42]NVStorageDeleteData [10:48:42]Write to MH i2c: 01 00 00 83 09 8C [10:48:42]Write i2c OK [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: 01 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: 01 07 00 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: 01 07 00 83 09 00 00 00 00 00 27 0D C7 [10:48:42]RasterBufferAndPrint [10:48:42]line [10:48:42]line [10:48:42]line [10:48:42]line [10:48:42]line [10:48:42]written 0, free lines is 3373 [10:48:42]MH_Cut [10:48:42]Write to MH i2c: D1 01 00 8A 09 01 65 [10:48:42]Write i2c OK [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: D1 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: D1 01 00 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: D1 01 00 8A 09 00 64 [10:48:42]Write to MH i2c: 01 00 00 8B 09 94 [10:48:42]Write i2c OK [10:48:42]MH_I2C_Read... [10:48:43]OFD Sender: No OFD packet to send [10:48:43]*** Cut start [10:48:43]*** Partial cut [10:48:43]*** CUTSNS_PIN = 1 [10:48:43]*** CUTSNS_PIN = 0 [10:48:43]*** Brake cut motor [10:48:44]Read from MH i2c: 01 [10:48:44]MH_I2C_Read... [10:48:44]*** Stop cut motor [10:48:44]*** Cut end [10:48:44]Read from MH i2c: 01 07 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 07 00 8B 09 00 00 00 00 00 FF 0F A9 [10:48:44]process_action close_receipt done [10:48:44]requested_data is exist [10:48:44]produce_requested_data [10:48:44]requested_item fm.sn is exist - process it [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 11 00 00 [10:48:44]Write to MH i2c: E2 08 00 8C 09 80 11 00 00 00 00 00 00 0F [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 17 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 17 00 8C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [10:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:48:44]wFMCommunicate OK [10:48:44]requested_item fd.num is exist - process it [10:48:44]SAM_PROTO_GetFieldsCounters [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 13 00 00 [10:48:44]Write to MH i2c: E2 08 00 8D 09 80 13 00 00 00 00 00 00 12 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 62 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 62 00 8D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10:48: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:44]wFMCommunicate OK [10:48:44]SAM_PROTO_GetFieldsCounters done [10:48:44]requested_item shift.num is exist - process it [10:48:44]requested_item shift.opened is exist - process it [10:48:44]req_shift_opened [10:48:44]FM_GetShiftState [10:48:44]SAM_PROTO_GetShiftState [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 13 01 00 [10:48:44]Write to MH i2c: E2 08 00 8E 09 80 13 01 00 00 00 00 00 14 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 0E 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 0E 00 8E 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5E [10:48:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:48:44]wFMCommunicate OK [10:48:44]SAM_PROTO_GetShiftState done [10:48:44]FM_GetShiftState done [10:48:44]req_shift_opened done [10:48:44]requested_item shift.open_date is exist - process it [10:48:44]req_shift_open_date [10:48:44]req_shift_open_date done [10:48:44]produce_requested_data done [10:48:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164150,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:48:44]process_action_free close_receipt [10:48:44]json_value_free [10:48:44]json_value_free done [10:48:44]process_json_proto returns [10:48:44]Send response to host [10:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164150,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:48:44]free response buf [10:48:44]execute_script done [10:48:44]execute_script returns [10:48:44]free content buf [10:48:44]Sock 10.Close socket [10:48:44]Sock 10.Thread stoped [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:51]accept exits with 7 [10:49:51]New connection [10:49:51]New thread 3066850660 created [10:49:51]Thread 3066707300 joined [10:49:51]Waiting for new connection... [10:49:51] Sock 7.Parse request [10:49:51]Sock 7.Check first char [10:49:51]Sock 7.First char is OK [10:49:51]request: POST /json_proto HTTP/1.0 [10:49:51]Method: POST [10:49:51]URL: /json_proto [10:49:51]Method is POST - this is cgi request [10:49:51]url: /json_proto [10:49:51]query_string will be loaded in cgi processing [10:49:51]execute_cgi json_proto POST (null) [10:49:51]execute_cgi path=json_proto method=POST [10:49:51]POST find Content-Length [10:49:51]Host: 172.17.56.4:8080 [10:49:51]Content-Length: 677 [10:49:51]Content-Type: application/json [10:49:51] [10:49:51]POST finish read [10:49:51]Found Content-Length = 677 [10:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.390, "sum" : 420.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:51]execute_script... [10:49: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)458235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.390, "sum" : 420.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:51]POST & json_proto [10:49:51]process_json_proto [10:49:51]json parsed OK: [10:49:51]protocol is kg_v1.0 [10:49:51]action value=close_receipt [10:49:51]process_action close_receipt [10:49:51]cmd_close_receipt [10:49:51]MH_GetDate [10:49:51]Write to MH i2c: F0 00 00 8F 09 87 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: F0 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: F0 09 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: F0 09 00 8F 09 00 50 0A 91 66 C9 DC B2 64 9C [10:49:51]GetLastDocTimeStamp 1720781321 [10:49:51]current date 1720781392 [10:49:51]FM_GetShiftState [10:49:51]SAM_PROTO_GetShiftState [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 01 00 [10:49:51]Write to MH i2c: E2 08 00 90 09 80 13 01 00 00 00 00 00 16 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 90 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 60 [10:49:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetShiftState done [10:49:51]FM_GetShiftState done [10:49:51]opened in 1720744654 [10:49:51]opened+sec_in_day 1720831054 [10:49:51]quantity*price = 42046 [10:49:51]sum+1 = 42047 [10:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.65 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 72 12.07.2024 10:49 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164151 ФПД: 70569630347730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104952&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164151&fm=70569630347730&tin=02508201610067®Number=0000000000090829&sum=42000 [10:49:52]StoreToDocumentArchive [10:49:52]shift 445 fd 164151 [10:49:52]save to /storage/0445/doc_00164151 [10:49:52]save last doc name /storage/0445/doc_00164151 to /storage/kkm_last_doc_name [10:49:52]save OK [10:49:52]Clear old archive folders... [10:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:52]tlvbuf is 009E1DC0 [10:49:52]SAM_PROTO_ClearQueue [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 09 00 00 [10:49:52]Write to MH i2c: E2 08 00 9D 09 80 09 00 00 00 00 00 00 18 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 9D 09 00 90 00 1A [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_ClearQueue done [10:49:52]KKMCreateOFDPacket [10:49:52]OFDProtocolAddRootSTLVToBuf [10:49:52]FM_MakeSignedData [10:49:52]FM_MakeSignedData [10:49:52]SAM_PROTO_SignData [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 01 02 [10:49:52]Write to MH i2c: E2 08 00 9E 09 80 0D 01 02 00 00 00 00 20 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 9E 09 00 90 00 1B [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]wFMCommunicate request_size=255 [10:49:52]MH_SAM_APDU [10:49: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 F6 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3E A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 50 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 81 02 00 35 04 06 00 40 [10:49:52]Write to MH i2c: E2 02 01 9F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3E A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 50 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 81 02 00 35 04 06 00 40 00 00 9D [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 9F 09 00 90 00 1C [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]wFMCommunicate request_size=10 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 02 02 05 2E C5 BF B1 D2 [10:49:52]Write to MH i2c: E2 0D 00 A0 09 80 0D 02 02 05 00 2E C5 BF B1 D2 00 00 62 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 A0 09 00 90 00 1D [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 03 02 [10:49:52]Write to MH i2c: E2 08 00 A1 09 80 0D 03 02 00 00 00 00 25 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0B 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0B 00 A1 09 00 FF B2 AE B9 6A F5 4D C3 90 00 AD [10:49:52]RAPDU: FF B2 AE B9 6A F5 4D C3 90 00 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_SignData done [10:49:52]FM_MakeSignedData done [10:49:52]CreateOFDProtocolMessage [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 11 00 00 [10:49:52]Write to MH i2c: E2 08 00 A2 09 80 11 00 00 00 00 00 00 25 [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:53]Read from MH i2c: E2 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 17 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: E2 17 00 A2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [10:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:49:53]wFMCommunicate OK [10:49:53]CreateOFDProtocolMessage done [10:49:53]OFDSenderStorePacket 164151 [10:49:53]StoreOFDPacket docnum=164151 [10:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A6 E1 07 01 2D 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 F6 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3E A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 50 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 81 02 00 35 04 06 00 40 2E C5 BF B1 D2 FF B2 AE B9 6A F5 4D C3 [10:49:53]CheckFolder [10:49:53]dirname=/storage/ofd_packets [10:49:53]CheckFolder done [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00164151 [10:49:53]NVStorageSaveData ofd_packets/00164151 [10:49:53]File name is /storage/ofd_packets/00164151 [10:49:53]Write 301 bytes [10:49:53]NVStorageSaveData done [10:49:53]OFDSenderStorePacket done [10:49:53]KKMCreateOFDPacket done [10:49:53]NVStorageSaveData kkm_last_timestamp [10:49:53]File name is /storage/kkm_last_timestamp [10:49:53]Write 4 bytes [10:49:53]NVStorageSaveData done [10:49:53]ExternCall_PrintAddStr [10:49:53]wPrintStart [10:49:53]Write to MH i2c: 01 00 00 A3 09 AC [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 A3 09 00 00 00 00 00 FF 0F C1 [10:49:53]RasterBufferAndPrint [10:49:53]line Счет N : (1)458235 [10:49:53]line ИНН: 02508201610067 [10:49:53]line Контрольно-Кассовый Чек [10:49:53]line ПРОДАЖА [10:49:53]line ТРК (МРК, ГНК) : 22 [10:49:53]line Товар: 2710124130 [10:49:53]line Аи-92-К-5 [10:49:53]line 6.390 * 65.80 [10:49:53]line = 420.46 [10:49:53]line НДС 12% НСП 1% [10:49:53]line > о реализуемом товаре [10:49:53]line ОКРУГЛЕНИЕ: -0.46 [10:49:53]line ИТОГО: 420.00 [10:49:53]line Внесено: 420.00 [10:49:53]line СДАЧА: 0.00 [10:49:53]line НСП 1% : 3.72 [10:49:53]line НДС 12% : 44.65 [10:49:53]line Наличными: 420.00 [10:49:53]line Безнал.: 0.00 [10:49:53]line Место: АЗС № 72 "Партнер Нефть" [10:49:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:49:53]line СНО: Общий режим [10:49:53]line Чек 72 12.07.2024 10:49 [10:49:53]line Смена: 445 ФФД: 1.0 [10:49:53]line ЗНМ: 0300000160 [10:49:53]line РНМ: 0000000000090829 [10:49:53]line Версия ККМ: 001 [10:49:53]line ФМ: 0000000000874718 [10:49:53]line ФД: 164151 [10:49:53]line ФПД: 70569630347730 [10:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T104952&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164151&fm=70569630347730&tin=02508201610067®Number=0000000000090829&sum=42000 [10:49:53]OFD Sender: Processing packet 164151 [packets to send 104, broken 103] [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00164151 [10:49:53]OFD Sender: To server: pG, [10:49:53]CommunicateWithHost lk.salyk.kg:30040 [10:49:53]ConnectInit lk.salyk.kg [10:49:53]written 0, free lines is 4095 [10:49:53]Connected sock=10 [10:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A6 E1 07 01 2D 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 F6 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3E A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 50 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 81 02 00 35 04 06 00 40 2E C5 BF B1 D2 FF B2 AE B9 6A F5 4D C3 [10:49:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0C 39 47 00 99 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 34 37 31 38 10 04 04 00 37 81 02 00 F4 03 04 00 E4 B0 90 66 B6 04 01 00 00 53 51 54 FA 9E 8A C5 72 [10:49:53]CommunicateWithHost err = 0 [10:49:53]CheckOFDResponse [10:49:53]1017 (14) - 77093643461234 [10:49:53]1041 (16) - 0000000000874718 [10:49:53]1040 (4) - 164151 [10:49:53]1012 (4) - 12.07.2024 04:28 [10:49:53]1206 (1) - 0 [10:49:53]OFD Sender: Remove packet 164151 [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00164151 [10:49:53]NVStorageDeleteData [10:49:53]Write to MH i2c: 01 00 00 CD 09 D6 [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 CD 09 00 00 00 00 00 F3 0C DC [10:49:53]RasterBufferAndPrint [10:49:53]line [10:49:53]line [10:49:53]line [10:49:53]line [10:49:53]line [10:49:53]written 0, free lines is 3321 [10:49:53]MH_Cut [10:49:53]Write to MH i2c: D1 01 00 D4 09 01 AF [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: D1 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: D1 01 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: D1 01 00 D4 09 00 AE [10:49:53]Write to MH i2c: 01 00 00 D5 09 DE [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:54]OFD Sender: No OFD packet to send [10:49:54]*** Cut start [10:49:54]*** Partial cut [10:49:54]*** CUTSNS_PIN = 1 [10:49:54]*** CUTSNS_PIN = 0 [10:49:54]*** Brake cut motor [10:49:55]Read from MH i2c: 01 [10:49:55]MH_I2C_Read... [10:49:55]*** Stop cut motor [10:49:55]*** Cut end [10:49:55]Read from MH i2c: 01 07 00 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 FF 0F F3 [10:49:55]process_action close_receipt done [10:49:55]requested_data is exist [10:49:55]produce_requested_data [10:49:55]requested_item fm.sn is exist - process it [10:49:55]wFMCommunicate request_size=4 [10:49:55]MH_SAM_APDU [10:49:55]CAPDU: 80 11 00 00 [10:49:55]Write to MH i2c: E2 08 00 D6 09 80 11 00 00 00 00 00 00 59 [10:49:55]Write i2c OK [10:49:55]MH_I2C_Read... [10:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:55]Read from MH i2c: E2 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 17 00 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 17 00 D6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [10:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:49:55]wFMCommunicate OK [10:49:55]requested_item fd.num is exist - process it [10:49:55]SAM_PROTO_GetFieldsCounters [10:49:55]wFMCommunicate request_size=4 [10:49:55]MH_SAM_APDU [10:49:55]CAPDU: 80 13 00 00 [10:49:55]Write to MH i2c: E2 08 00 D7 09 80 13 00 00 00 00 00 00 5C [10:49:55]Write i2c OK [10:49:55]MH_I2C_Read... [10:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:55]Read from MH i2c: E2 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 62 00 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 62 00 D7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:49: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:55]wFMCommunicate OK [10:49:55]SAM_PROTO_GetFieldsCounters done [10:49:55]requested_item shift.num is exist - process it [10:49:55]requested_item shift.opened is exist - process it [10:49:55]req_shift_opened [10:49:55]FM_GetShiftState [10:49:55]SAM_PROTO_GetShiftState [10:49:55]wFMCommunicate request_size=4 [10:49:55]MH_SAM_APDU [10:49:55]CAPDU: 80 13 01 00 [10:49:55]Write to MH i2c: E2 08 00 D8 09 80 13 01 00 00 00 00 00 5E [10:49:55]Write i2c OK [10:49:55]MH_I2C_Read... [10:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:55]Read from MH i2c: E2 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 0E 00 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 0E 00 D8 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A8 [10:49:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:49:55]wFMCommunicate OK [10:49:55]SAM_PROTO_GetShiftState done [10:49:55]FM_GetShiftState done [10:49:55]req_shift_opened done [10:49:55]requested_item shift.open_date is exist - process it [10:49:55]req_shift_open_date [10:49:55]req_shift_open_date done [10:49:55]produce_requested_data done [10:49:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164151,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:49:55]process_action_free close_receipt [10:49:55]json_value_free [10:49:55]json_value_free done [10:49:55]process_json_proto returns [10:49:55]Send response to host [10:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164151,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:49:55]free response buf [10:49:55]execute_script done [10:49:55]execute_script returns [10:49:55]free content buf [10:49:55]Sock 7.Close socket [10:49:55]Sock 7.Thread stoped [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:07]accept exits with 9 [10:52:07]New connection [10:52:07]New thread 3066707300 created [10:52:07]Thread 3066850660 joined [10:52:07]Waiting for new connection... [10:52:07] Sock 9.Parse request [10:52:07]Sock 9.Check first char [10:52:07]Sock 9.First char is OK [10:52:07]request: POST /json_proto HTTP/1.0 [10:52:07]Method: POST [10:52:07]URL: /json_proto [10:52:07]Method is POST - this is cgi request [10:52:07]url: /json_proto [10:52:07]query_string will be loaded in cgi processing [10:52:07]execute_cgi json_proto POST (null) [10:52:07]execute_cgi path=json_proto method=POST [10:52:07]POST find Content-Length [10:52:07]Host: 172.17.56.4:8080 [10:52:07]Content-Length: 639 [10:52:07]Content-Type: application/json [10:52:07] [10:52:07]POST finish read [10:52:07]Found Content-Length = 639 [10:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 40.000, "sum" : 2876.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:07]execute_script... [10:52: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)458234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 40.000, "sum" : 2876.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:07]POST & json_proto [10:52:07]process_json_proto [10:52:07]json parsed OK: [10:52:07]protocol is kg_v1.0 [10:52:07]action value=close_receipt [10:52:07]process_action close_receipt [10:52:07]cmd_close_receipt [10:52:07]MH_GetDate [10:52:07]Write to MH i2c: F0 00 00 D9 09 D1 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: F0 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: F0 09 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: F0 09 00 D9 09 00 D8 0A 91 66 C9 DC B2 64 6E [10:52:07]GetLastDocTimeStamp 1720781392 [10:52:07]current date 1720781528 [10:52:07]FM_GetShiftState [10:52:07]SAM_PROTO_GetShiftState [10:52:07]wFMCommunicate request_size=4 [10:52:07]MH_SAM_APDU [10:52:07]CAPDU: 80 13 01 00 [10:52:07]Write to MH i2c: E2 08 00 DA 09 80 13 01 00 00 00 00 00 60 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:07]Read from MH i2c: E2 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 0E 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 0E 00 DA 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AA [10:52:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:52:07]wFMCommunicate OK [10:52:07]SAM_PROTO_GetShiftState done [10:52:07]FM_GetShiftState done [10:52:07]opened in 1720744654 [10:52:07]opened+sec_in_day 1720831054 [10:52:07]quantity*price = 287600 [10:52:07]sum+1 = 287601 [10:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2876.00 НСП 1% : 25.45 НДС 12% : 305.42 Наличными: 2876.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 73 12.07.2024 10:52 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164152 ФПД: 156234693126808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164152&fm=156234693126808&tin=02508201610067®Number=0000000000090829&sum=287600 [10:52:08]StoreToDocumentArchive [10:52:08]shift 445 fd 164152 [10:52:08]save to /storage/0445/doc_00164152 [10:52:08]save last doc name /storage/0445/doc_00164152 to /storage/kkm_last_doc_name [10:52:08]save OK [10:52:08]Clear old archive folders... [10:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:08]tlvbuf is 009E1E00 [10:52:08]SAM_PROTO_ClearQueue [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 09 00 00 [10:52:08]Write to MH i2c: E2 08 00 E7 09 80 09 00 00 00 00 00 00 62 [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 03 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 03 00 E7 09 00 90 00 64 [10:52:08]RAPDU: 90 00 [10:52:08]wFMCommunicate OK [10:52:08]SAM_PROTO_ClearQueue done [10:52:08]KKMCreateOFDPacket [10:52:08]OFDProtocolAddRootSTLVToBuf [10:52:08]FM_MakeSignedData [10:52:08]FM_MakeSignedData [10:52:08]SAM_PROTO_SignData [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 0D 01 02 [10:52:08]Write to MH i2c: E2 08 00 E8 09 80 0D 01 02 00 00 00 00 6A [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 03 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 03 00 E8 09 00 90 00 65 [10:52:08]RAPDU: 90 00 [10:52:08]wFMCommunicate OK [10:52:08]wFMCommunicate request_size=255 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 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 D8 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 81 02 00 35 04 06 00 8E 18 39 62 [10:52:08]Write to MH i2c: E2 02 01 E9 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 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 D8 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 81 02 00 35 04 06 00 8E 18 39 62 00 00 FB [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:09]Read from MH i2c: E2 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 03 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 03 00 E9 09 00 90 00 66 [10:52:09]RAPDU: 90 00 [10:52:09]wFMCommunicate OK [10:52:09]wFMCommunicate request_size=7 [10:52:09]MH_SAM_APDU [10:52:09]CAPDU: 80 0D 02 02 02 AA 98 [10:52:09]Write to MH i2c: E2 0A 00 EA 09 80 0D 02 02 02 00 AA 98 00 00 B3 [10:52:09]Write i2c OK [10:52:09]MH_I2C_Read... [10:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:09]Read from MH i2c: E2 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 03 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 03 00 EA 09 00 90 00 67 [10:52:09]RAPDU: 90 00 [10:52:09]wFMCommunicate OK [10:52:09]wFMCommunicate request_size=4 [10:52:09]MH_SAM_APDU [10:52:09]CAPDU: 80 0D 03 02 [10:52:09]Write to MH i2c: E2 08 00 EB 09 80 0D 03 02 00 00 00 00 6F [10:52:09]Write i2c OK [10:52:09]MH_I2C_Read... [10:52:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:09]Read from MH i2c: E2 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 0B 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 0B 00 EB 09 00 60 34 6F 3A 9E D3 50 C1 90 00 2F [10:52:09]RAPDU: 60 34 6F 3A 9E D3 50 C1 90 00 [10:52:09]wFMCommunicate OK [10:52:09]SAM_PROTO_SignData done [10:52:09]FM_MakeSignedData done [10:52:09]CreateOFDProtocolMessage [10:52:09]wFMCommunicate request_size=4 [10:52:09]MH_SAM_APDU [10:52:09]CAPDU: 80 11 00 00 [10:52:09]Write to MH i2c: E2 08 00 EC 09 80 11 00 00 00 00 00 00 6F [10:52:09]Write i2c OK [10:52:09]MH_I2C_Read... [10:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:09]Read from MH i2c: E2 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 17 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 17 00 EC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [10:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:52:09]wFMCommunicate OK [10:52:09]CreateOFDProtocolMessage done [10:52:09]OFDSenderStorePacket 164152 [10:52:09]StoreOFDPacket docnum=164152 [10:52:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0A 66 04 01 BB 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 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 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 D8 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 81 02 00 35 04 06 00 8E 18 39 62 AA 98 60 34 6F 3A 9E D3 50 C1 [10:52:09]CheckFolder [10:52:09]dirname=/storage/ofd_packets [10:52:09]CheckFolder done [10:52:09]ProducePacketName [10:52:09]name=ofd_packets/00164152 [10:52:09]NVStorageSaveData ofd_packets/00164152 [10:52:09]File name is /storage/ofd_packets/00164152 [10:52:09]Write 298 bytes [10:52:09]NVStorageSaveData done [10:52:09]OFDSenderStorePacket done [10:52:09]KKMCreateOFDPacket done [10:52:09]NVStorageSaveData kkm_last_timestamp [10:52:09]File name is /storage/kkm_last_timestamp [10:52:09]Write 4 bytes [10:52:09]NVStorageSaveData done [10:52:09]ExternCall_PrintAddStr [10:52:09]wPrintStart [10:52:09]Write to MH i2c: 01 00 00 ED 09 F6 [10:52:09]Write i2c OK [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: 01 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: 01 07 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 FF 0F 0B [10:52:09]RasterBufferAndPrint [10:52:09]line Счет N : (1)458234 [10:52:09]line ИНН: 02508201610067 [10:52:09]line Контрольно-Кассовый Чек [10:52:09]line ПРОДАЖА [10:52:09]line ТРК (МРК, ГНК) : 11 [10:52:09]line Товар: 2710194210 [10:52:09]line ДТ-К-5 [10:52:09]line 40.000 * 71.90 [10:52:09]line = 2876.00 [10:52:09]line НДС 12% НСП 1% [10:52:09]line > о реализуемом товаре [10:52:09]line ИТОГО: 2876.00 [10:52:09]line НСП 1% : 25.45 [10:52:09]line НДС 12% : 305.42 [10:52:09]line Наличными: 2876.00 [10:52:09]line Безнал.: 0.00 [10:52:09]line Место: АЗС № 72 "Партнер Нефть" [10:52:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:52:09]line СНО: Общий режим [10:52:09]line Чек 73 12.07.2024 10:52 [10:52:09]line Смена: 445 ФФД: 1.0 [10:52:09]line ЗНМ: 0300000160 [10:52:09]line РНМ: 0000000000090829 [10:52:09]line Версия ККМ: 001 [10:52:09]line ФМ: 0000000000874718 [10:52:09]line ФД: 164152 [10:52:09]line ФПД: 156234693126808 [10:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164152&fm=156234693126808&tin=02508201610067®Number=0000000000090829&sum=287600 [10:52:09]OFD Sender: Processing packet 164152 [packets to send 104, broken 103] [10:52:09]ProducePacketName [10:52:09]name=ofd_packets/00164152 [10:52:09]OFD Sender: To server: pG, [10:52:09]CommunicateWithHost lk.salyk.kg:30040 [10:52:09]ConnectInit lk.salyk.kg [10:52:09]written 0, free lines is 4095 [10:52:09]Connected sock=10 [10:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0A 66 04 01 BB 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 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 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 D8 0A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 81 02 00 35 04 06 00 8E 18 39 62 AA 98 60 34 6F 3A 9E D3 50 C1 [10:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3C 3F 47 00 4A 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 81 02 00 F4 03 04 00 6D B1 90 66 B6 04 01 00 00 D6 57 22 00 B4 12 F8 B7 [10:52:09]CommunicateWithHost err = 0 [10:52:09]CheckOFDResponse [10:52:09]1017 (14) - 77093643461234 [10:52:09]1041 (16) - 0000000000874718 [10:52:09]1040 (4) - 164152 [10:52:09]1012 (4) - 12.07.2024 04:30 [10:52:09]1206 (1) - 0 [10:52:09]OFD Sender: Remove packet 164152 [10:52:09]ProducePacketName [10:52:09]name=ofd_packets/00164152 [10:52:09]NVStorageDeleteData [10:52:10]Write to MH i2c: 01 00 00 14 0A 1E [10:52:10]Write i2c OK [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: 01 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: 01 07 00 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: 01 07 00 14 0A 00 00 00 00 00 2D 0D 5F [10:52:10]RasterBufferAndPrint [10:52:10]line [10:52:10]line [10:52:10]line [10:52:10]line [10:52:10]line [10:52:10]written 0, free lines is 3379 [10:52:10]MH_Cut [10:52:10]Write to MH i2c: D1 01 00 1B 0A 01 F7 [10:52:10]Write i2c OK [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: D1 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: D1 01 00 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: D1 01 00 1B 0A 00 F6 [10:52:10]Write to MH i2c: 01 00 00 1C 0A 26 [10:52:10]Write i2c OK [10:52:10]MH_I2C_Read... [10:52:10]OFD Sender: No OFD packet to send [10:52:10]*** Cut start [10:52:10]*** Partial cut [10:52:10]*** CUTSNS_PIN = 1 [10:52:10]*** CUTSNS_PIN = 0 [10:52:10]*** Brake cut motor [10:52:11]Read from MH i2c: 01 [10:52:11]MH_I2C_Read... [10:52:11]*** Stop cut motor [10:52:11]*** Cut end [10:52:11]Read from MH i2c: 01 07 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: 01 07 00 1C 0A 00 00 00 00 00 FF 0F 3B [10:52:11]process_action close_receipt done [10:52:11]requested_data is exist [10:52:11]produce_requested_data [10:52:11]requested_item fm.sn is exist - process it [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 11 00 00 [10:52:11]Write to MH i2c: E2 08 00 1D 0A 80 11 00 00 00 00 00 00 A1 [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 17 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 17 00 1D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [10:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:52:11]wFMCommunicate OK [10:52:11]requested_item fd.num is exist - process it [10:52:11]SAM_PROTO_GetFieldsCounters [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 13 00 00 [10:52:11]Write to MH i2c: E2 08 00 1E 0A 80 13 00 00 00 00 00 00 A4 [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 62 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 62 00 1E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [10:52:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:11]wFMCommunicate OK [10:52:11]SAM_PROTO_GetFieldsCounters done [10:52:11]requested_item shift.num is exist - process it [10:52:11]requested_item shift.opened is exist - process it [10:52:11]req_shift_opened [10:52:11]FM_GetShiftState [10:52:11]SAM_PROTO_GetShiftState [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 13 01 00 [10:52:11]Write to MH i2c: E2 08 00 1F 0A 80 13 01 00 00 00 00 00 A6 [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:11]Read from MH i2c: E2 0E 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 0E 00 1F 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F0 [10:52:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:52:11]wFMCommunicate OK [10:52:11]SAM_PROTO_GetShiftState done [10:52:11]FM_GetShiftState done [10:52:11]req_shift_opened done [10:52:11]requested_item shift.open_date is exist - process it [10:52:11]req_shift_open_date [10:52:11]req_shift_open_date done [10:52:11]produce_requested_data done [10:52:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164152,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:52:11]process_action_free close_receipt [10:52:11]json_value_free [10:52:11]json_value_free done [10:52:11]process_json_proto returns [10:52:11]Send response to host [10:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164152,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:52:11]free response buf [10:52:11]execute_script done [10:52:11]execute_script returns [10:52:11]free content buf [10:52:11]Sock 9.Close socket [10:52:11]Sock 9.Thread stoped [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]accept exits with 7 [10:53:00]New connection [10:53:00]New thread 3066850660 created [10:53:00]Thread 3066707300 joined [10:53:00]Waiting for new connection... [10:53:00] Sock 7.Parse request [10:53:00]Sock 7.Check first char [10:53:00]Sock 7.First char is OK [10:53:00]request: POST /json_proto HTTP/1.0 [10:53:00]Method: POST [10:53:00]URL: /json_proto [10:53:00]Method is POST - this is cgi request [10:53:00]url: /json_proto [10:53:00]query_string will be loaded in cgi processing [10:53:00]execute_cgi json_proto POST (null) [10:53:00]execute_cgi path=json_proto method=POST [10:53:00]POST find Content-Length [10:53:00]Host: 172.17.56.4:8080 [10:53:00]Content-Length: 637 [10:53:00]Content-Type: application/json [10:53:00] [10:53:00]POST finish read [10:53:00]Found Content-Length = 637 [10:53:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:00]execute_script... [10:53: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)458236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:00]POST & json_proto [10:53:00]process_json_proto [10:53:00]json parsed OK: [10:53:00]protocol is kg_v1.0 [10:53:00]action value=close_receipt [10:53:00]process_action close_receipt [10:53:00]cmd_close_receipt [10:53:00]MH_GetDate [10:53:00]Write to MH i2c: F0 00 00 20 0A 19 [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: F0 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: F0 09 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: F0 09 00 20 0A 00 0C 0B 91 66 C9 DC B2 64 EB [10:53:00]GetLastDocTimeStamp 1720781528 [10:53:00]current date 1720781580 [10:53:00]FM_GetShiftState [10:53:00]SAM_PROTO_GetShiftState [10:53:00]wFMCommunicate request_size=4 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 13 01 00 [10:53:00]Write to MH i2c: E2 08 00 21 0A 80 13 01 00 00 00 00 00 A8 [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 0E 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 0E 00 21 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F2 [10:53:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:53:00]wFMCommunicate OK [10:53:00]SAM_PROTO_GetShiftState done [10:53:00]FM_GetShiftState done [10:53:00]opened in 1720744654 [10:53:00]opened+sec_in_day 1720831054 [10:53:00]quantity*price = 71900 [10:53:00]sum+1 = 71901 [10:53:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 74 12.07.2024 10:53 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164153 ФПД: 69317099031880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105301&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164153&fm=69317099031880&tin=02508201610067®Number=0000000000090829&sum=71900 [10:53:01]StoreToDocumentArchive [10:53:01]shift 445 fd 164153 [10:53:01]save to /storage/0445/doc_00164153 [10:53:01]save last doc name /storage/0445/doc_00164153 to /storage/kkm_last_doc_name [10:53:01]save OK [10:53:01]Clear old archive folders... [10:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:53:01]tlvbuf is 00A14C20 [10:53:01]SAM_PROTO_ClearQueue [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 09 00 00 [10:53:01]Write to MH i2c: E2 08 00 2E 0A 80 09 00 00 00 00 00 00 AA [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]SAM_PROTO_ClearQueue done [10:53:01]KKMCreateOFDPacket [10:53:01]OFDProtocolAddRootSTLVToBuf [10:53:01]FM_MakeSignedData [10:53:01]FM_MakeSignedData [10:53:01]SAM_PROTO_SignData [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 0D 01 02 [10:53:01]Write to MH i2c: E2 08 00 2F 0A 80 0D 01 02 00 00 00 00 B2 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 2F 0A 00 90 00 AD [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]wFMCommunicate request_size=255 [10:53:01]MH_SAM_APDU [10:53: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 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0D 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 81 02 00 35 04 06 00 3F 0B 25 10 [10:53:01]Write to MH i2c: E2 02 01 30 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0D 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 81 02 00 35 04 06 00 3F 0B 25 10 00 00 1D [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]wFMCommunicate request_size=7 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 0D 02 02 02 8D 48 [10:53:01]Write to MH i2c: E2 0A 00 31 0A 80 0D 02 02 02 00 8D 48 00 00 8E [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 31 0A 00 90 00 AF [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 0D 03 02 [10:53:01]Write to MH i2c: E2 08 00 32 0A 80 0D 03 02 00 00 00 00 B7 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 0B 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 0B 00 32 0A 00 AA A4 D8 B5 D7 12 64 E7 90 00 C7 [10:53:01]RAPDU: AA A4 D8 B5 D7 12 64 E7 90 00 [10:53:01]wFMCommunicate OK [10:53:01]SAM_PROTO_SignData done [10:53:01]FM_MakeSignedData done [10:53:01]CreateOFDProtocolMessage [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 11 00 00 [10:53:01]Write to MH i2c: E2 08 00 33 0A 80 11 00 00 00 00 00 00 B7 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 17 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 17 00 33 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [10:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:53:01]wFMCommunicate OK [10:53:01]CreateOFDProtocolMessage done [10:53:01]OFDSenderStorePacket 164153 [10:53:01]StoreOFDPacket docnum=164153 [10:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 37 AB 04 01 07 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0D 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 81 02 00 35 04 06 00 3F 0B 25 10 8D 48 AA A4 D8 B5 D7 12 64 E7 [10:53:01]CheckFolder [10:53:01]dirname=/storage/ofd_packets [10:53:01]CheckFolder done [10:53:01]ProducePacketName [10:53:01]name=ofd_packets/00164153 [10:53:01]NVStorageSaveData ofd_packets/00164153 [10:53:01]File name is /storage/ofd_packets/00164153 [10:53:01]Write 298 bytes [10:53:01]NVStorageSaveData done [10:53:01]OFDSenderStorePacket done [10:53:01]KKMCreateOFDPacket done [10:53:01]NVStorageSaveData kkm_last_timestamp [10:53:01]File name is /storage/kkm_last_timestamp [10:53:01]Write 4 bytes [10:53:01]NVStorageSaveData done [10:53:01]ExternCall_PrintAddStr [10:53:01]wPrintStart [10:53:01]Write to MH i2c: 01 00 00 34 0A 3E [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 07 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 07 00 34 0A 00 00 00 00 00 FF 0F 53 [10:53:01]RasterBufferAndPrint [10:53:01]line Счет N : (1)458236 [10:53:01]line ИНН: 02508201610067 [10:53:01]line Контрольно-Кассовый Чек [10:53:01]line ПРОДАЖА [10:53:01]line ТРК (МРК, ГНК) : 11 [10:53:01]line Товар: 2710194210 [10:53:01]line ДТ-К-5 [10:53:01]line 10.000 * 71.90 [10:53:01]line = 719.00 [10:53:01]line НДС 12% НСП 1% [10:53:01]line > о реализуемом товаре [10:53:01]line ИТОГО: 719.00 [10:53:01]line НСП 1% : 6.36 [10:53:01]line НДС 12% : 76.35 [10:53:01]line Наличными: 719.00 [10:53:01]line Безнал.: 0.00 [10:53:01]line Место: АЗС № 72 "Партнер Нефть" [10:53:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:53:01]line СНО: Общий режим [10:53:01]line Чек 74 12.07.2024 10:53 [10:53:01]line Смена: 445 ФФД: 1.0 [10:53:01]line ЗНМ: 0300000160 [10:53:01]line РНМ: 0000000000090829 [10:53:01]line Версия ККМ: 001 [10:53:01]line ФМ: 0000000000874718 [10:53:01]line ФД: 164153 [10:53:01]line ФПД: 69317099031880 [10:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105301&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164153&fm=69317099031880&tin=02508201610067®Number=0000000000090829&sum=71900 [10:53:01]written 0, free lines is 4095 [10:53:01]OFD Sender: Processing packet 164153 [packets to send 104, broken 103] [10:53:01]ProducePacketName [10:53:01]name=ofd_packets/00164153 [10:53:01]OFD Sender: To server: pG, [10:53:01]CommunicateWithHost lk.salyk.kg:30040 [10:53:01]ConnectInit lk.salyk.kg [10:53:01]Connected sock=10 [10:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 37 AB 04 01 07 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0D 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 81 02 00 35 04 06 00 3F 0B 25 10 8D 48 AA A4 D8 B5 D7 12 64 E7 [10:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 74 47 00 E1 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 34 37 31 38 10 04 04 00 39 81 02 00 F4 03 04 00 A1 B1 90 66 B6 04 01 00 00 75 98 5A 8F 20 8B 64 66 [10:53:02]CommunicateWithHost err = 0 [10:53:02]CheckOFDResponse [10:53:02]1017 (14) - 77093643461234 [10:53:02]1041 (16) - 0000000000874718 [10:53:02]1040 (4) - 164153 [10:53:02]1012 (4) - 12.07.2024 04:31 [10:53:02]1206 (1) - 0 [10:53:02]OFD Sender: Remove packet 164153 [10:53:02]ProducePacketName [10:53:02]name=ofd_packets/00164153 [10:53:02]NVStorageDeleteData [10:53:02]Write to MH i2c: 01 00 00 5B 0A 65 [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 07 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 07 00 5B 0A 00 00 00 00 00 24 0D 9D [10:53:02]RasterBufferAndPrint [10:53:02]line [10:53:02]line [10:53:02]line [10:53:02]line [10:53:02]line [10:53:02]written 0, free lines is 3371 [10:53:02]MH_Cut [10:53:02]Write to MH i2c: D1 01 00 62 0A 01 3E [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: D1 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: D1 01 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: D1 01 00 62 0A 00 3D [10:53:02]Write to MH i2c: 01 00 00 63 0A 6D [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]OFD Sender: No OFD packet to send [10:53:02]*** Cut start [10:53:02]*** Partial cut [10:53:02]*** CUTSNS_PIN = 1 [10:53:02]*** CUTSNS_PIN = 0 [10:53:03]*** Brake cut motor [10:53:03]Read from MH i2c: 01 [10:53:03]MH_I2C_Read... [10:53:03]*** Stop cut motor [10:53:03]*** Cut end [10:53:03]Read from MH i2c: 01 07 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: 01 07 00 63 0A 00 00 00 00 00 FF 0F 82 [10:53:03]process_action close_receipt done [10:53:03]requested_data is exist [10:53:03]produce_requested_data [10:53:03]requested_item fm.sn is exist - process it [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 11 00 00 [10:53:03]Write to MH i2c: E2 08 00 64 0A 80 11 00 00 00 00 00 00 E8 [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 17 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 17 00 64 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [10:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:53:03]wFMCommunicate OK [10:53:03]requested_item fd.num is exist - process it [10:53:03]SAM_PROTO_GetFieldsCounters [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 13 00 00 [10:53:03]Write to MH i2c: E2 08 00 65 0A 80 13 00 00 00 00 00 00 EB [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 62 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 62 00 65 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [10:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:03]wFMCommunicate OK [10:53:03]SAM_PROTO_GetFieldsCounters done [10:53:03]requested_item shift.num is exist - process it [10:53:03]requested_item shift.opened is exist - process it [10:53:03]req_shift_opened [10:53:03]FM_GetShiftState [10:53:03]SAM_PROTO_GetShiftState [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 13 01 00 [10:53:03]Write to MH i2c: E2 08 00 66 0A 80 13 01 00 00 00 00 00 ED [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 0E 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 0E 00 66 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 37 [10:53:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:53:03]wFMCommunicate OK [10:53:03]SAM_PROTO_GetShiftState done [10:53:03]FM_GetShiftState done [10:53:03]req_shift_opened done [10:53:03]requested_item shift.open_date is exist - process it [10:53:03]req_shift_open_date [10:53:03]req_shift_open_date done [10:53:03]produce_requested_data done [10:53:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164153,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:53:03]process_action_free close_receipt [10:53:03]json_value_free [10:53:03]json_value_free done [10:53:03]process_json_proto returns [10:53:03]Send response to host [10:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164153,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:53:03]free response buf [10:53:03]execute_script done [10:53:03]execute_script returns [10:53:03]free content buf [10:53:03]Sock 7.Close socket [10:53:03]Sock 7.Thread stoped [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:19]accept exits with 9 [10:53:19]New connection [10:53:19]New thread 3066707300 created [10:53:19]Thread 3066850660 joined [10:53:19]Waiting for new connection... [10:53:19] Sock 9.Parse request [10:53:19]Sock 9.Check first char [10:53:19]Sock 9.First char is OK [10:53:19]request: POST /json_proto HTTP/1.0 [10:53:19]Method: POST [10:53:19]URL: /json_proto [10:53:19]Method is POST - this is cgi request [10:53:19]url: /json_proto [10:53:19]query_string will be loaded in cgi processing [10:53:19]execute_cgi json_proto POST (null) [10:53:19]execute_cgi path=json_proto method=POST [10:53:19]POST find Content-Length [10:53:19]Host: 172.17.56.4:8080 [10:53:19]Content-Length: 677 [10:53:19]Content-Type: application/json [10:53:19] [10:53:19]POST finish read [10:53:19]Found Content-Length = 677 [10:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:19]execute_script... [10:53: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)458237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:19]POST & json_proto [10:53:19]process_json_proto [10:53:19]json parsed OK: [10:53:19]protocol is kg_v1.0 [10:53:19]action value=close_receipt [10:53:19]process_action close_receipt [10:53:19]cmd_close_receipt [10:53:19]MH_GetDate [10:53:19]Write to MH i2c: F0 00 00 67 0A 60 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: F0 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: F0 09 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: F0 09 00 67 0A 00 20 0B 91 66 C9 DC B2 64 46 [10:53:19]GetLastDocTimeStamp 1720781581 [10:53:19]current date 1720781600 [10:53:19]FM_GetShiftState [10:53:19]SAM_PROTO_GetShiftState [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 13 01 00 [10:53:19]Write to MH i2c: E2 08 00 68 0A 80 13 01 00 00 00 00 00 EF [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0E 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0E 00 68 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 39 [10:53:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:53:19]wFMCommunicate OK [10:53:19]SAM_PROTO_GetShiftState done [10:53:19]FM_GetShiftState done [10:53:19]opened in 1720744654 [10:53:19]opened+sec_in_day 1720831054 [10:53:19]quantity*price = 50008 [10:53:19]sum+1 = 50009 [10:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 75 12.07.2024 10:53 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164154 ФПД: 106479066148553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105320&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164154&fm=106479066148553&tin=02508201610067®Number=0000000000090829&sum=50000 [10:53:20]StoreToDocumentArchive [10:53:20]shift 445 fd 164154 [10:53:20]save to /storage/0445/doc_00164154 [10:53:20]save last doc name /storage/0445/doc_00164154 to /storage/kkm_last_doc_name [10:53:20]save OK [10:53:20]Clear old archive folders... [10:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:20]tlvbuf is 009E1C60 [10:53:20]SAM_PROTO_ClearQueue [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 09 00 00 [10:53:20]Write to MH i2c: E2 08 00 75 0A 80 09 00 00 00 00 00 00 F1 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [10:53:20]RAPDU: 90 00 [10:53:20]wFMCommunicate OK [10:53:20]SAM_PROTO_ClearQueue done [10:53:20]KKMCreateOFDPacket [10:53:20]OFDProtocolAddRootSTLVToBuf [10:53:20]FM_MakeSignedData [10:53:20]FM_MakeSignedData [10:53:20]SAM_PROTO_SignData [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 0D 01 02 [10:53:20]Write to MH i2c: E2 08 00 76 0A 80 0D 01 02 00 00 00 00 F9 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [10:53:20]RAPDU: 90 00 [10:53:20]wFMCommunicate OK [10:53:20]wFMCommunicate request_size=255 [10:53:20]MH_SAM_APDU [10:53: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4B 00 00 00 F4 03 04 00 20 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 81 02 00 35 04 06 00 60 [10:53:20]Write to MH i2c: E2 02 01 77 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4B 00 00 00 F4 03 04 00 20 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 81 02 00 35 04 06 00 60 00 00 BA [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [10:53:20]RAPDU: 90 00 [10:53:20]wFMCommunicate OK [10:53:20]wFMCommunicate request_size=10 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 0D 02 02 05 D7 96 E9 EE C9 [10:53:20]Write to MH i2c: E2 0D 00 78 0A 80 0D 02 02 05 00 D7 96 E9 EE C9 00 00 13 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 03 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 03 00 78 0A 00 90 00 F6 [10:53:21]RAPDU: 90 00 [10:53:21]wFMCommunicate OK [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 0D 03 02 [10:53:21]Write to MH i2c: E2 08 00 79 0A 80 0D 03 02 00 00 00 00 FE [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0B 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0B 00 79 0A 00 0E 2F 22 7C 04 F7 6F 56 90 00 9A [10:53:21]RAPDU: 0E 2F 22 7C 04 F7 6F 56 90 00 [10:53:21]wFMCommunicate OK [10:53:21]SAM_PROTO_SignData done [10:53:21]FM_MakeSignedData done [10:53:21]CreateOFDProtocolMessage [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 11 00 00 [10:53:21]Write to MH i2c: E2 08 00 7A 0A 80 11 00 00 00 00 00 00 FE [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 17 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 17 00 7A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [10:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:53:21]wFMCommunicate OK [10:53:21]CreateOFDProtocolMessage done [10:53:21]OFDSenderStorePacket 164154 [10:53:21]StoreOFDPacket docnum=164154 [10:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 76 07 01 40 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4B 00 00 00 F4 03 04 00 20 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 81 02 00 35 04 06 00 60 D7 96 E9 EE C9 0E 2F 22 7C 04 F7 6F 56 [10:53:21]CheckFolder [10:53:21]dirname=/storage/ofd_packets [10:53:21]CheckFolder done [10:53:21]ProducePacketName [10:53:21]name=ofd_packets/00164154 [10:53:21]NVStorageSaveData ofd_packets/00164154 [10:53:21]File name is /storage/ofd_packets/00164154 [10:53:21]Write 301 bytes [10:53:21]NVStorageSaveData done [10:53:21]OFDSenderStorePacket done [10:53:21]KKMCreateOFDPacket done [10:53:21]NVStorageSaveData kkm_last_timestamp [10:53:21]File name is /storage/kkm_last_timestamp [10:53:21]Write 4 bytes [10:53:21]NVStorageSaveData done [10:53:21]ExternCall_PrintAddStr [10:53:21]wPrintStart [10:53:21]Write to MH i2c: 01 00 00 7B 0A 85 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 07 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 07 00 7B 0A 00 00 00 00 00 FF 0F 9A [10:53:21]RasterBufferAndPrint [10:53:21]line Счет N : (1)458237 [10:53:21]line ИНН: 02508201610067 [10:53:21]line Контрольно-Кассовый Чек [10:53:21]line ПРОДАЖА [10:53:21]line ТРК (МРК, ГНК) : 22 [10:53:21]line Товар: 2710124130 [10:53:21]line Аи-92-К-5 [10:53:21]line 7.600 * 65.80 [10:53:21]line = 500.08 [10:53:21]line НДС 12% НСП 1% [10:53:21]line > о реализуемом товаре [10:53:21]line ОКРУГЛЕНИЕ: -0.08 [10:53:21]line ИТОГО: 500.00 [10:53:21]line Внесено: 500.00 [10:53:21]line СДАЧА: 0.00 [10:53:21]line НСП 1% : 4.42 [10:53:21]line НДС 12% : 53.11 [10:53:21]line Наличными: 500.00 [10:53:21]line Безнал.: 0.00 [10:53:21]line Место: АЗС № 72 "Партнер Нефть" [10:53:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:53:21]line СНО: Общий режим [10:53:21]line Чек 75 12.07.2024 10:53 [10:53:21]line Смена: 445 ФФД: 1.0 [10:53:21]line ЗНМ: 0300000160 [10:53:21]line РНМ: 0000000000090829 [10:53:21]line Версия ККМ: 001 [10:53:21]line ФМ: 0000000000874718 [10:53:21]line ФД: 164154 [10:53:21]line ФПД: 106479066148553 [10:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105320&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164154&fm=106479066148553&tin=02508201610067®Number=0000000000090829&sum=50000 [10:53:21]written 0, free lines is 4095 [10:53:21]OFD Sender: Processing packet 164154 [packets to send 104, broken 103] [10:53:21]ProducePacketName [10:53:21]name=ofd_packets/00164154 [10:53:21]OFD Sender: To server: pG, [10:53:21]CommunicateWithHost lk.salyk.kg:30040 [10:53:21]ConnectInit lk.salyk.kg [10:53:21]Connected sock=10 [10:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 76 07 01 40 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4B 00 00 00 F4 03 04 00 20 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 81 02 00 35 04 06 00 60 D7 96 E9 EE C9 0E 2F 22 7C 04 F7 6F 56 [10:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 38 EA 47 00 28 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 34 37 31 38 10 04 04 00 3A 81 02 00 F4 03 04 00 B4 B1 90 66 B6 04 01 00 00 A4 A1 FE C8 86 CB EB B3 [10:53:21]CommunicateWithHost err = 0 [10:53:21]CheckOFDResponse [10:53:21]1017 (14) - 77093643461234 [10:53:21]1041 (16) - 0000000000874718 [10:53:21]1040 (4) - 164154 [10:53:21]1012 (4) - 12.07.2024 04:31 [10:53:21]1206 (1) - 0 [10:53:21]OFD Sender: Remove packet 164154 [10:53:21]ProducePacketName [10:53:21]name=ofd_packets/00164154 [10:53:21]NVStorageDeleteData [10:53:21]Write to MH i2c: 01 00 00 A5 0A AF [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 07 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 EC 0C AE [10:53:21]RasterBufferAndPrint [10:53:21]line [10:53:21]line [10:53:21]line [10:53:21]line [10:53:21]line [10:53:21]written 0, free lines is 3315 [10:53:21]MH_Cut [10:53:21]Write to MH i2c: D1 01 00 AC 0A 01 88 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: D1 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: D1 01 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: D1 01 00 AC 0A 00 87 [10:53:21]Write to MH i2c: 01 00 00 AD 0A B7 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:22]OFD Sender: No OFD packet to send [10:53:22]*** Cut start [10:53:22]*** Partial cut [10:53:22]*** CUTSNS_PIN = 1 [10:53:22]*** CUTSNS_PIN = 0 [10:53:22]*** Brake cut motor [10:53:23]Read from MH i2c: 01 [10:53:23]MH_I2C_Read... [10:53:23]*** Stop cut motor [10:53:23]*** Cut end [10:53:23]Read from MH i2c: 01 07 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: 01 07 00 AD 0A 00 00 00 00 00 FF 0F CC [10:53:23]process_action close_receipt done [10:53:23]requested_data is exist [10:53:23]produce_requested_data [10:53:23]requested_item fm.sn is exist - process it [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 11 00 00 [10:53:23]Write to MH i2c: E2 08 00 AE 0A 80 11 00 00 00 00 00 00 32 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 17 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 17 00 AE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 88 [10:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:53:23]wFMCommunicate OK [10:53:23]requested_item fd.num is exist - process it [10:53:23]SAM_PROTO_GetFieldsCounters [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 13 00 00 [10:53:23]Write to MH i2c: E2 08 00 AF 0A 80 13 00 00 00 00 00 00 35 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 62 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 62 00 AF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [10:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:23]wFMCommunicate OK [10:53:23]SAM_PROTO_GetFieldsCounters done [10:53:23]requested_item shift.num is exist - process it [10:53:23]requested_item shift.opened is exist - process it [10:53:23]req_shift_opened [10:53:23]FM_GetShiftState [10:53:23]SAM_PROTO_GetShiftState [10:53:23]wFMCommunicate request_size=4 [10:53:23]MH_SAM_APDU [10:53:23]CAPDU: 80 13 01 00 [10:53:23]Write to MH i2c: E2 08 00 B0 0A 80 13 01 00 00 00 00 00 37 [10:53:23]Write i2c OK [10:53:23]MH_I2C_Read... [10:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:23]Read from MH i2c: E2 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 0E 00 [10:53:23]MH_I2C_Read... [10:53:23]Read from MH i2c: E2 0E 00 B0 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 81 [10:53:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:53:23]wFMCommunicate OK [10:53:23]SAM_PROTO_GetShiftState done [10:53:23]FM_GetShiftState done [10:53:23]req_shift_opened done [10:53:23]requested_item shift.open_date is exist - process it [10:53:23]req_shift_open_date [10:53:23]req_shift_open_date done [10:53:23]produce_requested_data done [10:53:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164154,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:53:23]process_action_free close_receipt [10:53:23]json_value_free [10:53:23]json_value_free done [10:53:23]process_json_proto returns [10:53:23]Send response to host [10:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164154,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:53:23]free response buf [10:53:23]execute_script done [10:53:23]execute_script returns [10:53:23]free content buf [10:53:23]Sock 9.Close socket [10:53:23]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:44]accept exits with 7 [10:55:44]New connection [10:55:44]New thread 3066850660 created [10:55:44]Thread 3066707300 joined [10:55:44]Waiting for new connection... [10:55:44] Sock 7.Parse request [10:55:44]Sock 7.Check first char [10:55:44]Sock 7.First char is OK [10:55:44]request: POST /json_proto HTTP/1.0 [10:55:44]Method: POST [10:55:44]URL: /json_proto [10:55:44]Method is POST - this is cgi request [10:55:44]url: /json_proto [10:55:44]query_string will be loaded in cgi processing [10:55:44]execute_cgi json_proto POST (null) [10:55:44]execute_cgi path=json_proto method=POST [10:55:44]POST find Content-Length [10:55:44]Host: 172.17.56.4:8080 [10:55:44]Content-Length: 677 [10:55:44]Content-Type: application/json [10:55:44] [10:55:44]POST finish read [10:55:44]Found Content-Length = 677 [10:55:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.590, "sum" : 170.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:44]execute_script... [10:55: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)458239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.590, "sum" : 170.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:44]POST & json_proto [10:55:44]process_json_proto [10:55:44]json parsed OK: [10:55:44]protocol is kg_v1.0 [10:55:44]action value=close_receipt [10:55:44]process_action close_receipt [10:55:44]cmd_close_receipt [10:55:44]MH_GetDate [10:55:44]Write to MH i2c: F0 00 00 B1 0A AA [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: F0 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: F0 09 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: F0 09 00 B1 0A 00 B1 0B 91 66 C9 DC B2 64 21 [10:55:44]GetLastDocTimeStamp 1720781600 [10:55:44]current date 1720781745 [10:55:44]FM_GetShiftState [10:55:44]SAM_PROTO_GetShiftState [10:55:44]wFMCommunicate request_size=4 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 13 01 00 [10:55:44]Write to MH i2c: E2 08 00 B2 0A 80 13 01 00 00 00 00 00 39 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 0E 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 0E 00 B2 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 83 [10:55:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:55:44]wFMCommunicate OK [10:55:44]SAM_PROTO_GetShiftState done [10:55:44]FM_GetShiftState done [10:55:44]opened in 1720744654 [10:55:44]opened+sec_in_day 1720831054 [10:55:44]quantity*price = 17042 [10:55:44]sum+1 = 17043 [10:55:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.10 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 76 12.07.2024 10:55 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164155 ФПД: 192232514793041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105545&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164155&fm=192232514793041&tin=02508201610067®Number=0000000000090829&sum=17000 [10:55:45]StoreToDocumentArchive [10:55:45]shift 445 fd 164155 [10:55:45]save to /storage/0445/doc_00164155 [10:55:45]save last doc name /storage/0445/doc_00164155 to /storage/kkm_last_doc_name [10:55:45]save OK [10:55:45]Clear old archive folders... [10:55:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:45]tlvbuf is 00A29BC0 [10:55:45]SAM_PROTO_ClearQueue [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 09 00 00 [10:55:45]Write to MH i2c: E2 08 00 BF 0A 80 09 00 00 00 00 00 00 3B [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:45]Read from MH i2c: E2 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 03 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [10:55:45]RAPDU: 90 00 [10:55:45]wFMCommunicate OK [10:55:45]SAM_PROTO_ClearQueue done [10:55:45]KKMCreateOFDPacket [10:55:45]OFDProtocolAddRootSTLVToBuf [10:55:45]FM_MakeSignedData [10:55:45]FM_MakeSignedData [10:55:45]SAM_PROTO_SignData [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 0D 01 02 [10:55:45]Write to MH i2c: E2 08 00 C0 0A 80 0D 01 02 00 00 00 00 43 [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:46]Read from MH i2c: E2 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 03 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [10:55:46]RAPDU: 90 00 [10:55:46]wFMCommunicate OK [10:55:46]wFMCommunicate request_size=255 [10:55:46]MH_SAM_APDU [10: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 1E 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 92 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B1 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 81 02 00 35 04 06 00 AE [10:55:46]Write to MH i2c: E2 02 01 C1 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 92 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B1 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 81 02 00 35 04 06 00 AE 00 00 49 [10:55:46]Write i2c OK [10:55:46]MH_I2C_Read... [10:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:46]Read from MH i2c: E2 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 03 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 03 00 C1 0A 00 90 00 3F [10:55:46]RAPDU: 90 00 [10:55:46]wFMCommunicate OK [10:55:46]wFMCommunicate request_size=10 [10:55:46]MH_SAM_APDU [10:55:46]CAPDU: 80 0D 02 02 05 D5 9E C2 2E 51 [10:55:46]Write to MH i2c: E2 0D 00 C2 0A 80 0D 02 02 05 00 D5 9E C2 2E 51 00 00 04 [10:55:46]Write i2c OK [10:55:46]MH_I2C_Read... [10:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:46]Read from MH i2c: E2 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 03 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [10:55:46]RAPDU: 90 00 [10:55:46]wFMCommunicate OK [10:55:46]wFMCommunicate request_size=4 [10:55:46]MH_SAM_APDU [10:55:46]CAPDU: 80 0D 03 02 [10:55:46]Write to MH i2c: E2 08 00 C3 0A 80 0D 03 02 00 00 00 00 48 [10:55:46]Write i2c OK [10:55:46]MH_I2C_Read... [10:55:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:46]Read from MH i2c: E2 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 0B 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 0B 00 C3 0A 00 0D 91 D3 1A 20 18 37 D9 90 00 1C [10:55:46]RAPDU: 0D 91 D3 1A 20 18 37 D9 90 00 [10:55:46]wFMCommunicate OK [10:55:46]SAM_PROTO_SignData done [10:55:46]FM_MakeSignedData done [10:55:46]CreateOFDProtocolMessage [10:55:46]wFMCommunicate request_size=4 [10:55:46]MH_SAM_APDU [10:55:46]CAPDU: 80 11 00 00 [10:55:46]Write to MH i2c: E2 08 00 C4 0A 80 11 00 00 00 00 00 00 48 [10:55:46]Write i2c OK [10:55:46]MH_I2C_Read... [10:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:46]Read from MH i2c: E2 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 17 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 17 00 C4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9E [10:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:55:46]wFMCommunicate OK [10:55:46]CreateOFDProtocolMessage done [10:55:46]OFDSenderStorePacket 164155 [10:55:46]StoreOFDPacket docnum=164155 [10:55:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 79 CE 07 01 A9 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 1E 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 92 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B1 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 81 02 00 35 04 06 00 AE D5 9E C2 2E 51 0D 91 D3 1A 20 18 37 D9 [10:55:46]CheckFolder [10:55:46]dirname=/storage/ofd_packets [10:55:46]CheckFolder done [10:55:46]ProducePacketName [10:55:46]name=ofd_packets/00164155 [10:55:46]NVStorageSaveData ofd_packets/00164155 [10:55:46]File name is /storage/ofd_packets/00164155 [10:55:46]Write 301 bytes [10:55:46]NVStorageSaveData done [10:55:46]OFDSenderStorePacket done [10:55:46]KKMCreateOFDPacket done [10:55:46]NVStorageSaveData kkm_last_timestamp [10:55:46]File name is /storage/kkm_last_timestamp [10:55:46]Write 4 bytes [10:55:46]NVStorageSaveData done [10:55:46]ExternCall_PrintAddStr [10:55:46]wPrintStart [10:55:46]Write to MH i2c: 01 00 00 C5 0A CF [10:55:46]Write i2c OK [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: 01 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: 01 07 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 FF 0F E4 [10:55:46]RasterBufferAndPrint [10:55:46]line Счет N : (1)458239 [10:55:46]line ИНН: 02508201610067 [10:55:46]line Контрольно-Кассовый Чек [10:55:46]line ПРОДАЖА [10:55:46]line ТРК (МРК, ГНК) : 12 [10:55:46]line Товар: 2710124130 [10:55:46]line Аи-92-К-5 [10:55:46]line 2.590 * 65.80 [10:55:46]line = 170.42 [10:55:46]line НДС 12% НСП 1% [10:55:46]line > о реализуемом товаре [10:55:46]line ОКРУГЛЕНИЕ: -0.42 [10:55:46]line ИТОГО: 170.00 [10:55:46]line Внесено: 170.00 [10:55:46]line СДАЧА: 0.00 [10:55:46]line НСП 1% : 1.51 [10:55:46]line НДС 12% : 18.10 [10:55:46]line Наличными: 170.00 [10:55:46]line Безнал.: 0.00 [10:55:46]line Место: АЗС № 72 "Партнер Нефть" [10:55:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:55:46]line СНО: Общий режим [10:55:46]line Чек 76 12.07.2024 10:55 [10:55:46]line Смена: 445 ФФД: 1.0 [10:55:46]line ЗНМ: 0300000160 [10:55:46]line РНМ: 0000000000090829 [10:55:46]line Версия ККМ: 001 [10:55:46]line ФМ: 0000000000874718 [10:55:46]line ФД: 164155 [10:55:46]line ФПД: 192232514793041 [10:55:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105545&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164155&fm=192232514793041&tin=02508201610067®Number=0000000000090829&sum=17000 [10:55:46]OFD Sender: Processing packet 164155 [packets to send 104, broken 103] [10:55:46]ProducePacketName [10:55:46]name=ofd_packets/00164155 [10:55:46]OFD Sender: To server: pG, [10:55:46]CommunicateWithHost lk.salyk.kg:30040 [10:55:46]ConnectInit lk.salyk.kg [10:55:46]written 0, free lines is 4095 [10:55:46]Connected sock=10 [10:55:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 79 CE 07 01 A9 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 1E 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 92 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B1 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 81 02 00 35 04 06 00 AE D5 9E C2 2E 51 0D 91 D3 1A 20 18 37 D9 [10:55:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D9 31 47 00 C8 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 34 37 31 38 10 04 04 00 3B 81 02 00 F4 03 04 00 46 B2 90 66 B6 04 01 00 00 B7 0F 03 BC 4E C7 4C 3F [10:55:47]CommunicateWithHost err = 0 [10:55:47]CheckOFDResponse [10:55:47]1017 (14) - 77093643461234 [10:55:47]1041 (16) - 0000000000874718 [10:55:47]1040 (4) - 164155 [10:55:47]1012 (4) - 12.07.2024 04:34 [10:55:47]1206 (1) - 0 [10:55:47]OFD Sender: Remove packet 164155 [10:55:47]ProducePacketName [10:55:47]name=ofd_packets/00164155 [10:55:47]NVStorageDeleteData [10:55:47]Write to MH i2c: 01 00 00 EF 0A F9 [10:55:47]Write i2c OK [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: 01 [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: 01 07 00 [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: 01 07 00 EF 0A 00 00 00 00 00 E8 0C F4 [10:55:47]RasterBufferAndPrint [10:55:47]line [10:55:47]line [10:55:47]line [10:55:47]line [10:55:47]line [10:55:47]written 0, free lines is 3311 [10:55:47]MH_Cut [10:55:47]Write to MH i2c: D1 01 00 F6 0A 01 D2 [10:55:47]Write i2c OK [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: D1 [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: D1 01 00 [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: D1 01 00 F6 0A 00 D1 [10:55:47]Write to MH i2c: 01 00 00 F7 0A 01 [10:55:47]Write i2c OK [10:55:47]MH_I2C_Read... [10:55:47]OFD Sender: No OFD packet to send [10:55:47]*** Cut start [10:55:47]*** Partial cut [10:55:47]*** CUTSNS_PIN = 1 [10:55:47]*** CUTSNS_PIN = 0 [10:55:48]*** Brake cut motor [10:55:48]Read from MH i2c: 01 [10:55:48]MH_I2C_Read... [10:55:48]*** Stop cut motor [10:55:48]*** Cut end [10:55:48]Read from MH i2c: 01 07 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: 01 07 00 F7 0A 00 00 00 00 00 FF 0F 16 [10:55:48]process_action close_receipt done [10:55:48]requested_data is exist [10:55:48]produce_requested_data [10:55:48]requested_item fm.sn is exist - process it [10:55:48]wFMCommunicate request_size=4 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 11 00 00 [10:55:48]Write to MH i2c: E2 08 00 F8 0A 80 11 00 00 00 00 00 00 7C [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 17 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 17 00 F8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D2 [10:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:55:48]wFMCommunicate OK [10:55:48]requested_item fd.num is exist - process it [10:55:48]SAM_PROTO_GetFieldsCounters [10:55:48]wFMCommunicate request_size=4 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 13 00 00 [10:55:48]Write to MH i2c: E2 08 00 F9 0A 80 13 00 00 00 00 00 00 7F [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 62 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 62 00 F9 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [10:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:48]wFMCommunicate OK [10:55:48]SAM_PROTO_GetFieldsCounters done [10:55:48]requested_item shift.num is exist - process it [10:55:48]requested_item shift.opened is exist - process it [10:55:48]req_shift_opened [10:55:48]FM_GetShiftState [10:55:48]SAM_PROTO_GetShiftState [10:55:48]wFMCommunicate request_size=4 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 13 01 00 [10:55:48]Write to MH i2c: E2 08 00 FA 0A 80 13 01 00 00 00 00 00 81 [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 0E 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 0E 00 FA 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CB [10:55:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:55:48]wFMCommunicate OK [10:55:48]SAM_PROTO_GetShiftState done [10:55:48]FM_GetShiftState done [10:55:48]req_shift_opened done [10:55:48]requested_item shift.open_date is exist - process it [10:55:48]req_shift_open_date [10:55:48]req_shift_open_date done [10:55:48]produce_requested_data done [10:55:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164155,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:55:48]process_action_free close_receipt [10:55:48]json_value_free [10:55:48]json_value_free done [10:55:48]process_json_proto returns [10:55:48]Send response to host [10:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164155,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:55:48]free response buf [10:55:48]execute_script done [10:55:48]execute_script returns [10:55:48]free content buf [10:55:48]Sock 7.Close socket [10:55:48]Sock 7.Thread stoped [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:18]accept exits with 9 [10:56:18]New connection [10:56:18]New thread 3066707300 created [10:56:18]Thread 3066850660 joined [10:56:18]Waiting for new connection... [10:56:18] Sock 9.Parse request [10:56:18]Sock 9.Check first char [10:56:18]Sock 9.First char is OK [10:56:18]request: POST /json_proto HTTP/1.0 [10:56:18]Method: POST [10:56:18]URL: /json_proto [10:56:18]Method is POST - this is cgi request [10:56:18]url: /json_proto [10:56:18]query_string will be loaded in cgi processing [10:56:18]execute_cgi json_proto POST (null) [10:56:18]execute_cgi path=json_proto method=POST [10:56:18]POST find Content-Length [10:56:18]Host: 172.17.56.4:8080 [10:56:18]Content-Length: 679 [10:56:18]Content-Type: application/json [10:56:18] [10:56:18]POST finish read [10:56:18]Found Content-Length = 679 [10:56:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:18]execute_script... [10: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)458238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:18]POST & json_proto [10:56:18]process_json_proto [10:56:18]json parsed OK: [10:56:18]protocol is kg_v1.0 [10:56:18]action value=close_receipt [10:56:18]process_action close_receipt [10:56:18]cmd_close_receipt [10:56:18]MH_GetDate [10:56:18]Write to MH i2c: F0 00 00 FB 0A F4 [10:56:18]Write i2c OK [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: F0 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: F0 09 00 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: F0 09 00 FB 0A 00 D3 0B 91 66 C9 DC B2 64 8D [10:56:18]GetLastDocTimeStamp 1720781745 [10:56:18]current date 1720781779 [10:56:18]FM_GetShiftState [10:56:18]SAM_PROTO_GetShiftState [10:56:18]wFMCommunicate request_size=4 [10:56:18]MH_SAM_APDU [10:56:18]CAPDU: 80 13 01 00 [10:56:18]Write to MH i2c: E2 08 00 FC 0A 80 13 01 00 00 00 00 00 83 [10:56:18]Write i2c OK [10:56:18]MH_I2C_Read... [10:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:18]Read from MH i2c: E2 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: E2 0E 00 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: E2 0E 00 FC 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CD [10:56:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:56:18]wFMCommunicate OK [10:56:18]SAM_PROTO_GetShiftState done [10:56:18]FM_GetShiftState done [10:56:18]opened in 1720744654 [10:56:18]opened+sec_in_day 1720831054 [10:56:18]quantity*price = 100012 [10:56:18]sum+1 = 100014 [10:56:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 77 12.07.2024 10:56 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164156 ФПД: 92289353946416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105619&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164156&fm=92289353946416&tin=02508201610067®Number=0000000000090829&sum=100000 [10:56:19]StoreToDocumentArchive [10:56:19]shift 445 fd 164156 [10:56:19]save to /storage/0445/doc_00164156 [10:56:19]save last doc name /storage/0445/doc_00164156 to /storage/kkm_last_doc_name [10:56:19]save OK [10:56:19]Clear old archive folders... [10:56:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:56:19]tlvbuf is 00A3E2B0 [10:56:19]SAM_PROTO_ClearQueue [10:56:19]wFMCommunicate request_size=4 [10:56:19]MH_SAM_APDU [10:56:19]CAPDU: 80 09 00 00 [10:56:19]Write to MH i2c: E2 08 00 09 0B 80 09 00 00 00 00 00 00 86 [10:56:19]Write i2c OK [10:56:19]MH_I2C_Read... [10:56:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:19]Read from MH i2c: E2 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 03 00 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 03 00 09 0B 00 90 00 88 [10:56:19]RAPDU: 90 00 [10:56:19]wFMCommunicate OK [10:56:19]SAM_PROTO_ClearQueue done [10:56:19]KKMCreateOFDPacket [10:56:19]OFDProtocolAddRootSTLVToBuf [10:56:19]FM_MakeSignedData [10:56:19]FM_MakeSignedData [10:56:19]SAM_PROTO_SignData [10:56:19]wFMCommunicate request_size=4 [10:56:19]MH_SAM_APDU [10:56:19]CAPDU: 80 0D 01 02 [10:56:19]Write to MH i2c: E2 08 00 0A 0B 80 0D 01 02 00 00 00 00 8E [10:56:19]Write i2c OK [10:56:19]MH_I2C_Read... [10:56:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:19]Read from MH i2c: E2 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 03 00 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [10:56:19]RAPDU: 90 00 [10:56:19]wFMCommunicate OK [10:56:19]wFMCommunicate request_size=255 [10:56:19]MH_SAM_APDU [10:56: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D3 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 81 02 00 35 04 06 00 53 EF CA 28 [10:56:19]Write to MH i2c: E2 02 01 0B 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D3 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 81 02 00 35 04 06 00 53 EF CA 28 00 00 22 [10:56:19]Write i2c OK [10:56:19]MH_I2C_Read... [10:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:19]Read from MH i2c: E2 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 03 00 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 03 00 0B 0B 00 90 00 8A [10:56:19]RAPDU: 90 00 [10:56:19]wFMCommunicate OK [10:56:19]wFMCommunicate request_size=7 [10:56:19]MH_SAM_APDU [10:56:19]CAPDU: 80 0D 02 02 02 95 30 [10:56:19]Write to MH i2c: E2 0A 00 0C 0B 80 0D 02 02 02 00 95 30 00 00 5A [10:56:19]Write i2c OK [10:56:19]MH_I2C_Read... [10:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:19]Read from MH i2c: E2 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 03 00 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [10:56:19]RAPDU: 90 00 [10:56:19]wFMCommunicate OK [10:56:19]wFMCommunicate request_size=4 [10:56:19]MH_SAM_APDU [10:56:19]CAPDU: 80 0D 03 02 [10:56:19]Write to MH i2c: E2 08 00 0D 0B 80 0D 03 02 00 00 00 00 93 [10:56:19]Write i2c OK [10:56:19]MH_I2C_Read... [10:56:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:19]Read from MH i2c: E2 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 0B 00 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 0B 00 0D 0B 00 5F 88 06 DF 2E D4 6C 9A 90 00 68 [10:56:19]RAPDU: 5F 88 06 DF 2E D4 6C 9A 90 00 [10:56:19]wFMCommunicate OK [10:56:19]SAM_PROTO_SignData done [10:56:19]FM_MakeSignedData done [10:56:19]CreateOFDProtocolMessage [10:56:19]wFMCommunicate request_size=4 [10:56:19]MH_SAM_APDU [10:56:19]CAPDU: 80 11 00 00 [10:56:19]Write to MH i2c: E2 08 00 0E 0B 80 11 00 00 00 00 00 00 93 [10:56:19]Write i2c OK [10:56:19]MH_I2C_Read... [10:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:20]Read from MH i2c: E2 [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: E2 17 00 [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: E2 17 00 0E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E9 [10:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:56:20]wFMCommunicate OK [10:56:20]CreateOFDProtocolMessage done [10:56:20]OFDSenderStorePacket 164156 [10:56:20]StoreOFDPacket docnum=164156 [10:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A1 D0 04 01 9E 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D3 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 81 02 00 35 04 06 00 53 EF CA 28 95 30 5F 88 06 DF 2E D4 6C 9A [10:56:20]CheckFolder [10:56:20]dirname=/storage/ofd_packets [10:56:20]CheckFolder done [10:56:20]ProducePacketName [10:56:20]name=ofd_packets/00164156 [10:56:20]NVStorageSaveData ofd_packets/00164156 [10:56:20]File name is /storage/ofd_packets/00164156 [10:56:20]Write 298 bytes [10:56:20]NVStorageSaveData done [10:56:20]OFDSenderStorePacket done [10:56:20]KKMCreateOFDPacket done [10:56:20]NVStorageSaveData kkm_last_timestamp [10:56:20]File name is /storage/kkm_last_timestamp [10:56:20]Write 4 bytes [10:56:20]NVStorageSaveData done [10:56:20]ExternCall_PrintAddStr [10:56:20]wPrintStart [10:56:20]Write to MH i2c: 01 00 00 0F 0B 1A [10:56:20]Write i2c OK [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: 01 [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: 01 07 00 [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: 01 07 00 0F 0B 00 00 00 00 00 FF 0F 2F [10:56:20]RasterBufferAndPrint [10:56:20]line Счет N : (1)458238 [10:56:20]line ИНН: 02508201610067 [10:56:20]line Контрольно-Кассовый Чек [10:56:20]line ПРОДАЖА [10:56:20]line ТРК (МРК, ГНК) : 11 [10:56:20]line Товар: 2710194210 [10:56:20]line ДТ-К-5 [10:56:20]line 13.910 * 71.90 [10:56:20]line = 1000.13 [10:56:20]line НДС 12% НСП 1% [10:56:20]line > о реализуемом товаре [10:56:20]line ОКРУГЛЕНИЕ: -0.13 [10:56:20]line ИТОГО: 1000.00 [10:56:20]line Внесено: 1000.00 [10:56:20]line СДАЧА: 0.00 [10:56:20]line НСП 1% : 8.85 [10:56:20]line НДС 12% : 106.21 [10:56:20]line Наличными: 1000.00 [10:56:20]line Безнал.: 0.00 [10:56:20]line Место: АЗС № 72 "Партнер Нефть" [10:56:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:56:20]line СНО: Общий режим [10:56:20]line Чек 77 12.07.2024 10:56 [10:56:20]line Смена: 445 ФФД: 1.0 [10:56:20]line ЗНМ: 0300000160 [10:56:20]line РНМ: 0000000000090829 [10:56:20]line Версия ККМ: 001 [10:56:20]line ФМ: 0000000000874718 [10:56:20]line ФД: 164156 [10:56:20]line ФПД: 92289353946416 [10:56:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105619&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164156&fm=92289353946416&tin=02508201610067®Number=0000000000090829&sum=100000 [10:56:20]OFD Sender: Processing packet 164156 [packets to send 104, broken 103] [10:56:20]ProducePacketName [10:56:20]name=ofd_packets/00164156 [10:56:20]OFD Sender: To server: pG, [10:56:20]CommunicateWithHost lk.salyk.kg:30040 [10:56:20]ConnectInit lk.salyk.kg [10:56:20]written 0, free lines is 4095 [10:56:20]Connected sock=10 [10: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 34 37 31 38 0C 01 00 00 A1 D0 04 01 9E 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D3 0B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 81 02 00 35 04 06 00 53 EF CA 28 95 30 5F 88 06 DF 2E D4 6C 9A [10:56:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 67 98 47 00 A5 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 34 37 31 38 10 04 04 00 3C 81 02 00 F4 03 04 00 67 B2 90 66 B6 04 01 00 00 4D 16 D6 97 A5 7F 2B FD [10:56:20]CommunicateWithHost err = 0 [10:56:20]CheckOFDResponse [10:56:20]1017 (14) - 77093643461234 [10:56:20]1041 (16) - 0000000000874718 [10:56:20]1040 (4) - 164156 [10:56:20]1012 (4) - 12.07.2024 04:34 [10:56:20]1206 (1) - 0 [10:56:20]OFD Sender: Remove packet 164156 [10:56:20]ProducePacketName [10:56:20]name=ofd_packets/00164156 [10:56:20]NVStorageDeleteData [10:56:20]Write to MH i2c: 01 00 00 39 0B 44 [10:56:20]Write i2c OK [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: 01 [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: 01 07 00 [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: 01 07 00 39 0B 00 00 00 00 00 EB 0C 42 [10:56:20]RasterBufferAndPrint [10:56:20]line [10:56:20]line [10:56:20]line [10:56:20]line [10:56:20]line [10:56:20]written 0, free lines is 3313 [10:56:20]MH_Cut [10:56:20]Write to MH i2c: D1 01 00 40 0B 01 1D [10:56:20]Write i2c OK [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: D1 [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: D1 01 00 [10:56:20]MH_I2C_Read... [10:56:20]Read from MH i2c: D1 01 00 40 0B 00 1C [10:56:20]Write to MH i2c: 01 00 00 41 0B 4C [10:56:20]Write i2c OK [10:56:20]MH_I2C_Read... [10:56:21]OFD Sender: No OFD packet to send [10:56:21]*** Cut start [10:56:21]*** Partial cut [10:56:21]*** CUTSNS_PIN = 1 [10:56:21]*** CUTSNS_PIN = 0 [10:56:21]*** Brake cut motor [10:56:22]Read from MH i2c: 01 [10:56:22]MH_I2C_Read... [10:56:22]*** Stop cut motor [10:56:22]*** Cut end [10:56:22]Read from MH i2c: 01 07 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: 01 07 00 41 0B 00 00 00 00 00 FF 0F 61 [10:56:22]process_action close_receipt done [10:56:22]requested_data is exist [10:56:22]produce_requested_data [10:56:22]requested_item fm.sn is exist - process it [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 11 00 00 [10:56:22]Write to MH i2c: E2 08 00 42 0B 80 11 00 00 00 00 00 00 C7 [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 17 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 17 00 42 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [10:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:56:22]wFMCommunicate OK [10:56:22]requested_item fd.num is exist - process it [10:56:22]SAM_PROTO_GetFieldsCounters [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 13 00 00 [10:56:22]Write to MH i2c: E2 08 00 43 0B 80 13 00 00 00 00 00 00 CA [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 62 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 62 00 43 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:22]wFMCommunicate OK [10:56:22]SAM_PROTO_GetFieldsCounters done [10:56:22]requested_item shift.num is exist - process it [10:56:22]requested_item shift.opened is exist - process it [10:56:22]req_shift_opened [10:56:22]FM_GetShiftState [10:56:22]SAM_PROTO_GetShiftState [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 13 01 00 [10:56:22]Write to MH i2c: E2 08 00 44 0B 80 13 01 00 00 00 00 00 CC [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 0E 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 0E 00 44 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 16 [10:56:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:56:22]wFMCommunicate OK [10:56:22]SAM_PROTO_GetShiftState done [10:56:22]FM_GetShiftState done [10:56:22]req_shift_opened done [10:56:22]requested_item shift.open_date is exist - process it [10:56:22]req_shift_open_date [10:56:22]req_shift_open_date done [10:56:22]produce_requested_data done [10:56:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164156,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:56:22]process_action_free close_receipt [10:56:22]json_value_free [10:56:22]json_value_free done [10:56:22]process_json_proto returns [10:56:22]Send response to host [10:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164156,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:56:22]free response buf [10:56:22]execute_script done [10:56:22]execute_script returns [10:56:22]free content buf [10:56:22]Sock 9.Close socket [10:56:22]Sock 9.Thread stoped [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:02]accept exits with 7 [10:59:02]New connection [10:59:02]New thread 3066850660 created [10:59:02]Thread 3066707300 joined [10:59:02]Waiting for new connection... [10:59:02] Sock 7.Parse request [10:59:02]Sock 7.Check first char [10:59:02]Sock 7.First char is OK [10:59:02]request: POST /json_proto HTTP/1.0 [10:59:02]Method: POST [10:59:02]URL: /json_proto [10:59:02]Method is POST - this is cgi request [10:59:02]url: /json_proto [10:59:02]query_string will be loaded in cgi processing [10:59:02]execute_cgi json_proto POST (null) [10:59:02]execute_cgi path=json_proto method=POST [10:59:02]POST find Content-Length [10:59:02]Host: 172.17.56.4:8080 [10:59:02]Content-Length: 677 [10:59:02]Content-Type: application/json [10:59:02] [10:59:02]POST finish read [10:59:02]Found Content-Length = 677 [10:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:02]execute_script... [10:59:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:02]POST & json_proto [10:59:02]process_json_proto [10:59:02]json parsed OK: [10:59:02]protocol is kg_v1.0 [10:59:02]action value=close_receipt [10:59:02]process_action close_receipt [10:59:02]cmd_close_receipt [10:59:02]MH_GetDate [10:59:02]Write to MH i2c: F0 00 00 45 0B 3F [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: F0 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: F0 09 00 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: F0 09 00 45 0B 00 77 0C 91 66 C9 DC B2 64 7D [10:59:02]GetLastDocTimeStamp 1720781779 [10:59:02]current date 1720781943 [10:59:02]FM_GetShiftState [10:59:02]SAM_PROTO_GetShiftState [10:59:02]wFMCommunicate request_size=4 [10:59:02]MH_SAM_APDU [10:59:02]CAPDU: 80 13 01 00 [10:59:02]Write to MH i2c: E2 08 00 46 0B 80 13 01 00 00 00 00 00 CE [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:02]Read from MH i2c: E2 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: E2 0E 00 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: E2 0E 00 46 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 18 [10:59:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:59:02]wFMCommunicate OK [10:59:02]SAM_PROTO_GetShiftState done [10:59:02]FM_GetShiftState done [10:59:02]opened in 1720744654 [10:59:02]opened+sec_in_day 1720831054 [10:59:02]quantity*price = 30004 [10:59:02]sum+1 = 30006 [10:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 78 12.07.2024 10:59 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164157 ФПД: 9967525358384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164157&fm=9967525358384&tin=02508201610067®Number=0000000000090829&sum=30000 [10:59:03]StoreToDocumentArchive [10:59:03]shift 445 fd 164157 [10:59:03]save to /storage/0445/doc_00164157 [10:59:03]save last doc name /storage/0445/doc_00164157 to /storage/kkm_last_doc_name [10:59:03]save OK [10:59:03]Clear old archive folders... [10:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:03]tlvbuf is 009F2730 [10:59:03]SAM_PROTO_ClearQueue [10:59:03]wFMCommunicate request_size=4 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 09 00 00 [10:59:03]Write to MH i2c: E2 08 00 53 0B 80 09 00 00 00 00 00 00 D0 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [10:59:03]RAPDU: 90 00 [10:59:03]wFMCommunicate OK [10:59:03]SAM_PROTO_ClearQueue done [10:59:03]KKMCreateOFDPacket [10:59:03]OFDProtocolAddRootSTLVToBuf [10:59:03]FM_MakeSignedData [10:59:03]FM_MakeSignedData [10:59:03]SAM_PROTO_SignData [10:59:03]wFMCommunicate request_size=4 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 0D 01 02 [10:59:03]Write to MH i2c: E2 08 00 54 0B 80 0D 01 02 00 00 00 00 D8 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [10:59:03]RAPDU: 90 00 [10:59:03]wFMCommunicate OK [10:59:03]wFMCommunicate request_size=255 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 77 0C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 81 02 00 35 04 06 00 09 [10:59:03]Write to MH i2c: E2 02 01 55 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 77 0C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 81 02 00 35 04 06 00 09 00 00 61 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:04]Read from MH i2c: E2 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 03 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [10:59:04]RAPDU: 90 00 [10:59:04]wFMCommunicate OK [10:59:04]wFMCommunicate request_size=10 [10:59:04]MH_SAM_APDU [10:59:04]CAPDU: 80 0D 02 02 05 10 BE CE EB 30 [10:59:04]Write to MH i2c: E2 0D 00 56 0B 80 0D 02 02 05 00 10 BE CE EB 30 00 00 9C [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:04]Read from MH i2c: E2 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 03 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [10:59:04]RAPDU: 90 00 [10:59:04]wFMCommunicate OK [10:59:04]wFMCommunicate request_size=4 [10:59:04]MH_SAM_APDU [10:59:04]CAPDU: 80 0D 03 02 [10:59:04]Write to MH i2c: E2 08 00 57 0B 80 0D 03 02 00 00 00 00 DD [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:04]Read from MH i2c: E2 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 0B 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 0B 00 57 0B 00 CB 0D 1A AC D9 71 C6 DE 90 00 6A [10:59:04]RAPDU: CB 0D 1A AC D9 71 C6 DE 90 00 [10:59:04]wFMCommunicate OK [10:59:04]SAM_PROTO_SignData done [10:59:04]FM_MakeSignedData done [10:59:04]CreateOFDProtocolMessage [10:59:04]wFMCommunicate request_size=4 [10:59:04]MH_SAM_APDU [10:59:04]CAPDU: 80 11 00 00 [10:59:04]Write to MH i2c: E2 08 00 58 0B 80 11 00 00 00 00 00 00 DD [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:04]Read from MH i2c: E2 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 17 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 17 00 58 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 33 [10:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:59:04]wFMCommunicate OK [10:59:04]CreateOFDProtocolMessage done [10:59:04]OFDSenderStorePacket 164157 [10:59:04]StoreOFDPacket docnum=164157 [10:59:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 4D 07 01 07 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 77 0C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 81 02 00 35 04 06 00 09 10 BE CE EB 30 CB 0D 1A AC D9 71 C6 DE [10:59:04]CheckFolder [10:59:04]dirname=/storage/ofd_packets [10:59:04]CheckFolder done [10:59:04]ProducePacketName [10:59:04]name=ofd_packets/00164157 [10:59:04]NVStorageSaveData ofd_packets/00164157 [10:59:04]File name is /storage/ofd_packets/00164157 [10:59:04]Write 301 bytes [10:59:04]NVStorageSaveData done [10:59:04]OFDSenderStorePacket done [10:59:04]KKMCreateOFDPacket done [10:59:04]NVStorageSaveData kkm_last_timestamp [10:59:04]File name is /storage/kkm_last_timestamp [10:59:04]Write 4 bytes [10:59:04]NVStorageSaveData done [10:59:04]ExternCall_PrintAddStr [10:59:04]wPrintStart [10:59:04]Write to MH i2c: 01 00 00 59 0B 64 [10:59:04]Write i2c OK [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: 01 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: 01 07 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: 01 07 00 59 0B 00 00 00 00 00 FF 0F 79 [10:59:04]RasterBufferAndPrint [10:59:04]line Счет N : (1)458240 [10:59:04]line ИНН: 02508201610067 [10:59:04]line Контрольно-Кассовый Чек [10:59:04]line ПРОДАЖА [10:59:04]line ТРК (МРК, ГНК) : 12 [10:59:04]line Товар: 2710124130 [10:59:04]line Аи-92-К-5 [10:59:04]line 4.560 * 65.80 [10:59:04]line = 300.05 [10:59:04]line НДС 12% НСП 1% [10:59:04]line > о реализуемом товаре [10:59:04]line ОКРУГЛЕНИЕ: -0.05 [10:59:04]line ИТОГО: 300.00 [10:59:04]line Внесено: 300.00 [10:59:04]line СДАЧА: 0.00 [10:59:04]line НСП 1% : 2.65 [10:59:04]line НДС 12% : 31.86 [10:59:04]line Наличными: 300.00 [10:59:04]line Безнал.: 0.00 [10:59:04]line Место: АЗС № 72 "Партнер Нефть" [10:59:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:59:04]line СНО: Общий режим [10:59:04]line Чек 78 12.07.2024 10:59 [10:59:04]line Смена: 445 ФФД: 1.0 [10:59:04]line ЗНМ: 0300000160 [10:59:04]line РНМ: 0000000000090829 [10:59:04]line Версия ККМ: 001 [10:59:04]line ФМ: 0000000000874718 [10:59:04]line ФД: 164157 [10:59:04]line ФПД: 9967525358384 [10:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T105903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164157&fm=9967525358384&tin=02508201610067®Number=0000000000090829&sum=30000 [10:59:04]OFD Sender: Processing packet 164157 [packets to send 104, broken 103] [10:59:04]ProducePacketName [10:59:04]name=ofd_packets/00164157 [10:59:04]OFD Sender: To server: pG, [10:59:04]CommunicateWithHost lk.salyk.kg:30040 [10:59:04]ConnectInit lk.salyk.kg [10:59:04]written 0, free lines is 4095 [10:59:04]Connected sock=10 [10:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 4D 07 01 07 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 77 0C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 81 02 00 35 04 06 00 09 10 BE CE EB 30 CB 0D 1A AC D9 71 C6 DE [10:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 61 70 47 00 62 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 34 37 31 38 10 04 04 00 3D 81 02 00 F4 03 04 00 0C B3 90 66 B6 04 01 00 00 06 EB 90 3F 7A 4B 9E FF [10:59:04]CommunicateWithHost err = 0 [10:59:04]CheckOFDResponse [10:59:04]1017 (14) - 77093643461234 [10:59:04]1041 (16) - 0000000000874718 [10:59:04]1040 (4) - 164157 [10:59:04]1012 (4) - 12.07.2024 04:37 [10:59:04]1206 (1) - 0 [10:59:04]OFD Sender: Remove packet 164157 [10:59:04]ProducePacketName [10:59:04]name=ofd_packets/00164157 [10:59:04]NVStorageDeleteData [10:59:05]Write to MH i2c: 01 00 00 83 0B 8E [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: 01 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: 01 07 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: 01 07 00 83 0B 00 00 00 00 00 F0 0C 91 [10:59:05]RasterBufferAndPrint [10:59:05]line [10:59:05]line [10:59:05]line [10:59:05]line [10:59:05]line [10:59:05]written 0, free lines is 3318 [10:59:05]MH_Cut [10:59:05]Write to MH i2c: D1 01 00 8A 0B 01 67 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: D1 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: D1 01 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: D1 01 00 8A 0B 00 66 [10:59:05]Write to MH i2c: 01 00 00 8B 0B 96 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]OFD Sender: No OFD packet to send [10:59:05]*** Cut start [10:59:05]*** Partial cut [10:59:05]*** CUTSNS_PIN = 1 [10:59:05]*** CUTSNS_PIN = 0 [10:59:05]*** Brake cut motor [10:59:06]Read from MH i2c: 01 [10:59:06]MH_I2C_Read... [10:59:06]*** Stop cut motor [10:59:06]*** Cut end [10:59:06]Read from MH i2c: 01 07 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 07 00 8B 0B 00 00 00 00 00 FF 0F AB [10:59:06]process_action close_receipt done [10:59:06]requested_data is exist [10:59:06]produce_requested_data [10:59:06]requested_item fm.sn is exist - process it [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 11 00 00 [10:59:06]Write to MH i2c: E2 08 00 8C 0B 80 11 00 00 00 00 00 00 11 [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 17 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 17 00 8C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 67 [10:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:59:06]wFMCommunicate OK [10:59:06]requested_item fd.num is exist - process it [10:59:06]SAM_PROTO_GetFieldsCounters [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 13 00 00 [10:59:06]Write to MH i2c: E2 08 00 8D 0B 80 13 00 00 00 00 00 00 14 [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 62 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 62 00 8D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [10:59:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:06]wFMCommunicate OK [10:59:06]SAM_PROTO_GetFieldsCounters done [10:59:06]requested_item shift.num is exist - process it [10:59:06]requested_item shift.opened is exist - process it [10:59:06]req_shift_opened [10:59:06]FM_GetShiftState [10:59:06]SAM_PROTO_GetShiftState [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 13 01 00 [10:59:06]Write to MH i2c: E2 08 00 8E 0B 80 13 01 00 00 00 00 00 16 [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 0E 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 0E 00 8E 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 60 [10:59:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [10:59:06]wFMCommunicate OK [10:59:06]SAM_PROTO_GetShiftState done [10:59:06]FM_GetShiftState done [10:59:06]req_shift_opened done [10:59:06]requested_item shift.open_date is exist - process it [10:59:06]req_shift_open_date [10:59:06]req_shift_open_date done [10:59:06]produce_requested_data done [10:59:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164157,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [10:59:06]process_action_free close_receipt [10:59:06]json_value_free [10:59:06]json_value_free done [10:59:06]process_json_proto returns [10:59:06]Send response to host [10:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164157,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [10:59:06]free response buf [10:59:06]execute_script done [10:59:06]execute_script returns [10:59:06]free content buf [10:59:06]Sock 7.Close socket [10:59:06]Sock 7.Thread stoped [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00: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:44]accept exits with 9 [11:00:44]New connection [11:00:44]New thread 3066707300 created [11:00:44]Thread 3066850660 joined [11:00:44]Waiting for new connection... [11:00:44] Sock 9.Parse request [11:00:44]Sock 9.Check first char [11:00:44]Sock 9.First char is OK [11:00:44]request: POST /json_proto HTTP/1.0 [11:00:44]Method: POST [11:00:44]URL: /json_proto [11:00:44]Method is POST - this is cgi request [11:00:44]url: /json_proto [11:00:44]query_string will be loaded in cgi processing [11:00:44]execute_cgi json_proto POST (null) [11:00:44]execute_cgi path=json_proto method=POST [11:00:44]POST find Content-Length [11:00:44]Host: 172.17.56.4:8080 [11:00:44]Content-Length: 677 [11:00:44]Content-Type: application/json [11:00:44] [11:00:44]POST finish read [11:00:44]Found Content-Length = 677 [11:00:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:00:44]execute_script... [11: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)458241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:00:44]POST & json_proto [11:00:44]process_json_proto [11:00:44]json parsed OK: [11:00:44]protocol is kg_v1.0 [11:00:44]action value=close_receipt [11:00:44]process_action close_receipt [11:00:44]cmd_close_receipt [11:00:44]MH_GetDate [11:00:44]Write to MH i2c: F0 00 00 8F 0B 89 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: F0 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: F0 09 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: F0 09 00 8F 0B 00 DD 0C 91 66 C9 DC B2 64 2D [11:00:44]GetLastDocTimeStamp 1720781943 [11:00:44]current date 1720782045 [11:00:44]FM_GetShiftState [11:00:44]SAM_PROTO_GetShiftState [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 13 01 00 [11:00:44]Write to MH i2c: E2 08 00 90 0B 80 13 01 00 00 00 00 00 18 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 0E 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 0E 00 90 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 62 [11:00:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:00:44]wFMCommunicate OK [11:00:44]SAM_PROTO_GetShiftState done [11:00:44]FM_GetShiftState done [11:00:44]opened in 1720744654 [11:00:44]opened+sec_in_day 1720831054 [11:00:44]quantity*price = 40006 [11:00:44]sum+1 = 40007 [11:00: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 79 12.07.2024 11:00 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164158 ФПД: 238689753853974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T110045&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164158&fm=238689753853974&tin=02508201610067®Number=0000000000090829&sum=40000 [11:00:45]StoreToDocumentArchive [11:00:45]shift 445 fd 164158 [11:00:45]save to /storage/0445/doc_00164158 [11:00:45]save last doc name /storage/0445/doc_00164158 to /storage/kkm_last_doc_name [11:00:45]save OK [11:00:45]Clear old archive folders... [11:00:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:45]tlvbuf is 00A0D260 [11:00:45]SAM_PROTO_ClearQueue [11:00:45]wFMCommunicate request_size=4 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 09 00 00 [11:00:45]Write to MH i2c: E2 08 00 9D 0B 80 09 00 00 00 00 00 00 1A [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [11:00:45]RAPDU: 90 00 [11:00:45]wFMCommunicate OK [11:00:45]SAM_PROTO_ClearQueue done [11:00:45]KKMCreateOFDPacket [11:00:45]OFDProtocolAddRootSTLVToBuf [11:00:45]FM_MakeSignedData [11:00:45]FM_MakeSignedData [11:00:45]SAM_PROTO_SignData [11:00:45]wFMCommunicate request_size=4 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 0D 01 02 [11:00:45]Write to MH i2c: E2 08 00 9E 0B 80 0D 01 02 00 00 00 00 22 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [11:00:45]RAPDU: 90 00 [11:00:45]wFMCommunicate OK [11:00:45]wFMCommunicate request_size=255 [11:00:45]MH_SAM_APDU [11:00: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 4F 00 00 00 F4 03 04 00 DD 0C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 81 02 00 35 04 06 00 D9 [11:00:45]Write to MH i2c: E2 02 01 9F 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 4F 00 00 00 F4 03 04 00 DD 0C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 81 02 00 35 04 06 00 D9 00 00 02 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]wFMCommunicate request_size=10 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 0D 02 02 05 16 49 FD 70 16 [11:00:46]Write to MH i2c: E2 0D 00 A0 0B 80 0D 02 02 05 00 16 49 FD 70 16 00 00 11 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 0D 03 02 [11:00:46]Write to MH i2c: E2 08 00 A1 0B 80 0D 03 02 00 00 00 00 27 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 0B 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 0B 00 A1 0B 00 E7 56 E2 42 49 B4 93 3B 90 00 54 [11:00:46]RAPDU: E7 56 E2 42 49 B4 93 3B 90 00 [11:00:46]wFMCommunicate OK [11:00:46]SAM_PROTO_SignData done [11:00:46]FM_MakeSignedData done [11:00:46]CreateOFDProtocolMessage [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 11 00 00 [11:00:46]Write to MH i2c: E2 08 00 A2 0B 80 11 00 00 00 00 00 00 27 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 17 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 17 00 A2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7D [11:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:00:46]wFMCommunicate OK [11:00:46]CreateOFDProtocolMessage done [11:00:46]OFDSenderStorePacket 164158 [11:00:46]StoreOFDPacket docnum=164158 [11:00:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B7 05 07 01 1E 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 4F 00 00 00 F4 03 04 00 DD 0C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 81 02 00 35 04 06 00 D9 16 49 FD 70 16 E7 56 E2 42 49 B4 93 3B [11:00:46]CheckFolder [11:00:46]dirname=/storage/ofd_packets [11:00:46]CheckFolder done [11:00:46]ProducePacketName [11:00:46]name=ofd_packets/00164158 [11:00:46]NVStorageSaveData ofd_packets/00164158 [11:00:46]File name is /storage/ofd_packets/00164158 [11:00:46]Write 301 bytes [11:00:46]NVStorageSaveData done [11:00:46]OFDSenderStorePacket done [11:00:46]KKMCreateOFDPacket done [11:00:46]NVStorageSaveData kkm_last_timestamp [11:00:46]File name is /storage/kkm_last_timestamp [11:00:46]Write 4 bytes [11:00:46]NVStorageSaveData done [11:00:46]ExternCall_PrintAddStr [11:00:46]wPrintStart [11:00:46]Write to MH i2c: 01 00 00 A3 0B AE [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: 01 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: 01 07 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 FF 0F C3 [11:00:46]RasterBufferAndPrint [11:00:46]line Счет N : (1)458241 [11:00:46]line ИНН: 02508201610067 [11:00:46]line Контрольно-Кассовый Чек [11:00:46]line ПРОДАЖА [11:00:46]line ТРК (МРК, ГНК) : 22 [11:00:46]line Товар: 2710124130 [11:00:46]line Аи-92-К-5 [11:00:46]line 6.080 * 65.80 [11:00:46]line = 400.06 [11:00:46]line НДС 12% НСП 1% [11:00:46]line > о реализуемом товаре [11:00:46]line ОКРУГЛЕНИЕ: -0.06 [11:00:46]line ИТОГО: 400.00 [11:00:46]line Внесено: 400.00 [11:00:46]line СДАЧА: 0.00 [11:00:46]line НСП 1% : 3.54 [11:00:46]line НДС 12% : 42.48 [11:00:46]line Наличными: 400.00 [11:00:46]line Безнал.: 0.00 [11:00:46]line Место: АЗС № 72 "Партнер Нефть" [11:00:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:00:46]line СНО: Общий режим [11:00:46]line Чек 79 12.07.2024 11:00 [11:00:46]line Смена: 445 ФФД: 1.0 [11:00:46]line ЗНМ: 0300000160 [11:00:46]line РНМ: 0000000000090829 [11:00:46]line Версия ККМ: 001 [11:00:46]line ФМ: 0000000000874718 [11:00:46]line ФД: 164158 [11:00:46]line ФПД: 238689753853974 [11:00:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T110045&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164158&fm=238689753853974&tin=02508201610067®Number=0000000000090829&sum=40000 [11:00:46]written 0, free lines is 4095 [11:00:46]OFD Sender: Processing packet 164158 [packets to send 104, broken 103] [11:00:46]ProducePacketName [11:00:46]name=ofd_packets/00164158 [11:00:46]OFD Sender: To server: pG, [11:00:46]CommunicateWithHost lk.salyk.kg:30040 [11:00:46]ConnectInit lk.salyk.kg [11:00:46]Connected sock=10 [11:00:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B7 05 07 01 1E 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 4F 00 00 00 F4 03 04 00 DD 0C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 81 02 00 35 04 06 00 D9 16 49 FD 70 16 E7 56 E2 42 49 B4 93 3B [11:00:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 08 8C 47 00 23 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 34 37 31 38 10 04 04 00 3E 81 02 00 F4 03 04 00 72 B3 90 66 B6 04 01 00 00 34 01 04 92 D1 A0 D5 C9 [11:00:46]CommunicateWithHost err = 0 [11:00:46]CheckOFDResponse [11:00:46]1017 (14) - 77093643461234 [11:00:46]1041 (16) - 0000000000874718 [11:00:46]1040 (4) - 164158 [11:00:46]1012 (4) - 12.07.2024 04:39 [11:00:46]1206 (1) - 0 [11:00:46]OFD Sender: Remove packet 164158 [11:00:46]ProducePacketName [11:00:46]name=ofd_packets/00164158 [11:00:46]NVStorageDeleteData [11:00:47]Write to MH i2c: 01 00 00 CD 0B D8 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 CD 0B 00 00 00 00 00 F4 0C DF [11:00:47]RasterBufferAndPrint [11:00:47]line [11:00:47]line [11:00:47]line [11:00:47]line [11:00:47]line [11:00:47]written 0, free lines is 3323 [11:00:47]MH_Cut [11:00:47]Write to MH i2c: D1 01 00 D4 0B 01 B1 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: D1 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: D1 01 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: D1 01 00 D4 0B 00 B0 [11:00:47]Write to MH i2c: 01 00 00 D5 0B E0 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]OFD Sender: No OFD packet to send [11:00:47]*** Cut start [11:00:47]*** Partial cut [11:00:47]*** CUTSNS_PIN = 1 [11:00:47]*** CUTSNS_PIN = 0 [11:00:48]*** Brake cut motor [11:00:48]Read from MH i2c: 01 [11:00:48]MH_I2C_Read... [11:00:48]*** Stop cut motor [11:00:48]*** Cut end [11:00:48]Read from MH i2c: 01 07 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: 01 07 00 D5 0B 00 00 00 00 00 FF 0F F5 [11:00:48]process_action close_receipt done [11:00:48]requested_data is exist [11:00:48]produce_requested_data [11:00:48]requested_item fm.sn is exist - process it [11:00:48]wFMCommunicate request_size=4 [11:00:48]MH_SAM_APDU [11:00:48]CAPDU: 80 11 00 00 [11:00:48]Write to MH i2c: E2 08 00 D6 0B 80 11 00 00 00 00 00 00 5B [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:48]Read from MH i2c: E2 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 17 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 17 00 D6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [11:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:00:48]wFMCommunicate OK [11:00:48]requested_item fd.num is exist - process it [11:00:48]SAM_PROTO_GetFieldsCounters [11:00:48]wFMCommunicate request_size=4 [11:00:48]MH_SAM_APDU [11:00:48]CAPDU: 80 13 00 00 [11:00:48]Write to MH i2c: E2 08 00 D7 0B 80 13 00 00 00 00 00 00 5E [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:48]Read from MH i2c: E2 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 62 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 62 00 D7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [11:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:48]wFMCommunicate OK [11:00:48]SAM_PROTO_GetFieldsCounters done [11:00:48]requested_item shift.num is exist - process it [11:00:48]requested_item shift.opened is exist - process it [11:00:48]req_shift_opened [11:00:48]FM_GetShiftState [11:00:48]SAM_PROTO_GetShiftState [11:00:48]wFMCommunicate request_size=4 [11:00:48]MH_SAM_APDU [11:00:48]CAPDU: 80 13 01 00 [11:00:48]Write to MH i2c: E2 08 00 D8 0B 80 13 01 00 00 00 00 00 60 [11:00:48]Write i2c OK [11:00:48]MH_I2C_Read... [11:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:48]Read from MH i2c: E2 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 0E 00 [11:00:48]MH_I2C_Read... [11:00:48]Read from MH i2c: E2 0E 00 D8 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AA [11:00:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:00:48]wFMCommunicate OK [11:00:48]SAM_PROTO_GetShiftState done [11:00:48]FM_GetShiftState done [11:00:48]req_shift_opened done [11:00:48]requested_item shift.open_date is exist - process it [11:00:48]req_shift_open_date [11:00:48]req_shift_open_date done [11:00:48]produce_requested_data done [11:00:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164158,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:00:48]process_action_free close_receipt [11:00:48]json_value_free [11:00:48]json_value_free done [11:00:48]process_json_proto returns [11:00:48]Send response to host [11:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164158,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:00:48]free response buf [11:00:48]execute_script done [11:00:48]execute_script returns [11:00:48]free content buf [11:00:48]Sock 9.Close socket [11:00:48]Sock 9.Thread stoped [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]accept exits with 7 [11:03:52]New connection [11:03:52]New thread 3066850660 created [11:03:52]Thread 3066707300 joined [11:03:52]Waiting for new connection... [11:03:52] Sock 7.Parse request [11:03:52]Sock 7.Check first char [11:03:52]Sock 7.First char is OK [11:03:52]request: POST /json_proto HTTP/1.0 [11:03:52]Method: POST [11:03:52]URL: /json_proto [11:03:52]Method is POST - this is cgi request [11:03:52]url: /json_proto [11:03:52]query_string will be loaded in cgi processing [11:03:52]execute_cgi json_proto POST (null) [11:03:52]execute_cgi path=json_proto method=POST [11:03:52]POST find Content-Length [11:03:52]Host: 172.17.56.4:8080 [11:03:52]Content-Length: 790 [11:03:52]Content-Type: application/json [11:03:52] [11:03:52]POST finish read [11:03:52]Found Content-Length = 790 [11:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:52]execute_script... [11:03: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)458242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:52]POST & json_proto [11:03:52]process_json_proto [11:03:52]json parsed OK: [11:03:52]protocol is kg_v1.0 [11:03:52]action value=close_receipt [11:03:52]process_action close_receipt [11:03:52]cmd_close_receipt [11:03:52]MH_GetDate [11:03:52]Write to MH i2c: F0 00 00 D9 0B D3 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: F0 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: F0 09 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: F0 09 00 D9 0B 00 99 0D 91 66 C9 DC B2 64 34 [11:03:52]GetLastDocTimeStamp 1720782045 [11:03:52]current date 1720782233 [11:03:52]FM_GetShiftState [11:03:52]SAM_PROTO_GetShiftState [11:03:52]wFMCommunicate request_size=4 [11:03:52]MH_SAM_APDU [11:03:52]CAPDU: 80 13 01 00 [11:03:52]Write to MH i2c: E2 08 00 DA 0B 80 13 01 00 00 00 00 00 62 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:52]Read from MH i2c: E2 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: E2 0E 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: E2 0E 00 DA 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AC [11:03:52]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:03:52]wFMCommunicate OK [11:03:52]SAM_PROTO_GetShiftState done [11:03:52]FM_GetShiftState done [11:03:52]opened in 1720744654 [11:03:52]opened+sec_in_day 1720831054 [11:03:52]quantity*price = 30001 [11:03:52]sum+1 = 30002 [11:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 80 12.07.2024 11:03 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164159 ФПД: 242408116458701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T110353&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164159&fm=242408116458701&tin=02508201610067®Number=0000000000090829&sum=30001 [11:03:53]StoreToDocumentArchive [11:03:53]shift 445 fd 164159 [11:03:53]save to /storage/0445/doc_00164159 [11:03:53]save last doc name /storage/0445/doc_00164159 to /storage/kkm_last_doc_name [11:03:53]save OK [11:03:53]Clear old archive folders... [11:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:53]tlvbuf is 00A19460 [11:03:53]SAM_PROTO_ClearQueue [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 09 00 00 [11:03:53]Write to MH i2c: E2 08 00 E7 0B 80 09 00 00 00 00 00 00 64 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [11:03:53]RAPDU: 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_ClearQueue done [11:03:53]KKMCreateOFDPacket [11:03:53]OFDProtocolAddRootSTLVToBuf [11:03:53]FM_MakeSignedData [11:03:53]FM_MakeSignedData [11:03:53]SAM_PROTO_SignData [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 0D 01 02 [11:03:53]Write to MH i2c: E2 08 00 E8 0B 80 0D 01 02 00 00 00 00 6C [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [11:03:53]RAPDU: 90 00 [11:03:53]wFMCommunicate OK [11:03:53]wFMCommunicate request_size=255 [11:03:53]MH_SAM_APDU [11:03: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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 99 0D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 81 02 00 35 04 06 00 DC [11:03:53]Write to MH i2c: E2 02 01 E9 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 99 0D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 81 02 00 35 04 06 00 DC 00 00 DB [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [11:03:53]RAPDU: 90 00 [11:03:53]wFMCommunicate OK [11:03:53]wFMCommunicate request_size=10 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 0D 02 02 05 78 09 AC 14 CD [11:03:53]Write to MH i2c: E2 0D 00 EA 0B 80 0D 02 02 05 00 78 09 AC 14 CD 00 00 87 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 EA 0B 00 90 00 69 [11:03:53]RAPDU: 90 00 [11:03:53]wFMCommunicate OK [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 0D 03 02 [11:03:53]Write to MH i2c: E2 08 00 EB 0B 80 0D 03 02 00 00 00 00 71 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0B 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0B 00 EB 0B 00 E2 88 26 55 FF D3 FA D6 90 00 F9 [11:03:53]RAPDU: E2 88 26 55 FF D3 FA D6 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_SignData done [11:03:53]FM_MakeSignedData done [11:03:53]CreateOFDProtocolMessage [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 11 00 00 [11:03:53]Write to MH i2c: E2 08 00 EC 0B 80 11 00 00 00 00 00 00 71 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 EC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C7 [11:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:03:53]wFMCommunicate OK [11:03:53]CreateOFDProtocolMessage done [11:03:53]OFDSenderStorePacket 164159 [11:03:53]StoreOFDPacket docnum=164159 [11:03:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B2 E1 07 01 21 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 99 0D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 81 02 00 35 04 06 00 DC 78 09 AC 14 CD E2 88 26 55 FF D3 FA D6 [11:03:53]CheckFolder [11:03:53]dirname=/storage/ofd_packets [11:03:53]CheckFolder done [11:03:53]ProducePacketName [11:03:53]name=ofd_packets/00164159 [11:03:53]NVStorageSaveData ofd_packets/00164159 [11:03:53]File name is /storage/ofd_packets/00164159 [11:03:53]Write 301 bytes [11:03:53]NVStorageSaveData done [11:03:53]OFDSenderStorePacket done [11:03:53]KKMCreateOFDPacket done [11:03:53]NVStorageSaveData kkm_last_timestamp [11:03:53]File name is /storage/kkm_last_timestamp [11:03:53]Write 4 bytes [11:03:53]NVStorageSaveData done [11:03:54]ExternCall_PrintAddStr [11:03:54]wPrintStart [11:03:54]Write to MH i2c: 01 00 00 ED 0B F8 [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 07 00 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 07 00 ED 0B 00 00 00 00 00 FF 0F 0D [11:03:54]RasterBufferAndPrint [11:03:54]line Счет N : (1)458242 [11:03:54]line ИНН: 02508201610067 [11:03:54]line Контрольно-Кассовый Чек [11:03:54]line ПРОДАЖА [11:03:54]line ТРК (МРК, ГНК) : 22 [11:03:54]line Товар: 2710124130 [11:03:54]line Аи-92-К-5 [11:03:54]line 4.600 * 65.22 [11:03:54]line = 300.01 [11:03:54]line НДС 12% НСП 1% [11:03:54]line > о реализуемом товаре [11:03:54]line ИТОГО: 300.01 [11:03:54]line НСП 1% : 2.65 [11:03:54]line НДС 12% : 31.86 [11:03:54]line Наличными: 0.00 [11:03:54]line Безнал.: 300.01 [11:03:54]line Место: АЗС № 72 "Партнер Нефть" [11:03:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:03:54]line СНО: Общий режим [11:03:54]line Чек 80 12.07.2024 11:03 [11:03:54]line Смена: 445 ФФД: 1.0 [11:03:54]line ЗНМ: 0300000160 [11:03:54]line РНМ: 0000000000090829 [11:03:54]line Версия ККМ: 001 [11:03:54]line Платежная система: KICB Банк [11:03:54]line ФМ: 0000000000874718 [11:03:54]line ФД: 164159 [11:03:54]line ФПД: 242408116458701 [11:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T110353&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164159&fm=242408116458701&tin=02508201610067®Number=0000000000090829&sum=30001 [11:03:54]OFD Sender: Processing packet 164159 [packets to send 104, broken 103] [11:03:54]ProducePacketName [11:03:54]name=ofd_packets/00164159 [11:03:54]OFD Sender: To server: pG, [11:03:54]CommunicateWithHost lk.salyk.kg:30040 [11:03:54]ConnectInit lk.salyk.kg [11:03:54]written 0, free lines is 4095 [11:03:54]Connected sock=10 [11:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B2 E1 07 01 21 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 99 0D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 81 02 00 35 04 06 00 DC 78 09 AC 14 CD E2 88 26 55 FF D3 FA D6 [11:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 AA 47 00 11 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 34 37 31 38 10 04 04 00 3F 81 02 00 F4 03 04 00 2D B4 90 66 B6 04 01 00 00 20 AC 93 8C 18 47 65 12 [11:03:54]CommunicateWithHost err = 0 [11:03:54]CheckOFDResponse [11:03:54]1017 (14) - 77093643461234 [11:03:54]1041 (16) - 0000000000874718 [11:03:54]1040 (4) - 164159 [11:03:54]1012 (4) - 12.07.2024 04:42 [11:03:54]1206 (1) - 0 [11:03:54]OFD Sender: Remove packet 164159 [11:03:54]ProducePacketName [11:03:54]name=ofd_packets/00164159 [11:03:54]NVStorageDeleteData [11:03:54]Write to MH i2c: 01 00 00 16 0C 22 [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 07 00 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 07 00 16 0C 00 00 00 00 00 FB 0C 30 [11:03:54]RasterBufferAndPrint [11:03:54]line [11:03:54]line [11:03:54]line [11:03:54]line [11:03:54]line [11:03:54]written 0, free lines is 3329 [11:03:54]MH_Cut [11:03:54]Write to MH i2c: D1 01 00 1D 0C 01 FB [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: D1 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: D1 01 00 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: D1 01 00 1D 0C 00 FA [11:03:54]Write to MH i2c: 01 00 00 1E 0C 2A [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:55]OFD Sender: No OFD packet to send [11:03:55]*** Cut start [11:03:55]*** Partial cut [11:03:55]*** CUTSNS_PIN = 1 [11:03:55]*** CUTSNS_PIN = 0 [11:03:55]*** Brake cut motor [11:03:56]Read from MH i2c: 01 [11:03:56]MH_I2C_Read... [11:03:56]*** Stop cut motor [11:03:56]*** Cut end [11:03:56]Read from MH i2c: 01 07 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: 01 07 00 1E 0C 00 00 00 00 00 FF 0F 3F [11:03:56]process_action close_receipt done [11:03:56]requested_data is exist [11:03:56]produce_requested_data [11:03:56]requested_item fm.sn is exist - process it [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 11 00 00 [11:03:56]Write to MH i2c: E2 08 00 1F 0C 80 11 00 00 00 00 00 00 A5 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 17 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 17 00 1F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [11:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:03:56]wFMCommunicate OK [11:03:56]requested_item fd.num is exist - process it [11:03:56]SAM_PROTO_GetFieldsCounters [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 13 00 00 [11:03:56]Write to MH i2c: E2 08 00 20 0C 80 13 00 00 00 00 00 00 A8 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 62 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 62 00 20 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [11:03: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:56]wFMCommunicate OK [11:03:56]SAM_PROTO_GetFieldsCounters done [11:03:56]requested_item shift.num is exist - process it [11:03:56]requested_item shift.opened is exist - process it [11:03:56]req_shift_opened [11:03:56]FM_GetShiftState [11:03:56]SAM_PROTO_GetShiftState [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 13 01 00 [11:03:56]Write to MH i2c: E2 08 00 21 0C 80 13 01 00 00 00 00 00 AA [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 0E 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 0E 00 21 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F4 [11:03:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:03:56]wFMCommunicate OK [11:03:56]SAM_PROTO_GetShiftState done [11:03:56]FM_GetShiftState done [11:03:56]req_shift_opened done [11:03:56]requested_item shift.open_date is exist - process it [11:03:56]req_shift_open_date [11:03:56]req_shift_open_date done [11:03:56]produce_requested_data done [11:03:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164159,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:03:56]process_action_free close_receipt [11:03:56]json_value_free [11:03:56]json_value_free done [11:03:56]process_json_proto returns [11:03:56]Send response to host [11:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164159,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:03:56]free response buf [11:03:56]execute_script done [11:03:56]execute_script returns [11:03:56]free content buf [11:03:56]Sock 7.Close socket [11:03:56]Sock 7.Thread stoped [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:52]accept exits with 9 [11:07:52]New connection [11:07:52]New thread 3066707300 created [11:07:52]Thread 3066850660 joined [11:07:52]Waiting for new connection... [11:07:52] Sock 9.Parse request [11:07:52]Sock 9.Check first char [11:07:52]Sock 9.First char is OK [11:07:52]request: POST /json_proto HTTP/1.0 [11:07:52]Method: POST [11:07:52]URL: /json_proto [11:07:52]Method is POST - this is cgi request [11:07:52]url: /json_proto [11:07:52]query_string will be loaded in cgi processing [11:07:52]execute_cgi json_proto POST (null) [11:07:52]execute_cgi path=json_proto method=POST [11:07:52]POST find Content-Length [11:07:52]Host: 172.17.56.4:8080 [11:07:52]Content-Length: 674 [11:07:52]Content-Type: application/json [11:07:52] [11:07:52]POST finish read [11:07:52]Found Content-Length = 674 [11:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:52]execute_script... [11:07: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)458244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:52]POST & json_proto [11:07:52]process_json_proto [11:07:52]json parsed OK: [11:07:52]protocol is kg_v1.0 [11:07:52]action value=close_receipt [11:07:52]process_action close_receipt [11:07:52]cmd_close_receipt [11:07:52]MH_GetDate [11:07:52]Write to MH i2c: F0 00 00 22 0C 1D [11:07:52]Write i2c OK [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: F0 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: F0 09 00 [11:07:52]MH_I2C_Read... [11:07:52]Read from MH i2c: F0 09 00 22 0C 00 89 0E 91 66 C9 DC B2 64 6F [11:07:52]GetLastDocTimeStamp 1720782233 [11:07:52]current date 1720782473 [11:07:52]FM_GetShiftState [11:07:52]SAM_PROTO_GetShiftState [11:07:52]wFMCommunicate request_size=4 [11:07:52]MH_SAM_APDU [11:07:52]CAPDU: 80 13 01 00 [11:07:52]Write to MH i2c: E2 08 00 23 0C 80 13 01 00 00 00 00 00 AC [11:07:52]Write i2c OK [11:07:52]MH_I2C_Read... [11:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:53]Read from MH i2c: E2 [11:07:53]MH_I2C_Read... [11:07:53]Read from MH i2c: E2 0E 00 [11:07:53]MH_I2C_Read... [11:07:53]Read from MH i2c: E2 0E 00 23 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F6 [11:07:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:07:53]wFMCommunicate OK [11:07:53]SAM_PROTO_GetShiftState done [11:07:53]FM_GetShiftState done [11:07:53]opened in 1720744654 [11:07:53]opened+sec_in_day 1720831054 [11:07:53]quantity*price = 50042 [11:07:53]sum+1 = 50043 [11:07:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 81 12.07.2024 11:07 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164160 ФПД: 192031858788872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T110753&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164160&fm=192031858788872&tin=02508201610067®Number=0000000000090829&sum=50000 [11:07:54]StoreToDocumentArchive [11:07:54]shift 445 fd 164160 [11:07:54]save to /storage/0445/doc_00164160 [11:07:54]save last doc name /storage/0445/doc_00164160 to /storage/kkm_last_doc_name [11:07:54]save OK [11:07:54]Clear old archive folders... [11:07:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:07:54]tlvbuf is 00A1C590 [11:07:54]SAM_PROTO_ClearQueue [11:07:54]wFMCommunicate request_size=4 [11:07:54]MH_SAM_APDU [11:07:54]CAPDU: 80 09 00 00 [11:07:54]Write to MH i2c: E2 08 00 30 0C 80 09 00 00 00 00 00 00 AE [11:07:54]Write i2c OK [11:07:54]MH_I2C_Read... [11:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:54]Read from MH i2c: E2 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 03 00 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [11:07:54]RAPDU: 90 00 [11:07:54]wFMCommunicate OK [11:07:54]SAM_PROTO_ClearQueue done [11:07:54]KKMCreateOFDPacket [11:07:54]OFDProtocolAddRootSTLVToBuf [11:07:54]FM_MakeSignedData [11:07:54]FM_MakeSignedData [11:07:54]SAM_PROTO_SignData [11:07:54]wFMCommunicate request_size=4 [11:07:54]MH_SAM_APDU [11:07:54]CAPDU: 80 0D 01 02 [11:07:54]Write to MH i2c: E2 08 00 31 0C 80 0D 01 02 00 00 00 00 B6 [11:07:54]Write i2c OK [11:07:54]MH_I2C_Read... [11:07:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:54]Read from MH i2c: E2 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 03 00 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [11:07:54]RAPDU: 90 00 [11:07:54]wFMCommunicate OK [11:07:54]wFMCommunicate request_size=255 [11:07:54]MH_SAM_APDU [11:07: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 0E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 81 02 00 35 04 06 00 AE A6 E6 BA [11:07:54]Write to MH i2c: E2 02 01 32 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 0E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 81 02 00 35 04 06 00 AE A6 E6 BA 00 00 DF [11:07:54]Write i2c OK [11:07:54]MH_I2C_Read... [11:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:54]Read from MH i2c: E2 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 03 00 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [11:07:54]RAPDU: 90 00 [11:07:54]wFMCommunicate OK [11:07:54]wFMCommunicate request_size=7 [11:07:54]MH_SAM_APDU [11:07:54]CAPDU: 80 0D 02 02 02 8A 08 [11:07:54]Write to MH i2c: E2 0A 00 33 0C 80 0D 02 02 02 00 8A 08 00 00 4F [11:07:54]Write i2c OK [11:07:54]MH_I2C_Read... [11:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:54]Read from MH i2c: E2 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 03 00 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [11:07:54]RAPDU: 90 00 [11:07:54]wFMCommunicate OK [11:07:54]wFMCommunicate request_size=4 [11:07:54]MH_SAM_APDU [11:07:54]CAPDU: 80 0D 03 02 [11:07:54]Write to MH i2c: E2 08 00 34 0C 80 0D 03 02 00 00 00 00 BB [11:07:54]Write i2c OK [11:07:54]MH_I2C_Read... [11:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:54]Read from MH i2c: E2 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 0B 00 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 0B 00 34 0C 00 69 BF D6 6F 58 61 59 03 90 00 3E [11:07:54]RAPDU: 69 BF D6 6F 58 61 59 03 90 00 [11:07:54]wFMCommunicate OK [11:07:54]SAM_PROTO_SignData done [11:07:54]FM_MakeSignedData done [11:07:54]CreateOFDProtocolMessage [11:07:54]wFMCommunicate request_size=4 [11:07:54]MH_SAM_APDU [11:07:54]CAPDU: 80 11 00 00 [11:07:54]Write to MH i2c: E2 08 00 35 0C 80 11 00 00 00 00 00 00 BB [11:07:54]Write i2c OK [11:07:54]MH_I2C_Read... [11:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:54]Read from MH i2c: E2 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 17 00 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: E2 17 00 35 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 11 [11:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:07:54]wFMCommunicate OK [11:07:54]CreateOFDProtocolMessage done [11:07:54]OFDSenderStorePacket 164160 [11:07:54]StoreOFDPacket docnum=164160 [11:07:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1E 6A 04 01 88 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 0E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 81 02 00 35 04 06 00 AE A6 E6 BA 8A 08 69 BF D6 6F 58 61 59 03 [11:07:54]CheckFolder [11:07:54]dirname=/storage/ofd_packets [11:07:54]CheckFolder done [11:07:54]ProducePacketName [11:07:54]name=ofd_packets/00164160 [11:07:54]NVStorageSaveData ofd_packets/00164160 [11:07:54]File name is /storage/ofd_packets/00164160 [11:07:54]Write 298 bytes [11:07:54]NVStorageSaveData done [11:07:54]OFDSenderStorePacket done [11:07:54]KKMCreateOFDPacket done [11:07:54]NVStorageSaveData kkm_last_timestamp [11:07:54]File name is /storage/kkm_last_timestamp [11:07:54]Write 4 bytes [11:07:54]NVStorageSaveData done [11:07:54]ExternCall_PrintAddStr [11:07:54]wPrintStart [11:07:54]Write to MH i2c: 01 00 00 36 0C 42 [11:07:54]Write i2c OK [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: 01 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: 01 07 00 [11:07:54]MH_I2C_Read... [11:07:54]Read from MH i2c: 01 07 00 36 0C 00 00 00 00 00 FF 0F 57 [11:07:54]RasterBufferAndPrint [11:07:54]line Счет N : (1)458244 [11:07:54]line ИНН: 02508201610067 [11:07:54]line Контрольно-Кассовый Чек [11:07:54]line ПРОДАЖА [11:07:54]line ТРК (МРК, ГНК) : 11 [11:07:54]line Товар: 2710194210 [11:07:54]line ДТ-К-5 [11:07:54]line 6.960 * 71.90 [11:07:54]line = 500.42 [11:07:54]line НДС 12% НСП 1% [11:07:54]line > о реализуемом товаре [11:07:54]line ОКРУГЛЕНИЕ: -0.42 [11:07:54]line ИТОГО: 500.00 [11:07:54]line Внесено: 500.00 [11:07:54]line СДАЧА: 0.00 [11:07:54]line НСП 1% : 4.43 [11:07:54]line НДС 12% : 53.14 [11:07:54]line Наличными: 500.00 [11:07:54]line Безнал.: 0.00 [11:07:54]line Место: АЗС № 72 "Партнер Нефть" [11:07:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:07:54]line СНО: Общий режим [11:07:54]line Чек 81 12.07.2024 11:07 [11:07:54]line Смена: 445 ФФД: 1.0 [11:07:54]line ЗНМ: 0300000160 [11:07:54]line РНМ: 0000000000090829 [11:07:54]line Версия ККМ: 001 [11:07:54]line ФМ: 0000000000874718 [11:07:54]line ФД: 164160 [11:07:54]line ФПД: 192031858788872 [11:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T110753&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164160&fm=192031858788872&tin=02508201610067®Number=0000000000090829&sum=50000 [11:07:54]OFD Sender: Processing packet 164160 [packets to send 104, broken 103] [11:07:54]ProducePacketName [11:07:54]name=ofd_packets/00164160 [11:07:54]OFD Sender: To server: pG, [11:07:54]CommunicateWithHost lk.salyk.kg:30040 [11:07:54]ConnectInit lk.salyk.kg [11:07:54]written 0, free lines is 4095 [11:07:55]Connected sock=10 [11:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1E 6A 04 01 88 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 0E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 81 02 00 35 04 06 00 AE A6 E6 BA 8A 08 69 BF D6 6F 58 61 59 03 [11:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2D 14 47 00 53 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 34 37 31 38 10 04 04 00 40 81 02 00 F4 03 04 00 1E B5 90 66 B6 04 01 00 00 E9 17 ED FC 9C 0B 5D 22 [11:07:55]CommunicateWithHost err = 0 [11:07:55]CheckOFDResponse [11:07:55]1017 (14) - 77093643461234 [11:07:55]1041 (16) - 0000000000874718 [11:07:55]1040 (4) - 164160 [11:07:55]1012 (4) - 12.07.2024 04:46 [11:07:55]1206 (1) - 0 [11:07:55]OFD Sender: Remove packet 164160 [11:07:55]ProducePacketName [11:07:55]name=ofd_packets/00164160 [11:07:55]NVStorageDeleteData [11:07:55]Write to MH i2c: 01 00 00 60 0C 6C [11:07:55]Write i2c OK [11:07:55]MH_I2C_Read... [11:07:55]Read from MH i2c: 01 [11:07:55]MH_I2C_Read... [11:07:55]Read from MH i2c: 01 07 00 [11:07:55]MH_I2C_Read... [11:07:55]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 EE 0C 6D [11:07:55]RasterBufferAndPrint [11:07:55]line [11:07:55]line [11:07:55]line [11:07:55]line [11:07:55]line [11:07:55]written 0, free lines is 3316 [11:07:55]MH_Cut [11:07:55]Write to MH i2c: D1 01 00 67 0C 01 45 [11:07:55]Write i2c OK [11:07:55]MH_I2C_Read... [11:07:55]Read from MH i2c: D1 [11:07:55]MH_I2C_Read... [11:07:55]Read from MH i2c: D1 01 00 [11:07:55]MH_I2C_Read... [11:07:55]Read from MH i2c: D1 01 00 67 0C 00 44 [11:07:55]Write to MH i2c: 01 00 00 68 0C 74 [11:07:55]Write i2c OK [11:07:55]MH_I2C_Read... [11:07:55]OFD Sender: No OFD packet to send [11:07:56]*** Cut start [11:07:56]*** Partial cut [11:07:56]*** CUTSNS_PIN = 1 [11:07:56]*** CUTSNS_PIN = 0 [11:07:56]*** Brake cut motor [11:07:56]Read from MH i2c: 01 [11:07:56]MH_I2C_Read... [11:07:56]*** Stop cut motor [11:07:56]*** Cut end [11:07:56]Read from MH i2c: 01 07 00 [11:07:56]MH_I2C_Read... [11:07:56]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [11:07:56]process_action close_receipt done [11:07:56]requested_data is exist [11:07:56]produce_requested_data [11:07:56]requested_item fm.sn is exist - process it [11:07:56]wFMCommunicate request_size=4 [11:07:56]MH_SAM_APDU [11:07:56]CAPDU: 80 11 00 00 [11:07:56]Write to MH i2c: E2 08 00 69 0C 80 11 00 00 00 00 00 00 EF [11:07:56]Write i2c OK [11:07:56]MH_I2C_Read... [11:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:56]Read from MH i2c: E2 [11:07:56]MH_I2C_Read... [11:07:56]Read from MH i2c: E2 17 00 [11:07:56]MH_I2C_Read... [11:07:56]Read from MH i2c: E2 17 00 69 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [11:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:07:56]wFMCommunicate OK [11:07:56]requested_item fd.num is exist - process it [11:07:56]SAM_PROTO_GetFieldsCounters [11:07:56]wFMCommunicate request_size=4 [11:07:56]MH_SAM_APDU [11:07:56]CAPDU: 80 13 00 00 [11:07:56]Write to MH i2c: E2 08 00 6A 0C 80 13 00 00 00 00 00 00 F2 [11:07:56]Write i2c OK [11:07:56]MH_I2C_Read... [11:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:56]Read from MH i2c: E2 [11:07:56]MH_I2C_Read... [11:07:56]Read from MH i2c: E2 62 00 [11:07:56]MH_I2C_Read... [11:07:56]Read from MH i2c: E2 62 00 6A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:56]wFMCommunicate OK [11:07:56]SAM_PROTO_GetFieldsCounters done [11:07:56]requested_item shift.num is exist - process it [11:07:56]requested_item shift.opened is exist - process it [11:07:56]req_shift_opened [11:07:56]FM_GetShiftState [11:07:56]SAM_PROTO_GetShiftState [11:07:56]wFMCommunicate request_size=4 [11:07:56]MH_SAM_APDU [11:07:56]CAPDU: 80 13 01 00 [11:07:56]Write to MH i2c: E2 08 00 6B 0C 80 13 01 00 00 00 00 00 F4 [11:07:56]Write i2c OK [11:07:56]MH_I2C_Read... [11:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:56]Read from MH i2c: E2 [11:07:56]MH_I2C_Read... [11:07:56]Read from MH i2c: E2 0E 00 [11:07:56]MH_I2C_Read... [11:07:56]Read from MH i2c: E2 0E 00 6B 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3E [11:07:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:07:56]wFMCommunicate OK [11:07:56]SAM_PROTO_GetShiftState done [11:07:56]FM_GetShiftState done [11:07:56]req_shift_opened done [11:07:56]requested_item shift.open_date is exist - process it [11:07:56]req_shift_open_date [11:07:56]req_shift_open_date done [11:07:56]produce_requested_data done [11:07:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164160,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:07:56]process_action_free close_receipt [11:07:56]json_value_free [11:07:56]json_value_free done [11:07:56]process_json_proto returns [11:07:56]Send response to host [11:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164160,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:07:56]free response buf [11:07:56]execute_script done [11:07:56]execute_script returns [11:07:56]free content buf [11:07:56]Sock 9.Close socket [11:07:56]Sock 9.Thread stoped [11:07:57]accept exits with 7 [11:07:57]New connection [11:07:57]New thread 3066850660 created [11:07:57]Thread 3066707300 joined [11:07:57]Waiting for new connection... [11:07:57] Sock 7.Parse request [11:07:57]Sock 7.Check first char [11:07:57]Sock 7.First char is OK [11:07:57]request: POST /json_proto HTTP/1.0 [11:07:57]Method: POST [11:07:57]URL: /json_proto [11:07:57]Method is POST - this is cgi request [11:07:57]url: /json_proto [11:07:57]query_string will be loaded in cgi processing [11:07:57]execute_cgi json_proto POST (null) [11:07:57]execute_cgi path=json_proto method=POST [11:07:57]POST find Content-Length [11:07:57]Host: 172.17.56.4:8080 [11:07:57]Content-Length: 677 [11:07:57]Content-Type: application/json [11:07:57] [11:07:57]POST finish read [11:07:57]Found Content-Length = 677 [11:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:57]execute_script... [11:07: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)458243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:57]POST & json_proto [11:07:57]process_json_proto [11:07:57]json parsed OK: [11:07:57]protocol is kg_v1.0 [11:07:57]action value=close_receipt [11:07:57]process_action close_receipt [11:07:57]cmd_close_receipt [11:07:57]MH_GetDate [11:07:57]Write to MH i2c: F0 00 00 6C 0C 67 [11:07:57]Write i2c OK [11:07:57]MH_I2C_Read... [11:07:57]Read from MH i2c: F0 [11:07:57]MH_I2C_Read... [11:07:57]Read from MH i2c: F0 09 00 [11:07:57]MH_I2C_Read... [11:07:57]Read from MH i2c: F0 09 00 6C 0C 00 8E 0E 91 66 C9 DC B2 64 BE [11:07:57]GetLastDocTimeStamp 1720782473 [11:07:57]current date 1720782478 [11:07:57]FM_GetShiftState [11:07:57]SAM_PROTO_GetShiftState [11:07:57]wFMCommunicate request_size=4 [11:07:57]MH_SAM_APDU [11:07:57]CAPDU: 80 13 01 00 [11:07:57]Write to MH i2c: E2 08 00 6D 0C 80 13 01 00 00 00 00 00 F6 [11:07:57]Write i2c OK [11:07:57]MH_I2C_Read... [11:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:57]Read from MH i2c: E2 [11:07:57]MH_I2C_Read... [11:07:57]Read from MH i2c: E2 0E 00 [11:07:57]MH_I2C_Read... [11:07:57]Read from MH i2c: E2 0E 00 6D 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 40 [11:07:57]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:07:57]wFMCommunicate OK [11:07:57]SAM_PROTO_GetShiftState done [11:07:57]FM_GetShiftState done [11:07:57]opened in 1720744654 [11:07:57]opened+sec_in_day 1720831054 [11:07:57]quantity*price = 50008 [11:07:57]sum+1 = 50009 [11:07:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 82 12.07.2024 11:07 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164161 ФПД: 125552626991604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T110758&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164161&fm=125552626991604&tin=02508201610067®Number=0000000000090829&sum=50000 [11:07:58]StoreToDocumentArchive [11:07:58]shift 445 fd 164161 [11:07:58]save to /storage/0445/doc_00164161 [11:07:58]save last doc name /storage/0445/doc_00164161 to /storage/kkm_last_doc_name [11:07:58]save OK [11:07:58]Clear old archive folders... [11:07:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:58]tlvbuf is 00A3EC60 [11:07:58]SAM_PROTO_ClearQueue [11:07:58]wFMCommunicate request_size=4 [11:07:58]MH_SAM_APDU [11:07:58]CAPDU: 80 09 00 00 [11:07:58]Write to MH i2c: E2 08 00 7A 0C 80 09 00 00 00 00 00 00 F8 [11:07:58]Write i2c OK [11:07:58]MH_I2C_Read... [11:07:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:58]Read from MH i2c: E2 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: E2 03 00 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [11:07:58]RAPDU: 90 00 [11:07:58]wFMCommunicate OK [11:07:58]SAM_PROTO_ClearQueue done [11:07:58]KKMCreateOFDPacket [11:07:58]OFDProtocolAddRootSTLVToBuf [11:07:58]FM_MakeSignedData [11:07:58]FM_MakeSignedData [11:07:58]SAM_PROTO_SignData [11:07:58]wFMCommunicate request_size=4 [11:07:58]MH_SAM_APDU [11:07:58]CAPDU: 80 0D 01 02 [11:07:58]Write to MH i2c: E2 08 00 7B 0C 80 0D 01 02 00 00 00 00 00 [11:07:58]Write i2c OK [11:07:58]MH_I2C_Read... [11:07:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:58]Read from MH i2c: E2 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: E2 03 00 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [11:07:58]RAPDU: 90 00 [11:07:58]wFMCommunicate OK [11:07:58]wFMCommunicate request_size=255 [11:07:58]MH_SAM_APDU [11:07: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 52 00 00 00 F4 03 04 00 8E 0E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 81 02 00 35 04 06 00 72 [11:07:59]Write to MH i2c: E2 02 01 7C 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 52 00 00 00 F4 03 04 00 8E 0E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 81 02 00 35 04 06 00 72 00 00 52 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [11:07:59]RAPDU: 90 00 [11:07:59]wFMCommunicate OK [11:07:59]wFMCommunicate request_size=10 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 0D 02 02 05 30 7F BB 81 F4 [11:07:59]Write to MH i2c: E2 0D 00 7D 0C 80 0D 02 02 05 00 30 7F BB 81 F4 00 00 EC [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [11:07:59]RAPDU: 90 00 [11:07:59]wFMCommunicate OK [11:07:59]wFMCommunicate request_size=4 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 0D 03 02 [11:07:59]Write to MH i2c: E2 08 00 7E 0C 80 0D 03 02 00 00 00 00 05 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 0B 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 0B 00 7E 0C 00 62 80 E5 46 E1 A7 6B 8F 90 00 95 [11:07:59]RAPDU: 62 80 E5 46 E1 A7 6B 8F 90 00 [11:07:59]wFMCommunicate OK [11:07:59]SAM_PROTO_SignData done [11:07:59]FM_MakeSignedData done [11:07:59]CreateOFDProtocolMessage [11:07:59]wFMCommunicate request_size=4 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 11 00 00 [11:07:59]Write to MH i2c: E2 08 00 7F 0C 80 11 00 00 00 00 00 00 05 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 17 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 17 00 7F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5B [11:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:07:59]wFMCommunicate OK [11:07:59]CreateOFDProtocolMessage done [11:07:59]OFDSenderStorePacket 164161 [11:07:59]StoreOFDPacket docnum=164161 [11:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BB 7D 07 01 80 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 52 00 00 00 F4 03 04 00 8E 0E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 81 02 00 35 04 06 00 72 30 7F BB 81 F4 62 80 E5 46 E1 A7 6B 8F [11:07:59]CheckFolder [11:07:59]dirname=/storage/ofd_packets [11:07:59]CheckFolder done [11:07:59]ProducePacketName [11:07:59]name=ofd_packets/00164161 [11:07:59]NVStorageSaveData ofd_packets/00164161 [11:07:59]File name is /storage/ofd_packets/00164161 [11:07:59]Write 301 bytes [11:07:59]NVStorageSaveData done [11:07:59]OFDSenderStorePacket done [11:07:59]KKMCreateOFDPacket done [11:07:59]NVStorageSaveData kkm_last_timestamp [11:07:59]File name is /storage/kkm_last_timestamp [11:07:59]Write 4 bytes [11:07:59]NVStorageSaveData done [11:07:59]ExternCall_PrintAddStr [11:07:59]wPrintStart [11:07:59]Write to MH i2c: 01 00 00 80 0C 8C [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: 01 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: 01 07 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 FF 0F A1 [11:07:59]RasterBufferAndPrint [11:07:59]line Счет N : (1)458243 [11:07:59]line ИНН: 02508201610067 [11:07:59]line Контрольно-Кассовый Чек [11:07:59]line ПРОДАЖА [11:07:59]line ТРК (МРК, ГНК) : 12 [11:07:59]line Товар: 2710124130 [11:07:59]line Аи-92-К-5 [11:07:59]line 7.600 * 65.80 [11:07:59]line = 500.08 [11:07:59]line НДС 12% НСП 1% [11:07:59]line > о реализуемом товаре [11:07:59]line ОКРУГЛЕНИЕ: -0.08 [11:07:59]line ИТОГО: 500.00 [11:07:59]line Внесено: 500.00 [11:07:59]line СДАЧА: 0.00 [11:07:59]line НСП 1% : 4.42 [11:07:59]line НДС 12% : 53.11 [11:07:59]line Наличными: 500.00 [11:07:59]line Безнал.: 0.00 [11:07:59]line Место: АЗС № 72 "Партнер Нефть" [11:07:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:07:59]line СНО: Общий режим [11:07:59]line Чек 82 12.07.2024 11:07 [11:07:59]line Смена: 445 ФФД: 1.0 [11:07:59]line ЗНМ: 0300000160 [11:07:59]line РНМ: 0000000000090829 [11:07:59]line Версия ККМ: 001 [11:07:59]line ФМ: 0000000000874718 [11:07:59]line ФД: 164161 [11:07:59]line ФПД: 125552626991604 [11:07:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T110758&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164161&fm=125552626991604&tin=02508201610067®Number=0000000000090829&sum=50000 [11:07:59]written 0, free lines is 4095 [11:07:59]OFD Sender: Processing packet 164161 [packets to send 104, broken 103] [11:07:59]ProducePacketName [11:07:59]name=ofd_packets/00164161 [11:07:59]OFD Sender: To server: pG, [11:07:59]CommunicateWithHost lk.salyk.kg:30040 [11:07:59]ConnectInit lk.salyk.kg [11:07:59]Connected sock=10 [11: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 34 37 31 38 0F 01 00 00 BB 7D 07 01 80 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 52 00 00 00 F4 03 04 00 8E 0E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 81 02 00 35 04 06 00 72 30 7F BB 81 F4 62 80 E5 46 E1 A7 6B 8F [11:07:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FC DD 47 00 4D 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 34 37 31 38 10 04 04 00 41 81 02 00 F4 03 04 00 23 B5 90 66 B6 04 01 00 00 51 46 75 BC 3F 36 A7 5D [11:07:59]CommunicateWithHost err = 0 [11:07:59]CheckOFDResponse [11:07:59]1017 (14) - 77093643461234 [11:07:59]1041 (16) - 0000000000874718 [11:07:59]1040 (4) - 164161 [11:07:59]1012 (4) - 12.07.2024 04:46 [11:07:59]1206 (1) - 0 [11:07:59]OFD Sender: Remove packet 164161 [11:07:59]ProducePacketName [11:07:59]name=ofd_packets/00164161 [11:07:59]NVStorageDeleteData [11:07:59]Write to MH i2c: 01 00 00 AA 0C B6 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: 01 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: 01 07 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 F4 0C BD [11:07:59]RasterBufferAndPrint [11:07:59]line [11:07:59]line [11:07:59]line [11:07:59]line [11:07:59]line [11:07:59]written 0, free lines is 3329 [11:07:59]MH_Cut [11:07:59]Write to MH i2c: D1 01 00 B1 0C 01 8F [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: D1 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: D1 01 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: D1 01 00 B1 0C 00 8E [11:07:59]Write to MH i2c: 01 00 00 B2 0C BE [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:08:00]OFD Sender: No OFD packet to send [11:08:00]*** Cut start [11:08:00]*** Partial cut [11:08:00]*** CUTSNS_PIN = 1 [11:08:00]*** CUTSNS_PIN = 0 [11:08:00]*** Brake cut motor [11:08:01]Read from MH i2c: 01 [11:08:01]MH_I2C_Read... [11:08:01]*** Stop cut motor [11:08:01]*** Cut end [11:08:01]Read from MH i2c: 01 07 00 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [11:08:01]process_action close_receipt done [11:08:01]requested_data is exist [11:08:01]produce_requested_data [11:08:01]requested_item fm.sn is exist - process it [11:08:01]wFMCommunicate request_size=4 [11:08:01]MH_SAM_APDU [11:08:01]CAPDU: 80 11 00 00 [11:08:01]Write to MH i2c: E2 08 00 B3 0C 80 11 00 00 00 00 00 00 39 [11:08:01]Write i2c OK [11:08:01]MH_I2C_Read... [11:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:01]Read from MH i2c: E2 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: E2 17 00 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: E2 17 00 B3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [11:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:08:01]wFMCommunicate OK [11:08:01]requested_item fd.num is exist - process it [11:08:01]SAM_PROTO_GetFieldsCounters [11:08:01]wFMCommunicate request_size=4 [11:08:01]MH_SAM_APDU [11:08:01]CAPDU: 80 13 00 00 [11:08:01]Write to MH i2c: E2 08 00 B4 0C 80 13 00 00 00 00 00 00 3C [11:08:01]Write i2c OK [11:08:01]MH_I2C_Read... [11:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:01]Read from MH i2c: E2 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: E2 62 00 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: E2 62 00 B4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [11:08: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:01]wFMCommunicate OK [11:08:01]SAM_PROTO_GetFieldsCounters done [11:08:01]requested_item shift.num is exist - process it [11:08:01]requested_item shift.opened is exist - process it [11:08:01]req_shift_opened [11:08:01]FM_GetShiftState [11:08:01]SAM_PROTO_GetShiftState [11:08:01]wFMCommunicate request_size=4 [11:08:01]MH_SAM_APDU [11:08:01]CAPDU: 80 13 01 00 [11:08:01]Write to MH i2c: E2 08 00 B5 0C 80 13 01 00 00 00 00 00 3E [11:08:01]Write i2c OK [11:08:01]MH_I2C_Read... [11:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:01]Read from MH i2c: E2 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: E2 0E 00 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: E2 0E 00 B5 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 88 [11:08:01]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:08:01]wFMCommunicate OK [11:08:01]SAM_PROTO_GetShiftState done [11:08:01]FM_GetShiftState done [11:08:01]req_shift_opened done [11:08:01]requested_item shift.open_date is exist - process it [11:08:01]req_shift_open_date [11:08:01]req_shift_open_date done [11:08:01]produce_requested_data done [11:08:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164161,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:08:01]process_action_free close_receipt [11:08:01]json_value_free [11:08:01]json_value_free done [11:08:01]process_json_proto returns [11:08:01]Send response to host [11:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164161,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:08:01]free response buf [11:08:01]execute_script done [11:08:01]execute_script returns [11:08:01]free content buf [11:08:01]Sock 7.Close socket [11:08:01]Sock 7.Thread stoped [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:41]accept exits with 9 [11:13:41]New connection [11:13:41]New thread 3066707300 created [11:13:41]Thread 3066850660 joined [11:13:41]Waiting for new connection... [11:13:41] Sock 9.Parse request [11:13:41]Sock 9.Check first char [11:13:41]Sock 9.First char is OK [11:13:41]request: POST /json_proto HTTP/1.0 [11:13:41]Method: POST [11:13:41]URL: /json_proto [11:13:41]Method is POST - this is cgi request [11:13:41]url: /json_proto [11:13:41]query_string will be loaded in cgi processing [11:13:41]execute_cgi json_proto POST (null) [11:13:41]execute_cgi path=json_proto method=POST [11:13:41]POST find Content-Length [11:13:41]Host: 172.17.56.4:8080 [11:13:41]Content-Length: 677 [11:13:41]Content-Type: application/json [11:13:41] [11:13:41]POST finish read [11:13:41]Found Content-Length = 677 [11:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:41]execute_script... [11:13: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)458245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:41]POST & json_proto [11:13:41]process_json_proto [11:13:41]json parsed OK: [11:13:41]protocol is kg_v1.0 [11:13:41]action value=close_receipt [11:13:41]process_action close_receipt [11:13:41]cmd_close_receipt [11:13:41]MH_GetDate [11:13:41]Write to MH i2c: F0 00 00 B6 0C B1 [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 09 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 09 00 B6 0C 00 E6 0F 91 66 C9 DC B2 64 61 [11:13:41]GetLastDocTimeStamp 1720782478 [11:13:41]current date 1720782822 [11:13:41]FM_GetShiftState [11:13:41]SAM_PROTO_GetShiftState [11:13:41]wFMCommunicate request_size=4 [11:13:41]MH_SAM_APDU [11:13:41]CAPDU: 80 13 01 00 [11:13:41]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:41]Read from MH i2c: E2 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 0E 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8A [11:13:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:13:41]wFMCommunicate OK [11:13:41]SAM_PROTO_GetShiftState done [11:13:41]FM_GetShiftState done [11:13:41]opened in 1720744654 [11:13:41]opened+sec_in_day 1720831054 [11:13:41]quantity*price = 50008 [11:13:41]sum+1 = 50009 [11:13:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 83 12.07.2024 11:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164162 ФПД: 80776929305051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111342&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164162&fm=80776929305051&tin=02508201610067®Number=0000000000090829&sum=50000 [11:13:43]StoreToDocumentArchive [11:13:43]shift 445 fd 164162 [11:13:43]save to /storage/0445/doc_00164162 [11:13:43]save last doc name /storage/0445/doc_00164162 to /storage/kkm_last_doc_name [11:13:43]save OK [11:13:43]Clear old archive folders... [11:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:43]tlvbuf is 009C6D30 [11:13:43]SAM_PROTO_ClearQueue [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 09 00 00 [11:13:43]Write to MH i2c: E2 08 00 C4 0C 80 09 00 00 00 00 00 00 42 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]SAM_PROTO_ClearQueue done [11:13:43]KKMCreateOFDPacket [11:13:43]OFDProtocolAddRootSTLVToBuf [11:13:43]FM_MakeSignedData [11:13:43]FM_MakeSignedData [11:13:43]SAM_PROTO_SignData [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 01 02 [11:13:43]Write to MH i2c: E2 08 00 C5 0C 80 0D 01 02 00 00 00 00 4A [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=255 [11:13:43]MH_SAM_APDU [11: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 53 00 00 00 F4 03 04 00 E6 0F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 81 02 00 35 04 06 00 49 [11:13:43]Write to MH i2c: E2 02 01 C6 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 53 00 00 00 F4 03 04 00 E6 0F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 81 02 00 35 04 06 00 49 00 00 CE [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=10 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 02 02 05 77 58 2D 61 DB [11:13:43]Write to MH i2c: E2 0D 00 C7 0C 80 0D 02 02 05 00 77 58 2D 61 DB 00 00 8F [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 03 02 [11:13:43]Write to MH i2c: E2 08 00 C8 0C 80 0D 03 02 00 00 00 00 4F [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0B 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0B 00 C8 0C 00 9D 02 AF 7D DB 6A C5 91 90 00 B6 [11:13:43]RAPDU: 9D 02 AF 7D DB 6A C5 91 90 00 [11:13:43]wFMCommunicate OK [11:13:43]SAM_PROTO_SignData done [11:13:43]FM_MakeSignedData done [11:13:43]CreateOFDProtocolMessage [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 11 00 00 [11:13:43]Write to MH i2c: E2 08 00 C9 0C 80 11 00 00 00 00 00 00 4F [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 17 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 17 00 C9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A5 [11:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:13:43]wFMCommunicate OK [11:13:43]CreateOFDProtocolMessage done [11:13:43]OFDSenderStorePacket 164162 [11:13:43]StoreOFDPacket docnum=164162 [11:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F9 17 07 01 3B 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 53 00 00 00 F4 03 04 00 E6 0F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 81 02 00 35 04 06 00 49 77 58 2D 61 DB 9D 02 AF 7D DB 6A C5 91 [11:13:43]CheckFolder [11:13:43]dirname=/storage/ofd_packets [11:13:43]CheckFolder done [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00164162 [11:13:43]NVStorageSaveData ofd_packets/00164162 [11:13:43]File name is /storage/ofd_packets/00164162 [11:13:43]Write 301 bytes [11:13:43]NVStorageSaveData done [11:13:43]OFDSenderStorePacket done [11:13:43]KKMCreateOFDPacket done [11:13:43]NVStorageSaveData kkm_last_timestamp [11:13:43]File name is /storage/kkm_last_timestamp [11:13:43]Write 4 bytes [11:13:43]NVStorageSaveData done [11:13:43]ExternCall_PrintAddStr [11:13:43]wPrintStart [11:13:43]Write to MH i2c: 01 00 00 CA 0C D6 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 CA 0C 00 00 00 00 00 FF 0F EB [11:13:43]RasterBufferAndPrint [11:13:43]line Счет N : (1)458245 [11:13:43]line ИНН: 02508201610067 [11:13:43]line Контрольно-Кассовый Чек [11:13:43]line ПРОДАЖА [11:13:43]line ТРК (МРК, ГНК) : 12 [11:13:43]line Товар: 2710124130 [11:13:43]line Аи-92-К-5 [11:13:43]line 7.600 * 65.80 [11:13:43]line = 500.08 [11:13:43]line НДС 12% НСП 1% [11:13:43]line > о реализуемом товаре [11:13:43]line ОКРУГЛЕНИЕ: -0.08 [11:13:43]line ИТОГО: 500.00 [11:13:43]line Внесено: 500.00 [11:13:43]line СДАЧА: 0.00 [11:13:43]line НСП 1% : 4.42 [11:13:43]line НДС 12% : 53.11 [11:13:43]line Наличными: 500.00 [11:13:43]line Безнал.: 0.00 [11:13:43]line Место: АЗС № 72 "Партнер Нефть" [11:13:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:13:43]line СНО: Общий режим [11:13:43]line Чек 83 12.07.2024 11:13 [11:13:43]line Смена: 445 ФФД: 1.0 [11:13:43]line ЗНМ: 0300000160 [11:13:43]line РНМ: 0000000000090829 [11:13:43]line Версия ККМ: 001 [11:13:43]line ФМ: 0000000000874718 [11:13:43]line ФД: 164162 [11:13:43]line ФПД: 80776929305051 [11:13:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111342&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164162&fm=80776929305051&tin=02508201610067®Number=0000000000090829&sum=50000 [11:13:43]OFD Sender: Processing packet 164162 [packets to send 104, broken 103] [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00164162 [11:13:43]OFD Sender: To server: pG, [11:13:43]CommunicateWithHost lk.salyk.kg:30040 [11:13:43]ConnectInit lk.salyk.kg [11:13:43]written 0, free lines is 4095 [11:13:44]Connected sock=10 [11: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 34 37 31 38 0F 01 00 00 F9 17 07 01 3B 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 53 00 00 00 F4 03 04 00 E6 0F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 81 02 00 35 04 06 00 49 77 58 2D 61 DB 9D 02 AF 7D DB 6A C5 91 [11:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2B 41 47 00 D6 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 34 37 31 38 10 04 04 00 42 81 02 00 F4 03 04 00 7B B6 90 66 B6 04 01 00 00 AD 0B 1F A0 09 C0 8A C4 [11:13:44]CommunicateWithHost err = 0 [11:13:44]CheckOFDResponse [11:13:44]1017 (14) - 77093643461234 [11:13:44]1041 (16) - 0000000000874718 [11:13:44]1040 (4) - 164162 [11:13:44]1012 (4) - 12.07.2024 04:52 [11:13:44]1206 (1) - 0 [11:13:44]OFD Sender: Remove packet 164162 [11:13:44]ProducePacketName [11:13:44]name=ofd_packets/00164162 [11:13:44]NVStorageDeleteData [11:13:44]Write to MH i2c: 01 00 00 F4 0C 00 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 E8 0C FB [11:13:44]RasterBufferAndPrint [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]written 0, free lines is 3311 [11:13:44]MH_Cut [11:13:44]Write to MH i2c: D1 01 00 FB 0C 01 D9 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 01 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 01 00 FB 0C 00 D8 [11:13:44]Write to MH i2c: 01 00 00 FC 0C 08 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]OFD Sender: No OFD packet to send [11:13:45]*** Cut start [11:13:45]*** Partial cut [11:13:45]*** CUTSNS_PIN = 1 [11:13:45]*** CUTSNS_PIN = 0 [11:13:45]*** Brake cut motor [11:13:45]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]*** Stop cut motor [11:13:45]*** Cut end [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 FC 0C 00 00 00 00 00 FF 0F 1D [11:13:45]process_action close_receipt done [11:13:45]requested_data is exist [11:13:45]produce_requested_data [11:13:45]requested_item fm.sn is exist - process it [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 11 00 00 [11:13:45]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D9 [11:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:13:45]wFMCommunicate OK [11:13:45]requested_item fd.num is exist - process it [11:13:45]SAM_PROTO_GetFieldsCounters [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 00 00 [11:13:45]Write to MH i2c: E2 08 00 FE 0C 80 13 00 00 00 00 00 00 86 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 FE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [11:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetFieldsCounters done [11:13:45]requested_item shift.num is exist - process it [11:13:45]requested_item shift.opened is exist - process it [11:13:45]req_shift_opened [11:13:45]FM_GetShiftState [11:13:45]SAM_PROTO_GetShiftState [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 01 00 [11:13:45]Write to MH i2c: E2 08 00 FF 0C 80 13 01 00 00 00 00 00 88 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 FF 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D2 [11:13:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetShiftState done [11:13:45]FM_GetShiftState done [11:13:45]req_shift_opened done [11:13:45]requested_item shift.open_date is exist - process it [11:13:45]req_shift_open_date [11:13:45]req_shift_open_date done [11:13:45]produce_requested_data done [11:13:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164162,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:13:45]process_action_free close_receipt [11:13:45]json_value_free [11:13:45]json_value_free done [11:13:45]process_json_proto returns [11:13:45]Send response to host [11:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164162,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:13:45]free response buf [11:13:45]execute_script done [11:13:45]execute_script returns [11:13:45]free content buf [11:13:45]Sock 9.Close socket [11:13:45]Sock 9.Thread stoped [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:45]accept exits with 7 [11:15:45]New connection [11:15:45]New thread 3066850660 created [11:15:45]Thread 3066707300 joined [11:15:45]Waiting for new connection... [11:15:45] Sock 7.Parse request [11:15:45]Sock 7.Check first char [11:15:45]Sock 7.First char is OK [11:15:45]request: POST /json_proto HTTP/1.0 [11:15:45]Method: POST [11:15:45]URL: /json_proto [11:15:45]Method is POST - this is cgi request [11:15:45]url: /json_proto [11:15:45]query_string will be loaded in cgi processing [11:15:45]execute_cgi json_proto POST (null) [11:15:45]execute_cgi path=json_proto method=POST [11:15:45]POST find Content-Length [11:15:45]Host: 172.17.56.4:8080 [11:15:45]Content-Length: 677 [11:15:45]Content-Type: application/json [11:15:45] [11:15:45]POST finish read [11:15:45]Found Content-Length = 677 [11:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:45]execute_script... [11:15: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)458246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:45]POST & json_proto [11:15:45]process_json_proto [11:15:45]json parsed OK: [11:15:45]protocol is kg_v1.0 [11:15:45]action value=close_receipt [11:15:45]process_action close_receipt [11:15:45]cmd_close_receipt [11:15:45]MH_GetDate [11:15:45]Write to MH i2c: F0 00 00 00 0D FC [11:15:45]Write i2c OK [11:15:45]MH_I2C_Read... [11:15:45]Read from MH i2c: F0 [11:15:45]MH_I2C_Read... [11:15:45]Read from MH i2c: F0 09 00 [11:15:45]MH_I2C_Read... [11:15:45]Read from MH i2c: F0 09 00 00 0D 00 62 10 91 66 C9 DC B2 64 29 [11:15:45]GetLastDocTimeStamp 1720782822 [11:15:45]current date 1720782946 [11:15:45]FM_GetShiftState [11:15:45]SAM_PROTO_GetShiftState [11:15:45]wFMCommunicate request_size=4 [11:15:45]MH_SAM_APDU [11:15:45]CAPDU: 80 13 01 00 [11:15:45]Write to MH i2c: E2 08 00 01 0D 80 13 01 00 00 00 00 00 8B [11:15:45]Write i2c OK [11:15:45]MH_I2C_Read... [11:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:45]Read from MH i2c: E2 [11:15:45]MH_I2C_Read... [11:15:45]Read from MH i2c: E2 0E 00 [11:15:45]MH_I2C_Read... [11:15:45]Read from MH i2c: E2 0E 00 01 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D5 [11:15:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:15:45]wFMCommunicate OK [11:15:45]SAM_PROTO_GetShiftState done [11:15:45]FM_GetShiftState done [11:15:45]opened in 1720744654 [11:15:45]opened+sec_in_day 1720831054 [11:15:45]quantity*price = 50008 [11:15:45]sum+1 = 50009 [11:15:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 84 12.07.2024 11:15 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164163 ФПД: 62006026119372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111546&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164163&fm=62006026119372&tin=02508201610067®Number=0000000000090829&sum=50000 [11:15:46]StoreToDocumentArchive [11:15:46]shift 445 fd 164163 [11:15:46]save to /storage/0445/doc_00164163 [11:15:46]save last doc name /storage/0445/doc_00164163 to /storage/kkm_last_doc_name [11:15:46]save OK [11:15:46]Clear old archive folders... [11:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:46]tlvbuf is 009E1110 [11:15:46]SAM_PROTO_ClearQueue [11:15:46]wFMCommunicate request_size=4 [11:15:46]MH_SAM_APDU [11:15:46]CAPDU: 80 09 00 00 [11:15:46]Write to MH i2c: E2 08 00 0E 0D 80 09 00 00 00 00 00 00 8D [11:15:46]Write i2c OK [11:15:46]MH_I2C_Read... [11:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:46]Read from MH i2c: E2 [11:15:46]MH_I2C_Read... [11:15:46]Read from MH i2c: E2 03 00 [11:15:46]MH_I2C_Read... [11:15:46]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [11:15:46]RAPDU: 90 00 [11:15:46]wFMCommunicate OK [11:15:46]SAM_PROTO_ClearQueue done [11:15:46]KKMCreateOFDPacket [11:15:46]OFDProtocolAddRootSTLVToBuf [11:15:46]FM_MakeSignedData [11:15:46]FM_MakeSignedData [11:15:46]SAM_PROTO_SignData [11:15:46]wFMCommunicate request_size=4 [11:15:46]MH_SAM_APDU [11:15:46]CAPDU: 80 0D 01 02 [11:15:46]Write to MH i2c: E2 08 00 0F 0D 80 0D 01 02 00 00 00 00 95 [11:15:46]Write i2c OK [11:15:46]MH_I2C_Read... [11:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:46]Read from MH i2c: E2 [11:15:46]MH_I2C_Read... [11:15:46]Read from MH i2c: E2 03 00 [11:15:46]MH_I2C_Read... [11:15:46]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [11:15:46]RAPDU: 90 00 [11:15:46]wFMCommunicate OK [11:15:46]wFMCommunicate request_size=255 [11:15:46]MH_SAM_APDU [11:15:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 00 00 00 F4 03 04 00 62 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 81 02 00 35 04 06 00 38 [11:15:46]Write to MH i2c: E2 02 01 10 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 00 00 00 F4 03 04 00 62 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 81 02 00 35 04 06 00 38 00 00 87 [11:15:46]Write i2c OK [11:15:46]MH_I2C_Read... [11:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:47]Read from MH i2c: E2 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 03 00 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [11:15:47]RAPDU: 90 00 [11:15:47]wFMCommunicate OK [11:15:47]wFMCommunicate request_size=10 [11:15:47]MH_SAM_APDU [11:15:47]CAPDU: 80 0D 02 02 05 64 E7 29 28 CC [11:15:47]Write to MH i2c: E2 0D 00 11 0D 80 0D 02 02 05 00 64 E7 29 28 CC 00 00 0A [11:15:47]Write i2c OK [11:15:47]MH_I2C_Read... [11:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:47]Read from MH i2c: E2 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 03 00 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [11:15:47]RAPDU: 90 00 [11:15:47]wFMCommunicate OK [11:15:47]wFMCommunicate request_size=4 [11:15:47]MH_SAM_APDU [11:15:47]CAPDU: 80 0D 03 02 [11:15:47]Write to MH i2c: E2 08 00 12 0D 80 0D 03 02 00 00 00 00 9A [11:15:47]Write i2c OK [11:15:47]MH_I2C_Read... [11:15:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:47]Read from MH i2c: E2 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 0B 00 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 0B 00 12 0D 00 F8 EF A1 9D BB A8 D7 DE 90 00 D8 [11:15:47]RAPDU: F8 EF A1 9D BB A8 D7 DE 90 00 [11:15:47]wFMCommunicate OK [11:15:47]SAM_PROTO_SignData done [11:15:47]FM_MakeSignedData done [11:15:47]CreateOFDProtocolMessage [11:15:47]wFMCommunicate request_size=4 [11:15:47]MH_SAM_APDU [11:15:47]CAPDU: 80 11 00 00 [11:15:47]Write to MH i2c: E2 08 00 13 0D 80 11 00 00 00 00 00 00 9A [11:15:47]Write i2c OK [11:15:47]MH_I2C_Read... [11:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:47]Read from MH i2c: E2 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 17 00 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 17 00 13 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [11:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:15:47]wFMCommunicate OK [11:15:47]CreateOFDProtocolMessage done [11:15:47]OFDSenderStorePacket 164163 [11:15:47]StoreOFDPacket docnum=164163 [11:15:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 92 07 01 6B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 00 00 00 F4 03 04 00 62 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 81 02 00 35 04 06 00 38 64 E7 29 28 CC F8 EF A1 9D BB A8 D7 DE [11:15:47]CheckFolder [11:15:47]dirname=/storage/ofd_packets [11:15:47]CheckFolder done [11:15:47]ProducePacketName [11:15:47]name=ofd_packets/00164163 [11:15:47]NVStorageSaveData ofd_packets/00164163 [11:15:47]File name is /storage/ofd_packets/00164163 [11:15:47]Write 301 bytes [11:15:47]NVStorageSaveData done [11:15:47]OFDSenderStorePacket done [11:15:47]KKMCreateOFDPacket done [11:15:47]NVStorageSaveData kkm_last_timestamp [11:15:47]File name is /storage/kkm_last_timestamp [11:15:47]Write 4 bytes [11:15:47]NVStorageSaveData done [11:15:47]ExternCall_PrintAddStr [11:15:47]wPrintStart [11:15:47]Write to MH i2c: 01 00 00 14 0D 21 [11:15:47]Write i2c OK [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: 01 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: 01 07 00 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: 01 07 00 14 0D 00 00 00 00 00 FF 0F 36 [11:15:47]RasterBufferAndPrint [11:15:47]line Счет N : (1)458246 [11:15:47]line ИНН: 02508201610067 [11:15:47]line Контрольно-Кассовый Чек [11:15:47]line ПРОДАЖА [11:15:47]line ТРК (МРК, ГНК) : 22 [11:15:47]line Товар: 2710124130 [11:15:47]line Аи-92-К-5 [11:15:47]line 7.600 * 65.80 [11:15:47]line = 500.08 [11:15:47]line НДС 12% НСП 1% [11:15:47]line > о реализуемом товаре [11:15:47]line ОКРУГЛЕНИЕ: -0.08 [11:15:47]line ИТОГО: 500.00 [11:15:47]line Внесено: 500.00 [11:15:47]line СДАЧА: 0.00 [11:15:47]line НСП 1% : 4.42 [11:15:47]line НДС 12% : 53.11 [11:15:47]line Наличными: 500.00 [11:15:47]line Безнал.: 0.00 [11:15:47]line Место: АЗС № 72 "Партнер Нефть" [11:15:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:15:47]line СНО: Общий режим [11:15:47]line Чек 84 12.07.2024 11:15 [11:15:47]line Смена: 445 ФФД: 1.0 [11:15:47]line ЗНМ: 0300000160 [11:15:47]line РНМ: 0000000000090829 [11:15:47]line Версия ККМ: 001 [11:15:47]line ФМ: 0000000000874718 [11:15:47]line ФД: 164163 [11:15:47]line ФПД: 62006026119372 [11:15:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111546&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164163&fm=62006026119372&tin=02508201610067®Number=0000000000090829&sum=50000 [11:15:47]OFD Sender: Processing packet 164163 [packets to send 104, broken 103] [11:15:47]ProducePacketName [11:15:47]name=ofd_packets/00164163 [11:15:47]OFD Sender: To server: pG, [11:15:47]CommunicateWithHost lk.salyk.kg:30040 [11:15:47]ConnectInit lk.salyk.kg [11:15:47]written 0, free lines is 4095 [11:15:47]Connected sock=10 [11:15:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 92 07 01 6B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 00 00 00 F4 03 04 00 62 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 81 02 00 35 04 06 00 38 64 E7 29 28 CC F8 EF A1 9D BB A8 D7 DE [11:15:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0C 65 47 00 36 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 81 02 00 F4 03 04 00 F7 B6 90 66 B6 04 01 00 00 07 78 95 89 8B 38 96 85 [11:15:47]CommunicateWithHost err = 0 [11:15:47]CheckOFDResponse [11:15:47]1017 (14) - 77093643461234 [11:15:47]1041 (16) - 0000000000874718 [11:15:47]1040 (4) - 164163 [11:15:47]1012 (4) - 12.07.2024 04:54 [11:15:47]1206 (1) - 0 [11:15:47]OFD Sender: Remove packet 164163 [11:15:47]ProducePacketName [11:15:47]name=ofd_packets/00164163 [11:15:47]NVStorageDeleteData [11:15:48]Write to MH i2c: 01 00 00 3E 0D 4B [11:15:48]Write i2c OK [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: 01 [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: 01 07 00 [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: 01 07 00 3E 0D 00 00 00 00 00 EB 0C 49 [11:15:48]RasterBufferAndPrint [11:15:48]line [11:15:48]line [11:15:48]line [11:15:48]line [11:15:48]line [11:15:48]written 0, free lines is 3316 [11:15:48]MH_Cut [11:15:48]Write to MH i2c: D1 01 00 45 0D 01 24 [11:15:48]Write i2c OK [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: D1 [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: D1 01 00 [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: D1 01 00 45 0D 00 23 [11:15:48]Write to MH i2c: 01 00 00 46 0D 53 [11:15:48]Write i2c OK [11:15:48]MH_I2C_Read... [11:15:48]OFD Sender: No OFD packet to send [11:15:48]*** Cut start [11:15:48]*** Partial cut [11:15:48]*** CUTSNS_PIN = 1 [11:15:48]*** CUTSNS_PIN = 0 [11:15:49]*** Brake cut motor [11:15:49]Read from MH i2c: 01 [11:15:49]MH_I2C_Read... [11:15:49]*** Stop cut motor [11:15:49]Read from MH i2c: 01 07 00 [11:15:49]MH_I2C_Read... [11:15:49]*** Cut end [11:15:49]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [11:15:49]process_action close_receipt done [11:15:49]requested_data is exist [11:15:49]produce_requested_data [11:15:49]requested_item fm.sn is exist - process it [11:15:49]wFMCommunicate request_size=4 [11:15:49]MH_SAM_APDU [11:15:49]CAPDU: 80 11 00 00 [11:15:49]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:49]Read from MH i2c: E2 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 17 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [11:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:15:49]wFMCommunicate OK [11:15:49]requested_item fd.num is exist - process it [11:15:49]SAM_PROTO_GetFieldsCounters [11:15:49]wFMCommunicate request_size=4 [11:15:49]MH_SAM_APDU [11:15:49]CAPDU: 80 13 00 00 [11:15:49]Write to MH i2c: E2 08 00 48 0D 80 13 00 00 00 00 00 00 D1 [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:49]Read from MH i2c: E2 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 62 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 62 00 48 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:15:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:49]wFMCommunicate OK [11:15:49]SAM_PROTO_GetFieldsCounters done [11:15:49]requested_item shift.num is exist - process it [11:15:49]requested_item shift.opened is exist - process it [11:15:49]req_shift_opened [11:15:49]FM_GetShiftState [11:15:49]SAM_PROTO_GetShiftState [11:15:49]wFMCommunicate request_size=4 [11:15:49]MH_SAM_APDU [11:15:49]CAPDU: 80 13 01 00 [11:15:49]Write to MH i2c: E2 08 00 49 0D 80 13 01 00 00 00 00 00 D3 [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:49]Read from MH i2c: E2 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 0E 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 0E 00 49 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1D [11:15:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:15:49]wFMCommunicate OK [11:15:49]SAM_PROTO_GetShiftState done [11:15:49]FM_GetShiftState done [11:15:49]req_shift_opened done [11:15:49]requested_item shift.open_date is exist - process it [11:15:49]req_shift_open_date [11:15:49]req_shift_open_date done [11:15:49]produce_requested_data done [11:15:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164163,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:15:49]process_action_free close_receipt [11:15:49]json_value_free [11:15:49]json_value_free done [11:15:49]process_json_proto returns [11:15:49]Send response to host [11:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164163,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:15:49]free response buf [11:15:49]execute_script done [11:15:49]execute_script returns [11:15:49]free content buf [11:15:49]Sock 7.Close socket [11:15:49]Sock 7.Thread stoped [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:45]accept exits with 9 [11:16:45]New connection [11:16:45]New thread 3066707300 created [11:16:45]Thread 3066850660 joined [11:16:45]Waiting for new connection... [11:16:45] Sock 9.Parse request [11:16:45]Sock 9.Check first char [11:16:45]Sock 9.First char is OK [11:16:45]request: POST /json_proto HTTP/1.0 [11:16:45]Method: POST [11:16:45]URL: /json_proto [11:16:45]Method is POST - this is cgi request [11:16:45]url: /json_proto [11:16:45]query_string will be loaded in cgi processing [11:16:45]execute_cgi json_proto POST (null) [11:16:45]execute_cgi path=json_proto method=POST [11:16:45]POST find Content-Length [11:16:45]Host: 172.17.56.4:8080 [11:16:45]Content-Length: 682 [11:16:45]Content-Type: application/json [11:16:45] [11:16:45]POST finish read [11:16:45]Found Content-Length = 682 [11:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:16:45]execute_script... [11:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:16:45]POST & json_proto [11:16:45]process_json_proto [11:16:45]json parsed OK: [11:16:45]protocol is kg_v1.0 [11:16:45]action value=close_receipt [11:16:45]process_action close_receipt [11:16:45]cmd_close_receipt [11:16:45]MH_GetDate [11:16:45]Write to MH i2c: F0 00 00 4A 0D 46 [11:16:45]Write i2c OK [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: F0 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: F0 09 00 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: F0 09 00 4A 0D 00 9E 10 91 66 C9 DC B2 64 AF [11:16:45]GetLastDocTimeStamp 1720782946 [11:16:45]current date 1720783006 [11:16:45]FM_GetShiftState [11:16:45]SAM_PROTO_GetShiftState [11:16:45]wFMCommunicate request_size=4 [11:16:45]MH_SAM_APDU [11:16:45]CAPDU: 80 13 01 00 [11:16:45]Write to MH i2c: E2 08 00 4B 0D 80 13 01 00 00 00 00 00 D5 [11:16:45]Write i2c OK [11:16:45]MH_I2C_Read... [11:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:45]Read from MH i2c: E2 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 0E 00 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 0E 00 4B 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1F [11:16:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:16:45]wFMCommunicate OK [11:16:45]SAM_PROTO_GetShiftState done [11:16:45]FM_GetShiftState done [11:16:45]opened in 1720744654 [11:16:45]opened+sec_in_day 1720831054 [11:16:45]quantity*price = 100016 [11:16:45]sum+1 = 100017 [11:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 85 12.07.2024 11:16 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164164 ФПД: 217787384893138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111646&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164164&fm=217787384893138&tin=02508201610067®Number=0000000000090829&sum=100000 [11:16:46]StoreToDocumentArchive [11:16:46]shift 445 fd 164164 [11:16:46]save to /storage/0445/doc_00164164 [11:16:46]save last doc name /storage/0445/doc_00164164 to /storage/kkm_last_doc_name [11:16:46]save OK [11:16:46]Clear old archive folders... [11:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:46]tlvbuf is 00A44690 [11:16:46]SAM_PROTO_ClearQueue [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 09 00 00 [11:16:46]Write to MH i2c: E2 08 00 58 0D 80 09 00 00 00 00 00 00 D7 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_ClearQueue done [11:16:46]KKMCreateOFDPacket [11:16:46]OFDProtocolAddRootSTLVToBuf [11:16:46]FM_MakeSignedData [11:16:46]FM_MakeSignedData [11:16:46]SAM_PROTO_SignData [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 01 02 [11:16:46]Write to MH i2c: E2 08 00 59 0D 80 0D 01 02 00 00 00 00 DF [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]wFMCommunicate request_size=255 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9E 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 81 02 00 35 04 06 00 C6 [11:16:46]Write to MH i2c: E2 02 01 5A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9E 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 81 02 00 35 04 06 00 C6 00 00 3F [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=10 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 02 02 05 13 93 B6 8E D2 [11:16:47]Write to MH i2c: E2 0D 00 5B 0D 80 0D 02 02 05 00 13 93 B6 8E D2 00 00 A8 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 03 02 [11:16:47]Write to MH i2c: E2 08 00 5C 0D 80 0D 03 02 00 00 00 00 E4 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0B 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0B 00 5C 0D 00 50 30 F6 2A 2A 75 E7 EC 90 00 F7 [11:16:47]RAPDU: 50 30 F6 2A 2A 75 E7 EC 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_SignData done [11:16:47]FM_MakeSignedData done [11:16:47]CreateOFDProtocolMessage [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 11 00 00 [11:16:47]Write to MH i2c: E2 08 00 5D 0D 80 11 00 00 00 00 00 00 E4 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 17 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 17 00 5D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [11:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:16:47]wFMCommunicate OK [11:16:47]CreateOFDProtocolMessage done [11:16:47]OFDSenderStorePacket 164164 [11:16:47]StoreOFDPacket docnum=164164 [11:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 62 07 01 68 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9E 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 81 02 00 35 04 06 00 C6 13 93 B6 8E D2 50 30 F6 2A 2A 75 E7 EC [11:16:47]CheckFolder [11:16:47]dirname=/storage/ofd_packets [11:16:47]CheckFolder done [11:16:47]ProducePacketName [11:16:47]name=ofd_packets/00164164 [11:16:47]NVStorageSaveData ofd_packets/00164164 [11:16:47]File name is /storage/ofd_packets/00164164 [11:16:47]Write 301 bytes [11:16:47]NVStorageSaveData done [11:16:47]OFDSenderStorePacket done [11:16:47]KKMCreateOFDPacket done [11:16:47]NVStorageSaveData kkm_last_timestamp [11:16:47]File name is /storage/kkm_last_timestamp [11:16:47]Write 4 bytes [11:16:47]NVStorageSaveData done [11:16:47]OFD Sender: Processing packet 164164 [packets to send 104, broken 103] [11:16:47]ProducePacketName [11:16:47]name=ofd_packets/00164164 [11:16:47]OFD Sender: To server: pG, [11:16:47]CommunicateWithHost lk.salyk.kg:30040 [11:16:47]ConnectInit lk.salyk.kg [11:16:47]ExternCall_PrintAddStr [11:16:47]wPrintStart [11:16:47]Write to MH i2c: 01 00 00 5E 0D 6B [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 5E 0D 00 00 00 00 00 FF 0F 80 [11:16:47]RasterBufferAndPrint [11:16:47]line Счет N : (1)458247 [11:16:47]line ИНН: 02508201610067 [11:16:47]line Контрольно-Кассовый Чек [11:16:47]line ПРОДАЖА [11:16:47]line ТРК (МРК, ГНК) : 12 [11:16:47]line Товар: 2710124130 [11:16:47]line Аи-92-К-5 [11:16:47]line 15.200 * 65.80 [11:16:47]line = 1000.16 [11:16:47]line НДС 12% НСП 1% [11:16:47]line > о реализуемом товаре [11:16:47]line ОКРУГЛЕНИЕ: -0.16 [11:16:47]line ИТОГО: 1000.00 [11:16:47]line Внесено: 1000.00 [11:16:47]line СДАЧА: 0.00 [11:16:47]line НСП 1% : 8.85 [11:16:47]line НДС 12% : 106.21 [11:16:47]line Наличными: 1000.00 [11:16:47]line Безнал.: 0.00 [11:16:47]line Место: АЗС № 72 "Партнер Нефть" [11:16:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:16:47]line СНО: Общий режим [11:16:47]line Чек 85 12.07.2024 11:16 [11:16:47]line Смена: 445 ФФД: 1.0 [11:16:47]line ЗНМ: 0300000160 [11:16:47]line РНМ: 0000000000090829 [11:16:47]line Версия ККМ: 001 [11:16:47]line ФМ: 0000000000874718 [11:16:47]line ФД: 164164 [11:16:47]line ФПД: 217787384893138 [11:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111646&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164164&fm=217787384893138&tin=02508201610067®Number=0000000000090829&sum=100000 [11:16:47]Connected sock=11 [11:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 62 07 01 68 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9E 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 81 02 00 35 04 06 00 C6 13 93 B6 8E D2 50 30 F6 2A 2A 75 E7 EC [11:16:47]written 0, free lines is 4095 [11:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 21 9F 47 00 27 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 34 37 31 38 10 04 04 00 44 81 02 00 F4 03 04 00 32 B7 90 66 B6 04 01 00 00 B3 55 15 76 20 08 12 88 [11:16:47]CommunicateWithHost err = 0 [11:16:47]CheckOFDResponse [11:16:47]1017 (14) - 77093643461234 [11:16:47]1041 (16) - 0000000000874718 [11:16:47]1040 (4) - 164164 [11:16:47]1012 (4) - 12.07.2024 04:55 [11:16:47]1206 (1) - 0 [11:16:47]OFD Sender: Remove packet 164164 [11:16:47]ProducePacketName [11:16:47]name=ofd_packets/00164164 [11:16:47]NVStorageDeleteData [11:16:47]Write to MH i2c: 01 00 00 88 0D 95 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 88 0D 00 00 00 00 00 EF 0C 97 [11:16:47]RasterBufferAndPrint [11:16:47]line [11:16:47]line [11:16:47]line [11:16:47]line [11:16:47]line [11:16:47]written 0, free lines is 3318 [11:16:47]MH_Cut [11:16:47]Write to MH i2c: D1 01 00 8F 0D 01 6E [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D1 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D1 01 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D1 01 00 8F 0D 00 6D [11:16:47]Write to MH i2c: 01 00 00 90 0D 9D [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:48]OFD Sender: No OFD packet to send [11:16:48]*** Cut start [11:16:48]*** Partial cut [11:16:48]*** CUTSNS_PIN = 1 [11:16:48]*** CUTSNS_PIN = 0 [11:16:48]*** Brake cut motor [11:16:49]Read from MH i2c: 01 [11:16:49]MH_I2C_Read... [11:16:49]*** Stop cut motor [11:16:49]*** Cut end [11:16:49]Read from MH i2c: 01 07 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: 01 07 00 90 0D 00 00 00 00 00 FF 0F B2 [11:16:49]process_action close_receipt done [11:16:49]requested_data is exist [11:16:49]produce_requested_data [11:16:49]requested_item fm.sn is exist - process it [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 11 00 00 [11:16:49]Write to MH i2c: E2 08 00 91 0D 80 11 00 00 00 00 00 00 18 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 17 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 17 00 91 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [11:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:16:49]wFMCommunicate OK [11:16:49]requested_item fd.num is exist - process it [11:16:49]SAM_PROTO_GetFieldsCounters [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 13 00 00 [11:16:49]Write to MH i2c: E2 08 00 92 0D 80 13 00 00 00 00 00 00 1B [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 62 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 62 00 92 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [11:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:49]wFMCommunicate OK [11:16:49]SAM_PROTO_GetFieldsCounters done [11:16:49]requested_item shift.num is exist - process it [11:16:49]requested_item shift.opened is exist - process it [11:16:49]req_shift_opened [11:16:49]FM_GetShiftState [11:16:49]SAM_PROTO_GetShiftState [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 13 01 00 [11:16:49]Write to MH i2c: E2 08 00 93 0D 80 13 01 00 00 00 00 00 1D [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 0E 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 0E 00 93 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 67 [11:16:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:16:49]wFMCommunicate OK [11:16:49]SAM_PROTO_GetShiftState done [11:16:49]FM_GetShiftState done [11:16:49]req_shift_opened done [11:16:49]requested_item shift.open_date is exist - process it [11:16:49]req_shift_open_date [11:16:49]req_shift_open_date done [11:16:49]produce_requested_data done [11:16:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164164,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:16:49]process_action_free close_receipt [11:16:49]json_value_free [11:16:49]json_value_free done [11:16:49]process_json_proto returns [11:16:49]Send response to host [11:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164164,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:16:49]free response buf [11:16:49]execute_script done [11:16:49]execute_script returns [11:16:49]free content buf [11:16:49]Sock 9.Close socket [11:16:49]Sock 9.Thread stoped [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:49]accept exits with 7 [11:17:49]New connection [11:17:49]New thread 3066850660 created [11:17:49]Thread 3066707300 joined [11:17:49]Waiting for new connection... [11:17:49] Sock 7.Parse request [11:17:49]Sock 7.Check first char [11:17:49]Sock 7.First char is OK [11:17:49]request: POST /json_proto HTTP/1.0 [11:17:49]Method: POST [11:17:49]URL: /json_proto [11:17:49]Method is POST - this is cgi request [11:17:49]url: /json_proto [11:17:49]query_string will be loaded in cgi processing [11:17:49]execute_cgi json_proto POST (null) [11:17:49]execute_cgi path=json_proto method=POST [11:17:49]POST find Content-Length [11:17:49]Host: 172.17.56.4:8080 [11:17:49]Content-Length: 787 [11:17:49]Content-Type: application/json [11:17:49] [11:17:49]POST finish read [11:17:49]Found Content-Length = 787 [11:17:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 9.830, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:49]execute_script... [11:17: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)458248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 9.830, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:49]POST & json_proto [11:17:49]process_json_proto [11:17:49]json parsed OK: [11:17:49]protocol is kg_v1.0 [11:17:49]action value=close_receipt [11:17:49]process_action close_receipt [11:17:49]cmd_close_receipt [11:17:49]MH_GetDate [11:17:49]Write to MH i2c: F0 00 00 94 0D 90 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: F0 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: F0 09 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: F0 09 00 94 0D 00 DE 10 91 66 C9 DC B2 64 39 [11:17:49]GetLastDocTimeStamp 1720783006 [11:17:49]current date 1720783070 [11:17:49]FM_GetShiftState [11:17:49]SAM_PROTO_GetShiftState [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 13 01 00 [11:17:49]Write to MH i2c: E2 08 00 95 0D 80 13 01 00 00 00 00 00 1F [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 0E 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 0E 00 95 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 69 [11:17:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:17:49]wFMCommunicate OK [11:17:49]SAM_PROTO_GetShiftState done [11:17:49]FM_GetShiftState done [11:17:49]opened in 1720744654 [11:17:49]opened+sec_in_day 1720831054 [11:17:49]quantity*price = 70048 [11:17:49]sum+1 = 70050 [11:17:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.49 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.49 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 86 12.07.2024 11:17 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164165 ФПД: 23734780348108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164165&fm=23734780348108&tin=02508201610067®Number=0000000000090829&sum=70049 [11:17:51]StoreToDocumentArchive [11:17:51]shift 445 fd 164165 [11:17:51]save to /storage/0445/doc_00164165 [11:17:51]save last doc name /storage/0445/doc_00164165 to /storage/kkm_last_doc_name [11:17:51]save OK [11:17:51]Clear old archive folders... [11:17:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:17:51]tlvbuf is 009EBD40 [11:17:51]SAM_PROTO_ClearQueue [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 09 00 00 [11:17:51]Write to MH i2c: E2 08 00 A2 0D 80 09 00 00 00 00 00 00 21 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]SAM_PROTO_ClearQueue done [11:17:51]KKMCreateOFDPacket [11:17:51]OFDProtocolAddRootSTLVToBuf [11:17:51]FM_MakeSignedData [11:17:51]FM_MakeSignedData [11:17:51]SAM_PROTO_SignData [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 01 02 [11:17:51]Write to MH i2c: E2 08 00 A3 0D 80 0D 01 02 00 00 00 00 29 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]wFMCommunicate request_size=255 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 26 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DE 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 81 02 00 35 04 06 00 15 96 2F 26 [11:17:51]Write to MH i2c: E2 02 01 A4 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 26 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DE 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 81 02 00 35 04 06 00 15 96 2F 26 00 00 7D [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]wFMCommunicate request_size=7 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 02 02 02 C6 CC [11:17:51]Write to MH i2c: E2 0A 00 A5 0D 80 0D 02 02 02 00 C6 CC 00 00 C2 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 03 00 A5 0D 00 90 00 26 [11:17:51]RAPDU: 90 00 [11:17:51]wFMCommunicate OK [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 0D 03 02 [11:17:51]Write to MH i2c: E2 08 00 A6 0D 80 0D 03 02 00 00 00 00 2E [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0B 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0B 00 A6 0D 00 08 2D 7B BE 35 13 B8 65 90 00 02 [11:17:51]RAPDU: 08 2D 7B BE 35 13 B8 65 90 00 [11:17:51]wFMCommunicate OK [11:17:51]SAM_PROTO_SignData done [11:17:51]FM_MakeSignedData done [11:17:51]CreateOFDProtocolMessage [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 11 00 00 [11:17:51]Write to MH i2c: E2 08 00 A7 0D 80 11 00 00 00 00 00 00 2E [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 A7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 84 [11:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:17:51]wFMCommunicate OK [11:17:51]CreateOFDProtocolMessage done [11:17:51]OFDSenderStorePacket 164165 [11:17:51]StoreOFDPacket docnum=164165 [11:17:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C7 F1 04 01 F4 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 26 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DE 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 81 02 00 35 04 06 00 15 96 2F 26 C6 CC 08 2D 7B BE 35 13 B8 65 [11:17:51]CheckFolder [11:17:51]dirname=/storage/ofd_packets [11:17:51]CheckFolder done [11:17:51]ProducePacketName [11:17:51]name=ofd_packets/00164165 [11:17:51]NVStorageSaveData ofd_packets/00164165 [11:17:51]File name is /storage/ofd_packets/00164165 [11:17:51]Write 298 bytes [11:17:51]NVStorageSaveData done [11:17:51]OFDSenderStorePacket done [11:17:51]KKMCreateOFDPacket done [11:17:51]NVStorageSaveData kkm_last_timestamp [11:17:51]File name is /storage/kkm_last_timestamp [11:17:51]Write 4 bytes [11:17:51]NVStorageSaveData done [11:17:51]ExternCall_PrintAddStr [11:17:51]wPrintStart [11:17:51]Write to MH i2c: 01 00 00 A8 0D B5 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 A8 0D 00 00 00 00 00 FF 0F CA [11:17:51]RasterBufferAndPrint [11:17:51]line Счет N : (1)458248 [11:17:51]line ИНН: 02508201610067 [11:17:51]line Контрольно-Кассовый Чек [11:17:51]line ПРОДАЖА [11:17:51]line ТРК (МРК, ГНК) : 11 [11:17:51]line Товар: 2710194210 [11:17:51]line ДТ-К-5 [11:17:51]line 9.830 * 71.26 [11:17:51]line = 700.49 [11:17:51]line НДС 12% НСП 1% [11:17:51]line > о реализуемом товаре [11:17:51]line ИТОГО: 700.49 [11:17:51]line НСП 1% : 6.20 [11:17:51]line НДС 12% : 74.39 [11:17:51]line Наличными: 0.00 [11:17:51]line Безнал.: 700.49 [11:17:51]line Место: АЗС № 72 "Партнер Нефть" [11:17:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:17:51]line СНО: Общий режим [11:17:51]line Чек 86 12.07.2024 11:17 [11:17:51]line Смена: 445 ФФД: 1.0 [11:17:51]line ЗНМ: 0300000160 [11:17:51]line РНМ: 0000000000090829 [11:17:51]line Версия ККМ: 001 [11:17:51]line Платежная система: KICB Банк [11:17:51]line ФМ: 0000000000874718 [11:17:51]line ФД: 164165 [11:17:51]line ФПД: 23734780348108 [11:17:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164165&fm=23734780348108&tin=02508201610067®Number=0000000000090829&sum=70049 [11:17:51]OFD Sender: Processing packet 164165 [packets to send 104, broken 103] [11:17:51]ProducePacketName [11:17:51]name=ofd_packets/00164165 [11:17:51]OFD Sender: To server: pG, [11:17:51]CommunicateWithHost lk.salyk.kg:30040 [11:17:51]ConnectInit lk.salyk.kg [11:17:51]written 0, free lines is 4095 [11:17:52]Connected sock=10 [11:17:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C7 F1 04 01 F4 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 26 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DE 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 81 02 00 35 04 06 00 15 96 2F 26 C6 CC 08 2D 7B BE 35 13 B8 65 [11:17:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 54 5B 47 00 38 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 34 37 31 38 10 04 04 00 45 81 02 00 F4 03 04 00 73 B7 90 66 B6 04 01 00 00 4A E9 14 33 B6 53 87 2C [11:17:52]CommunicateWithHost err = 0 [11:17:52]CheckOFDResponse [11:17:52]1017 (14) - 77093643461234 [11:17:52]1041 (16) - 0000000000874718 [11:17:52]1040 (4) - 164165 [11:17:52]1012 (4) - 12.07.2024 04:56 [11:17:52]1206 (1) - 0 [11:17:52]OFD Sender: Remove packet 164165 [11:17:52]ProducePacketName [11:17:52]name=ofd_packets/00164165 [11:17:52]NVStorageDeleteData [11:17:52]Write to MH i2c: 01 00 00 D1 0D DE [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: 01 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: 01 07 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: 01 07 00 D1 0D 00 00 00 00 00 02 0D F4 [11:17:52]RasterBufferAndPrint [11:17:52]line [11:17:52]line [11:17:52]line [11:17:52]line [11:17:52]line [11:17:52]written 0, free lines is 3336 [11:17:52]MH_Cut [11:17:52]Write to MH i2c: D1 01 00 D8 0D 01 B7 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: D1 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: D1 01 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: D1 01 00 D8 0D 00 B6 [11:17:52]Write to MH i2c: 01 00 00 D9 0D E6 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]OFD Sender: No OFD packet to send [11:17:53]*** Cut start [11:17:53]*** Partial cut [11:17:53]*** CUTSNS_PIN = 1 [11:17:53]*** CUTSNS_PIN = 0 [11:17:53]*** Brake cut motor [11:17:53]Read from MH i2c: 01 [11:17:53]MH_I2C_Read... [11:17:53]*** Stop cut motor [11:17:53]*** Cut end [11:17:53]Read from MH i2c: 01 07 00 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: 01 07 00 D9 0D 00 00 00 00 00 FF 0F FB [11:17:53]process_action close_receipt done [11:17:53]requested_data is exist [11:17:53]produce_requested_data [11:17:53]requested_item fm.sn is exist - process it [11:17:53]wFMCommunicate request_size=4 [11:17:53]MH_SAM_APDU [11:17:53]CAPDU: 80 11 00 00 [11:17:53]Write to MH i2c: E2 08 00 DA 0D 80 11 00 00 00 00 00 00 61 [11:17:53]Write i2c OK [11:17:53]MH_I2C_Read... [11:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:53]Read from MH i2c: E2 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 17 00 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 17 00 DA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [11:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:17:53]wFMCommunicate OK [11:17:53]requested_item fd.num is exist - process it [11:17:53]SAM_PROTO_GetFieldsCounters [11:17:53]wFMCommunicate request_size=4 [11:17:53]MH_SAM_APDU [11:17:53]CAPDU: 80 13 00 00 [11:17:53]Write to MH i2c: E2 08 00 DB 0D 80 13 00 00 00 00 00 00 64 [11:17:53]Write i2c OK [11:17:53]MH_I2C_Read... [11:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:53]Read from MH i2c: E2 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 62 00 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 62 00 DB 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [11:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:53]wFMCommunicate OK [11:17:53]SAM_PROTO_GetFieldsCounters done [11:17:53]requested_item shift.num is exist - process it [11:17:53]requested_item shift.opened is exist - process it [11:17:53]req_shift_opened [11:17:53]FM_GetShiftState [11:17:53]SAM_PROTO_GetShiftState [11:17:53]wFMCommunicate request_size=4 [11:17:53]MH_SAM_APDU [11:17:53]CAPDU: 80 13 01 00 [11:17:53]Write to MH i2c: E2 08 00 DC 0D 80 13 01 00 00 00 00 00 66 [11:17:53]Write i2c OK [11:17:53]MH_I2C_Read... [11:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:53]Read from MH i2c: E2 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 0E 00 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 0E 00 DC 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B0 [11:17:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:17:53]wFMCommunicate OK [11:17:53]SAM_PROTO_GetShiftState done [11:17:53]FM_GetShiftState done [11:17:53]req_shift_opened done [11:17:53]requested_item shift.open_date is exist - process it [11:17:53]req_shift_open_date [11:17:53]req_shift_open_date done [11:17:53]produce_requested_data done [11:17:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164165,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:17:53]process_action_free close_receipt [11:17:53]json_value_free [11:17:53]json_value_free done [11:17:53]process_json_proto returns [11:17:53]Send response to host [11:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164165,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:17:53]free response buf [11:17:53]execute_script done [11:17:53]execute_script returns [11:17:53]free content buf [11:17:53]Sock 7.Close socket [11:17:53]Sock 7.Thread stoped [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:13]accept exits with 9 [11:18:13]New connection [11:18:13]New thread 3066707300 created [11:18:13]Thread 3066850660 joined [11:18:13]Waiting for new connection... [11:18:13] Sock 9.Parse request [11:18:13]Sock 9.Check first char [11:18:13]Sock 9.First char is OK [11:18:13]request: POST /json_proto HTTP/1.0 [11:18:13]Method: POST [11:18:13]URL: /json_proto [11:18:13]Method is POST - this is cgi request [11:18:13]url: /json_proto [11:18:13]query_string will be loaded in cgi processing [11:18:13]execute_cgi json_proto POST (null) [11:18:13]execute_cgi path=json_proto method=POST [11:18:13]POST find Content-Length [11:18:13]Host: 172.17.56.4:8080 [11:18:13]Content-Length: 677 [11:18:13]Content-Type: application/json [11:18:13] [11:18:13]POST finish read [11:18:13]Found Content-Length = 677 [11:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:18:13]execute_script... [11:18:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:18:13]POST & json_proto [11:18:13]process_json_proto [11:18:13]json parsed OK: [11:18:13]protocol is kg_v1.0 [11:18:13]action value=close_receipt [11:18:13]process_action close_receipt [11:18:13]cmd_close_receipt [11:18:13]MH_GetDate [11:18:13]Write to MH i2c: F0 00 00 DD 0D D9 [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: F0 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: F0 09 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: F0 09 00 DD 0D 00 F6 10 91 66 C9 DC B2 64 9A [11:18:13]GetLastDocTimeStamp 1720783070 [11:18:13]current date 1720783094 [11:18:13]FM_GetShiftState [11:18:13]SAM_PROTO_GetShiftState [11:18:13]wFMCommunicate request_size=4 [11:18:13]MH_SAM_APDU [11:18:13]CAPDU: 80 13 01 00 [11:18:13]Write to MH i2c: E2 08 00 DE 0D 80 13 01 00 00 00 00 00 68 [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:13]Read from MH i2c: E2 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 0E 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 0E 00 DE 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B2 [11:18:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:18:13]wFMCommunicate OK [11:18:13]SAM_PROTO_GetShiftState done [11:18:13]FM_GetShiftState done [11:18:13]opened in 1720744654 [11:18:13]opened+sec_in_day 1720831054 [11:18:13]quantity*price = 30004 [11:18:13]sum+1 = 30006 [11:18:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 87 12.07.2024 11:18 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164166 ФПД: 89194563865241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111814&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164166&fm=89194563865241&tin=02508201610067®Number=0000000000090829&sum=30000 [11:18:14]StoreToDocumentArchive [11:18:14]shift 445 fd 164166 [11:18:14]save to /storage/0445/doc_00164166 [11:18:14]save last doc name /storage/0445/doc_00164166 to /storage/kkm_last_doc_name [11:18:14]save OK [11:18:14]Clear old archive folders... [11:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:14]tlvbuf is 009E66C0 [11:18:14]SAM_PROTO_ClearQueue [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 09 00 00 [11:18:14]Write to MH i2c: E2 08 00 EB 0D 80 09 00 00 00 00 00 00 6A [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 03 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [11:18:14]RAPDU: 90 00 [11:18:14]wFMCommunicate OK [11:18:14]SAM_PROTO_ClearQueue done [11:18:14]KKMCreateOFDPacket [11:18:14]OFDProtocolAddRootSTLVToBuf [11:18:14]FM_MakeSignedData [11:18:14]FM_MakeSignedData [11:18:14]SAM_PROTO_SignData [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 0D 01 02 [11:18:14]Write to MH i2c: E2 08 00 EC 0D 80 0D 01 02 00 00 00 00 72 [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 03 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [11:18:14]RAPDU: 90 00 [11:18:14]wFMCommunicate OK [11:18:14]wFMCommunicate request_size=255 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 81 02 00 35 04 06 00 51 [11:18:14]Write to MH i2c: E2 02 01 ED 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 81 02 00 35 04 06 00 51 00 00 D8 [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 ED 0D 00 90 00 6E [11:18:15]RAPDU: 90 00 [11:18:15]wFMCommunicate OK [11:18:15]wFMCommunicate request_size=10 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 0D 02 02 05 1F 3A 4B 8A 99 [11:18:15]Write to MH i2c: E2 0D 00 EE 0D 80 0D 02 02 05 00 1F 3A 4B 8A 99 00 00 46 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 03 00 EE 0D 00 90 00 6F [11:18:15]RAPDU: 90 00 [11:18:15]wFMCommunicate OK [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 0D 03 02 [11:18:15]Write to MH i2c: E2 08 00 EF 0D 80 0D 03 02 00 00 00 00 77 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0B 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 0B 00 EF 0D 00 8C D4 CB 34 D6 12 A6 10 90 00 75 [11:18:15]RAPDU: 8C D4 CB 34 D6 12 A6 10 90 00 [11:18:15]wFMCommunicate OK [11:18:15]SAM_PROTO_SignData done [11:18:15]FM_MakeSignedData done [11:18:15]CreateOFDProtocolMessage [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 11 00 00 [11:18:15]Write to MH i2c: E2 08 00 F0 0D 80 11 00 00 00 00 00 00 77 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 17 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 17 00 F0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [11:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:18:15]wFMCommunicate OK [11:18:15]CreateOFDProtocolMessage done [11:18:15]OFDSenderStorePacket 164166 [11:18:15]StoreOFDPacket docnum=164166 [11:18:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB CA 07 01 F7 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 81 02 00 35 04 06 00 51 1F 3A 4B 8A 99 8C D4 CB 34 D6 12 A6 10 [11:18:15]CheckFolder [11:18:15]dirname=/storage/ofd_packets [11:18:15]CheckFolder done [11:18:15]ProducePacketName [11:18:15]name=ofd_packets/00164166 [11:18:15]NVStorageSaveData ofd_packets/00164166 [11:18:15]File name is /storage/ofd_packets/00164166 [11:18:15]Write 301 bytes [11:18:15]NVStorageSaveData done [11:18:15]OFDSenderStorePacket done [11:18:15]KKMCreateOFDPacket done [11:18:15]NVStorageSaveData kkm_last_timestamp [11:18:15]File name is /storage/kkm_last_timestamp [11:18:15]Write 4 bytes [11:18:15]NVStorageSaveData done [11:18:15]ExternCall_PrintAddStr [11:18:15]wPrintStart [11:18:15]Write to MH i2c: 01 00 00 F1 0D FE [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: 01 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: 01 07 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FF 0F 13 [11:18:15]RasterBufferAndPrint [11:18:15]line Счет N : (1)458249 [11:18:15]line ИНН: 02508201610067 [11:18:15]line Контрольно-Кассовый Чек [11:18:15]line ПРОДАЖА [11:18:15]line ТРК (МРК, ГНК) : 12 [11:18:15]line Товар: 2710124130 [11:18:15]line Аи-92-К-5 [11:18:15]line 4.560 * 65.80 [11:18:15]line = 300.05 [11:18:15]line НДС 12% НСП 1% [11:18:15]line > о реализуемом товаре [11:18:15]line ОКРУГЛЕНИЕ: -0.05 [11:18:15]line ИТОГО: 300.00 [11:18:15]line Внесено: 300.00 [11:18:15]line СДАЧА: 0.00 [11:18:15]line НСП 1% : 2.65 [11:18:15]line НДС 12% : 31.86 [11:18:15]line Наличными: 300.00 [11:18:15]line Безнал.: 0.00 [11:18:15]line Место: АЗС № 72 "Партнер Нефть" [11:18:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:18:15]line СНО: Общий режим [11:18:15]line Чек 87 12.07.2024 11:18 [11:18:15]line Смена: 445 ФФД: 1.0 [11:18:15]line ЗНМ: 0300000160 [11:18:15]line РНМ: 0000000000090829 [11:18:15]line Версия ККМ: 001 [11:18:15]line ФМ: 0000000000874718 [11:18:15]line ФД: 164166 [11:18:15]line ФПД: 89194563865241 [11:18:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111814&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164166&fm=89194563865241&tin=02508201610067®Number=0000000000090829&sum=30000 [11:18:15]written 0, free lines is 4095 [11:18:15]OFD Sender: Processing packet 164166 [packets to send 104, broken 103] [11:18:15]ProducePacketName [11:18:15]name=ofd_packets/00164166 [11:18:15]OFD Sender: To server: pG, [11:18:15]CommunicateWithHost lk.salyk.kg:30040 [11:18:15]ConnectInit lk.salyk.kg [11:18:15]Connected sock=10 [11:18:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB CA 07 01 F7 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 10 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 81 02 00 35 04 06 00 51 1F 3A 4B 8A 99 8C D4 CB 34 D6 12 A6 10 [11:18:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F5 99 47 00 EF 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 34 37 31 38 10 04 04 00 46 81 02 00 F4 03 04 00 8B B7 90 66 B6 04 01 00 00 0D 32 F1 EA BF C8 36 BC [11:18:15]CommunicateWithHost err = 0 [11:18:15]CheckOFDResponse [11:18:15]1017 (14) - 77093643461234 [11:18:15]1041 (16) - 0000000000874718 [11:18:15]1040 (4) - 164166 [11:18:15]1012 (4) - 12.07.2024 04:56 [11:18:15]1206 (1) - 0 [11:18:15]OFD Sender: Remove packet 164166 [11:18:15]ProducePacketName [11:18:15]name=ofd_packets/00164166 [11:18:15]NVStorageDeleteData [11:18:15]Write to MH i2c: 01 00 00 1B 0E 29 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: 01 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: 01 07 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: 01 07 00 1B 0E 00 00 00 00 00 F5 0C 31 [11:18:15]RasterBufferAndPrint [11:18:15]line [11:18:15]line [11:18:15]line [11:18:15]line [11:18:15]line [11:18:15]written 0, free lines is 3323 [11:18:15]MH_Cut [11:18:15]Write to MH i2c: D1 01 00 22 0E 01 02 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: D1 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: D1 01 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: D1 01 00 22 0E 00 01 [11:18:15]Write to MH i2c: 01 00 00 23 0E 31 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:16]OFD Sender: No OFD packet to send [11:18:16]*** Cut start [11:18:16]*** Partial cut [11:18:16]*** CUTSNS_PIN = 1 [11:18:16]*** CUTSNS_PIN = 0 [11:18:16]*** Brake cut motor [11:18:17]Read from MH i2c: 01 [11:18:17]MH_I2C_Read... [11:18:17]*** Stop cut motor [11:18:17]*** Cut end [11:18:17]Read from MH i2c: 01 07 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 FF 0F 46 [11:18:17]process_action close_receipt done [11:18:17]requested_data is exist [11:18:17]produce_requested_data [11:18:17]requested_item fm.sn is exist - process it [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 11 00 00 [11:18:17]Write to MH i2c: E2 08 00 24 0E 80 11 00 00 00 00 00 00 AC [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 17 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 17 00 24 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [11:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:18:17]wFMCommunicate OK [11:18:17]requested_item fd.num is exist - process it [11:18:17]SAM_PROTO_GetFieldsCounters [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 13 00 00 [11:18:17]Write to MH i2c: E2 08 00 25 0E 80 13 00 00 00 00 00 00 AF [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 62 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 62 00 25 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:18:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:17]wFMCommunicate OK [11:18:17]SAM_PROTO_GetFieldsCounters done [11:18:17]requested_item shift.num is exist - process it [11:18:17]requested_item shift.opened is exist - process it [11:18:17]req_shift_opened [11:18:17]FM_GetShiftState [11:18:17]SAM_PROTO_GetShiftState [11:18:17]wFMCommunicate request_size=4 [11:18:17]MH_SAM_APDU [11:18:17]CAPDU: 80 13 01 00 [11:18:17]Write to MH i2c: E2 08 00 26 0E 80 13 01 00 00 00 00 00 B1 [11:18:17]Write i2c OK [11:18:17]MH_I2C_Read... [11:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:17]Read from MH i2c: E2 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 0E 00 [11:18:17]MH_I2C_Read... [11:18:17]Read from MH i2c: E2 0E 00 26 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FB [11:18:17]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:18:17]wFMCommunicate OK [11:18:17]SAM_PROTO_GetShiftState done [11:18:17]FM_GetShiftState done [11:18:17]req_shift_opened done [11:18:17]requested_item shift.open_date is exist - process it [11:18:17]req_shift_open_date [11:18:17]req_shift_open_date done [11:18:17]produce_requested_data done [11:18:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164166,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:18:17]process_action_free close_receipt [11:18:17]json_value_free [11:18:17]json_value_free done [11:18:17]process_json_proto returns [11:18:17]Send response to host [11:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164166,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:18:17]free response buf [11:18:17]execute_script done [11:18:17]execute_script returns [11:18:17]free content buf [11:18:17]Sock 9.Close socket [11:18:17]Sock 9.Thread stoped [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:00]accept exits with 7 [11:19:00]New connection [11:19:00]New thread 3066850660 created [11:19:00]Thread 3066707300 joined [11:19:00]Waiting for new connection... [11:19:00] Sock 7.Parse request [11:19:00]Sock 7.Check first char [11:19:00]Sock 7.First char is OK [11:19:00]request: POST /json_proto HTTP/1.0 [11:19:00]Method: POST [11:19:00]URL: /json_proto [11:19:00]Method is POST - this is cgi request [11:19:00]url: /json_proto [11:19:00]query_string will be loaded in cgi processing [11:19:00]execute_cgi json_proto POST (null) [11:19:00]execute_cgi path=json_proto method=POST [11:19:00]POST find Content-Length [11:19:00]Host: 172.17.56.4:8080 [11:19:00]Content-Length: 677 [11:19:00]Content-Type: application/json [11:19:00] [11:19:00]POST finish read [11:19:00]Found Content-Length = 677 [11:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:19:00]execute_script... [11:19: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)458250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:19:00]POST & json_proto [11:19:00]process_json_proto [11:19:00]json parsed OK: [11:19:00]protocol is kg_v1.0 [11:19:00]action value=close_receipt [11:19:00]process_action close_receipt [11:19:00]cmd_close_receipt [11:19:00]MH_GetDate [11:19:00]Write to MH i2c: F0 00 00 27 0E 24 [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: F0 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: F0 09 00 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: F0 09 00 27 0E 00 25 11 91 66 C9 DC B2 64 15 [11:19:00]GetLastDocTimeStamp 1720783094 [11:19:00]current date 1720783141 [11:19:00]FM_GetShiftState [11:19:00]SAM_PROTO_GetShiftState [11:19:00]wFMCommunicate request_size=4 [11:19:00]MH_SAM_APDU [11:19:00]CAPDU: 80 13 01 00 [11:19:00]Write to MH i2c: E2 08 00 28 0E 80 13 01 00 00 00 00 00 B3 [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:00]Read from MH i2c: E2 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 0E 00 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 0E 00 28 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FD [11:19:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:19:00]wFMCommunicate OK [11:19:00]SAM_PROTO_GetShiftState done [11:19:00]FM_GetShiftState done [11:19:00]opened in 1720744654 [11:19:00]opened+sec_in_day 1720831054 [11:19:00]quantity*price = 20003 [11:19:00]sum+1 = 20004 [11:19:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 88 12.07.2024 11:19 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164167 ФПД: 171472518426136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111901&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164167&fm=171472518426136&tin=02508201610067®Number=0000000000090829&sum=20000 [11:19:01]StoreToDocumentArchive [11:19:01]shift 445 fd 164167 [11:19:01]save to /storage/0445/doc_00164167 [11:19:01]save last doc name /storage/0445/doc_00164167 to /storage/kkm_last_doc_name [11:19:01]save OK [11:19:01]Clear old archive folders... [11:19:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:01]tlvbuf is B6E8F520 [11:19:01]SAM_PROTO_ClearQueue [11:19:01]wFMCommunicate request_size=4 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 09 00 00 [11:19:01]Write to MH i2c: E2 08 00 35 0E 80 09 00 00 00 00 00 00 B5 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [11:19:01]RAPDU: 90 00 [11:19:01]wFMCommunicate OK [11:19:01]SAM_PROTO_ClearQueue done [11:19:01]KKMCreateOFDPacket [11:19:01]OFDProtocolAddRootSTLVToBuf [11:19:01]FM_MakeSignedData [11:19:01]FM_MakeSignedData [11:19:01]SAM_PROTO_SignData [11:19:01]wFMCommunicate request_size=4 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 0D 01 02 [11:19:01]Write to MH i2c: E2 08 00 36 0E 80 0D 01 02 00 00 00 00 BD [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [11:19:01]RAPDU: 90 00 [11:19:01]wFMCommunicate OK [11:19:01]wFMCommunicate request_size=255 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 25 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 81 02 00 35 04 06 00 9B [11:19:01]Write to MH i2c: E2 02 01 37 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 25 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 81 02 00 35 04 06 00 9B 00 00 7F [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]OFD Sender: No OFD packet to send [11:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [11:19:01]RAPDU: 90 00 [11:19:01]wFMCommunicate OK [11:19:01]wFMCommunicate request_size=10 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 0D 02 02 05 F4 0E 8C AE 18 [11:19:01]Write to MH i2c: E2 0D 00 38 0E 80 0D 02 02 05 00 F4 0E 8C AE 18 00 00 1E [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 38 0E 00 90 00 BA [11:19:01]RAPDU: 90 00 [11:19:01]wFMCommunicate OK [11:19:01]wFMCommunicate request_size=4 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 0D 03 02 [11:19:01]Write to MH i2c: E2 08 00 39 0E 80 0D 03 02 00 00 00 00 C2 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 0B 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 0B 00 39 0E 00 E3 E5 1D 41 B1 0D 44 0E 90 00 F9 [11:19:01]RAPDU: E3 E5 1D 41 B1 0D 44 0E 90 00 [11:19:01]wFMCommunicate OK [11:19:01]SAM_PROTO_SignData done [11:19:01]FM_MakeSignedData done [11:19:01]CreateOFDProtocolMessage [11:19:01]wFMCommunicate request_size=4 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 11 00 00 [11:19:01]Write to MH i2c: E2 08 00 3A 0E 80 11 00 00 00 00 00 00 C2 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 17 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 17 00 3A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [11:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:01]wFMCommunicate OK [11:19:01]CreateOFDProtocolMessage done [11:19:01]OFDSenderStorePacket 164167 [11:19:01]StoreOFDPacket docnum=164167 [11:19:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B1 5F 07 01 34 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 25 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 81 02 00 35 04 06 00 9B F4 0E 8C AE 18 E3 E5 1D 41 B1 0D 44 0E [11:19:01]CheckFolder [11:19:01]dirname=/storage/ofd_packets [11:19:01]CheckFolder done [11:19:01]ProducePacketName [11:19:01]name=ofd_packets/00164167 [11:19:01]NVStorageSaveData ofd_packets/00164167 [11:19:01]File name is /storage/ofd_packets/00164167 [11:19:01]Write 301 bytes [11:19:01]NVStorageSaveData done [11:19:01]OFDSenderStorePacket done [11:19:01]KKMCreateOFDPacket done [11:19:01]NVStorageSaveData kkm_last_timestamp [11:19:01]File name is /storage/kkm_last_timestamp [11:19:01]Write 4 bytes [11:19:01]NVStorageSaveData done [11:19:01]ExternCall_PrintAddStr [11:19:01]wPrintStart [11:19:01]Write to MH i2c: 01 00 00 3B 0E 49 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 07 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 07 00 3B 0E 00 00 00 00 00 FF 0F 5E [11:19:01]RasterBufferAndPrint [11:19:01]line Счет N : (1)458250 [11:19:01]line ИНН: 02508201610067 [11:19:01]line Контрольно-Кассовый Чек [11:19:01]line ПРОДАЖА [11:19:01]line ТРК (МРК, ГНК) : 22 [11:19:01]line Товар: 2710124130 [11:19:01]line Аи-92-К-5 [11:19:01]line 3.040 * 65.80 [11:19:01]line = 200.03 [11:19:01]line НДС 12% НСП 1% [11:19:01]line > о реализуемом товаре [11:19:01]line ОКРУГЛЕНИЕ: -0.03 [11:19:01]line ИТОГО: 200.00 [11:19:01]line Внесено: 200.00 [11:19:01]line СДАЧА: 0.00 [11:19:01]line НСП 1% : 1.77 [11:19:01]line НДС 12% : 21.24 [11:19:01]line Наличными: 200.00 [11:19:01]line Безнал.: 0.00 [11:19:01]line Место: АЗС № 72 "Партнер Нефть" [11:19:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:19:01]line СНО: Общий режим [11:19:01]line Чек 88 12.07.2024 11:19 [11:19:01]line Смена: 445 ФФД: 1.0 [11:19:01]line ЗНМ: 0300000160 [11:19:01]line РНМ: 0000000000090829 [11:19:01]line Версия ККМ: 001 [11:19:01]line ФМ: 0000000000874718 [11:19:01]line ФД: 164167 [11:19:01]line ФПД: 171472518426136 [11:19:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111901&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164167&fm=171472518426136&tin=02508201610067®Number=0000000000090829&sum=20000 [11:19:02]OFD Sender: Processing packet 164167 [packets to send 104, broken 103] [11:19:02]ProducePacketName [11:19:02]name=ofd_packets/00164167 [11:19:02]OFD Sender: To server: pG, [11:19:02]CommunicateWithHost lk.salyk.kg:30040 [11:19:02]ConnectInit lk.salyk.kg [11:19:02]written 0, free lines is 4095 [11:19:02]Connected sock=10 [11:19:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B1 5F 07 01 34 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 25 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 81 02 00 35 04 06 00 9B F4 0E 8C AE 18 E3 E5 1D 41 B1 0D 44 0E [11:19:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0F 0A 47 00 C0 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 34 37 31 38 10 04 04 00 47 81 02 00 F4 03 04 00 B9 B7 90 66 B6 04 01 00 00 F6 47 7F 13 8F F9 71 45 [11:19:02]CommunicateWithHost err = 0 [11:19:02]CheckOFDResponse [11:19:02]1017 (14) - 77093643461234 [11:19:02]1041 (16) - 0000000000874718 [11:19:02]1040 (4) - 164167 [11:19:02]1012 (4) - 12.07.2024 04:57 [11:19:02]1206 (1) - 0 [11:19:02]OFD Sender: Remove packet 164167 [11:19:02]ProducePacketName [11:19:02]name=ofd_packets/00164167 [11:19:02]NVStorageDeleteData [11:19:02]Write to MH i2c: 01 00 00 65 0E 73 [11:19:02]Write i2c OK [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: 01 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: 01 07 00 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: 01 07 00 65 0E 00 00 00 00 00 F7 0C 7D [11:19:02]RasterBufferAndPrint [11:19:02]line [11:19:02]line [11:19:02]line [11:19:02]line [11:19:02]line [11:19:02]written 0, free lines is 3327 [11:19:02]MH_Cut [11:19:02]Write to MH i2c: D1 01 00 6C 0E 01 4C [11:19:02]Write i2c OK [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: D1 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: D1 01 00 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: D1 01 00 6C 0E 00 4B [11:19:02]Write to MH i2c: 01 00 00 6D 0E 7B [11:19:02]Write i2c OK [11:19:02]MH_I2C_Read... [11:19:02]OFD Sender: No OFD packet to send [11:19:03]*** Cut start [11:19:03]*** Partial cut [11:19:03]*** CUTSNS_PIN = 1 [11:19:03]*** CUTSNS_PIN = 0 [11:19:03]*** Brake cut motor [11:19:03]Read from MH i2c: 01 [11:19:03]MH_I2C_Read... [11:19:03]*** Stop cut motor [11:19:03]*** Cut end [11:19:03]Read from MH i2c: 01 07 00 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: 01 07 00 6D 0E 00 00 00 00 00 FF 0F 90 [11:19:03]process_action close_receipt done [11:19:03]requested_data is exist [11:19:03]produce_requested_data [11:19:03]requested_item fm.sn is exist - process it [11:19:03]wFMCommunicate request_size=4 [11:19:03]MH_SAM_APDU [11:19:03]CAPDU: 80 11 00 00 [11:19:03]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [11:19:03]Write i2c OK [11:19:03]MH_I2C_Read... [11:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:03]Read from MH i2c: E2 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: E2 17 00 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [11:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:03]wFMCommunicate OK [11:19:03]requested_item fd.num is exist - process it [11:19:03]SAM_PROTO_GetFieldsCounters [11:19:03]wFMCommunicate request_size=4 [11:19:03]MH_SAM_APDU [11:19:03]CAPDU: 80 13 00 00 [11:19:03]Write to MH i2c: E2 08 00 6F 0E 80 13 00 00 00 00 00 00 F9 [11:19:03]Write i2c OK [11:19:03]MH_I2C_Read... [11:19:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:03]Read from MH i2c: E2 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: E2 62 00 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: E2 62 00 6F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [11:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:03]wFMCommunicate OK [11:19:03]SAM_PROTO_GetFieldsCounters done [11:19:03]requested_item shift.num is exist - process it [11:19:03]requested_item shift.opened is exist - process it [11:19:03]req_shift_opened [11:19:03]FM_GetShiftState [11:19:03]SAM_PROTO_GetShiftState [11:19:03]wFMCommunicate request_size=4 [11:19:03]MH_SAM_APDU [11:19:03]CAPDU: 80 13 01 00 [11:19:03]Write to MH i2c: E2 08 00 70 0E 80 13 01 00 00 00 00 00 FB [11:19:03]Write i2c OK [11:19:03]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 0E 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 0E 00 70 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 45 [11:19:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:19:04]wFMCommunicate OK [11:19:04]SAM_PROTO_GetShiftState done [11:19:04]FM_GetShiftState done [11:19:04]req_shift_opened done [11:19:04]requested_item shift.open_date is exist - process it [11:19:04]req_shift_open_date [11:19:04]req_shift_open_date done [11:19:04]produce_requested_data done [11:19:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164167,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:19:04]process_action_free close_receipt [11:19:04]json_value_free [11:19:04]json_value_free done [11:19:04]process_json_proto returns [11:19:04]Send response to host [11:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164167,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:19:04]free response buf [11:19:04]execute_script done [11:19:04]execute_script returns [11:19:04]free content buf [11:19:04]Sock 7.Close socket [11:19:04]Sock 7.Thread stoped [11:19:06]accept exits with 9 [11:19:06]New connection [11:19:06]New thread 3066707300 created [11:19:06]Thread 3066850660 joined [11:19:06]Waiting for new connection... [11:19:06] Sock 9.Parse request [11:19:06]Sock 9.Check first char [11:19:06]Sock 9.First char is OK [11:19:06]request: POST /json_proto HTTP/1.0 [11:19:06]Method: POST [11:19:06]URL: /json_proto [11:19:06]Method is POST - this is cgi request [11:19:06]url: /json_proto [11:19:06]query_string will be loaded in cgi processing [11:19:06]execute_cgi json_proto POST (null) [11:19:06]execute_cgi path=json_proto method=POST [11:19:06]POST find Content-Length [11:19:06]Host: 172.17.56.4:8080 [11:19:06]Content-Length: 674 [11:19:06]Content-Type: application/json [11:19:06] [11:19:06]POST finish read [11:19:06]Found Content-Length = 674 [11:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458251", "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" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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:19:06]execute_script... [11:19: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)458251", "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" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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:19:06]POST & json_proto [11:19:06]process_json_proto [11:19:06]json parsed OK: [11:19:06]protocol is kg_v1.0 [11:19:06]action value=close_receipt [11:19:06]process_action close_receipt [11:19:06]cmd_close_receipt [11:19:06]MH_GetDate [11:19:06]Write to MH i2c: F0 00 00 71 0E 6E [11:19:06]Write i2c OK [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: F0 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: F0 09 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: F0 09 00 71 0E 00 2B 11 91 66 C9 DC B2 64 65 [11:19:06]GetLastDocTimeStamp 1720783141 [11:19:06]current date 1720783147 [11:19:06]FM_GetShiftState [11:19:06]SAM_PROTO_GetShiftState [11:19:06]wFMCommunicate request_size=4 [11:19:06]MH_SAM_APDU [11:19:06]CAPDU: 80 13 01 00 [11:19:06]Write to MH i2c: E2 08 00 72 0E 80 13 01 00 00 00 00 00 FD [11:19:07]Write i2c OK [11:19:07]MH_I2C_Read... [11:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:07]Read from MH i2c: E2 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: E2 0E 00 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: E2 0E 00 72 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 47 [11:19:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:19:07]wFMCommunicate OK [11:19:07]SAM_PROTO_GetShiftState done [11:19:07]FM_GetShiftState done [11:19:07]opened in 1720744654 [11:19:07]opened+sec_in_day 1720831054 [11:19:07]quantity*price = 30054 [11:19:07]sum+1 = 30055 [11:19:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 89 12.07.2024 11:19 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164168 ФПД: 40429492539194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111908&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164168&fm=40429492539194&tin=02508201610067®Number=0000000000090829&sum=30000 [11:19:08]StoreToDocumentArchive [11:19:08]shift 445 fd 164168 [11:19:08]save to /storage/0445/doc_00164168 [11:19:08]save last doc name /storage/0445/doc_00164168 to /storage/kkm_last_doc_name [11:19:08]save OK [11:19:08]Clear old archive folders... [11:19:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:19:08]tlvbuf is 00A19610 [11:19:08]SAM_PROTO_ClearQueue [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 09 00 00 [11:19:08]Write to MH i2c: E2 08 00 7F 0E 80 09 00 00 00 00 00 00 FF [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 03 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [11:19:08]RAPDU: 90 00 [11:19:08]wFMCommunicate OK [11:19:08]SAM_PROTO_ClearQueue done [11:19:08]KKMCreateOFDPacket [11:19:08]OFDProtocolAddRootSTLVToBuf [11:19:08]FM_MakeSignedData [11:19:08]FM_MakeSignedData [11:19:08]SAM_PROTO_SignData [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 0D 01 02 [11:19:08]Write to MH i2c: E2 08 00 80 0E 80 0D 01 02 00 00 00 00 07 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 03 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 03 00 80 0E 00 90 00 02 [11:19:08]RAPDU: 90 00 [11:19:08]wFMCommunicate OK [11:19:08]wFMCommunicate request_size=255 [11:19:08]MH_SAM_APDU [11:19: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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 2C 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 81 02 00 35 04 06 00 24 C5 39 8A [11:19:08]Write to MH i2c: E2 02 01 81 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 2C 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 81 02 00 35 04 06 00 24 C5 39 8A 00 00 76 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 03 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [11:19:08]RAPDU: 90 00 [11:19:08]wFMCommunicate OK [11:19:08]wFMCommunicate request_size=7 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 0D 02 02 02 8F 3A [11:19:08]Write to MH i2c: E2 0A 00 82 0E 80 0D 02 02 02 00 8F 3A 00 00 D7 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 03 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 03 00 82 0E 00 90 00 04 [11:19:08]RAPDU: 90 00 [11:19:08]wFMCommunicate OK [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 0D 03 02 [11:19:08]Write to MH i2c: E2 08 00 83 0E 80 0D 03 02 00 00 00 00 0C [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0B 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0B 00 83 0E 00 F4 0F 0B 1A 36 7A 82 AB 90 00 12 [11:19:08]RAPDU: F4 0F 0B 1A 36 7A 82 AB 90 00 [11:19:08]wFMCommunicate OK [11:19:08]SAM_PROTO_SignData done [11:19:08]FM_MakeSignedData done [11:19:08]CreateOFDProtocolMessage [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 11 00 00 [11:19:08]Write to MH i2c: E2 08 00 84 0E 80 11 00 00 00 00 00 00 0C [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 17 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 17 00 84 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [11:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:08]wFMCommunicate OK [11:19:08]CreateOFDProtocolMessage done [11:19:08]OFDSenderStorePacket 164168 [11:19:08]StoreOFDPacket docnum=164168 [11:19:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A7 51 04 01 C7 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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 2C 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 81 02 00 35 04 06 00 24 C5 39 8A 8F 3A F4 0F 0B 1A 36 7A 82 AB [11:19:08]CheckFolder [11:19:08]dirname=/storage/ofd_packets [11:19:08]CheckFolder done [11:19:08]ProducePacketName [11:19:08]name=ofd_packets/00164168 [11:19:08]NVStorageSaveData ofd_packets/00164168 [11:19:08]File name is /storage/ofd_packets/00164168 [11:19:08]Write 298 bytes [11:19:08]NVStorageSaveData done [11:19:08]OFDSenderStorePacket done [11:19:08]KKMCreateOFDPacket done [11:19:08]NVStorageSaveData kkm_last_timestamp [11:19:08]File name is /storage/kkm_last_timestamp [11:19:08]Write 4 bytes [11:19:08]NVStorageSaveData done [11:19:08]ExternCall_PrintAddStr [11:19:08]wPrintStart [11:19:08]Write to MH i2c: 01 00 00 85 0E 93 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 07 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 07 00 85 0E 00 00 00 00 00 FF 0F A8 [11:19:08]RasterBufferAndPrint [11:19:08]line Счет N : (1)458251 [11:19:08]line ИНН: 02508201610067 [11:19:08]line Контрольно-Кассовый Чек [11:19:08]line ПРОДАЖА [11:19:08]line ТРК (МРК, ГНК) : 21 [11:19:08]line Товар: 2710194210 [11:19:08]line ДТ-К-5 [11:19:08]line 4.180 * 71.90 [11:19:08]line = 300.54 [11:19:08]line НДС 12% НСП 1% [11:19:08]line > о реализуемом товаре [11:19:08]line ОКРУГЛЕНИЕ: -0.54 [11:19:08]line ИТОГО: 300.00 [11:19:08]line Внесено: 300.00 [11:19:08]line СДАЧА: 0.00 [11:19:08]line НСП 1% : 2.66 [11:19:08]line НДС 12% : 31.92 [11:19:08]line Наличными: 300.00 [11:19:08]line Безнал.: 0.00 [11:19:08]line Место: АЗС № 72 "Партнер Нефть" [11:19:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:19:08]line СНО: Общий режим [11:19:08]line Чек 89 12.07.2024 11:19 [11:19:08]line Смена: 445 ФФД: 1.0 [11:19:08]line ЗНМ: 0300000160 [11:19:08]line РНМ: 0000000000090829 [11:19:08]line Версия ККМ: 001 [11:19:08]line ФМ: 0000000000874718 [11:19:08]line ФД: 164168 [11:19:08]line ФПД: 40429492539194 [11:19:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T111908&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164168&fm=40429492539194&tin=02508201610067®Number=0000000000090829&sum=30000 [11:19:08]written 0, free lines is 4095 [11:19:08]OFD Sender: Processing packet 164168 [packets to send 104, broken 103] [11:19:08]ProducePacketName [11:19:08]name=ofd_packets/00164168 [11:19:08]OFD Sender: To server: pG, [11:19:08]CommunicateWithHost lk.salyk.kg:30040 [11:19:08]ConnectInit lk.salyk.kg [11:19:08]Connected sock=10 [11:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A7 51 04 01 C7 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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 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 2C 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 81 02 00 35 04 06 00 24 C5 39 8A 8F 3A F4 0F 0B 1A 36 7A 82 AB [11:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 03 03 47 00 75 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 81 02 00 F4 03 04 00 C0 B7 90 66 B6 04 01 00 00 4A 8C E6 EE C7 FC 50 A6 [11:19:09]CommunicateWithHost err = 0 [11:19:09]CheckOFDResponse [11:19:09]1017 (14) - 77093643461234 [11:19:09]1041 (16) - 0000000000874718 [11:19:09]1040 (4) - 164168 [11:19:09]1012 (4) - 12.07.2024 04:57 [11:19:09]1206 (1) - 0 [11:19:09]OFD Sender: Remove packet 164168 [11:19:09]ProducePacketName [11:19:09]name=ofd_packets/00164168 [11:19:09]NVStorageDeleteData [11:19:09]Write to MH i2c: 01 00 00 AF 0E BD [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: 01 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: 01 07 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: 01 07 00 AF 0E 00 00 00 00 00 FE 0C CE [11:19:09]RasterBufferAndPrint [11:19:09]line [11:19:09]line [11:19:09]line [11:19:09]line [11:19:09]line [11:19:09]written 0, free lines is 3335 [11:19:09]MH_Cut [11:19:09]Write to MH i2c: D1 01 00 B6 0E 01 96 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: D1 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: D1 01 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: D1 01 00 B6 0E 00 95 [11:19:09]Write to MH i2c: 01 00 00 B7 0E C5 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]OFD Sender: No OFD packet to send [11:19:09]*** Cut start [11:19:09]*** Partial cut [11:19:09]*** CUTSNS_PIN = 1 [11:19:09]*** CUTSNS_PIN = 0 [11:19:10]*** Brake cut motor [11:19:10]Read from MH i2c: 01 [11:19:10]MH_I2C_Read... [11:19:10]*** Stop cut motor [11:19:10]*** Cut end [11:19:10]Read from MH i2c: 01 07 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 B7 0E 00 00 00 00 00 FF 0F DA [11:19:10]process_action close_receipt done [11:19:10]requested_data is exist [11:19:10]produce_requested_data [11:19:10]requested_item fm.sn is exist - process it [11:19:10]wFMCommunicate request_size=4 [11:19:10]MH_SAM_APDU [11:19:10]CAPDU: 80 11 00 00 [11:19:10]Write to MH i2c: E2 08 00 B8 0E 80 11 00 00 00 00 00 00 40 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 17 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 17 00 B8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [11:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:10]wFMCommunicate OK [11:19:10]requested_item fd.num is exist - process it [11:19:10]SAM_PROTO_GetFieldsCounters [11:19:10]wFMCommunicate request_size=4 [11:19:10]MH_SAM_APDU [11:19:10]CAPDU: 80 13 00 00 [11:19:10]Write to MH i2c: E2 08 00 B9 0E 80 13 00 00 00 00 00 00 43 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 62 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 62 00 B9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:10]wFMCommunicate OK [11:19:10]SAM_PROTO_GetFieldsCounters done [11:19:10]requested_item shift.num is exist - process it [11:19:10]requested_item shift.opened is exist - process it [11:19:10]req_shift_opened [11:19:10]FM_GetShiftState [11:19:10]SAM_PROTO_GetShiftState [11:19:10]wFMCommunicate request_size=4 [11:19:10]MH_SAM_APDU [11:19:10]CAPDU: 80 13 01 00 [11:19:10]Write to MH i2c: E2 08 00 BA 0E 80 13 01 00 00 00 00 00 45 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 0E 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 0E 00 BA 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8F [11:19:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:19:10]wFMCommunicate OK [11:19:10]SAM_PROTO_GetShiftState done [11:19:10]FM_GetShiftState done [11:19:10]req_shift_opened done [11:19:10]requested_item shift.open_date is exist - process it [11:19:10]req_shift_open_date [11:19:10]req_shift_open_date done [11:19:10]produce_requested_data done [11:19:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164168,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:19:10]process_action_free close_receipt [11:19:10]json_value_free [11:19:10]json_value_free done [11:19:10]process_json_proto returns [11:19:10]Send response to host [11:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164168,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:19:10]free response buf [11:19:10]execute_script done [11:19:10]execute_script returns [11:19:10]free content buf [11:19:10]Sock 9.Close socket [11:19:10]Sock 9.Thread stoped [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:06]accept exits with 7 [11:21:06]New connection [11:21:06]New thread 3066850660 created [11:21:06]Thread 3066707300 joined [11:21:06]Waiting for new connection... [11:21:06] Sock 7.Parse request [11:21:06]Sock 7.Check first char [11:21:06]Sock 7.First char is OK [11:21:06]request: POST /json_proto HTTP/1.0 [11:21:06]Method: POST [11:21:06]URL: /json_proto [11:21:06]Method is POST - this is cgi request [11:21:06]url: /json_proto [11:21:06]query_string will be loaded in cgi processing [11:21:06]execute_cgi json_proto POST (null) [11:21:06]execute_cgi path=json_proto method=POST [11:21:06]POST find Content-Length [11:21:06]Host: 172.17.56.4:8080 [11:21:06]Content-Length: 677 [11:21:06]Content-Type: application/json [11:21:06] [11:21:06]POST finish read [11:21:06]Found Content-Length = 677 [11:21:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.410, "sum" : 290.18, "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" ] } } [11:21:06]execute_script... [11:21: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)458253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.410, "sum" : 290.18, "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" ] } } [11:21:06]POST & json_proto [11:21:06]process_json_proto [11:21:06]json parsed OK: [11:21:06]protocol is kg_v1.0 [11:21:06]action value=close_receipt [11:21:06]process_action close_receipt [11:21:06]cmd_close_receipt [11:21:06]MH_GetDate [11:21:06]Write to MH i2c: F0 00 00 BB 0E B8 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: F0 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: F0 09 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: F0 09 00 BB 0E 00 A3 11 91 66 C9 DC B2 64 27 [11:21:06]GetLastDocTimeStamp 1720783148 [11:21:06]current date 1720783267 [11:21:06]FM_GetShiftState [11:21:06]SAM_PROTO_GetShiftState [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 13 01 00 [11:21:06]Write to MH i2c: E2 08 00 BC 0E 80 13 01 00 00 00 00 00 47 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 0E 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 0E 00 BC 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 91 [11:21:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:21:06]wFMCommunicate OK [11:21:06]SAM_PROTO_GetShiftState done [11:21:06]FM_GetShiftState done [11:21:06]opened in 1720744654 [11:21:06]opened+sec_in_day 1720831054 [11:21:06]quantity*price = 29017 [11:21:06]sum+1 = 29019 [11:21:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.82 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 90 12.07.2024 11:21 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164169 ФПД: 128553969973767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T112107&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164169&fm=128553969973767&tin=02508201610067®Number=0000000000090829&sum=29000 [11:21:07]StoreToDocumentArchive [11:21:07]shift 445 fd 164169 [11:21:07]save to /storage/0445/doc_00164169 [11:21:07]save last doc name /storage/0445/doc_00164169 to /storage/kkm_last_doc_name [11:21:07]save OK [11:21:07]Clear old archive folders... [11:21:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:07]tlvbuf is 009F1CB0 [11:21:07]SAM_PROTO_ClearQueue [11:21:07]wFMCommunicate request_size=4 [11:21:07]MH_SAM_APDU [11:21:07]CAPDU: 80 09 00 00 [11:21:07]Write to MH i2c: E2 08 00 C9 0E 80 09 00 00 00 00 00 00 49 [11:21:07]Write i2c OK [11:21:07]MH_I2C_Read... [11:21:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:07]Read from MH i2c: E2 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: E2 03 00 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [11:21:07]RAPDU: 90 00 [11:21:07]wFMCommunicate OK [11:21:07]SAM_PROTO_ClearQueue done [11:21:07]KKMCreateOFDPacket [11:21:07]OFDProtocolAddRootSTLVToBuf [11:21:07]FM_MakeSignedData [11:21:07]FM_MakeSignedData [11:21:07]SAM_PROTO_SignData [11:21:07]wFMCommunicate request_size=4 [11:21:07]MH_SAM_APDU [11:21:07]CAPDU: 80 0D 01 02 [11:21:07]Write to MH i2c: E2 08 00 CA 0E 80 0D 01 02 00 00 00 00 51 [11:21:07]Write i2c OK [11:21:07]MH_I2C_Read... [11:21:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:07]Read from MH i2c: E2 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: E2 03 00 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: E2 03 00 CA 0E 00 90 00 4C [11:21:07]RAPDU: 90 00 [11:21:07]wFMCommunicate OK [11:21:07]wFMCommunicate request_size=255 [11:21:07]MH_SAM_APDU [11:21: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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 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 0A 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 5A 00 00 00 F4 03 04 00 A3 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 81 02 00 35 04 06 00 74 [11:21:07]Write to MH i2c: E2 02 01 CB 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 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 0A 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 5A 00 00 00 F4 03 04 00 A3 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 81 02 00 35 04 06 00 74 00 00 D1 [11:21:07]Write i2c OK [11:21:07]MH_I2C_Read... [11:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:08]Read from MH i2c: E2 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 03 00 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 03 00 CB 0E 00 90 00 4D [11:21:08]RAPDU: 90 00 [11:21:08]wFMCommunicate OK [11:21:08]wFMCommunicate request_size=10 [11:21:08]MH_SAM_APDU [11:21:08]CAPDU: 80 0D 02 02 05 EB 4D B6 FA 07 [11:21:08]Write to MH i2c: E2 0D 00 CC 0E 80 0D 02 02 05 00 EB 4D B6 FA 07 00 00 4D [11:21:08]Write i2c OK [11:21:08]MH_I2C_Read... [11:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:08]Read from MH i2c: E2 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 03 00 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 03 00 CC 0E 00 90 00 4E [11:21:08]RAPDU: 90 00 [11:21:08]wFMCommunicate OK [11:21:08]wFMCommunicate request_size=4 [11:21:08]MH_SAM_APDU [11:21:08]CAPDU: 80 0D 03 02 [11:21:08]Write to MH i2c: E2 08 00 CD 0E 80 0D 03 02 00 00 00 00 56 [11:21:08]Write i2c OK [11:21:08]MH_I2C_Read... [11:21:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:08]Read from MH i2c: E2 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 0B 00 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 0B 00 CD 0E 00 4C 85 EB 6A 6F 84 93 DC 90 00 DF [11:21:08]RAPDU: 4C 85 EB 6A 6F 84 93 DC 90 00 [11:21:08]wFMCommunicate OK [11:21:08]SAM_PROTO_SignData done [11:21:08]FM_MakeSignedData done [11:21:08]CreateOFDProtocolMessage [11:21:08]wFMCommunicate request_size=4 [11:21:08]MH_SAM_APDU [11:21:08]CAPDU: 80 11 00 00 [11:21:08]Write to MH i2c: E2 08 00 CE 0E 80 11 00 00 00 00 00 00 56 [11:21:08]Write i2c OK [11:21:08]MH_I2C_Read... [11:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:08]Read from MH i2c: E2 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 17 00 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 17 00 CE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [11:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:21:08]wFMCommunicate OK [11:21:08]CreateOFDProtocolMessage done [11:21:08]OFDSenderStorePacket 164169 [11:21:08]StoreOFDPacket docnum=164169 [11:21:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 09 07 01 F7 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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 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 0A 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 5A 00 00 00 F4 03 04 00 A3 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 81 02 00 35 04 06 00 74 EB 4D B6 FA 07 4C 85 EB 6A 6F 84 93 DC [11:21:08]CheckFolder [11:21:08]dirname=/storage/ofd_packets [11:21:08]CheckFolder done [11:21:08]ProducePacketName [11:21:08]name=ofd_packets/00164169 [11:21:08]NVStorageSaveData ofd_packets/00164169 [11:21:08]File name is /storage/ofd_packets/00164169 [11:21:08]Write 301 bytes [11:21:08]NVStorageSaveData done [11:21:08]OFDSenderStorePacket done [11:21:08]KKMCreateOFDPacket done [11:21:08]NVStorageSaveData kkm_last_timestamp [11:21:08]File name is /storage/kkm_last_timestamp [11:21:08]Write 4 bytes [11:21:08]NVStorageSaveData done [11:21:08]ExternCall_PrintAddStr [11:21:08]wPrintStart [11:21:08]Write to MH i2c: 01 00 00 CF 0E DD [11:21:08]Write i2c OK [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: 01 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: 01 07 00 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: 01 07 00 CF 0E 00 00 00 00 00 FF 0F F2 [11:21:08]RasterBufferAndPrint [11:21:08]line Счет N : (1)458253 [11:21:08]line ИНН: 02508201610067 [11:21:08]line Контрольно-Кассовый Чек [11:21:08]line ПРОДАЖА [11:21:08]line ТРК (МРК, ГНК) : 22 [11:21:08]line Товар: 2710124130 [11:21:08]line Аи-92-К-5 [11:21:08]line 4.410 * 65.80 [11:21:08]line = 290.18 [11:21:08]line НДС 12% НСП 1% [11:21:08]line > о реализуемом товаре [11:21:08]line ОКРУГЛЕНИЕ: -0.18 [11:21:08]line ИТОГО: 290.00 [11:21:08]line Внесено: 290.00 [11:21:08]line СДАЧА: 0.00 [11:21:08]line НСП 1% : 2.57 [11:21:08]line НДС 12% : 30.82 [11:21:08]line Наличными: 290.00 [11:21:08]line Безнал.: 0.00 [11:21:08]line Место: АЗС № 72 "Партнер Нефть" [11:21:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:21:08]line СНО: Общий режим [11:21:08]line Чек 90 12.07.2024 11:21 [11:21:08]line Смена: 445 ФФД: 1.0 [11:21:08]line ЗНМ: 0300000160 [11:21:08]line РНМ: 0000000000090829 [11:21:08]line Версия ККМ: 001 [11:21:08]line ФМ: 0000000000874718 [11:21:08]line ФД: 164169 [11:21:08]line ФПД: 128553969973767 [11:21:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T112107&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164169&fm=128553969973767&tin=02508201610067®Number=0000000000090829&sum=29000 [11:21:08]OFD Sender: Processing packet 164169 [packets to send 104, broken 103] [11:21:08]ProducePacketName [11:21:08]name=ofd_packets/00164169 [11:21:08]OFD Sender: To server: pG, [11:21:08]CommunicateWithHost lk.salyk.kg:30040 [11:21:08]ConnectInit lk.salyk.kg [11:21:08]written 0, free lines is 4095 [11:21:08]Connected sock=10 [11:21:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 09 07 01 F7 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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 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 0A 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 5A 00 00 00 F4 03 04 00 A3 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 81 02 00 35 04 06 00 74 EB 4D B6 FA 07 4C 85 EB 6A 6F 84 93 DC [11:21:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D1 8D 47 00 C7 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 81 02 00 F4 03 04 00 38 B8 90 66 B6 04 01 00 00 60 62 4E CA F3 2B 43 37 [11:21:09]CommunicateWithHost err = 0 [11:21:09]CheckOFDResponse [11:21:09]1017 (14) - 77093643461234 [11:21:09]1041 (16) - 0000000000874718 [11:21:09]1040 (4) - 164169 [11:21:09]1012 (4) - 12.07.2024 04:59 [11:21:09]1206 (1) - 0 [11:21:09]OFD Sender: Remove packet 164169 [11:21:09]ProducePacketName [11:21:09]name=ofd_packets/00164169 [11:21:09]NVStorageDeleteData [11:21:09]Write to MH i2c: 01 00 00 F9 0E 07 [11:21:09]Write i2c OK [11:21:09]MH_I2C_Read... [11:21:09]Read from MH i2c: 01 [11:21:09]MH_I2C_Read... [11:21:09]Read from MH i2c: 01 07 00 [11:21:09]MH_I2C_Read... [11:21:09]Read from MH i2c: 01 07 00 F9 0E 00 00 00 00 00 F3 0C 0D [11:21:09]RasterBufferAndPrint [11:21:09]line [11:21:09]line [11:21:09]line [11:21:09]line [11:21:09]line [11:21:09]written 0, free lines is 3322 [11:21:09]MH_Cut [11:21:09]Write to MH i2c: D1 01 00 00 0F 01 E1 [11:21:09]Write i2c OK [11:21:09]MH_I2C_Read... [11:21:09]Read from MH i2c: D1 [11:21:09]MH_I2C_Read... [11:21:09]Read from MH i2c: D1 01 00 [11:21:09]MH_I2C_Read... [11:21:09]Read from MH i2c: D1 01 00 00 0F 00 E0 [11:21:09]Write to MH i2c: 01 00 00 01 0F 10 [11:21:09]Write i2c OK [11:21:09]MH_I2C_Read... [11:21:09]OFD Sender: No OFD packet to send [11:21:09]*** Cut start [11:21:09]*** Partial cut [11:21:09]*** CUTSNS_PIN = 1 [11:21:09]*** CUTSNS_PIN = 0 [11:21:10]*** Brake cut motor [11:21:10]Read from MH i2c: 01 [11:21:10]MH_I2C_Read... [11:21:10]*** Stop cut motor [11:21:10]*** Cut end [11:21:10]Read from MH i2c: 01 07 00 [11:21:10]MH_I2C_Read... [11:21:10]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 FF 0F 25 [11:21:10]process_action close_receipt done [11:21:10]requested_data is exist [11:21:10]produce_requested_data [11:21:10]requested_item fm.sn is exist - process it [11:21:10]wFMCommunicate request_size=4 [11:21:10]MH_SAM_APDU [11:21:10]CAPDU: 80 11 00 00 [11:21:10]Write to MH i2c: E2 08 00 02 0F 80 11 00 00 00 00 00 00 8B [11:21:10]Write i2c OK [11:21:10]MH_I2C_Read... [11:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:10]Read from MH i2c: E2 [11:21:10]MH_I2C_Read... [11:21:10]Read from MH i2c: E2 17 00 [11:21:10]MH_I2C_Read... [11:21:10]Read from MH i2c: E2 17 00 02 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [11:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:21:10]wFMCommunicate OK [11:21:10]requested_item fd.num is exist - process it [11:21:10]SAM_PROTO_GetFieldsCounters [11:21:10]wFMCommunicate request_size=4 [11:21:10]MH_SAM_APDU [11:21:10]CAPDU: 80 13 00 00 [11:21:10]Write to MH i2c: E2 08 00 03 0F 80 13 00 00 00 00 00 00 8E [11:21:10]Write i2c OK [11:21:10]MH_I2C_Read... [11:21:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:10]Read from MH i2c: E2 [11:21:10]MH_I2C_Read... [11:21:10]Read from MH i2c: E2 62 00 [11:21:10]MH_I2C_Read... [11:21:10]Read from MH i2c: E2 62 00 03 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [11:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:10]wFMCommunicate OK [11:21:10]SAM_PROTO_GetFieldsCounters done [11:21:10]requested_item shift.num is exist - process it [11:21:10]requested_item shift.opened is exist - process it [11:21:10]req_shift_opened [11:21:10]FM_GetShiftState [11:21:10]SAM_PROTO_GetShiftState [11:21:10]wFMCommunicate request_size=4 [11:21:10]MH_SAM_APDU [11:21:10]CAPDU: 80 13 01 00 [11:21:10]Write to MH i2c: E2 08 00 04 0F 80 13 01 00 00 00 00 00 90 [11:21:10]Write i2c OK [11:21:10]MH_I2C_Read... [11:21:10]Read from MH i2c: E2 [11:21:10]MH_I2C_Read... [11:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:10]Read from MH i2c: E2 0E 00 [11:21:10]MH_I2C_Read... [11:21:10]Read from MH i2c: E2 0E 00 04 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DA [11:21:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:21:10]wFMCommunicate OK [11:21:10]SAM_PROTO_GetShiftState done [11:21:10]FM_GetShiftState done [11:21:10]req_shift_opened done [11:21:10]requested_item shift.open_date is exist - process it [11:21:10]req_shift_open_date [11:21:10]req_shift_open_date done [11:21:10]produce_requested_data done [11:21:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164169,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:21:10]process_action_free close_receipt [11:21:10]json_value_free [11:21:10]json_value_free done [11:21:10]process_json_proto returns [11:21:10]Send response to host [11:21:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164169,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:21:10]free response buf [11:21:10]execute_script done [11:21:10]execute_script returns [11:21:10]free content buf [11:21:10]Sock 7.Close socket [11:21:10]Sock 7.Thread stoped [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:32]accept exits with 9 [11:21:32]New connection [11:21:32]New thread 3066707300 created [11:21:32]Thread 3066850660 joined [11:21:32]Waiting for new connection... [11:21:32] Sock 9.Parse request [11:21:32]Sock 9.Check first char [11:21:32]Sock 9.First char is OK [11:21:32]request: POST /json_proto HTTP/1.0 [11:21:32]Method: POST [11:21:32]URL: /json_proto [11:21:32]Method is POST - this is cgi request [11:21:32]url: /json_proto [11:21:32]query_string will be loaded in cgi processing [11:21:32]execute_cgi json_proto POST (null) [11:21:32]execute_cgi path=json_proto method=POST [11:21:32]POST find Content-Length [11:21:32]Host: 172.17.56.4:8080 [11:21:32]Content-Length: 674 [11:21:32]Content-Type: application/json [11:21:32] [11:21:32]POST finish read [11:21:32]Found Content-Length = 674 [11:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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:21:32]execute_script... [11:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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:21:32]POST & json_proto [11:21:32]process_json_proto [11:21:32]json parsed OK: [11:21:32]protocol is kg_v1.0 [11:21:32]action value=close_receipt [11:21:32]process_action close_receipt [11:21:32]cmd_close_receipt [11:21:32]MH_GetDate [11:21:32]Write to MH i2c: F0 00 00 05 0F 03 [11:21:32]Write i2c OK [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: F0 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: F0 09 00 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: F0 09 00 05 0F 00 BD 11 91 66 C9 DC B2 64 8C [11:21:32]GetLastDocTimeStamp 1720783267 [11:21:32]current date 1720783293 [11:21:32]FM_GetShiftState [11:21:32]SAM_PROTO_GetShiftState [11:21:32]wFMCommunicate request_size=4 [11:21:32]MH_SAM_APDU [11:21:32]CAPDU: 80 13 01 00 [11:21:32]Write to MH i2c: E2 08 00 06 0F 80 13 01 00 00 00 00 00 92 [11:21:32]Write i2c OK [11:21:32]MH_I2C_Read... [11:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:32]Read from MH i2c: E2 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: E2 0E 00 [11:21:32]MH_I2C_Read... [11:21:32]Read from MH i2c: E2 0E 00 06 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DC [11:21:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:21:32]wFMCommunicate OK [11:21:32]SAM_PROTO_GetShiftState done [11:21:32]FM_GetShiftState done [11:21:32]opened in 1720744654 [11:21:32]opened+sec_in_day 1720831054 [11:21:32]quantity*price = 30054 [11:21:32]sum+1 = 30055 [11:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 91 12.07.2024 11:21 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164170 ФПД: 137128042675836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T112133&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164170&fm=137128042675836&tin=02508201610067®Number=0000000000090829&sum=30000 [11:21:33]StoreToDocumentArchive [11:21:33]shift 445 fd 164170 [11:21:33]save to /storage/0445/doc_00164170 [11:21:33]save last doc name /storage/0445/doc_00164170 to /storage/kkm_last_doc_name [11:21:33]save OK [11:21:33]Clear old archive folders... [11:21:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:21:33]tlvbuf is 009F9F10 [11:21:33]SAM_PROTO_ClearQueue [11:21:33]wFMCommunicate request_size=4 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 09 00 00 [11:21:33]Write to MH i2c: E2 08 00 13 0F 80 09 00 00 00 00 00 00 94 [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:33]Read from MH i2c: E2 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 [11:21:33]MH_I2C_Read... [11:21:33]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [11:21:33]RAPDU: 90 00 [11:21:33]wFMCommunicate OK [11:21:33]SAM_PROTO_ClearQueue done [11:21:33]KKMCreateOFDPacket [11:21:33]OFDProtocolAddRootSTLVToBuf [11:21:33]FM_MakeSignedData [11:21:33]FM_MakeSignedData [11:21:33]SAM_PROTO_SignData [11:21:33]wFMCommunicate request_size=4 [11:21:33]MH_SAM_APDU [11:21:33]CAPDU: 80 0D 01 02 [11:21:33]Write to MH i2c: E2 08 00 14 0F 80 0D 01 02 00 00 00 00 9C [11:21:33]Write i2c OK [11:21:33]MH_I2C_Read... [11:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:34]Read from MH i2c: E2 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 03 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 03 00 14 0F 00 90 00 97 [11:21:34]RAPDU: 90 00 [11:21:34]wFMCommunicate OK [11:21:34]wFMCommunicate request_size=255 [11:21:34]MH_SAM_APDU [11:21: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 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 BD 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 81 02 00 35 04 06 00 7C B7 9C 45 [11:21:34]Write to MH i2c: E2 02 01 15 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 BD 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 81 02 00 35 04 06 00 7C B7 9C 45 00 00 08 [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:34]Read from MH i2c: E2 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 03 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 03 00 15 0F 00 90 00 98 [11:21:34]RAPDU: 90 00 [11:21:34]wFMCommunicate OK [11:21:34]wFMCommunicate request_size=7 [11:21:34]MH_SAM_APDU [11:21:34]CAPDU: 80 0D 02 02 02 BE 7C [11:21:34]Write to MH i2c: E2 0A 00 16 0F 80 0D 02 02 02 00 BE 7C 00 00 DD [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:34]Read from MH i2c: E2 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 03 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 03 00 16 0F 00 90 00 99 [11:21:34]RAPDU: 90 00 [11:21:34]wFMCommunicate OK [11:21:34]wFMCommunicate request_size=4 [11:21:34]MH_SAM_APDU [11:21:34]CAPDU: 80 0D 03 02 [11:21:34]Write to MH i2c: E2 08 00 17 0F 80 0D 03 02 00 00 00 00 A1 [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:34]Read from MH i2c: E2 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 0B 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 0B 00 17 0F 00 F7 25 AE 4F E3 B2 33 22 90 00 A5 [11:21:34]RAPDU: F7 25 AE 4F E3 B2 33 22 90 00 [11:21:34]wFMCommunicate OK [11:21:34]SAM_PROTO_SignData done [11:21:34]FM_MakeSignedData done [11:21:34]CreateOFDProtocolMessage [11:21:34]wFMCommunicate request_size=4 [11:21:34]MH_SAM_APDU [11:21:34]CAPDU: 80 11 00 00 [11:21:34]Write to MH i2c: E2 08 00 18 0F 80 11 00 00 00 00 00 00 A1 [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:34]Read from MH i2c: E2 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 17 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: E2 17 00 18 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [11:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:21:34]wFMCommunicate OK [11:21:34]CreateOFDProtocolMessage done [11:21:34]OFDSenderStorePacket 164170 [11:21:34]StoreOFDPacket docnum=164170 [11:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 E7 04 01 96 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 BD 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 81 02 00 35 04 06 00 7C B7 9C 45 BE 7C F7 25 AE 4F E3 B2 33 22 [11:21:34]CheckFolder [11:21:34]dirname=/storage/ofd_packets [11:21:34]CheckFolder done [11:21:34]ProducePacketName [11:21:34]name=ofd_packets/00164170 [11:21:34]NVStorageSaveData ofd_packets/00164170 [11:21:34]File name is /storage/ofd_packets/00164170 [11:21:34]Write 298 bytes [11:21:34]NVStorageSaveData done [11:21:34]OFDSenderStorePacket done [11:21:34]KKMCreateOFDPacket done [11:21:34]NVStorageSaveData kkm_last_timestamp [11:21:34]File name is /storage/kkm_last_timestamp [11:21:34]Write 4 bytes [11:21:34]NVStorageSaveData done [11:21:34]ExternCall_PrintAddStr [11:21:34]wPrintStart [11:21:34]Write to MH i2c: 01 00 00 19 0F 28 [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: 01 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: 01 07 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: 01 07 00 19 0F 00 00 00 00 00 FF 0F 3D [11:21:34]RasterBufferAndPrint [11:21:34]line Счет N : (1)458252 [11:21:34]line ИНН: 02508201610067 [11:21:34]line Контрольно-Кассовый Чек [11:21:34]line ПРОДАЖА [11:21:34]line ТРК (МРК, ГНК) : 11 [11:21:34]line Товар: 2710194210 [11:21:34]line ДТ-К-5 [11:21:34]line 4.180 * 71.90 [11:21:34]line = 300.54 [11:21:34]line НДС 12% НСП 1% [11:21:34]line > о реализуемом товаре [11:21:34]line ОКРУГЛЕНИЕ: -0.54 [11:21:34]line ИТОГО: 300.00 [11:21:34]line Внесено: 300.00 [11:21:34]line СДАЧА: 0.00 [11:21:34]line НСП 1% : 2.66 [11:21:34]line НДС 12% : 31.92 [11:21:34]line Наличными: 300.00 [11:21:34]line Безнал.: 0.00 [11:21:34]line Место: АЗС № 72 "Партнер Нефть" [11:21:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:21:34]line СНО: Общий режим [11:21:34]line Чек 91 12.07.2024 11:21 [11:21:34]line Смена: 445 ФФД: 1.0 [11:21:34]line ЗНМ: 0300000160 [11:21:34]line РНМ: 0000000000090829 [11:21:34]line Версия ККМ: 001 [11:21:34]line ФМ: 0000000000874718 [11:21:34]line ФД: 164170 [11:21:34]line ФПД: 137128042675836 [11:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T112133&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164170&fm=137128042675836&tin=02508201610067®Number=0000000000090829&sum=30000 [11:21:34]OFD Sender: Processing packet 164170 [packets to send 104, broken 103] [11:21:34]ProducePacketName [11:21:34]name=ofd_packets/00164170 [11:21:34]OFD Sender: To server: pG, [11:21:34]CommunicateWithHost lk.salyk.kg:30040 [11:21:34]ConnectInit lk.salyk.kg [11:21:34]written 0, free lines is 4095 [11:21:34]Connected sock=10 [11:21:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 E7 04 01 96 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 BD 11 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 81 02 00 35 04 06 00 7C B7 9C 45 BE 7C F7 25 AE 4F E3 B2 33 22 [11:21:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AB 5B 47 00 4D 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 34 37 31 38 10 04 04 00 4A 81 02 00 F4 03 04 00 52 B8 90 66 B6 04 01 00 00 91 CD FC A6 78 3C 42 BD [11:21:35]CommunicateWithHost err = 0 [11:21:35]CheckOFDResponse [11:21:35]1017 (14) - 77093643461234 [11:21:35]1041 (16) - 0000000000874718 [11:21:35]1040 (4) - 164170 [11:21:35]1012 (4) - 12.07.2024 05:00 [11:21:35]1206 (1) - 0 [11:21:35]OFD Sender: Remove packet 164170 [11:21:35]ProducePacketName [11:21:35]name=ofd_packets/00164170 [11:21:35]NVStorageDeleteData [11:21:35]Write to MH i2c: 01 00 00 43 0F 52 [11:21:35]Write i2c OK [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: 01 [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: 01 07 00 [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: 01 07 00 43 0F 00 00 00 00 00 E5 0C 4A [11:21:35]RasterBufferAndPrint [11:21:35]line [11:21:35]line [11:21:35]line [11:21:35]line [11:21:35]line [11:21:35]written 0, free lines is 3307 [11:21:35]MH_Cut [11:21:35]Write to MH i2c: D1 01 00 4A 0F 01 2B [11:21:35]Write i2c OK [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: D1 [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: D1 01 00 [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: D1 01 00 4A 0F 00 2A [11:21:35]Write to MH i2c: 01 00 00 4B 0F 5A [11:21:35]Write i2c OK [11:21:35]MH_I2C_Read... [11:21:35]OFD Sender: No OFD packet to send [11:21:35]*** Cut start [11:21:35]*** Partial cut [11:21:35]*** CUTSNS_PIN = 1 [11:21:35]*** CUTSNS_PIN = 0 [11:21:36]*** Brake cut motor [11:21:36]Read from MH i2c: 01 [11:21:36]MH_I2C_Read... [11:21:36]*** Stop cut motor [11:21:36]*** Cut end [11:21:36]Read from MH i2c: 01 07 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: 01 07 00 4B 0F 00 00 00 00 00 FF 0F 6F [11:21:36]process_action close_receipt done [11:21:36]requested_data is exist [11:21:36]produce_requested_data [11:21:36]requested_item fm.sn is exist - process it [11:21:36]wFMCommunicate request_size=4 [11:21:36]MH_SAM_APDU [11:21:36]CAPDU: 80 11 00 00 [11:21:36]Write to MH i2c: E2 08 00 4C 0F 80 11 00 00 00 00 00 00 D5 [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 17 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 17 00 4C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [11:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:21:36]wFMCommunicate OK [11:21:36]requested_item fd.num is exist - process it [11:21:36]SAM_PROTO_GetFieldsCounters [11:21:36]wFMCommunicate request_size=4 [11:21:36]MH_SAM_APDU [11:21:36]CAPDU: 80 13 00 00 [11:21:36]Write to MH i2c: E2 08 00 4D 0F 80 13 00 00 00 00 00 00 D8 [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 62 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 62 00 4D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:36]wFMCommunicate OK [11:21:36]SAM_PROTO_GetFieldsCounters done [11:21:36]requested_item shift.num is exist - process it [11:21:36]requested_item shift.opened is exist - process it [11:21:36]req_shift_opened [11:21:36]FM_GetShiftState [11:21:36]SAM_PROTO_GetShiftState [11:21:36]wFMCommunicate request_size=4 [11:21:36]MH_SAM_APDU [11:21:36]CAPDU: 80 13 01 00 [11:21:36]Write to MH i2c: E2 08 00 4E 0F 80 13 01 00 00 00 00 00 DA [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 0E 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 0E 00 4E 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 24 [11:21:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:21:36]wFMCommunicate OK [11:21:36]SAM_PROTO_GetShiftState done [11:21:36]FM_GetShiftState done [11:21:36]req_shift_opened done [11:21:36]requested_item shift.open_date is exist - process it [11:21:36]req_shift_open_date [11:21:36]req_shift_open_date done [11:21:36]produce_requested_data done [11:21:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164170,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:21:36]process_action_free close_receipt [11:21:36]json_value_free [11:21:36]json_value_free done [11:21:36]process_json_proto returns [11:21:36]Send response to host [11:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164170,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:21:36]free response buf [11:21:36]execute_script done [11:21:36]execute_script returns [11:21:36]free content buf [11:21:36]Sock 9.Close socket [11:21:36]Sock 9.Thread stoped [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]accept exits with 7 [11:22:40]New connection [11:22:40]New thread 3066850660 created [11:22:40]Thread 3066707300 joined [11:22:40]Waiting for new connection... [11:22:40] Sock 7.Parse request [11:22:40]Sock 7.Check first char [11:22:40]Sock 7.First char is OK [11:22:40]request: POST /json_proto HTTP/1.0 [11:22:40]Method: POST [11:22:40]URL: /json_proto [11:22:40]Method is POST - this is cgi request [11:22:40]url: /json_proto [11:22:40]query_string will be loaded in cgi processing [11:22:40]execute_cgi json_proto POST (null) [11:22:40]execute_cgi path=json_proto method=POST [11:22:40]POST find Content-Length [11:22:40]Host: 172.17.56.4:8080 [11:22:40]Content-Length: 677 [11:22:40]Content-Type: application/json [11:22:40] [11:22:40]POST finish read [11:22:40]Found Content-Length = 677 [11:22:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:40]execute_script... [11:22: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)458254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:40]POST & json_proto [11:22:40]process_json_proto [11:22:40]json parsed OK: [11:22:40]protocol is kg_v1.0 [11:22:40]action value=close_receipt [11:22:40]process_action close_receipt [11:22:40]cmd_close_receipt [11:22:40]MH_GetDate [11:22:40]Write to MH i2c: F0 00 00 4F 0F 4D [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: F0 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: F0 09 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: F0 09 00 4F 0F 00 01 12 91 66 C9 DC B2 64 1B [11:22:40]GetLastDocTimeStamp 1720783293 [11:22:40]current date 1720783361 [11:22:40]FM_GetShiftState [11:22:40]SAM_PROTO_GetShiftState [11:22:40]wFMCommunicate request_size=4 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 13 01 00 [11:22:40]Write to MH i2c: E2 08 00 50 0F 80 13 01 00 00 00 00 00 DC [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 0E 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 0E 00 50 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 26 [11:22:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:22:40]wFMCommunicate OK [11:22:40]SAM_PROTO_GetShiftState done [11:22:40]FM_GetShiftState done [11:22:40]opened in 1720744654 [11:22:40]opened+sec_in_day 1720831054 [11:22:40]quantity*price = 30004 [11:22:40]sum+1 = 30006 [11:22:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 92 12.07.2024 11:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164171 ФПД: 152877129833776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T112241&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164171&fm=152877129833776&tin=02508201610067®Number=0000000000090829&sum=30000 [11:22:41]StoreToDocumentArchive [11:22:41]shift 445 fd 164171 [11:22:41]save to /storage/0445/doc_00164171 [11:22:41]save last doc name /storage/0445/doc_00164171 to /storage/kkm_last_doc_name [11:22:41]save OK [11:22:41]Clear old archive folders... [11:22:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:41]tlvbuf is B6E8FAF0 [11:22:41]SAM_PROTO_ClearQueue [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 09 00 00 [11:22:41]Write to MH i2c: E2 08 00 5D 0F 80 09 00 00 00 00 00 00 DE [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 03 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [11:22:41]RAPDU: 90 00 [11:22:41]wFMCommunicate OK [11:22:41]SAM_PROTO_ClearQueue done [11:22:41]KKMCreateOFDPacket [11:22:41]OFDProtocolAddRootSTLVToBuf [11:22:41]FM_MakeSignedData [11:22:41]FM_MakeSignedData [11:22:41]SAM_PROTO_SignData [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 0D 01 02 [11:22:41]Write to MH i2c: E2 08 00 5E 0F 80 0D 01 02 00 00 00 00 E6 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 03 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 03 00 5E 0F 00 90 00 E1 [11:22:41]RAPDU: 90 00 [11:22:41]wFMCommunicate OK [11:22:41]wFMCommunicate request_size=255 [11:22:41]MH_SAM_APDU [11:22: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 01 12 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 81 02 00 35 04 06 00 8B [11:22:41]Write to MH i2c: E2 02 01 5F 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 01 12 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 81 02 00 35 04 06 00 8B 00 00 9D [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 03 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 03 00 5F 0F 00 90 00 E2 [11:22:41]RAPDU: 90 00 [11:22:41]wFMCommunicate OK [11:22:41]wFMCommunicate request_size=10 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 0D 02 02 05 0A 7B 04 9D 30 [11:22:41]Write to MH i2c: E2 0D 00 60 0F 80 0D 02 02 05 00 0A 7B 04 9D 30 00 00 49 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 03 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 03 00 60 0F 00 90 00 E3 [11:22:41]RAPDU: 90 00 [11:22:41]wFMCommunicate OK [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 0D 03 02 [11:22:41]Write to MH i2c: E2 08 00 61 0F 80 0D 03 02 00 00 00 00 EB [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 0B 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 0B 00 61 0F 00 9B D9 4C 8A 49 DC C6 5E 90 00 7F [11:22:41]RAPDU: 9B D9 4C 8A 49 DC C6 5E 90 00 [11:22:41]wFMCommunicate OK [11:22:41]SAM_PROTO_SignData done [11:22:41]FM_MakeSignedData done [11:22:41]CreateOFDProtocolMessage [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 11 00 00 [11:22:41]Write to MH i2c: E2 08 00 62 0F 80 11 00 00 00 00 00 00 EB [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 17 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 17 00 62 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [11:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:22:41]wFMCommunicate OK [11:22:41]CreateOFDProtocolMessage done [11:22:41]OFDSenderStorePacket 164171 [11:22:41]StoreOFDPacket docnum=164171 [11:22:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 89 07 01 BD 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 01 12 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 81 02 00 35 04 06 00 8B 0A 7B 04 9D 30 9B D9 4C 8A 49 DC C6 5E [11:22:41]CheckFolder [11:22:41]dirname=/storage/ofd_packets [11:22:41]CheckFolder done [11:22:41]ProducePacketName [11:22:41]name=ofd_packets/00164171 [11:22:41]NVStorageSaveData ofd_packets/00164171 [11:22:41]File name is /storage/ofd_packets/00164171 [11:22:41]Write 301 bytes [11:22:41]NVStorageSaveData done [11:22:41]OFDSenderStorePacket done [11:22:41]KKMCreateOFDPacket done [11:22:41]NVStorageSaveData kkm_last_timestamp [11:22:41]File name is /storage/kkm_last_timestamp [11:22:41]Write 4 bytes [11:22:41]NVStorageSaveData done [11:22:41]ExternCall_PrintAddStr [11:22:41]wPrintStart [11:22:41]Write to MH i2c: 01 00 00 63 0F 72 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: 01 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: 01 07 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: 01 07 00 63 0F 00 00 00 00 00 FF 0F 87 [11:22:41]RasterBufferAndPrint [11:22:41]line Счет N : (1)458254 [11:22:41]line ИНН: 02508201610067 [11:22:41]line Контрольно-Кассовый Чек [11:22:41]line ПРОДАЖА [11:22:41]line ТРК (МРК, ГНК) : 12 [11:22:41]line Товар: 2710124130 [11:22:41]line Аи-92-К-5 [11:22:41]line 4.560 * 65.80 [11:22:41]line = 300.05 [11:22:41]line НДС 12% НСП 1% [11:22:41]line > о реализуемом товаре [11:22:41]line ОКРУГЛЕНИЕ: -0.05 [11:22:41]line ИТОГО: 300.00 [11:22:41]line Внесено: 300.00 [11:22:41]line СДАЧА: 0.00 [11:22:41]line НСП 1% : 2.65 [11:22:41]line НДС 12% : 31.86 [11:22:41]line Наличными: 300.00 [11:22:41]line Безнал.: 0.00 [11:22:41]line Место: АЗС № 72 "Партнер Нефть" [11:22:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:22:41]line СНО: Общий режим [11:22:41]line Чек 92 12.07.2024 11:22 [11:22:41]line Смена: 445 ФФД: 1.0 [11:22:41]line ЗНМ: 0300000160 [11:22:41]line РНМ: 0000000000090829 [11:22:41]line Версия ККМ: 001 [11:22:41]line ФМ: 0000000000874718 [11:22:41]line ФД: 164171 [11:22:41]line ФПД: 152877129833776 [11:22:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T112241&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164171&fm=152877129833776&tin=02508201610067®Number=0000000000090829&sum=30000 [11:22:42]written 0, free lines is 4095 [11:22:42]OFD Sender: Processing packet 164171 [packets to send 104, broken 103] [11:22:42]ProducePacketName [11:22:42]name=ofd_packets/00164171 [11:22:42]OFD Sender: To server: pG, [11:22:42]CommunicateWithHost lk.salyk.kg:30040 [11:22:42]ConnectInit lk.salyk.kg [11:22:42]Connected sock=10 [11:22:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 89 07 01 BD 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 01 12 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 81 02 00 35 04 06 00 8B 0A 7B 04 9D 30 9B D9 4C 8A 49 DC C6 5E [11:22:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0B 02 47 00 7E D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 81 02 00 F4 03 04 00 95 B8 90 66 B6 04 01 00 00 4E 5E 8F 3D 52 39 64 2A [11:22:42]CommunicateWithHost err = 0 [11:22:42]CheckOFDResponse [11:22:42]1017 (14) - 77093643461234 [11:22:42]1041 (16) - 0000000000874718 [11:22:42]1040 (4) - 164171 [11:22:42]1012 (4) - 12.07.2024 05:01 [11:22:42]1206 (1) - 0 [11:22:42]OFD Sender: Remove packet 164171 [11:22:42]ProducePacketName [11:22:42]name=ofd_packets/00164171 [11:22:42]NVStorageDeleteData [11:22:42]Write to MH i2c: 01 00 00 8D 0F 9C [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: 01 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: 01 07 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: 01 07 00 8D 0F 00 00 00 00 00 EE 0C 9D [11:22:42]RasterBufferAndPrint [11:22:42]line [11:22:42]line [11:22:42]line [11:22:42]line [11:22:42]line [11:22:42]written 0, free lines is 3316 [11:22:42]MH_Cut [11:22:42]Write to MH i2c: D1 01 00 94 0F 01 75 [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: D1 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: D1 01 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: D1 01 00 94 0F 00 74 [11:22:42]Write to MH i2c: 01 00 00 95 0F A4 [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]OFD Sender: No OFD packet to send [11:22:43]*** Cut start [11:22:43]*** Partial cut [11:22:43]*** CUTSNS_PIN = 1 [11:22:43]*** CUTSNS_PIN = 0 [11:22:43]*** Brake cut motor [11:22:43]Read from MH i2c: 01 [11:22:43]MH_I2C_Read... [11:22:43]*** Stop cut motor [11:22:43]*** Cut end [11:22:43]Read from MH i2c: 01 07 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 07 00 95 0F 00 00 00 00 00 FF 0F B9 [11:22:43]process_action close_receipt done [11:22:43]requested_data is exist [11:22:43]produce_requested_data [11:22:43]requested_item fm.sn is exist - process it [11:22:43]wFMCommunicate request_size=4 [11:22:43]MH_SAM_APDU [11:22:43]CAPDU: 80 11 00 00 [11:22:43]Write to MH i2c: E2 08 00 96 0F 80 11 00 00 00 00 00 00 1F [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:43]Read from MH i2c: E2 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 17 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 17 00 96 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [11:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:22:43]wFMCommunicate OK [11:22:43]requested_item fd.num is exist - process it [11:22:43]SAM_PROTO_GetFieldsCounters [11:22:43]wFMCommunicate request_size=4 [11:22:43]MH_SAM_APDU [11:22:43]CAPDU: 80 13 00 00 [11:22:43]Write to MH i2c: E2 08 00 97 0F 80 13 00 00 00 00 00 00 22 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:44]Read from MH i2c: E2 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 62 00 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 62 00 97 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [11:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:44]wFMCommunicate OK [11:22:44]SAM_PROTO_GetFieldsCounters done [11:22:44]requested_item shift.num is exist - process it [11:22:44]requested_item shift.opened is exist - process it [11:22:44]req_shift_opened [11:22:44]FM_GetShiftState [11:22:44]SAM_PROTO_GetShiftState [11:22:44]wFMCommunicate request_size=4 [11:22:44]MH_SAM_APDU [11:22:44]CAPDU: 80 13 01 00 [11:22:44]Write to MH i2c: E2 08 00 98 0F 80 13 01 00 00 00 00 00 24 [11:22:44]Write i2c OK [11:22:44]MH_I2C_Read... [11:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:44]Read from MH i2c: E2 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 0E 00 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 0E 00 98 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6E [11:22:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:22:44]wFMCommunicate OK [11:22:44]SAM_PROTO_GetShiftState done [11:22:44]FM_GetShiftState done [11:22:44]req_shift_opened done [11:22:44]requested_item shift.open_date is exist - process it [11:22:44]req_shift_open_date [11:22:44]req_shift_open_date done [11:22:44]produce_requested_data done [11:22:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164171,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:22:44]process_action_free close_receipt [11:22:44]json_value_free [11:22:44]json_value_free done [11:22:44]process_json_proto returns [11:22:44]Send response to host [11:22:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164171,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:22:44]free response buf [11:22:44]execute_script done [11:22:44]execute_script returns [11:22:44]free content buf [11:22:44]Sock 7.Close socket [11:22:44]Sock 7.Thread stoped [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:07]accept exits with 9 [11:24:07]New connection [11:24:07]New thread 3066707300 created [11:24:07]Thread 3066850660 joined [11:24:07]Waiting for new connection... [11:24:07] Sock 9.Parse request [11:24:07]Sock 9.Check first char [11:24:07]Sock 9.First char is OK [11:24:07]request: POST /json_proto HTTP/1.0 [11:24:07]Method: POST [11:24:07]URL: /json_proto [11:24:07]Method is POST - this is cgi request [11:24:07]url: /json_proto [11:24:07]query_string will be loaded in cgi processing [11:24:07]execute_cgi json_proto POST (null) [11:24:07]execute_cgi path=json_proto method=POST [11:24:07]POST find Content-Length [11:24:07]Host: 172.17.56.4:8080 [11:24:07]Content-Length: 679 [11:24:07]Content-Type: application/json [11:24:07] [11:24:07]POST finish read [11:24:07]Found Content-Length = 679 [11:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:07]execute_script... [11:24: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)458255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:07]POST & json_proto [11:24:07]process_json_proto [11:24:07]json parsed OK: [11:24:07]protocol is kg_v1.0 [11:24:07]action value=close_receipt [11:24:07]process_action close_receipt [11:24:07]cmd_close_receipt [11:24:07]MH_GetDate [11:24:07]Write to MH i2c: F0 00 00 99 0F 97 [11:24:07]Write i2c OK [11:24:07]MH_I2C_Read... [11:24:07]Read from MH i2c: F0 [11:24:07]MH_I2C_Read... [11:24:07]Read from MH i2c: F0 09 00 [11:24:07]MH_I2C_Read... [11:24:07]Read from MH i2c: F0 09 00 99 0F 00 58 12 91 66 C9 DC B2 64 BC [11:24:07]GetLastDocTimeStamp 1720783361 [11:24:07]current date 1720783448 [11:24:07]FM_GetShiftState [11:24:07]SAM_PROTO_GetShiftState [11:24:07]wFMCommunicate request_size=4 [11:24:07]MH_SAM_APDU [11:24:07]CAPDU: 80 13 01 00 [11:24:07]Write to MH i2c: E2 08 00 9A 0F 80 13 01 00 00 00 00 00 26 [11:24:07]Write i2c OK [11:24:07]MH_I2C_Read... [11:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:07]Read from MH i2c: E2 [11:24:07]MH_I2C_Read... [11:24:07]Read from MH i2c: E2 0E 00 [11:24:07]MH_I2C_Read... [11:24:07]Read from MH i2c: E2 0E 00 9A 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 70 [11:24:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:24:07]wFMCommunicate OK [11:24:07]SAM_PROTO_GetShiftState done [11:24:07]FM_GetShiftState done [11:24:07]opened in 1720744654 [11:24:07]opened+sec_in_day 1720831054 [11:24:07]quantity*price = 300038 [11:24:07]sum+1 = 300040 [11:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 93 12.07.2024 11:24 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164172 ФПД: 117237369353242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T112408&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164172&fm=117237369353242&tin=02508201610067®Number=0000000000090829&sum=300000 [11:24:09]StoreToDocumentArchive [11:24:09]shift 445 fd 164172 [11:24:09]save to /storage/0445/doc_00164172 [11:24:09]save last doc name /storage/0445/doc_00164172 to /storage/kkm_last_doc_name [11:24:09]save OK [11:24:09]Clear old archive folders... [11:24:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:24:09]tlvbuf is 009F9E00 [11:24:09]SAM_PROTO_ClearQueue [11:24:09]wFMCommunicate request_size=4 [11:24:09]MH_SAM_APDU [11:24:09]CAPDU: 80 09 00 00 [11:24:09]Write to MH i2c: E2 08 00 A7 0F 80 09 00 00 00 00 00 00 28 [11:24:09]Write i2c OK [11:24:09]MH_I2C_Read... [11:24:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:09]Read from MH i2c: E2 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 03 00 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [11:24:09]RAPDU: 90 00 [11:24:09]wFMCommunicate OK [11:24:09]SAM_PROTO_ClearQueue done [11:24:09]KKMCreateOFDPacket [11:24:09]OFDProtocolAddRootSTLVToBuf [11:24:09]FM_MakeSignedData [11:24:09]FM_MakeSignedData [11:24:09]SAM_PROTO_SignData [11:24:09]wFMCommunicate request_size=4 [11:24:09]MH_SAM_APDU [11:24:09]CAPDU: 80 0D 01 02 [11:24:09]Write to MH i2c: E2 08 00 A8 0F 80 0D 01 02 00 00 00 00 30 [11:24:09]Write i2c OK [11:24:09]MH_I2C_Read... [11:24:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:09]Read from MH i2c: E2 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 03 00 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [11:24:09]RAPDU: 90 00 [11:24:09]wFMCommunicate OK [11:24:09]wFMCommunicate request_size=255 [11:24:09]MH_SAM_APDU [11:24: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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 58 12 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 81 02 00 35 04 06 00 6A A0 73 C1 [11:24:09]Write to MH i2c: E2 02 01 A9 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 58 12 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 81 02 00 35 04 06 00 6A A0 73 C1 00 00 DB [11:24:09]Write i2c OK [11:24:09]MH_I2C_Read... [11:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:09]Read from MH i2c: E2 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 03 00 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [11:24:09]RAPDU: 90 00 [11:24:09]wFMCommunicate OK [11:24:09]wFMCommunicate request_size=7 [11:24:09]MH_SAM_APDU [11:24:09]CAPDU: 80 0D 02 02 02 34 1A [11:24:09]Write to MH i2c: E2 0A 00 AA 0F 80 0D 02 02 02 00 34 1A 00 00 85 [11:24:09]Write i2c OK [11:24:09]MH_I2C_Read... [11:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:09]Read from MH i2c: E2 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 03 00 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 03 00 AA 0F 00 90 00 2D [11:24:09]RAPDU: 90 00 [11:24:09]wFMCommunicate OK [11:24:09]wFMCommunicate request_size=4 [11:24:09]MH_SAM_APDU [11:24:09]CAPDU: 80 0D 03 02 [11:24:09]Write to MH i2c: E2 08 00 AB 0F 80 0D 03 02 00 00 00 00 35 [11:24:09]Write i2c OK [11:24:09]MH_I2C_Read... [11:24:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:09]Read from MH i2c: E2 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 0B 00 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 0B 00 AB 0F 00 B1 88 AC 29 FC 7E CF 14 90 00 A1 [11:24:09]RAPDU: B1 88 AC 29 FC 7E CF 14 90 00 [11:24:09]wFMCommunicate OK [11:24:09]SAM_PROTO_SignData done [11:24:09]FM_MakeSignedData done [11:24:09]CreateOFDProtocolMessage [11:24:09]wFMCommunicate request_size=4 [11:24:09]MH_SAM_APDU [11:24:09]CAPDU: 80 11 00 00 [11:24:09]Write to MH i2c: E2 08 00 AC 0F 80 11 00 00 00 00 00 00 35 [11:24:09]Write i2c OK [11:24:09]MH_I2C_Read... [11:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:09]Read from MH i2c: E2 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 17 00 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: E2 17 00 AC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [11:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:24:09]wFMCommunicate OK [11:24:09]CreateOFDProtocolMessage done [11:24:09]OFDSenderStorePacket 164172 [11:24:09]StoreOFDPacket docnum=164172 [11:24:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C4 85 04 01 ED 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 58 12 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 81 02 00 35 04 06 00 6A A0 73 C1 34 1A B1 88 AC 29 FC 7E CF 14 [11:24:09]CheckFolder [11:24:09]dirname=/storage/ofd_packets [11:24:09]CheckFolder done [11:24:09]ProducePacketName [11:24:09]name=ofd_packets/00164172 [11:24:09]NVStorageSaveData ofd_packets/00164172 [11:24:09]File name is /storage/ofd_packets/00164172 [11:24:09]Write 298 bytes [11:24:09]NVStorageSaveData done [11:24:09]OFDSenderStorePacket done [11:24:09]KKMCreateOFDPacket done [11:24:09]NVStorageSaveData kkm_last_timestamp [11:24:09]File name is /storage/kkm_last_timestamp [11:24:09]Write 4 bytes [11:24:09]NVStorageSaveData done [11:24:09]ExternCall_PrintAddStr [11:24:09]wPrintStart [11:24:09]Write to MH i2c: 01 00 00 AD 0F BC [11:24:09]Write i2c OK [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: 01 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: 01 07 00 [11:24:09]MH_I2C_Read... [11:24:09]Read from MH i2c: 01 07 00 AD 0F 00 00 00 00 00 FF 0F D1 [11:24:09]RasterBufferAndPrint [11:24:09]line Счет N : (1)458255 [11:24:09]line ИНН: 02508201610067 [11:24:09]line Контрольно-Кассовый Чек [11:24:09]line ПРОДАЖА [11:24:09]line ТРК (МРК, ГНК) : 11 [11:24:09]line Товар: 2710194210 [11:24:09]line ДТ-К-5 [11:24:09]line 41.730 * 71.90 [11:24:09]line = 3000.39 [11:24:09]line НДС 12% НСП 1% [11:24:09]line > о реализуемом товаре [11:24:09]line ОКРУГЛЕНИЕ: -0.39 [11:24:09]line ИТОГО: 3000.00 [11:24:09]line Внесено: 3000.00 [11:24:09]line СДАЧА: 0.00 [11:24:09]line НСП 1% : 26.55 [11:24:09]line НДС 12% : 318.62 [11:24:09]line Наличными: 3000.00 [11:24:09]line Безнал.: 0.00 [11:24:09]line Место: АЗС № 72 "Партнер Нефть" [11:24:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:24:09]line СНО: Общий режим [11:24:09]line Чек 93 12.07.2024 11:24 [11:24:09]line Смена: 445 ФФД: 1.0 [11:24:09]line ЗНМ: 0300000160 [11:24:09]line РНМ: 0000000000090829 [11:24:09]line Версия ККМ: 001 [11:24:09]line ФМ: 0000000000874718 [11:24:09]line ФД: 164172 [11:24:09]line ФПД: 117237369353242 [11:24:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T112408&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164172&fm=117237369353242&tin=02508201610067®Number=0000000000090829&sum=300000 [11:24:09]OFD Sender: Processing packet 164172 [packets to send 104, broken 103] [11:24:09]ProducePacketName [11:24:09]name=ofd_packets/00164172 [11:24:09]OFD Sender: To server: pG, [11:24:09]CommunicateWithHost lk.salyk.kg:30040 [11:24:09]ConnectInit lk.salyk.kg [11:24:09]written 0, free lines is 4095 [11:24:09]Connected sock=10 [11:24:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C4 85 04 01 ED 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 58 12 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 81 02 00 35 04 06 00 6A A0 73 C1 34 1A B1 88 AC 29 FC 7E CF 14 [11:24:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E0 BA 47 00 6B 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 81 02 00 F4 03 04 00 ED B8 90 66 B6 04 01 00 00 A1 E2 76 F9 92 D9 D0 B4 [11:24:10]CommunicateWithHost err = 0 [11:24:10]CheckOFDResponse [11:24:10]1017 (14) - 77093643461234 [11:24:10]1041 (16) - 0000000000874718 [11:24:10]1040 (4) - 164172 [11:24:10]1012 (4) - 12.07.2024 05:02 [11:24:10]1206 (1) - 0 [11:24:10]OFD Sender: Remove packet 164172 [11:24:10]ProducePacketName [11:24:10]name=ofd_packets/00164172 [11:24:10]NVStorageDeleteData [11:24:10]Write to MH i2c: 01 00 00 D7 0F E6 [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: 01 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: 01 07 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: 01 07 00 D7 0F 00 00 00 00 00 F5 0C EE [11:24:10]RasterBufferAndPrint [11:24:10]line [11:24:10]line [11:24:10]line [11:24:10]line [11:24:10]line [11:24:10]written 0, free lines is 3323 [11:24:10]MH_Cut [11:24:10]Write to MH i2c: D1 01 00 DE 0F 01 BF [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: D1 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: D1 01 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: D1 01 00 DE 0F 00 BE [11:24:10]Write to MH i2c: 01 00 00 DF 0F EE [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]OFD Sender: No OFD packet to send [11:24:11]*** Cut start [11:24:11]*** Partial cut [11:24:11]*** CUTSNS_PIN = 1 [11:24:11]*** CUTSNS_PIN = 0 [11:24:11]*** Brake cut motor [11:24:11]Read from MH i2c: 01 [11:24:11]MH_I2C_Read... [11:24:11]*** Stop cut motor [11:24:11]*** Cut end [11:24:11]Read from MH i2c: 01 07 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: 01 07 00 DF 0F 00 00 00 00 00 FF 0F 03 [11:24:11]process_action close_receipt done [11:24:11]requested_data is exist [11:24:11]produce_requested_data [11:24:11]requested_item fm.sn is exist - process it [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 11 00 00 [11:24:11]Write to MH i2c: E2 08 00 E0 0F 80 11 00 00 00 00 00 00 69 [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 17 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 17 00 E0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [11:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:24:11]wFMCommunicate OK [11:24:11]requested_item fd.num is exist - process it [11:24:11]SAM_PROTO_GetFieldsCounters [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 13 00 00 [11:24:11]Write to MH i2c: E2 08 00 E1 0F 80 13 00 00 00 00 00 00 6C [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 62 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 62 00 E1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:11]wFMCommunicate OK [11:24:11]SAM_PROTO_GetFieldsCounters done [11:24:11]requested_item shift.num is exist - process it [11:24:11]requested_item shift.opened is exist - process it [11:24:11]req_shift_opened [11:24:11]FM_GetShiftState [11:24:11]SAM_PROTO_GetShiftState [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 13 01 00 [11:24:11]Write to MH i2c: E2 08 00 E2 0F 80 13 01 00 00 00 00 00 6E [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 0E 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 0E 00 E2 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B8 [11:24:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:24:11]wFMCommunicate OK [11:24:11]SAM_PROTO_GetShiftState done [11:24:11]FM_GetShiftState done [11:24:11]req_shift_opened done [11:24:11]requested_item shift.open_date is exist - process it [11:24:11]req_shift_open_date [11:24:11]req_shift_open_date done [11:24:11]produce_requested_data done [11:24:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164172,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:24:11]process_action_free close_receipt [11:24:11]json_value_free [11:24:11]json_value_free done [11:24:11]process_json_proto returns [11:24:11]Send response to host [11:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164172,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:24:11]free response buf [11:24:11]execute_script done [11:24:11]execute_script returns [11:24:11]free content buf [11:24:11]Sock 9.Close socket [11:24:11]Sock 9.Thread stoped [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:09]accept exits with 7 [11:30:09]New connection [11:30:09]New thread 3066850660 created [11:30:09]Thread 3066707300 joined [11:30:09]Waiting for new connection... [11:30:09] Sock 7.Parse request [11:30:09]Sock 7.Check first char [11:30:09]Sock 7.First char is OK [11:30:09]request: POST /json_proto HTTP/1.0 [11:30:09]Method: POST [11:30:09]URL: /json_proto [11:30:09]Method is POST - this is cgi request [11:30:09]url: /json_proto [11:30:09]query_string will be loaded in cgi processing [11:30:09]execute_cgi json_proto POST (null) [11:30:09]execute_cgi path=json_proto method=POST [11:30:09]POST find Content-Length [11:30:09]Host: 172.17.56.4:8080 [11:30:09]Content-Length: 677 [11:30:09]Content-Type: application/json [11:30:09] [11:30:09]POST finish read [11:30:09]Found Content-Length = 677 [11:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.170, "sum" : 340.19, "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:30:09]execute_script... [11:30: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)458256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.170, "sum" : 340.19, "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:30:09]POST & json_proto [11:30:09]process_json_proto [11:30:09]json parsed OK: [11:30:09]protocol is kg_v1.0 [11:30:09]action value=close_receipt [11:30:09]process_action close_receipt [11:30:09]cmd_close_receipt [11:30:09]MH_GetDate [11:30:09]Write to MH i2c: F0 00 00 E3 0F E1 [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: F0 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: F0 09 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: F0 09 00 E3 0F 00 C2 13 91 66 C9 DC B2 64 71 [11:30:09]GetLastDocTimeStamp 1720783448 [11:30:09]current date 1720783810 [11:30:09]FM_GetShiftState [11:30:09]SAM_PROTO_GetShiftState [11:30:09]wFMCommunicate request_size=4 [11:30:09]MH_SAM_APDU [11:30:09]CAPDU: 80 13 01 00 [11:30:09]Write to MH i2c: E2 08 00 E4 0F 80 13 01 00 00 00 00 00 70 [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:09]Read from MH i2c: E2 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 0E 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 0E 00 E4 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BA [11:30:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:30:09]wFMCommunicate OK [11:30:09]SAM_PROTO_GetShiftState done [11:30:09]FM_GetShiftState done [11:30:09]opened in 1720744654 [11:30:09]opened+sec_in_day 1720831054 [11:30:09]quantity*price = 34018 [11:30:09]sum+1 = 34020 [11:30:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.13 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 94 12.07.2024 11:30 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164173 ФПД: 203221566090940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T113010&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164173&fm=203221566090940&tin=02508201610067®Number=0000000000090829&sum=34000 [11:30:10]StoreToDocumentArchive [11:30:10]shift 445 fd 164173 [11:30:10]save to /storage/0445/doc_00164173 [11:30:10]save last doc name /storage/0445/doc_00164173 to /storage/kkm_last_doc_name [11:30:10]save OK [11:30:10]Clear old archive folders... [11:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:10]tlvbuf is 00A1BF00 [11:30:10]SAM_PROTO_ClearQueue [11:30:10]wFMCommunicate request_size=4 [11:30:10]MH_SAM_APDU [11:30:10]CAPDU: 80 09 00 00 [11:30:10]Write to MH i2c: E2 08 00 F1 0F 80 09 00 00 00 00 00 00 72 [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:10]Read from MH i2c: E2 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 03 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 03 00 F1 0F 00 90 00 74 [11:30:10]RAPDU: 90 00 [11:30:10]wFMCommunicate OK [11:30:10]SAM_PROTO_ClearQueue done [11:30:10]KKMCreateOFDPacket [11:30:10]OFDProtocolAddRootSTLVToBuf [11:30:10]FM_MakeSignedData [11:30:10]FM_MakeSignedData [11:30:10]SAM_PROTO_SignData [11:30:10]wFMCommunicate request_size=4 [11:30:10]MH_SAM_APDU [11:30:10]CAPDU: 80 0D 01 02 [11:30:10]Write to MH i2c: E2 08 00 F2 0F 80 0D 01 02 00 00 00 00 7A [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:10]Read from MH i2c: E2 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 03 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 03 00 F2 0F 00 90 00 75 [11:30:10]RAPDU: 90 00 [11:30:10]wFMCommunicate OK [11:30:10]wFMCommunicate request_size=255 [11:30:10]MH_SAM_APDU [11:30:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 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 5E 00 00 00 F4 03 04 00 C2 13 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 81 02 00 35 04 06 00 B8 [11:30:10]Write to MH i2c: E2 02 01 F3 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 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 5E 00 00 00 F4 03 04 00 C2 13 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 81 02 00 35 04 06 00 B8 00 00 75 [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:11]OFD Sender: No OFD packet to send [11:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 F3 0F 00 90 00 76 [11:30:11]RAPDU: 90 00 [11:30:11]wFMCommunicate OK [11:30:11]wFMCommunicate request_size=10 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 0D 02 02 05 D4 35 41 EE BC [11:30:11]Write to MH i2c: E2 0D 00 F4 0F 80 0D 02 02 05 00 D4 35 41 EE BC 00 00 7B [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 F4 0F 00 90 00 77 [11:30:11]RAPDU: 90 00 [11:30:11]wFMCommunicate OK [11:30:11]wFMCommunicate request_size=4 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 0D 03 02 [11:30:11]Write to MH i2c: E2 08 00 F5 0F 80 0D 03 02 00 00 00 00 7F [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 0B 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 0B 00 F5 0F 00 1D 29 3D CC 32 A4 67 85 90 00 91 [11:30:11]RAPDU: 1D 29 3D CC 32 A4 67 85 90 00 [11:30:11]wFMCommunicate OK [11:30:11]SAM_PROTO_SignData done [11:30:11]FM_MakeSignedData done [11:30:11]CreateOFDProtocolMessage [11:30:11]wFMCommunicate request_size=4 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 11 00 00 [11:30:11]Write to MH i2c: E2 08 00 F6 0F 80 11 00 00 00 00 00 00 7F [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 17 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 17 00 F6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [11:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:11]wFMCommunicate OK [11:30:11]CreateOFDProtocolMessage done [11:30:11]OFDSenderStorePacket 164173 [11:30:11]StoreOFDPacket docnum=164173 [11:30:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B0 98 07 01 80 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 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 5E 00 00 00 F4 03 04 00 C2 13 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 81 02 00 35 04 06 00 B8 D4 35 41 EE BC 1D 29 3D CC 32 A4 67 85 [11:30:11]CheckFolder [11:30:11]dirname=/storage/ofd_packets [11:30:11]CheckFolder done [11:30:11]ProducePacketName [11:30:11]name=ofd_packets/00164173 [11:30:11]NVStorageSaveData ofd_packets/00164173 [11:30:11]File name is /storage/ofd_packets/00164173 [11:30:11]Write 301 bytes [11:30:11]NVStorageSaveData done [11:30:11]OFDSenderStorePacket done [11:30:11]KKMCreateOFDPacket done [11:30:11]NVStorageSaveData kkm_last_timestamp [11:30:11]File name is /storage/kkm_last_timestamp [11:30:11]Write 4 bytes [11:30:11]NVStorageSaveData done [11:30:11]ExternCall_PrintAddStr [11:30:11]wPrintStart [11:30:11]Write to MH i2c: 01 00 00 F7 0F 06 [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: 01 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: 01 07 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: 01 07 00 F7 0F 00 00 00 00 00 FF 0F 1B [11:30:11]RasterBufferAndPrint [11:30:11]line Счет N : (1)458256 [11:30:11]line ИНН: 02508201610067 [11:30:11]line Контрольно-Кассовый Чек [11:30:11]line ПРОДАЖА [11:30:11]line ТРК (МРК, ГНК) : 22 [11:30:11]line Товар: 2710124130 [11:30:11]line Аи-92-К-5 [11:30:11]line 5.170 * 65.80 [11:30:11]line = 340.19 [11:30:11]line НДС 12% НСП 1% [11:30:11]line > о реализуемом товаре [11:30:11]line ОКРУГЛЕНИЕ: -0.19 [11:30:11]line ИТОГО: 340.00 [11:30:11]line Внесено: 340.00 [11:30:11]line СДАЧА: 0.00 [11:30:11]line НСП 1% : 3.01 [11:30:11]line НДС 12% : 36.13 [11:30:11]line Наличными: 340.00 [11:30:11]line Безнал.: 0.00 [11:30:11]line Место: АЗС № 72 "Партнер Нефть" [11:30:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:30:11]line СНО: Общий режим [11:30:11]line Чек 94 12.07.2024 11:30 [11:30:11]line Смена: 445 ФФД: 1.0 [11:30:11]line ЗНМ: 0300000160 [11:30:11]line РНМ: 0000000000090829 [11:30:11]line Версия ККМ: 001 [11:30:11]line ФМ: 0000000000874718 [11:30:11]line ФД: 164173 [11:30:11]line ФПД: 203221566090940 [11:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T113010&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164173&fm=203221566090940&tin=02508201610067®Number=0000000000090829&sum=34000 [11:30:11]OFD Sender: Processing packet 164173 [packets to send 104, broken 103] [11:30:11]ProducePacketName [11:30:11]name=ofd_packets/00164173 [11:30:11]OFD Sender: To server: pG, [11:30:11]CommunicateWithHost lk.salyk.kg:30040 [11:30:11]ConnectInit lk.salyk.kg [11:30:11]written 0, free lines is 4095 [11:30:11]Connected sock=10 [11:30:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B0 98 07 01 80 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 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 5E 00 00 00 F4 03 04 00 C2 13 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 81 02 00 35 04 06 00 B8 D4 35 41 EE BC 1D 29 3D CC 32 A4 67 85 [11:30:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 45 B5 47 00 AE 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 34 37 31 38 10 04 04 00 4D 81 02 00 F4 03 04 00 57 BA 90 66 B6 04 01 00 00 86 33 FC 4A F6 8D FB 19 [11:30:12]CommunicateWithHost err = 0 [11:30:12]CheckOFDResponse [11:30:12]1017 (14) - 77093643461234 [11:30:12]1041 (16) - 0000000000874718 [11:30:12]1040 (4) - 164173 [11:30:12]1012 (4) - 12.07.2024 05:08 [11:30:12]1206 (1) - 0 [11:30:12]OFD Sender: Remove packet 164173 [11:30:12]ProducePacketName [11:30:12]name=ofd_packets/00164173 [11:30:12]NVStorageDeleteData [11:30:12]Write to MH i2c: 01 00 00 21 10 31 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 07 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 07 00 21 10 00 00 00 00 00 F2 0C 36 [11:30:12]RasterBufferAndPrint [11:30:12]line [11:30:12]line [11:30:12]line [11:30:12]line [11:30:12]line [11:30:12]written 0, free lines is 3322 [11:30:12]MH_Cut [11:30:12]Write to MH i2c: D1 01 00 28 10 01 0A [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: D1 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: D1 01 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: D1 01 00 28 10 00 09 [11:30:12]Write to MH i2c: 01 00 00 29 10 39 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]OFD Sender: No OFD packet to send [11:30:12]*** Cut start [11:30:12]*** Partial cut [11:30:12]*** CUTSNS_PIN = 1 [11:30:12]*** CUTSNS_PIN = 0 [11:30:13]*** Brake cut motor [11:30:13]Read from MH i2c: 01 [11:30:13]MH_I2C_Read... [11:30:13]*** Stop cut motor [11:30:13]*** Cut end [11:30:13]Read from MH i2c: 01 07 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: 01 07 00 29 10 00 00 00 00 00 FF 0F 4E [11:30:13]process_action close_receipt done [11:30:13]requested_data is exist [11:30:13]produce_requested_data [11:30:13]requested_item fm.sn is exist - process it [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 11 00 00 [11:30:13]Write to MH i2c: E2 08 00 2A 10 80 11 00 00 00 00 00 00 B4 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 17 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 17 00 2A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [11:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:13]wFMCommunicate OK [11:30:13]requested_item fd.num is exist - process it [11:30:13]SAM_PROTO_GetFieldsCounters [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 13 00 00 [11:30:13]Write to MH i2c: E2 08 00 2B 10 80 13 00 00 00 00 00 00 B7 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 62 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 62 00 2B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [11:30: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:13]wFMCommunicate OK [11:30:13]SAM_PROTO_GetFieldsCounters done [11:30:13]requested_item shift.num is exist - process it [11:30:13]requested_item shift.opened is exist - process it [11:30:13]req_shift_opened [11:30:13]FM_GetShiftState [11:30:13]SAM_PROTO_GetShiftState [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 13 01 00 [11:30:13]Write to MH i2c: E2 08 00 2C 10 80 13 01 00 00 00 00 00 B9 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 0E 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 0E 00 2C 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 03 [11:30:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:30:13]wFMCommunicate OK [11:30:13]SAM_PROTO_GetShiftState done [11:30:13]FM_GetShiftState done [11:30:13]req_shift_opened done [11:30:13]requested_item shift.open_date is exist - process it [11:30:13]req_shift_open_date [11:30:13]req_shift_open_date done [11:30:13]produce_requested_data done [11:30:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164173,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:30:13]process_action_free close_receipt [11:30:13]json_value_free [11:30:13]json_value_free done [11:30:13]process_json_proto returns [11:30:13]Send response to host [11:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164173,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:30:13]free response buf [11:30:13]execute_script done [11:30:13]execute_script returns [11:30:13]free content buf [11:30:13]Sock 7.Close socket [11:30:13]Sock 7.Thread stoped [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]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:46]accept exits with 9 [11:32:46]New connection [11:32:46]New thread 3066707300 created [11:32:46]Thread 3066850660 joined [11:32:46]Waiting for new connection... [11:32:46] Sock 9.Parse request [11:32:46]Sock 9.Check first char [11:32:46]Sock 9.First char is OK [11:32:46]request: POST /json_proto HTTP/1.0 [11:32:46]Method: POST [11:32:46]URL: /json_proto [11:32:46]Method is POST - this is cgi request [11:32:46]url: /json_proto [11:32:46]query_string will be loaded in cgi processing [11:32:46]execute_cgi json_proto POST (null) [11:32:46]execute_cgi path=json_proto method=POST [11:32:46]POST find Content-Length [11:32:46]Host: 172.17.56.4:8080 [11:32:46]Content-Length: 677 [11:32:46]Content-Type: application/json [11:32:46] [11:32:46]POST finish read [11:32:46]Found Content-Length = 677 [11:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:46]execute_script... [11:32: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)458257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:46]POST & json_proto [11:32:46]process_json_proto [11:32:46]json parsed OK: [11:32:46]protocol is kg_v1.0 [11:32:46]action value=close_receipt [11:32:46]process_action close_receipt [11:32:46]cmd_close_receipt [11:32:46]MH_GetDate [11:32:46]Write to MH i2c: F0 00 00 2D 10 2C [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: F0 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: F0 09 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: F0 09 00 2D 10 00 5F 14 91 66 C9 DC B2 64 5A [11:32:46]GetLastDocTimeStamp 1720783810 [11:32:46]current date 1720783967 [11:32:46]FM_GetShiftState [11:32:46]SAM_PROTO_GetShiftState [11:32:46]wFMCommunicate request_size=4 [11:32:46]MH_SAM_APDU [11:32:46]CAPDU: 80 13 01 00 [11:32:46]Write to MH i2c: E2 08 00 2E 10 80 13 01 00 00 00 00 00 BB [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:46]Read from MH i2c: E2 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 0E 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 0E 00 2E 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 05 [11:32:46]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:32:46]wFMCommunicate OK [11:32:46]SAM_PROTO_GetShiftState done [11:32:46]FM_GetShiftState done [11:32:46]opened in 1720744654 [11:32:46]opened+sec_in_day 1720831054 [11:32:46]quantity*price = 22043 [11:32:46]sum+1 = 22044 [11:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 95 12.07.2024 11:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164174 ФПД: 57082685720593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T113247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164174&fm=57082685720593&tin=02508201610067®Number=0000000000090829&sum=22000 [11:32:47]StoreToDocumentArchive [11:32:47]shift 445 fd 164174 [11:32:47]save to /storage/0445/doc_00164174 [11:32:47]save last doc name /storage/0445/doc_00164174 to /storage/kkm_last_doc_name [11:32:47]save OK [11:32:47]Clear old archive folders... [11:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:47]tlvbuf is 00A1E790 [11:32:47]SAM_PROTO_ClearQueue [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 09 00 00 [11:32:47]Write to MH i2c: E2 08 00 3B 10 80 09 00 00 00 00 00 00 BD [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 3B 10 00 90 00 BF [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]SAM_PROTO_ClearQueue done [11:32:47]KKMCreateOFDPacket [11:32:47]OFDProtocolAddRootSTLVToBuf [11:32:47]FM_MakeSignedData [11:32:47]FM_MakeSignedData [11:32:47]SAM_PROTO_SignData [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 0D 01 02 [11:32:47]Write to MH i2c: E2 08 00 3C 10 80 0D 01 02 00 00 00 00 C5 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 3C 10 00 90 00 C0 [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]wFMCommunicate request_size=255 [11:32:47]MH_SAM_APDU [11:32: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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5F 14 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 81 02 00 35 04 06 00 33 [11:32:47]Write to MH i2c: E2 02 01 3D 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5F 14 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 81 02 00 35 04 06 00 33 00 00 3C [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 3D 10 00 90 00 C1 [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]wFMCommunicate request_size=10 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 0D 02 02 05 EA 99 34 88 11 [11:32:47]Write to MH i2c: E2 0D 00 3E 10 80 0D 02 02 05 00 EA 99 34 88 11 00 00 22 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 3E 10 00 90 00 C2 [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 0D 03 02 [11:32:47]Write to MH i2c: E2 08 00 3F 10 80 0D 03 02 00 00 00 00 CA [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]OFD Sender: No OFD packet to send [11:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 0B 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 0B 00 3F 10 00 8E 54 20 07 E5 00 96 7F 90 00 CE [11:32:47]RAPDU: 8E 54 20 07 E5 00 96 7F 90 00 [11:32:47]wFMCommunicate OK [11:32:47]SAM_PROTO_SignData done [11:32:47]FM_MakeSignedData done [11:32:47]CreateOFDProtocolMessage [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 11 00 00 [11:32:47]Write to MH i2c: E2 08 00 40 10 80 11 00 00 00 00 00 00 CA [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 17 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 17 00 40 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [11:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:32:47]wFMCommunicate OK [11:32:47]CreateOFDProtocolMessage done [11:32:47]OFDSenderStorePacket 164174 [11:32:47]StoreOFDPacket docnum=164174 [11:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E6 07 07 01 D5 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5F 14 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 81 02 00 35 04 06 00 33 EA 99 34 88 11 8E 54 20 07 E5 00 96 7F [11:32:47]CheckFolder [11:32:47]dirname=/storage/ofd_packets [11:32:47]CheckFolder done [11:32:47]ProducePacketName [11:32:47]name=ofd_packets/00164174 [11:32:47]NVStorageSaveData ofd_packets/00164174 [11:32:47]File name is /storage/ofd_packets/00164174 [11:32:47]Write 301 bytes [11:32:47]NVStorageSaveData done [11:32:47]OFDSenderStorePacket done [11:32:47]KKMCreateOFDPacket done [11:32:47]NVStorageSaveData kkm_last_timestamp [11:32:47]File name is /storage/kkm_last_timestamp [11:32:47]Write 4 bytes [11:32:47]NVStorageSaveData done [11:32:47]ExternCall_PrintAddStr [11:32:47]wPrintStart [11:32:47]Write to MH i2c: 01 00 00 41 10 51 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 07 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 07 00 41 10 00 00 00 00 00 FF 0F 66 [11:32:47]RasterBufferAndPrint [11:32:47]line Счет N : (1)458257 [11:32:47]line ИНН: 02508201610067 [11:32:47]line Контрольно-Кассовый Чек [11:32:47]line ПРОДАЖА [11:32:47]line ТРК (МРК, ГНК) : 12 [11:32:47]line Товар: 2710124130 [11:32:47]line Аи-92-К-5 [11:32:47]line 3.350 * 65.80 [11:32:47]line = 220.43 [11:32:47]line НДС 12% НСП 1% [11:32:47]line > о реализуемом товаре [11:32:47]line ОКРУГЛЕНИЕ: -0.43 [11:32:47]line ИТОГО: 220.00 [11:32:47]line Внесено: 220.00 [11:32:47]line СДАЧА: 0.00 [11:32:47]line НСП 1% : 1.95 [11:32:47]line НДС 12% : 23.41 [11:32:47]line Наличными: 220.00 [11:32:47]line Безнал.: 0.00 [11:32:47]line Место: АЗС № 72 "Партнер Нефть" [11:32:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:32:47]line СНО: Общий режим [11:32:47]line Чек 95 12.07.2024 11:32 [11:32:47]line Смена: 445 ФФД: 1.0 [11:32:47]line ЗНМ: 0300000160 [11:32:47]line РНМ: 0000000000090829 [11:32:47]line Версия ККМ: 001 [11:32:47]line ФМ: 0000000000874718 [11:32:47]line ФД: 164174 [11:32:47]line ФПД: 57082685720593 [11:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T113247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164174&fm=57082685720593&tin=02508201610067®Number=0000000000090829&sum=22000 [11:32:47]written 0, free lines is 4095 [11:32:47]OFD Sender: Processing packet 164174 [packets to send 104, broken 103] [11:32:47]ProducePacketName [11:32:47]name=ofd_packets/00164174 [11:32:47]OFD Sender: To server: pG, [11:32:47]CommunicateWithHost lk.salyk.kg:30040 [11:32:47]ConnectInit lk.salyk.kg [11:32:47]Connected sock=10 [11:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E6 07 07 01 D5 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5F 14 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 81 02 00 35 04 06 00 33 EA 99 34 88 11 8E 54 20 07 E5 00 96 7F [11:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 89 A7 47 00 81 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 34 37 31 38 10 04 04 00 4E 81 02 00 F4 03 04 00 F3 BA 90 66 B6 04 01 00 00 73 50 80 32 8D D7 68 A1 [11:32:48]CommunicateWithHost err = 0 [11:32:48]CheckOFDResponse [11:32:48]1017 (14) - 77093643461234 [11:32:48]1041 (16) - 0000000000874718 [11:32:48]1040 (4) - 164174 [11:32:48]1012 (4) - 12.07.2024 05:11 [11:32:48]1206 (1) - 0 [11:32:48]OFD Sender: Remove packet 164174 [11:32:48]ProducePacketName [11:32:48]name=ofd_packets/00164174 [11:32:48]NVStorageDeleteData [11:32:48]Write to MH i2c: 01 00 00 6B 10 7B [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: 01 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: 01 07 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 F0 0C 7E [11:32:48]RasterBufferAndPrint [11:32:48]line [11:32:48]line [11:32:48]line [11:32:48]line [11:32:48]line [11:32:48]written 0, free lines is 3318 [11:32:48]MH_Cut [11:32:48]Write to MH i2c: D1 01 00 72 10 01 54 [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: D1 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: D1 01 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: D1 01 00 72 10 00 53 [11:32:48]Write to MH i2c: 01 00 00 73 10 83 [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]OFD Sender: No OFD packet to send [11:32:48]*** Cut start [11:32:48]*** Partial cut [11:32:48]*** CUTSNS_PIN = 1 [11:32:49]*** CUTSNS_PIN = 0 [11:32:49]*** Brake cut motor [11:32:49]Read from MH i2c: 01 [11:32:49]MH_I2C_Read... [11:32:49]*** Stop cut motor [11:32:49]*** Cut end [11:32:49]Read from MH i2c: 01 07 00 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: 01 07 00 73 10 00 00 00 00 00 FF 0F 98 [11:32:49]process_action close_receipt done [11:32:49]requested_data is exist [11:32:49]produce_requested_data [11:32:49]requested_item fm.sn is exist - process it [11:32:49]wFMCommunicate request_size=4 [11:32:49]MH_SAM_APDU [11:32:49]CAPDU: 80 11 00 00 [11:32:49]Write to MH i2c: E2 08 00 74 10 80 11 00 00 00 00 00 00 FE [11:32:49]Write i2c OK [11:32:49]MH_I2C_Read... [11:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:49]Read from MH i2c: E2 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 17 00 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 17 00 74 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [11:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:32:49]wFMCommunicate OK [11:32:49]requested_item fd.num is exist - process it [11:32:49]SAM_PROTO_GetFieldsCounters [11:32:49]wFMCommunicate request_size=4 [11:32:49]MH_SAM_APDU [11:32:49]CAPDU: 80 13 00 00 [11:32:49]Write to MH i2c: E2 08 00 75 10 80 13 00 00 00 00 00 00 01 [11:32:49]Write i2c OK [11:32:49]MH_I2C_Read... [11:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:49]Read from MH i2c: E2 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 62 00 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 62 00 75 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [11:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:49]wFMCommunicate OK [11:32:49]SAM_PROTO_GetFieldsCounters done [11:32:49]requested_item shift.num is exist - process it [11:32:49]requested_item shift.opened is exist - process it [11:32:49]req_shift_opened [11:32:49]FM_GetShiftState [11:32:49]SAM_PROTO_GetShiftState [11:32:49]wFMCommunicate request_size=4 [11:32:49]MH_SAM_APDU [11:32:49]CAPDU: 80 13 01 00 [11:32:49]Write to MH i2c: E2 08 00 76 10 80 13 01 00 00 00 00 00 03 [11:32:49]Write i2c OK [11:32:49]MH_I2C_Read... [11:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:49]Read from MH i2c: E2 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 0E 00 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: E2 0E 00 76 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4D [11:32:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:32:49]wFMCommunicate OK [11:32:49]SAM_PROTO_GetShiftState done [11:32:49]FM_GetShiftState done [11:32:49]req_shift_opened done [11:32:49]requested_item shift.open_date is exist - process it [11:32:49]req_shift_open_date [11:32:49]req_shift_open_date done [11:32:49]produce_requested_data done [11:32:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164174,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:32:49]process_action_free close_receipt [11:32:49]json_value_free [11:32:49]json_value_free done [11:32:49]process_json_proto returns [11:32:49]Send response to host [11:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164174,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:32:49]free response buf [11:32:49]execute_script done [11:32:49]execute_script returns [11:32:49]free content buf [11:32:49]Sock 9.Close socket [11:32:49]Sock 9.Thread stoped [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33: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:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:56]accept exits with 7 [11:35:56]New connection [11:35:56]New thread 3066850660 created [11:35:56]Thread 3066707300 joined [11:35:56]Waiting for new connection... [11:35:56] Sock 7.Parse request [11:35:56]Sock 7.Check first char [11:35:56]Sock 7.First char is OK [11:35:56]request: POST /json_proto HTTP/1.0 [11:35:56]Method: POST [11:35:56]URL: /json_proto [11:35:56]Method is POST - this is cgi request [11:35:56]url: /json_proto [11:35:56]query_string will be loaded in cgi processing [11:35:56]execute_cgi json_proto POST (null) [11:35:56]execute_cgi path=json_proto method=POST [11:35:56]POST find Content-Length [11:35:56]Host: 172.17.56.4:8080 [11:35:56]Content-Length: 791 [11:35:56]Content-Type: application/json [11:35:56] [11:35:56]POST finish read [11:35:56]Found Content-Length = 791 [11:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.740, "sum" : 700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:56]execute_script... [11:35: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)458258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.740, "sum" : 700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:56]POST & json_proto [11:35:56]process_json_proto [11:35:56]json parsed OK: [11:35:56]protocol is kg_v1.0 [11:35:56]action value=close_receipt [11:35:56]process_action close_receipt [11:35:56]cmd_close_receipt [11:35:56]MH_GetDate [11:35:56]Write to MH i2c: F0 00 00 77 10 76 [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: F0 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: F0 09 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: F0 09 00 77 10 00 1D 15 91 66 C9 DC B2 64 63 [11:35:56]GetLastDocTimeStamp 1720783967 [11:35:56]current date 1720784157 [11:35:56]FM_GetShiftState [11:35:56]SAM_PROTO_GetShiftState [11:35:56]wFMCommunicate request_size=4 [11:35:56]MH_SAM_APDU [11:35:56]CAPDU: 80 13 01 00 [11:35:56]Write to MH i2c: E2 08 00 78 10 80 13 01 00 00 00 00 00 05 [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:56]Read from MH i2c: E2 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 0E 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: E2 0E 00 78 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4F [11:35:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:35:56]wFMCommunicate OK [11:35:56]SAM_PROTO_GetShiftState done [11:35:56]FM_GetShiftState done [11:35:56]opened in 1720744654 [11:35:56]opened+sec_in_day 1720831054 [11:35:56]quantity*price = 70046 [11:35:56]sum+1 = 70047 [11:35:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.46 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.46 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 96 12.07.2024 11:35 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164175 ФПД: 88666137417547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T113557&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164175&fm=88666137417547&tin=02508201610067®Number=0000000000090829&sum=70046 [11:35:57]StoreToDocumentArchive [11:35:57]shift 445 fd 164175 [11:35:57]save to /storage/0445/doc_00164175 [11:35:57]save last doc name /storage/0445/doc_00164175 to /storage/kkm_last_doc_name [11:35:57]save OK [11:35:57]Clear old archive folders... [11:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:57]tlvbuf is 00A0D200 [11:35:57]SAM_PROTO_ClearQueue [11:35:57]wFMCommunicate request_size=4 [11:35:57]MH_SAM_APDU [11:35:57]CAPDU: 80 09 00 00 [11:35:57]Write to MH i2c: E2 08 00 85 10 80 09 00 00 00 00 00 00 07 [11:35:57]Write i2c OK [11:35:57]MH_I2C_Read... [11:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:57]Read from MH i2c: E2 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 03 00 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 03 00 85 10 00 90 00 09 [11:35:57]RAPDU: 90 00 [11:35:57]wFMCommunicate OK [11:35:57]SAM_PROTO_ClearQueue done [11:35:57]KKMCreateOFDPacket [11:35:57]OFDProtocolAddRootSTLVToBuf [11:35:57]FM_MakeSignedData [11:35:57]FM_MakeSignedData [11:35:57]SAM_PROTO_SignData [11:35:57]wFMCommunicate request_size=4 [11:35:57]MH_SAM_APDU [11:35:57]CAPDU: 80 0D 01 02 [11:35:57]Write to MH i2c: E2 08 00 86 10 80 0D 01 02 00 00 00 00 0F [11:35:57]Write i2c OK [11:35:57]MH_I2C_Read... [11:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:57]Read from MH i2c: E2 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 03 00 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 03 00 86 10 00 90 00 0A [11:35:57]RAPDU: 90 00 [11:35:57]wFMCommunicate OK [11:35:57]wFMCommunicate request_size=255 [11:35:57]MH_SAM_APDU [11:35: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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1D 15 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 81 02 00 35 04 06 00 50 [11:35:57]Write to MH i2c: E2 02 01 87 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1D 15 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 81 02 00 35 04 06 00 50 00 00 E1 [11:35:57]Write i2c OK [11:35:57]MH_I2C_Read... [11:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:57]Read from MH i2c: E2 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 03 00 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 03 00 87 10 00 90 00 0B [11:35:57]RAPDU: 90 00 [11:35:57]wFMCommunicate OK [11:35:57]wFMCommunicate request_size=10 [11:35:57]MH_SAM_APDU [11:35:57]CAPDU: 80 0D 02 02 05 A4 31 9F D7 4B [11:35:57]Write to MH i2c: E2 0D 00 88 10 80 0D 02 02 05 00 A4 31 9F D7 4B 00 00 B2 [11:35:57]Write i2c OK [11:35:57]MH_I2C_Read... [11:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:57]Read from MH i2c: E2 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 03 00 [11:35:57]MH_I2C_Read... [11:35:57]Read from MH i2c: E2 03 00 88 10 00 90 00 0C [11:35:57]RAPDU: 90 00 [11:35:57]wFMCommunicate OK [11:35:57]wFMCommunicate request_size=4 [11:35:57]MH_SAM_APDU [11:35:57]CAPDU: 80 0D 03 02 [11:35:57]Write to MH i2c: E2 08 00 89 10 80 0D 03 02 00 00 00 00 14 [11:35:57]Write i2c OK [11:35:57]MH_I2C_Read... [11:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:58]Read from MH i2c: E2 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 0B 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 0B 00 89 10 00 7D 96 C9 A9 8D B0 28 F8 90 00 F7 [11:35:58]RAPDU: 7D 96 C9 A9 8D B0 28 F8 90 00 [11:35:58]wFMCommunicate OK [11:35:58]SAM_PROTO_SignData done [11:35:58]FM_MakeSignedData done [11:35:58]CreateOFDProtocolMessage [11:35:58]wFMCommunicate request_size=4 [11:35:58]MH_SAM_APDU [11:35:58]CAPDU: 80 11 00 00 [11:35:58]Write to MH i2c: E2 08 00 8A 10 80 11 00 00 00 00 00 00 14 [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:58]Read from MH i2c: E2 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 17 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 17 00 8A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [11:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:35:58]wFMCommunicate OK [11:35:58]CreateOFDProtocolMessage done [11:35:58]OFDSenderStorePacket 164175 [11:35:58]StoreOFDPacket docnum=164175 [11:35:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 30 07 01 8C 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1D 15 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 81 02 00 35 04 06 00 50 A4 31 9F D7 4B 7D 96 C9 A9 8D B0 28 F8 [11:35:58]CheckFolder [11:35:58]dirname=/storage/ofd_packets [11:35:58]CheckFolder done [11:35:58]ProducePacketName [11:35:58]name=ofd_packets/00164175 [11:35:58]NVStorageSaveData ofd_packets/00164175 [11:35:58]File name is /storage/ofd_packets/00164175 [11:35:58]Write 301 bytes [11:35:58]NVStorageSaveData done [11:35:58]OFDSenderStorePacket done [11:35:58]KKMCreateOFDPacket done [11:35:58]NVStorageSaveData kkm_last_timestamp [11:35:58]File name is /storage/kkm_last_timestamp [11:35:58]Write 4 bytes [11:35:58]NVStorageSaveData done [11:35:58]ExternCall_PrintAddStr [11:35:58]wPrintStart [11:35:58]Write to MH i2c: 01 00 00 8B 10 9B [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: 01 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: 01 07 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: 01 07 00 8B 10 00 00 00 00 00 FF 0F B0 [11:35:58]RasterBufferAndPrint [11:35:58]line Счет N : (1)458258 [11:35:58]line ИНН: 02508201610067 [11:35:58]line Контрольно-Кассовый Чек [11:35:58]line ПРОДАЖА [11:35:58]line ТРК (МРК, ГНК) : 22 [11:35:58]line Товар: 2710124130 [11:35:58]line Аи-92-К-5 [11:35:58]line 10.740 * 65.22 [11:35:58]line = 700.46 [11:35:58]line НДС 12% НСП 1% [11:35:58]line > о реализуемом товаре [11:35:58]line ИТОГО: 700.46 [11:35:58]line НСП 1% : 6.20 [11:35:58]line НДС 12% : 74.38 [11:35:58]line Наличными: 0.00 [11:35:58]line Безнал.: 700.46 [11:35:58]line Место: АЗС № 72 "Партнер Нефть" [11:35:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:35:58]line СНО: Общий режим [11:35:58]line Чек 96 12.07.2024 11:35 [11:35:58]line Смена: 445 ФФД: 1.0 [11:35:58]line ЗНМ: 0300000160 [11:35:58]line РНМ: 0000000000090829 [11:35:58]line Версия ККМ: 001 [11:35:58]line Платежная система: KICB Банк [11:35:58]line ФМ: 0000000000874718 [11:35:58]line ФД: 164175 [11:35:58]line ФПД: 88666137417547 [11:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T113557&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164175&fm=88666137417547&tin=02508201610067®Number=0000000000090829&sum=70046 [11:35:58]written 0, free lines is 4095 [11:35:58]OFD Sender: Processing packet 164175 [packets to send 104, broken 103] [11:35:58]ProducePacketName [11:35:58]name=ofd_packets/00164175 [11:35:58]OFD Sender: To server: pG, [11:35:58]CommunicateWithHost lk.salyk.kg:30040 [11:35:58]ConnectInit lk.salyk.kg [11:35:58]Connected sock=10 [11:35:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 30 07 01 8C 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1D 15 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 81 02 00 35 04 06 00 50 A4 31 9F D7 4B 7D 96 C9 A9 8D B0 28 F8 [11:35:58]Write to MH i2c: 01 00 00 B4 10 C4 [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: 01 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: 01 07 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: 01 07 00 B4 10 00 00 00 00 00 0C 0D E4 [11:35:58]RasterBufferAndPrint [11:35:58]line [11:35:58]line [11:35:58]line [11:35:58]line [11:35:58]line [11:35:58]written 0, free lines is 3346 [11:35:58]MH_Cut [11:35:58]Write to MH i2c: D1 01 00 BB 10 01 9D [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: D1 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: D1 01 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: D1 01 00 BB 10 00 9C [11:35:58]Write to MH i2c: 01 00 00 BC 10 CC [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8F B6 47 00 BE 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 34 37 31 38 10 04 04 00 4F 81 02 00 F4 03 04 00 B1 BB 90 66 B6 04 01 00 00 74 44 4C F7 DD B0 25 C1 [11:35:58]CommunicateWithHost err = 0 [11:35:58]CheckOFDResponse [11:35:58]1017 (14) - 77093643461234 [11:35:58]1041 (16) - 0000000000874718 [11:35:58]1040 (4) - 164175 [11:35:58]1012 (4) - 12.07.2024 05:14 [11:35:58]1206 (1) - 0 [11:35:58]OFD Sender: Remove packet 164175 [11:35:58]ProducePacketName [11:35:58]name=ofd_packets/00164175 [11:35:58]NVStorageDeleteData [11:35:59]*** Cut start [11:35:59]*** Partial cut [11:35:59]*** CUTSNS_PIN = 1 [11:35:59]*** CUTSNS_PIN = 0 [11:35:59]OFD Sender: No OFD packet to send [11:35:59]*** Brake cut motor [11:35:59]Read from MH i2c: 01 [11:35:59]MH_I2C_Read... [11:35:59]*** Stop cut motor [11:35:59]*** Cut end [11:35:59]Read from MH i2c: 01 07 00 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: 01 07 00 BC 10 00 00 00 00 00 FF 0F E1 [11:35:59]process_action close_receipt done [11:35:59]requested_data is exist [11:35:59]produce_requested_data [11:35:59]requested_item fm.sn is exist - process it [11:35:59]wFMCommunicate request_size=4 [11:35:59]MH_SAM_APDU [11:35:59]CAPDU: 80 11 00 00 [11:35:59]Write to MH i2c: E2 08 00 BD 10 80 11 00 00 00 00 00 00 47 [11:35:59]Write i2c OK [11:35:59]MH_I2C_Read... [11:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:59]Read from MH i2c: E2 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 17 00 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 17 00 BD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9D [11:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:35:59]wFMCommunicate OK [11:35:59]requested_item fd.num is exist - process it [11:35:59]SAM_PROTO_GetFieldsCounters [11:35:59]wFMCommunicate request_size=4 [11:35:59]MH_SAM_APDU [11:35:59]CAPDU: 80 13 00 00 [11:35:59]Write to MH i2c: E2 08 00 BE 10 80 13 00 00 00 00 00 00 4A [11:35:59]Write i2c OK [11:35:59]MH_I2C_Read... [11:35:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:59]Read from MH i2c: E2 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 62 00 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 62 00 BE 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [11:35:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:59]wFMCommunicate OK [11:35:59]SAM_PROTO_GetFieldsCounters done [11:35:59]requested_item shift.num is exist - process it [11:35:59]requested_item shift.opened is exist - process it [11:35:59]req_shift_opened [11:35:59]FM_GetShiftState [11:35:59]SAM_PROTO_GetShiftState [11:35:59]wFMCommunicate request_size=4 [11:35:59]MH_SAM_APDU [11:35:59]CAPDU: 80 13 01 00 [11:35:59]Write to MH i2c: E2 08 00 BF 10 80 13 01 00 00 00 00 00 4C [11:35:59]Write i2c OK [11:35:59]MH_I2C_Read... [11:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:00]Read from MH i2c: E2 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 0E 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 0E 00 BF 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 96 [11:36:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:36:00]wFMCommunicate OK [11:36:00]SAM_PROTO_GetShiftState done [11:36:00]FM_GetShiftState done [11:36:00]req_shift_opened done [11:36:00]requested_item shift.open_date is exist - process it [11:36:00]req_shift_open_date [11:36:00]req_shift_open_date done [11:36:00]produce_requested_data done [11:36:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164175,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:36:00]process_action_free close_receipt [11:36:00]json_value_free [11:36:00]json_value_free done [11:36:00]process_json_proto returns [11:36:00]Send response to host [11:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164175,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:36:00]free response buf [11:36:00]execute_script done [11:36:00]execute_script returns [11:36:00]free content buf [11:36:00]Sock 7.Close socket [11:36:00]Sock 7.Thread stoped [11:36:02]accept exits with 9 [11:36:02]New connection [11:36:02]New thread 3066707300 created [11:36:02]Thread 3066850660 joined [11:36:02]Waiting for new connection... [11:36:02] Sock 9.Parse request [11:36:02]Sock 9.Check first char [11:36:02]Sock 9.First char is OK [11:36:02]request: POST /json_proto HTTP/1.0 [11:36:02]Method: POST [11:36:02]URL: /json_proto [11:36:02]Method is POST - this is cgi request [11:36:02]url: /json_proto [11:36:02]query_string will be loaded in cgi processing [11:36:02]execute_cgi json_proto POST (null) [11:36:02]execute_cgi path=json_proto method=POST [11:36:02]POST find Content-Length [11:36:02]Host: 172.17.56.4:8080 [11:36:02]Content-Length: 674 [11:36:02]Content-Type: application/json [11:36:02] [11:36:02]POST finish read [11:36:02]Found Content-Length = 674 [11:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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:36:02]execute_script... [11:36: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)458259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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:36:02]POST & json_proto [11:36:02]process_json_proto [11:36:02]json parsed OK: [11:36:02]protocol is kg_v1.0 [11:36:02]action value=close_receipt [11:36:02]process_action close_receipt [11:36:02]cmd_close_receipt [11:36:02]MH_GetDate [11:36:02]Write to MH i2c: F0 00 00 C0 10 BF [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: F0 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: F0 09 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: F0 09 00 C0 10 00 23 15 91 66 C9 DC B2 64 B2 [11:36:02]GetLastDocTimeStamp 1720784157 [11:36:02]current date 1720784163 [11:36:02]FM_GetShiftState [11:36:02]SAM_PROTO_GetShiftState [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 13 01 00 [11:36:02]Write to MH i2c: E2 08 00 C1 10 80 13 01 00 00 00 00 00 4E [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 0E 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 0E 00 C1 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 98 [11:36:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:36:02]wFMCommunicate OK [11:36:02]SAM_PROTO_GetShiftState done [11:36:02]FM_GetShiftState done [11:36:02]opened in 1720744654 [11:36:02]opened+sec_in_day 1720831054 [11:36:02]quantity*price = 30054 [11:36:02]sum+1 = 30055 [11:36:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 97 12.07.2024 11:36 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164176 ФПД: 155666492174307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T113603&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164176&fm=155666492174307&tin=02508201610067®Number=0000000000090829&sum=30000 [11:36:03]StoreToDocumentArchive [11:36:03]shift 445 fd 164176 [11:36:03]save to /storage/0445/doc_00164176 [11:36:03]save last doc name /storage/0445/doc_00164176 to /storage/kkm_last_doc_name [11:36:03]save OK [11:36:03]Clear old archive folders... [11:36:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:36:03]tlvbuf is 00A4DE40 [11:36:03]SAM_PROTO_ClearQueue [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 09 00 00 [11:36:03]Write to MH i2c: E2 08 00 CE 10 80 09 00 00 00 00 00 00 50 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 CE 10 00 90 00 52 [11:36:03]RAPDU: 90 00 [11:36:03]wFMCommunicate OK [11:36:03]SAM_PROTO_ClearQueue done [11:36:03]KKMCreateOFDPacket [11:36:03]OFDProtocolAddRootSTLVToBuf [11:36:03]FM_MakeSignedData [11:36:03]FM_MakeSignedData [11:36:03]SAM_PROTO_SignData [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 0D 01 02 [11:36:03]Write to MH i2c: E2 08 00 CF 10 80 0D 01 02 00 00 00 00 58 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 CF 10 00 90 00 53 [11:36:03]RAPDU: 90 00 [11:36:03]wFMCommunicate OK [11:36:03]wFMCommunicate request_size=255 [11:36:03]MH_SAM_APDU [11:36: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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 23 15 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 81 02 00 35 04 06 00 8D 93 ED F8 [11:36:03]Write to MH i2c: E2 02 01 D0 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 23 15 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 81 02 00 35 04 06 00 8D 93 ED F8 00 00 2B [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 D0 10 00 90 00 54 [11:36:03]RAPDU: 90 00 [11:36:03]wFMCommunicate OK [11:36:03]wFMCommunicate request_size=7 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 0D 02 02 02 2F E3 [11:36:03]Write to MH i2c: E2 0A 00 D1 10 80 0D 02 02 02 00 2F E3 00 00 71 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 D1 10 00 90 00 55 [11:36:03]RAPDU: 90 00 [11:36:03]wFMCommunicate OK [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 0D 03 02 [11:36:03]Write to MH i2c: E2 08 00 D2 10 80 0D 03 02 00 00 00 00 5D [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 0B 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 0B 00 D2 10 00 FB E6 FB DA 1D 43 EB E7 90 00 46 [11:36:03]RAPDU: FB E6 FB DA 1D 43 EB E7 90 00 [11:36:03]wFMCommunicate OK [11:36:03]SAM_PROTO_SignData done [11:36:03]FM_MakeSignedData done [11:36:03]CreateOFDProtocolMessage [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 11 00 00 [11:36:03]Write to MH i2c: E2 08 00 D3 10 80 11 00 00 00 00 00 00 5D [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 17 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 17 00 D3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [11:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:36:03]wFMCommunicate OK [11:36:03]CreateOFDProtocolMessage done [11:36:03]OFDSenderStorePacket 164176 [11:36:03]StoreOFDPacket docnum=164176 [11:36:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F5 DD 04 01 69 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 23 15 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 81 02 00 35 04 06 00 8D 93 ED F8 2F E3 FB E6 FB DA 1D 43 EB E7 [11:36:03]CheckFolder [11:36:03]dirname=/storage/ofd_packets [11:36:03]CheckFolder done [11:36:03]ProducePacketName [11:36:03]name=ofd_packets/00164176 [11:36:03]NVStorageSaveData ofd_packets/00164176 [11:36:03]File name is /storage/ofd_packets/00164176 [11:36:03]Write 298 bytes [11:36:03]NVStorageSaveData done [11:36:03]OFDSenderStorePacket done [11:36:03]KKMCreateOFDPacket done [11:36:03]NVStorageSaveData kkm_last_timestamp [11:36:03]File name is /storage/kkm_last_timestamp [11:36:03]Write 4 bytes [11:36:03]NVStorageSaveData done [11:36:03]ExternCall_PrintAddStr [11:36:03]wPrintStart [11:36:03]Write to MH i2c: 01 00 00 D4 10 E4 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 07 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 07 00 D4 10 00 00 00 00 00 FF 0F F9 [11:36:03]RasterBufferAndPrint [11:36:03]line Счет N : (1)458259 [11:36:03]line ИНН: 02508201610067 [11:36:03]line Контрольно-Кассовый Чек [11:36:03]line ПРОДАЖА [11:36:03]line ТРК (МРК, ГНК) : 11 [11:36:03]line Товар: 2710194210 [11:36:03]line ДТ-К-5 [11:36:03]line 4.180 * 71.90 [11:36:03]line = 300.54 [11:36:03]line НДС 12% НСП 1% [11:36:03]line > о реализуемом товаре [11:36:03]line ОКРУГЛЕНИЕ: -0.54 [11:36:03]line ИТОГО: 300.00 [11:36:03]line Внесено: 300.00 [11:36:03]line СДАЧА: 0.00 [11:36:03]line НСП 1% : 2.66 [11:36:03]line НДС 12% : 31.92 [11:36:03]line Наличными: 300.00 [11:36:03]line Безнал.: 0.00 [11:36:03]line Место: АЗС № 72 "Партнер Нефть" [11:36:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:36:03]line СНО: Общий режим [11:36:03]line Чек 97 12.07.2024 11:36 [11:36:03]line Смена: 445 ФФД: 1.0 [11:36:03]line ЗНМ: 0300000160 [11:36:03]line РНМ: 0000000000090829 [11:36:03]line Версия ККМ: 001 [11:36:03]line ФМ: 0000000000874718 [11:36:03]line ФД: 164176 [11:36:03]line ФПД: 155666492174307 [11:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T113603&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164176&fm=155666492174307&tin=02508201610067®Number=0000000000090829&sum=30000 [11:36:03]written 0, free lines is 4095 [11:36:03]OFD Sender: Processing packet 164176 [packets to send 104, broken 103] [11:36:03]ProducePacketName [11:36:03]name=ofd_packets/00164176 [11:36:03]OFD Sender: To server: pG, [11:36:03]CommunicateWithHost lk.salyk.kg:30040 [11:36:03]ConnectInit lk.salyk.kg [11:36:03]Connected sock=10 [11:36:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F5 DD 04 01 69 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 23 15 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 81 02 00 35 04 06 00 8D 93 ED F8 2F E3 FB E6 FB DA 1D 43 EB E7 [11:36:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2F F4 47 00 4F 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 34 37 31 38 10 04 04 00 50 81 02 00 F4 03 04 00 B7 BB 90 66 B6 04 01 00 00 30 6A 9C E8 66 D1 9D F1 [11:36:04]CommunicateWithHost err = 0 [11:36:04]CheckOFDResponse [11:36:04]1017 (14) - 77093643461234 [11:36:04]1041 (16) - 0000000000874718 [11:36:04]1040 (4) - 164176 [11:36:04]1012 (4) - 12.07.2024 05:14 [11:36:04]1206 (1) - 0 [11:36:04]OFD Sender: Remove packet 164176 [11:36:04]ProducePacketName [11:36:04]name=ofd_packets/00164176 [11:36:04]NVStorageDeleteData [11:36:04]Write to MH i2c: 01 00 00 FE 10 0E [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: 01 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: 01 07 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: 01 07 00 FE 10 00 00 00 00 00 EC 0C 0D [11:36:04]RasterBufferAndPrint [11:36:04]line [11:36:04]line [11:36:04]line [11:36:04]line [11:36:04]line [11:36:04]written 0, free lines is 3317 [11:36:04]MH_Cut [11:36:04]Write to MH i2c: D1 01 00 05 11 01 E8 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: D1 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: D1 01 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: D1 01 00 05 11 00 E7 [11:36:04]Write to MH i2c: 01 00 00 06 11 17 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]OFD Sender: No OFD packet to send [11:36:04]*** Cut start [11:36:04]*** Partial cut [11:36:04]*** CUTSNS_PIN = 1 [11:36:04]*** CUTSNS_PIN = 0 [11:36:05]*** Brake cut motor [11:36:05]Read from MH i2c: 01 [11:36:05]MH_I2C_Read... [11:36:05]*** Stop cut motor [11:36:05]*** Cut end [11:36:05]Read from MH i2c: 01 07 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: 01 07 00 06 11 00 00 00 00 00 FF 0F 2C [11:36:05]process_action close_receipt done [11:36:05]requested_data is exist [11:36:05]produce_requested_data [11:36:05]requested_item fm.sn is exist - process it [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 11 00 00 [11:36:05]Write to MH i2c: E2 08 00 07 11 80 11 00 00 00 00 00 00 92 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 17 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 17 00 07 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E8 [11:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:36:05]wFMCommunicate OK [11:36:05]requested_item fd.num is exist - process it [11:36:05]SAM_PROTO_GetFieldsCounters [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 13 00 00 [11:36:05]Write to MH i2c: E2 08 00 08 11 80 13 00 00 00 00 00 00 95 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 62 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 62 00 08 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [11:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:05]wFMCommunicate OK [11:36:05]SAM_PROTO_GetFieldsCounters done [11:36:05]requested_item shift.num is exist - process it [11:36:05]requested_item shift.opened is exist - process it [11:36:05]req_shift_opened [11:36:05]FM_GetShiftState [11:36:05]SAM_PROTO_GetShiftState [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 13 01 00 [11:36:05]Write to MH i2c: E2 08 00 09 11 80 13 01 00 00 00 00 00 97 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 0E 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 0E 00 09 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E1 [11:36:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:36:05]wFMCommunicate OK [11:36:05]SAM_PROTO_GetShiftState done [11:36:05]FM_GetShiftState done [11:36:05]req_shift_opened done [11:36:05]requested_item shift.open_date is exist - process it [11:36:05]req_shift_open_date [11:36:05]req_shift_open_date done [11:36:05]produce_requested_data done [11:36:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164176,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:36:05]process_action_free close_receipt [11:36:05]json_value_free [11:36:05]json_value_free done [11:36:05]process_json_proto returns [11:36:05]Send response to host [11:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164176,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:36:05]free response buf [11:36:05]execute_script done [11:36:05]execute_script returns [11:36:05]free content buf [11:36:05]Sock 9.Close socket [11:36:05]Sock 9.Thread stoped [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:27]accept exits with 7 [11:40:27]New connection [11:40:27]New thread 3066850660 created [11:40:27]Thread 3066707300 joined [11:40:27]Waiting for new connection... [11:40:27] Sock 7.Parse request [11:40:27]Sock 7.Check first char [11:40:27]Sock 7.First char is OK [11:40:27]request: POST /json_proto HTTP/1.0 [11:40:27]Method: POST [11:40:27]URL: /json_proto [11:40:27]Method is POST - this is cgi request [11:40:27]url: /json_proto [11:40:27]query_string will be loaded in cgi processing [11:40:27]execute_cgi json_proto POST (null) [11:40:27]execute_cgi path=json_proto method=POST [11:40:27]POST find Content-Length [11:40:27]Host: 172.17.56.4:8080 [11:40:27]Content-Length: 677 [11:40:27]Content-Type: application/json [11:40:27] [11:40:27]POST finish read [11:40:27]Found Content-Length = 677 [11:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:40:27]execute_script... [11:40: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)458260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:40:27]POST & json_proto [11:40:27]process_json_proto [11:40:27]json parsed OK: [11:40:27]protocol is kg_v1.0 [11:40:27]action value=close_receipt [11:40:27]process_action close_receipt [11:40:27]cmd_close_receipt [11:40:27]MH_GetDate [11:40:27]Write to MH i2c: F0 00 00 0A 11 0A [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: F0 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: F0 09 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: F0 09 00 0A 11 00 2C 16 91 66 C9 DC B2 64 07 [11:40:27]GetLastDocTimeStamp 1720784163 [11:40:27]current date 1720784428 [11:40:27]FM_GetShiftState [11:40:27]SAM_PROTO_GetShiftState [11:40:27]wFMCommunicate request_size=4 [11:40:27]MH_SAM_APDU [11:40:27]CAPDU: 80 13 01 00 [11:40:27]Write to MH i2c: E2 08 00 0B 11 80 13 01 00 00 00 00 00 99 [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:27]Read from MH i2c: E2 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 0E 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 0E 00 0B 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E3 [11:40:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:40:27]wFMCommunicate OK [11:40:27]SAM_PROTO_GetShiftState done [11:40:27]FM_GetShiftState done [11:40:27]opened in 1720744654 [11:40:27]opened+sec_in_day 1720831054 [11:40:27]quantity*price = 60009 [11:40:27]sum+1 = 60011 [11:40:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 98 12.07.2024 11:40 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164177 ФПД: 233960990416930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T114028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164177&fm=233960990416930&tin=02508201610067®Number=0000000000090829&sum=60000 [11:40:28]StoreToDocumentArchive [11:40:28]shift 445 fd 164177 [11:40:28]save to /storage/0445/doc_00164177 [11:40:28]save last doc name /storage/0445/doc_00164177 to /storage/kkm_last_doc_name [11:40:28]save OK [11:40:28]Clear old archive folders... [11:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:28]tlvbuf is 00A44FD0 [11:40:28]SAM_PROTO_ClearQueue [11:40:28]wFMCommunicate request_size=4 [11:40:28]MH_SAM_APDU [11:40:28]CAPDU: 80 09 00 00 [11:40:28]Write to MH i2c: E2 08 00 18 11 80 09 00 00 00 00 00 00 9B [11:40:28]Write i2c OK [11:40:28]MH_I2C_Read... [11:40:28]*** iso7816_exchange 80 09 00 00... 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 18 11 00 90 00 9D [11:40:28]RAPDU: 90 00 [11:40:28]wFMCommunicate OK [11:40:28]SAM_PROTO_ClearQueue done [11:40:28]KKMCreateOFDPacket [11:40:28]OFDProtocolAddRootSTLVToBuf [11:40:28]FM_MakeSignedData [11:40:28]FM_MakeSignedData [11:40:28]SAM_PROTO_SignData [11:40:28]wFMCommunicate request_size=4 [11:40:28]MH_SAM_APDU [11:40:28]CAPDU: 80 0D 01 02 [11:40:28]Write to MH i2c: E2 08 00 19 11 80 0D 01 02 00 00 00 00 A3 [11:40:28]Write i2c OK [11:40:28]MH_I2C_Read... [11:40:28]*** iso7816_exchange 80 0D 01 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 19 11 00 90 00 9E [11:40:28]RAPDU: 90 00 [11:40:28]wFMCommunicate OK [11:40:28]wFMCommunicate request_size=255 [11:40:28]MH_SAM_APDU [11:40: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 62 00 00 00 F4 03 04 00 2C 16 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 81 02 00 35 04 06 00 D4 [11:40:28]Write to MH i2c: E2 02 01 1A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 62 00 00 00 F4 03 04 00 2C 16 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 81 02 00 35 04 06 00 D4 00 00 3E [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 1A 11 00 90 00 9F [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 C9 49 B9 A0 22 [11:40:28]Write to MH i2c: E2 0D 00 1B 11 80 0D 02 02 05 00 C9 49 B9 A0 22 00 00 3D [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 1B 11 00 90 00 A0 [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 1C 11 80 0D 03 02 00 00 00 00 A8 [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 1C 11 00 B0 58 DA F6 20 FA E0 4A 90 00 C5 [11:40:28]RAPDU: B0 58 DA F6 20 FA E0 4A 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 1D 11 80 11 00 00 00 00 00 00 A8 [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 1D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [11:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:40:28]wFMCommunicate OK [11:40:28]CreateOFDProtocolMessage done [11:40:28]OFDSenderStorePacket 164177 [11:40:28]StoreOFDPacket docnum=164177 [11:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 64 F4 07 01 C5 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 62 00 00 00 F4 03 04 00 2C 16 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 81 02 00 35 04 06 00 D4 C9 49 B9 A0 22 B0 58 DA F6 20 FA E0 4A [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/00164177 [11:40:28]NVStorageSaveData ofd_packets/00164177 [11:40:28]File name is /storage/ofd_packets/00164177 [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 1E 11 2F [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 1E 11 00 00 00 00 00 FF 0F 44 [11:40:28]RasterBufferAndPrint [11:40:28]line Счет N : (1)458260 [11:40:28]line ИНН: 02508201610067 [11:40:28]line Контрольно-Кассовый Чек [11:40:28]line ПРОДАЖА [11:40:28]line ТРК (МРК, ГНК) : 22 [11:40:28]line Товар: 2710124130 [11:40:28]line Аи-92-К-5 [11:40:28]line 9.120 * 65.80 [11:40:28]line = 600.10 [11:40:28]line НДС 12% НСП 1% [11:40:28]line > о реализуемом товаре [11:40:28]line ОКРУГЛЕНИЕ: -0.10 [11:40:28]line ИТОГО: 600.00 [11:40:28]line Внесено: 600.00 [11:40:28]line СДАЧА: 0.00 [11:40:28]line НСП 1% : 5.31 [11:40:28]line НДС 12% : 63.73 [11:40:28]line Наличными: 600.00 [11:40:28]line Безнал.: 0.00 [11:40:28]line Место: АЗС № 72 "Партнер Нефть" [11:40:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:40:28]line СНО: Общий режим [11:40:28]line Чек 98 12.07.2024 11:40 [11:40:28]line Смена: 445 ФФД: 1.0 [11:40:28]line ЗНМ: 0300000160 [11:40:28]line РНМ: 0000000000090829 [11:40:28]line Версия ККМ: 001 [11:40:28]line ФМ: 0000000000874718 [11:40:28]line ФД: 164177 [11:40:28]line ФПД: 233960990416930 [11:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T114028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164177&fm=233960990416930&tin=02508201610067®Number=0000000000090829&sum=60000 [11:40:29]OFD Sender: Processing packet 164177 [packets to send 104, broken 103] [11:40:29]ProducePacketName [11:40:29]name=ofd_packets/00164177 [11:40:29]OFD Sender: To server: pG, [11:40:29]CommunicateWithHost lk.salyk.kg:30040 [11:40:29]ConnectInit lk.salyk.kg [11:40:29]written 0, free lines is 4095 [11:40:29]Connected sock=10 [11:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 64 F4 07 01 C5 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 62 00 00 00 F4 03 04 00 2C 16 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 81 02 00 35 04 06 00 D4 C9 49 B9 A0 22 B0 58 DA F6 20 FA E0 4A [11:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5D 38 47 00 0C 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 34 37 31 38 10 04 04 00 51 81 02 00 F4 03 04 00 C0 BC 90 66 B6 04 01 00 00 A5 71 10 F2 93 20 B1 35 [11:40:29]CommunicateWithHost err = 0 [11:40:29]CheckOFDResponse [11:40:29]1017 (14) - 77093643461234 [11:40:29]1041 (16) - 0000000000874718 [11:40:29]1040 (4) - 164177 [11:40:29]1012 (4) - 12.07.2024 05:18 [11:40:29]1206 (1) - 0 [11:40:29]OFD Sender: Remove packet 164177 [11:40:29]ProducePacketName [11:40:29]name=ofd_packets/00164177 [11:40:29]NVStorageDeleteData [11:40:29]Write to MH i2c: 01 00 00 48 11 59 [11:40:29]Write i2c OK [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: 01 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: 01 07 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: 01 07 00 48 11 00 00 00 00 00 F5 0C 61 [11:40:29]RasterBufferAndPrint [11:40:29]line [11:40:29]line [11:40:29]line [11:40:29]line [11:40:29]line [11:40:29]written 0, free lines is 3323 [11:40:29]MH_Cut [11:40:29]Write to MH i2c: D1 01 00 4F 11 01 32 [11:40:29]Write i2c OK [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: D1 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: D1 01 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: D1 01 00 4F 11 00 31 [11:40:29]Write to MH i2c: 01 00 00 50 11 61 [11:40:29]Write i2c OK [11:40:29]MH_I2C_Read... [11:40:30]OFD Sender: No OFD packet to send [11:40:30]*** Cut start [11:40:30]*** Partial cut [11:40:30]*** CUTSNS_PIN = 1 [11:40:30]*** 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 50 11 00 00 00 00 00 FF 0F 76 [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 51 11 80 11 00 00 00 00 00 00 DC [11:40:30]Write i2c OK [11:40:30]MH_I2C_Read... [11:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:31]Read from MH i2c: E2 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 17 00 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 17 00 51 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 32 [11:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:40:31]wFMCommunicate OK [11:40:31]requested_item fd.num is exist - process it [11:40:31]SAM_PROTO_GetFieldsCounters [11:40:31]wFMCommunicate request_size=4 [11:40:31]MH_SAM_APDU [11:40:31]CAPDU: 80 13 00 00 [11:40:31]Write to MH i2c: E2 08 00 52 11 80 13 00 00 00 00 00 00 DF [11:40:31]Write i2c OK [11:40:31]MH_I2C_Read... [11:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:31]Read from MH i2c: E2 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 62 00 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 62 00 52 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [11:40: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:31]wFMCommunicate OK [11:40:31]SAM_PROTO_GetFieldsCounters done [11:40:31]requested_item shift.num is exist - process it [11:40:31]requested_item shift.opened is exist - process it [11:40:31]req_shift_opened [11:40:31]FM_GetShiftState [11:40:31]SAM_PROTO_GetShiftState [11:40:31]wFMCommunicate request_size=4 [11:40:31]MH_SAM_APDU [11:40:31]CAPDU: 80 13 01 00 [11:40:31]Write to MH i2c: E2 08 00 53 11 80 13 01 00 00 00 00 00 E1 [11:40:31]Write i2c OK [11:40:31]MH_I2C_Read... [11:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:31]Read from MH i2c: E2 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 0E 00 [11:40:31]MH_I2C_Read... [11:40:31]Read from MH i2c: E2 0E 00 53 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2B [11:40:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:40:31]wFMCommunicate OK [11:40:31]SAM_PROTO_GetShiftState done [11:40:31]FM_GetShiftState done [11:40:31]req_shift_opened done [11:40:31]requested_item shift.open_date is exist - process it [11:40:31]req_shift_open_date [11:40:31]req_shift_open_date done [11:40:31]produce_requested_data done [11:40:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164177,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:40:31]process_action_free close_receipt [11:40:31]json_value_free [11:40:31]json_value_free done [11:40:31]process_json_proto returns [11:40:31]Send response to host [11:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164177,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:40:31]free response buf [11:40:31]execute_script done [11:40:31]execute_script returns [11:40:31]free content buf [11:40:31]Sock 7.Close socket [11:40:31]Sock 7.Thread stoped [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:23]accept exits with 9 [11:46:23]New connection [11:46:23]New thread 3066707300 created [11:46:23]Thread 3066850660 joined [11:46:23]Waiting for new connection... [11:46:23] Sock 9.Parse request [11:46:23]Sock 9.Check first char [11:46:23]Sock 9.First char is OK [11:46:23]request: POST /json_proto HTTP/1.0 [11:46:23]Method: POST [11:46:23]URL: /json_proto [11:46:23]Method is POST - this is cgi request [11:46:23]url: /json_proto [11:46:23]query_string will be loaded in cgi processing [11:46:23]execute_cgi json_proto POST (null) [11:46:23]execute_cgi path=json_proto method=POST [11:46:23]POST find Content-Length [11:46:23]Host: 172.17.56.4:8080 [11:46:23]Content-Length: 677 [11:46:23]Content-Type: application/json [11:46:23] [11:46:23]POST finish read [11:46:23]Found Content-Length = 677 [11:46:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:23]execute_script... [11:46: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)458261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:23]POST & json_proto [11:46:23]process_json_proto [11:46:23]json parsed OK: [11:46:23]protocol is kg_v1.0 [11:46:23]action value=close_receipt [11:46:23]process_action close_receipt [11:46:23]cmd_close_receipt [11:46:23]MH_GetDate [11:46:23]Write to MH i2c: F0 00 00 54 11 54 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: F0 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: F0 09 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: F0 09 00 54 11 00 90 17 91 66 C9 DC B2 64 B6 [11:46:23]GetLastDocTimeStamp 1720784428 [11:46:23]current date 1720784784 [11:46:23]FM_GetShiftState [11:46:23]SAM_PROTO_GetShiftState [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 13 01 00 [11:46:23]Write to MH i2c: E2 08 00 55 11 80 13 01 00 00 00 00 00 E3 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0E 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0E 00 55 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2D [11:46:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:46:23]wFMCommunicate OK [11:46:23]SAM_PROTO_GetShiftState done [11:46:23]FM_GetShiftState done [11:46:23]opened in 1720744654 [11:46:23]opened+sec_in_day 1720831054 [11:46:23]quantity*price = 35005 [11:46:23]sum+1 = 35007 [11:46:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 99 12.07.2024 11:46 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164178 ФПД: 67171928861016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T114624&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164178&fm=67171928861016&tin=02508201610067®Number=0000000000090829&sum=35000 [11:46:24]StoreToDocumentArchive [11:46:24]shift 445 fd 164178 [11:46:24]save to /storage/0445/doc_00164178 [11:46:24]save last doc name /storage/0445/doc_00164178 to /storage/kkm_last_doc_name [11:46:24]save OK [11:46:24]Clear old archive folders... [11:46:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:24]tlvbuf is 009F1BC0 [11:46:24]SAM_PROTO_ClearQueue [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 09 00 00 [11:46:24]Write to MH i2c: E2 08 00 62 11 80 09 00 00 00 00 00 00 E5 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 62 11 00 90 00 E7 [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]SAM_PROTO_ClearQueue done [11:46:24]KKMCreateOFDPacket [11:46:24]OFDProtocolAddRootSTLVToBuf [11:46:24]FM_MakeSignedData [11:46:24]FM_MakeSignedData [11:46:24]SAM_PROTO_SignData [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 0D 01 02 [11:46:24]Write to MH i2c: E2 08 00 63 11 80 0D 01 02 00 00 00 00 ED [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 63 11 00 90 00 E8 [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]wFMCommunicate request_size=255 [11:46:24]MH_SAM_APDU [11:46: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 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 90 17 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 81 02 00 35 04 06 00 3D [11:46:24]Write to MH i2c: E2 02 01 64 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 90 17 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 81 02 00 35 04 06 00 3D 00 00 07 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 64 11 00 90 00 E9 [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]wFMCommunicate request_size=10 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 0D 02 02 05 17 AE F5 69 58 [11:46:24]Write to MH i2c: E2 0D 00 65 11 80 0D 02 02 05 00 17 AE F5 69 58 00 00 75 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 65 11 00 90 00 EA [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 0D 03 02 [11:46:24]Write to MH i2c: E2 08 00 66 11 80 0D 03 02 00 00 00 00 F2 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:25]Read from MH i2c: E2 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 0B 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 0B 00 66 11 00 9F 9B 06 33 71 B1 2E 05 90 00 BB [11:46:25]RAPDU: 9F 9B 06 33 71 B1 2E 05 90 00 [11:46:25]wFMCommunicate OK [11:46:25]SAM_PROTO_SignData done [11:46:25]FM_MakeSignedData done [11:46:25]CreateOFDProtocolMessage [11:46:25]wFMCommunicate request_size=4 [11:46:25]MH_SAM_APDU [11:46:25]CAPDU: 80 11 00 00 [11:46:25]Write to MH i2c: E2 08 00 67 11 80 11 00 00 00 00 00 00 F2 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:25]Read from MH i2c: E2 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 17 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 17 00 67 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 48 [11:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:46:25]wFMCommunicate OK [11:46:25]CreateOFDProtocolMessage done [11:46:25]OFDSenderStorePacket 164178 [11:46:25]StoreOFDPacket docnum=164178 [11:46:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 0C 07 01 2D D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 90 17 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 81 02 00 35 04 06 00 3D 17 AE F5 69 58 9F 9B 06 33 71 B1 2E 05 [11:46:25]CheckFolder [11:46:25]dirname=/storage/ofd_packets [11:46:25]CheckFolder done [11:46:25]ProducePacketName [11:46:25]name=ofd_packets/00164178 [11:46:25]NVStorageSaveData ofd_packets/00164178 [11:46:25]File name is /storage/ofd_packets/00164178 [11:46:25]Write 301 bytes [11:46:25]NVStorageSaveData done [11:46:25]OFDSenderStorePacket done [11:46:25]KKMCreateOFDPacket done [11:46:25]NVStorageSaveData kkm_last_timestamp [11:46:25]File name is /storage/kkm_last_timestamp [11:46:25]Write 4 bytes [11:46:25]NVStorageSaveData done [11:46:25]ExternCall_PrintAddStr [11:46:25]wPrintStart [11:46:25]Write to MH i2c: 01 00 00 68 11 79 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 68 11 00 00 00 00 00 FF 0F 8E [11:46:25]RasterBufferAndPrint [11:46:25]line Счет N : (1)458261 [11:46:25]line ИНН: 02508201610067 [11:46:25]line Контрольно-Кассовый Чек [11:46:25]line ПРОДАЖА [11:46:25]line ТРК (МРК, ГНК) : 12 [11:46:25]line Товар: 2710124130 [11:46:25]line Аи-92-К-5 [11:46:25]line 5.320 * 65.80 [11:46:25]line = 350.06 [11:46:25]line НДС 12% НСП 1% [11:46:25]line > о реализуемом товаре [11:46:25]line ОКРУГЛЕНИЕ: -0.06 [11:46:25]line ИТОГО: 350.00 [11:46:25]line Внесено: 350.00 [11:46:25]line СДАЧА: 0.00 [11:46:25]line НСП 1% : 3.10 [11:46:25]line НДС 12% : 37.17 [11:46:25]line Наличными: 350.00 [11:46:25]line Безнал.: 0.00 [11:46:25]line Место: АЗС № 72 "Партнер Нефть" [11:46:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:46:25]line СНО: Общий режим [11:46:25]line Чек 99 12.07.2024 11:46 [11:46:25]line Смена: 445 ФФД: 1.0 [11:46:25]line ЗНМ: 0300000160 [11:46:25]line РНМ: 0000000000090829 [11:46:25]line Версия ККМ: 001 [11:46:25]line ФМ: 0000000000874718 [11:46:25]line ФД: 164178 [11:46:25]line ФПД: 67171928861016 [11:46:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T114624&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164178&fm=67171928861016&tin=02508201610067®Number=0000000000090829&sum=35000 [11:46:25]written 0, free lines is 4095 [11:46:25]OFD Sender: Processing packet 164178 [packets to send 104, broken 103] [11:46:25]ProducePacketName [11:46:25]name=ofd_packets/00164178 [11:46:25]OFD Sender: To server: pG, [11:46:25]CommunicateWithHost lk.salyk.kg:30040 [11:46:25]ConnectInit lk.salyk.kg [11:46:25]Connected sock=10 [11:46:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 0C 07 01 2D D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 90 17 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 81 02 00 35 04 06 00 3D 17 AE F5 69 58 9F 9B 06 33 71 B1 2E 05 [11:46:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EF DC 47 00 28 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 34 37 31 38 10 04 04 00 52 81 02 00 F4 03 04 00 24 BE 90 66 B6 04 01 00 00 39 42 51 21 71 C3 DA 3C [11:46:25]CommunicateWithHost err = 0 [11:46:25]CheckOFDResponse [11:46:25]1017 (14) - 77093643461234 [11:46:25]1041 (16) - 0000000000874718 [11:46:25]1040 (4) - 164178 [11:46:25]1012 (4) - 12.07.2024 05:24 [11:46:25]1206 (1) - 0 [11:46:25]OFD Sender: Remove packet 164178 [11:46:25]ProducePacketName [11:46:25]name=ofd_packets/00164178 [11:46:25]NVStorageDeleteData [11:46:25]Write to MH i2c: 01 00 00 92 11 A3 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 92 11 00 00 00 00 00 F2 0C A8 [11:46:25]RasterBufferAndPrint [11:46:25]line [11:46:25]line [11:46:25]line [11:46:25]line [11:46:25]line [11:46:25]written 0, free lines is 3320 [11:46:25]MH_Cut [11:46:25]Write to MH i2c: D1 01 00 99 11 01 7C [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: D1 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: D1 01 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: D1 01 00 99 11 00 7B [11:46:25]Write to MH i2c: 01 00 00 9A 11 AB [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:26]OFD Sender: No OFD packet to send [11:46:26]*** Cut start [11:46:26]*** Partial cut [11:46:26]*** CUTSNS_PIN = 1 [11:46:26]*** CUTSNS_PIN = 0 [11:46:26]*** Brake cut motor [11:46:27]Read from MH i2c: 01 [11:46:27]MH_I2C_Read... [11:46:27]*** Stop cut motor [11:46:27]*** Cut end [11:46:27]Read from MH i2c: 01 07 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: 01 07 00 9A 11 00 00 00 00 00 FF 0F C0 [11:46:27]process_action close_receipt done [11:46:27]requested_data is exist [11:46:27]produce_requested_data [11:46:27]requested_item fm.sn is exist - process it [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 11 00 00 [11:46:27]Write to MH i2c: E2 08 00 9B 11 80 11 00 00 00 00 00 00 26 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 17 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 17 00 9B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7C [11:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:46:27]wFMCommunicate OK [11:46:27]requested_item fd.num is exist - process it [11:46:27]SAM_PROTO_GetFieldsCounters [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 13 00 00 [11:46:27]Write to MH i2c: E2 08 00 9C 11 80 13 00 00 00 00 00 00 29 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 62 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 62 00 9C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [11:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:27]wFMCommunicate OK [11:46:27]SAM_PROTO_GetFieldsCounters done [11:46:27]requested_item shift.num is exist - process it [11:46:27]requested_item shift.opened is exist - process it [11:46:27]req_shift_opened [11:46:27]FM_GetShiftState [11:46:27]SAM_PROTO_GetShiftState [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 13 01 00 [11:46:27]Write to MH i2c: E2 08 00 9D 11 80 13 01 00 00 00 00 00 2B [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 9D 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 75 [11:46:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:46:27]wFMCommunicate OK [11:46:27]SAM_PROTO_GetShiftState done [11:46:27]FM_GetShiftState done [11:46:27]req_shift_opened done [11:46:27]requested_item shift.open_date is exist - process it [11:46:27]req_shift_open_date [11:46:27]req_shift_open_date done [11:46:27]produce_requested_data done [11:46:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164178,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:46:27]process_action_free close_receipt [11:46:27]json_value_free [11:46:27]json_value_free done [11:46:27]process_json_proto returns [11:46:27]Send response to host [11:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164178,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:46:27]free response buf [11:46:27]execute_script done [11:46:27]execute_script returns [11:46:27]free content buf [11:46:27]Sock 9.Close socket [11:46:27]Sock 9.Thread stoped [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:40]accept exits with 7 [11:46:40]New connection [11:46:40]New thread 3066850660 created [11:46:40]Thread 3066707300 joined [11:46:40]Waiting for new connection... [11:46:40] Sock 7.Parse request [11:46:40]Sock 7.Check first char [11:46:40]Sock 7.First char is OK [11:46:40]request: POST /json_proto HTTP/1.0 [11:46:40]Method: POST [11:46:40]URL: /json_proto [11:46:40]Method is POST - this is cgi request [11:46:40]url: /json_proto [11:46:40]query_string will be loaded in cgi processing [11:46:40]execute_cgi json_proto POST (null) [11:46:40]execute_cgi path=json_proto method=POST [11:46:40]POST find Content-Length [11:46:40]Host: 172.17.56.4:8080 [11:46:40]Content-Length: 677 [11:46:40]Content-Type: application/json [11:46:40] [11:46:40]POST finish read [11:46:40]Found Content-Length = 677 [11:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:46:40]execute_script... [11:46:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:46:40]POST & json_proto [11:46:40]process_json_proto [11:46:40]json parsed OK: [11:46:40]protocol is kg_v1.0 [11:46:40]action value=close_receipt [11:46:40]process_action close_receipt [11:46:40]cmd_close_receipt [11:46:40]MH_GetDate [11:46:40]Write to MH i2c: F0 00 00 9E 11 9E [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: F0 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: F0 09 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: F0 09 00 9E 11 00 A1 17 91 66 C9 DC B2 64 11 [11:46:40]GetLastDocTimeStamp 1720784784 [11:46:40]current date 1720784801 [11:46:40]FM_GetShiftState [11:46:40]SAM_PROTO_GetShiftState [11:46:40]wFMCommunicate request_size=4 [11:46:40]MH_SAM_APDU [11:46:40]CAPDU: 80 13 01 00 [11:46:40]Write to MH i2c: E2 08 00 9F 11 80 13 01 00 00 00 00 00 2D [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 0E 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 0E 00 9F 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 77 [11:46:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:46:40]wFMCommunicate OK [11:46:40]SAM_PROTO_GetShiftState done [11:46:40]FM_GetShiftState done [11:46:40]opened in 1720744654 [11:46:40]opened+sec_in_day 1720831054 [11:46:40]quantity*price = 30004 [11:46:40]sum+1 = 30006 [11:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 100 12.07.2024 11:46 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164179 ФПД: 54723664122308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T114641&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164179&fm=54723664122308&tin=02508201610067®Number=0000000000090829&sum=30000 [11:46:41]StoreToDocumentArchive [11:46:41]shift 445 fd 164179 [11:46:41]save to /storage/0445/doc_00164179 [11:46:41]save last doc name /storage/0445/doc_00164179 to /storage/kkm_last_doc_name [11:46:41]save OK [11:46:41]Clear old archive folders... [11:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:41]tlvbuf is 00A44530 [11:46:41]SAM_PROTO_ClearQueue [11:46:41]wFMCommunicate request_size=4 [11:46:41]MH_SAM_APDU [11:46:41]CAPDU: 80 09 00 00 [11:46:41]Write to MH i2c: E2 08 00 AC 11 80 09 00 00 00 00 00 00 2F [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:42]Read from MH i2c: E2 03 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 03 00 AC 11 00 90 00 31 [11:46:42]RAPDU: 90 00 [11:46:42]wFMCommunicate OK [11:46:42]SAM_PROTO_ClearQueue done [11:46:42]KKMCreateOFDPacket [11:46:42]OFDProtocolAddRootSTLVToBuf [11:46:42]FM_MakeSignedData [11:46:42]FM_MakeSignedData [11:46:42]SAM_PROTO_SignData [11:46:42]wFMCommunicate request_size=4 [11:46:42]MH_SAM_APDU [11:46:42]CAPDU: 80 0D 01 02 [11:46:42]Write to MH i2c: E2 08 00 AD 11 80 0D 01 02 00 00 00 00 37 [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 03 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 03 00 AD 11 00 90 00 32 [11:46:42]RAPDU: 90 00 [11:46:42]wFMCommunicate OK [11:46:42]wFMCommunicate request_size=255 [11:46:42]MH_SAM_APDU [11:46: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 A1 17 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 81 02 00 35 04 06 00 31 [11:46:42]Write to MH i2c: E2 02 01 AE 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 A1 17 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 81 02 00 35 04 06 00 31 00 00 49 [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 03 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 03 00 AE 11 00 90 00 33 [11:46:42]RAPDU: 90 00 [11:46:42]wFMCommunicate OK [11:46:42]wFMCommunicate request_size=10 [11:46:42]MH_SAM_APDU [11:46:42]CAPDU: 80 0D 02 02 05 C5 58 8F 91 C4 [11:46:42]Write to MH i2c: E2 0D 00 AF 11 80 0D 02 02 05 00 C5 58 8F 91 C4 00 00 45 [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 03 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 03 00 AF 11 00 90 00 34 [11:46:42]RAPDU: 90 00 [11:46:42]wFMCommunicate OK [11:46:42]wFMCommunicate request_size=4 [11:46:42]MH_SAM_APDU [11:46:42]CAPDU: 80 0D 03 02 [11:46:42]Write to MH i2c: E2 08 00 B0 11 80 0D 03 02 00 00 00 00 3C [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 0B 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 0B 00 B0 11 00 1B B9 62 83 47 84 70 5E 90 00 8F [11:46:42]RAPDU: 1B B9 62 83 47 84 70 5E 90 00 [11:46:42]wFMCommunicate OK [11:46:42]SAM_PROTO_SignData done [11:46:42]FM_MakeSignedData done [11:46:42]CreateOFDProtocolMessage [11:46:42]wFMCommunicate request_size=4 [11:46:42]MH_SAM_APDU [11:46:42]CAPDU: 80 11 00 00 [11:46:42]Write to MH i2c: E2 08 00 B1 11 80 11 00 00 00 00 00 00 3C [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 17 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 17 00 B1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 92 [11:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:46:42]wFMCommunicate OK [11:46:42]CreateOFDProtocolMessage done [11:46:42]OFDSenderStorePacket 164179 [11:46:42]StoreOFDPacket docnum=164179 [11:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 0F 07 01 A4 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 A1 17 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 81 02 00 35 04 06 00 31 C5 58 8F 91 C4 1B B9 62 83 47 84 70 5E [11:46:42]CheckFolder [11:46:42]dirname=/storage/ofd_packets [11:46:42]CheckFolder done [11:46:42]ProducePacketName [11:46:42]name=ofd_packets/00164179 [11:46:42]NVStorageSaveData ofd_packets/00164179 [11:46:42]File name is /storage/ofd_packets/00164179 [11:46:42]Write 301 bytes [11:46:42]NVStorageSaveData done [11:46:42]OFDSenderStorePacket done [11:46:42]KKMCreateOFDPacket done [11:46:42]NVStorageSaveData kkm_last_timestamp [11:46:42]File name is /storage/kkm_last_timestamp [11:46:42]Write 4 bytes [11:46:42]NVStorageSaveData done [11:46:42]ExternCall_PrintAddStr [11:46:42]wPrintStart [11:46:42]Write to MH i2c: 01 00 00 B2 11 C3 [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: 01 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: 01 07 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: 01 07 00 B2 11 00 00 00 00 00 FF 0F D8 [11:46:42]RasterBufferAndPrint [11:46:42]line Счет N : (1)458262 [11:46:42]line ИНН: 02508201610067 [11:46:42]line Контрольно-Кассовый Чек [11:46:42]line ПРОДАЖА [11:46:42]line ТРК (МРК, ГНК) : 22 [11:46:42]line Товар: 2710124130 [11:46:42]line Аи-92-К-5 [11:46:42]line 4.560 * 65.80 [11:46:42]line = 300.05 [11:46:42]line НДС 12% НСП 1% [11:46:42]line > о реализуемом товаре [11:46:42]line ОКРУГЛЕНИЕ: -0.05 [11:46:42]line ИТОГО: 300.00 [11:46:42]line Внесено: 300.00 [11:46:42]line СДАЧА: 0.00 [11:46:42]line НСП 1% : 2.65 [11:46:42]line НДС 12% : 31.86 [11:46:42]line Наличными: 300.00 [11:46:42]line Безнал.: 0.00 [11:46:42]line Место: АЗС № 72 "Партнер Нефть" [11:46:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:46:42]line СНО: Общий режим [11:46:42]line Чек 100 12.07.2024 11:46 [11:46:42]line Смена: 445 ФФД: 1.0 [11:46:42]line ЗНМ: 0300000160 [11:46:42]line РНМ: 0000000000090829 [11:46:42]line Версия ККМ: 001 [11:46:42]line ФМ: 0000000000874718 [11:46:42]line ФД: 164179 [11:46:42]line ФПД: 54723664122308 [11:46:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T114641&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164179&fm=54723664122308&tin=02508201610067®Number=0000000000090829&sum=30000 [11:46:42]OFD Sender: Processing packet 164179 [packets to send 104, broken 103] [11:46:42]ProducePacketName [11:46:42]name=ofd_packets/00164179 [11:46:42]OFD Sender: To server: pG, [11:46:42]CommunicateWithHost lk.salyk.kg:30040 [11:46:42]ConnectInit lk.salyk.kg [11:46:42]written 0, free lines is 4095 [11:46:42]Connected sock=10 [11:46:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 0F 07 01 A4 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 A1 17 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 81 02 00 35 04 06 00 31 C5 58 8F 91 C4 1B B9 62 83 47 84 70 5E [11:46:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F5 44 47 00 33 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 34 37 31 38 10 04 04 00 53 81 02 00 F4 03 04 00 36 BE 90 66 B6 04 01 00 00 98 58 EF AA 10 47 25 B2 [11:46:43]CommunicateWithHost err = 0 [11:46:43]CheckOFDResponse [11:46:43]1017 (14) - 77093643461234 [11:46:43]1041 (16) - 0000000000874718 [11:46:43]1040 (4) - 164179 [11:46:43]1012 (4) - 12.07.2024 05:25 [11:46:43]1206 (1) - 0 [11:46:43]OFD Sender: Remove packet 164179 [11:46:43]ProducePacketName [11:46:43]name=ofd_packets/00164179 [11:46:43]NVStorageDeleteData [11:46:43]Write to MH i2c: 01 00 00 DC 11 ED [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: 01 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: 01 07 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: 01 07 00 DC 11 00 00 00 00 00 02 0D 03 [11:46:43]RasterBufferAndPrint [11:46:43]line [11:46:43]line [11:46:43]line [11:46:43]line [11:46:43]line [11:46:43]written 0, free lines is 3336 [11:46:43]MH_Cut [11:46:43]Write to MH i2c: D1 01 00 E3 11 01 C6 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: D1 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: D1 01 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: D1 01 00 E3 11 00 C5 [11:46:43]Write to MH i2c: 01 00 00 E4 11 F5 [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:43]OFD Sender: No OFD packet to send [11:46:43]*** Cut start [11:46:43]*** Partial cut [11:46:43]*** CUTSNS_PIN = 1 [11:46:43]*** CUTSNS_PIN = 0 [11:46:44]*** Brake cut motor [11:46:44]Read from MH i2c: 01 [11:46:44]MH_I2C_Read... [11:46:44]*** Stop cut motor [11:46:44]*** Cut end [11:46:44]Read from MH i2c: 01 07 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: 01 07 00 E4 11 00 00 00 00 00 FF 0F 0A [11:46:44]process_action close_receipt done [11:46:44]requested_data is exist [11:46:44]produce_requested_data [11:46:44]requested_item fm.sn is exist - process it [11:46:44]wFMCommunicate request_size=4 [11:46:44]MH_SAM_APDU [11:46:44]CAPDU: 80 11 00 00 [11:46:44]Write to MH i2c: E2 08 00 E5 11 80 11 00 00 00 00 00 00 70 [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:44]Read from MH i2c: E2 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 17 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 17 00 E5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C6 [11:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:46:44]wFMCommunicate OK [11:46:44]requested_item fd.num is exist - process it [11:46:44]SAM_PROTO_GetFieldsCounters [11:46:44]wFMCommunicate request_size=4 [11:46:44]MH_SAM_APDU [11:46:44]CAPDU: 80 13 00 00 [11:46:44]Write to MH i2c: E2 08 00 E6 11 80 13 00 00 00 00 00 00 73 [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:44]Read from MH i2c: E2 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 62 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 62 00 E6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:44]wFMCommunicate OK [11:46:44]SAM_PROTO_GetFieldsCounters done [11:46:44]requested_item shift.num is exist - process it [11:46:44]requested_item shift.opened is exist - process it [11:46:44]req_shift_opened [11:46:44]FM_GetShiftState [11:46:44]SAM_PROTO_GetShiftState [11:46:44]wFMCommunicate request_size=4 [11:46:44]MH_SAM_APDU [11:46:44]CAPDU: 80 13 01 00 [11:46:44]Write to MH i2c: E2 08 00 E7 11 80 13 01 00 00 00 00 00 75 [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:44]Read from MH i2c: E2 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 0E 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 0E 00 E7 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BF [11:46:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:46:44]wFMCommunicate OK [11:46:44]SAM_PROTO_GetShiftState done [11:46:44]FM_GetShiftState done [11:46:44]req_shift_opened done [11:46:44]requested_item shift.open_date is exist - process it [11:46:44]req_shift_open_date [11:46:44]req_shift_open_date done [11:46:44]produce_requested_data done [11:46:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164179,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:46:44]process_action_free close_receipt [11:46:44]json_value_free [11:46:44]json_value_free done [11:46:44]process_json_proto returns [11:46:44]Send response to host [11:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164179,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:46:44]free response buf [11:46:44]execute_script done [11:46:44]execute_script returns [11:46:44]free content buf [11:46:44]Sock 7.Close socket [11:46:44]Sock 7.Thread stoped [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:05]accept exits with 9 [11:50:05]New connection [11:50:05]New thread 3066707300 created [11:50:05]Thread 3066850660 joined [11:50:05]Waiting for new connection... [11:50:05] Sock 9.Parse request [11:50:05]Sock 9.Check first char [11:50:05]Sock 9.First char is OK [11:50:05]request: POST /json_proto HTTP/1.0 [11:50:05]Method: POST [11:50:05]URL: /json_proto [11:50:05]Method is POST - this is cgi request [11:50:05]url: /json_proto [11:50:05]query_string will be loaded in cgi processing [11:50:05]execute_cgi json_proto POST (null) [11:50:05]execute_cgi path=json_proto method=POST [11:50:05]POST find Content-Length [11:50:05]Host: 172.17.56.4:8080 [11:50:05]Content-Length: 843 [11:50:05]Content-Type: application/json [11:50:05] [11:50:05]POST finish read [11:50:05]Found Content-Length = 843 [11:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:05]execute_script... [11:50: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)458263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:05]POST & json_proto [11:50:05]process_json_proto [11:50:05]json parsed OK: [11:50:05]protocol is kg_v1.0 [11:50:05]action value=close_receipt [11:50:05]process_action close_receipt [11:50:05]cmd_close_receipt [11:50:05]MH_GetDate [11:50:05]Write to MH i2c: F0 00 00 E8 11 E8 [11:50:05]Write i2c OK [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: F0 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: F0 09 00 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: F0 09 00 E8 11 00 6E 18 91 66 C9 DC B2 64 29 [11:50:05]GetLastDocTimeStamp 1720784801 [11:50:05]current date 1720785006 [11:50:05]FM_GetShiftState [11:50:05]SAM_PROTO_GetShiftState [11:50:05]wFMCommunicate request_size=4 [11:50:05]MH_SAM_APDU [11:50:05]CAPDU: 80 13 01 00 [11:50:05]Write to MH i2c: E2 08 00 E9 11 80 13 01 00 00 00 00 00 77 [11:50:05]Write i2c OK [11:50:05]MH_I2C_Read... [11:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:05]Read from MH i2c: E2 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: E2 0E 00 [11:50:05]MH_I2C_Read... [11:50:05]Read from MH i2c: E2 0E 00 E9 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C1 [11:50:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:50:05]wFMCommunicate OK [11:50:05]SAM_PROTO_GetShiftState done [11:50:05]FM_GetShiftState done [11:50:05]opened in 1720744654 [11:50:05]opened+sec_in_day 1720831054 [11:50:05]quantity*price = 100047 [11:50:05]sum+1 = 100048 [11:50:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 101 12.07.2024 11:50 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164180 ФПД: 258247229095533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164180&fm=258247229095533&tin=02508201610067®Number=0000000000090829&sum=100047 [11:50:06]StoreToDocumentArchive [11:50:06]shift 445 fd 164180 [11:50:06]save to /storage/0445/doc_00164180 [11:50:06]save last doc name /storage/0445/doc_00164180 to /storage/kkm_last_doc_name [11:50:06]save OK [11:50:06]Clear old archive folders... [11:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:06]tlvbuf is 009E1600 [11:50:06]SAM_PROTO_ClearQueue [11:50:06]wFMCommunicate request_size=4 [11:50:06]MH_SAM_APDU [11:50:06]CAPDU: 80 09 00 00 [11:50:06]Write to MH i2c: E2 08 00 F6 11 80 09 00 00 00 00 00 00 79 [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:06]Read from MH i2c: E2 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 F6 11 00 90 00 7B [11:50:06]RAPDU: 90 00 [11:50:06]wFMCommunicate OK [11:50:06]SAM_PROTO_ClearQueue done [11:50:06]KKMCreateOFDPacket [11:50:06]OFDProtocolAddRootSTLVToBuf [11:50:06]FM_MakeSignedData [11:50:06]FM_MakeSignedData [11:50:06]SAM_PROTO_SignData [11:50:06]wFMCommunicate request_size=4 [11:50:06]MH_SAM_APDU [11:50:06]CAPDU: 80 0D 01 02 [11:50:06]Write to MH i2c: E2 08 00 F7 11 80 0D 01 02 00 00 00 00 81 [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:06]Read from MH i2c: E2 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 F7 11 00 90 00 7C [11:50:06]RAPDU: 90 00 [11:50:06]wFMCommunicate OK [11:50:06]wFMCommunicate request_size=255 [11:50:06]MH_SAM_APDU [11:50: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6E 18 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 81 02 00 35 04 06 00 EA [11:50:06]Write to MH i2c: E2 02 01 F8 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6E 18 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 81 02 00 35 04 06 00 EA 00 00 CF [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:06]Read from MH i2c: E2 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 F8 11 00 90 00 7D [11:50:06]RAPDU: 90 00 [11:50:06]wFMCommunicate OK [11:50:06]wFMCommunicate request_size=10 [11:50:06]MH_SAM_APDU [11:50:06]CAPDU: 80 0D 02 02 05 DF DE 5A BE 6D [11:50:06]Write to MH i2c: E2 0D 00 F9 11 80 0D 02 02 05 00 DF DE 5A BE 6D 00 00 D0 [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:06]Read from MH i2c: E2 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 03 00 F9 11 00 90 00 7E [11:50:06]RAPDU: 90 00 [11:50:06]wFMCommunicate OK [11:50:06]wFMCommunicate request_size=4 [11:50:06]MH_SAM_APDU [11:50:06]CAPDU: 80 0D 03 02 [11:50:06]Write to MH i2c: E2 08 00 FA 11 80 0D 03 02 00 00 00 00 86 [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:06]Read from MH i2c: E2 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 0B 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 0B 00 FA 11 00 5D 57 41 53 B1 2E F3 2E 90 00 CF [11:50:06]RAPDU: 5D 57 41 53 B1 2E F3 2E 90 00 [11:50:06]wFMCommunicate OK [11:50:06]SAM_PROTO_SignData done [11:50:06]FM_MakeSignedData done [11:50:06]CreateOFDProtocolMessage [11:50:06]wFMCommunicate request_size=4 [11:50:06]MH_SAM_APDU [11:50:06]CAPDU: 80 11 00 00 [11:50:06]Write to MH i2c: E2 08 00 FB 11 80 11 00 00 00 00 00 00 86 [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:06]Read from MH i2c: E2 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 17 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: E2 17 00 FB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DC [11:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:50:06]wFMCommunicate OK [11:50:06]CreateOFDProtocolMessage done [11:50:06]OFDSenderStorePacket 164180 [11:50:06]StoreOFDPacket docnum=164180 [11:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD F7 07 01 74 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6E 18 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 81 02 00 35 04 06 00 EA DF DE 5A BE 6D 5D 57 41 53 B1 2E F3 2E [11:50:06]CheckFolder [11:50:06]dirname=/storage/ofd_packets [11:50:06]CheckFolder done [11:50:06]ProducePacketName [11:50:06]name=ofd_packets/00164180 [11:50:06]NVStorageSaveData ofd_packets/00164180 [11:50:06]File name is /storage/ofd_packets/00164180 [11:50:06]Write 301 bytes [11:50:06]NVStorageSaveData done [11:50:06]OFDSenderStorePacket done [11:50:06]KKMCreateOFDPacket done [11:50:06]NVStorageSaveData kkm_last_timestamp [11:50:06]File name is /storage/kkm_last_timestamp [11:50:06]Write 4 bytes [11:50:06]NVStorageSaveData done [11:50:06]ExternCall_PrintAddStr [11:50:06]wPrintStart [11:50:06]Write to MH i2c: 01 00 00 FC 11 0D [11:50:06]Write i2c OK [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: 01 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: 01 07 00 [11:50:06]MH_I2C_Read... [11:50:06]Read from MH i2c: 01 07 00 FC 11 00 00 00 00 00 FF 0F 22 [11:50:06]RasterBufferAndPrint [11:50:06]line Счет N : (1)458263 [11:50:06]line ИНН: 02508201610067 [11:50:06]line Контрольно-Кассовый Чек [11:50:06]line ПРОДАЖА [11:50:06]line ТРК (МРК, ГНК) : 12 [11:50:06]line Товар: 2710124130 [11:50:06]line Аи-92-К-5 [11:50:06]line 15.340 * 65.22 [11:50:06]line = 1000.47 [11:50:06]line НДС 12% НСП 1% [11:50:06]line > о реализуемом товаре [11:50:06]line ИТОГО: 1000.47 [11:50:06]line НСП 1% : 8.85 [11:50:06]line НДС 12% : 106.24 [11:50:06]line Наличными: 0.00 [11:50:06]line Безнал.: 1000.47 [11:50:06]line Место: АЗС № 72 "Партнер Нефть" [11:50:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:50:06]line СНО: Общий режим [11:50:06]line Чек 101 12.07.2024 11:50 [11:50:06]line Смена: 445 ФФД: 1.0 [11:50:06]line ЗНМ: 0300000160 [11:50:06]line РНМ: 0000000000090829 [11:50:06]line Версия ККМ: 001 [11:50:06]line Платежная система: АКБ Кыргызстан [11:50:06]line ФМ: 0000000000874718 [11:50:06]line ФД: 164180 [11:50:06]line ФПД: 258247229095533 [11:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164180&fm=258247229095533&tin=02508201610067®Number=0000000000090829&sum=100047 [11:50:06]written 0, free lines is 4095 [11:50:06]OFD Sender: Processing packet 164180 [packets to send 104, broken 103] [11:50:06]ProducePacketName [11:50:06]name=ofd_packets/00164180 [11:50:06]OFD Sender: To server: pG, [11:50:06]CommunicateWithHost lk.salyk.kg:30040 [11:50:06]ConnectInit lk.salyk.kg [11:50:06]Connected sock=10 [11:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD F7 07 01 74 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6E 18 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 81 02 00 35 04 06 00 EA DF DE 5A BE 6D 5D 57 41 53 B1 2E F3 2E [11:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 65 FA 47 00 78 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 34 37 31 38 10 04 04 00 54 81 02 00 F4 03 04 00 02 BF 90 66 B6 04 01 00 00 FC FE 78 91 D6 C9 18 73 [11:50:07]CommunicateWithHost err = 0 [11:50:07]CheckOFDResponse [11:50:07]1017 (14) - 77093643461234 [11:50:07]1041 (16) - 0000000000874718 [11:50:07]1040 (4) - 164180 [11:50:07]1012 (4) - 12.07.2024 05:28 [11:50:07]1206 (1) - 0 [11:50:07]OFD Sender: Remove packet 164180 [11:50:07]ProducePacketName [11:50:07]name=ofd_packets/00164180 [11:50:07]NVStorageDeleteData [11:50:07]Write to MH i2c: 01 00 00 25 12 37 [11:50:07]Write i2c OK [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: 01 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: 01 07 00 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: 01 07 00 25 12 00 00 00 00 00 0C 0D 57 [11:50:07]RasterBufferAndPrint [11:50:07]line [11:50:07]line [11:50:07]line [11:50:07]line [11:50:07]line [11:50:07]written 0, free lines is 3346 [11:50:07]MH_Cut [11:50:07]Write to MH i2c: D1 01 00 2C 12 01 10 [11:50:07]Write i2c OK [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: D1 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: D1 01 00 [11:50:07]MH_I2C_Read... [11:50:07]Read from MH i2c: D1 01 00 2C 12 00 0F [11:50:07]Write to MH i2c: 01 00 00 2D 12 3F [11:50:07]Write i2c OK [11:50:07]MH_I2C_Read... [11:50:07]OFD Sender: No OFD packet to send [11:50:07]*** Cut start [11:50:07]*** Partial cut [11:50:07]*** CUTSNS_PIN = 1 [11:50:07]*** CUTSNS_PIN = 0 [11:50:08]*** Brake cut motor [11:50:08]Read from MH i2c: 01 [11:50:08]MH_I2C_Read... [11:50:08]*** Stop cut motor [11:50:08]*** Cut end [11:50:08]Read from MH i2c: 01 07 00 [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: 01 07 00 2D 12 00 00 00 00 00 FF 0F 54 [11:50:08]process_action close_receipt done [11:50:08]requested_data is exist [11:50:08]produce_requested_data [11:50:08]requested_item fm.sn is exist - process it [11:50:08]wFMCommunicate request_size=4 [11:50:08]MH_SAM_APDU [11:50:08]CAPDU: 80 11 00 00 [11:50:08]Write to MH i2c: E2 08 00 2E 12 80 11 00 00 00 00 00 00 BA [11:50:08]Write i2c OK [11:50:08]MH_I2C_Read... [11:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:08]Read from MH i2c: E2 [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: E2 17 00 [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: E2 17 00 2E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [11:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:50:08]wFMCommunicate OK [11:50:08]requested_item fd.num is exist - process it [11:50:08]SAM_PROTO_GetFieldsCounters [11:50:08]wFMCommunicate request_size=4 [11:50:08]MH_SAM_APDU [11:50:08]CAPDU: 80 13 00 00 [11:50:08]Write to MH i2c: E2 08 00 2F 12 80 13 00 00 00 00 00 00 BD [11:50:08]Write i2c OK [11:50:08]MH_I2C_Read... [11:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:08]Read from MH i2c: E2 [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: E2 62 00 [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: E2 62 00 2F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [11:50: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:08]wFMCommunicate OK [11:50:08]SAM_PROTO_GetFieldsCounters done [11:50:08]requested_item shift.num is exist - process it [11:50:08]requested_item shift.opened is exist - process it [11:50:08]req_shift_opened [11:50:08]FM_GetShiftState [11:50:08]SAM_PROTO_GetShiftState [11:50:08]wFMCommunicate request_size=4 [11:50:08]MH_SAM_APDU [11:50:08]CAPDU: 80 13 01 00 [11:50:08]Write to MH i2c: E2 08 00 30 12 80 13 01 00 00 00 00 00 BF [11:50:08]Write i2c OK [11:50:08]MH_I2C_Read... [11:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:08]Read from MH i2c: E2 [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: E2 0E 00 [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: E2 0E 00 30 12 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 09 [11:50:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:50:08]wFMCommunicate OK [11:50:08]SAM_PROTO_GetShiftState done [11:50:08]FM_GetShiftState done [11:50:08]req_shift_opened done [11:50:08]requested_item shift.open_date is exist - process it [11:50:08]req_shift_open_date [11:50:08]req_shift_open_date done [11:50:08]produce_requested_data done [11:50:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164180,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:50:08]process_action_free close_receipt [11:50:08]json_value_free [11:50:08]json_value_free done [11:50:08]process_json_proto returns [11:50:08]Send response to host [11:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164180,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:50:08]free response buf [11:50:08]execute_script done [11:50:08]execute_script returns [11:50:08]free content buf [11:50:08]Sock 9.Close socket [11:50:08]Sock 9.Thread stoped [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:25]accept exits with 7 [11:51:25]New connection [11:51:25]New thread 3066850660 created [11:51:25]Thread 3066707300 joined [11:51:25]Waiting for new connection... [11:51:25] Sock 7.Parse request [11:51:25]Sock 7.Check first char [11:51:25]Sock 7.First char is OK [11:51:25]request: POST /json_proto HTTP/1.0 [11:51:25]Method: POST [11:51:25]URL: /json_proto [11:51:25]Method is POST - this is cgi request [11:51:25]url: /json_proto [11:51:25]query_string will be loaded in cgi processing [11:51:25]execute_cgi json_proto POST (null) [11:51:25]execute_cgi path=json_proto method=POST [11:51:25]POST find Content-Length [11:51:25]Host: 172.17.56.4:8080 [11:51:25]Content-Length: 677 [11:51:25]Content-Type: application/json [11:51:25] [11:51:25]POST finish read [11:51:25]Found Content-Length = 677 [11:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:51:25]execute_script... [11:51: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)458264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:51:25]POST & json_proto [11:51:25]process_json_proto [11:51:25]json parsed OK: [11:51:25]protocol is kg_v1.0 [11:51:25]action value=close_receipt [11:51:25]process_action close_receipt [11:51:25]cmd_close_receipt [11:51:25]MH_GetDate [11:51:25]Write to MH i2c: F0 00 00 31 12 32 [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: F0 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: F0 09 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: F0 09 00 31 12 00 BE 18 91 66 C9 DC B2 64 C3 [11:51:25]GetLastDocTimeStamp 1720785006 [11:51:25]current date 1720785086 [11:51:25]FM_GetShiftState [11:51:25]SAM_PROTO_GetShiftState [11:51:25]wFMCommunicate request_size=4 [11:51:25]MH_SAM_APDU [11:51:25]CAPDU: 80 13 01 00 [11:51:25]Write to MH i2c: E2 08 00 32 12 80 13 01 00 00 00 00 00 C1 [11:51:25]Write i2c OK [11:51:25]MH_I2C_Read... [11:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:25]Read from MH i2c: E2 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 0E 00 [11:51:25]MH_I2C_Read... [11:51:25]Read from MH i2c: E2 0E 00 32 12 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0B [11:51:25]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:51:25]wFMCommunicate OK [11:51:25]SAM_PROTO_GetShiftState done [11:51:25]FM_GetShiftState done [11:51:25]opened in 1720744654 [11:51:25]opened+sec_in_day 1720831054 [11:51:25]quantity*price = 20003 [11:51:25]sum+1 = 20004 [11:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 102 12.07.2024 11:51 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164181 ФПД: 228969015477748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164181&fm=228969015477748&tin=02508201610067®Number=0000000000090829&sum=20000 [11:51:26]StoreToDocumentArchive [11:51:26]shift 445 fd 164181 [11:51:26]save to /storage/0445/doc_00164181 [11:51:26]save last doc name /storage/0445/doc_00164181 to /storage/kkm_last_doc_name [11:51:26]save OK [11:51:26]Clear old archive folders... [11:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:26]tlvbuf is 009F9E20 [11:51:26]SAM_PROTO_ClearQueue [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 09 00 00 [11:51:26]Write to MH i2c: E2 08 00 3F 12 80 09 00 00 00 00 00 00 C3 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]SAM_PROTO_ClearQueue done [11:51:26]KKMCreateOFDPacket [11:51:26]OFDProtocolAddRootSTLVToBuf [11:51:26]FM_MakeSignedData [11:51:26]FM_MakeSignedData [11:51:26]SAM_PROTO_SignData [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 0D 01 02 [11:51:26]Write to MH i2c: E2 08 00 40 12 80 0D 01 02 00 00 00 00 CB [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 40 12 00 90 00 C6 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=255 [11:51:26]MH_SAM_APDU [11:51: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 66 00 00 00 F4 03 04 00 BE 18 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 81 02 00 35 04 06 00 D0 [11:51:26]Write to MH i2c: E2 02 01 41 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 66 00 00 00 F4 03 04 00 BE 18 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 81 02 00 35 04 06 00 D0 00 00 7E [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 41 12 00 90 00 C7 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=10 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 0D 02 02 05 3F 00 D5 05 F4 [11:51:26]Write to MH i2c: E2 0D 00 42 12 80 0D 02 02 05 00 3F 00 D5 05 F4 00 00 E5 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 03 00 42 12 00 90 00 C8 [11:51:26]RAPDU: 90 00 [11:51:26]wFMCommunicate OK [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 0D 03 02 [11:51:26]Write to MH i2c: E2 08 00 43 12 80 0D 03 02 00 00 00 00 D0 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 0B 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 0B 00 43 12 00 88 8E 43 71 95 65 59 5C 90 00 4A [11:51:26]RAPDU: 88 8E 43 71 95 65 59 5C 90 00 [11:51:26]wFMCommunicate OK [11:51:26]SAM_PROTO_SignData done [11:51:26]FM_MakeSignedData done [11:51:26]CreateOFDProtocolMessage [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 11 00 00 [11:51:26]Write to MH i2c: E2 08 00 44 12 80 11 00 00 00 00 00 00 D0 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 17 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 17 00 44 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 26 [11:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:51:27]wFMCommunicate OK [11:51:27]CreateOFDProtocolMessage done [11:51:27]OFDSenderStorePacket 164181 [11:51:27]StoreOFDPacket docnum=164181 [11:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 6E 07 01 DD 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 66 00 00 00 F4 03 04 00 BE 18 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 81 02 00 35 04 06 00 D0 3F 00 D5 05 F4 88 8E 43 71 95 65 59 5C [11:51:27]CheckFolder [11:51:27]dirname=/storage/ofd_packets [11:51:27]CheckFolder done [11:51:27]ProducePacketName [11:51:27]name=ofd_packets/00164181 [11:51:27]NVStorageSaveData ofd_packets/00164181 [11:51:27]File name is /storage/ofd_packets/00164181 [11:51:27]Write 301 bytes [11:51:27]NVStorageSaveData done [11:51:27]OFDSenderStorePacket done [11:51:27]KKMCreateOFDPacket done [11:51:27]NVStorageSaveData kkm_last_timestamp [11:51:27]File name is /storage/kkm_last_timestamp [11:51:27]Write 4 bytes [11:51:27]NVStorageSaveData done [11:51:27]ExternCall_PrintAddStr [11:51:27]wPrintStart [11:51:27]Write to MH i2c: 01 00 00 45 12 57 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 45 12 00 00 00 00 00 FF 0F 6C [11:51:27]RasterBufferAndPrint [11:51:27]line Счет N : (1)458264 [11:51:27]line ИНН: 02508201610067 [11:51:27]line Контрольно-Кассовый Чек [11:51:27]line ПРОДАЖА [11:51:27]line ТРК (МРК, ГНК) : 12 [11:51:27]line Товар: 2710124130 [11:51:27]line Аи-92-К-5 [11:51:27]line 3.040 * 65.80 [11:51:27]line = 200.03 [11:51:27]line НДС 12% НСП 1% [11:51:27]line > о реализуемом товаре [11:51:27]line ОКРУГЛЕНИЕ: -0.03 [11:51:27]line ИТОГО: 200.00 [11:51:27]line Внесено: 200.00 [11:51:27]line СДАЧА: 0.00 [11:51:27]line НСП 1% : 1.77 [11:51:27]line НДС 12% : 21.24 [11:51:27]line Наличными: 200.00 [11:51:27]line Безнал.: 0.00 [11:51:27]line Место: АЗС № 72 "Партнер Нефть" [11:51:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:51:27]line СНО: Общий режим [11:51:27]line Чек 102 12.07.2024 11:51 [11:51:27]line Смена: 445 ФФД: 1.0 [11:51:27]line ЗНМ: 0300000160 [11:51:27]line РНМ: 0000000000090829 [11:51:27]line Версия ККМ: 001 [11:51:27]line ФМ: 0000000000874718 [11:51:27]line ФД: 164181 [11:51:27]line ФПД: 228969015477748 [11:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164181&fm=228969015477748&tin=02508201610067®Number=0000000000090829&sum=20000 [11:51:27]written 0, free lines is 4095 [11:51:27]OFD Sender: Processing packet 164181 [packets to send 104, broken 103] [11:51:27]ProducePacketName [11:51:27]name=ofd_packets/00164181 [11:51:27]OFD Sender: To server: pG, [11:51:27]CommunicateWithHost lk.salyk.kg:30040 [11:51:27]ConnectInit lk.salyk.kg [11:51:27]Connected sock=10 [11:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 6E 07 01 DD 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 66 00 00 00 F4 03 04 00 BE 18 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 81 02 00 35 04 06 00 D0 3F 00 D5 05 F4 88 8E 43 71 95 65 59 5C [11:51:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5B A8 47 00 06 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 34 37 31 38 10 04 04 00 55 81 02 00 F4 03 04 00 52 BF 90 66 B6 04 01 00 00 F4 A1 D3 B1 30 D1 77 8C [11:51:27]CommunicateWithHost err = 0 [11:51:27]CheckOFDResponse [11:51:27]1017 (14) - 77093643461234 [11:51:27]1041 (16) - 0000000000874718 [11:51:27]1040 (4) - 164181 [11:51:27]1012 (4) - 12.07.2024 05:29 [11:51:27]1206 (1) - 0 [11:51:27]OFD Sender: Remove packet 164181 [11:51:27]ProducePacketName [11:51:27]name=ofd_packets/00164181 [11:51:27]NVStorageDeleteData [11:51:27]Write to MH i2c: 01 00 00 6F 12 81 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 6F 12 00 00 00 00 00 02 0D 97 [11:51:27]RasterBufferAndPrint [11:51:27]line [11:51:27]line [11:51:27]line [11:51:27]line [11:51:27]line [11:51:27]written 0, free lines is 3336 [11:51:27]MH_Cut [11:51:27]Write to MH i2c: D1 01 00 76 12 01 5A [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: D1 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: D1 01 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: D1 01 00 76 12 00 59 [11:51:27]Write to MH i2c: 01 00 00 77 12 89 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:28]OFD Sender: No OFD packet to send [11:51:28]*** Cut start [11:51:28]*** Partial cut [11:51:28]*** CUTSNS_PIN = 1 [11:51:28]*** CUTSNS_PIN = 0 [11:51:28]*** Brake cut motor [11:51:29]Read from MH i2c: 01 [11:51:29]MH_I2C_Read... [11:51:29]*** Stop cut motor [11:51:29]*** Cut end [11:51:29]Read from MH i2c: 01 07 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: 01 07 00 77 12 00 00 00 00 00 FF 0F 9E [11:51:29]process_action close_receipt done [11:51:29]requested_data is exist [11:51:29]produce_requested_data [11:51:29]requested_item fm.sn is exist - process it [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 11 00 00 [11:51:29]Write to MH i2c: E2 08 00 78 12 80 11 00 00 00 00 00 00 04 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 17 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 17 00 78 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [11:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:51:29]wFMCommunicate OK [11:51:29]requested_item fd.num is exist - process it [11:51:29]SAM_PROTO_GetFieldsCounters [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 13 00 00 [11:51:29]Write to MH i2c: E2 08 00 79 12 80 13 00 00 00 00 00 00 07 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 62 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 62 00 79 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [11:51: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:29]wFMCommunicate OK [11:51:29]SAM_PROTO_GetFieldsCounters done [11:51:29]requested_item shift.num is exist - process it [11:51:29]requested_item shift.opened is exist - process it [11:51:29]req_shift_opened [11:51:29]FM_GetShiftState [11:51:29]SAM_PROTO_GetShiftState [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 13 01 00 [11:51:29]Write to MH i2c: E2 08 00 7A 12 80 13 01 00 00 00 00 00 09 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 0E 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 0E 00 7A 12 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 53 [11:51:29]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:51:29]wFMCommunicate OK [11:51:29]SAM_PROTO_GetShiftState done [11:51:29]FM_GetShiftState done [11:51:29]req_shift_opened done [11:51:29]requested_item shift.open_date is exist - process it [11:51:29]req_shift_open_date [11:51:29]req_shift_open_date done [11:51:29]produce_requested_data done [11:51:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164181,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:51:29]process_action_free close_receipt [11:51:29]json_value_free [11:51:29]json_value_free done [11:51:29]process_json_proto returns [11:51:29]Send response to host [11:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164181,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:51:29]free response buf [11:51:29]execute_script done [11:51:29]execute_script returns [11:51:29]free content buf [11:51:29]Sock 7.Close socket [11:51:29]Sock 7.Thread stoped [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:13]accept exits with 9 [11:57:13]New connection [11:57:13]New thread 3066707300 created [11:57:13]Thread 3066850660 joined [11:57:13]Waiting for new connection... [11:57:13] Sock 9.Parse request [11:57:13]Sock 9.Check first char [11:57:13]Sock 9.First char is OK [11:57:13]request: POST /json_proto HTTP/1.0 [11:57:13]Method: POST [11:57:13]URL: /json_proto [11:57:13]Method is POST - this is cgi request [11:57:13]url: /json_proto [11:57:13]query_string will be loaded in cgi processing [11:57:13]execute_cgi json_proto POST (null) [11:57:13]execute_cgi path=json_proto method=POST [11:57:13]POST find Content-Length [11:57:13]Host: 172.17.56.4:8080 [11:57:13]Content-Length: 640 [11:57:13]Content-Type: application/json [11:57:13] [11:57:13]POST finish read [11:57:13]Found Content-Length = 640 [11:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:13]execute_script... [11:57: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)458265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:13]POST & json_proto [11:57:13]process_json_proto [11:57:13]json parsed OK: [11:57:13]protocol is kg_v1.0 [11:57:13]action value=close_receipt [11:57:13]process_action close_receipt [11:57:13]cmd_close_receipt [11:57:13]MH_GetDate [11:57:13]Write to MH i2c: F0 00 00 7B 12 7C [11:57:13]Write i2c OK [11:57:13]MH_I2C_Read... [11:57:13]Read from MH i2c: F0 [11:57:13]MH_I2C_Read... [11:57:13]Read from MH i2c: F0 09 00 [11:57:13]MH_I2C_Read... [11:57:13]Read from MH i2c: F0 09 00 7B 12 00 1A 1A 91 66 C9 DC B2 64 6B [11:57:13]GetLastDocTimeStamp 1720785086 [11:57:13]current date 1720785434 [11:57:13]FM_GetShiftState [11:57:13]SAM_PROTO_GetShiftState [11:57:13]wFMCommunicate request_size=4 [11:57:13]MH_SAM_APDU [11:57:13]CAPDU: 80 13 01 00 [11:57:13]Write to MH i2c: E2 08 00 7C 12 80 13 01 00 00 00 00 00 0B [11:57:13]Write i2c OK [11:57:13]MH_I2C_Read... [11:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:13]Read from MH i2c: E2 [11:57:13]MH_I2C_Read... [11:57:13]Read from MH i2c: E2 0E 00 [11:57:13]MH_I2C_Read... [11:57:13]Read from MH i2c: E2 0E 00 7C 12 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 55 [11:57:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:57:13]wFMCommunicate OK [11:57:13]SAM_PROTO_GetShiftState done [11:57:13]FM_GetShiftState done [11:57:13]opened in 1720744654 [11:57:13]opened+sec_in_day 1720831054 [11:57:13]quantity*price = 65800 [11:57:13]sum+1 = 65801 [11:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 103 12.07.2024 11:57 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164182 ФПД: 264648819698121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115714&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164182&fm=264648819698121&tin=02508201610067®Number=0000000000090829&sum=65800 [11:57:14]StoreToDocumentArchive [11:57:14]shift 445 fd 164182 [11:57:14]save to /storage/0445/doc_00164182 [11:57:14]save last doc name /storage/0445/doc_00164182 to /storage/kkm_last_doc_name [11:57:14]save OK [11:57:14]Clear old archive folders... [11:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:14]tlvbuf is 009FA080 [11:57:14]SAM_PROTO_ClearQueue [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 09 00 00 [11:57:14]Write to MH i2c: E2 08 00 89 12 80 09 00 00 00 00 00 00 0D [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [11:57:14]RAPDU: 90 00 [11:57:14]wFMCommunicate OK [11:57:14]SAM_PROTO_ClearQueue done [11:57:14]KKMCreateOFDPacket [11:57:14]OFDProtocolAddRootSTLVToBuf [11:57:14]FM_MakeSignedData [11:57:14]FM_MakeSignedData [11:57:14]SAM_PROTO_SignData [11:57:14]wFMCommunicate request_size=4 [11:57:14]MH_SAM_APDU [11:57:14]CAPDU: 80 0D 01 02 [11:57:14]Write to MH i2c: E2 08 00 8A 12 80 0D 01 02 00 00 00 00 15 [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:14]Read from MH i2c: E2 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 [11:57:14]MH_I2C_Read... [11:57:14]Read from MH i2c: E2 03 00 8A 12 00 90 00 10 [11:57:14]RAPDU: 90 00 [11:57:14]wFMCommunicate OK [11:57:14]wFMCommunicate request_size=255 [11:57:14]MH_SAM_APDU [11:57: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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 1A 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 81 02 00 35 04 06 00 F0 [11:57:14]Write to MH i2c: E2 02 01 8B 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 1A 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 81 02 00 35 04 06 00 F0 00 00 0F [11:57:14]Write i2c OK [11:57:14]MH_I2C_Read... [11:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:15]Read from MH i2c: E2 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 03 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 03 00 8B 12 00 90 00 11 [11:57:15]RAPDU: 90 00 [11:57:15]wFMCommunicate OK [11:57:15]wFMCommunicate request_size=10 [11:57:15]MH_SAM_APDU [11:57:15]CAPDU: 80 0D 02 02 05 B2 5A E3 69 C9 [11:57:15]Write to MH i2c: E2 0D 00 8C 12 80 0D 02 02 05 00 B2 5A E3 69 C9 00 00 43 [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:15]Read from MH i2c: E2 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 03 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 03 00 8C 12 00 90 00 12 [11:57:15]RAPDU: 90 00 [11:57:15]wFMCommunicate OK [11:57:15]wFMCommunicate request_size=4 [11:57:15]MH_SAM_APDU [11:57:15]CAPDU: 80 0D 03 02 [11:57:15]Write to MH i2c: E2 08 00 8D 12 80 0D 03 02 00 00 00 00 1A [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:15]Read from MH i2c: E2 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 0B 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 0B 00 8D 12 00 D9 30 9B 82 BE 7B FC 3F 90 00 B5 [11:57:15]RAPDU: D9 30 9B 82 BE 7B FC 3F 90 00 [11:57:15]wFMCommunicate OK [11:57:15]SAM_PROTO_SignData done [11:57:15]FM_MakeSignedData done [11:57:15]CreateOFDProtocolMessage [11:57:15]wFMCommunicate request_size=4 [11:57:15]MH_SAM_APDU [11:57:15]CAPDU: 80 11 00 00 [11:57:15]Write to MH i2c: E2 08 00 8E 12 80 11 00 00 00 00 00 00 1A [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:15]Read from MH i2c: E2 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 17 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 17 00 8E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 70 [11:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:57:15]wFMCommunicate OK [11:57:15]CreateOFDProtocolMessage done [11:57:15]OFDSenderStorePacket 164182 [11:57:15]StoreOFDPacket docnum=164182 [11:57:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 E3 07 01 1D 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 1A 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 81 02 00 35 04 06 00 F0 B2 5A E3 69 C9 D9 30 9B 82 BE 7B FC 3F [11:57:15]CheckFolder [11:57:15]dirname=/storage/ofd_packets [11:57:15]CheckFolder done [11:57:15]ProducePacketName [11:57:15]name=ofd_packets/00164182 [11:57:15]NVStorageSaveData ofd_packets/00164182 [11:57:15]File name is /storage/ofd_packets/00164182 [11:57:15]Write 301 bytes [11:57:15]NVStorageSaveData done [11:57:15]OFDSenderStorePacket done [11:57:15]KKMCreateOFDPacket done [11:57:15]NVStorageSaveData kkm_last_timestamp [11:57:15]File name is /storage/kkm_last_timestamp [11:57:15]Write 4 bytes [11:57:15]NVStorageSaveData done [11:57:15]ExternCall_PrintAddStr [11:57:15]wPrintStart [11:57:15]Write to MH i2c: 01 00 00 8F 12 A1 [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: 01 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: 01 07 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: 01 07 00 8F 12 00 00 00 00 00 FF 0F B6 [11:57:15]RasterBufferAndPrint [11:57:15]line Счет N : (1)458265 [11:57:15]line ИНН: 02508201610067 [11:57:15]line Контрольно-Кассовый Чек [11:57:15]line ПРОДАЖА [11:57:15]line ТРК (МРК, ГНК) : 12 [11:57:15]line Товар: 2710124130 [11:57:15]line Аи-92-К-5 [11:57:15]line 10.000 * 65.80 [11:57:15]line = 658.00 [11:57:15]line НДС 12% НСП 1% [11:57:15]line > о реализуемом товаре [11:57:15]line ИТОГО: 658.00 [11:57:15]line НСП 1% : 5.82 [11:57:15]line НДС 12% : 69.88 [11:57:15]line Наличными: 658.00 [11:57:15]line Безнал.: 0.00 [11:57:15]line Место: АЗС № 72 "Партнер Нефть" [11:57:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:57:15]line СНО: Общий режим [11:57:15]line Чек 103 12.07.2024 11:57 [11:57:15]line Смена: 445 ФФД: 1.0 [11:57:15]line ЗНМ: 0300000160 [11:57:15]line РНМ: 0000000000090829 [11:57:15]line Версия ККМ: 001 [11:57:15]line ФМ: 0000000000874718 [11:57:15]line ФД: 164182 [11:57:15]line ФПД: 264648819698121 [11:57:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115714&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164182&fm=264648819698121&tin=02508201610067®Number=0000000000090829&sum=65800 [11:57:15]written 0, free lines is 4095 [11:57:15]OFD Sender: Processing packet 164182 [packets to send 104, broken 103] [11:57:15]ProducePacketName [11:57:15]name=ofd_packets/00164182 [11:57:15]OFD Sender: To server: pG, [11:57:15]CommunicateWithHost lk.salyk.kg:30040 [11:57:15]ConnectInit lk.salyk.kg [11:57:15]Connected sock=10 [11:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 E3 07 01 1D 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 1A 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 81 02 00 35 04 06 00 F0 B2 5A E3 69 C9 D9 30 9B 82 BE 7B FC 3F [11:57:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1C 9D 47 00 0F E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 81 02 00 F4 03 04 00 AF C0 90 66 B6 04 01 00 00 47 27 87 1A B6 04 4A 1F [11:57:16]CommunicateWithHost err = 0 [11:57:16]CheckOFDResponse [11:57:16]1017 (14) - 77093643461234 [11:57:16]1041 (16) - 0000000000874718 [11:57:16]1040 (4) - 164182 [11:57:16]1012 (4) - 12.07.2024 05:35 [11:57:16]1206 (1) - 0 [11:57:16]OFD Sender: Remove packet 164182 [11:57:16]ProducePacketName [11:57:16]name=ofd_packets/00164182 [11:57:16]NVStorageDeleteData [11:57:16]Write to MH i2c: 01 00 00 B6 12 C8 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 07 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 07 00 B6 12 00 00 00 00 00 2C 0D 08 [11:57:16]RasterBufferAndPrint [11:57:16]line [11:57:16]line [11:57:16]line [11:57:16]line [11:57:16]line [11:57:16]written 0, free lines is 3378 [11:57:16]MH_Cut [11:57:16]Write to MH i2c: D1 01 00 BD 12 01 A1 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: D1 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: D1 01 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: D1 01 00 BD 12 00 A0 [11:57:16]Write to MH i2c: 01 00 00 BE 12 D0 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]OFD Sender: No OFD packet to send [11:57:16]*** Cut start [11:57:16]*** Partial cut [11:57:16]*** CUTSNS_PIN = 1 [11:57:16]*** CUTSNS_PIN = 0 [11:57:17]*** Brake cut motor [11:57:17]Read from MH i2c: 01 [11:57:17]MH_I2C_Read... [11:57:17]*** Stop cut motor [11:57:17]*** Cut end [11:57:17]Read from MH i2c: 01 07 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: 01 07 00 BE 12 00 00 00 00 00 FF 0F E5 [11:57:17]process_action close_receipt done [11:57:17]requested_data is exist [11:57:17]produce_requested_data [11:57:17]requested_item fm.sn is exist - process it [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 11 00 00 [11:57:17]Write to MH i2c: E2 08 00 BF 12 80 11 00 00 00 00 00 00 4B [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 17 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 17 00 BF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [11:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:57:17]wFMCommunicate OK [11:57:17]requested_item fd.num is exist - process it [11:57:17]SAM_PROTO_GetFieldsCounters [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 13 00 00 [11:57:17]Write to MH i2c: E2 08 00 C0 12 80 13 00 00 00 00 00 00 4E [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 62 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 62 00 C0 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:57: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:17]wFMCommunicate OK [11:57:17]SAM_PROTO_GetFieldsCounters done [11:57:17]requested_item shift.num is exist - process it [11:57:17]requested_item shift.opened is exist - process it [11:57:17]req_shift_opened [11:57:17]FM_GetShiftState [11:57:17]SAM_PROTO_GetShiftState [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 13 01 00 [11:57:17]Write to MH i2c: E2 08 00 C1 12 80 13 01 00 00 00 00 00 50 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 0E 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 0E 00 C1 12 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9A [11:57:17]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:57:17]wFMCommunicate OK [11:57:17]SAM_PROTO_GetShiftState done [11:57:17]FM_GetShiftState done [11:57:17]req_shift_opened done [11:57:17]requested_item shift.open_date is exist - process it [11:57:17]req_shift_open_date [11:57:17]req_shift_open_date done [11:57:17]produce_requested_data done [11:57:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164182,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:57:17]process_action_free close_receipt [11:57:17]json_value_free [11:57:17]json_value_free done [11:57:17]process_json_proto returns [11:57:17]Send response to host [11:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164182,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:57:17]free response buf [11:57:17]execute_script done [11:57:17]execute_script returns [11:57:17]free content buf [11:57:17]Sock 9.Close socket [11:57:17]Sock 9.Thread stoped [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:07]accept exits with 7 [11:58:07]New connection [11:58:07]New thread 3066850660 created [11:58:07]Thread 3066707300 joined [11:58:07]Waiting for new connection... [11:58:07] Sock 7.Parse request [11:58:07]Sock 7.Check first char [11:58:07]Sock 7.First char is OK [11:58:07]request: POST /json_proto HTTP/1.0 [11:58:07]Method: POST [11:58:07]URL: /json_proto [11:58:07]Method is POST - this is cgi request [11:58:07]url: /json_proto [11:58:07]query_string will be loaded in cgi processing [11:58:07]execute_cgi json_proto POST (null) [11:58:07]execute_cgi path=json_proto method=POST [11:58:07]POST find Content-Length [11:58:07]Host: 172.17.56.4:8080 [11:58:07]Content-Length: 677 [11:58:07]Content-Type: application/json [11:58:07] [11:58:07]POST finish read [11:58:07]Found Content-Length = 677 [11:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:58:07]execute_script... [11:58: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)458266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:58:07]POST & json_proto [11:58:07]process_json_proto [11:58:07]json parsed OK: [11:58:07]protocol is kg_v1.0 [11:58:07]action value=close_receipt [11:58:07]process_action close_receipt [11:58:07]cmd_close_receipt [11:58:07]MH_GetDate [11:58:07]Write to MH i2c: F0 00 00 C2 12 C3 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: F0 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: F0 09 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: F0 09 00 C2 12 00 50 1A 91 66 C9 DC B2 64 E8 [11:58:07]GetLastDocTimeStamp 1720785434 [11:58:07]current date 1720785488 [11:58:07]FM_GetShiftState [11:58:07]SAM_PROTO_GetShiftState [11:58:07]wFMCommunicate request_size=4 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 13 01 00 [11:58:07]Write to MH i2c: E2 08 00 C3 12 80 13 01 00 00 00 00 00 52 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 0E 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 0E 00 C3 12 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9C [11:58:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:58:07]wFMCommunicate OK [11:58:07]SAM_PROTO_GetShiftState done [11:58:07]FM_GetShiftState done [11:58:07]opened in 1720744654 [11:58:07]opened+sec_in_day 1720831054 [11:58:07]quantity*price = 20003 [11:58:07]sum+1 = 20004 [11:58: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 104 12.07.2024 11:58 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164183 ФПД: 180129201867815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115808&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164183&fm=180129201867815&tin=02508201610067®Number=0000000000090829&sum=20000 [11:58:08]StoreToDocumentArchive [11:58:08]shift 445 fd 164183 [11:58:08]save to /storage/0445/doc_00164183 [11:58:08]save last doc name /storage/0445/doc_00164183 to /storage/kkm_last_doc_name [11:58:08]save OK [11:58:08]Clear old archive folders... [11:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:08]tlvbuf is 00A19C70 [11:58:08]SAM_PROTO_ClearQueue [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 09 00 00 [11:58:08]Write to MH i2c: E2 08 00 D0 12 80 09 00 00 00 00 00 00 54 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 03 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [11:58:08]RAPDU: 90 00 [11:58:08]wFMCommunicate OK [11:58:08]SAM_PROTO_ClearQueue done [11:58:08]KKMCreateOFDPacket [11:58:08]OFDProtocolAddRootSTLVToBuf [11:58:08]FM_MakeSignedData [11:58:08]FM_MakeSignedData [11:58:08]SAM_PROTO_SignData [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 0D 01 02 [11:58:08]Write to MH i2c: E2 08 00 D1 12 80 0D 01 02 00 00 00 00 5C [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 03 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [11:58:08]RAPDU: 90 00 [11:58:08]wFMCommunicate OK [11:58:08]wFMCommunicate request_size=255 [11:58:08]MH_SAM_APDU [11:58: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 68 00 00 00 F4 03 04 00 50 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 81 02 00 35 04 06 00 A3 [11:58:08]Write to MH i2c: E2 02 01 D2 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 68 00 00 00 F4 03 04 00 50 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 81 02 00 35 04 06 00 A3 00 00 7A [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 03 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [11:58:08]RAPDU: 90 00 [11:58:08]wFMCommunicate OK [11:58:08]wFMCommunicate request_size=10 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 0D 02 02 05 D3 99 17 4C 27 [11:58:08]Write to MH i2c: E2 0D 00 D3 12 80 0D 02 02 05 00 D3 99 17 4C 27 00 00 5F [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 03 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [11:58:08]RAPDU: 90 00 [11:58:08]wFMCommunicate OK [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 0D 03 02 [11:58:08]Write to MH i2c: E2 08 00 D4 12 80 0D 03 02 00 00 00 00 61 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 0B 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 0B 00 D4 12 00 96 13 EE FB F2 D6 21 A2 90 00 7F [11:58:08]RAPDU: 96 13 EE FB F2 D6 21 A2 90 00 [11:58:08]wFMCommunicate OK [11:58:08]SAM_PROTO_SignData done [11:58:08]FM_MakeSignedData done [11:58:08]CreateOFDProtocolMessage [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 11 00 00 [11:58:08]Write to MH i2c: E2 08 00 D5 12 80 11 00 00 00 00 00 00 61 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 17 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 17 00 D5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [11:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:08]wFMCommunicate OK [11:58:08]CreateOFDProtocolMessage done [11:58:08]OFDSenderStorePacket 164183 [11:58:08]StoreOFDPacket docnum=164183 [11:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F0 E1 07 01 3A D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 68 00 00 00 F4 03 04 00 50 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 81 02 00 35 04 06 00 A3 D3 99 17 4C 27 96 13 EE FB F2 D6 21 A2 [11:58:08]CheckFolder [11:58:08]dirname=/storage/ofd_packets [11:58:08]CheckFolder done [11:58:08]ProducePacketName [11:58:08]name=ofd_packets/00164183 [11:58:08]NVStorageSaveData ofd_packets/00164183 [11:58:08]File name is /storage/ofd_packets/00164183 [11:58:08]Write 301 bytes [11:58:08]NVStorageSaveData done [11:58:08]OFDSenderStorePacket done [11:58:08]KKMCreateOFDPacket done [11:58:08]NVStorageSaveData kkm_last_timestamp [11:58:08]File name is /storage/kkm_last_timestamp [11:58:08]Write 4 bytes [11:58:08]NVStorageSaveData done [11:58:08]ExternCall_PrintAddStr [11:58:08]wPrintStart [11:58:08]Write to MH i2c: 01 00 00 D6 12 E8 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: 01 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: 01 07 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: 01 07 00 D6 12 00 00 00 00 00 FF 0F FD [11:58:08]RasterBufferAndPrint [11:58:08]line Счет N : (1)458266 [11:58:08]line ИНН: 02508201610067 [11:58:08]line Контрольно-Кассовый Чек [11:58:08]line ПРОДАЖА [11:58:08]line ТРК (МРК, ГНК) : 12 [11:58:08]line Товар: 2710124130 [11:58:08]line Аи-92-К-5 [11:58:08]line 3.040 * 65.80 [11:58:08]line = 200.03 [11:58:08]line НДС 12% НСП 1% [11:58:08]line > о реализуемом товаре [11:58:08]line ОКРУГЛЕНИЕ: -0.03 [11:58:08]line ИТОГО: 200.00 [11:58:08]line Внесено: 200.00 [11:58:08]line СДАЧА: 0.00 [11:58:08]line НСП 1% : 1.77 [11:58:08]line НДС 12% : 21.24 [11:58:08]line Наличными: 200.00 [11:58:08]line Безнал.: 0.00 [11:58:08]line Место: АЗС № 72 "Партнер Нефть" [11:58:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:58:08]line СНО: Общий режим [11:58:08]line Чек 104 12.07.2024 11:58 [11:58:08]line Смена: 445 ФФД: 1.0 [11:58:08]line ЗНМ: 0300000160 [11:58:08]line РНМ: 0000000000090829 [11:58:08]line Версия ККМ: 001 [11:58:08]line ФМ: 0000000000874718 [11:58:08]line ФД: 164183 [11:58:08]line ФПД: 180129201867815 [11:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115808&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164183&fm=180129201867815&tin=02508201610067®Number=0000000000090829&sum=20000 [11:58:09]written 0, free lines is 4095 [11:58:09]OFD Sender: Processing packet 164183 [packets to send 104, broken 103] [11:58:09]ProducePacketName [11:58:09]name=ofd_packets/00164183 [11:58:09]OFD Sender: To server: pG, [11:58:09]CommunicateWithHost lk.salyk.kg:30040 [11:58:09]ConnectInit lk.salyk.kg [11:58:09]Connected sock=10 [11:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F0 E1 07 01 3A D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 68 00 00 00 F4 03 04 00 50 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 81 02 00 35 04 06 00 A3 D3 99 17 4C 27 96 13 EE FB F2 D6 21 A2 [11:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B 3B 47 00 8B 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 34 37 31 38 10 04 04 00 57 81 02 00 F4 03 04 00 E4 C0 90 66 B6 04 01 00 00 50 06 74 82 12 27 34 38 [11:58:09]CommunicateWithHost err = 0 [11:58:09]CheckOFDResponse [11:58:09]1017 (14) - 77093643461234 [11:58:09]1041 (16) - 0000000000874718 [11:58:09]1040 (4) - 164183 [11:58:09]1012 (4) - 12.07.2024 05:36 [11:58:09]1206 (1) - 0 [11:58:09]OFD Sender: Remove packet 164183 [11:58:09]ProducePacketName [11:58:09]name=ofd_packets/00164183 [11:58:09]NVStorageDeleteData [11:58:09]Write to MH i2c: 01 00 00 00 13 13 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 07 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 07 00 00 13 00 00 00 00 00 EE 0C 14 [11:58:09]RasterBufferAndPrint [11:58:09]line [11:58:09]line [11:58:09]line [11:58:09]line [11:58:09]line [11:58:09]written 0, free lines is 3316 [11:58:09]MH_Cut [11:58:09]Write to MH i2c: D1 01 00 07 13 01 EC [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: D1 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: D1 01 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: D1 01 00 07 13 00 EB [11:58:09]Write to MH i2c: 01 00 00 08 13 1B [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:10]OFD Sender: No OFD packet to send [11:58:10]*** Cut start [11:58:10]*** Partial cut [11:58:10]*** CUTSNS_PIN = 1 [11:58:10]*** CUTSNS_PIN = 0 [11:58:10]*** Brake cut motor [11:58:10]Read from MH i2c: 01 [11:58:10]MH_I2C_Read... [11:58:10]*** Stop cut motor [11:58:10]*** Cut end [11:58:10]Read from MH i2c: 01 07 00 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: 01 07 00 08 13 00 00 00 00 00 FF 0F 30 [11:58:10]process_action close_receipt done [11:58:10]requested_data is exist [11:58:10]produce_requested_data [11:58:10]requested_item fm.sn is exist - process it [11:58:10]wFMCommunicate request_size=4 [11:58:10]MH_SAM_APDU [11:58:10]CAPDU: 80 11 00 00 [11:58:10]Write to MH i2c: E2 08 00 09 13 80 11 00 00 00 00 00 00 96 [11:58:10]Write i2c OK [11:58:10]MH_I2C_Read... [11:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:11]Read from MH i2c: E2 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 17 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 17 00 09 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [11:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:11]wFMCommunicate OK [11:58:11]requested_item fd.num is exist - process it [11:58:11]SAM_PROTO_GetFieldsCounters [11:58:11]wFMCommunicate request_size=4 [11:58:11]MH_SAM_APDU [11:58:11]CAPDU: 80 13 00 00 [11:58:11]Write to MH i2c: E2 08 00 0A 13 80 13 00 00 00 00 00 00 99 [11:58:11]Write i2c OK [11:58:11]MH_I2C_Read... [11:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:11]Read from MH i2c: E2 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 62 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 62 00 0A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [11:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:11]wFMCommunicate OK [11:58:11]SAM_PROTO_GetFieldsCounters done [11:58:11]requested_item shift.num is exist - process it [11:58:11]requested_item shift.opened is exist - process it [11:58:11]req_shift_opened [11:58:11]FM_GetShiftState [11:58:11]SAM_PROTO_GetShiftState [11:58:11]wFMCommunicate request_size=4 [11:58:11]MH_SAM_APDU [11:58:11]CAPDU: 80 13 01 00 [11:58:11]Write to MH i2c: E2 08 00 0B 13 80 13 01 00 00 00 00 00 9B [11:58:11]Write i2c OK [11:58:11]MH_I2C_Read... [11:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:11]Read from MH i2c: E2 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 0E 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 0E 00 0B 13 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E5 [11:58:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:58:11]wFMCommunicate OK [11:58:11]SAM_PROTO_GetShiftState done [11:58:11]FM_GetShiftState done [11:58:11]req_shift_opened done [11:58:11]requested_item shift.open_date is exist - process it [11:58:11]req_shift_open_date [11:58:11]req_shift_open_date done [11:58:11]produce_requested_data done [11:58:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164183,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:58:11]process_action_free close_receipt [11:58:11]json_value_free [11:58:11]json_value_free done [11:58:11]process_json_proto returns [11:58:11]Send response to host [11:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164183,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:58:11]free response buf [11:58:11]execute_script done [11:58:11]execute_script returns [11:58:11]free content buf [11:58:11]Sock 7.Close socket [11:58:11]Sock 7.Thread stoped [11:58:11]accept exits with 9 [11:58:11]New connection [11:58:11]New thread 3066707300 created [11:58:11]Thread 3066850660 joined [11:58:11]Waiting for new connection... [11:58:11] Sock 9.Parse request [11:58:11]Sock 9.Check first char [11:58:11]Sock 9.First char is OK [11:58:11]request: POST /json_proto HTTP/1.0 [11:58:11]Method: POST [11:58:11]URL: /json_proto [11:58:11]Method is POST - this is cgi request [11:58:11]url: /json_proto [11:58:11]query_string will be loaded in cgi processing [11:58:11]execute_cgi json_proto POST (null) [11:58:11]execute_cgi path=json_proto method=POST [11:58:11]POST find Content-Length [11:58:11]Host: 172.17.56.4:8080 [11:58:11]Content-Length: 674 [11:58:11]Content-Type: application/json [11:58:11] [11:58:11]POST finish read [11:58:11]Found Content-Length = 674 [11:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458267", "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" : 71.90, "quantity" : 4.760, "sum" : 342.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 342.00, "total" : 342.00, "payments": [ { "type": 0, "sum" : 342.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:11]execute_script... [11:58: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)458267", "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" : 71.90, "quantity" : 4.760, "sum" : 342.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 342.00, "total" : 342.00, "payments": [ { "type": 0, "sum" : 342.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:11]POST & json_proto [11:58:11]process_json_proto [11:58:11]json parsed OK: [11:58:11]protocol is kg_v1.0 [11:58:11]action value=close_receipt [11:58:11]process_action close_receipt [11:58:11]cmd_close_receipt [11:58:11]MH_GetDate [11:58:11]Write to MH i2c: F0 00 00 0C 13 0E [11:58:11]Write i2c OK [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: F0 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: F0 09 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: F0 09 00 0C 13 00 54 1A 91 66 C9 DC B2 64 37 [11:58:11]GetLastDocTimeStamp 1720785488 [11:58:11]current date 1720785492 [11:58:11]FM_GetShiftState [11:58:11]SAM_PROTO_GetShiftState [11:58:11]wFMCommunicate request_size=4 [11:58:11]MH_SAM_APDU [11:58:11]CAPDU: 80 13 01 00 [11:58:11]Write to MH i2c: E2 08 00 0D 13 80 13 01 00 00 00 00 00 9D [11:58:11]Write i2c OK [11:58:11]MH_I2C_Read... [11:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:11]Read from MH i2c: E2 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 0E 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 0E 00 0D 13 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E7 [11:58:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:58:11]wFMCommunicate OK [11:58:11]SAM_PROTO_GetShiftState done [11:58:11]FM_GetShiftState done [11:58:11]opened in 1720744654 [11:58:11]opened+sec_in_day 1720831054 [11:58:11]quantity*price = 34224 [11:58:11]sum+1 = 34225 [11:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 342.00 Внесено: 342.00 СДАЧА: 0.00 НСП 1% : 3.03 НДС 12% : 36.34 Наличными: 342.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 105 12.07.2024 11:58 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164184 ФПД: 103819552719349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115812&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164184&fm=103819552719349&tin=02508201610067®Number=0000000000090829&sum=34200 [11:58:13]StoreToDocumentArchive [11:58:13]shift 445 fd 164184 [11:58:13]save to /storage/0445/doc_00164184 [11:58:13]save last doc name /storage/0445/doc_00164184 to /storage/kkm_last_doc_name [11:58:13]save OK [11:58:13]Clear old archive folders... [11:58:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:58:13]tlvbuf is 00A87900 [11:58:13]SAM_PROTO_ClearQueue [11:58:13]wFMCommunicate request_size=4 [11:58:13]MH_SAM_APDU [11:58:13]CAPDU: 80 09 00 00 [11:58:13]Write to MH i2c: E2 08 00 1A 13 80 09 00 00 00 00 00 00 9F [11:58:13]Write i2c OK [11:58:13]MH_I2C_Read... [11:58:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:13]Read from MH i2c: E2 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 03 00 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 03 00 1A 13 00 90 00 A1 [11:58:13]RAPDU: 90 00 [11:58:13]wFMCommunicate OK [11:58:13]SAM_PROTO_ClearQueue done [11:58:13]KKMCreateOFDPacket [11:58:13]OFDProtocolAddRootSTLVToBuf [11:58:13]FM_MakeSignedData [11:58:13]FM_MakeSignedData [11:58:13]SAM_PROTO_SignData [11:58:13]wFMCommunicate request_size=4 [11:58:13]MH_SAM_APDU [11:58:13]CAPDU: 80 0D 01 02 [11:58:13]Write to MH i2c: E2 08 00 1B 13 80 0D 01 02 00 00 00 00 A7 [11:58:13]Write i2c OK [11:58:13]MH_I2C_Read... [11:58:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:13]Read from MH i2c: E2 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 03 00 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [11:58:13]RAPDU: 90 00 [11:58:13]wFMCommunicate OK [11:58:13]wFMCommunicate request_size=255 [11:58:13]MH_SAM_APDU [11:58: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 98 12 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B0 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 54 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 81 02 00 35 04 06 00 5E 6C 5F 8F [11:58:13]Write to MH i2c: E2 02 01 1C 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 12 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B0 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 54 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 81 02 00 35 04 06 00 5E 6C 5F 8F 00 00 E4 [11:58:13]Write i2c OK [11:58:13]MH_I2C_Read... [11:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:13]Read from MH i2c: E2 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 03 00 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [11:58:13]RAPDU: 90 00 [11:58:13]wFMCommunicate OK [11:58:13]wFMCommunicate request_size=7 [11:58:13]MH_SAM_APDU [11:58:13]CAPDU: 80 0D 02 02 02 81 F5 [11:58:13]Write to MH i2c: E2 0A 00 1D 13 80 0D 02 02 02 00 81 F5 00 00 24 [11:58:13]Write i2c OK [11:58:13]MH_I2C_Read... [11:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:13]Read from MH i2c: E2 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 03 00 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [11:58:13]RAPDU: 90 00 [11:58:13]wFMCommunicate OK [11:58:13]wFMCommunicate request_size=4 [11:58:13]MH_SAM_APDU [11:58:13]CAPDU: 80 0D 03 02 [11:58:13]Write to MH i2c: E2 08 00 1E 13 80 0D 03 02 00 00 00 00 AC [11:58:13]Write i2c OK [11:58:13]MH_I2C_Read... [11:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:13]Read from MH i2c: E2 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 0B 00 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 0B 00 1E 13 00 6E 0D 13 C2 7C 73 03 46 90 00 35 [11:58:13]RAPDU: 6E 0D 13 C2 7C 73 03 46 90 00 [11:58:13]wFMCommunicate OK [11:58:13]SAM_PROTO_SignData done [11:58:13]FM_MakeSignedData done [11:58:13]CreateOFDProtocolMessage [11:58:13]wFMCommunicate request_size=4 [11:58:13]MH_SAM_APDU [11:58:13]CAPDU: 80 11 00 00 [11:58:13]Write to MH i2c: E2 08 00 1F 13 80 11 00 00 00 00 00 00 AC [11:58:13]Write i2c OK [11:58:13]MH_I2C_Read... [11:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:13]Read from MH i2c: E2 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 17 00 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: E2 17 00 1F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [11:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:13]wFMCommunicate OK [11:58:13]CreateOFDProtocolMessage done [11:58:13]OFDSenderStorePacket 164184 [11:58:13]StoreOFDPacket docnum=164184 [11:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0D 64 04 01 4A 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 98 12 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B0 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 54 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 81 02 00 35 04 06 00 5E 6C 5F 8F 81 F5 6E 0D 13 C2 7C 73 03 46 [11:58:13]CheckFolder [11:58:13]dirname=/storage/ofd_packets [11:58:13]CheckFolder done [11:58:13]ProducePacketName [11:58:13]name=ofd_packets/00164184 [11:58:13]NVStorageSaveData ofd_packets/00164184 [11:58:13]File name is /storage/ofd_packets/00164184 [11:58:13]Write 298 bytes [11:58:13]NVStorageSaveData done [11:58:13]OFDSenderStorePacket done [11:58:13]KKMCreateOFDPacket done [11:58:13]NVStorageSaveData kkm_last_timestamp [11:58:13]File name is /storage/kkm_last_timestamp [11:58:13]Write 4 bytes [11:58:13]NVStorageSaveData done [11:58:13]ExternCall_PrintAddStr [11:58:13]wPrintStart [11:58:13]Write to MH i2c: 01 00 00 20 13 33 [11:58:13]Write i2c OK [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: 01 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: 01 07 00 [11:58:13]MH_I2C_Read... [11:58:13]Read from MH i2c: 01 07 00 20 13 00 00 00 00 00 FF 0F 48 [11:58:13]RasterBufferAndPrint [11:58:13]line Счет N : (1)458267 [11:58:13]line ИНН: 02508201610067 [11:58:13]line Контрольно-Кассовый Чек [11:58:13]line ПРОДАЖА [11:58:13]line ТРК (МРК, ГНК) : 21 [11:58:13]line Товар: 2710194210 [11:58:13]line ДТ-К-5 [11:58:13]line 4.760 * 71.90 [11:58:13]line = 342.24 [11:58:13]line НДС 12% НСП 1% [11:58:13]line > о реализуемом товаре [11:58:13]line ОКРУГЛЕНИЕ: -0.24 [11:58:13]line ИТОГО: 342.00 [11:58:13]line Внесено: 342.00 [11:58:13]line СДАЧА: 0.00 [11:58:13]line НСП 1% : 3.03 [11:58:13]line НДС 12% : 36.34 [11:58:13]line Наличными: 342.00 [11:58:13]line Безнал.: 0.00 [11:58:13]line Место: АЗС № 72 "Партнер Нефть" [11:58:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:58:13]line СНО: Общий режим [11:58:13]line Чек 105 12.07.2024 11:58 [11:58:14]line Смена: 445 ФФД: 1.0 [11:58:14]line ЗНМ: 0300000160 [11:58:14]line РНМ: 0000000000090829 [11:58:14]line Версия ККМ: 001 [11:58:14]line ФМ: 0000000000874718 [11:58:14]line ФД: 164184 [11:58:14]line ФПД: 103819552719349 [11:58:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115812&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164184&fm=103819552719349&tin=02508201610067®Number=0000000000090829&sum=34200 [11:58:14]OFD Sender: Processing packet 164184 [packets to send 104, broken 103] [11:58:14]ProducePacketName [11:58:14]name=ofd_packets/00164184 [11:58:14]OFD Sender: To server: pG, [11:58:14]CommunicateWithHost lk.salyk.kg:30040 [11:58:14]ConnectInit lk.salyk.kg [11:58:14]written 0, free lines is 4095 [11:58:14]Connected sock=11 [11:58:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0D 64 04 01 4A 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 98 12 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B0 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 54 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 81 02 00 35 04 06 00 5E 6C 5F 8F 81 F5 6E 0D 13 C2 7C 73 03 46 [11:58:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 21 59 47 00 1A 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 81 02 00 F4 03 04 00 E9 C0 90 66 B6 04 01 00 00 AF FC FC EF D6 E8 80 7F [11:58:14]CommunicateWithHost err = 0 [11:58:14]CheckOFDResponse [11:58:14]1017 (14) - 77093643461234 [11:58:14]1041 (16) - 0000000000874718 [11:58:14]1040 (4) - 164184 [11:58:14]1012 (4) - 12.07.2024 05:36 [11:58:14]1206 (1) - 0 [11:58:14]OFD Sender: Remove packet 164184 [11:58:14]ProducePacketName [11:58:14]name=ofd_packets/00164184 [11:58:14]NVStorageDeleteData [11:58:14]Write to MH i2c: 01 00 00 4A 13 5D [11:58:14]Write i2c OK [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: 01 [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: 01 07 00 [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: 01 07 00 4A 13 00 00 00 00 00 07 0D 78 [11:58:14]RasterBufferAndPrint [11:58:14]line [11:58:14]line [11:58:14]line [11:58:14]line [11:58:14]line [11:58:14]written 0, free lines is 3344 [11:58:14]MH_Cut [11:58:14]Write to MH i2c: D1 01 00 51 13 01 36 [11:58:14]Write i2c OK [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: D1 [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: D1 01 00 [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: D1 01 00 51 13 00 35 [11:58:14]Write to MH i2c: 01 00 00 52 13 65 [11:58:14]Write i2c OK [11:58:14]MH_I2C_Read... [11:58:14]OFD Sender: No OFD packet to send [11:58:15]*** Cut start [11:58:15]*** Partial cut [11:58:15]*** CUTSNS_PIN = 1 [11:58:15]*** CUTSNS_PIN = 0 [11:58:15]*** Brake cut motor [11:58:15]Read from MH i2c: 01 [11:58:15]MH_I2C_Read... [11:58:15]*** Stop cut motor [11:58:15]*** Cut end [11:58:15]Read from MH i2c: 01 07 00 [11:58:15]MH_I2C_Read... [11:58:15]Read from MH i2c: 01 07 00 52 13 00 00 00 00 00 FF 0F 7A [11:58:15]process_action close_receipt done [11:58:15]requested_data is exist [11:58:15]produce_requested_data [11:58:15]requested_item fm.sn is exist - process it [11:58:15]wFMCommunicate request_size=4 [11:58:15]MH_SAM_APDU [11:58:15]CAPDU: 80 11 00 00 [11:58:15]Write to MH i2c: E2 08 00 53 13 80 11 00 00 00 00 00 00 E0 [11:58:15]Write i2c OK [11:58:15]MH_I2C_Read... [11:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:15]Read from MH i2c: E2 [11:58:15]MH_I2C_Read... [11:58:15]Read from MH i2c: E2 17 00 [11:58:15]MH_I2C_Read... [11:58:15]Read from MH i2c: E2 17 00 53 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [11:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:15]wFMCommunicate OK [11:58:15]requested_item fd.num is exist - process it [11:58:15]SAM_PROTO_GetFieldsCounters [11:58:15]wFMCommunicate request_size=4 [11:58:15]MH_SAM_APDU [11:58:15]CAPDU: 80 13 00 00 [11:58:15]Write to MH i2c: E2 08 00 54 13 80 13 00 00 00 00 00 00 E3 [11:58:15]Write i2c OK [11:58:15]MH_I2C_Read... [11:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:16]Read from MH i2c: E2 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 62 00 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 62 00 54 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [11:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:16]wFMCommunicate OK [11:58:16]SAM_PROTO_GetFieldsCounters done [11:58:16]requested_item shift.num is exist - process it [11:58:16]requested_item shift.opened is exist - process it [11:58:16]req_shift_opened [11:58:16]FM_GetShiftState [11:58:16]SAM_PROTO_GetShiftState [11:58:16]wFMCommunicate request_size=4 [11:58:16]MH_SAM_APDU [11:58:16]CAPDU: 80 13 01 00 [11:58:16]Write to MH i2c: E2 08 00 55 13 80 13 01 00 00 00 00 00 E5 [11:58:16]Write i2c OK [11:58:16]MH_I2C_Read... [11:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:16]Read from MH i2c: E2 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 0E 00 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 0E 00 55 13 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2F [11:58:16]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:58:16]wFMCommunicate OK [11:58:16]SAM_PROTO_GetShiftState done [11:58:16]FM_GetShiftState done [11:58:16]req_shift_opened done [11:58:16]requested_item shift.open_date is exist - process it [11:58:16]req_shift_open_date [11:58:16]req_shift_open_date done [11:58:16]produce_requested_data done [11:58:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164184,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:58:16]process_action_free close_receipt [11:58:16]json_value_free [11:58:16]json_value_free done [11:58:16]process_json_proto returns [11:58:16]Send response to host [11:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164184,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:58:16]free response buf [11:58:16]execute_script done [11:58:16]execute_script returns [11:58:16]free content buf [11:58:16]Sock 9.Close socket [11:58:16]Sock 9.Thread stoped [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]accept exits with 7 [11:59:04]New connection [11:59:04]New thread 3066850660 created [11:59:04]Thread 3066707300 joined [11:59:04]Waiting for new connection... [11:59:04] Sock 7.Parse request [11:59:04]Sock 7.Check first char [11:59:04]Sock 7.First char is OK [11:59:04]request: POST /json_proto HTTP/1.0 [11:59:04]Method: POST [11:59:04]URL: /json_proto [11:59:04]Method is POST - this is cgi request [11:59:04]url: /json_proto [11:59:04]query_string will be loaded in cgi processing [11:59:04]execute_cgi json_proto POST (null) [11:59:04]execute_cgi path=json_proto method=POST [11:59:04]POST find Content-Length [11:59:04]Host: 172.17.56.4:8080 [11:59:04]Content-Length: 678 [11:59:04]Content-Type: application/json [11:59:04] [11:59:04]POST finish read [11:59:04]Found Content-Length = 678 [11:59:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:04]execute_script... [11:59: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)458268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:04]POST & json_proto [11:59:04]process_json_proto [11:59:04]json parsed OK: [11:59:04]protocol is kg_v1.0 [11:59:04]action value=close_receipt [11:59:04]process_action close_receipt [11:59:04]cmd_close_receipt [11:59:04]MH_GetDate [11:59:04]Write to MH i2c: F0 00 00 56 13 58 [11:59:04]Write i2c OK [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: F0 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: F0 09 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: F0 09 00 56 13 00 89 1A 91 66 C9 DC B2 64 B6 [11:59:04]GetLastDocTimeStamp 1720785492 [11:59:04]current date 1720785545 [11:59:04]FM_GetShiftState [11:59:04]SAM_PROTO_GetShiftState [11:59:04]wFMCommunicate request_size=4 [11:59:04]MH_SAM_APDU [11:59:04]CAPDU: 80 13 01 00 [11:59:04]Write to MH i2c: E2 08 00 57 13 80 13 01 00 00 00 00 00 E7 [11:59:04]Write i2c OK [11:59:04]MH_I2C_Read... [11:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:04]Read from MH i2c: E2 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 0E 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 0E 00 57 13 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 31 [11:59:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:59:04]wFMCommunicate OK [11:59:04]SAM_PROTO_GetShiftState done [11:59:04]FM_GetShiftState done [11:59:04]opened in 1720744654 [11:59:04]opened+sec_in_day 1720831054 [11:59:04]quantity*price = 66063 [11:59:04]sum+1 = 66064 [11:59:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 106 12.07.2024 11:59 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164185 ФПД: 48439786123223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115905&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164185&fm=48439786123223&tin=02508201610067®Number=0000000000090829&sum=66000 [11:59:05]StoreToDocumentArchive [11:59:05]shift 445 fd 164185 [11:59:05]save to /storage/0445/doc_00164185 [11:59:05]save last doc name /storage/0445/doc_00164185 to /storage/kkm_last_doc_name [11:59:05]save OK [11:59:05]Clear old archive folders... [11:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:05]tlvbuf is 009FDB80 [11:59:05]SAM_PROTO_ClearQueue [11:59:05]wFMCommunicate request_size=4 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 09 00 00 [11:59:05]Write to MH i2c: E2 08 00 64 13 80 09 00 00 00 00 00 00 E9 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 64 13 00 90 00 EB [11:59:05]RAPDU: 90 00 [11:59:05]wFMCommunicate OK [11:59:05]SAM_PROTO_ClearQueue done [11:59:05]KKMCreateOFDPacket [11:59:05]OFDProtocolAddRootSTLVToBuf [11:59:05]FM_MakeSignedData [11:59:05]FM_MakeSignedData [11:59:05]SAM_PROTO_SignData [11:59:05]wFMCommunicate request_size=4 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 0D 01 02 [11:59:05]Write to MH i2c: E2 08 00 65 13 80 0D 01 02 00 00 00 00 F1 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [11:59:05]RAPDU: 90 00 [11:59:05]wFMCommunicate OK [11:59:05]wFMCommunicate request_size=255 [11:59:05]MH_SAM_APDU [11:59: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 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 89 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 81 02 00 35 04 06 00 2C [11:59:05]Write to MH i2c: E2 02 01 66 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 89 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 81 02 00 35 04 06 00 2C 00 00 7A [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [11:59:05]RAPDU: 90 00 [11:59:05]wFMCommunicate OK [11:59:05]wFMCommunicate request_size=10 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 0D 02 02 05 0E 44 3E AF D7 [11:59:05]Write to MH i2c: E2 0D 00 67 13 80 0D 02 02 05 00 0E 44 3E AF D7 00 00 14 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [11:59:05]RAPDU: 90 00 [11:59:05]wFMCommunicate OK [11:59:05]wFMCommunicate request_size=4 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 0D 03 02 [11:59:05]Write to MH i2c: E2 08 00 68 13 80 0D 03 02 00 00 00 00 F6 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 0B 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 0B 00 68 13 00 AF 14 AD 4A 99 AC 1F 70 90 00 85 [11:59:05]RAPDU: AF 14 AD 4A 99 AC 1F 70 90 00 [11:59:05]wFMCommunicate OK [11:59:05]SAM_PROTO_SignData done [11:59:05]FM_MakeSignedData done [11:59:05]CreateOFDProtocolMessage [11:59:05]wFMCommunicate request_size=4 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 11 00 00 [11:59:05]Write to MH i2c: E2 08 00 69 13 80 11 00 00 00 00 00 00 F6 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:06]Read from MH i2c: E2 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: E2 17 00 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: E2 17 00 69 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [11:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:59:06]wFMCommunicate OK [11:59:06]CreateOFDProtocolMessage done [11:59:06]OFDSenderStorePacket 164185 [11:59:06]StoreOFDPacket docnum=164185 [11:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 19 01 07 01 78 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 89 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 81 02 00 35 04 06 00 2C 0E 44 3E AF D7 AF 14 AD 4A 99 AC 1F 70 [11:59:06]CheckFolder [11:59:06]dirname=/storage/ofd_packets [11:59:06]CheckFolder done [11:59:06]ProducePacketName [11:59:06]name=ofd_packets/00164185 [11:59:06]NVStorageSaveData ofd_packets/00164185 [11:59:06]File name is /storage/ofd_packets/00164185 [11:59:06]Write 301 bytes [11:59:06]NVStorageSaveData done [11:59:06]OFDSenderStorePacket done [11:59:06]KKMCreateOFDPacket done [11:59:06]NVStorageSaveData kkm_last_timestamp [11:59:06]File name is /storage/kkm_last_timestamp [11:59:06]Write 4 bytes [11:59:06]NVStorageSaveData done [11:59:06]ExternCall_PrintAddStr [11:59:06]wPrintStart [11:59:06]Write to MH i2c: 01 00 00 6A 13 7D [11:59:06]Write i2c OK [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: 01 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: 01 07 00 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: 01 07 00 6A 13 00 00 00 00 00 FF 0F 92 [11:59:06]RasterBufferAndPrint [11:59:06]line Счет N : (1)458268 [11:59:06]line ИНН: 02508201610067 [11:59:06]line Контрольно-Кассовый Чек [11:59:06]line ПРОДАЖА [11:59:06]line ТРК (МРК, ГНК) : 22 [11:59:06]line Товар: 2710124130 [11:59:06]line Аи-92-К-5 [11:59:06]line 10.040 * 65.80 [11:59:06]line = 660.63 [11:59:06]line НДС 12% НСП 1% [11:59:06]line > о реализуемом товаре [11:59:06]line ОКРУГЛЕНИЕ: -0.63 [11:59:06]line ИТОГО: 660.00 [11:59:06]line Внесено: 660.00 [11:59:06]line СДАЧА: 0.00 [11:59:06]line НСП 1% : 5.85 [11:59:06]line НДС 12% : 70.15 [11:59:06]line Наличными: 660.00 [11:59:06]line Безнал.: 0.00 [11:59:06]line Место: АЗС № 72 "Партнер Нефть" [11:59:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:59:06]line СНО: Общий режим [11:59:06]line Чек 106 12.07.2024 11:59 [11:59:06]line Смена: 445 ФФД: 1.0 [11:59:06]line ЗНМ: 0300000160 [11:59:06]line РНМ: 0000000000090829 [11:59:06]line Версия ККМ: 001 [11:59:06]line ФМ: 0000000000874718 [11:59:06]line ФД: 164185 [11:59:06]line ФПД: 48439786123223 [11:59:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T115905&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164185&fm=48439786123223&tin=02508201610067®Number=0000000000090829&sum=66000 [11:59:06]OFD Sender: Processing packet 164185 [packets to send 104, broken 103] [11:59:06]ProducePacketName [11:59:06]name=ofd_packets/00164185 [11:59:06]OFD Sender: To server: pG, [11:59:06]CommunicateWithHost lk.salyk.kg:30040 [11:59:06]ConnectInit lk.salyk.kg [11:59:06]written 0, free lines is 4095 [11:59:06]Connected sock=10 [11:59:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 19 01 07 01 78 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 89 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 81 02 00 35 04 06 00 2C 0E 44 3E AF D7 AF 14 AD 4A 99 AC 1F 70 [11:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AB 38 47 00 27 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 34 37 31 38 10 04 04 00 59 81 02 00 F4 03 04 00 1D C1 90 66 B6 04 01 00 00 54 FF 1B 94 9B 1C 74 96 [11:59:06]CommunicateWithHost err = 0 [11:59:06]CheckOFDResponse [11:59:06]1017 (14) - 77093643461234 [11:59:06]1041 (16) - 0000000000874718 [11:59:06]1040 (4) - 164185 [11:59:06]1012 (4) - 12.07.2024 05:37 [11:59:06]1206 (1) - 0 [11:59:06]OFD Sender: Remove packet 164185 [11:59:06]ProducePacketName [11:59:06]name=ofd_packets/00164185 [11:59:06]NVStorageDeleteData [11:59:06]Write to MH i2c: 01 00 00 94 13 A7 [11:59:06]Write i2c OK [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: 01 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: 01 07 00 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 F2 0C AC [11:59:06]RasterBufferAndPrint [11:59:06]line [11:59:06]line [11:59:06]line [11:59:06]line [11:59:06]line [11:59:06]written 0, free lines is 3320 [11:59:06]MH_Cut [11:59:06]Write to MH i2c: D1 01 00 9B 13 01 80 [11:59:06]Write i2c OK [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: D1 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: D1 01 00 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: D1 01 00 9B 13 00 7F [11:59:06]Write to MH i2c: 01 00 00 9C 13 AF [11:59:06]Write i2c OK [11:59:06]MH_I2C_Read... [11:59:07]OFD Sender: No OFD packet to send [11:59:07]*** Cut start [11:59:07]*** Partial cut [11:59:07]*** CUTSNS_PIN = 1 [11:59:07]*** CUTSNS_PIN = 0 [11:59:07]*** Brake cut motor [11:59:08]Read from MH i2c: 01 [11:59:08]MH_I2C_Read... [11:59:08]*** Stop cut motor [11:59:08]*** Cut end [11:59:08]Read from MH i2c: 01 07 00 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [11:59:08]process_action close_receipt done [11:59:08]requested_data is exist [11:59:08]produce_requested_data [11:59:08]requested_item fm.sn is exist - process it [11:59:08]wFMCommunicate request_size=4 [11:59:08]MH_SAM_APDU [11:59:08]CAPDU: 80 11 00 00 [11:59:08]Write to MH i2c: E2 08 00 9D 13 80 11 00 00 00 00 00 00 2A [11:59:08]Write i2c OK [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: E2 [11:59:08]MH_I2C_Read... [11:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:08]Read from MH i2c: E2 17 00 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: E2 17 00 9D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [11:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:59:08]wFMCommunicate OK [11:59:08]requested_item fd.num is exist - process it [11:59:08]SAM_PROTO_GetFieldsCounters [11:59:08]wFMCommunicate request_size=4 [11:59:08]MH_SAM_APDU [11:59:08]CAPDU: 80 13 00 00 [11:59:08]Write to MH i2c: E2 08 00 9E 13 80 13 00 00 00 00 00 00 2D [11:59:08]Write i2c OK [11:59:08]MH_I2C_Read... [11:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:08]Read from MH i2c: E2 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: E2 62 00 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: E2 62 00 9E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [11:59: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:08]wFMCommunicate OK [11:59:08]SAM_PROTO_GetFieldsCounters done [11:59:08]requested_item shift.num is exist - process it [11:59:08]requested_item shift.opened is exist - process it [11:59:08]req_shift_opened [11:59:08]FM_GetShiftState [11:59:08]SAM_PROTO_GetShiftState [11:59:08]wFMCommunicate request_size=4 [11:59:08]MH_SAM_APDU [11:59:08]CAPDU: 80 13 01 00 [11:59:08]Write to MH i2c: E2 08 00 9F 13 80 13 01 00 00 00 00 00 2F [11:59:08]Write i2c OK [11:59:08]MH_I2C_Read... [11:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:08]Read from MH i2c: E2 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: E2 0E 00 [11:59:08]MH_I2C_Read... [11:59:08]Read from MH i2c: E2 0E 00 9F 13 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 79 [11:59:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [11:59:08]wFMCommunicate OK [11:59:08]SAM_PROTO_GetShiftState done [11:59:08]FM_GetShiftState done [11:59:08]req_shift_opened done [11:59:08]requested_item shift.open_date is exist - process it [11:59:08]req_shift_open_date [11:59:08]req_shift_open_date done [11:59:08]produce_requested_data done [11:59:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164185,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [11:59:08]process_action_free close_receipt [11:59:08]json_value_free [11:59:08]json_value_free done [11:59:08]process_json_proto returns [11:59:08]Send response to host [11:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164185,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [11:59:08]free response buf [11:59:08]execute_script done [11:59:08]execute_script returns [11:59:08]free content buf [11:59:08]Sock 7.Close socket [11:59:08]Sock 7.Thread stoped [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:13]accept exits with 9 [12:00:13]New connection [12:00:13]New thread 3066707300 created [12:00:13]Thread 3066850660 joined [12:00:13]Waiting for new connection... [12:00:13] Sock 9.Parse request [12:00:13]Sock 9.Check first char [12:00:13]Sock 9.First char is OK [12:00:13]request: POST /json_proto HTTP/1.0 [12:00:13]Method: POST [12:00:13]URL: /json_proto [12:00:13]Method is POST - this is cgi request [12:00:13]url: /json_proto [12:00:13]query_string will be loaded in cgi processing [12:00:13]execute_cgi json_proto POST (null) [12:00:13]execute_cgi path=json_proto method=POST [12:00:13]POST find Content-Length [12:00:13]Host: 172.17.56.4:8080 [12:00:13]Content-Length: 841 [12:00:13]Content-Type: application/json [12:00:13] [12:00:13]POST finish read [12:00:13]Found Content-Length = 841 [12:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:13]execute_script... [12:00: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)458269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:13]POST & json_proto [12:00:13]process_json_proto [12:00:13]json parsed OK: [12:00:13]protocol is kg_v1.0 [12:00:13]action value=close_receipt [12:00:13]process_action close_receipt [12:00:13]cmd_close_receipt [12:00:13]MH_GetDate [12:00:13]Write to MH i2c: F0 00 00 A0 13 A2 [12:00:13]Write i2c OK [12:00:13]MH_I2C_Read... [12:00:13]Read from MH i2c: F0 [12:00:13]MH_I2C_Read... [12:00:13]Read from MH i2c: F0 09 00 [12:00:13]MH_I2C_Read... [12:00:13]Read from MH i2c: F0 09 00 A0 13 00 CE 1A 91 66 C9 DC B2 64 45 [12:00:13]GetLastDocTimeStamp 1720785545 [12:00:13]current date 1720785614 [12:00:13]FM_GetShiftState [12:00:13]SAM_PROTO_GetShiftState [12:00:13]wFMCommunicate request_size=4 [12:00:13]MH_SAM_APDU [12:00:13]CAPDU: 80 13 01 00 [12:00:13]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [12:00:13]Write i2c OK [12:00:13]MH_I2C_Read... [12:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:13]Read from MH i2c: E2 [12:00:13]MH_I2C_Read... [12:00:13]Read from MH i2c: E2 0E 00 [12:00:13]MH_I2C_Read... [12:00:13]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7B [12:00:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:00:13]wFMCommunicate OK [12:00:13]SAM_PROTO_GetShiftState done [12:00:13]FM_GetShiftState done [12:00:13]opened in 1720744654 [12:00:13]opened+sec_in_day 1720831054 [12:00:13]quantity*price = 65220 [12:00:13]sum+1 = 65221 [12:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 107 12.07.2024 12:00 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164186 ФПД: 276920489862803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120014&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164186&fm=276920489862803&tin=02508201610067®Number=0000000000090829&sum=65220 [12:00:14]StoreToDocumentArchive [12:00:14]shift 445 fd 164186 [12:00:14]save to /storage/0445/doc_00164186 [12:00:14]save last doc name /storage/0445/doc_00164186 to /storage/kkm_last_doc_name [12:00:14]save OK [12:00:14]Clear old archive folders... [12:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:14]tlvbuf is 009FA160 [12:00:14]SAM_PROTO_ClearQueue [12:00:14]wFMCommunicate request_size=4 [12:00:14]MH_SAM_APDU [12:00:14]CAPDU: 80 09 00 00 [12:00:14]Write to MH i2c: E2 08 00 AE 13 80 09 00 00 00 00 00 00 33 [12:00:14]Write i2c OK [12:00:14]MH_I2C_Read... [12:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:14]Read from MH i2c: E2 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 03 00 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [12:00:14]RAPDU: 90 00 [12:00:14]wFMCommunicate OK [12:00:14]SAM_PROTO_ClearQueue done [12:00:14]KKMCreateOFDPacket [12:00:14]OFDProtocolAddRootSTLVToBuf [12:00:14]FM_MakeSignedData [12:00:14]FM_MakeSignedData [12:00:14]SAM_PROTO_SignData [12:00:14]wFMCommunicate request_size=4 [12:00:14]MH_SAM_APDU [12:00:14]CAPDU: 80 0D 01 02 [12:00:14]Write to MH i2c: E2 08 00 AF 13 80 0D 01 02 00 00 00 00 3B [12:00:14]Write i2c OK [12:00:14]MH_I2C_Read... [12:00:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:14]Read from MH i2c: E2 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 03 00 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [12:00:14]RAPDU: 90 00 [12:00:14]wFMCommunicate OK [12:00:14]wFMCommunicate request_size=255 [12:00:14]MH_SAM_APDU [12:00: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CE 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 81 02 00 35 04 06 00 FB [12:00:14]Write to MH i2c: E2 02 01 B0 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CE 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 81 02 00 35 04 06 00 FB 00 00 A7 [12:00:14]Write i2c OK [12:00:14]MH_I2C_Read... [12:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:14]Read from MH i2c: E2 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 03 00 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [12:00:14]RAPDU: 90 00 [12:00:14]wFMCommunicate OK [12:00:14]wFMCommunicate request_size=10 [12:00:14]MH_SAM_APDU [12:00:14]CAPDU: 80 0D 02 02 05 DB 93 6D E6 93 [12:00:14]Write to MH i2c: E2 0D 00 B1 13 80 0D 02 02 05 00 DB 93 6D E6 93 00 00 9C [12:00:14]Write i2c OK [12:00:14]MH_I2C_Read... [12:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:14]Read from MH i2c: E2 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 03 00 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [12:00:14]RAPDU: 90 00 [12:00:14]wFMCommunicate OK [12:00:14]wFMCommunicate request_size=4 [12:00:14]MH_SAM_APDU [12:00:14]CAPDU: 80 0D 03 02 [12:00:14]Write to MH i2c: E2 08 00 B2 13 80 0D 03 02 00 00 00 00 40 [12:00:14]Write i2c OK [12:00:14]MH_I2C_Read... [12:00:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:14]Read from MH i2c: E2 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 0B 00 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 0B 00 B2 13 00 B0 5C 1A 90 58 5A 53 40 90 00 3C [12:00:14]RAPDU: B0 5C 1A 90 58 5A 53 40 90 00 [12:00:14]wFMCommunicate OK [12:00:14]SAM_PROTO_SignData done [12:00:14]FM_MakeSignedData done [12:00:14]CreateOFDProtocolMessage [12:00:14]wFMCommunicate request_size=4 [12:00:14]MH_SAM_APDU [12:00:14]CAPDU: 80 11 00 00 [12:00:14]Write to MH i2c: E2 08 00 B3 13 80 11 00 00 00 00 00 00 40 [12:00:14]Write i2c OK [12:00:14]MH_I2C_Read... [12:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:14]Read from MH i2c: E2 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 17 00 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: E2 17 00 B3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [12:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:00:14]wFMCommunicate OK [12:00:14]CreateOFDProtocolMessage done [12:00:14]OFDSenderStorePacket 164186 [12:00:14]StoreOFDPacket docnum=164186 [12:00:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D5 D9 07 01 49 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 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CE 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 81 02 00 35 04 06 00 FB DB 93 6D E6 93 B0 5C 1A 90 58 5A 53 40 [12:00:14]CheckFolder [12:00:14]dirname=/storage/ofd_packets [12:00:14]CheckFolder done [12:00:14]ProducePacketName [12:00:14]name=ofd_packets/00164186 [12:00:14]NVStorageSaveData ofd_packets/00164186 [12:00:14]File name is /storage/ofd_packets/00164186 [12:00:14]Write 301 bytes [12:00:14]NVStorageSaveData done [12:00:14]OFDSenderStorePacket done [12:00:14]KKMCreateOFDPacket done [12:00:14]NVStorageSaveData kkm_last_timestamp [12:00:14]File name is /storage/kkm_last_timestamp [12:00:14]Write 4 bytes [12:00:14]NVStorageSaveData done [12:00:14]ExternCall_PrintAddStr [12:00:14]wPrintStart [12:00:14]Write to MH i2c: 01 00 00 B4 13 C7 [12:00:14]Write i2c OK [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: 01 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: 01 07 00 [12:00:14]MH_I2C_Read... [12:00:14]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [12:00:14]RasterBufferAndPrint [12:00:14]line Счет N : (1)458269 [12:00:14]line ИНН: 02508201610067 [12:00:14]line Контрольно-Кассовый Чек [12:00:14]line ПРОДАЖА [12:00:14]line ТРК (МРК, ГНК) : 12 [12:00:14]line Товар: 2710124130 [12:00:14]line Аи-92-К-5 [12:00:14]line 10.000 * 65.22 [12:00:14]line = 652.20 [12:00:14]line НДС 12% НСП 1% [12:00:14]line > о реализуемом товаре [12:00:14]line ИТОГО: 652.20 [12:00:14]line НСП 1% : 5.77 [12:00:14]line НДС 12% : 69.26 [12:00:14]line Наличными: 0.00 [12:00:14]line Безнал.: 652.20 [12:00:14]line Место: АЗС № 72 "Партнер Нефть" [12:00:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:00:14]line СНО: Общий режим [12:00:14]line Чек 107 12.07.2024 12:00 [12:00:14]line Смена: 445 ФФД: 1.0 [12:00:14]line ЗНМ: 0300000160 [12:00:14]line РНМ: 0000000000090829 [12:00:14]line Версия ККМ: 001 [12:00:14]line Платежная система: АКБ Кыргызстан [12:00:14]line ФМ: 0000000000874718 [12:00:14]line ФД: 164186 [12:00:14]line ФПД: 276920489862803 [12:00:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120014&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164186&fm=276920489862803&tin=02508201610067®Number=0000000000090829&sum=65220 [12:00:14]written 0, free lines is 4095 [12:00:14]OFD Sender: Processing packet 164186 [packets to send 104, broken 103] [12:00:14]ProducePacketName [12:00:14]name=ofd_packets/00164186 [12:00:14]OFD Sender: To server: pG, [12:00:14]CommunicateWithHost lk.salyk.kg:30040 [12:00:14]ConnectInit lk.salyk.kg [12:00:15]Connected sock=10 [12:00:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D5 D9 07 01 49 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 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CE 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 81 02 00 35 04 06 00 FB DB 93 6D E6 93 B0 5C 1A 90 58 5A 53 40 [12:00:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E9 E5 47 00 0B 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 34 37 31 38 10 04 04 00 5A 81 02 00 F4 03 04 00 62 C1 90 66 B6 04 01 00 00 42 74 3B BA 88 7E C9 E4 [12:00:15]CommunicateWithHost err = 0 [12:00:15]CheckOFDResponse [12:00:15]1017 (14) - 77093643461234 [12:00:15]1041 (16) - 0000000000874718 [12:00:15]1040 (4) - 164186 [12:00:15]1012 (4) - 12.07.2024 05:38 [12:00:15]1206 (1) - 0 [12:00:15]OFD Sender: Remove packet 164186 [12:00:15]ProducePacketName [12:00:15]name=ofd_packets/00164186 [12:00:15]NVStorageDeleteData [12:00:15]Write to MH i2c: 01 00 00 DD 13 F0 [12:00:15]Write i2c OK [12:00:15]MH_I2C_Read... [12:00:15]Read from MH i2c: 01 [12:00:15]MH_I2C_Read... [12:00:15]Read from MH i2c: 01 07 00 [12:00:15]MH_I2C_Read... [12:00:15]Read from MH i2c: 01 07 00 DD 13 00 00 00 00 00 11 0D 15 [12:00:15]RasterBufferAndPrint [12:00:15]line [12:00:15]line [12:00:15]line [12:00:15]line [12:00:15]line [12:00:15]written 0, free lines is 3351 [12:00:15]MH_Cut [12:00:15]Write to MH i2c: D1 01 00 E4 13 01 C9 [12:00:15]Write i2c OK [12:00:15]MH_I2C_Read... [12:00:15]Read from MH i2c: D1 [12:00:15]MH_I2C_Read... [12:00:15]Read from MH i2c: D1 01 00 [12:00:15]MH_I2C_Read... [12:00:15]Read from MH i2c: D1 01 00 E4 13 00 C8 [12:00:15]Write to MH i2c: 01 00 00 E5 13 F8 [12:00:15]Write i2c OK [12:00:15]MH_I2C_Read... [12:00:15]OFD Sender: No OFD packet to send [12:00:16]*** Cut start [12:00:16]*** Partial cut [12:00:16]*** CUTSNS_PIN = 1 [12:00:16]*** CUTSNS_PIN = 0 [12:00:16]*** Brake cut motor [12:00:16]Read from MH i2c: 01 [12:00:16]MH_I2C_Read... [12:00:16]*** Stop cut motor [12:00:16]*** Cut end [12:00:16]Read from MH i2c: 01 07 00 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: 01 07 00 E5 13 00 00 00 00 00 FF 0F 0D [12:00:16]process_action close_receipt done [12:00:16]requested_data is exist [12:00:16]produce_requested_data [12:00:16]requested_item fm.sn is exist - process it [12:00:16]wFMCommunicate request_size=4 [12:00:16]MH_SAM_APDU [12:00:16]CAPDU: 80 11 00 00 [12:00:16]Write to MH i2c: E2 08 00 E6 13 80 11 00 00 00 00 00 00 73 [12:00:16]Write i2c OK [12:00:16]MH_I2C_Read... [12:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:16]Read from MH i2c: E2 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: E2 17 00 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: E2 17 00 E6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [12:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:00:16]wFMCommunicate OK [12:00:16]requested_item fd.num is exist - process it [12:00:16]SAM_PROTO_GetFieldsCounters [12:00:16]wFMCommunicate request_size=4 [12:00:16]MH_SAM_APDU [12:00:16]CAPDU: 80 13 00 00 [12:00:16]Write to MH i2c: E2 08 00 E7 13 80 13 00 00 00 00 00 00 76 [12:00:16]Write i2c OK [12:00:16]MH_I2C_Read... [12:00:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:16]Read from MH i2c: E2 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: E2 62 00 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: E2 62 00 E7 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [12:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:16]wFMCommunicate OK [12:00:16]SAM_PROTO_GetFieldsCounters done [12:00:16]requested_item shift.num is exist - process it [12:00:16]requested_item shift.opened is exist - process it [12:00:16]req_shift_opened [12:00:16]FM_GetShiftState [12:00:16]SAM_PROTO_GetShiftState [12:00:16]wFMCommunicate request_size=4 [12:00:16]MH_SAM_APDU [12:00:16]CAPDU: 80 13 01 00 [12:00:16]Write to MH i2c: E2 08 00 E8 13 80 13 01 00 00 00 00 00 78 [12:00:16]Write i2c OK [12:00:16]MH_I2C_Read... [12:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:16]Read from MH i2c: E2 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: E2 0E 00 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: E2 0E 00 E8 13 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C2 [12:00:16]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:00:16]wFMCommunicate OK [12:00:16]SAM_PROTO_GetShiftState done [12:00:16]FM_GetShiftState done [12:00:16]req_shift_opened done [12:00:16]requested_item shift.open_date is exist - process it [12:00:16]req_shift_open_date [12:00:16]req_shift_open_date done [12:00:16]produce_requested_data done [12:00:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164186,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:00:16]process_action_free close_receipt [12:00:16]json_value_free [12:00:16]json_value_free done [12:00:16]process_json_proto returns [12:00:16]Send response to host [12:00:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164186,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:00:16]free response buf [12:00:16]execute_script done [12:00:16]execute_script returns [12:00:16]free content buf [12:00:16]Sock 9.Close socket [12:00:16]Sock 9.Thread stoped [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:36]accept exits with 7 [12:00:36]New connection [12:00:36]New thread 3066850660 created [12:00:36]Thread 3066707300 joined [12:00:36]Waiting for new connection... [12:00:36] Sock 7.Parse request [12:00:36]Sock 7.Check first char [12:00:36]Sock 7.First char is OK [12:00:36]request: POST /json_proto HTTP/1.0 [12:00:36]Method: POST [12:00:36]URL: /json_proto [12:00:36]Method is POST - this is cgi request [12:00:36]url: /json_proto [12:00:36]query_string will be loaded in cgi processing [12:00:36]execute_cgi json_proto POST (null) [12:00:36]execute_cgi path=json_proto method=POST [12:00:36]POST find Content-Length [12:00:36]Host: 172.17.56.4:8080 [12:00:36]Content-Length: 679 [12:00:36]Content-Type: application/json [12:00:36] [12:00:36]POST finish read [12:00:36]Found Content-Length = 679 [12:00:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:36]execute_script... [12:00: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)458270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:36]POST & json_proto [12:00:36]process_json_proto [12:00:36]json parsed OK: [12:00:36]protocol is kg_v1.0 [12:00:36]action value=close_receipt [12:00:36]process_action close_receipt [12:00:36]cmd_close_receipt [12:00:36]MH_GetDate [12:00:36]Write to MH i2c: F0 00 00 E9 13 EB [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: F0 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: F0 09 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: F0 09 00 E9 13 00 E6 1A 91 66 C9 DC B2 64 A6 [12:00:36]GetLastDocTimeStamp 1720785614 [12:00:36]current date 1720785638 [12:00:36]FM_GetShiftState [12:00:36]SAM_PROTO_GetShiftState [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 13 01 00 [12:00:36]Write to MH i2c: E2 08 00 EA 13 80 13 01 00 00 00 00 00 7A [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 EA 13 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C4 [12:00:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:00:36]wFMCommunicate OK [12:00:36]SAM_PROTO_GetShiftState done [12:00:36]FM_GetShiftState done [12:00:36]opened in 1720744654 [12:00:36]opened+sec_in_day 1720831054 [12:00:36]quantity*price = 100012 [12:00:36]sum+1 = 100014 [12:00:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 108 12.07.2024 12:00 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164187 ФПД: 118325074506416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164187&fm=118325074506416&tin=02508201610067®Number=0000000000090829&sum=100000 [12:00:38]StoreToDocumentArchive [12:00:38]shift 445 fd 164187 [12:00:38]save to /storage/0445/doc_00164187 [12:00:38]save last doc name /storage/0445/doc_00164187 to /storage/kkm_last_doc_name [12:00:38]save OK [12:00:38]Clear old archive folders... [12:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:00:38]tlvbuf is 00A1EEE0 [12:00:38]SAM_PROTO_ClearQueue [12:00:38]wFMCommunicate request_size=4 [12:00:38]MH_SAM_APDU [12:00:38]CAPDU: 80 09 00 00 [12:00:38]Write to MH i2c: E2 08 00 F7 13 80 09 00 00 00 00 00 00 7C [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:38]Read from MH i2c: E2 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 03 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 03 00 F7 13 00 90 00 7E [12:00:38]RAPDU: 90 00 [12:00:38]wFMCommunicate OK [12:00:38]SAM_PROTO_ClearQueue done [12:00:38]KKMCreateOFDPacket [12:00:38]OFDProtocolAddRootSTLVToBuf [12:00:38]FM_MakeSignedData [12:00:38]FM_MakeSignedData [12:00:38]SAM_PROTO_SignData [12:00:38]wFMCommunicate request_size=4 [12:00:38]MH_SAM_APDU [12:00:38]CAPDU: 80 0D 01 02 [12:00:38]Write to MH i2c: E2 08 00 F8 13 80 0D 01 02 00 00 00 00 84 [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:38]Read from MH i2c: E2 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 03 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [12:00:38]RAPDU: 90 00 [12:00:38]wFMCommunicate OK [12:00:38]wFMCommunicate request_size=255 [12:00:38]MH_SAM_APDU [12:00: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E6 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 81 02 00 35 04 06 00 6B 9D B4 08 [12:00:38]Write to MH i2c: E2 02 01 F9 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E6 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 81 02 00 35 04 06 00 6B 9D B4 08 00 00 08 [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:38]Read from MH i2c: E2 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 03 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [12:00:38]RAPDU: 90 00 [12:00:38]wFMCommunicate OK [12:00:38]wFMCommunicate request_size=7 [12:00:38]MH_SAM_APDU [12:00:38]CAPDU: 80 0D 02 02 02 B2 B0 [12:00:38]Write to MH i2c: E2 0A 00 FA 13 80 0D 02 02 02 00 B2 B0 00 00 ED [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:38]Read from MH i2c: E2 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 03 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [12:00:38]RAPDU: 90 00 [12:00:38]wFMCommunicate OK [12:00:38]wFMCommunicate request_size=4 [12:00:38]MH_SAM_APDU [12:00:38]CAPDU: 80 0D 03 02 [12:00:38]Write to MH i2c: E2 08 00 FB 13 80 0D 03 02 00 00 00 00 89 [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:38]Read from MH i2c: E2 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 0B 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 0B 00 FB 13 00 70 B2 91 F2 45 73 8B 83 90 00 F5 [12:00:38]RAPDU: 70 B2 91 F2 45 73 8B 83 90 00 [12:00:38]wFMCommunicate OK [12:00:38]SAM_PROTO_SignData done [12:00:38]FM_MakeSignedData done [12:00:38]CreateOFDProtocolMessage [12:00:38]wFMCommunicate request_size=4 [12:00:38]MH_SAM_APDU [12:00:38]CAPDU: 80 11 00 00 [12:00:38]Write to MH i2c: E2 08 00 FC 13 80 11 00 00 00 00 00 00 89 [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:38]Read from MH i2c: E2 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 17 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 17 00 FC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [12:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:00:38]wFMCommunicate OK [12:00:38]CreateOFDProtocolMessage done [12:00:38]OFDSenderStorePacket 164187 [12:00:38]StoreOFDPacket docnum=164187 [12:00:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 29 B5 04 01 A9 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E6 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 81 02 00 35 04 06 00 6B 9D B4 08 B2 B0 70 B2 91 F2 45 73 8B 83 [12:00:38]CheckFolder [12:00:38]dirname=/storage/ofd_packets [12:00:38]CheckFolder done [12:00:38]ProducePacketName [12:00:38]name=ofd_packets/00164187 [12:00:38]NVStorageSaveData ofd_packets/00164187 [12:00:38]File name is /storage/ofd_packets/00164187 [12:00:38]Write 298 bytes [12:00:38]NVStorageSaveData done [12:00:38]OFDSenderStorePacket done [12:00:38]KKMCreateOFDPacket done [12:00:38]NVStorageSaveData kkm_last_timestamp [12:00:38]File name is /storage/kkm_last_timestamp [12:00:38]Write 4 bytes [12:00:38]NVStorageSaveData done [12:00:38]ExternCall_PrintAddStr [12:00:38]wPrintStart [12:00:38]Write to MH i2c: 01 00 00 FD 13 10 [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: 01 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: 01 07 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: 01 07 00 FD 13 00 00 00 00 00 FF 0F 25 [12:00:38]RasterBufferAndPrint [12:00:38]line Счет N : (1)458270 [12:00:38]line ИНН: 02508201610067 [12:00:38]line Контрольно-Кассовый Чек [12:00:38]line ПРОДАЖА [12:00:38]line ТРК (МРК, ГНК) : 11 [12:00:38]line Товар: 2710194210 [12:00:38]line ДТ-К-5 [12:00:38]line 13.910 * 71.90 [12:00:38]line = 1000.13 [12:00:38]line НДС 12% НСП 1% [12:00:38]line > о реализуемом товаре [12:00:38]line ОКРУГЛЕНИЕ: -0.13 [12:00:38]line ИТОГО: 1000.00 [12:00:38]line Внесено: 1000.00 [12:00:38]line СДАЧА: 0.00 [12:00:38]line НСП 1% : 8.85 [12:00:38]line НДС 12% : 106.21 [12:00:38]line Наличными: 1000.00 [12:00:38]line Безнал.: 0.00 [12:00:38]line Место: АЗС № 72 "Партнер Нефть" [12:00:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:00:38]line СНО: Общий режим [12:00:38]line Чек 108 12.07.2024 12:00 [12:00:38]line Смена: 445 ФФД: 1.0 [12:00:38]line ЗНМ: 0300000160 [12:00:38]line РНМ: 0000000000090829 [12:00:38]line Версия ККМ: 001 [12:00:38]line ФМ: 0000000000874718 [12:00:38]line ФД: 164187 [12:00:38]line ФПД: 118325074506416 [12:00:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164187&fm=118325074506416&tin=02508201610067®Number=0000000000090829&sum=100000 [12:00:38]OFD Sender: Processing packet 164187 [packets to send 104, broken 103] [12:00:38]ProducePacketName [12:00:38]name=ofd_packets/00164187 [12:00:38]OFD Sender: To server: pG, [12:00:38]CommunicateWithHost lk.salyk.kg:30040 [12:00:38]ConnectInit lk.salyk.kg [12:00:38]written 0, free lines is 4095 [12:00:39]Connected sock=10 [12:00:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 29 B5 04 01 A9 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E6 1A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 81 02 00 35 04 06 00 6B 9D B4 08 B2 B0 70 B2 91 F2 45 73 8B 83 [12:00:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BD 78 47 00 2B 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 81 02 00 F4 03 04 00 7A C1 90 66 B6 04 01 00 00 98 15 C8 33 64 D2 30 67 [12:00:39]CommunicateWithHost err = 0 [12:00:39]CheckOFDResponse [12:00:39]1017 (14) - 77093643461234 [12:00:39]1041 (16) - 0000000000874718 [12:00:39]1040 (4) - 164187 [12:00:39]1012 (4) - 12.07.2024 05:39 [12:00:39]1206 (1) - 0 [12:00:39]OFD Sender: Remove packet 164187 [12:00:39]ProducePacketName [12:00:39]name=ofd_packets/00164187 [12:00:39]NVStorageDeleteData [12:00:39]Write to MH i2c: 01 00 00 27 14 3B [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: 01 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: 01 07 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: 01 07 00 27 14 00 00 00 00 00 FB 0C 49 [12:00:39]RasterBufferAndPrint [12:00:39]line [12:00:39]line [12:00:39]line [12:00:39]line [12:00:39]line [12:00:39]written 0, free lines is 3329 [12:00:39]MH_Cut [12:00:39]Write to MH i2c: D1 01 00 2E 14 01 14 [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: D1 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: D1 01 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: D1 01 00 2E 14 00 13 [12:00:39]Write to MH i2c: 01 00 00 2F 14 43 [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]OFD Sender: No OFD packet to send [12:00:40]*** Cut start [12:00:40]*** Partial cut [12:00:40]*** CUTSNS_PIN = 1 [12:00:40]*** CUTSNS_PIN = 0 [12:00:40]*** Brake cut motor [12:00:40]Read from MH i2c: 01 [12:00:40]MH_I2C_Read... [12:00:40]*** Stop cut motor [12:00:40]*** Cut end [12:00:40]Read from MH i2c: 01 07 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 FF 0F 58 [12:00:40]process_action close_receipt done [12:00:40]requested_data is exist [12:00:40]produce_requested_data [12:00:40]requested_item fm.sn is exist - process it [12:00:40]wFMCommunicate request_size=4 [12:00:40]MH_SAM_APDU [12:00:40]CAPDU: 80 11 00 00 [12:00:40]Write to MH i2c: E2 08 00 30 14 80 11 00 00 00 00 00 00 BE [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:40]Read from MH i2c: E2 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 17 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 17 00 30 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [12:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:00:40]wFMCommunicate OK [12:00:40]requested_item fd.num is exist - process it [12:00:40]SAM_PROTO_GetFieldsCounters [12:00:40]wFMCommunicate request_size=4 [12:00:40]MH_SAM_APDU [12:00:40]CAPDU: 80 13 00 00 [12:00:40]Write to MH i2c: E2 08 00 31 14 80 13 00 00 00 00 00 00 C1 [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:40]Read from MH i2c: E2 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 62 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 62 00 31 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [12:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:40]wFMCommunicate OK [12:00:40]SAM_PROTO_GetFieldsCounters done [12:00:40]requested_item shift.num is exist - process it [12:00:40]requested_item shift.opened is exist - process it [12:00:40]req_shift_opened [12:00:40]FM_GetShiftState [12:00:40]SAM_PROTO_GetShiftState [12:00:40]wFMCommunicate request_size=4 [12:00:40]MH_SAM_APDU [12:00:40]CAPDU: 80 13 01 00 [12:00:40]Write to MH i2c: E2 08 00 32 14 80 13 01 00 00 00 00 00 C3 [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:40]Read from MH i2c: E2 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 0E 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 0E 00 32 14 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0D [12:00:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:00:40]wFMCommunicate OK [12:00:40]SAM_PROTO_GetShiftState done [12:00:40]FM_GetShiftState done [12:00:40]req_shift_opened done [12:00:40]requested_item shift.open_date is exist - process it [12:00:40]req_shift_open_date [12:00:40]req_shift_open_date done [12:00:40]produce_requested_data done [12:00:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164187,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:00:40]process_action_free close_receipt [12:00:40]json_value_free [12:00:40]json_value_free done [12:00:40]process_json_proto returns [12:00:40]Send response to host [12:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164187,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:00:40]free response buf [12:00:40]execute_script done [12:00:40]execute_script returns [12:00:40]free content buf [12:00:40]Sock 7.Close socket [12:00:40]Sock 7.Thread stoped [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:20]accept exits with 9 [12:01:20]New connection [12:01:20]New thread 3066707300 created [12:01:20]Thread 3066850660 joined [12:01:20]Waiting for new connection... [12:01:20] Sock 9.Parse request [12:01:20]Sock 9.Check first char [12:01:20]Sock 9.First char is OK [12:01:20]request: POST /json_proto HTTP/1.0 [12:01:20]Method: POST [12:01:20]URL: /json_proto [12:01:20]Method is POST - this is cgi request [12:01:20]url: /json_proto [12:01:20]query_string will be loaded in cgi processing [12:01:20]execute_cgi json_proto POST (null) [12:01:20]execute_cgi path=json_proto method=POST [12:01:20]POST find Content-Length [12:01:20]Host: 172.17.56.4:8080 [12:01:20]Content-Length: 677 [12:01:20]Content-Type: application/json [12:01:20] [12:01:20]POST finish read [12:01:20]Found Content-Length = 677 [12:01:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "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:01:20]execute_script... [12:01: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)458271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "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:01:20]POST & json_proto [12:01:20]process_json_proto [12:01:20]json parsed OK: [12:01:20]protocol is kg_v1.0 [12:01:20]action value=close_receipt [12:01:20]process_action close_receipt [12:01:20]cmd_close_receipt [12:01:20]MH_GetDate [12:01:20]Write to MH i2c: F0 00 00 33 14 36 [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: F0 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: F0 09 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: F0 09 00 33 14 00 11 1B 91 66 C9 DC B2 64 1D [12:01:20]GetLastDocTimeStamp 1720785638 [12:01:20]current date 1720785681 [12:01:20]FM_GetShiftState [12:01:20]SAM_PROTO_GetShiftState [12:01:20]wFMCommunicate request_size=4 [12:01:20]MH_SAM_APDU [12:01:20]CAPDU: 80 13 01 00 [12:01:20]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:20]Read from MH i2c: E2 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 0E 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0F [12:01:20]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:01:20]wFMCommunicate OK [12:01:20]SAM_PROTO_GetShiftState done [12:01:20]FM_GetShiftState done [12:01:20]opened in 1720744654 [12:01:20]opened+sec_in_day 1720831054 [12:01:20]quantity*price = 65010 [12:01:20]sum+1 = 65011 [12:01:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.04 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 109 12.07.2024 12:01 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164188 ФПД: 61068481152366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164188&fm=61068481152366&tin=02508201610067®Number=0000000000090829&sum=65000 [12:01:21]StoreToDocumentArchive [12:01:21]shift 445 fd 164188 [12:01:21]save to /storage/0445/doc_00164188 [12:01:21]save last doc name /storage/0445/doc_00164188 to /storage/kkm_last_doc_name [12:01:21]save OK [12:01:21]Clear old archive folders... [12:01:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:21]tlvbuf is 00A48920 [12:01:21]SAM_PROTO_ClearQueue [12:01:21]wFMCommunicate request_size=4 [12:01:21]MH_SAM_APDU [12:01:21]CAPDU: 80 09 00 00 [12:01:21]Write to MH i2c: E2 08 00 41 14 80 09 00 00 00 00 00 00 C7 [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 03 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [12:01:21]RAPDU: 90 00 [12:01:21]wFMCommunicate OK [12:01:21]SAM_PROTO_ClearQueue done [12:01:21]KKMCreateOFDPacket [12:01:21]OFDProtocolAddRootSTLVToBuf [12:01:21]FM_MakeSignedData [12:01:21]FM_MakeSignedData [12:01:21]SAM_PROTO_SignData [12:01:21]wFMCommunicate request_size=4 [12:01:21]MH_SAM_APDU [12:01:21]CAPDU: 80 0D 01 02 [12:01:21]Write to MH i2c: E2 08 00 42 14 80 0D 01 02 00 00 00 00 CF [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 03 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 03 00 42 14 00 90 00 CA [12:01:21]RAPDU: 90 00 [12:01:21]wFMCommunicate OK [12:01:21]wFMCommunicate request_size=255 [12:01:21]MH_SAM_APDU [12:01: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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 6D 00 00 00 F4 03 04 00 11 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 81 02 00 35 04 06 00 37 [12:01:21]Write to MH i2c: E2 02 01 43 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 6D 00 00 00 F4 03 04 00 11 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 81 02 00 35 04 06 00 37 00 00 DA [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 03 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [12:01:21]RAPDU: 90 00 [12:01:21]wFMCommunicate OK [12:01:21]wFMCommunicate request_size=10 [12:01:21]MH_SAM_APDU [12:01:21]CAPDU: 80 0D 02 02 05 8A 9D 20 45 6E [12:01:21]Write to MH i2c: E2 0D 00 44 14 80 0D 02 02 05 00 8A 9D 20 45 6E 00 00 D6 [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 03 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [12:01:21]RAPDU: 90 00 [12:01:21]wFMCommunicate OK [12:01:21]wFMCommunicate request_size=4 [12:01:21]MH_SAM_APDU [12:01:21]CAPDU: 80 0D 03 02 [12:01:21]Write to MH i2c: E2 08 00 45 14 80 0D 03 02 00 00 00 00 D4 [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 0B 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 0B 00 45 14 00 70 1D 21 06 C6 E7 7F 6A 90 00 1F [12:01:21]RAPDU: 70 1D 21 06 C6 E7 7F 6A 90 00 [12:01:21]wFMCommunicate OK [12:01:21]SAM_PROTO_SignData done [12:01:21]FM_MakeSignedData done [12:01:21]CreateOFDProtocolMessage [12:01:21]wFMCommunicate request_size=4 [12:01:21]MH_SAM_APDU [12:01:21]CAPDU: 80 11 00 00 [12:01:21]Write to MH i2c: E2 08 00 46 14 80 11 00 00 00 00 00 00 D4 [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 17 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 17 00 46 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2A [12:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:01:21]wFMCommunicate OK [12:01:21]CreateOFDProtocolMessage done [12:01:21]OFDSenderStorePacket 164188 [12:01:21]StoreOFDPacket docnum=164188 [12:01:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6F 36 07 01 55 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 6D 00 00 00 F4 03 04 00 11 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 81 02 00 35 04 06 00 37 8A 9D 20 45 6E 70 1D 21 06 C6 E7 7F 6A [12:01:21]CheckFolder [12:01:21]dirname=/storage/ofd_packets [12:01:21]CheckFolder done [12:01:21]ProducePacketName [12:01:21]name=ofd_packets/00164188 [12:01:21]NVStorageSaveData ofd_packets/00164188 [12:01:21]File name is /storage/ofd_packets/00164188 [12:01:21]Write 301 bytes [12:01:21]NVStorageSaveData done [12:01:21]OFDSenderStorePacket done [12:01:21]KKMCreateOFDPacket done [12:01:21]NVStorageSaveData kkm_last_timestamp [12:01:21]File name is /storage/kkm_last_timestamp [12:01:21]Write 4 bytes [12:01:21]NVStorageSaveData done [12:01:21]ExternCall_PrintAddStr [12:01:21]wPrintStart [12:01:21]Write to MH i2c: 01 00 00 47 14 5B [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: 01 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: 01 07 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: 01 07 00 47 14 00 00 00 00 00 FF 0F 70 [12:01:21]RasterBufferAndPrint [12:01:21]line Счет N : (1)458271 [12:01:21]line ИНН: 02508201610067 [12:01:21]line Контрольно-Кассовый Чек [12:01:21]line ПРОДАЖА [12:01:21]line ТРК (МРК, ГНК) : 22 [12:01:21]line Товар: 2710124130 [12:01:21]line Аи-92-К-5 [12:01:21]line 9.880 * 65.80 [12:01:21]line = 650.10 [12:01:21]line НДС 12% НСП 1% [12:01:21]line > о реализуемом товаре [12:01:21]line ОКРУГЛЕНИЕ: -0.10 [12:01:21]line ИТОГО: 650.00 [12:01:21]line Внесено: 650.00 [12:01:21]line СДАЧА: 0.00 [12:01:21]line НСП 1% : 5.75 [12:01:21]line НДС 12% : 69.04 [12:01:21]line Наличными: 650.00 [12:01:21]line Безнал.: 0.00 [12:01:21]line Место: АЗС № 72 "Партнер Нефть" [12:01:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:01:21]line СНО: Общий режим [12:01:21]line Чек 109 12.07.2024 12:01 [12:01:21]line Смена: 445 ФФД: 1.0 [12:01:21]line ЗНМ: 0300000160 [12:01:21]line РНМ: 0000000000090829 [12:01:21]line Версия ККМ: 001 [12:01:21]line ФМ: 0000000000874718 [12:01:21]line ФД: 164188 [12:01:21]line ФПД: 61068481152366 [12:01:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164188&fm=61068481152366&tin=02508201610067®Number=0000000000090829&sum=65000 [12:01:22]OFD Sender: Processing packet 164188 [packets to send 104, broken 103] [12:01:22]ProducePacketName [12:01:22]name=ofd_packets/00164188 [12:01:22]OFD Sender: To server: pG, [12:01:22]CommunicateWithHost lk.salyk.kg:30040 [12:01:22]ConnectInit lk.salyk.kg [12:01:22]written 0, free lines is 4095 [12:01:22]Connected sock=10 [12:01:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6F 36 07 01 55 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 6D 00 00 00 F4 03 04 00 11 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 81 02 00 35 04 06 00 37 8A 9D 20 45 6E 70 1D 21 06 C6 E7 7F 6A [12:01:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A1 D9 47 00 13 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 34 37 31 38 10 04 04 00 5C 81 02 00 F4 03 04 00 A5 C1 90 66 B6 04 01 00 00 30 26 C3 36 16 B3 AE 0C [12:01:22]CommunicateWithHost err = 0 [12:01:22]CheckOFDResponse [12:01:22]1017 (14) - 77093643461234 [12:01:22]1041 (16) - 0000000000874718 [12:01:22]1040 (4) - 164188 [12:01:22]1012 (4) - 12.07.2024 05:39 [12:01:22]1206 (1) - 0 [12:01:22]OFD Sender: Remove packet 164188 [12:01:22]ProducePacketName [12:01:22]name=ofd_packets/00164188 [12:01:22]NVStorageDeleteData [12:01:22]Write to MH i2c: 01 00 00 71 14 85 [12:01:22]Write i2c OK [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: 01 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: 01 07 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: 01 07 00 71 14 00 00 00 00 00 F3 0C 8B [12:01:22]RasterBufferAndPrint [12:01:22]line [12:01:22]line [12:01:22]line [12:01:22]line [12:01:22]line [12:01:22]written 0, free lines is 3325 [12:01:22]MH_Cut [12:01:22]Write to MH i2c: D1 01 00 78 14 01 5E [12:01:22]Write i2c OK [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: D1 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: D1 01 00 [12:01:22]MH_I2C_Read... [12:01:22]Read from MH i2c: D1 01 00 78 14 00 5D [12:01:22]Write to MH i2c: 01 00 00 79 14 8D [12:01:22]Write i2c OK [12:01:22]MH_I2C_Read... [12:01:23]OFD Sender: No OFD packet to send [12:01:23]*** Cut start [12:01:23]*** Partial cut [12:01:23]*** CUTSNS_PIN = 1 [12:01:23]*** CUTSNS_PIN = 0 [12:01:23]*** Brake cut motor [12:01:23]Read from MH i2c: 01 [12:01:23]MH_I2C_Read... [12:01:23]*** Stop cut motor [12:01:23]*** Cut end [12:01:23]Read from MH i2c: 01 07 00 [12:01:23]MH_I2C_Read... [12:01:23]Read from MH i2c: 01 07 00 79 14 00 00 00 00 00 FF 0F A2 [12:01:23]process_action close_receipt done [12:01:23]requested_data is exist [12:01:23]produce_requested_data [12:01:23]requested_item fm.sn is exist - process it [12:01:23]wFMCommunicate request_size=4 [12:01:23]MH_SAM_APDU [12:01:23]CAPDU: 80 11 00 00 [12:01:23]Write to MH i2c: E2 08 00 7A 14 80 11 00 00 00 00 00 00 08 [12:01:23]Write i2c OK [12:01:23]MH_I2C_Read... [12:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:24]Read from MH i2c: E2 [12:01:24]MH_I2C_Read... [12:01:24]Read from MH i2c: E2 17 00 [12:01:24]MH_I2C_Read... [12:01:24]Read from MH i2c: E2 17 00 7A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [12:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:01:24]wFMCommunicate OK [12:01:24]requested_item fd.num is exist - process it [12:01:24]SAM_PROTO_GetFieldsCounters [12:01:24]wFMCommunicate request_size=4 [12:01:24]MH_SAM_APDU [12:01:24]CAPDU: 80 13 00 00 [12:01:24]Write to MH i2c: E2 08 00 7B 14 80 13 00 00 00 00 00 00 0B [12:01:24]Write i2c OK [12:01:24]MH_I2C_Read... [12:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:24]Read from MH i2c: E2 [12:01:24]MH_I2C_Read... [12:01:24]Read from MH i2c: E2 62 00 [12:01:24]MH_I2C_Read... [12:01:24]Read from MH i2c: E2 62 00 7B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [12:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:24]wFMCommunicate OK [12:01:24]SAM_PROTO_GetFieldsCounters done [12:01:24]requested_item shift.num is exist - process it [12:01:24]requested_item shift.opened is exist - process it [12:01:24]req_shift_opened [12:01:24]FM_GetShiftState [12:01:24]SAM_PROTO_GetShiftState [12:01:24]wFMCommunicate request_size=4 [12:01:24]MH_SAM_APDU [12:01:24]CAPDU: 80 13 01 00 [12:01:24]Write to MH i2c: E2 08 00 7C 14 80 13 01 00 00 00 00 00 0D [12:01:24]Write i2c OK [12:01:24]MH_I2C_Read... [12:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:24]Read from MH i2c: E2 [12:01:24]MH_I2C_Read... [12:01:24]Read from MH i2c: E2 0E 00 [12:01:24]MH_I2C_Read... [12:01:24]Read from MH i2c: E2 0E 00 7C 14 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 57 [12:01:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:01:24]wFMCommunicate OK [12:01:24]SAM_PROTO_GetShiftState done [12:01:24]FM_GetShiftState done [12:01:24]req_shift_opened done [12:01:24]requested_item shift.open_date is exist - process it [12:01:24]req_shift_open_date [12:01:24]req_shift_open_date done [12:01:24]produce_requested_data done [12:01:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164188,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:01:24]process_action_free close_receipt [12:01:24]json_value_free [12:01:24]json_value_free done [12:01:24]process_json_proto returns [12:01:24]Send response to host [12:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164188,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:01:24]free response buf [12:01:24]execute_script done [12:01:24]execute_script returns [12:01:24]free content buf [12:01:24]Sock 9.Close socket [12:01:24]Sock 9.Thread stoped [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:01:59]accept exits with 7 [12:01:59]New connection [12:01:59]New thread 3066850660 created [12:01:59]Thread 3066707300 joined [12:01:59]Waiting for new connection... [12:01:59] Sock 7.Parse request [12:01:59]Sock 7.Check first char [12:01:59]Sock 7.First char is OK [12:01:59]request: POST /json_proto HTTP/1.0 [12:01:59]Method: POST [12:01:59]URL: /json_proto [12:01:59]Method is POST - this is cgi request [12:01:59]url: /json_proto [12:01:59]query_string will be loaded in cgi processing [12:01:59]execute_cgi json_proto POST (null) [12:01:59]execute_cgi path=json_proto method=POST [12:01:59]POST find Content-Length [12:01:59]Host: 172.17.56.4:8080 [12:01:59]Content-Length: 674 [12:01:59]Content-Type: application/json [12:01:59] [12:01:59]POST finish read [12:01:59]Found Content-Length = 674 [12:01:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458272", "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" : 71.90, "quantity" : 2.790, "sum" : 200.60, "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:01:59]execute_script... [12:01: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)458272", "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" : 71.90, "quantity" : 2.790, "sum" : 200.60, "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:01:59]POST & json_proto [12:01:59]process_json_proto [12:01:59]json parsed OK: [12:01:59]protocol is kg_v1.0 [12:01:59]action value=close_receipt [12:01:59]process_action close_receipt [12:01:59]cmd_close_receipt [12:01:59]MH_GetDate [12:01:59]Write to MH i2c: F0 00 00 7D 14 80 [12:01:59]Write i2c OK [12:01:59]MH_I2C_Read... [12:01:59]Read from MH i2c: F0 [12:01:59]MH_I2C_Read... [12:01:59]Read from MH i2c: F0 09 00 [12:01:59]MH_I2C_Read... [12:01:59]Read from MH i2c: F0 09 00 7D 14 00 38 1B 91 66 C9 DC B2 64 8E [12:01:59]GetLastDocTimeStamp 1720785681 [12:01:59]current date 1720785720 [12:01:59]FM_GetShiftState [12:01:59]SAM_PROTO_GetShiftState [12:01:59]wFMCommunicate request_size=4 [12:01:59]MH_SAM_APDU [12:01:59]CAPDU: 80 13 01 00 [12:01:59]Write to MH i2c: E2 08 00 7E 14 80 13 01 00 00 00 00 00 0F [12:01:59]Write i2c OK [12:01:59]MH_I2C_Read... [12:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:59]Read from MH i2c: E2 [12:01:59]MH_I2C_Read... [12:01:59]Read from MH i2c: E2 0E 00 [12:01:59]MH_I2C_Read... [12:01:59]Read from MH i2c: E2 0E 00 7E 14 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 59 [12:01:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:01:59]wFMCommunicate OK [12:01:59]SAM_PROTO_GetShiftState done [12:01:59]FM_GetShiftState done [12:01:59]opened in 1720744654 [12:01:59]opened+sec_in_day 1720831054 [12:01:59]quantity*price = 20060 [12:01:59]sum+1 = 20061 [12:01:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 110 12.07.2024 12:02 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164189 ФПД: 185525339178911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164189&fm=185525339178911&tin=02508201610067®Number=0000000000090829&sum=20000 [12:02:00]StoreToDocumentArchive [12:02:00]shift 445 fd 164189 [12:02:00]save to /storage/0445/doc_00164189 [12:02:00]save last doc name /storage/0445/doc_00164189 to /storage/kkm_last_doc_name [12:02:00]save OK [12:02:00]Clear old archive folders... [12:02:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:00]tlvbuf is 00A19320 [12:02:00]SAM_PROTO_ClearQueue [12:02:00]wFMCommunicate request_size=4 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 09 00 00 [12:02:00]Write to MH i2c: E2 08 00 8B 14 80 09 00 00 00 00 00 00 11 [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 8B 14 00 90 00 13 [12:02:00]RAPDU: 90 00 [12:02:00]wFMCommunicate OK [12:02:00]SAM_PROTO_ClearQueue done [12:02:00]KKMCreateOFDPacket [12:02:00]OFDProtocolAddRootSTLVToBuf [12:02:00]FM_MakeSignedData [12:02:00]FM_MakeSignedData [12:02:00]SAM_PROTO_SignData [12:02:00]wFMCommunicate request_size=4 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 0D 01 02 [12:02:00]Write to MH i2c: E2 08 00 8C 14 80 0D 01 02 00 00 00 00 19 [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 8C 14 00 90 00 14 [12:02:00]RAPDU: 90 00 [12:02:00]wFMCommunicate OK [12:02:00]wFMCommunicate request_size=255 [12:02:00]MH_SAM_APDU [12:02: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 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 38 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 81 02 00 35 04 06 00 A8 BB FB F0 [12:02:00]Write to MH i2c: E2 02 01 8D 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 38 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 81 02 00 35 04 06 00 A8 BB FB F0 00 00 D3 [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 8D 14 00 90 00 15 [12:02:00]RAPDU: 90 00 [12:02:00]wFMCommunicate OK [12:02:00]wFMCommunicate request_size=7 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 0D 02 02 02 47 9F [12:02:00]Write to MH i2c: E2 0A 00 8E 14 80 0D 02 02 02 00 47 9F 00 00 06 [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [12:02:00]RAPDU: 90 00 [12:02:00]wFMCommunicate OK [12:02:00]wFMCommunicate request_size=4 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 0D 03 02 [12:02:00]Write to MH i2c: E2 08 00 8F 14 80 0D 03 02 00 00 00 00 1E [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 0B 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 0B 00 8F 14 00 74 12 21 63 E5 A3 CD 99 90 00 17 [12:02:00]RAPDU: 74 12 21 63 E5 A3 CD 99 90 00 [12:02:00]wFMCommunicate OK [12:02:00]SAM_PROTO_SignData done [12:02:00]FM_MakeSignedData done [12:02:00]CreateOFDProtocolMessage [12:02:00]wFMCommunicate request_size=4 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 11 00 00 [12:02:00]Write to MH i2c: E2 08 00 90 14 80 11 00 00 00 00 00 00 1E [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 17 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 17 00 90 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 74 [12:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:02:00]wFMCommunicate OK [12:02:00]CreateOFDProtocolMessage done [12:02:00]OFDSenderStorePacket 164189 [12:02:00]StoreOFDPacket docnum=164189 [12:02:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 71 69 04 01 0C 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 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 38 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 81 02 00 35 04 06 00 A8 BB FB F0 47 9F 74 12 21 63 E5 A3 CD 99 [12:02:00]CheckFolder [12:02:00]dirname=/storage/ofd_packets [12:02:00]CheckFolder done [12:02:00]ProducePacketName [12:02:00]name=ofd_packets/00164189 [12:02:00]NVStorageSaveData ofd_packets/00164189 [12:02:00]File name is /storage/ofd_packets/00164189 [12:02:00]Write 298 bytes [12:02:00]NVStorageSaveData done [12:02:00]OFDSenderStorePacket done [12:02:00]KKMCreateOFDPacket done [12:02:00]NVStorageSaveData kkm_last_timestamp [12:02:00]File name is /storage/kkm_last_timestamp [12:02:00]Write 4 bytes [12:02:00]NVStorageSaveData done [12:02:00]ExternCall_PrintAddStr [12:02:00]wPrintStart [12:02:00]Write to MH i2c: 01 00 00 91 14 A5 [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: 01 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: 01 07 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: 01 07 00 91 14 00 00 00 00 00 FF 0F BA [12:02:00]RasterBufferAndPrint [12:02:00]line Счет N : (1)458272 [12:02:00]line ИНН: 02508201610067 [12:02:00]line Контрольно-Кассовый Чек [12:02:00]line ПРОДАЖА [12:02:00]line ТРК (МРК, ГНК) : 21 [12:02:00]line Товар: 2710194210 [12:02:00]line ДТ-К-5 [12:02:00]line 2.790 * 71.90 [12:02:00]line = 200.60 [12:02:00]line НДС 12% НСП 1% [12:02:00]line > о реализуемом товаре [12:02:00]line ОКРУГЛЕНИЕ: -0.60 [12:02:00]line ИТОГО: 200.00 [12:02:00]line Внесено: 200.00 [12:02:00]line СДАЧА: 0.00 [12:02:00]line НСП 1% : 1.77 [12:02:00]line НДС 12% : 21.30 [12:02:00]line Наличными: 200.00 [12:02:00]line Безнал.: 0.00 [12:02:00]line Место: АЗС № 72 "Партнер Нефть" [12:02:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:02:00]line СНО: Общий режим [12:02:00]line Чек 110 12.07.2024 12:02 [12:02:00]line Смена: 445 ФФД: 1.0 [12:02:00]line ЗНМ: 0300000160 [12:02:00]line РНМ: 0000000000090829 [12:02:00]line Версия ККМ: 001 [12:02:00]line ФМ: 0000000000874718 [12:02:00]line ФД: 164189 [12:02:00]line ФПД: 185525339178911 [12:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164189&fm=185525339178911&tin=02508201610067®Number=0000000000090829&sum=20000 [12:02:01]OFD Sender: Processing packet 164189 [packets to send 104, broken 103] [12:02:01]ProducePacketName [12:02:01]name=ofd_packets/00164189 [12:02:01]OFD Sender: To server: pG, [12:02:01]CommunicateWithHost lk.salyk.kg:30040 [12:02:01]ConnectInit lk.salyk.kg [12:02:01]written 0, free lines is 4095 [12:02:01]Connected sock=10 [12:02:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 71 69 04 01 0C 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 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 38 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 81 02 00 35 04 06 00 A8 BB FB F0 47 9F 74 12 21 63 E5 A3 CD 99 [12:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5E 85 47 00 8F 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 81 02 00 F4 03 04 00 CC C1 90 66 B6 04 01 00 00 65 70 21 4A 92 68 3A A4 [12:02:01]CommunicateWithHost err = 0 [12:02:01]CheckOFDResponse [12:02:01]1017 (14) - 77093643461234 [12:02:01]1041 (16) - 0000000000874718 [12:02:01]1040 (4) - 164189 [12:02:01]1012 (4) - 12.07.2024 05:40 [12:02:01]1206 (1) - 0 [12:02:01]OFD Sender: Remove packet 164189 [12:02:01]ProducePacketName [12:02:01]name=ofd_packets/00164189 [12:02:01]NVStorageDeleteData [12:02:01]Write to MH i2c: 01 00 00 BB 14 CF [12:02:01]Write i2c OK [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: 01 [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: 01 07 00 [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: 01 07 00 BB 14 00 00 00 00 00 F7 0C D9 [12:02:01]RasterBufferAndPrint [12:02:01]line [12:02:01]line [12:02:01]line [12:02:01]line [12:02:01]line [12:02:01]written 0, free lines is 3323 [12:02:01]MH_Cut [12:02:01]Write to MH i2c: D1 01 00 C2 14 01 A8 [12:02:01]Write i2c OK [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: D1 [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: D1 01 00 [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: D1 01 00 C2 14 00 A7 [12:02:01]Write to MH i2c: 01 00 00 C3 14 D7 [12:02:01]Write i2c OK [12:02:01]MH_I2C_Read... [12:02:01]OFD Sender: No OFD packet to send [12:02:02]*** Cut start [12:02:02]*** Partial cut [12:02:02]*** CUTSNS_PIN = 1 [12:02:02]*** CUTSNS_PIN = 0 [12:02:02]*** Brake cut motor [12:02:02]Read from MH i2c: 01 [12:02:02]MH_I2C_Read... [12:02:02]*** Stop cut motor [12:02:02]*** Cut end [12:02:02]Read from MH i2c: 01 07 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: 01 07 00 C3 14 00 00 00 00 00 FF 0F EC [12:02:02]process_action close_receipt done [12:02:02]requested_data is exist [12:02:02]produce_requested_data [12:02:02]requested_item fm.sn is exist - process it [12:02:02]wFMCommunicate request_size=4 [12:02:02]MH_SAM_APDU [12:02:02]CAPDU: 80 11 00 00 [12:02:02]Write to MH i2c: E2 08 00 C4 14 80 11 00 00 00 00 00 00 52 [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:02]Read from MH i2c: E2 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 17 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 17 00 C4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [12:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:02:02]wFMCommunicate OK [12:02:02]requested_item fd.num is exist - process it [12:02:02]SAM_PROTO_GetFieldsCounters [12:02:02]wFMCommunicate request_size=4 [12:02:02]MH_SAM_APDU [12:02:02]CAPDU: 80 13 00 00 [12:02:02]Write to MH i2c: E2 08 00 C5 14 80 13 00 00 00 00 00 00 55 [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:02]Read from MH i2c: E2 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 62 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 62 00 C5 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [12:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:02]wFMCommunicate OK [12:02:02]SAM_PROTO_GetFieldsCounters done [12:02:02]requested_item shift.num is exist - process it [12:02:02]requested_item shift.opened is exist - process it [12:02:02]req_shift_opened [12:02:02]FM_GetShiftState [12:02:02]SAM_PROTO_GetShiftState [12:02:02]wFMCommunicate request_size=4 [12:02:02]MH_SAM_APDU [12:02:02]CAPDU: 80 13 01 00 [12:02:02]Write to MH i2c: E2 08 00 C6 14 80 13 01 00 00 00 00 00 57 [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:03]Read from MH i2c: E2 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 0E 00 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 0E 00 C6 14 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A1 [12:02:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:02:03]wFMCommunicate OK [12:02:03]SAM_PROTO_GetShiftState done [12:02:03]FM_GetShiftState done [12:02:03]req_shift_opened done [12:02:03]requested_item shift.open_date is exist - process it [12:02:03]req_shift_open_date [12:02:03]req_shift_open_date done [12:02:03]produce_requested_data done [12:02:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164189,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:02:03]process_action_free close_receipt [12:02:03]json_value_free [12:02:03]json_value_free done [12:02:03]process_json_proto returns [12:02:03]Send response to host [12:02:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164189,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:02:03]free response buf [12:02:03]execute_script done [12:02:03]execute_script returns [12:02:03]free content buf [12:02:03]Sock 7.Close socket [12:02:03]Sock 7.Thread stoped [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]accept exits with 9 [12:04:06]New connection [12:04:06]New thread 3066707300 created [12:04:06]Thread 3066850660 joined [12:04:06]Waiting for new connection... [12:04:06] Sock 9.Parse request [12:04:06]Sock 9.Check first char [12:04:06]Sock 9.First char is OK [12:04:06]request: POST /json_proto HTTP/1.0 [12:04:06]Method: POST [12:04:06]URL: /json_proto [12:04:06]Method is POST - this is cgi request [12:04:06]url: /json_proto [12:04:06]query_string will be loaded in cgi processing [12:04:06]execute_cgi json_proto POST (null) [12:04:06]execute_cgi path=json_proto method=POST [12:04:06]POST find Content-Length [12:04:06]Host: 172.17.56.4:8080 [12:04:06]Content-Length: 790 [12:04:06]Content-Type: application/json [12:04:06] [12:04:06]POST finish read [12:04:06]Found Content-Length = 790 [12:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:06]execute_script... [12:04: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)458273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:06]POST & json_proto [12:04:06]process_json_proto [12:04:06]json parsed OK: [12:04:06]protocol is kg_v1.0 [12:04:06]action value=close_receipt [12:04:06]process_action close_receipt [12:04:06]cmd_close_receipt [12:04:06]MH_GetDate [12:04:06]Write to MH i2c: F0 00 00 C7 14 CA [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: F0 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: F0 09 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: F0 09 00 C7 14 00 B8 1B 91 66 C9 DC B2 64 58 [12:04:06]GetLastDocTimeStamp 1720785720 [12:04:06]current date 1720785848 [12:04:06]FM_GetShiftState [12:04:06]SAM_PROTO_GetShiftState [12:04:06]wFMCommunicate request_size=4 [12:04:06]MH_SAM_APDU [12:04:06]CAPDU: 80 13 01 00 [12:04:06]Write to MH i2c: E2 08 00 C8 14 80 13 01 00 00 00 00 00 59 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:06]Read from MH i2c: E2 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 0E 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 0E 00 C8 14 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A3 [12:04:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:04:06]wFMCommunicate OK [12:04:06]SAM_PROTO_GetShiftState done [12:04:06]FM_GetShiftState done [12:04:06]opened in 1720744654 [12:04:06]opened+sec_in_day 1720831054 [12:04:06]quantity*price = 32610 [12:04:06]sum+1 = 32611 [12:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 326.10 НСП 1% : 2.89 НДС 12% : 34.63 Наличными: 0.00 Безнал.: 326.10 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 111 12.07.2024 12:04 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164190 ФПД: 251994184887022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120408&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164190&fm=251994184887022&tin=02508201610067®Number=0000000000090829&sum=32610 [12:04:08]StoreToDocumentArchive [12:04:08]shift 445 fd 164190 [12:04:08]save to /storage/0445/doc_00164190 [12:04:08]save last doc name /storage/0445/doc_00164190 to /storage/kkm_last_doc_name [12:04:08]save OK [12:04:08]Clear old archive folders... [12:04:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:08]tlvbuf is 00A7DC70 [12:04:08]SAM_PROTO_ClearQueue [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 09 00 00 [12:04:08]Write to MH i2c: E2 08 00 D5 14 80 09 00 00 00 00 00 00 5B [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 D5 14 00 90 00 5D [12:04:08]RAPDU: 90 00 [12:04:08]wFMCommunicate OK [12:04:08]SAM_PROTO_ClearQueue done [12:04:08]KKMCreateOFDPacket [12:04:08]OFDProtocolAddRootSTLVToBuf [12:04:08]FM_MakeSignedData [12:04:08]FM_MakeSignedData [12:04:08]SAM_PROTO_SignData [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 0D 01 02 [12:04:08]Write to MH i2c: E2 08 00 D6 14 80 0D 01 02 00 00 00 00 63 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 D6 14 00 90 00 5E [12:04:08]RAPDU: 90 00 [12:04:08]wFMCommunicate OK [12:04:08]wFMCommunicate request_size=255 [12:04:08]MH_SAM_APDU [12:04: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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B8 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 81 02 00 35 04 06 00 E5 [12:04:08]Write to MH i2c: E2 02 01 D7 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B8 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 81 02 00 35 04 06 00 E5 00 00 B7 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 D7 14 00 90 00 5F [12:04:08]RAPDU: 90 00 [12:04:08]wFMCommunicate OK [12:04:08]wFMCommunicate request_size=10 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 0D 02 02 05 2F F7 E0 2A EE [12:04:08]Write to MH i2c: E2 0D 00 D8 14 80 0D 02 02 05 00 2F F7 E0 2A EE 00 00 8E [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 D8 14 00 90 00 60 [12:04:08]RAPDU: 90 00 [12:04:08]wFMCommunicate OK [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 0D 03 02 [12:04:08]Write to MH i2c: E2 08 00 D9 14 80 0D 03 02 00 00 00 00 68 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 0B 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 0B 00 D9 14 00 3C 33 D4 46 53 16 63 15 90 00 D3 [12:04:08]RAPDU: 3C 33 D4 46 53 16 63 15 90 00 [12:04:08]wFMCommunicate OK [12:04:08]SAM_PROTO_SignData done [12:04:08]FM_MakeSignedData done [12:04:08]CreateOFDProtocolMessage [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 11 00 00 [12:04:08]Write to MH i2c: E2 08 00 DA 14 80 11 00 00 00 00 00 00 68 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 17 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 17 00 DA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [12:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:04:08]wFMCommunicate OK [12:04:08]CreateOFDProtocolMessage done [12:04:08]OFDSenderStorePacket 164190 [12:04:08]StoreOFDPacket docnum=164190 [12:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 CD 07 01 0B 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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B8 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 81 02 00 35 04 06 00 E5 2F F7 E0 2A EE 3C 33 D4 46 53 16 63 15 [12:04:08]CheckFolder [12:04:08]dirname=/storage/ofd_packets [12:04:08]CheckFolder done [12:04:08]ProducePacketName [12:04:08]name=ofd_packets/00164190 [12:04:08]NVStorageSaveData ofd_packets/00164190 [12:04:08]File name is /storage/ofd_packets/00164190 [12:04:08]Write 301 bytes [12:04:08]NVStorageSaveData done [12:04:08]OFDSenderStorePacket done [12:04:08]KKMCreateOFDPacket done [12:04:08]NVStorageSaveData kkm_last_timestamp [12:04:08]File name is /storage/kkm_last_timestamp [12:04:08]Write 4 bytes [12:04:08]NVStorageSaveData done [12:04:08]ExternCall_PrintAddStr [12:04:08]wPrintStart [12:04:08]Write to MH i2c: 01 00 00 DB 14 EF [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 07 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 07 00 DB 14 00 00 00 00 00 FF 0F 04 [12:04:08]RasterBufferAndPrint [12:04:08]line Счет N : (1)458273 [12:04:08]line ИНН: 02508201610067 [12:04:08]line Контрольно-Кассовый Чек [12:04:08]line ПРОДАЖА [12:04:08]line ТРК (МРК, ГНК) : 12 [12:04:08]line Товар: 2710124130 [12:04:08]line Аи-92-К-5 [12:04:08]line 5.000 * 65.22 [12:04:08]line = 326.10 [12:04:08]line НДС 12% НСП 1% [12:04:08]line > о реализуемом товаре [12:04:08]line ИТОГО: 326.10 [12:04:08]line НСП 1% : 2.89 [12:04:08]line НДС 12% : 34.63 [12:04:08]line Наличными: 0.00 [12:04:08]line Безнал.: 326.10 [12:04:08]line Место: АЗС № 72 "Партнер Нефть" [12:04:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:04:08]line СНО: Общий режим [12:04:08]line Чек 111 12.07.2024 12:04 [12:04:08]line Смена: 445 ФФД: 1.0 [12:04:08]line ЗНМ: 0300000160 [12:04:08]line РНМ: 0000000000090829 [12:04:08]line Версия ККМ: 001 [12:04:08]line Платежная система: KICB Банк [12:04:08]line ФМ: 0000000000874718 [12:04:08]line ФД: 164190 [12:04:08]line ФПД: 251994184887022 [12:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120408&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164190&fm=251994184887022&tin=02508201610067®Number=0000000000090829&sum=32610 [12:04:08]written 0, free lines is 4095 [12:04:08]OFD Sender: Processing packet 164190 [packets to send 104, broken 103] [12:04:08]ProducePacketName [12:04:08]name=ofd_packets/00164190 [12:04:08]OFD Sender: To server: pG, [12:04:08]CommunicateWithHost lk.salyk.kg:30040 [12:04:08]ConnectInit lk.salyk.kg [12:04:09]Connected sock=10 [12:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 CD 07 01 0B 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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B8 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 81 02 00 35 04 06 00 E5 2F F7 E0 2A EE 3C 33 D4 46 53 16 63 15 [12:04:09]Write to MH i2c: 01 00 00 04 15 19 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 0B 0D 38 [12:04:09]RasterBufferAndPrint [12:04:09]line [12:04:09]line [12:04:09]line [12:04:09]line [12:04:09]line [12:04:09]written 0, free lines is 3345 [12:04:09]MH_Cut [12:04:09]Write to MH i2c: D1 01 00 0B 15 01 F2 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: D1 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: D1 01 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: D1 01 00 0B 15 00 F1 [12:04:09]Write to MH i2c: 01 00 00 0C 15 21 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C2 83 47 00 4D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 81 02 00 F4 03 04 00 4C C2 90 66 B6 04 01 00 00 B8 72 51 44 BF E8 A2 DE [12:04:09]CommunicateWithHost err = 0 [12:04:09]CheckOFDResponse [12:04:09]1017 (14) - 77093643461234 [12:04:09]1041 (16) - 0000000000874718 [12:04:09]1040 (4) - 164190 [12:04:09]1012 (4) - 12.07.2024 05:42 [12:04:09]1206 (1) - 0 [12:04:09]OFD Sender: Remove packet 164190 [12:04:09]ProducePacketName [12:04:09]name=ofd_packets/00164190 [12:04:09]NVStorageDeleteData [12:04:09]*** Cut start [12:04:09]*** Partial cut [12:04:09]*** CUTSNS_PIN = 1 [12:04:09]*** CUTSNS_PIN = 0 [12:04:09]OFD Sender: No OFD packet to send [12:04:09]*** Brake cut motor [12:04:10]Read from MH i2c: 01 [12:04:10]MH_I2C_Read... [12:04:10]*** Stop cut motor [12:04:10]*** Cut end [12:04:10]Read from MH i2c: 01 07 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: 01 07 00 0C 15 00 00 00 00 00 FF 0F 36 [12:04:10]process_action close_receipt done [12:04:10]requested_data is exist [12:04:10]produce_requested_data [12:04:10]requested_item fm.sn is exist - process it [12:04:10]wFMCommunicate request_size=4 [12:04:10]MH_SAM_APDU [12:04:10]CAPDU: 80 11 00 00 [12:04:10]Write to MH i2c: E2 08 00 0D 15 80 11 00 00 00 00 00 00 9C [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 17 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 17 00 0D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [12:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:04:10]wFMCommunicate OK [12:04:10]requested_item fd.num is exist - process it [12:04:10]SAM_PROTO_GetFieldsCounters [12:04:10]wFMCommunicate request_size=4 [12:04:10]MH_SAM_APDU [12:04:10]CAPDU: 80 13 00 00 [12:04:10]Write to MH i2c: E2 08 00 0E 15 80 13 00 00 00 00 00 00 9F [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 62 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 62 00 0E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [12:04: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:10]wFMCommunicate OK [12:04:10]SAM_PROTO_GetFieldsCounters done [12:04:10]requested_item shift.num is exist - process it [12:04:10]requested_item shift.opened is exist - process it [12:04:10]req_shift_opened [12:04:10]FM_GetShiftState [12:04:10]SAM_PROTO_GetShiftState [12:04:10]wFMCommunicate request_size=4 [12:04:10]MH_SAM_APDU [12:04:10]CAPDU: 80 13 01 00 [12:04:10]Write to MH i2c: E2 08 00 0F 15 80 13 01 00 00 00 00 00 A1 [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:10]Read from MH i2c: E2 0E 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 0E 00 0F 15 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EB [12:04:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:04:10]wFMCommunicate OK [12:04:10]SAM_PROTO_GetShiftState done [12:04:10]FM_GetShiftState done [12:04:10]req_shift_opened done [12:04:10]requested_item shift.open_date is exist - process it [12:04:10]req_shift_open_date [12:04:10]req_shift_open_date done [12:04:10]produce_requested_data done [12:04:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164190,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:04:10]process_action_free close_receipt [12:04:10]json_value_free [12:04:10]json_value_free done [12:04:10]process_json_proto returns [12:04:10]Send response to host [12:04:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164190,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:04:10]free response buf [12:04:10]execute_script done [12:04:10]execute_script returns [12:04:10]free content buf [12:04:10]Sock 9.Close socket [12:04:10]Sock 9.Thread stoped [12:04:14]accept exits with 7 [12:04:14]New connection [12:04:14]New thread 3066850660 created [12:04:14]Thread 3066707300 joined [12:04:14]Waiting for new connection... [12:04:14] Sock 7.Parse request [12:04:14]Sock 7.Check first char [12:04:14]Sock 7.First char is OK [12:04:14]request: POST /json_proto HTTP/1.0 [12:04:14]Method: POST [12:04:14]URL: /json_proto [12:04:14]Method is POST - this is cgi request [12:04:14]url: /json_proto [12:04:14]query_string will be loaded in cgi processing [12:04:14]execute_cgi json_proto POST (null) [12:04:14]execute_cgi path=json_proto method=POST [12:04:14]POST find Content-Length [12:04:14]Host: 172.17.56.4:8080 [12:04:14]Content-Length: 677 [12:04:14]Content-Type: application/json [12:04:14] [12:04:14]POST finish read [12:04:14]Found Content-Length = 677 [12:04:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:14]execute_script... [12:04:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:14]POST & json_proto [12:04:14]process_json_proto [12:04:14]json parsed OK: [12:04:14]protocol is kg_v1.0 [12:04:14]action value=close_receipt [12:04:14]process_action close_receipt [12:04:14]cmd_close_receipt [12:04:14]MH_GetDate [12:04:14]Write to MH i2c: F0 00 00 10 15 14 [12:04:14]Write i2c OK [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: F0 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: F0 09 00 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: F0 09 00 10 15 00 BF 1B 91 66 C9 DC B2 64 A9 [12:04:14]GetLastDocTimeStamp 1720785848 [12:04:14]current date 1720785855 [12:04:14]FM_GetShiftState [12:04:14]SAM_PROTO_GetShiftState [12:04:14]wFMCommunicate request_size=4 [12:04:14]MH_SAM_APDU [12:04:14]CAPDU: 80 13 01 00 [12:04:14]Write to MH i2c: E2 08 00 11 15 80 13 01 00 00 00 00 00 A3 [12:04:14]Write i2c OK [12:04:14]MH_I2C_Read... [12:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:14]Read from MH i2c: E2 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 0E 00 [12:04:14]MH_I2C_Read... [12:04:14]Read from MH i2c: E2 0E 00 11 15 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 ED [12:04:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:04:14]wFMCommunicate OK [12:04:14]SAM_PROTO_GetShiftState done [12:04:14]FM_GetShiftState done [12:04:14]opened in 1720744654 [12:04:14]opened+sec_in_day 1720831054 [12:04:14]quantity*price = 50008 [12:04:14]sum+1 = 50009 [12:04:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 112 12.07.2024 12:04 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164191 ФПД: 234113340386835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120415&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164191&fm=234113340386835&tin=02508201610067®Number=0000000000090829&sum=50000 [12:04:15]StoreToDocumentArchive [12:04:15]shift 445 fd 164191 [12:04:15]save to /storage/0445/doc_00164191 [12:04:15]save last doc name /storage/0445/doc_00164191 to /storage/kkm_last_doc_name [12:04:15]save OK [12:04:15]Clear old archive folders... [12:04:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:15]tlvbuf is 00A4FE90 [12:04:15]SAM_PROTO_ClearQueue [12:04:15]wFMCommunicate request_size=4 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 09 00 00 [12:04:15]Write to MH i2c: E2 08 00 1E 15 80 09 00 00 00 00 00 00 A5 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [12:04:15]RAPDU: 90 00 [12:04:15]wFMCommunicate OK [12:04:15]SAM_PROTO_ClearQueue done [12:04:15]KKMCreateOFDPacket [12:04:15]OFDProtocolAddRootSTLVToBuf [12:04:15]FM_MakeSignedData [12:04:15]FM_MakeSignedData [12:04:15]SAM_PROTO_SignData [12:04:15]wFMCommunicate request_size=4 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 0D 01 02 [12:04:15]Write to MH i2c: E2 08 00 1F 15 80 0D 01 02 00 00 00 00 AD [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 03 00 1F 15 00 90 00 A8 [12:04:15]RAPDU: 90 00 [12:04:15]wFMCommunicate OK [12:04:15]wFMCommunicate request_size=255 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 70 00 00 00 F4 03 04 00 BF 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 81 02 00 35 04 06 00 D4 [12:04:15]Write to MH i2c: E2 02 01 20 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 70 00 00 00 F4 03 04 00 BF 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 81 02 00 35 04 06 00 D4 00 00 DB [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 20 15 00 90 00 A9 [12:04:16]RAPDU: 90 00 [12:04:16]wFMCommunicate OK [12:04:16]wFMCommunicate request_size=10 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 0D 02 02 05 EC C2 7D AE 13 [12:04:16]Write to MH i2c: E2 0D 00 21 15 80 0D 02 02 05 00 EC C2 7D AE 13 00 00 A6 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 21 15 00 90 00 AA [12:04:16]RAPDU: 90 00 [12:04:16]wFMCommunicate OK [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 0D 03 02 [12:04:16]Write to MH i2c: E2 08 00 22 15 80 0D 03 02 00 00 00 00 B2 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0B 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 0B 00 22 15 00 96 27 C5 0D 1C 97 90 E6 90 00 6B [12:04:16]RAPDU: 96 27 C5 0D 1C 97 90 E6 90 00 [12:04:16]wFMCommunicate OK [12:04:16]SAM_PROTO_SignData done [12:04:16]FM_MakeSignedData done [12:04:16]CreateOFDProtocolMessage [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 11 00 00 [12:04:16]Write to MH i2c: E2 08 00 23 15 80 11 00 00 00 00 00 00 B2 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 17 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 17 00 23 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [12:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:04:16]wFMCommunicate OK [12:04:16]CreateOFDProtocolMessage done [12:04:16]OFDSenderStorePacket 164191 [12:04:16]StoreOFDPacket docnum=164191 [12:04:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F 02 07 01 B7 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 70 00 00 00 F4 03 04 00 BF 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 81 02 00 35 04 06 00 D4 EC C2 7D AE 13 96 27 C5 0D 1C 97 90 E6 [12:04:16]CheckFolder [12:04:16]dirname=/storage/ofd_packets [12:04:16]CheckFolder done [12:04:16]ProducePacketName [12:04:16]name=ofd_packets/00164191 [12:04:16]NVStorageSaveData ofd_packets/00164191 [12:04:16]File name is /storage/ofd_packets/00164191 [12:04:16]Write 301 bytes [12:04:16]NVStorageSaveData done [12:04:16]OFDSenderStorePacket done [12:04:16]KKMCreateOFDPacket done [12:04:16]NVStorageSaveData kkm_last_timestamp [12:04:16]File name is /storage/kkm_last_timestamp [12:04:16]Write 4 bytes [12:04:16]NVStorageSaveData done [12:04:16]ExternCall_PrintAddStr [12:04:16]wPrintStart [12:04:16]Write to MH i2c: 01 00 00 24 15 39 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 07 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 07 00 24 15 00 00 00 00 00 FF 0F 4E [12:04:16]RasterBufferAndPrint [12:04:16]line Счет N : (1)458274 [12:04:16]line ИНН: 02508201610067 [12:04:16]line Контрольно-Кассовый Чек [12:04:16]line ПРОДАЖА [12:04:16]line ТРК (МРК, ГНК) : 22 [12:04:16]line Товар: 2710124130 [12:04:16]line Аи-92-К-5 [12:04:16]line 7.600 * 65.80 [12:04:16]line = 500.08 [12:04:16]line НДС 12% НСП 1% [12:04:16]line > о реализуемом товаре [12:04:16]line ОКРУГЛЕНИЕ: -0.08 [12:04:16]line ИТОГО: 500.00 [12:04:16]line Внесено: 500.00 [12:04:16]line СДАЧА: 0.00 [12:04:16]line НСП 1% : 4.42 [12:04:16]line НДС 12% : 53.11 [12:04:16]line Наличными: 500.00 [12:04:16]line Безнал.: 0.00 [12:04:16]line Место: АЗС № 72 "Партнер Нефть" [12:04:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:04:16]line СНО: Общий режим [12:04:16]line Чек 112 12.07.2024 12:04 [12:04:16]line Смена: 445 ФФД: 1.0 [12:04:16]line ЗНМ: 0300000160 [12:04:16]line РНМ: 0000000000090829 [12:04:16]line Версия ККМ: 001 [12:04:16]line ФМ: 0000000000874718 [12:04:16]line ФД: 164191 [12:04:16]line ФПД: 234113340386835 [12:04:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120415&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164191&fm=234113340386835&tin=02508201610067®Number=0000000000090829&sum=50000 [12:04:16]written 0, free lines is 4095 [12:04:16]OFD Sender: Processing packet 164191 [packets to send 104, broken 103] [12:04:16]ProducePacketName [12:04:16]name=ofd_packets/00164191 [12:04:16]OFD Sender: To server: pG, [12:04:16]CommunicateWithHost lk.salyk.kg:30040 [12:04:16]ConnectInit lk.salyk.kg [12:04:16]Connected sock=10 [12:04:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F 02 07 01 B7 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 70 00 00 00 F4 03 04 00 BF 1B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 81 02 00 35 04 06 00 D4 EC C2 7D AE 13 96 27 C5 0D 1C 97 90 E6 [12:04:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 98 F7 47 00 C4 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 34 37 31 38 10 04 04 00 5F 81 02 00 F4 03 04 00 53 C2 90 66 B6 04 01 00 00 B2 C9 0B ED 20 59 47 45 [12:04:16]CommunicateWithHost err = 0 [12:04:16]CheckOFDResponse [12:04:16]1017 (14) - 77093643461234 [12:04:16]1041 (16) - 0000000000874718 [12:04:16]1040 (4) - 164191 [12:04:16]1012 (4) - 12.07.2024 05:42 [12:04:16]1206 (1) - 0 [12:04:16]OFD Sender: Remove packet 164191 [12:04:16]ProducePacketName [12:04:16]name=ofd_packets/00164191 [12:04:16]NVStorageDeleteData [12:04:16]Write to MH i2c: 01 00 00 4E 15 63 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 07 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: 01 07 00 4E 15 00 00 00 00 00 EF 0C 65 [12:04:16]RasterBufferAndPrint [12:04:16]line [12:04:16]line [12:04:16]line [12:04:16]line [12:04:16]line [12:04:16]written 0, free lines is 3324 [12:04:16]MH_Cut [12:04:16]Write to MH i2c: D1 01 00 55 15 01 3C [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: D1 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: D1 01 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: D1 01 00 55 15 00 3B [12:04:16]Write to MH i2c: 01 00 00 56 15 6B [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:17]OFD Sender: No OFD packet to send [12:04:17]*** Cut start [12:04:17]*** Partial cut [12:04:17]*** CUTSNS_PIN = 1 [12:04:17]*** CUTSNS_PIN = 0 [12:04:17]*** Brake cut motor [12:04:17]Read from MH i2c: 01 [12:04:17]MH_I2C_Read... [12:04:17]*** Stop cut motor [12:04:17]*** Cut end [12:04:17]Read from MH i2c: 01 07 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 56 15 00 00 00 00 00 FF 0F 80 [12:04:17]process_action close_receipt done [12:04:17]requested_data is exist [12:04:17]produce_requested_data [12:04:17]requested_item fm.sn is exist - process it [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 11 00 00 [12:04:17]Write to MH i2c: E2 08 00 57 15 80 11 00 00 00 00 00 00 E6 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 17 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 17 00 57 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [12:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:04:18]wFMCommunicate OK [12:04:18]requested_item fd.num is exist - process it [12:04:18]SAM_PROTO_GetFieldsCounters [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 13 00 00 [12:04:18]Write to MH i2c: E2 08 00 58 15 80 13 00 00 00 00 00 00 E9 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 62 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 62 00 58 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:04:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:18]wFMCommunicate OK [12:04:18]SAM_PROTO_GetFieldsCounters done [12:04:18]requested_item shift.num is exist - process it [12:04:18]requested_item shift.opened is exist - process it [12:04:18]req_shift_opened [12:04:18]FM_GetShiftState [12:04:18]SAM_PROTO_GetShiftState [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 13 01 00 [12:04:18]Write to MH i2c: E2 08 00 59 15 80 13 01 00 00 00 00 00 EB [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0E 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0E 00 59 15 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 35 [12:04:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:04:18]wFMCommunicate OK [12:04:18]SAM_PROTO_GetShiftState done [12:04:18]FM_GetShiftState done [12:04:18]req_shift_opened done [12:04:18]requested_item shift.open_date is exist - process it [12:04:18]req_shift_open_date [12:04:18]req_shift_open_date done [12:04:18]produce_requested_data done [12:04:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164191,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:04:18]process_action_free close_receipt [12:04:18]json_value_free [12:04:18]json_value_free done [12:04:18]process_json_proto returns [12:04:18]Send response to host [12:04:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164191,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:04:18]free response buf [12:04:18]execute_script done [12:04:18]execute_script returns [12:04:18]free content buf [12:04:18]Sock 7.Close socket [12:04:18]Sock 7.Thread stoped [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:51]accept exits with 9 [12:05:51]New connection [12:05:51]New thread 3066707300 created [12:05:51]Thread 3066850660 joined [12:05:51]Waiting for new connection... [12:05:51] Sock 9.Parse request [12:05:51]Sock 9.Check first char [12:05:51]Sock 9.First char is OK [12:05:51]request: POST /json_proto HTTP/1.0 [12:05:51]Method: POST [12:05:51]URL: /json_proto [12:05:51]Method is POST - this is cgi request [12:05:51]url: /json_proto [12:05:51]query_string will be loaded in cgi processing [12:05:51]execute_cgi json_proto POST (null) [12:05:51]execute_cgi path=json_proto method=POST [12:05:51]POST find Content-Length [12:05:51]Host: 172.17.56.4:8080 [12:05:51]Content-Length: 677 [12:05:51]Content-Type: application/json [12:05:51] [12:05:51]POST finish read [12:05:51]Found Content-Length = 677 [12:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:05:51]execute_script... [12:05:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:05:51]POST & json_proto [12:05:51]process_json_proto [12:05:51]json parsed OK: [12:05:51]protocol is kg_v1.0 [12:05:51]action value=close_receipt [12:05:51]process_action close_receipt [12:05:51]cmd_close_receipt [12:05:51]MH_GetDate [12:05:51]Write to MH i2c: F0 00 00 5A 15 5E [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: F0 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: F0 09 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: F0 09 00 5A 15 00 20 1C 91 66 C9 DC B2 64 55 [12:05:51]GetLastDocTimeStamp 1720785855 [12:05:51]current date 1720785952 [12:05:51]FM_GetShiftState [12:05:51]SAM_PROTO_GetShiftState [12:05:51]wFMCommunicate request_size=4 [12:05:51]MH_SAM_APDU [12:05:51]CAPDU: 80 13 01 00 [12:05:51]Write to MH i2c: E2 08 00 5B 15 80 13 01 00 00 00 00 00 ED [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 0E 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 0E 00 5B 15 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 37 [12:05:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:05:51]wFMCommunicate OK [12:05:51]SAM_PROTO_GetShiftState done [12:05:51]FM_GetShiftState done [12:05:51]opened in 1720744654 [12:05:51]opened+sec_in_day 1720831054 [12:05:51]quantity*price = 30004 [12:05:51]sum+1 = 30006 [12:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 113 12.07.2024 12:05 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164192 ФПД: 161892540594946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120552&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164192&fm=161892540594946&tin=02508201610067®Number=0000000000090829&sum=30000 [12:05:52]StoreToDocumentArchive [12:05:52]shift 445 fd 164192 [12:05:52]save to /storage/0445/doc_00164192 [12:05:52]save last doc name /storage/0445/doc_00164192 to /storage/kkm_last_doc_name [12:05:52]save OK [12:05:52]Clear old archive folders... [12:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:52]tlvbuf is 009F9CF0 [12:05:52]SAM_PROTO_ClearQueue [12:05:52]wFMCommunicate request_size=4 [12:05:52]MH_SAM_APDU [12:05:52]CAPDU: 80 09 00 00 [12:05:52]Write to MH i2c: E2 08 00 68 15 80 09 00 00 00 00 00 00 EF [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:52]Read from MH i2c: E2 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 03 00 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [12:05:52]RAPDU: 90 00 [12:05:52]wFMCommunicate OK [12:05:52]SAM_PROTO_ClearQueue done [12:05:52]KKMCreateOFDPacket [12:05:52]OFDProtocolAddRootSTLVToBuf [12:05:52]FM_MakeSignedData [12:05:52]FM_MakeSignedData [12:05:52]SAM_PROTO_SignData [12:05:52]wFMCommunicate request_size=4 [12:05:52]MH_SAM_APDU [12:05:52]CAPDU: 80 0D 01 02 [12:05:52]Write to MH i2c: E2 08 00 69 15 80 0D 01 02 00 00 00 00 F7 [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:52]Read from MH i2c: E2 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 03 00 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 03 00 69 15 00 90 00 F2 [12:05:52]RAPDU: 90 00 [12:05:52]wFMCommunicate OK [12:05:52]wFMCommunicate request_size=255 [12:05:52]MH_SAM_APDU [12:05:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 20 1C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 81 02 00 35 04 06 00 93 [12:05:52]Write to MH i2c: E2 02 01 6A 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 20 1C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 81 02 00 35 04 06 00 93 00 00 09 [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 6A 15 00 90 00 F3 [12:05:53]RAPDU: 90 00 [12:05:53]wFMCommunicate OK [12:05:53]wFMCommunicate request_size=10 [12:05:53]MH_SAM_APDU [12:05:53]CAPDU: 80 0D 02 02 05 3D 8B 5F BB 02 [12:05:53]Write to MH i2c: E2 0D 00 6B 15 80 0D 02 02 05 00 3D 8B 5F BB 02 00 00 E8 [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 6B 15 00 90 00 F4 [12:05:53]RAPDU: 90 00 [12:05:53]wFMCommunicate OK [12:05:53]wFMCommunicate request_size=4 [12:05:53]MH_SAM_APDU [12:05:53]CAPDU: 80 0D 03 02 [12:05:53]Write to MH i2c: E2 08 00 6C 15 80 0D 03 02 00 00 00 00 FC [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 0B 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 0B 00 6C 15 00 67 D3 D4 72 BC 27 77 CA 90 00 A1 [12:05:53]RAPDU: 67 D3 D4 72 BC 27 77 CA 90 00 [12:05:53]wFMCommunicate OK [12:05:53]SAM_PROTO_SignData done [12:05:53]FM_MakeSignedData done [12:05:53]CreateOFDProtocolMessage [12:05:53]wFMCommunicate request_size=4 [12:05:53]MH_SAM_APDU [12:05:53]CAPDU: 80 11 00 00 [12:05:53]Write to MH i2c: E2 08 00 6D 15 80 11 00 00 00 00 00 00 FC [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 17 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 17 00 6D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [12:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:05:53]wFMCommunicate OK [12:05:53]CreateOFDProtocolMessage done [12:05:53]OFDSenderStorePacket 164192 [12:05:53]StoreOFDPacket docnum=164192 [12:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C BD 07 01 78 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 20 1C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 81 02 00 35 04 06 00 93 3D 8B 5F BB 02 67 D3 D4 72 BC 27 77 CA [12:05:53]CheckFolder [12:05:53]dirname=/storage/ofd_packets [12:05:53]CheckFolder done [12:05:53]ProducePacketName [12:05:53]name=ofd_packets/00164192 [12:05:53]NVStorageSaveData ofd_packets/00164192 [12:05:53]File name is /storage/ofd_packets/00164192 [12:05:53]Write 301 bytes [12:05:53]NVStorageSaveData done [12:05:53]OFDSenderStorePacket done [12:05:53]KKMCreateOFDPacket done [12:05:53]NVStorageSaveData kkm_last_timestamp [12:05:53]File name is /storage/kkm_last_timestamp [12:05:53]Write 4 bytes [12:05:53]NVStorageSaveData done [12:05:53]ExternCall_PrintAddStr [12:05:53]wPrintStart [12:05:53]Write to MH i2c: 01 00 00 6E 15 83 [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: 01 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: 01 07 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: 01 07 00 6E 15 00 00 00 00 00 FF 0F 98 [12:05:53]RasterBufferAndPrint [12:05:53]line Счет N : (1)458275 [12:05:53]line ИНН: 02508201610067 [12:05:53]line Контрольно-Кассовый Чек [12:05:53]line ПРОДАЖА [12:05:53]line ТРК (МРК, ГНК) : 22 [12:05:53]line Товар: 2710124130 [12:05:53]line Аи-92-К-5 [12:05:53]line 4.560 * 65.80 [12:05:53]line = 300.05 [12:05:53]line НДС 12% НСП 1% [12:05:53]line > о реализуемом товаре [12:05:53]line ОКРУГЛЕНИЕ: -0.05 [12:05:53]line ИТОГО: 300.00 [12:05:53]line Внесено: 300.00 [12:05:53]line СДАЧА: 0.00 [12:05:53]line НСП 1% : 2.65 [12:05:53]line НДС 12% : 31.86 [12:05:53]line Наличными: 300.00 [12:05:53]line Безнал.: 0.00 [12:05:53]line Место: АЗС № 72 "Партнер Нефть" [12:05:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:05:53]line СНО: Общий режим [12:05:53]line Чек 113 12.07.2024 12:05 [12:05:53]line Смена: 445 ФФД: 1.0 [12:05:53]line ЗНМ: 0300000160 [12:05:53]line РНМ: 0000000000090829 [12:05:53]line Версия ККМ: 001 [12:05:53]line ФМ: 0000000000874718 [12:05:53]line ФД: 164192 [12:05:53]line ФПД: 161892540594946 [12:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120552&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164192&fm=161892540594946&tin=02508201610067®Number=0000000000090829&sum=30000 [12:05:53]OFD Sender: Processing packet 164192 [packets to send 104, broken 103] [12:05:53]ProducePacketName [12:05:53]name=ofd_packets/00164192 [12:05:53]OFD Sender: To server: pG, [12:05:53]CommunicateWithHost lk.salyk.kg:30040 [12:05:53]ConnectInit lk.salyk.kg [12:05:53]written 0, free lines is 4095 [12:05:53]Connected sock=10 [12:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C BD 07 01 78 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 20 1C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 81 02 00 35 04 06 00 93 3D 8B 5F BB 02 67 D3 D4 72 BC 27 77 CA [12:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B2 8B 47 00 70 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 34 37 31 38 10 04 04 00 60 81 02 00 F4 03 04 00 B5 C2 90 66 B6 04 01 00 00 12 8D 75 36 3B 30 07 1A [12:05:53]CommunicateWithHost err = 0 [12:05:53]CheckOFDResponse [12:05:53]1017 (14) - 77093643461234 [12:05:53]1041 (16) - 0000000000874718 [12:05:53]1040 (4) - 164192 [12:05:53]1012 (4) - 12.07.2024 05:44 [12:05:53]1206 (1) - 0 [12:05:53]OFD Sender: Remove packet 164192 [12:05:53]ProducePacketName [12:05:53]name=ofd_packets/00164192 [12:05:53]NVStorageDeleteData [12:05:53]Write to MH i2c: 01 00 00 98 15 AD [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: 01 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: 01 07 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: 01 07 00 98 15 00 00 00 00 00 F2 0C B2 [12:05:53]RasterBufferAndPrint [12:05:53]line [12:05:53]line [12:05:53]line [12:05:53]line [12:05:53]line [12:05:53]written 0, free lines is 3320 [12:05:53]MH_Cut [12:05:53]Write to MH i2c: D1 01 00 9F 15 01 86 [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: D1 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: D1 01 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: D1 01 00 9F 15 00 85 [12:05:53]Write to MH i2c: 01 00 00 A0 15 B5 [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:54]OFD Sender: No OFD packet to send [12:05:54]*** Cut start [12:05:54]*** Partial cut [12:05:54]*** CUTSNS_PIN = 1 [12:05:54]*** CUTSNS_PIN = 0 [12:05:54]*** Brake cut motor [12:05:55]Read from MH i2c: 01 [12:05:55]MH_I2C_Read... [12:05:55]*** Stop cut motor [12:05:55]*** Cut end [12:05:55]Read from MH i2c: 01 07 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: 01 07 00 A0 15 00 00 00 00 00 FF 0F CA [12:05:55]process_action close_receipt done [12:05:55]requested_data is exist [12:05:55]produce_requested_data [12:05:55]requested_item fm.sn is exist - process it [12:05:55]wFMCommunicate request_size=4 [12:05:55]MH_SAM_APDU [12:05:55]CAPDU: 80 11 00 00 [12:05:55]Write to MH i2c: E2 08 00 A1 15 80 11 00 00 00 00 00 00 30 [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:55]Read from MH i2c: E2 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 17 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 17 00 A1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [12:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:05:55]wFMCommunicate OK [12:05:55]requested_item fd.num is exist - process it [12:05:55]SAM_PROTO_GetFieldsCounters [12:05:55]wFMCommunicate request_size=4 [12:05:55]MH_SAM_APDU [12:05:55]CAPDU: 80 13 00 00 [12:05:55]Write to MH i2c: E2 08 00 A2 15 80 13 00 00 00 00 00 00 33 [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:55]Read from MH i2c: E2 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 62 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 62 00 A2 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [12:05:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:55]wFMCommunicate OK [12:05:55]SAM_PROTO_GetFieldsCounters done [12:05:55]requested_item shift.num is exist - process it [12:05:55]requested_item shift.opened is exist - process it [12:05:55]req_shift_opened [12:05:55]FM_GetShiftState [12:05:55]SAM_PROTO_GetShiftState [12:05:55]wFMCommunicate request_size=4 [12:05:55]MH_SAM_APDU [12:05:55]CAPDU: 80 13 01 00 [12:05:55]Write to MH i2c: E2 08 00 A3 15 80 13 01 00 00 00 00 00 35 [12:05:55]Write i2c OK [12:05:55]MH_I2C_Read... [12:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:55]Read from MH i2c: E2 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 0E 00 [12:05:55]MH_I2C_Read... [12:05:55]Read from MH i2c: E2 0E 00 A3 15 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7F [12:05:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:05:55]wFMCommunicate OK [12:05:55]SAM_PROTO_GetShiftState done [12:05:55]FM_GetShiftState done [12:05:55]req_shift_opened done [12:05:55]requested_item shift.open_date is exist - process it [12:05:55]req_shift_open_date [12:05:55]req_shift_open_date done [12:05:55]produce_requested_data done [12:05:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164192,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:05:55]process_action_free close_receipt [12:05:55]json_value_free [12:05:55]json_value_free done [12:05:55]process_json_proto returns [12:05:55]Send response to host [12:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164192,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:05:55]free response buf [12:05:55]execute_script done [12:05:55]execute_script returns [12:05:55]free content buf [12:05:55]Sock 9.Close socket [12:05:55]Sock 9.Thread stoped [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:44]accept exits with 7 [12:07:44]New connection [12:07:44]New thread 3066850660 created [12:07:44]Thread 3066707300 joined [12:07:44]Waiting for new connection... [12:07:44] Sock 7.Parse request [12:07:44]Sock 7.Check first char [12:07:44]Sock 7.First char is OK [12:07:44]request: POST /json_proto HTTP/1.0 [12:07:44]Method: POST [12:07:44]URL: /json_proto [12:07:44]Method is POST - this is cgi request [12:07:44]url: /json_proto [12:07:44]query_string will be loaded in cgi processing [12:07:44]execute_cgi json_proto POST (null) [12:07:44]execute_cgi path=json_proto method=POST [12:07:44]POST find Content-Length [12:07:44]Host: 172.17.56.4:8080 [12:07:44]Content-Length: 674 [12:07:44]Content-Type: application/json [12:07:44] [12:07:44]POST finish read [12:07:44]Found Content-Length = 674 [12:07:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458276", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:44]execute_script... [12:07: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)458276", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:44]POST & json_proto [12:07:44]process_json_proto [12:07:44]json parsed OK: [12:07:44]protocol is kg_v1.0 [12:07:44]action value=close_receipt [12:07:44]process_action close_receipt [12:07:44]cmd_close_receipt [12:07:44]MH_GetDate [12:07:44]Write to MH i2c: F0 00 00 A4 15 A8 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: F0 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: F0 09 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: F0 09 00 A4 15 00 91 1C 91 66 C9 DC B2 64 10 [12:07:44]GetLastDocTimeStamp 1720785952 [12:07:44]current date 1720786065 [12:07:44]FM_GetShiftState [12:07:44]SAM_PROTO_GetShiftState [12:07:44]wFMCommunicate request_size=4 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 13 01 00 [12:07:44]Write to MH i2c: E2 08 00 A5 15 80 13 01 00 00 00 00 00 37 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 0E 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 0E 00 A5 15 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 81 [12:07:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:07:44]wFMCommunicate OK [12:07:44]SAM_PROTO_GetShiftState done [12:07:44]FM_GetShiftState done [12:07:44]opened in 1720744654 [12:07:44]opened+sec_in_day 1720831054 [12:07:44]quantity*price = 50042 [12:07:44]sum+1 = 50043 [12:07:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 114 12.07.2024 12:07 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164193 ФПД: 154276980256822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120745&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164193&fm=154276980256822&tin=02508201610067®Number=0000000000090829&sum=50000 [12:07:45]StoreToDocumentArchive [12:07:45]shift 445 fd 164193 [12:07:45]save to /storage/0445/doc_00164193 [12:07:45]save last doc name /storage/0445/doc_00164193 to /storage/kkm_last_doc_name [12:07:45]save OK [12:07:45]Clear old archive folders... [12:07:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:07:45]tlvbuf is 00A7DD10 [12:07:45]SAM_PROTO_ClearQueue [12:07:45]wFMCommunicate request_size=4 [12:07:45]MH_SAM_APDU [12:07:45]CAPDU: 80 09 00 00 [12:07:45]Write to MH i2c: E2 08 00 B2 15 80 09 00 00 00 00 00 00 39 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:45]Read from MH i2c: E2 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 03 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [12:07:45]RAPDU: 90 00 [12:07:45]wFMCommunicate OK [12:07:45]SAM_PROTO_ClearQueue done [12:07:45]KKMCreateOFDPacket [12:07:45]OFDProtocolAddRootSTLVToBuf [12:07:45]FM_MakeSignedData [12:07:45]FM_MakeSignedData [12:07:45]SAM_PROTO_SignData [12:07:45]wFMCommunicate request_size=4 [12:07:45]MH_SAM_APDU [12:07:45]CAPDU: 80 0D 01 02 [12:07:45]Write to MH i2c: E2 08 00 B3 15 80 0D 01 02 00 00 00 00 41 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:45]Read from MH i2c: E2 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 03 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [12:07:45]RAPDU: 90 00 [12:07:45]wFMCommunicate OK [12:07:45]wFMCommunicate request_size=255 [12:07:45]MH_SAM_APDU [12:07:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 91 1C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 81 02 00 35 04 06 00 8C 50 68 9A [12:07:45]Write to MH i2c: E2 02 01 B4 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 91 1C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 81 02 00 35 04 06 00 8C 50 68 9A 00 00 AC [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 03 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 03 00 B4 15 00 90 00 3D [12:07:46]RAPDU: 90 00 [12:07:46]wFMCommunicate OK [12:07:46]wFMCommunicate request_size=7 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 0D 02 02 02 F0 36 [12:07:46]Write to MH i2c: E2 0A 00 B5 15 80 0D 02 02 02 00 F0 36 00 00 6E [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 03 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 03 00 B5 15 00 90 00 3E [12:07:46]RAPDU: 90 00 [12:07:46]wFMCommunicate OK [12:07:46]wFMCommunicate request_size=4 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 0D 03 02 [12:07:46]Write to MH i2c: E2 08 00 B6 15 80 0D 03 02 00 00 00 00 46 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0B 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0B 00 B6 15 00 5E D3 BC BC 87 46 25 F8 90 00 DA [12:07:46]RAPDU: 5E D3 BC BC 87 46 25 F8 90 00 [12:07:46]wFMCommunicate OK [12:07:46]SAM_PROTO_SignData done [12:07:46]FM_MakeSignedData done [12:07:46]CreateOFDProtocolMessage [12:07:46]wFMCommunicate request_size=4 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 11 00 00 [12:07:46]Write to MH i2c: E2 08 00 B7 15 80 11 00 00 00 00 00 00 46 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 17 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 17 00 B7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [12:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:07:46]wFMCommunicate OK [12:07:46]CreateOFDProtocolMessage done [12:07:46]OFDSenderStorePacket 164193 [12:07:46]StoreOFDPacket docnum=164193 [12:07:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DB 24 04 01 8E FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 91 1C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 81 02 00 35 04 06 00 8C 50 68 9A F0 36 5E D3 BC BC 87 46 25 F8 [12:07:46]CheckFolder [12:07:46]dirname=/storage/ofd_packets [12:07:46]CheckFolder done [12:07:46]ProducePacketName [12:07:46]name=ofd_packets/00164193 [12:07:46]NVStorageSaveData ofd_packets/00164193 [12:07:46]File name is /storage/ofd_packets/00164193 [12:07:46]Write 298 bytes [12:07:46]NVStorageSaveData done [12:07:46]OFDSenderStorePacket done [12:07:46]KKMCreateOFDPacket done [12:07:46]NVStorageSaveData kkm_last_timestamp [12:07:46]File name is /storage/kkm_last_timestamp [12:07:46]Write 4 bytes [12:07:46]NVStorageSaveData done [12:07:46]ExternCall_PrintAddStr [12:07:46]wPrintStart [12:07:46]Write to MH i2c: 01 00 00 B8 15 CD [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: 01 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: 01 07 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: 01 07 00 B8 15 00 00 00 00 00 FF 0F E2 [12:07:46]RasterBufferAndPrint [12:07:46]line Счет N : (1)458276 [12:07:46]line ИНН: 02508201610067 [12:07:46]line Контрольно-Кассовый Чек [12:07:46]line ПРОДАЖА [12:07:46]line ТРК (МРК, ГНК) : 21 [12:07:46]line Товар: 2710194210 [12:07:46]line ДТ-К-5 [12:07:46]line 6.960 * 71.90 [12:07:46]line = 500.42 [12:07:46]line НДС 12% НСП 1% [12:07:46]line > о реализуемом товаре [12:07:46]line ОКРУГЛЕНИЕ: -0.42 [12:07:46]line ИТОГО: 500.00 [12:07:46]line Внесено: 500.00 [12:07:46]line СДАЧА: 0.00 [12:07:46]line НСП 1% : 4.43 [12:07:46]line НДС 12% : 53.14 [12:07:46]line Наличными: 500.00 [12:07:46]line Безнал.: 0.00 [12:07:46]line Место: АЗС № 72 "Партнер Нефть" [12:07:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:07:46]line СНО: Общий режим [12:07:46]line Чек 114 12.07.2024 12:07 [12:07:46]line Смена: 445 ФФД: 1.0 [12:07:46]line ЗНМ: 0300000160 [12:07:46]line РНМ: 0000000000090829 [12:07:46]line Версия ККМ: 001 [12:07:46]line ФМ: 0000000000874718 [12:07:46]line ФД: 164193 [12:07:46]line ФПД: 154276980256822 [12:07:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T120745&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164193&fm=154276980256822&tin=02508201610067®Number=0000000000090829&sum=50000 [12:07:46]OFD Sender: Processing packet 164193 [packets to send 104, broken 103] [12:07:46]ProducePacketName [12:07:46]name=ofd_packets/00164193 [12:07:46]OFD Sender: To server: pG, [12:07:46]CommunicateWithHost lk.salyk.kg:30040 [12:07:46]ConnectInit lk.salyk.kg [12:07:46]written 0, free lines is 4095 [12:07:46]Connected sock=10 [12:07:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DB 24 04 01 8E FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 91 1C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 81 02 00 35 04 06 00 8C 50 68 9A F0 36 5E D3 BC BC 87 46 25 F8 [12:07:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 26 D0 47 00 35 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 34 37 31 38 10 04 04 00 61 81 02 00 F4 03 04 00 26 C3 90 66 B6 04 01 00 00 4F B1 66 4B F3 4E 85 0B [12:07:46]CommunicateWithHost err = 0 [12:07:46]CheckOFDResponse [12:07:46]1017 (14) - 77093643461234 [12:07:46]1041 (16) - 0000000000874718 [12:07:46]1040 (4) - 164193 [12:07:46]1012 (4) - 12.07.2024 05:46 [12:07:46]1206 (1) - 0 [12:07:46]OFD Sender: Remove packet 164193 [12:07:46]ProducePacketName [12:07:46]name=ofd_packets/00164193 [12:07:46]NVStorageDeleteData [12:07:46]Write to MH i2c: 01 00 00 E2 15 F7 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: 01 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: 01 07 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 E9 0C F3 [12:07:46]RasterBufferAndPrint [12:07:46]line [12:07:46]line [12:07:46]line [12:07:46]line [12:07:46]line [12:07:46]written 0, free lines is 3311 [12:07:46]MH_Cut [12:07:46]Write to MH i2c: D1 01 00 E9 15 01 D0 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: D1 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: D1 01 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: D1 01 00 E9 15 00 CF [12:07:46]Write to MH i2c: 01 00 00 EA 15 FF [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:47]OFD Sender: No OFD packet to send [12:07:47]*** Cut start [12:07:47]*** Partial cut [12:07:47]*** CUTSNS_PIN = 1 [12:07:47]*** CUTSNS_PIN = 0 [12:07:47]*** Brake cut motor [12:07:48]Read from MH i2c: 01 [12:07:48]MH_I2C_Read... [12:07:48]*** Stop cut motor [12:07:48]*** Cut end [12:07:48]Read from MH i2c: 01 07 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: 01 07 00 EA 15 00 00 00 00 00 FF 0F 14 [12:07:48]process_action close_receipt done [12:07:48]requested_data is exist [12:07:48]produce_requested_data [12:07:48]requested_item fm.sn is exist - process it [12:07:48]wFMCommunicate request_size=4 [12:07:48]MH_SAM_APDU [12:07:48]CAPDU: 80 11 00 00 [12:07:48]Write to MH i2c: E2 08 00 EB 15 80 11 00 00 00 00 00 00 7A [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:48]Read from MH i2c: E2 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 17 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 17 00 EB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [12:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:07:48]wFMCommunicate OK [12:07:48]requested_item fd.num is exist - process it [12:07:48]SAM_PROTO_GetFieldsCounters [12:07:48]wFMCommunicate request_size=4 [12:07:48]MH_SAM_APDU [12:07:48]CAPDU: 80 13 00 00 [12:07:48]Write to MH i2c: E2 08 00 EC 15 80 13 00 00 00 00 00 00 7D [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:48]Read from MH i2c: E2 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 62 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 62 00 EC 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:48]wFMCommunicate OK [12:07:48]SAM_PROTO_GetFieldsCounters done [12:07:48]requested_item shift.num is exist - process it [12:07:48]requested_item shift.opened is exist - process it [12:07:48]req_shift_opened [12:07:48]FM_GetShiftState [12:07:48]SAM_PROTO_GetShiftState [12:07:48]wFMCommunicate request_size=4 [12:07:48]MH_SAM_APDU [12:07:48]CAPDU: 80 13 01 00 [12:07:48]Write to MH i2c: E2 08 00 ED 15 80 13 01 00 00 00 00 00 7F [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:48]Read from MH i2c: E2 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 0E 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 0E 00 ED 15 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C9 [12:07:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:07:48]wFMCommunicate OK [12:07:48]SAM_PROTO_GetShiftState done [12:07:48]FM_GetShiftState done [12:07:48]req_shift_opened done [12:07:48]requested_item shift.open_date is exist - process it [12:07:48]req_shift_open_date [12:07:48]req_shift_open_date done [12:07:48]produce_requested_data done [12:07:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164193,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:07:48]process_action_free close_receipt [12:07:48]json_value_free [12:07:48]json_value_free done [12:07:48]process_json_proto returns [12:07:48]Send response to host [12:07:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164193,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:07:48]free response buf [12:07:48]execute_script done [12:07:48]execute_script returns [12:07:48]free content buf [12:07:48]Sock 7.Close socket [12:07:48]Sock 7.Thread stoped [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:39]accept exits with 9 [12:13:39]New connection [12:13:39]New thread 3066707300 created [12:13:39]Thread 3066850660 joined [12:13:39]Waiting for new connection... [12:13:39] Sock 9.Parse request [12:13:39]Sock 9.Check first char [12:13:39]Sock 9.First char is OK [12:13:39]request: POST /json_proto HTTP/1.0 [12:13:39]Method: POST [12:13:39]URL: /json_proto [12:13:39]Method is POST - this is cgi request [12:13:39]url: /json_proto [12:13:39]query_string will be loaded in cgi processing [12:13:39]execute_cgi json_proto POST (null) [12:13:39]execute_cgi path=json_proto method=POST [12:13:39]POST find Content-Length [12:13:39]Host: 172.17.56.4:8080 [12:13:39]Content-Length: 790 [12:13:39]Content-Type: application/json [12:13:39] [12:13:39]POST finish read [12:13:39]Found Content-Length = 790 [12:13:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:39]execute_script... [12:13: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)458277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:39]POST & json_proto [12:13:39]process_json_proto [12:13:39]json parsed OK: [12:13:39]protocol is kg_v1.0 [12:13:39]action value=close_receipt [12:13:39]process_action close_receipt [12:13:39]cmd_close_receipt [12:13:39]MH_GetDate [12:13:39]Write to MH i2c: F0 00 00 EE 15 F2 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: F0 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: F0 09 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: F0 09 00 EE 15 00 F5 1D 91 66 C9 DC B2 64 BF [12:13:39]GetLastDocTimeStamp 1720786065 [12:13:39]current date 1720786421 [12:13:39]FM_GetShiftState [12:13:39]SAM_PROTO_GetShiftState [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 13 01 00 [12:13:39]Write to MH i2c: E2 08 00 EF 15 80 13 01 00 00 00 00 00 81 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 0E 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 0E 00 EF 15 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CB [12:13:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:13:40]wFMCommunicate OK [12:13:40]SAM_PROTO_GetShiftState done [12:13:40]FM_GetShiftState done [12:13:40]opened in 1720744654 [12:13:40]opened+sec_in_day 1720831054 [12:13:40]quantity*price = 20022 [12:13:40]sum+1 = 20024 [12:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 115 12.07.2024 12:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164194 ФПД: 253982630862830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T121341&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164194&fm=253982630862830&tin=02508201610067®Number=0000000000090829&sum=20023 [12:13:41]StoreToDocumentArchive [12:13:41]shift 445 fd 164194 [12:13:41]save to /storage/0445/doc_00164194 [12:13:41]save last doc name /storage/0445/doc_00164194 to /storage/kkm_last_doc_name [12:13:41]save OK [12:13:41]Clear old archive folders... [12:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:41]tlvbuf is 009F9420 [12:13:41]SAM_PROTO_ClearQueue [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 09 00 00 [12:13:41]Write to MH i2c: E2 08 00 FC 15 80 09 00 00 00 00 00 00 83 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]SAM_PROTO_ClearQueue done [12:13:41]KKMCreateOFDPacket [12:13:41]OFDProtocolAddRootSTLVToBuf [12:13:41]FM_MakeSignedData [12:13:41]FM_MakeSignedData [12:13:41]SAM_PROTO_SignData [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 0D 01 02 [12:13:41]Write to MH i2c: E2 08 00 FD 15 80 0D 01 02 00 00 00 00 8B [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=255 [12:13:41]MH_SAM_APDU [12:13: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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F5 1D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 81 02 00 35 04 06 00 E6 [12:13:41]Write to MH i2c: E2 02 01 FE 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F5 1D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 81 02 00 35 04 06 00 E6 00 00 D2 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=10 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 0D 02 02 05 FE F0 7D DF EE [12:13:41]Write to MH i2c: E2 0D 00 FF 15 80 0D 02 02 05 00 FE F0 7D DF EE 00 00 D0 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 03 00 FF 15 00 90 00 88 [12:13:41]RAPDU: 90 00 [12:13:41]wFMCommunicate OK [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 0D 03 02 [12:13:41]Write to MH i2c: E2 08 00 00 16 80 0D 03 02 00 00 00 00 91 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 0B 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 0B 00 00 16 00 8B DC 8D 52 49 9E B3 09 90 00 7B [12:13:41]RAPDU: 8B DC 8D 52 49 9E B3 09 90 00 [12:13:41]wFMCommunicate OK [12:13:41]SAM_PROTO_SignData done [12:13:41]FM_MakeSignedData done [12:13:41]CreateOFDProtocolMessage [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 11 00 00 [12:13:41]Write to MH i2c: E2 08 00 01 16 80 11 00 00 00 00 00 00 91 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 17 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 17 00 01 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E7 [12:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:13:41]wFMCommunicate OK [12:13:41]CreateOFDProtocolMessage done [12:13:41]OFDSenderStorePacket 164194 [12:13:41]StoreOFDPacket docnum=164194 [12:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 64 07 01 40 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F5 1D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 81 02 00 35 04 06 00 E6 FE F0 7D DF EE 8B DC 8D 52 49 9E B3 09 [12:13:41]CheckFolder [12:13:41]dirname=/storage/ofd_packets [12:13:41]CheckFolder done [12:13:41]ProducePacketName [12:13:41]name=ofd_packets/00164194 [12:13:41]NVStorageSaveData ofd_packets/00164194 [12:13:41]File name is /storage/ofd_packets/00164194 [12:13:41]Write 301 bytes [12:13:41]NVStorageSaveData done [12:13:41]OFDSenderStorePacket done [12:13:41]KKMCreateOFDPacket done [12:13:41]NVStorageSaveData kkm_last_timestamp [12:13:41]File name is /storage/kkm_last_timestamp [12:13:41]Write 4 bytes [12:13:41]NVStorageSaveData done [12:13:41]ExternCall_PrintAddStr [12:13:41]wPrintStart [12:13:41]Write to MH i2c: 01 00 00 02 16 18 [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: 01 07 00 02 16 00 00 00 00 00 FF 0F 2D [12:13:41]RasterBufferAndPrint [12:13:41]line Счет N : (1)458277 [12:13:41]line ИНН: 02508201610067 [12:13:41]line Контрольно-Кассовый Чек [12:13:41]line ПРОДАЖА [12:13:41]line ТРК (МРК, ГНК) : 12 [12:13:41]line Товар: 2710124130 [12:13:41]line Аи-92-К-5 [12:13:41]line 3.070 * 65.22 [12:13:41]line = 200.23 [12:13:41]line НДС 12% НСП 1% [12:13:41]line > о реализуемом товаре [12:13:41]line ИТОГО: 200.23 [12:13:41]line НСП 1% : 1.77 [12:13:41]line НДС 12% : 21.26 [12:13:41]line Наличными: 0.00 [12:13:41]line Безнал.: 200.23 [12:13:41]line Место: АЗС № 72 "Партнер Нефть" [12:13:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:13:41]line СНО: Общий режим [12:13:41]line Чек 115 12.07.2024 12:13 [12:13:41]line Смена: 445 ФФД: 1.0 [12:13:41]line ЗНМ: 0300000160 [12:13:41]line РНМ: 0000000000090829 [12:13:41]line Версия ККМ: 001 [12:13:41]line Платежная система: KICB Банк [12:13:41]line ФМ: 0000000000874718 [12:13:41]line ФД: 164194 [12:13:41]line ФПД: 253982630862830 [12:13:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T121341&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164194&fm=253982630862830&tin=02508201610067®Number=0000000000090829&sum=20023 [12:13:41]written 0, free lines is 4095 [12:13:41]OFD Sender: Processing packet 164194 [packets to send 104, broken 103] [12:13:41]ProducePacketName [12:13:41]name=ofd_packets/00164194 [12:13:41]OFD Sender: To server: pG, [12:13:42]CommunicateWithHost lk.salyk.kg:30040 [12:13:42]ConnectInit lk.salyk.kg [12:13:42]Connected sock=10 [12:13:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 64 07 01 40 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F5 1D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 81 02 00 35 04 06 00 E6 FE F0 7D DF EE 8B DC 8D 52 49 9E B3 09 [12:13:42]Write to MH i2c: 01 00 00 2B 16 41 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: 01 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: 01 07 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: 01 07 00 2B 16 00 00 00 00 00 12 0D 67 [12:13:42]RasterBufferAndPrint [12:13:42]line [12:13:42]line [12:13:42]line [12:13:42]line [12:13:42]line [12:13:42]written 0, free lines is 3353 [12:13:42]MH_Cut [12:13:42]Write to MH i2c: D1 01 00 32 16 01 1A [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: D1 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: D1 01 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: D1 01 00 32 16 00 19 [12:13:42]Write to MH i2c: 01 00 00 33 16 49 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 B8 47 00 00 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 34 37 31 38 10 04 04 00 62 81 02 00 F4 03 04 00 89 C4 90 66 B6 04 01 00 00 F2 6B F9 74 DE EE B5 EF [12:13:42]CommunicateWithHost err = 0 [12:13:42]CheckOFDResponse [12:13:42]1017 (14) - 77093643461234 [12:13:42]1041 (16) - 0000000000874718 [12:13:42]1040 (4) - 164194 [12:13:42]1012 (4) - 12.07.2024 05:52 [12:13:42]1206 (1) - 0 [12:13:42]OFD Sender: Remove packet 164194 [12:13:42]ProducePacketName [12:13:42]name=ofd_packets/00164194 [12:13:42]NVStorageDeleteData [12:13:42]*** Cut start [12:13:42]*** Partial cut [12:13:42]*** CUTSNS_PIN = 1 [12:13:42]*** CUTSNS_PIN = 0 [12:13:42]OFD Sender: No OFD packet to send [12:13:43]*** Brake cut motor [12:13:43]Read from MH i2c: 01 [12:13:43]MH_I2C_Read... [12:13:43]*** Stop cut motor [12:13:43]*** Cut end [12:13:43]Read from MH i2c: 01 07 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: 01 07 00 33 16 00 00 00 00 00 FF 0F 5E [12:13:43]process_action close_receipt done [12:13:43]requested_data is exist [12:13:43]produce_requested_data [12:13:43]requested_item fm.sn is exist - process it [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 11 00 00 [12:13:43]Write to MH i2c: E2 08 00 34 16 80 11 00 00 00 00 00 00 C4 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 17 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 17 00 34 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [12:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:13:43]wFMCommunicate OK [12:13:43]requested_item fd.num is exist - process it [12:13:43]SAM_PROTO_GetFieldsCounters [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 13 00 00 [12:13:43]Write to MH i2c: E2 08 00 35 16 80 13 00 00 00 00 00 00 C7 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 62 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 62 00 35 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [12:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:43]wFMCommunicate OK [12:13:43]SAM_PROTO_GetFieldsCounters done [12:13:43]requested_item shift.num is exist - process it [12:13:43]requested_item shift.opened is exist - process it [12:13:43]req_shift_opened [12:13:43]FM_GetShiftState [12:13:43]SAM_PROTO_GetShiftState [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 13 01 00 [12:13:43]Write to MH i2c: E2 08 00 36 16 80 13 01 00 00 00 00 00 C9 [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 0E 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 0E 00 36 16 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 13 [12:13:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:13:43]wFMCommunicate OK [12:13:43]SAM_PROTO_GetShiftState done [12:13:43]FM_GetShiftState done [12:13:43]req_shift_opened done [12:13:43]requested_item shift.open_date is exist - process it [12:13:43]req_shift_open_date [12:13:43]req_shift_open_date done [12:13:43]produce_requested_data done [12:13:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164194,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:13:43]process_action_free close_receipt [12:13:43]json_value_free [12:13:43]json_value_free done [12:13:43]process_json_proto returns [12:13:43]Send response to host [12:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164194,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:13:43]free response buf [12:13:43]execute_script done [12:13:43]execute_script returns [12:13:43]free content buf [12:13:43]Sock 9.Close socket [12:13:43]Sock 9.Thread stoped [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:00]accept exits with 7 [12:17:00]New connection [12:17:00]New thread 3066850660 created [12:17:00]Thread 3066707300 joined [12:17:00]Waiting for new connection... [12:17:00] Sock 7.Parse request [12:17:00]Sock 7.Check first char [12:17:00]Sock 7.First char is OK [12:17:00]request: POST /json_proto HTTP/1.0 [12:17:00]Method: POST [12:17:00]URL: /json_proto [12:17:00]Method is POST - this is cgi request [12:17:00]url: /json_proto [12:17:00]query_string will be loaded in cgi processing [12:17:00]execute_cgi json_proto POST (null) [12:17:00]execute_cgi path=json_proto method=POST [12:17:00]POST find Content-Length [12:17:00]Host: 172.17.56.4:8080 [12:17:00]Content-Length: 673 [12:17:00]Content-Type: application/json [12:17:00] [12:17:00]POST finish read [12:17:00]Found Content-Length = 673 [12:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.100, "sum" : 72.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 72.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:00]execute_script... [12:17: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)458278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.100, "sum" : 72.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 72.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:00]POST & json_proto [12:17:00]process_json_proto [12:17:00]json parsed OK: [12:17:00]protocol is kg_v1.0 [12:17:00]action value=close_receipt [12:17:00]process_action close_receipt [12:17:00]cmd_close_receipt [12:17:00]MH_GetDate [12:17:00]Write to MH i2c: F0 00 00 37 16 3C [12:17:00]Write i2c OK [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: F0 [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: F0 09 00 [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: F0 09 00 37 16 00 BD 1E 91 66 C9 DC B2 64 D2 [12:17:00]GetLastDocTimeStamp 1720786421 [12:17:00]current date 1720786621 [12:17:00]FM_GetShiftState [12:17:00]SAM_PROTO_GetShiftState [12:17:00]wFMCommunicate request_size=4 [12:17:00]MH_SAM_APDU [12:17:00]CAPDU: 80 13 01 00 [12:17:00]Write to MH i2c: E2 08 00 38 16 80 13 01 00 00 00 00 00 CB [12:17:00]Write i2c OK [12:17:00]MH_I2C_Read... [12:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:00]Read from MH i2c: E2 [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: E2 0E 00 [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: E2 0E 00 38 16 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 15 [12:17:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:17:00]wFMCommunicate OK [12:17:00]SAM_PROTO_GetShiftState done [12:17:00]FM_GetShiftState done [12:17:00]opened in 1720744654 [12:17:00]opened+sec_in_day 1720831054 [12:17:00]quantity*price = 7238 [12:17:00]sum+1 = 7239 [12:17:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 72.00 Внесено: 72.00 СДАЧА: 0.00 НСП 1% : 0.64 НДС 12% : 7.69 Наличными: 72.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 116 12.07.2024 12:17 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164195 ФПД: 251018262389639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T121701&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164195&fm=251018262389639&tin=02508201610067®Number=0000000000090829&sum=7200 [12:17:01]StoreToDocumentArchive [12:17:01]shift 445 fd 164195 [12:17:01]save to /storage/0445/doc_00164195 [12:17:01]save last doc name /storage/0445/doc_00164195 to /storage/kkm_last_doc_name [12:17:01]save OK [12:17:01]Clear old archive folders... [12:17:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:01]tlvbuf is 00A4F8A0 [12:17:01]SAM_PROTO_ClearQueue [12:17:01]wFMCommunicate request_size=4 [12:17:01]MH_SAM_APDU [12:17:01]CAPDU: 80 09 00 00 [12:17:01]Write to MH i2c: E2 08 00 45 16 80 09 00 00 00 00 00 00 CD [12:17:01]Write i2c OK [12:17:01]MH_I2C_Read... [12:17:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:01]Read from MH i2c: E2 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 03 00 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [12:17:01]RAPDU: 90 00 [12:17:01]wFMCommunicate OK [12:17:01]SAM_PROTO_ClearQueue done [12:17:01]KKMCreateOFDPacket [12:17:01]OFDProtocolAddRootSTLVToBuf [12:17:01]FM_MakeSignedData [12:17:01]FM_MakeSignedData [12:17:01]SAM_PROTO_SignData [12:17:01]wFMCommunicate request_size=4 [12:17:01]MH_SAM_APDU [12:17:01]CAPDU: 80 0D 01 02 [12:17:01]Write to MH i2c: E2 08 00 46 16 80 0D 01 02 00 00 00 00 D5 [12:17:01]Write i2c OK [12:17:01]MH_I2C_Read... [12:17:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:01]Read from MH i2c: E2 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 03 00 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [12:17:01]RAPDU: 90 00 [12:17:01]wFMCommunicate OK [12:17:01]wFMCommunicate request_size=255 [12:17:01]MH_SAM_APDU [12:17:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 03 00 00 00 00 07 04 06 00 20 1C 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 BD 1E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 81 02 00 35 04 06 00 E4 [12:17:01]Write to MH i2c: E2 02 01 47 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 03 00 00 00 00 07 04 06 00 20 1C 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 BD 1E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 81 02 00 35 04 06 00 E4 00 00 EE [12:17:01]Write i2c OK [12:17:01]MH_I2C_Read... [12:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:02]Read from MH i2c: E2 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: E2 03 00 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [12:17:02]RAPDU: 90 00 [12:17:02]wFMCommunicate OK [12:17:02]wFMCommunicate request_size=10 [12:17:02]MH_SAM_APDU [12:17:02]CAPDU: 80 0D 02 02 05 4C BE 5C A3 87 [12:17:02]Write to MH i2c: E2 0D 00 48 16 80 0D 02 02 05 00 4C BE 5C A3 87 00 00 72 [12:17:02]Write i2c OK [12:17:02]MH_I2C_Read... [12:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:02]Read from MH i2c: E2 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: E2 03 00 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [12:17:02]RAPDU: 90 00 [12:17:02]wFMCommunicate OK [12:17:02]wFMCommunicate request_size=4 [12:17:02]MH_SAM_APDU [12:17:02]CAPDU: 80 0D 03 02 [12:17:02]Write to MH i2c: E2 08 00 49 16 80 0D 03 02 00 00 00 00 DA [12:17:02]Write i2c OK [12:17:02]MH_I2C_Read... [12:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:02]Read from MH i2c: E2 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: E2 0B 00 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: E2 0B 00 49 16 00 CA 07 88 C0 0A 65 EB 05 90 00 53 [12:17:02]RAPDU: CA 07 88 C0 0A 65 EB 05 90 00 [12:17:02]wFMCommunicate OK [12:17:02]SAM_PROTO_SignData done [12:17:02]FM_MakeSignedData done [12:17:02]CreateOFDProtocolMessage [12:17:02]wFMCommunicate request_size=4 [12:17:02]MH_SAM_APDU [12:17:02]CAPDU: 80 11 00 00 [12:17:02]Write to MH i2c: E2 08 00 4A 16 80 11 00 00 00 00 00 00 DA [12:17:02]Write i2c OK [12:17:02]MH_I2C_Read... [12:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:02]Read from MH i2c: E2 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: E2 17 00 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: E2 17 00 4A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [12:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:17:02]wFMCommunicate OK [12:17:02]CreateOFDProtocolMessage done [12:17:02]OFDSenderStorePacket 164195 [12:17:02]StoreOFDPacket docnum=164195 [12:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 FC 07 01 FD AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 03 00 00 00 00 07 04 06 00 20 1C 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 BD 1E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 81 02 00 35 04 06 00 E4 4C BE 5C A3 87 CA 07 88 C0 0A 65 EB 05 [12:17:02]CheckFolder [12:17:02]dirname=/storage/ofd_packets [12:17:02]CheckFolder done [12:17:02]ProducePacketName [12:17:02]name=ofd_packets/00164195 [12:17:02]NVStorageSaveData ofd_packets/00164195 [12:17:02]File name is /storage/ofd_packets/00164195 [12:17:02]Write 301 bytes [12:17:02]NVStorageSaveData done [12:17:02]OFDSenderStorePacket done [12:17:02]KKMCreateOFDPacket done [12:17:02]NVStorageSaveData kkm_last_timestamp [12:17:02]File name is /storage/kkm_last_timestamp [12:17:02]Write 4 bytes [12:17:02]NVStorageSaveData done [12:17:02]OFD Sender: Processing packet 164195 [packets to send 104, broken 103] [12:17:02]ProducePacketName [12:17:02]name=ofd_packets/00164195 [12:17:02]OFD Sender: To server: pG, [12:17:02]CommunicateWithHost lk.salyk.kg:30040 [12:17:02]ConnectInit lk.salyk.kg [12:17:02]ExternCall_PrintAddStr [12:17:02]wPrintStart [12:17:02]Write to MH i2c: 01 00 00 4B 16 61 [12:17:02]Write i2c OK [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: 01 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: 01 07 00 [12:17:02]MH_I2C_Read... [12:17:02]Read from MH i2c: 01 07 00 4B 16 00 00 00 00 00 FF 0F 76 [12:17:02]RasterBufferAndPrint [12:17:02]line Счет N : (1)458278 [12:17:02]line ИНН: 02508201610067 [12:17:02]line Контрольно-Кассовый Чек [12:17:02]line ПРОДАЖА [12:17:02]line ТРК (МРК, ГНК) : 12 [12:17:02]line Товар: 2710124130 [12:17:02]line Аи-92-К-5 [12:17:02]line 1.100 * 65.80 [12:17:02]line = 72.38 [12:17:02]line НДС 12% НСП 1% [12:17:02]line > о реализуемом товаре [12:17:02]line ОКРУГЛЕНИЕ: -0.38 [12:17:02]line ИТОГО: 72.00 [12:17:02]line Внесено: 72.00 [12:17:02]line СДАЧА: 0.00 [12:17:02]line НСП 1% : 0.64 [12:17:02]line НДС 12% : 7.69 [12:17:02]line Наличными: 72.00 [12:17:02]line Безнал.: 0.00 [12:17:02]line Место: АЗС № 72 "Партнер Нефть" [12:17:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:17:02]line СНО: Общий режим [12:17:02]line Чек 116 12.07.2024 12:17 [12:17:02]line Смена: 445 ФФД: 1.0 [12:17:02]line ЗНМ: 0300000160 [12:17:02]line РНМ: 0000000000090829 [12:17:02]line Версия ККМ: 001 [12:17:02]line ФМ: 0000000000874718 [12:17:02]line ФД: 164195 [12:17:02]line ФПД: 251018262389639 [12:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T121701&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164195&fm=251018262389639&tin=02508201610067®Number=0000000000090829&sum=7200 [12:17:02]Connected sock=11 [12:17:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 FC 07 01 FD AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 03 00 00 00 00 07 04 06 00 20 1C 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 BD 1E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 81 02 00 35 04 06 00 E4 4C BE 5C A3 87 CA 07 88 C0 0A 65 EB 05 [12:17:02]written 0, free lines is 4095 [12:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B8 CF 47 00 13 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 34 37 31 38 10 04 04 00 63 81 02 00 F4 03 04 00 52 C5 90 66 B6 04 01 00 00 F4 8C 21 D9 55 BA 54 BC [12:17:02]CommunicateWithHost err = 0 [12:17:02]CheckOFDResponse [12:17:02]1017 (14) - 77093643461234 [12:17:02]1041 (16) - 0000000000874718 [12:17:02]1040 (4) - 164195 [12:17:02]1012 (4) - 12.07.2024 05:55 [12:17:02]1206 (1) - 0 [12:17:02]OFD Sender: Remove packet 164195 [12:17:02]ProducePacketName [12:17:02]name=ofd_packets/00164195 [12:17:02]NVStorageDeleteData [12:17:03]Write to MH i2c: 01 00 00 75 16 8B [12:17:03]Write i2c OK [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: 01 [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: 01 07 00 [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: 01 07 00 75 16 00 00 00 00 00 F5 0C 93 [12:17:03]RasterBufferAndPrint [12:17:03]line [12:17:03]line [12:17:03]line [12:17:03]line [12:17:03]line [12:17:03]written 0, free lines is 3323 [12:17:03]MH_Cut [12:17:03]Write to MH i2c: D1 01 00 7C 16 01 64 [12:17:03]Write i2c OK [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: D1 [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: D1 01 00 [12:17:03]MH_I2C_Read... [12:17:03]Read from MH i2c: D1 01 00 7C 16 00 63 [12:17:03]Write to MH i2c: 01 00 00 7D 16 93 [12:17:03]Write i2c OK [12:17:03]MH_I2C_Read... [12:17:03]OFD Sender: No OFD packet to send [12:17:03]*** Cut start [12:17:03]*** Partial cut [12:17:03]*** CUTSNS_PIN = 1 [12:17:03]*** CUTSNS_PIN = 0 [12:17:04]*** Brake cut motor [12:17:04]Read from MH i2c: 01 [12:17:04]MH_I2C_Read... [12:17:04]*** Stop cut motor [12:17:04]*** Cut end [12:17:04]Read from MH i2c: 01 07 00 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: 01 07 00 7D 16 00 00 00 00 00 FF 0F A8 [12:17:04]process_action close_receipt done [12:17:04]requested_data is exist [12:17:04]produce_requested_data [12:17:04]requested_item fm.sn is exist - process it [12:17:04]wFMCommunicate request_size=4 [12:17:04]MH_SAM_APDU [12:17:04]CAPDU: 80 11 00 00 [12:17:04]Write to MH i2c: E2 08 00 7E 16 80 11 00 00 00 00 00 00 0E [12:17:04]Write i2c OK [12:17:04]MH_I2C_Read... [12:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:04]Read from MH i2c: E2 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 17 00 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 17 00 7E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [12:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:17:04]wFMCommunicate OK [12:17:04]requested_item fd.num is exist - process it [12:17:04]SAM_PROTO_GetFieldsCounters [12:17:04]wFMCommunicate request_size=4 [12:17:04]MH_SAM_APDU [12:17:04]CAPDU: 80 13 00 00 [12:17:04]Write to MH i2c: E2 08 00 7F 16 80 13 00 00 00 00 00 00 11 [12:17:04]Write i2c OK [12:17:04]MH_I2C_Read... [12:17:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:04]Read from MH i2c: E2 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 62 00 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 62 00 7F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12:17: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:04]wFMCommunicate OK [12:17:04]SAM_PROTO_GetFieldsCounters done [12:17:04]requested_item shift.num is exist - process it [12:17:04]requested_item shift.opened is exist - process it [12:17:04]req_shift_opened [12:17:04]FM_GetShiftState [12:17:04]SAM_PROTO_GetShiftState [12:17:04]wFMCommunicate request_size=4 [12:17:04]MH_SAM_APDU [12:17:04]CAPDU: 80 13 01 00 [12:17:04]Write to MH i2c: E2 08 00 80 16 80 13 01 00 00 00 00 00 13 [12:17:04]Write i2c OK [12:17:04]MH_I2C_Read... [12:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:04]Read from MH i2c: E2 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 0E 00 [12:17:04]MH_I2C_Read... [12:17:04]Read from MH i2c: E2 0E 00 80 16 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5D [12:17:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:17:04]wFMCommunicate OK [12:17:04]SAM_PROTO_GetShiftState done [12:17:04]FM_GetShiftState done [12:17:04]req_shift_opened done [12:17:04]requested_item shift.open_date is exist - process it [12:17:04]req_shift_open_date [12:17:04]req_shift_open_date done [12:17:04]produce_requested_data done [12:17:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164195,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:17:04]process_action_free close_receipt [12:17:04]json_value_free [12:17:04]json_value_free done [12:17:04]process_json_proto returns [12:17:04]Send response to host [12:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164195,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:17:04]free response buf [12:17:04]execute_script done [12:17:04]execute_script returns [12:17:04]free content buf [12:17:04]Sock 7.Close socket [12:17:04]Sock 7.Thread stoped [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18: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:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:39]accept exits with 9 [12:20:39]New connection [12:20:39]New thread 3066707300 created [12:20:39]Thread 3066850660 joined [12:20:39]Waiting for new connection... [12:20:39] Sock 9.Parse request [12:20:39]Sock 9.Check first char [12:20:39]Sock 9.First char is OK [12:20:39]request: POST /json_proto HTTP/1.0 [12:20:39]Method: POST [12:20:39]URL: /json_proto [12:20:39]Method is POST - this is cgi request [12:20:39]url: /json_proto [12:20:39]query_string will be loaded in cgi processing [12:20:39]execute_cgi json_proto POST (null) [12:20:39]execute_cgi path=json_proto method=POST [12:20:39]POST find Content-Length [12:20:39]Host: 172.17.56.4:8080 [12:20:39]Content-Length: 677 [12:20:39]Content-Type: application/json [12:20:39] [12:20:39]POST finish read [12:20:39]Found Content-Length = 677 [12:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:20:39]execute_script... [12:20: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)458279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:20:39]POST & json_proto [12:20:39]process_json_proto [12:20:39]json parsed OK: [12:20:39]protocol is kg_v1.0 [12:20:39]action value=close_receipt [12:20:39]process_action close_receipt [12:20:39]cmd_close_receipt [12:20:39]MH_GetDate [12:20:39]Write to MH i2c: F0 00 00 81 16 86 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 09 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 09 00 81 16 00 99 1F 91 66 C9 DC B2 64 F9 [12:20:39]GetLastDocTimeStamp 1720786621 [12:20:39]current date 1720786841 [12:20:39]FM_GetShiftState [12:20:39]SAM_PROTO_GetShiftState [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 13 01 00 [12:20:39]Write to MH i2c: E2 08 00 82 16 80 13 01 00 00 00 00 00 15 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 82 16 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5F [12:20:39]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:20:39]wFMCommunicate OK [12:20:39]SAM_PROTO_GetShiftState done [12:20:39]FM_GetShiftState done [12:20:39]opened in 1720744654 [12:20:39]opened+sec_in_day 1720831054 [12:20:39]quantity*price = 30004 [12:20:39]sum+1 = 30006 [12:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 117 12.07.2024 12:20 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164196 ФПД: 229523529890592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122041&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164196&fm=229523529890592&tin=02508201610067®Number=0000000000090829&sum=30000 [12:20:41]StoreToDocumentArchive [12:20:41]shift 445 fd 164196 [12:20:41]save to /storage/0445/doc_00164196 [12:20:41]save last doc name /storage/0445/doc_00164196 to /storage/kkm_last_doc_name [12:20:41]save OK [12:20:41]Clear old archive folders... [12:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:41]tlvbuf is B6EA8150 [12:20:41]SAM_PROTO_ClearQueue [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 09 00 00 [12:20:41]Write to MH i2c: E2 08 00 8F 16 80 09 00 00 00 00 00 00 17 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 8F 16 00 90 00 19 [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_ClearQueue done [12:20:41]KKMCreateOFDPacket [12:20:41]OFDProtocolAddRootSTLVToBuf [12:20:41]FM_MakeSignedData [12:20:41]FM_MakeSignedData [12:20:41]SAM_PROTO_SignData [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 01 02 [12:20:41]Write to MH i2c: E2 08 00 90 16 80 0D 01 02 00 00 00 00 1F [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=255 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 99 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 81 02 00 35 04 06 00 D0 [12:20:41]Write to MH i2c: E2 02 01 91 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 99 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 81 02 00 35 04 06 00 D0 00 00 F2 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 91 16 00 90 00 1B [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=10 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 02 02 05 C0 1C 77 7B 20 [12:20:41]Write to MH i2c: E2 0D 00 92 16 80 0D 02 02 05 00 C0 1C 77 7B 20 00 00 1A [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 92 16 00 90 00 1C [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 03 02 [12:20:41]Write to MH i2c: E2 08 00 93 16 80 0D 03 02 00 00 00 00 24 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0B 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0B 00 93 16 00 06 3B E8 41 DE 4B 02 15 90 00 CF [12:20:41]RAPDU: 06 3B E8 41 DE 4B 02 15 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_SignData done [12:20:41]FM_MakeSignedData done [12:20:41]CreateOFDProtocolMessage [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 11 00 00 [12:20:41]Write to MH i2c: E2 08 00 94 16 80 11 00 00 00 00 00 00 24 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 94 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [12:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:41]wFMCommunicate OK [12:20:41]CreateOFDProtocolMessage done [12:20:41]OFDSenderStorePacket 164196 [12:20:41]StoreOFDPacket docnum=164196 [12:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 98 2A 07 01 89 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 99 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 81 02 00 35 04 06 00 D0 C0 1C 77 7B 20 06 3B E8 41 DE 4B 02 15 [12:20:41]CheckFolder [12:20:41]dirname=/storage/ofd_packets [12:20:41]CheckFolder done [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00164196 [12:20:41]NVStorageSaveData ofd_packets/00164196 [12:20:41]File name is /storage/ofd_packets/00164196 [12:20:41]Write 301 bytes [12:20:41]NVStorageSaveData done [12:20:41]OFDSenderStorePacket done [12:20:41]KKMCreateOFDPacket done [12:20:41]NVStorageSaveData kkm_last_timestamp [12:20:41]File name is /storage/kkm_last_timestamp [12:20:41]Write 4 bytes [12:20:41]NVStorageSaveData done [12:20:41]OFD Sender: Processing packet 164196 [packets to send 104, broken 103] [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00164196 [12:20:41]OFD Sender: To server: pG, [12:20:41]CommunicateWithHost lk.salyk.kg:30040 [12:20:41]ConnectInit lk.salyk.kg [12:20:41]ExternCall_PrintAddStr [12:20:41]wPrintStart [12:20:41]Write to MH i2c: 01 00 00 95 16 AB [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 95 16 00 00 00 00 00 FF 0F C0 [12:20:41]RasterBufferAndPrint [12:20:41]line Счет N : (1)458279 [12:20:41]line ИНН: 02508201610067 [12:20:41]line Контрольно-Кассовый Чек [12:20:41]line ПРОДАЖА [12:20:41]line ТРК (МРК, ГНК) : 22 [12:20:41]line Товар: 2710124130 [12:20:41]line Аи-92-К-5 [12:20:41]line 4.560 * 65.80 [12:20:41]line = 300.05 [12:20:41]line НДС 12% НСП 1% [12:20:41]line > о реализуемом товаре [12:20:41]line ОКРУГЛЕНИЕ: -0.05 [12:20:41]line ИТОГО: 300.00 [12:20:41]line Внесено: 300.00 [12:20:41]line СДАЧА: 0.00 [12:20:41]line НСП 1% : 2.65 [12:20:41]line НДС 12% : 31.86 [12:20:41]line Наличными: 300.00 [12:20:41]line Безнал.: 0.00 [12:20:41]line Место: АЗС № 72 "Партнер Нефть" [12:20:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:20:41]line СНО: Общий режим [12:20:41]line Чек 117 12.07.2024 12:20 [12:20:41]line Смена: 445 ФФД: 1.0 [12:20:41]line ЗНМ: 0300000160 [12:20:41]line РНМ: 0000000000090829 [12:20:41]line Версия ККМ: 001 [12:20:41]line ФМ: 0000000000874718 [12:20:41]line ФД: 164196 [12:20:41]line ФПД: 229523529890592 [12:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122041&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164196&fm=229523529890592&tin=02508201610067®Number=0000000000090829&sum=30000 [12:20:41]Connected sock=11 [12:20:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 98 2A 07 01 89 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 99 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 81 02 00 35 04 06 00 D0 C0 1C 77 7B 20 06 3B E8 41 DE 4B 02 15 [12:20:41]written 0, free lines is 4095 [12:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4D C3 47 00 E2 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 34 37 31 38 10 04 04 00 64 81 02 00 F4 03 04 00 2D C6 90 66 B6 04 01 00 00 DF B4 82 8F 40 0B 90 1B [12:20:42]CommunicateWithHost err = 0 [12:20:42]CheckOFDResponse [12:20:42]1017 (14) - 77093643461234 [12:20:42]1041 (16) - 0000000000874718 [12:20:42]1040 (4) - 164196 [12:20:42]1012 (4) - 12.07.2024 05:59 [12:20:42]1206 (1) - 0 [12:20:42]OFD Sender: Remove packet 164196 [12:20:42]ProducePacketName [12:20:42]name=ofd_packets/00164196 [12:20:42]NVStorageDeleteData [12:20:42]Write to MH i2c: 01 00 00 BF 16 D5 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 07 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 07 00 BF 16 00 00 00 00 00 F6 0C DE [12:20:42]RasterBufferAndPrint [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]written 0, free lines is 3324 [12:20:42]MH_Cut [12:20:42]Write to MH i2c: D1 01 00 C6 16 01 AE [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 01 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 01 00 C6 16 00 AD [12:20:42]Write to MH i2c: 01 00 00 C7 16 DD [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]OFD Sender: No OFD packet to send [12:20:43]*** Cut start [12:20:43]*** Partial cut [12:20:43]*** CUTSNS_PIN = 1 [12:20:43]*** CUTSNS_PIN = 0 [12:20:43]*** Brake cut motor [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]*** Stop cut motor [12:20:43]*** Cut end [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 C7 16 00 00 00 00 00 FF 0F F2 [12:20:43]process_action close_receipt done [12:20:43]requested_data is exist [12:20:43]produce_requested_data [12:20:43]requested_item fm.sn is exist - process it [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 11 00 00 [12:20:43]Write to MH i2c: E2 08 00 C8 16 80 11 00 00 00 00 00 00 58 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 C8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [12:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:43]wFMCommunicate OK [12:20:43]requested_item fd.num is exist - process it [12:20:43]SAM_PROTO_GetFieldsCounters [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 00 00 [12:20:43]Write to MH i2c: E2 08 00 C9 16 80 13 00 00 00 00 00 00 5B [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 C9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [12:20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetFieldsCounters done [12:20:43]requested_item shift.num is exist - process it [12:20:43]requested_item shift.opened is exist - process it [12:20:43]req_shift_opened [12:20:43]FM_GetShiftState [12:20:43]SAM_PROTO_GetShiftState [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 01 00 [12:20:43]Write to MH i2c: E2 08 00 CA 16 80 13 01 00 00 00 00 00 5D [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 CA 16 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A7 [12:20:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetShiftState done [12:20:43]FM_GetShiftState done [12:20:43]req_shift_opened done [12:20:43]requested_item shift.open_date is exist - process it [12:20:43]req_shift_open_date [12:20:43]req_shift_open_date done [12:20:43]produce_requested_data done [12:20:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164196,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:20:43]process_action_free close_receipt [12:20:43]json_value_free [12:20:43]json_value_free done [12:20:43]process_json_proto returns [12:20:43]Send response to host [12:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164196,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:20:43]free response buf [12:20:43]execute_script done [12:20:43]execute_script returns [12:20:43]free content buf [12:20:43]Sock 9.Close socket [12:20:43]Sock 9.Thread stoped [12:20:45]accept exits with 7 [12:20:45]New connection [12:20:45]New thread 3066850660 created [12:20:45]Thread 3066707300 joined [12:20:45]Waiting for new connection... [12:20:45] Sock 7.Parse request [12:20:45]Sock 7.Check first char [12:20:45]Sock 7.First char is OK [12:20:45]request: POST /json_proto HTTP/1.0 [12:20:45]Method: POST [12:20:45]URL: /json_proto [12:20:45]Method is POST - this is cgi request [12:20:45]url: /json_proto [12:20:45]query_string will be loaded in cgi processing [12:20:45]execute_cgi json_proto POST (null) [12:20:45]execute_cgi path=json_proto method=POST [12:20:45]POST find Content-Length [12:20:45]Host: 172.17.56.4:8080 [12:20:45]Content-Length: 734 [12:20:45]Content-Type: application/json [12:20:45] [12:20:45]POST finish read [12:20:45]Found Content-Length = 734 [12:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 164196, "base_FM": "0000000000874718", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:20:45]execute_script... [12:20:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 164196, "base_FM": "0000000000874718", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:20:45]POST & json_proto [12:20:45]process_json_proto [12:20:45]json parsed OK: [12:20:45]protocol is kg_v1.0 [12:20:45]action value=close_receipt [12:20:45]process_action close_receipt [12:20:45]cmd_close_receipt [12:20:45]MH_GetDate [12:20:45]Write to MH i2c: F0 00 00 CB 16 D0 [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: F0 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: F0 09 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: F0 09 00 CB 16 00 9E 1F 91 66 C9 DC B2 64 48 [12:20:45]GetLastDocTimeStamp 1720786841 [12:20:45]current date 1720786846 [12:20:45]FM_GetShiftState [12:20:45]SAM_PROTO_GetShiftState [12:20:45]wFMCommunicate request_size=4 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 13 01 00 [12:20:45]Write to MH i2c: E2 08 00 CC 16 80 13 01 00 00 00 00 00 5F [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 0E 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 0E 00 CC 16 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A9 [12:20:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:20:45]wFMCommunicate OK [12:20:45]SAM_PROTO_GetShiftState done [12:20:45]FM_GetShiftState done [12:20:45]opened in 1720744654 [12:20:45]opened+sec_in_day 1720831054 [12:20:45]quantity*price = 30004 [12:20:45]sum+1 = 30006 [12:20:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 118 12.07.2024 12:20 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФД осн.: 164196 ФМ осн.: 0000000000874718 ФМ: 0000000000874718 ФД: 164197 ФПД: 32973867296709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122047&type=2&operation_type=1&fn_number=0000000000874718&fd_number=164197&fm=32973867296709&tin=02508201610067®Number=0000000000090829&sum=30000 [12:20:47]StoreToDocumentArchive [12:20:47]shift 445 fd 164197 [12:20:47]save to /storage/0445/doc_00164197 [12:20:47]save last doc name /storage/0445/doc_00164197 to /storage/kkm_last_doc_name [12:20:47]save OK [12:20:47]Clear old archive folders... [12:20:47]ProcessDocumentItem done err = 0, tmpTLVsize=279 [12:20:47]tlvbuf is 00A7DC60 [12:20:47]SAM_PROTO_ClearQueue [12:20:47]wFMCommunicate request_size=4 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 09 00 00 [12:20:47]Write to MH i2c: E2 08 00 DB 16 80 09 00 00 00 00 00 00 63 [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:47]Read from MH i2c: E2 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 03 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [12:20:47]RAPDU: 90 00 [12:20:47]wFMCommunicate OK [12:20:47]SAM_PROTO_ClearQueue done [12:20:47]KKMCreateOFDPacket [12:20:47]OFDProtocolAddRootSTLVToBuf [12:20:47]FM_MakeSignedData [12:20:47]FM_MakeSignedData [12:20:47]SAM_PROTO_SignData [12:20:47]wFMCommunicate request_size=4 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 0D 01 02 [12:20:47]Write to MH i2c: E2 08 00 DC 16 80 0D 01 02 00 00 00 00 6B [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:47]Read from MH i2c: E2 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 03 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 03 00 DC 16 00 90 00 66 [12:20:47]RAPDU: 90 00 [12:20:47]wFMCommunicate OK [12:20:47]wFMCommunicate request_size=255 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 9F 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 27 04 04 00 64 81 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 11 04 10 00 30 [12:20:47]Write to MH i2c: E2 02 01 DD 16 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 9F 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 27 04 04 00 64 81 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 11 04 10 00 30 00 00 D7 [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:47]Read from MH i2c: E2 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 03 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 03 00 DD 16 00 90 00 67 [12:20:47]RAPDU: 90 00 [12:20:47]wFMCommunicate OK [12:20:47]wFMCommunicate request_size=38 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 81 02 00 35 04 06 00 1D FD 53 A5 A7 C5 [12:20:47]Write to MH i2c: E2 29 00 DE 16 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 81 02 00 35 04 06 00 1D FD 53 A5 A7 C5 00 00 60 [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:47]Read from MH i2c: E2 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 03 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 03 00 DE 16 00 90 00 68 [12:20:47]RAPDU: 90 00 [12:20:47]wFMCommunicate OK [12:20:47]wFMCommunicate request_size=4 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 0D 03 02 [12:20:47]Write to MH i2c: E2 08 00 DF 16 80 0D 03 02 00 00 00 00 70 [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:47]Read from MH i2c: E2 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 0B 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 0B 00 DF 16 00 12 A8 C0 E6 05 CF 77 D1 90 00 ED [12:20:47]RAPDU: 12 A8 C0 E6 05 CF 77 D1 90 00 [12:20:47]wFMCommunicate OK [12:20:47]SAM_PROTO_SignData done [12:20:47]FM_MakeSignedData done [12:20:47]CreateOFDProtocolMessage [12:20:47]wFMCommunicate request_size=4 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 11 00 00 [12:20:47]Write to MH i2c: E2 08 00 E0 16 80 11 00 00 00 00 00 00 70 [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:47]Read from MH i2c: E2 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 17 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 17 00 E0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C6 [12:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:47]wFMCommunicate OK [12:20:47]CreateOFDProtocolMessage done [12:20:47]OFDSenderStorePacket 164197 [12:20:47]StoreOFDPacket docnum=164197 [12:20:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 2B 01 00 00 E6 C7 23 01 4C 4E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 9F 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 27 04 04 00 64 81 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 81 02 00 35 04 06 00 1D FD 53 A5 A7 C5 12 A8 C0 E6 05 CF 77 D1 [12:20:47]CheckFolder [12:20:47]dirname=/storage/ofd_packets [12:20:47]CheckFolder done [12:20:47]ProducePacketName [12:20:47]name=ofd_packets/00164197 [12:20:47]NVStorageSaveData ofd_packets/00164197 [12:20:47]File name is /storage/ofd_packets/00164197 [12:20:47]Write 329 bytes [12:20:47]NVStorageSaveData done [12:20:47]OFDSenderStorePacket done [12:20:47]KKMCreateOFDPacket done [12:20:47]NVStorageSaveData kkm_last_timestamp [12:20:47]File name is /storage/kkm_last_timestamp [12:20:47]Write 4 bytes [12:20:47]NVStorageSaveData done [12:20:47]ExternCall_PrintAddStr [12:20:47]wPrintStart [12:20:47]Write to MH i2c: 01 00 00 E1 16 F7 [12:20:47]OFD Sender: No OFD packet to send [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: 01 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: 01 07 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: 01 07 00 E1 16 00 00 00 00 00 FF 0F 0C [12:20:47]RasterBufferAndPrint [12:20:47]line Счет N : (1)458279 [12:20:47]line ИНН: 02508201610067 [12:20:47]line Контрольно-Кассовый Чек [12:20:47]line ВОЗВРАТ ПРОДАЖИ [12:20:47]line ТРК (МРК, ГНК) : 22 [12:20:47]line Товар: 2710124130 [12:20:47]line Аи-92-К-5 [12:20:47]line 4.560 * 65.80 [12:20:47]line = 300.05 [12:20:47]line НДС 12% НСП 1% [12:20:47]line > о реализуемом товаре [12:20:47]line ОКРУГЛЕНИЕ: -0.05 [12:20:47]line ИТОГО: 300.00 [12:20:47]line НСП 1% : 2.65 [12:20:47]line НДС 12% : 31.86 [12:20:47]line Наличными: 300.00 [12:20:47]line Безнал.: 0.00 [12:20:47]line Место: АЗС № 72 "Партнер Нефть" [12:20:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:20:47]line СНО: Общий режим [12:20:47]line Чек 118 12.07.2024 12:20 [12:20:47]line Смена: 445 ФФД: 1.0 [12:20:47]line ЗНМ: 0300000160 [12:20:47]line РНМ: 0000000000090829 [12:20:47]line Версия ККМ: 001 [12:20:47]line ФД осн.: 164196 [12:20:47]line ФМ осн.: 0000000000874718 [12:20:47]line ФМ: 0000000000874718 [12:20:47]line ФД: 164197 [12:20:47]line ФПД: 32973867296709 [12:20:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122047&type=2&operation_type=1&fn_number=0000000000874718&fd_number=164197&fm=32973867296709&tin=02508201610067®Number=0000000000090829&sum=30000 [12:20:47]written 0, free lines is 4095 [12:20:47]OFD Sender: Processing packet 164197 [packets to send 104, broken 103] [12:20:47]ProducePacketName [12:20:47]name=ofd_packets/00164197 [12:20:47]OFD Sender: To server: pG, [12:20:47]CommunicateWithHost lk.salyk.kg:30040 [12:20:47]ConnectInit lk.salyk.kg [12:20:47]Connected sock=10 [12:20:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 2B 01 00 00 E6 C7 23 01 4C 4E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 9F 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 27 04 04 00 64 81 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 81 02 00 35 04 06 00 1D FD 53 A5 A7 C5 12 A8 C0 E6 05 CF 77 D1 [12:20:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BB 1E 47 00 53 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 81 02 00 F4 03 04 00 33 C6 90 66 B6 04 01 00 00 32 2F AB 44 61 5B B0 2F [12:20:48]CommunicateWithHost err = 0 [12:20:48]CheckOFDResponse [12:20:48]1017 (14) - 77093643461234 [12:20:48]1041 (16) - 0000000000874718 [12:20:48]1040 (4) - 164197 [12:20:48]1012 (4) - 12.07.2024 05:59 [12:20:48]1206 (1) - 0 [12:20:48]OFD Sender: Remove packet 164197 [12:20:48]ProducePacketName [12:20:48]name=ofd_packets/00164197 [12:20:48]NVStorageDeleteData [12:20:48]Write to MH i2c: 01 00 00 0B 17 22 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: 01 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: 01 07 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: 01 07 00 0B 17 00 00 00 00 00 17 0D 4D [12:20:48]RasterBufferAndPrint [12:20:48]line [12:20:48]line [12:20:48]line [12:20:48]line [12:20:48]line [12:20:48]written 0, free lines is 3363 [12:20:48]MH_Cut [12:20:48]Write to MH i2c: D1 01 00 12 17 01 FB [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: D1 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: D1 01 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: D1 01 00 12 17 00 FA [12:20:48]Write to MH i2c: 01 00 00 13 17 2A [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]OFD Sender: No OFD packet to send [12:20:48]*** Cut start [12:20:48]*** Partial cut [12:20:48]*** CUTSNS_PIN = 1 [12:20:48]*** CUTSNS_PIN = 0 [12:20:49]*** Brake cut motor [12:20:49]Read from MH i2c: 01 [12:20:49]MH_I2C_Read... [12:20:49]*** Stop cut motor [12:20:49]*** Cut end [12:20:49]Read from MH i2c: 01 07 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: 01 07 00 13 17 00 00 00 00 00 FF 0F 3F [12:20:49]process_action close_receipt done [12:20:49]requested_data is exist [12:20:49]produce_requested_data [12:20:49]requested_item fm.sn is exist - process it [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 11 00 00 [12:20:49]Write to MH i2c: E2 08 00 14 17 80 11 00 00 00 00 00 00 A5 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 17 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 17 00 14 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [12:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:49]wFMCommunicate OK [12:20:49]requested_item fd.num is exist - process it [12:20:49]SAM_PROTO_GetFieldsCounters [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 13 00 00 [12:20:49]Write to MH i2c: E2 08 00 15 17 80 13 00 00 00 00 00 00 A8 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 62 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 62 00 15 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [12:20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:49]wFMCommunicate OK [12:20:49]SAM_PROTO_GetFieldsCounters done [12:20:49]requested_item shift.num is exist - process it [12:20:49]requested_item shift.opened is exist - process it [12:20:49]req_shift_opened [12:20:49]FM_GetShiftState [12:20:49]SAM_PROTO_GetShiftState [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 13 01 00 [12:20:49]Write to MH i2c: E2 08 00 16 17 80 13 01 00 00 00 00 00 AA [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 0E 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 0E 00 16 17 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F4 [12:20:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:20:49]wFMCommunicate OK [12:20:49]SAM_PROTO_GetShiftState done [12:20:49]FM_GetShiftState done [12:20:49]req_shift_opened done [12:20:49]requested_item shift.open_date is exist - process it [12:20:49]req_shift_open_date [12:20:49]req_shift_open_date done [12:20:49]produce_requested_data done [12:20:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164197,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:20:49]process_action_free close_receipt [12:20:49]json_value_free [12:20:49]json_value_free done [12:20:49]process_json_proto returns [12:20:49]Send response to host [12:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164197,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:20:49]free response buf [12:20:49]execute_script done [12:20:49]execute_script returns [12:20:49]free content buf [12:20:49]Sock 7.Close socket [12:20:49]Sock 7.Thread stoped [12:20:53]OFD Sender: No OFD packet to send [12:20:56]accept exits with 9 [12:20:56]New connection [12:20:56]New thread 3066707300 created [12:20:56]Thread 3066850660 joined [12:20:56]Waiting for new connection... [12:20:56] Sock 9.Parse request [12:20:56]Sock 9.Check first char [12:20:56]Sock 9.First char is OK [12:20:56]request: POST /json_proto HTTP/1.0 [12:20:56]Method: POST [12:20:56]URL: /json_proto [12:20:56]Method is POST - this is cgi request [12:20:56]url: /json_proto [12:20:56]query_string will be loaded in cgi processing [12:20:56]execute_cgi json_proto POST (null) [12:20:56]execute_cgi path=json_proto method=POST [12:20:56]POST find Content-Length [12:20:56]Host: 172.17.56.4:8080 [12:20:56]Content-Length: 677 [12:20:56]Content-Type: application/json [12:20:56] [12:20:56]POST finish read [12:20:56]Found Content-Length = 677 [12:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:20:56]execute_script... [12:20:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:20:56]POST & json_proto [12:20:56]process_json_proto [12:20:56]json parsed OK: [12:20:56]protocol is kg_v1.0 [12:20:56]action value=close_receipt [12:20:56]process_action close_receipt [12:20:56]cmd_close_receipt [12:20:56]MH_GetDate [12:20:56]Write to MH i2c: F0 00 00 17 17 1D [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: F0 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: F0 09 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: F0 09 00 17 17 00 A9 1F 91 66 C9 DC B2 64 A0 [12:20:56]GetLastDocTimeStamp 1720786847 [12:20:56]current date 1720786857 [12:20:56]FM_GetShiftState [12:20:56]SAM_PROTO_GetShiftState [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 13 01 00 [12:20:56]Write to MH i2c: E2 08 00 18 17 80 13 01 00 00 00 00 00 AC [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 0E 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 0E 00 18 17 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F6 [12:20:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:20:56]wFMCommunicate OK [12:20:56]SAM_PROTO_GetShiftState done [12:20:56]FM_GetShiftState done [12:20:56]opened in 1720744654 [12:20:56]opened+sec_in_day 1720831054 [12:20:56]quantity*price = 60009 [12:20:56]sum+1 = 60011 [12:20:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 119 12.07.2024 12:20 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164198 ФПД: 152340842468175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122057&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164198&fm=152340842468175&tin=02508201610067®Number=0000000000090829&sum=60000 [12:20:57]StoreToDocumentArchive [12:20:57]shift 445 fd 164198 [12:20:57]save to /storage/0445/doc_00164198 [12:20:57]save last doc name /storage/0445/doc_00164198 to /storage/kkm_last_doc_name [12:20:57]save OK [12:20:57]Clear old archive folders... [12:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:57]tlvbuf is 009E9780 [12:20:57]SAM_PROTO_ClearQueue [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 09 00 00 [12:20:57]Write to MH i2c: E2 08 00 25 17 80 09 00 00 00 00 00 00 AE [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 25 17 00 90 00 B0 [12:20:57]RAPDU: 90 00 [12:20:57]wFMCommunicate OK [12:20:57]SAM_PROTO_ClearQueue done [12:20:57]KKMCreateOFDPacket [12:20:57]OFDProtocolAddRootSTLVToBuf [12:20:57]FM_MakeSignedData [12:20:57]FM_MakeSignedData [12:20:57]SAM_PROTO_SignData [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 0D 01 02 [12:20:57]Write to MH i2c: E2 08 00 26 17 80 0D 01 02 00 00 00 00 B6 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 26 17 00 90 00 B1 [12:20:57]RAPDU: 90 00 [12:20:57]wFMCommunicate OK [12:20:57]wFMCommunicate request_size=255 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 00 00 00 F4 03 04 00 A9 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 81 02 00 35 04 06 00 8A [12:20:57]Write to MH i2c: E2 02 01 27 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 00 00 00 F4 03 04 00 A9 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 81 02 00 35 04 06 00 8A 00 00 B7 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 27 17 00 90 00 B2 [12:20:57]RAPDU: 90 00 [12:20:57]wFMCommunicate OK [12:20:57]wFMCommunicate request_size=10 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 0D 02 02 05 8D 9D CC D3 4F [12:20:57]Write to MH i2c: E2 0D 00 28 17 80 0D 02 02 05 00 8D 9D CC D3 4F 00 00 DB [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [12:20:57]RAPDU: 90 00 [12:20:57]wFMCommunicate OK [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 0D 03 02 [12:20:57]Write to MH i2c: E2 08 00 29 17 80 0D 03 02 00 00 00 00 BB [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0B 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0B 00 29 17 00 BF BC DE 22 C6 56 75 1D 90 00 E5 [12:20:57]RAPDU: BF BC DE 22 C6 56 75 1D 90 00 [12:20:57]wFMCommunicate OK [12:20:57]SAM_PROTO_SignData done [12:20:57]FM_MakeSignedData done [12:20:57]CreateOFDProtocolMessage [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 11 00 00 [12:20:57]Write to MH i2c: E2 08 00 2A 17 80 11 00 00 00 00 00 00 BB [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 17 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 17 00 2A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 11 [12:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:57]wFMCommunicate OK [12:20:57]CreateOFDProtocolMessage done [12:20:57]OFDSenderStorePacket 164198 [12:20:57]StoreOFDPacket docnum=164198 [12:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 45 B0 07 01 4A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 00 00 00 F4 03 04 00 A9 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 81 02 00 35 04 06 00 8A 8D 9D CC D3 4F BF BC DE 22 C6 56 75 1D [12:20:57]CheckFolder [12:20:57]dirname=/storage/ofd_packets [12:20:57]CheckFolder done [12:20:57]ProducePacketName [12:20:57]name=ofd_packets/00164198 [12:20:57]NVStorageSaveData ofd_packets/00164198 [12:20:57]File name is /storage/ofd_packets/00164198 [12:20:57]Write 301 bytes [12:20:57]NVStorageSaveData done [12:20:57]OFDSenderStorePacket done [12:20:57]KKMCreateOFDPacket done [12:20:57]NVStorageSaveData kkm_last_timestamp [12:20:57]File name is /storage/kkm_last_timestamp [12:20:57]Write 4 bytes [12:20:57]NVStorageSaveData done [12:20:57]ExternCall_PrintAddStr [12:20:57]wPrintStart [12:20:57]Write to MH i2c: 01 00 00 2B 17 42 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 07 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 FF 0F 57 [12:20:57]RasterBufferAndPrint [12:20:57]line Счет N : (1)458280 [12:20:57]line ИНН: 02508201610067 [12:20:57]line Контрольно-Кассовый Чек [12:20:57]line ПРОДАЖА [12:20:57]line ТРК (МРК, ГНК) : 22 [12:20:57]line Товар: 2710124130 [12:20:57]line Аи-92-К-5 [12:20:57]line 9.120 * 65.80 [12:20:57]line = 600.10 [12:20:57]line НДС 12% НСП 1% [12:20:57]line > о реализуемом товаре [12:20:57]line ОКРУГЛЕНИЕ: -0.10 [12:20:57]line ИТОГО: 600.00 [12:20:57]line Внесено: 600.00 [12:20:57]line СДАЧА: 0.00 [12:20:57]line НСП 1% : 5.31 [12:20:57]line НДС 12% : 63.73 [12:20:57]line Наличными: 600.00 [12:20:57]line Безнал.: 0.00 [12:20:57]line Место: АЗС № 72 "Партнер Нефть" [12:20:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:20:57]line СНО: Общий режим [12:20:57]line Чек 119 12.07.2024 12:20 [12:20:57]line Смена: 445 ФФД: 1.0 [12:20:57]line ЗНМ: 0300000160 [12:20:57]line РНМ: 0000000000090829 [12:20:57]line Версия ККМ: 001 [12:20:57]line ФМ: 0000000000874718 [12:20:57]line ФД: 164198 [12:20:57]line ФПД: 152340842468175 [12:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122057&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164198&fm=152340842468175&tin=02508201610067®Number=0000000000090829&sum=60000 [12:20:58]written 0, free lines is 4095 [12:20:58]OFD Sender: Processing packet 164198 [packets to send 104, broken 103] [12:20:58]ProducePacketName [12:20:58]name=ofd_packets/00164198 [12:20:58]OFD Sender: To server: pG, [12:20:58]CommunicateWithHost lk.salyk.kg:30040 [12:20:58]ConnectInit lk.salyk.kg [12:20:58]Connected sock=7 [12:20:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 45 B0 07 01 4A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 00 00 00 F4 03 04 00 A9 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 81 02 00 35 04 06 00 8A 8D 9D CC D3 4F BF BC DE 22 C6 56 75 1D [12:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB FF 47 00 5D 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 34 37 31 38 10 04 04 00 66 81 02 00 F4 03 04 00 3D C6 90 66 B6 04 01 00 00 74 EF 11 AC 48 C4 DC 73 [12:20:58]CommunicateWithHost err = 0 [12:20:58]CheckOFDResponse [12:20:58]1017 (14) - 77093643461234 [12:20:58]1041 (16) - 0000000000874718 [12:20:58]1040 (4) - 164198 [12:20:58]1012 (4) - 12.07.2024 05:59 [12:20:58]1206 (1) - 0 [12:20:58]OFD Sender: Remove packet 164198 [12:20:58]ProducePacketName [12:20:58]name=ofd_packets/00164198 [12:20:58]NVStorageDeleteData [12:20:58]Write to MH i2c: 01 00 00 55 17 6C [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: 01 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: 01 07 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: 01 07 00 55 17 00 00 00 00 00 02 0D 82 [12:20:58]RasterBufferAndPrint [12:20:58]line [12:20:58]line [12:20:58]line [12:20:58]line [12:20:58]line [12:20:58]written 0, free lines is 3348 [12:20:58]MH_Cut [12:20:58]Write to MH i2c: D1 01 00 5C 17 01 45 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: D1 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: D1 01 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: D1 01 00 5C 17 00 44 [12:20:58]Write to MH i2c: 01 00 00 5D 17 74 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]OFD Sender: No OFD packet to send [12:20:59]*** Cut start [12:20:59]*** Partial cut [12:20:59]*** CUTSNS_PIN = 1 [12:20:59]*** CUTSNS_PIN = 0 [12:20:59]*** Brake cut motor [12:20:59]Read from MH i2c: 01 [12:20:59]MH_I2C_Read... [12:20:59]*** Stop cut motor [12:20:59]*** Cut end [12:20:59]Read from MH i2c: 01 07 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 07 00 5D 17 00 00 00 00 00 FF 0F 89 [12:20:59]process_action close_receipt done [12:20:59]requested_data is exist [12:20:59]produce_requested_data [12:20:59]requested_item fm.sn is exist - process it [12:20:59]wFMCommunicate request_size=4 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 11 00 00 [12:20:59]Write to MH i2c: E2 08 00 5E 17 80 11 00 00 00 00 00 00 EF [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 17 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 17 00 5E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [12:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:59]wFMCommunicate OK [12:20:59]requested_item fd.num is exist - process it [12:20:59]SAM_PROTO_GetFieldsCounters [12:20:59]wFMCommunicate request_size=4 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 13 00 00 [12:20:59]Write to MH i2c: E2 08 00 5F 17 80 13 00 00 00 00 00 00 F2 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 62 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 62 00 5F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [12:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:59]wFMCommunicate OK [12:20:59]SAM_PROTO_GetFieldsCounters done [12:20:59]requested_item shift.num is exist - process it [12:20:59]requested_item shift.opened is exist - process it [12:20:59]req_shift_opened [12:20:59]FM_GetShiftState [12:20:59]SAM_PROTO_GetShiftState [12:20:59]wFMCommunicate request_size=4 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 13 01 00 [12:20:59]Write to MH i2c: E2 08 00 60 17 80 13 01 00 00 00 00 00 F4 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:00]Read from MH i2c: E2 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 0E 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 0E 00 60 17 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3E [12:21:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:21:00]wFMCommunicate OK [12:21:00]SAM_PROTO_GetShiftState done [12:21:00]FM_GetShiftState done [12:21:00]req_shift_opened done [12:21:00]requested_item shift.open_date is exist - process it [12:21:00]req_shift_open_date [12:21:00]req_shift_open_date done [12:21:00]produce_requested_data done [12:21:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164198,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:21:00]process_action_free close_receipt [12:21:00]json_value_free [12:21:00]json_value_free done [12:21:00]process_json_proto returns [12:21:00]Send response to host [12:21:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164198,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:21:00]free response buf [12:21:00]execute_script done [12:21:00]execute_script returns [12:21:00]free content buf [12:21:00]Sock 9.Close socket [12:21:00]Sock 9.Thread stoped [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:49]accept exits with 10 [12:21:49]New connection [12:21:49]New thread 3066850660 created [12:21:49]Thread 3066707300 joined [12:21:49]Waiting for new connection... [12:21:49] Sock 10.Parse request [12:21:49]Sock 10.Check first char [12:21:49]Sock 10.First char is OK [12:21:49]request: POST /json_proto HTTP/1.0 [12:21:49]Method: POST [12:21:49]URL: /json_proto [12:21:49]Method is POST - this is cgi request [12:21:49]url: /json_proto [12:21:49]query_string will be loaded in cgi processing [12:21:49]execute_cgi json_proto POST (null) [12:21:49]execute_cgi path=json_proto method=POST [12:21:49]POST find Content-Length [12:21:49]Host: 172.17.56.4:8080 [12:21:49]Content-Length: 677 [12:21:49]Content-Type: application/json [12:21:49] [12:21:49]POST finish read [12:21:49]Found Content-Length = 677 [12:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:21:49]execute_script... [12: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)458281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:21:49]POST & json_proto [12:21:49]process_json_proto [12:21:49]json parsed OK: [12:21:49]protocol is kg_v1.0 [12:21:49]action value=close_receipt [12:21:49]process_action close_receipt [12:21:49]cmd_close_receipt [12:21:49]MH_GetDate [12:21:49]Write to MH i2c: F0 00 00 61 17 67 [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: F0 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: F0 09 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: F0 09 00 61 17 00 DE 1F 91 66 C9 DC B2 64 1F [12:21:49]GetLastDocTimeStamp 1720786857 [12:21:49]current date 1720786910 [12:21:49]FM_GetShiftState [12:21:49]SAM_PROTO_GetShiftState [12:21:49]wFMCommunicate request_size=4 [12:21:49]MH_SAM_APDU [12:21:49]CAPDU: 80 13 01 00 [12:21:49]Write to MH i2c: E2 08 00 62 17 80 13 01 00 00 00 00 00 F6 [12:21:49]Write i2c OK [12:21:49]MH_I2C_Read... [12:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:49]Read from MH i2c: E2 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 0E 00 [12:21:49]MH_I2C_Read... [12:21:49]Read from MH i2c: E2 0E 00 62 17 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 40 [12:21:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:21:49]wFMCommunicate OK [12:21:49]SAM_PROTO_GetShiftState done [12:21:49]FM_GetShiftState done [12:21:49]opened in 1720744654 [12:21:49]opened+sec_in_day 1720831054 [12:21:49]quantity*price = 40006 [12:21:49]sum+1 = 40007 [12:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 120 12.07.2024 12:21 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164199 ФПД: 187943419906043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122150&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164199&fm=187943419906043&tin=02508201610067®Number=0000000000090829&sum=40000 [12:21:50]StoreToDocumentArchive [12:21:50]shift 445 fd 164199 [12:21:50]save to /storage/0445/doc_00164199 [12:21:50]save last doc name /storage/0445/doc_00164199 to /storage/kkm_last_doc_name [12:21:50]save OK [12:21:50]Clear old archive folders... [12:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:50]tlvbuf is 00A41610 [12:21:50]SAM_PROTO_ClearQueue [12:21:50]wFMCommunicate request_size=4 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 09 00 00 [12:21:50]Write to MH i2c: E2 08 00 6F 17 80 09 00 00 00 00 00 00 F8 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 6F 17 00 90 00 FA [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]SAM_PROTO_ClearQueue done [12:21:50]KKMCreateOFDPacket [12:21:50]OFDProtocolAddRootSTLVToBuf [12:21:50]FM_MakeSignedData [12:21:50]FM_MakeSignedData [12:21:50]SAM_PROTO_SignData [12:21:50]wFMCommunicate request_size=4 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 0D 01 02 [12:21:50]Write to MH i2c: E2 08 00 70 17 80 0D 01 02 00 00 00 00 00 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 70 17 00 90 00 FB [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]wFMCommunicate request_size=255 [12:21:50]MH_SAM_APDU [12: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 78 00 00 00 F4 03 04 00 DE 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 81 02 00 35 04 06 00 AA [12:21:50]Write to MH i2c: E2 02 01 71 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 78 00 00 00 F4 03 04 00 DE 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 81 02 00 35 04 06 00 AA 00 00 17 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]wFMCommunicate request_size=10 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 0D 02 02 05 EE FC C8 07 FB [12:21:50]Write to MH i2c: E2 0D 00 72 17 80 0D 02 02 05 00 EE FC C8 07 FB 00 00 C1 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 72 17 00 90 00 FD [12:21:51]RAPDU: 90 00 [12:21:51]wFMCommunicate OK [12:21:51]wFMCommunicate request_size=4 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 0D 03 02 [12:21:51]Write to MH i2c: E2 08 00 73 17 80 0D 03 02 00 00 00 00 05 [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 0B 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 0B 00 73 17 00 87 25 FB BB CD 96 DA 62 90 00 07 [12:21:51]RAPDU: 87 25 FB BB CD 96 DA 62 90 00 [12:21:51]wFMCommunicate OK [12:21:51]SAM_PROTO_SignData done [12:21:51]FM_MakeSignedData done [12:21:51]CreateOFDProtocolMessage [12:21:51]wFMCommunicate request_size=4 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 11 00 00 [12:21:51]Write to MH i2c: E2 08 00 74 17 80 11 00 00 00 00 00 00 05 [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 17 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 17 00 74 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5B [12:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:21:51]wFMCommunicate OK [12:21:51]CreateOFDProtocolMessage done [12:21:51]OFDSenderStorePacket 164199 [12:21:51]StoreOFDPacket docnum=164199 [12:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E8 A6 07 01 90 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 78 00 00 00 F4 03 04 00 DE 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 81 02 00 35 04 06 00 AA EE FC C8 07 FB 87 25 FB BB CD 96 DA 62 [12:21:51]CheckFolder [12:21:51]dirname=/storage/ofd_packets [12:21:51]CheckFolder done [12:21:51]ProducePacketName [12:21:51]name=ofd_packets/00164199 [12:21:51]NVStorageSaveData ofd_packets/00164199 [12:21:51]File name is /storage/ofd_packets/00164199 [12:21:51]Write 301 bytes [12:21:51]NVStorageSaveData done [12:21:51]OFDSenderStorePacket done [12:21:51]KKMCreateOFDPacket done [12:21:51]NVStorageSaveData kkm_last_timestamp [12:21:51]File name is /storage/kkm_last_timestamp [12:21:51]Write 4 bytes [12:21:51]NVStorageSaveData done [12:21:51]ExternCall_PrintAddStr [12:21:51]wPrintStart [12:21:51]Write to MH i2c: 01 00 00 75 17 8C [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 07 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 07 00 75 17 00 00 00 00 00 FF 0F A1 [12:21:51]RasterBufferAndPrint [12:21:51]line Счет N : (1)458281 [12:21:51]line ИНН: 02508201610067 [12:21:51]line Контрольно-Кассовый Чек [12:21:51]line ПРОДАЖА [12:21:51]line ТРК (МРК, ГНК) : 12 [12:21:51]line Товар: 2710124130 [12:21:51]line Аи-92-К-5 [12:21:51]line 6.080 * 65.80 [12:21:51]line = 400.06 [12:21:51]line НДС 12% НСП 1% [12:21:51]line > о реализуемом товаре [12:21:51]line ОКРУГЛЕНИЕ: -0.06 [12:21:51]line ИТОГО: 400.00 [12:21:51]line Внесено: 400.00 [12:21:51]line СДАЧА: 0.00 [12:21:51]line НСП 1% : 3.54 [12:21:51]line НДС 12% : 42.48 [12:21:51]line Наличными: 400.00 [12:21:51]line Безнал.: 0.00 [12:21:51]line Место: АЗС № 72 "Партнер Нефть" [12:21:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:21:51]line СНО: Общий режим [12:21:51]line Чек 120 12.07.2024 12:21 [12:21:51]line Смена: 445 ФФД: 1.0 [12:21:51]line ЗНМ: 0300000160 [12:21:51]line РНМ: 0000000000090829 [12:21:51]line Версия ККМ: 001 [12:21:51]line ФМ: 0000000000874718 [12:21:51]line ФД: 164199 [12:21:51]line ФПД: 187943419906043 [12:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122150&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164199&fm=187943419906043&tin=02508201610067®Number=0000000000090829&sum=40000 [12:21:51]OFD Sender: Processing packet 164199 [packets to send 104, broken 103] [12:21:51]ProducePacketName [12:21:51]name=ofd_packets/00164199 [12:21:51]OFD Sender: To server: pG, [12:21:51]CommunicateWithHost lk.salyk.kg:30040 [12:21:51]ConnectInit lk.salyk.kg [12:21:51]written 0, free lines is 4095 [12:21:51]Connected sock=9 [12: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 34 37 31 38 0F 01 00 00 E8 A6 07 01 90 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 78 00 00 00 F4 03 04 00 DE 1F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 81 02 00 35 04 06 00 AA EE FC C8 07 FB 87 25 FB BB CD 96 DA 62 [12:21:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B 2C 47 00 37 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 34 37 31 38 10 04 04 00 67 81 02 00 F4 03 04 00 73 C6 90 66 B6 04 01 00 00 0B 20 CE D3 98 34 80 6D [12:21:51]CommunicateWithHost err = 0 [12:21:51]CheckOFDResponse [12:21:51]1017 (14) - 77093643461234 [12:21:51]1041 (16) - 0000000000874718 [12:21:51]1040 (4) - 164199 [12:21:51]1012 (4) - 12.07.2024 06:00 [12:21:51]1206 (1) - 0 [12:21:51]OFD Sender: Remove packet 164199 [12:21:51]ProducePacketName [12:21:51]name=ofd_packets/00164199 [12:21:51]NVStorageDeleteData [12:21:51]Write to MH i2c: 01 00 00 9F 17 B6 [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 07 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 07 00 9F 17 00 00 00 00 00 01 0D CB [12:21:51]RasterBufferAndPrint [12:21:51]line [12:21:51]line [12:21:51]line [12:21:51]line [12:21:51]line [12:21:51]written 0, free lines is 3334 [12:21:51]MH_Cut [12:21:51]Write to MH i2c: D1 01 00 A6 17 01 8F [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: D1 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: D1 01 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: D1 01 00 A6 17 00 8E [12:21:51]Write to MH i2c: 01 00 00 A7 17 BE [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:52]OFD Sender: No OFD packet to send [12:21:52]*** Cut start [12:21:52]*** Partial cut [12:21:52]*** CUTSNS_PIN = 1 [12:21:52]*** CUTSNS_PIN = 0 [12:21:52]*** Brake cut motor [12:21:53]Read from MH i2c: 01 [12:21:53]MH_I2C_Read... [12:21:53]*** Stop cut motor [12:21:53]*** Cut end [12:21:53]Read from MH i2c: 01 07 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: 01 07 00 A7 17 00 00 00 00 00 FF 0F D3 [12:21:53]process_action close_receipt done [12:21:53]requested_data is exist [12:21:53]produce_requested_data [12:21:53]requested_item fm.sn is exist - process it [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 11 00 00 [12:21:53]Write to MH i2c: E2 08 00 A8 17 80 11 00 00 00 00 00 00 39 [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 17 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 17 00 A8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [12:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:21:53]wFMCommunicate OK [12:21:53]requested_item fd.num is exist - process it [12:21:53]SAM_PROTO_GetFieldsCounters [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 13 00 00 [12:21:53]Write to MH i2c: E2 08 00 A9 17 80 13 00 00 00 00 00 00 3C [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 62 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 62 00 A9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:53]wFMCommunicate OK [12:21:53]SAM_PROTO_GetFieldsCounters done [12:21:53]requested_item shift.num is exist - process it [12:21:53]requested_item shift.opened is exist - process it [12:21:53]req_shift_opened [12:21:53]FM_GetShiftState [12:21:53]SAM_PROTO_GetShiftState [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 13 01 00 [12:21:53]Write to MH i2c: E2 08 00 AA 17 80 13 01 00 00 00 00 00 3E [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 0E 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 0E 00 AA 17 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 88 [12:21:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:21:53]wFMCommunicate OK [12:21:53]SAM_PROTO_GetShiftState done [12:21:53]FM_GetShiftState done [12:21:53]req_shift_opened done [12:21:53]requested_item shift.open_date is exist - process it [12:21:53]req_shift_open_date [12:21:53]req_shift_open_date done [12:21:53]produce_requested_data done [12:21:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164199,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:21:53]process_action_free close_receipt [12:21:53]json_value_free [12:21:53]json_value_free done [12:21:53]process_json_proto returns [12:21:53]Send response to host [12:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164199,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:21:53]free response buf [12:21:53]execute_script done [12:21:53]execute_script returns [12:21:53]free content buf [12:21:53]Sock 10.Close socket [12:21:53]Sock 10.Thread stoped [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:26]accept exits with 7 [12:22:26]New connection [12:22:26]New thread 3066707300 created [12:22:26]Thread 3066850660 joined [12:22:26]Waiting for new connection... [12:22:26] Sock 7.Parse request [12:22:26]Sock 7.Check first char [12:22:26]Sock 7.First char is OK [12:22:26]request: POST /json_proto HTTP/1.0 [12:22:26]Method: POST [12:22:26]URL: /json_proto [12:22:26]Method is POST - this is cgi request [12:22:26]url: /json_proto [12:22:26]query_string will be loaded in cgi processing [12:22:26]execute_cgi json_proto POST (null) [12:22:26]execute_cgi path=json_proto method=POST [12:22:26]POST find Content-Length [12:22:26]Host: 172.17.56.4:8080 [12:22:26]Content-Length: 677 [12:22:26]Content-Type: application/json [12:22:26] [12:22:26]POST finish read [12:22:26]Found Content-Length = 677 [12:22:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:26]execute_script... [12:22:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:26]POST & json_proto [12:22:26]process_json_proto [12:22:26]json parsed OK: [12:22:26]protocol is kg_v1.0 [12:22:26]action value=close_receipt [12:22:26]process_action close_receipt [12:22:26]cmd_close_receipt [12:22:26]MH_GetDate [12:22:26]Write to MH i2c: F0 00 00 AB 17 B1 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: F0 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: F0 09 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: F0 09 00 AB 17 00 04 20 91 66 C9 DC B2 64 90 [12:22:26]GetLastDocTimeStamp 1720786910 [12:22:26]current date 1720786948 [12:22:26]FM_GetShiftState [12:22:26]SAM_PROTO_GetShiftState [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 13 01 00 [12:22:26]Write to MH i2c: E2 08 00 AC 17 80 13 01 00 00 00 00 00 40 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0E 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0E 00 AC 17 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8A [12:22:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:22:26]wFMCommunicate OK [12:22:26]SAM_PROTO_GetShiftState done [12:22:26]FM_GetShiftState done [12:22:26]opened in 1720744654 [12:22:26]opened+sec_in_day 1720831054 [12:22:26]quantity*price = 50008 [12:22:26]sum+1 = 50009 [12:22:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 121 12.07.2024 12:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164200 ФПД: 21524990019918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122228&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164200&fm=21524990019918&tin=02508201610067®Number=0000000000090829&sum=50000 [12:22:27]StoreToDocumentArchive [12:22:27]shift 445 fd 164200 [12:22:27]save to /storage/0445/doc_00164200 [12:22:27]save last doc name /storage/0445/doc_00164200 to /storage/kkm_last_doc_name [12:22:27]save OK [12:22:27]Clear old archive folders... [12:22:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:27]tlvbuf is 009F2490 [12:22:27]SAM_PROTO_ClearQueue [12:22:27]wFMCommunicate request_size=4 [12:22:27]MH_SAM_APDU [12:22:27]CAPDU: 80 09 00 00 [12:22:27]Write to MH i2c: E2 08 00 B9 17 80 09 00 00 00 00 00 00 42 [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 B9 17 00 90 00 44 [12:22:28]RAPDU: 90 00 [12:22:28]wFMCommunicate OK [12:22:28]SAM_PROTO_ClearQueue done [12:22:28]KKMCreateOFDPacket [12:22:28]OFDProtocolAddRootSTLVToBuf [12:22:28]FM_MakeSignedData [12:22:28]FM_MakeSignedData [12:22:28]SAM_PROTO_SignData [12:22:28]wFMCommunicate request_size=4 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 0D 01 02 [12:22:28]Write to MH i2c: E2 08 00 BA 17 80 0D 01 02 00 00 00 00 4A [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [12:22:28]RAPDU: 90 00 [12:22:28]wFMCommunicate OK [12:22:28]wFMCommunicate request_size=255 [12:22:28]MH_SAM_APDU [12:22: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 04 20 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 81 02 00 35 04 06 00 13 [12:22:28]Write to MH i2c: E2 02 01 BB 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 04 20 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 81 02 00 35 04 06 00 13 00 00 13 [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [12:22:28]RAPDU: 90 00 [12:22:28]wFMCommunicate OK [12:22:28]wFMCommunicate request_size=10 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 0D 02 02 05 93 AD 62 49 4E [12:22:28]Write to MH i2c: E2 0D 00 BC 17 80 0D 02 02 05 00 93 AD 62 49 4E 00 00 90 [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [12:22:28]RAPDU: 90 00 [12:22:28]wFMCommunicate OK [12:22:28]wFMCommunicate request_size=4 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 0D 03 02 [12:22:28]Write to MH i2c: E2 08 00 BD 17 80 0D 03 02 00 00 00 00 4F [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 0B 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 0B 00 BD 17 00 23 8B 04 10 8F DF 08 15 90 00 9D [12:22:28]RAPDU: 23 8B 04 10 8F DF 08 15 90 00 [12:22:28]wFMCommunicate OK [12:22:28]SAM_PROTO_SignData done [12:22:28]FM_MakeSignedData done [12:22:28]CreateOFDProtocolMessage [12:22:28]wFMCommunicate request_size=4 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 11 00 00 [12:22:28]Write to MH i2c: E2 08 00 BE 17 80 11 00 00 00 00 00 00 4F [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 17 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 17 00 BE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A5 [12:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:22:28]wFMCommunicate OK [12:22:28]CreateOFDProtocolMessage done [12:22:28]OFDSenderStorePacket 164200 [12:22:28]StoreOFDPacket docnum=164200 [12:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C9 36 07 01 51 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 04 20 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 81 02 00 35 04 06 00 13 93 AD 62 49 4E 23 8B 04 10 8F DF 08 15 [12:22:28]CheckFolder [12:22:28]dirname=/storage/ofd_packets [12:22:28]CheckFolder done [12:22:28]ProducePacketName [12:22:28]name=ofd_packets/00164200 [12:22:28]NVStorageSaveData ofd_packets/00164200 [12:22:28]File name is /storage/ofd_packets/00164200 [12:22:28]Write 301 bytes [12:22:28]NVStorageSaveData done [12:22:28]OFDSenderStorePacket done [12:22:28]KKMCreateOFDPacket done [12:22:28]NVStorageSaveData kkm_last_timestamp [12:22:28]File name is /storage/kkm_last_timestamp [12:22:28]Write 4 bytes [12:22:28]NVStorageSaveData done [12:22:28]ExternCall_PrintAddStr [12:22:28]wPrintStart [12:22:28]Write to MH i2c: 01 00 00 BF 17 D6 [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: 01 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: 01 07 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: 01 07 00 BF 17 00 00 00 00 00 FF 0F EB [12:22:28]RasterBufferAndPrint [12:22:28]line Счет N : (1)458282 [12:22:28]line ИНН: 02508201610067 [12:22:28]line Контрольно-Кассовый Чек [12:22:28]line ПРОДАЖА [12:22:28]line ТРК (МРК, ГНК) : 12 [12:22:28]line Товар: 2710124130 [12:22:28]line Аи-92-К-5 [12:22:28]line 7.600 * 65.80 [12:22:28]line = 500.08 [12:22:28]line НДС 12% НСП 1% [12:22:28]line > о реализуемом товаре [12:22:28]line ОКРУГЛЕНИЕ: -0.08 [12:22:28]line ИТОГО: 500.00 [12:22:28]line Внесено: 500.00 [12:22:28]line СДАЧА: 0.00 [12:22:28]line НСП 1% : 4.42 [12:22:28]line НДС 12% : 53.11 [12:22:28]line Наличными: 500.00 [12:22:28]line Безнал.: 0.00 [12:22:28]line Место: АЗС № 72 "Партнер Нефть" [12:22:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:22:28]line СНО: Общий режим [12:22:28]line Чек 121 12.07.2024 12:22 [12:22:28]line Смена: 445 ФФД: 1.0 [12:22:28]line ЗНМ: 0300000160 [12:22:28]line РНМ: 0000000000090829 [12:22:28]line Версия ККМ: 001 [12:22:28]line ФМ: 0000000000874718 [12:22:28]line ФД: 164200 [12:22:28]line ФПД: 21524990019918 [12:22:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T122228&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164200&fm=21524990019918&tin=02508201610067®Number=0000000000090829&sum=50000 [12:22:28]OFD Sender: Processing packet 164200 [packets to send 104, broken 103] [12:22:28]ProducePacketName [12:22:28]name=ofd_packets/00164200 [12:22:28]OFD Sender: To server: pG, [12:22:28]CommunicateWithHost lk.salyk.kg:30040 [12:22:28]ConnectInit lk.salyk.kg [12:22:28]written 0, free lines is 4095 [12:22:28]Connected sock=10 [12:22:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C9 36 07 01 51 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 04 20 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 81 02 00 35 04 06 00 13 93 AD 62 49 4E 23 8B 04 10 8F DF 08 15 [12:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A5 C5 47 00 C6 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 34 37 31 38 10 04 04 00 68 81 02 00 F4 03 04 00 98 C6 90 66 B6 04 01 00 00 3A 3D AE C9 9F 3F 30 86 [12:22:29]CommunicateWithHost err = 0 [12:22:29]CheckOFDResponse [12:22:29]1017 (14) - 77093643461234 [12:22:29]1041 (16) - 0000000000874718 [12:22:29]1040 (4) - 164200 [12:22:29]1012 (4) - 12.07.2024 06:00 [12:22:29]1206 (1) - 0 [12:22:29]OFD Sender: Remove packet 164200 [12:22:29]ProducePacketName [12:22:29]name=ofd_packets/00164200 [12:22:29]NVStorageDeleteData [12:22:29]Write to MH i2c: 01 00 00 E9 17 00 [12:22:29]Write i2c OK [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: 01 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: 01 07 00 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: 01 07 00 E9 17 00 00 00 00 00 F2 0C 05 [12:22:29]RasterBufferAndPrint [12:22:29]line [12:22:29]line [12:22:29]line [12:22:29]line [12:22:29]line [12:22:29]written 0, free lines is 3320 [12:22:29]MH_Cut [12:22:29]Write to MH i2c: D1 01 00 F0 17 01 D9 [12:22:29]Write i2c OK [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: D1 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: D1 01 00 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: D1 01 00 F0 17 00 D8 [12:22:29]Write to MH i2c: 01 00 00 F1 17 08 [12:22:29]Write i2c OK [12:22:29]MH_I2C_Read... [12:22:29]OFD Sender: No OFD packet to send [12:22:29]*** Cut start [12:22:29]*** Partial cut [12:22:29]*** CUTSNS_PIN = 1 [12:22:29]*** CUTSNS_PIN = 0 [12:22:30]*** Brake cut motor [12:22:30]Read from MH i2c: 01 [12:22:30]MH_I2C_Read... [12:22:30]*** Stop cut motor [12:22:30]*** Cut end [12:22:30]Read from MH i2c: 01 07 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: 01 07 00 F1 17 00 00 00 00 00 FF 0F 1D [12:22:30]process_action close_receipt done [12:22:30]requested_data is exist [12:22:30]produce_requested_data [12:22:30]requested_item fm.sn is exist - process it [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 11 00 00 [12:22:30]Write to MH i2c: E2 08 00 F2 17 80 11 00 00 00 00 00 00 83 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 17 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 17 00 F2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D9 [12:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:22:30]wFMCommunicate OK [12:22:30]requested_item fd.num is exist - process it [12:22:30]SAM_PROTO_GetFieldsCounters [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 13 00 00 [12:22:30]Write to MH i2c: E2 08 00 F3 17 80 13 00 00 00 00 00 00 86 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 62 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 62 00 F3 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [12:22:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:30]wFMCommunicate OK [12:22:30]SAM_PROTO_GetFieldsCounters done [12:22:30]requested_item shift.num is exist - process it [12:22:30]requested_item shift.opened is exist - process it [12:22:30]req_shift_opened [12:22:30]FM_GetShiftState [12:22:30]SAM_PROTO_GetShiftState [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 13 01 00 [12:22:30]Write to MH i2c: E2 08 00 F4 17 80 13 01 00 00 00 00 00 88 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 0E 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 0E 00 F4 17 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D2 [12:22:30]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:22:30]wFMCommunicate OK [12:22:30]SAM_PROTO_GetShiftState done [12:22:30]FM_GetShiftState done [12:22:30]req_shift_opened done [12:22:30]requested_item shift.open_date is exist - process it [12:22:30]req_shift_open_date [12:22:30]req_shift_open_date done [12:22:30]produce_requested_data done [12:22:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164200,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:22:30]process_action_free close_receipt [12:22:30]json_value_free [12:22:30]json_value_free done [12:22:30]process_json_proto returns [12:22:30]Send response to host [12:22:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164200,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:22:30]free response buf [12:22:30]execute_script done [12:22:30]execute_script returns [12:22:30]free content buf [12:22:30]Sock 7.Close socket [12:22:30]Sock 7.Thread stoped [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:38]accept exits with 9 [12:30:38]New connection [12:30:38]New thread 3066850660 created [12:30:38]Thread 3066707300 joined [12:30:38]Waiting for new connection... [12:30:38] Sock 9.Parse request [12:30:38]Sock 9.Check first char [12:30:38]Sock 9.First char is OK [12:30:38]request: POST /json_proto HTTP/1.0 [12:30:38]Method: POST [12:30:38]URL: /json_proto [12:30:38]Method is POST - this is cgi request [12:30:38]url: /json_proto [12:30:38]query_string will be loaded in cgi processing [12:30:38]execute_cgi json_proto POST (null) [12:30:38]execute_cgi path=json_proto method=POST [12:30:38]POST find Content-Length [12:30:38]Host: 172.17.56.4:8080 [12:30:38]Content-Length: 677 [12:30:38]Content-Type: application/json [12:30:38] [12:30:38]POST finish read [12:30:38]Found Content-Length = 677 [12:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:30:38]execute_script... [12:30: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)458283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:30:38]POST & json_proto [12:30:38]process_json_proto [12:30:38]json parsed OK: [12:30:38]protocol is kg_v1.0 [12:30:38]action value=close_receipt [12:30:38]process_action close_receipt [12:30:38]cmd_close_receipt [12:30:38]MH_GetDate [12:30:38]Write to MH i2c: F0 00 00 F5 17 FB [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: F0 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: F0 09 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: F0 09 00 F5 17 00 EF 21 91 66 C9 DC B2 64 C6 [12:30:38]GetLastDocTimeStamp 1720786948 [12:30:38]current date 1720787439 [12:30:38]FM_GetShiftState [12:30:38]SAM_PROTO_GetShiftState [12:30:38]wFMCommunicate request_size=4 [12:30:38]MH_SAM_APDU [12:30:38]CAPDU: 80 13 01 00 [12:30:38]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:38]Read from MH i2c: E2 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 0E 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D4 [12:30:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:30:38]wFMCommunicate OK [12:30:38]SAM_PROTO_GetShiftState done [12:30:38]FM_GetShiftState done [12:30:38]opened in 1720744654 [12:30:38]opened+sec_in_day 1720831054 [12:30:38]quantity*price = 40006 [12:30:38]sum+1 = 40007 [12:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 122 12.07.2024 12:30 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164201 ФПД: 120192275651619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123039&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164201&fm=120192275651619&tin=02508201610067®Number=0000000000090829&sum=40000 [12:30:39]StoreToDocumentArchive [12:30:39]shift 445 fd 164201 [12:30:39]save to /storage/0445/doc_00164201 [12:30:39]save last doc name /storage/0445/doc_00164201 to /storage/kkm_last_doc_name [12:30:39]save OK [12:30:39]Clear old archive folders... [12:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:39]tlvbuf is 009E8C30 [12:30:39]SAM_PROTO_ClearQueue [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 09 00 00 [12:30:39]Write to MH i2c: E2 08 00 03 18 80 09 00 00 00 00 00 00 8D [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [12:30:39]RAPDU: 90 00 [12:30:39]wFMCommunicate OK [12:30:39]SAM_PROTO_ClearQueue done [12:30:39]KKMCreateOFDPacket [12:30:39]OFDProtocolAddRootSTLVToBuf [12:30:39]FM_MakeSignedData [12:30:39]FM_MakeSignedData [12:30:39]SAM_PROTO_SignData [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 0D 01 02 [12:30:39]Write to MH i2c: E2 08 00 04 18 80 0D 01 02 00 00 00 00 95 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [12:30:39]RAPDU: 90 00 [12:30:39]wFMCommunicate OK [12:30:39]wFMCommunicate request_size=255 [12:30:39]MH_SAM_APDU [12:30: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 7A 00 00 00 F4 03 04 00 EF 21 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 81 02 00 35 04 06 00 6D [12:30:39]Write to MH i2c: E2 02 01 05 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 7A 00 00 00 F4 03 04 00 EF 21 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 81 02 00 35 04 06 00 6D 00 00 86 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [12:30:39]RAPDU: 90 00 [12:30:39]wFMCommunicate OK [12:30:39]wFMCommunicate request_size=10 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 0D 02 02 05 50 71 E5 1C 23 [12:30:39]Write to MH i2c: E2 0D 00 06 18 80 0D 02 02 05 00 50 71 E5 1C 23 00 00 87 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [12:30:40]RAPDU: 90 00 [12:30:40]wFMCommunicate OK [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 0D 03 02 [12:30:40]Write to MH i2c: E2 08 00 07 18 80 0D 03 02 00 00 00 00 9A [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0B 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0B 00 07 18 00 EC 97 42 4F 0B 67 AB 9F 90 00 6B [12:30:40]RAPDU: EC 97 42 4F 0B 67 AB 9F 90 00 [12:30:40]wFMCommunicate OK [12:30:40]SAM_PROTO_SignData done [12:30:40]FM_MakeSignedData done [12:30:40]CreateOFDProtocolMessage [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 11 00 00 [12:30:40]Write to MH i2c: E2 08 00 08 18 80 11 00 00 00 00 00 00 9A [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 17 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 17 00 08 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [12:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:30:40]wFMCommunicate OK [12:30:40]CreateOFDProtocolMessage done [12:30:40]OFDSenderStorePacket 164201 [12:30:40]StoreOFDPacket docnum=164201 [12:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 79 83 07 01 99 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 7A 00 00 00 F4 03 04 00 EF 21 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 81 02 00 35 04 06 00 6D 50 71 E5 1C 23 EC 97 42 4F 0B 67 AB 9F [12:30:40]CheckFolder [12:30:40]dirname=/storage/ofd_packets [12:30:40]CheckFolder done [12:30:40]ProducePacketName [12:30:40]name=ofd_packets/00164201 [12:30:40]NVStorageSaveData ofd_packets/00164201 [12:30:40]File name is /storage/ofd_packets/00164201 [12:30:40]Write 301 bytes [12:30:40]NVStorageSaveData done [12:30:40]OFDSenderStorePacket done [12:30:40]KKMCreateOFDPacket done [12:30:40]NVStorageSaveData kkm_last_timestamp [12:30:40]File name is /storage/kkm_last_timestamp [12:30:40]Write 4 bytes [12:30:40]NVStorageSaveData done [12:30:40]OFD Sender: Processing packet 164201 [packets to send 104, broken 103] [12:30:40]ProducePacketName [12:30:40]name=ofd_packets/00164201 [12:30:40]OFD Sender: To server: pG, [12:30:40]CommunicateWithHost lk.salyk.kg:30040 [12:30:40]ConnectInit lk.salyk.kg [12:30:40]ExternCall_PrintAddStr [12:30:40]wPrintStart [12:30:40]Write to MH i2c: 01 00 00 09 18 21 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 FF 0F 36 [12:30:40]RasterBufferAndPrint [12:30:40]line Счет N : (1)458283 [12:30:40]line ИНН: 02508201610067 [12:30:40]line Контрольно-Кассовый Чек [12:30:40]line ПРОДАЖА [12:30:40]line ТРК (МРК, ГНК) : 22 [12:30:40]line Товар: 2710124130 [12:30:40]line Аи-92-К-5 [12:30:40]line 6.080 * 65.80 [12:30:40]line = 400.06 [12:30:40]line НДС 12% НСП 1% [12:30:40]line > о реализуемом товаре [12:30:40]line ОКРУГЛЕНИЕ: -0.06 [12:30:40]line ИТОГО: 400.00 [12:30:40]line Внесено: 400.00 [12:30:40]line СДАЧА: 0.00 [12:30:40]line НСП 1% : 3.54 [12:30:40]line НДС 12% : 42.48 [12:30:40]line Наличными: 400.00 [12:30:40]line Безнал.: 0.00 [12:30:40]line Место: АЗС № 72 "Партнер Нефть" [12:30:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:30:40]line СНО: Общий режим [12:30:40]line Чек 122 12.07.2024 12:30 [12:30:40]line Смена: 445 ФФД: 1.0 [12:30:40]line ЗНМ: 0300000160 [12:30:40]line РНМ: 0000000000090829 [12:30:40]line Версия ККМ: 001 [12:30:40]line ФМ: 0000000000874718 [12:30:40]line ФД: 164201 [12:30:40]line ФПД: 120192275651619 [12:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123039&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164201&fm=120192275651619&tin=02508201610067®Number=0000000000090829&sum=40000 [12:30:40]written 0, free lines is 4095 [12:30:40]Connected sock=11 [12:30:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 79 83 07 01 99 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 7A 00 00 00 F4 03 04 00 EF 21 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 81 02 00 35 04 06 00 6D 50 71 E5 1C 23 EC 97 42 4F 0B 67 AB 9F [12:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D1 8E 47 00 56 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 81 02 00 F4 03 04 00 83 C8 90 66 B6 04 01 00 00 C8 AB 4E 1A 9B D9 4E FE [12:30:40]CommunicateWithHost err = 0 [12:30:40]CheckOFDResponse [12:30:40]1017 (14) - 77093643461234 [12:30:40]1041 (16) - 0000000000874718 [12:30:40]1040 (4) - 164201 [12:30:40]1012 (4) - 12.07.2024 06:09 [12:30:40]1206 (1) - 0 [12:30:40]OFD Sender: Remove packet 164201 [12:30:40]ProducePacketName [12:30:40]name=ofd_packets/00164201 [12:30:40]NVStorageDeleteData [12:30:40]Write to MH i2c: 01 00 00 33 18 4B [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 F7 0C 55 [12:30:40]RasterBufferAndPrint [12:30:40]line [12:30:40]line [12:30:40]line [12:30:40]line [12:30:40]line [12:30:40]written 0, free lines is 3326 [12:30:40]MH_Cut [12:30:40]Write to MH i2c: D1 01 00 3A 18 01 24 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: D1 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: D1 01 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: D1 01 00 3A 18 00 23 [12:30:40]Write to MH i2c: 01 00 00 3B 18 53 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]OFD Sender: No OFD packet to send [12:30:41]*** Cut start [12:30:41]*** Partial cut [12:30:41]*** CUTSNS_PIN = 1 [12:30:41]*** CUTSNS_PIN = 0 [12:30:41]*** Brake cut motor [12:30:41]Read from MH i2c: 01 [12:30:41]MH_I2C_Read... [12:30:41]*** Stop cut motor [12:30:41]*** Cut end [12:30:41]Read from MH i2c: 01 07 00 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 FF 0F 68 [12:30:41]process_action close_receipt done [12:30:41]requested_data is exist [12:30:41]produce_requested_data [12:30:41]requested_item fm.sn is exist - process it [12:30:41]wFMCommunicate request_size=4 [12:30:41]MH_SAM_APDU [12:30:41]CAPDU: 80 11 00 00 [12:30:41]Write to MH i2c: E2 08 00 3C 18 80 11 00 00 00 00 00 00 CE [12:30:41]Write i2c OK [12:30:41]MH_I2C_Read... [12:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:41]Read from MH i2c: E2 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: E2 17 00 [12:30:41]MH_I2C_Read... [12:30:41]Read from MH i2c: E2 17 00 3C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [12:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:30:41]wFMCommunicate OK [12:30:41]requested_item fd.num is exist - process it [12:30:41]SAM_PROTO_GetFieldsCounters [12:30:41]wFMCommunicate request_size=4 [12:30:41]MH_SAM_APDU [12:30:41]CAPDU: 80 13 00 00 [12:30:41]Write to MH i2c: E2 08 00 3D 18 80 13 00 00 00 00 00 00 D1 [12:30:41]Write i2c OK [12:30:41]MH_I2C_Read... [12:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:42]Read from MH i2c: E2 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: E2 62 00 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: E2 62 00 3D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [12:30: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:42]wFMCommunicate OK [12:30:42]SAM_PROTO_GetFieldsCounters done [12:30:42]requested_item shift.num is exist - process it [12:30:42]requested_item shift.opened is exist - process it [12:30:42]req_shift_opened [12:30:42]FM_GetShiftState [12:30:42]SAM_PROTO_GetShiftState [12:30:42]wFMCommunicate request_size=4 [12:30:42]MH_SAM_APDU [12:30:42]CAPDU: 80 13 01 00 [12:30:42]Write to MH i2c: E2 08 00 3E 18 80 13 01 00 00 00 00 00 D3 [12:30:42]Write i2c OK [12:30:42]MH_I2C_Read... [12:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:42]Read from MH i2c: E2 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: E2 0E 00 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: E2 0E 00 3E 18 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1D [12:30:42]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:30:42]wFMCommunicate OK [12:30:42]SAM_PROTO_GetShiftState done [12:30:42]FM_GetShiftState done [12:30:42]req_shift_opened done [12:30:42]requested_item shift.open_date is exist - process it [12:30:42]req_shift_open_date [12:30:42]req_shift_open_date done [12:30:42]produce_requested_data done [12:30:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164201,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:30:42]process_action_free close_receipt [12:30:42]json_value_free [12:30:42]json_value_free done [12:30:42]process_json_proto returns [12:30:42]Send response to host [12:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164201,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:30:42]free response buf [12:30:42]execute_script done [12:30:42]execute_script returns [12:30:42]free content buf [12:30:42]Sock 9.Close socket [12:30:42]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:14]accept exits with 7 [12:32:14]New connection [12:32:14]New thread 3066707300 created [12:32:14]Thread 3066850660 joined [12:32:14]Waiting for new connection... [12:32:14] Sock 7.Parse request [12:32:14]Sock 7.Check first char [12:32:14]Sock 7.First char is OK [12:32:14]request: POST /json_proto HTTP/1.0 [12:32:14]Method: POST [12:32:14]URL: /json_proto [12:32:14]Method is POST - this is cgi request [12:32:14]url: /json_proto [12:32:14]query_string will be loaded in cgi processing [12:32:14]execute_cgi json_proto POST (null) [12:32:14]execute_cgi path=json_proto method=POST [12:32:14]POST find Content-Length [12:32:14]Host: 172.17.56.4:8080 [12:32:14]Content-Length: 677 [12:32:14]Content-Type: application/json [12:32:14] [12:32:14]POST finish read [12:32:14]Found Content-Length = 677 [12:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:14]execute_script... [12:32: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)458284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:14]POST & json_proto [12:32:14]process_json_proto [12:32:14]json parsed OK: [12:32:14]protocol is kg_v1.0 [12:32:14]action value=close_receipt [12:32:14]process_action close_receipt [12:32:14]cmd_close_receipt [12:32:14]MH_GetDate [12:32:14]Write to MH i2c: F0 00 00 3F 18 46 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: F0 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: F0 09 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: F0 09 00 3F 18 00 4F 22 91 66 C9 DC B2 64 72 [12:32:14]GetLastDocTimeStamp 1720787439 [12:32:14]current date 1720787535 [12:32:14]FM_GetShiftState [12:32:14]SAM_PROTO_GetShiftState [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 13 01 00 [12:32:14]Write to MH i2c: E2 08 00 40 18 80 13 01 00 00 00 00 00 D5 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 0E 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 0E 00 40 18 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1F [12:32:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:32:14]wFMCommunicate OK [12:32:14]SAM_PROTO_GetShiftState done [12:32:14]FM_GetShiftState done [12:32:14]opened in 1720744654 [12:32:14]opened+sec_in_day 1720831054 [12:32:14]quantity*price = 55008 [12:32:14]sum+1 = 55010 [12:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 123 12.07.2024 12:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164202 ФПД: 110018614039363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123215&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164202&fm=110018614039363&tin=02508201610067®Number=0000000000090829&sum=55000 [12:32:15]StoreToDocumentArchive [12:32:15]shift 445 fd 164202 [12:32:15]save to /storage/0445/doc_00164202 [12:32:15]save last doc name /storage/0445/doc_00164202 to /storage/kkm_last_doc_name [12:32:15]save OK [12:32:15]Clear old archive folders... [12:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:15]tlvbuf is 009F9A80 [12:32:15]SAM_PROTO_ClearQueue [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 09 00 00 [12:32:15]Write to MH i2c: E2 08 00 4D 18 80 09 00 00 00 00 00 00 D7 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [12:32:15]RAPDU: 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_ClearQueue done [12:32:15]KKMCreateOFDPacket [12:32:15]OFDProtocolAddRootSTLVToBuf [12:32:15]FM_MakeSignedData [12:32:15]FM_MakeSignedData [12:32:15]SAM_PROTO_SignData [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 0D 01 02 [12:32:15]Write to MH i2c: E2 08 00 4E 18 80 0D 01 02 00 00 00 00 DF [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [12:32:15]RAPDU: 90 00 [12:32:15]wFMCommunicate OK [12:32:15]wFMCommunicate request_size=255 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 81 02 00 35 04 06 00 64 [12:32:15]Write to MH i2c: E2 02 01 4F 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 81 02 00 35 04 06 00 64 00 00 59 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [12:32:15]RAPDU: 90 00 [12:32:15]wFMCommunicate OK [12:32:15]wFMCommunicate request_size=10 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 0D 02 02 05 0F B4 68 93 43 [12:32:15]Write to MH i2c: E2 0D 00 50 18 80 0D 02 02 05 00 0F B4 68 93 43 00 00 ED [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 50 18 00 90 00 DC [12:32:15]RAPDU: 90 00 [12:32:15]wFMCommunicate OK [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 0D 03 02 [12:32:15]Write to MH i2c: E2 08 00 51 18 80 0D 03 02 00 00 00 00 E4 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0B 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0B 00 51 18 00 F5 46 C3 BD F7 31 39 29 90 00 2A [12:32:15]RAPDU: F5 46 C3 BD F7 31 39 29 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_SignData done [12:32:15]FM_MakeSignedData done [12:32:15]CreateOFDProtocolMessage [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 11 00 00 [12:32:15]Write to MH i2c: E2 08 00 52 18 80 11 00 00 00 00 00 00 E4 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 17 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 17 00 52 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [12:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:32:16]wFMCommunicate OK [12:32:16]CreateOFDProtocolMessage done [12:32:16]OFDSenderStorePacket 164202 [12:32:16]StoreOFDPacket docnum=164202 [12:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0E C4 07 01 1F 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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 81 02 00 35 04 06 00 64 0F B4 68 93 43 F5 46 C3 BD F7 31 39 29 [12:32:16]CheckFolder [12:32:16]dirname=/storage/ofd_packets [12:32:16]CheckFolder done [12:32:16]ProducePacketName [12:32:16]name=ofd_packets/00164202 [12:32:16]NVStorageSaveData ofd_packets/00164202 [12:32:16]File name is /storage/ofd_packets/00164202 [12:32:16]Write 301 bytes [12:32:16]NVStorageSaveData done [12:32:16]OFDSenderStorePacket done [12:32:16]KKMCreateOFDPacket done [12:32:16]NVStorageSaveData kkm_last_timestamp [12:32:16]File name is /storage/kkm_last_timestamp [12:32:16]Write 4 bytes [12:32:16]NVStorageSaveData done [12:32:16]ExternCall_PrintAddStr [12:32:16]wPrintStart [12:32:16]Write to MH i2c: 01 00 00 53 18 6B [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 07 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 FF 0F 80 [12:32:16]RasterBufferAndPrint [12:32:16]line Счет N : (1)458284 [12:32:16]line ИНН: 02508201610067 [12:32:16]line Контрольно-Кассовый Чек [12:32:16]line ПРОДАЖА [12:32:16]line ТРК (МРК, ГНК) : 12 [12:32:16]line Товар: 2710124130 [12:32:16]line Аи-92-К-5 [12:32:16]line 8.360 * 65.80 [12:32:16]line = 550.09 [12:32:16]line НДС 12% НСП 1% [12:32:16]line > о реализуемом товаре [12:32:16]line ОКРУГЛЕНИЕ: -0.09 [12:32:16]line ИТОГО: 550.00 [12:32:16]line Внесено: 550.00 [12:32:16]line СДАЧА: 0.00 [12:32:16]line НСП 1% : 4.87 [12:32:16]line НДС 12% : 58.42 [12:32:16]line Наличными: 550.00 [12:32:16]line Безнал.: 0.00 [12:32:16]line Место: АЗС № 72 "Партнер Нефть" [12:32:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:32:16]line СНО: Общий режим [12:32:16]line Чек 123 12.07.2024 12:32 [12:32:16]line Смена: 445 ФФД: 1.0 [12:32:16]line ЗНМ: 0300000160 [12:32:16]line РНМ: 0000000000090829 [12:32:16]line Версия ККМ: 001 [12:32:16]line ФМ: 0000000000874718 [12:32:16]line ФД: 164202 [12:32:16]line ФПД: 110018614039363 [12:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123215&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164202&fm=110018614039363&tin=02508201610067®Number=0000000000090829&sum=55000 [12:32:16]OFD Sender: Processing packet 164202 [packets to send 104, broken 103] [12:32:16]ProducePacketName [12:32:16]name=ofd_packets/00164202 [12:32:16]OFD Sender: To server: pG, [12:32:16]CommunicateWithHost lk.salyk.kg:30040 [12:32:16]ConnectInit lk.salyk.kg [12:32:16]written 0, free lines is 4095 [12:32:16]Connected sock=10 [12:32:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0E C4 07 01 1F 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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 4F 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 81 02 00 35 04 06 00 64 0F B4 68 93 43 F5 46 C3 BD F7 31 39 29 [12:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D2 30 47 00 67 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 34 37 31 38 10 04 04 00 6A 81 02 00 F4 03 04 00 E3 C8 90 66 B6 04 01 00 00 E1 17 20 0E 6F 02 F0 7F [12:32:16]CommunicateWithHost err = 0 [12:32:16]CheckOFDResponse [12:32:16]1017 (14) - 77093643461234 [12:32:16]1041 (16) - 0000000000874718 [12:32:16]1040 (4) - 164202 [12:32:16]1012 (4) - 12.07.2024 06:10 [12:32:16]1206 (1) - 0 [12:32:16]OFD Sender: Remove packet 164202 [12:32:16]ProducePacketName [12:32:16]name=ofd_packets/00164202 [12:32:16]NVStorageDeleteData [12:32:16]Write to MH i2c: 01 00 00 7D 18 95 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 07 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 07 00 7D 18 00 00 00 00 00 0A 0D B3 [12:32:16]RasterBufferAndPrint [12:32:16]line [12:32:16]line [12:32:16]line [12:32:16]line [12:32:16]line [12:32:16]written 0, free lines is 3344 [12:32:16]MH_Cut [12:32:16]Write to MH i2c: D1 01 00 84 18 01 6E [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: D1 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: D1 01 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: D1 01 00 84 18 00 6D [12:32:16]Write to MH i2c: 01 00 00 85 18 9D [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]OFD Sender: No OFD packet to send [12:32:17]*** Cut start [12:32:17]*** Partial cut [12:32:17]*** CUTSNS_PIN = 1 [12:32:17]*** CUTSNS_PIN = 0 [12:32:17]*** Brake cut motor [12:32:17]Read from MH i2c: 01 [12:32:17]MH_I2C_Read... [12:32:17]*** Stop cut motor [12:32:17]*** Cut end [12:32:17]Read from MH i2c: 01 07 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 85 18 00 00 00 00 00 FF 0F B2 [12:32:17]process_action close_receipt done [12:32:17]requested_data is exist [12:32:17]produce_requested_data [12:32:17]requested_item fm.sn is exist - process it [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 11 00 00 [12:32:17]Write to MH i2c: E2 08 00 86 18 80 11 00 00 00 00 00 00 18 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 86 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [12:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:32:17]wFMCommunicate OK [12:32:17]requested_item fd.num is exist - process it [12:32:17]SAM_PROTO_GetFieldsCounters [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 13 00 00 [12:32:17]Write to MH i2c: E2 08 00 87 18 80 13 00 00 00 00 00 00 1B [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:18]Read from MH i2c: E2 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 62 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 62 00 87 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [12:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:18]wFMCommunicate OK [12:32:18]SAM_PROTO_GetFieldsCounters done [12:32:18]requested_item shift.num is exist - process it [12:32:18]requested_item shift.opened is exist - process it [12:32:18]req_shift_opened [12:32:18]FM_GetShiftState [12:32:18]SAM_PROTO_GetShiftState [12:32:18]wFMCommunicate request_size=4 [12:32:18]MH_SAM_APDU [12:32:18]CAPDU: 80 13 01 00 [12:32:18]Write to MH i2c: E2 08 00 88 18 80 13 01 00 00 00 00 00 1D [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:18]Read from MH i2c: E2 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 0E 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 0E 00 88 18 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 67 [12:32:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:32:18]wFMCommunicate OK [12:32:18]SAM_PROTO_GetShiftState done [12:32:18]FM_GetShiftState done [12:32:18]req_shift_opened done [12:32:18]requested_item shift.open_date is exist - process it [12:32:18]req_shift_open_date [12:32:18]req_shift_open_date done [12:32:18]produce_requested_data done [12:32:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164202,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:32:18]process_action_free close_receipt [12:32:18]json_value_free [12:32:18]json_value_free done [12:32:18]process_json_proto returns [12:32:18]Send response to host [12:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164202,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:32:18]free response buf [12:32:18]execute_script done [12:32:18]execute_script returns [12:32:18]free content buf [12:32:18]Sock 7.Close socket [12:32:18]Sock 7.Thread stoped [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:37]accept exits with 9 [12:34:37]New connection [12:34:37]New thread 3066850660 created [12:34:37]Thread 3066707300 joined [12:34:37]Waiting for new connection... [12:34:37] Sock 9.Parse request [12:34:37]Sock 9.Check first char [12:34:37]Sock 9.First char is OK [12:34:37]request: POST /json_proto HTTP/1.0 [12:34:37]Method: POST [12:34:37]URL: /json_proto [12:34:37]Method is POST - this is cgi request [12:34:37]url: /json_proto [12:34:37]query_string will be loaded in cgi processing [12:34:37]execute_cgi json_proto POST (null) [12:34:37]execute_cgi path=json_proto method=POST [12:34:37]POST find Content-Length [12:34:37]Host: 172.17.56.4:8080 [12:34:37]Content-Length: 677 [12:34:37]Content-Type: application/json [12:34:37] [12:34:37]POST finish read [12:34:37]Found Content-Length = 677 [12:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.440, "sum" : 160.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:37]execute_script... [12:34: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)458287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.440, "sum" : 160.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:37]POST & json_proto [12:34:37]process_json_proto [12:34:37]json parsed OK: [12:34:37]protocol is kg_v1.0 [12:34:37]action value=close_receipt [12:34:37]process_action close_receipt [12:34:37]cmd_close_receipt [12:34:37]MH_GetDate [12:34:37]Write to MH i2c: F0 00 00 89 18 90 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: F0 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: F0 09 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: F0 09 00 89 18 00 DE 22 91 66 C9 DC B2 64 4B [12:34:37]GetLastDocTimeStamp 1720787535 [12:34:37]current date 1720787678 [12:34:37]FM_GetShiftState [12:34:37]SAM_PROTO_GetShiftState [12:34:37]wFMCommunicate request_size=4 [12:34:37]MH_SAM_APDU [12:34:37]CAPDU: 80 13 01 00 [12:34:37]Write to MH i2c: E2 08 00 8A 18 80 13 01 00 00 00 00 00 1F [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:37]Read from MH i2c: E2 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 0E 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: E2 0E 00 8A 18 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 69 [12:34:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:34:37]wFMCommunicate OK [12:34:37]SAM_PROTO_GetShiftState done [12:34:37]FM_GetShiftState done [12:34:37]opened in 1720744654 [12:34:37]opened+sec_in_day 1720831054 [12:34:37]quantity*price = 16055 [12:34:37]sum+1 = 16056 [12:34:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.05 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 124 12.07.2024 12:34 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164203 ФПД: 87260122275022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123438&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164203&fm=87260122275022&tin=02508201610067®Number=0000000000090829&sum=16000 [12:34:38]StoreToDocumentArchive [12:34:38]shift 445 fd 164203 [12:34:38]save to /storage/0445/doc_00164203 [12:34:38]save last doc name /storage/0445/doc_00164203 to /storage/kkm_last_doc_name [12:34:38]save OK [12:34:38]Clear old archive folders... [12:34:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:38]tlvbuf is 009E69C0 [12:34:38]SAM_PROTO_ClearQueue [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 09 00 00 [12:34:38]Write to MH i2c: E2 08 00 97 18 80 09 00 00 00 00 00 00 21 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 97 18 00 90 00 23 [12:34:38]RAPDU: 90 00 [12:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_ClearQueue done [12:34:38]KKMCreateOFDPacket [12:34:38]OFDProtocolAddRootSTLVToBuf [12:34:38]FM_MakeSignedData [12:34:38]FM_MakeSignedData [12:34:38]SAM_PROTO_SignData [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 0D 01 02 [12:34:38]Write to MH i2c: E2 08 00 98 18 80 0D 01 02 00 00 00 00 29 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [12:34:38]RAPDU: 90 00 [12:34:38]wFMCommunicate OK [12:34:38]wFMCommunicate request_size=255 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B7 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 DE 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 81 02 00 35 04 06 00 4F [12:34:38]Write to MH i2c: E2 02 01 99 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B7 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 DE 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 81 02 00 35 04 06 00 4F 00 00 B3 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [12:34:38]RAPDU: 90 00 [12:34:38]wFMCommunicate OK [12:34:38]wFMCommunicate request_size=10 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 0D 02 02 05 5C D4 97 5C CE [12:34:38]Write to MH i2c: E2 0D 00 9A 18 80 0D 02 02 05 00 5C D4 97 5C CE 00 00 27 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 9A 18 00 90 00 26 [12:34:38]RAPDU: 90 00 [12:34:38]wFMCommunicate OK [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 0D 03 02 [12:34:38]Write to MH i2c: E2 08 00 9B 18 80 0D 03 02 00 00 00 00 2E [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0B 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0B 00 9B 18 00 A3 FD F9 86 B1 91 06 62 90 00 F8 [12:34:38]RAPDU: A3 FD F9 86 B1 91 06 62 90 00 [12:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_SignData done [12:34:38]FM_MakeSignedData done [12:34:38]CreateOFDProtocolMessage [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 11 00 00 [12:34:38]Write to MH i2c: E2 08 00 9C 18 80 11 00 00 00 00 00 00 2E [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 17 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 17 00 9C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 84 [12:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:34:38]wFMCommunicate OK [12:34:38]CreateOFDProtocolMessage done [12:34:38]OFDSenderStorePacket 164203 [12:34:38]StoreOFDPacket docnum=164203 [12:34:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 95 18 07 01 A6 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 88 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B7 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 DE 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 81 02 00 35 04 06 00 4F 5C D4 97 5C CE A3 FD F9 86 B1 91 06 62 [12:34:38]CheckFolder [12:34:38]dirname=/storage/ofd_packets [12:34:38]CheckFolder done [12:34:38]ProducePacketName [12:34:38]name=ofd_packets/00164203 [12:34:38]NVStorageSaveData ofd_packets/00164203 [12:34:38]File name is /storage/ofd_packets/00164203 [12:34:38]Write 301 bytes [12:34:38]NVStorageSaveData done [12:34:38]OFDSenderStorePacket done [12:34:38]KKMCreateOFDPacket done [12:34:38]NVStorageSaveData kkm_last_timestamp [12:34:38]File name is /storage/kkm_last_timestamp [12:34:38]Write 4 bytes [12:34:38]NVStorageSaveData done [12:34:38]ExternCall_PrintAddStr [12:34:38]wPrintStart [12:34:38]Write to MH i2c: 01 00 00 9D 18 B5 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: 01 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: 01 07 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: 01 07 00 9D 18 00 00 00 00 00 FF 0F CA [12:34:38]RasterBufferAndPrint [12:34:38]line Счет N : (1)458287 [12:34:38]line ИНН: 02508201610067 [12:34:38]line Контрольно-Кассовый Чек [12:34:38]line ПРОДАЖА [12:34:38]line ТРК (МРК, ГНК) : 12 [12:34:38]line Товар: 2710124130 [12:34:38]line Аи-92-К-5 [12:34:38]line 2.440 * 65.80 [12:34:38]line = 160.55 [12:34:38]line НДС 12% НСП 1% [12:34:38]line > о реализуемом товаре [12:34:38]line ОКРУГЛЕНИЕ: -0.55 [12:34:38]line ИТОГО: 160.00 [12:34:38]line Внесено: 160.00 [12:34:38]line СДАЧА: 0.00 [12:34:38]line НСП 1% : 1.42 [12:34:38]line НДС 12% : 17.05 [12:34:38]line Наличными: 160.00 [12:34:38]line Безнал.: 0.00 [12:34:38]line Место: АЗС № 72 "Партнер Нефть" [12:34:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:34:38]line СНО: Общий режим [12:34:38]line Чек 124 12.07.2024 12:34 [12:34:38]line Смена: 445 ФФД: 1.0 [12:34:38]line ЗНМ: 0300000160 [12:34:38]line РНМ: 0000000000090829 [12:34:38]line Версия ККМ: 001 [12:34:38]line ФМ: 0000000000874718 [12:34:38]line ФД: 164203 [12:34:39]line ФПД: 87260122275022 [12:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123438&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164203&fm=87260122275022&tin=02508201610067®Number=0000000000090829&sum=16000 [12:34:39]OFD Sender: Processing packet 164203 [packets to send 104, broken 103] [12:34:39]ProducePacketName [12:34:39]name=ofd_packets/00164203 [12:34:39]OFD Sender: To server: pG, [12:34:39]CommunicateWithHost lk.salyk.kg:30040 [12:34:39]ConnectInit lk.salyk.kg [12:34:39]written 0, free lines is 4095 [12:34:39]Connected sock=10 [12:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 95 18 07 01 A6 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 88 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B7 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 DE 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 81 02 00 35 04 06 00 4F 5C D4 97 5C CE A3 FD F9 86 B1 91 06 62 [12:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 28 5A 47 00 B0 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 34 37 31 38 10 04 04 00 6B 81 02 00 F4 03 04 00 72 C9 90 66 B6 04 01 00 00 0F 1A BB 26 1D F3 F4 9B [12:34:39]CommunicateWithHost err = 0 [12:34:39]CheckOFDResponse [12:34:39]1017 (14) - 77093643461234 [12:34:39]1041 (16) - 0000000000874718 [12:34:39]1040 (4) - 164203 [12:34:39]1012 (4) - 12.07.2024 06:13 [12:34:39]1206 (1) - 0 [12:34:39]OFD Sender: Remove packet 164203 [12:34:39]ProducePacketName [12:34:39]name=ofd_packets/00164203 [12:34:39]NVStorageDeleteData [12:34:39]Write to MH i2c: 01 00 00 C7 18 DF [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 07 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 07 00 C7 18 00 00 00 00 00 F6 0C E8 [12:34:39]RasterBufferAndPrint [12:34:39]line [12:34:39]line [12:34:39]line [12:34:39]line [12:34:39]line [12:34:39]written 0, free lines is 3324 [12:34:39]MH_Cut [12:34:39]Write to MH i2c: D1 01 00 CE 18 01 B8 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: D1 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: D1 01 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: D1 01 00 CE 18 00 B7 [12:34:39]Write to MH i2c: 01 00 00 CF 18 E7 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]OFD Sender: No OFD packet to send [12:34:40]*** Cut start [12:34:40]*** Partial cut [12:34:40]*** CUTSNS_PIN = 1 [12:34:40]*** CUTSNS_PIN = 0 [12:34:40]*** Brake cut motor [12:34:40]Read from MH i2c: 01 [12:34:40]MH_I2C_Read... [12:34:40]*** Stop cut motor [12:34:40]*** Cut end [12:34:40]Read from MH i2c: 01 07 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: 01 07 00 CF 18 00 00 00 00 00 FF 0F FC [12:34:40]process_action close_receipt done [12:34:40]requested_data is exist [12:34:40]produce_requested_data [12:34:40]requested_item fm.sn is exist - process it [12:34:40]wFMCommunicate request_size=4 [12:34:40]MH_SAM_APDU [12:34:40]CAPDU: 80 11 00 00 [12:34:40]Write to MH i2c: E2 08 00 D0 18 80 11 00 00 00 00 00 00 62 [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 [12:34:40]MH_I2C_Read... [12:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:40]Read from MH i2c: E2 17 00 [12:34:40]MH_I2C_Read... [12:34:40]Read from MH i2c: E2 17 00 D0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [12:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:34:40]wFMCommunicate OK [12:34:40]requested_item fd.num is exist - process it [12:34:40]SAM_PROTO_GetFieldsCounters [12:34:40]wFMCommunicate request_size=4 [12:34:40]MH_SAM_APDU [12:34:40]CAPDU: 80 13 00 00 [12:34:40]Write to MH i2c: E2 08 00 D1 18 80 13 00 00 00 00 00 00 65 [12:34:40]Write i2c OK [12:34:40]MH_I2C_Read... [12:34:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:41]Read from MH i2c: E2 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 62 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 62 00 D1 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [12:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:41]wFMCommunicate OK [12:34:41]SAM_PROTO_GetFieldsCounters done [12:34:41]requested_item shift.num is exist - process it [12:34:41]requested_item shift.opened is exist - process it [12:34:41]req_shift_opened [12:34:41]FM_GetShiftState [12:34:41]SAM_PROTO_GetShiftState [12:34:41]wFMCommunicate request_size=4 [12:34:41]MH_SAM_APDU [12:34:41]CAPDU: 80 13 01 00 [12:34:41]Write to MH i2c: E2 08 00 D2 18 80 13 01 00 00 00 00 00 67 [12:34:41]Write i2c OK [12:34:41]MH_I2C_Read... [12:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:41]Read from MH i2c: E2 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 0E 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 0E 00 D2 18 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B1 [12:34:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:34:41]wFMCommunicate OK [12:34:41]SAM_PROTO_GetShiftState done [12:34:41]FM_GetShiftState done [12:34:41]req_shift_opened done [12:34:41]requested_item shift.open_date is exist - process it [12:34:41]req_shift_open_date [12:34:41]req_shift_open_date done [12:34:41]produce_requested_data done [12:34:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164203,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:34:41]process_action_free close_receipt [12:34:41]json_value_free [12:34:41]json_value_free done [12:34:41]process_json_proto returns [12:34:41]Send response to host [12:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164203,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:34:41]free response buf [12:34:41]execute_script done [12:34:41]execute_script returns [12:34:41]free content buf [12:34:41]Sock 9.Close socket [12:34:41]Sock 9.Thread stoped [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:53]accept exits with 7 [12:34:53]New connection [12:34:53]New thread 3066707300 created [12:34:53]Thread 3066850660 joined [12:34:53]Waiting for new connection... [12:34:53] Sock 7.Parse request [12:34:53]Sock 7.Check first char [12:34:53]Sock 7.First char is OK [12:34:53]request: POST /json_proto HTTP/1.0 [12:34:53]Method: POST [12:34:53]URL: /json_proto [12:34:53]Method is POST - this is cgi request [12:34:53]url: /json_proto [12:34:53]query_string will be loaded in cgi processing [12:34:53]execute_cgi json_proto POST (null) [12:34:53]execute_cgi path=json_proto method=POST [12:34:53]POST find Content-Length [12:34:53]Host: 172.17.56.4:8080 [12:34:53]Content-Length: 682 [12:34:53]Content-Type: application/json [12:34:53] [12:34:53]POST finish read [12:34:53]Found Content-Length = 682 [12:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:53]execute_script... [12:34: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)458286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:53]POST & json_proto [12:34:53]process_json_proto [12:34:53]json parsed OK: [12:34:53]protocol is kg_v1.0 [12:34:53]action value=close_receipt [12:34:53]process_action close_receipt [12:34:53]cmd_close_receipt [12:34:53]MH_GetDate [12:34:53]Write to MH i2c: F0 00 00 D3 18 DA [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: F0 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: F0 09 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: F0 09 00 D3 18 00 EF 22 91 66 C9 DC B2 64 A6 [12:34:53]GetLastDocTimeStamp 1720787678 [12:34:53]current date 1720787695 [12:34:53]FM_GetShiftState [12:34:53]SAM_PROTO_GetShiftState [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 13 01 00 [12:34:53]Write to MH i2c: E2 08 00 D4 18 80 13 01 00 00 00 00 00 69 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0E 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0E 00 D4 18 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B3 [12:34:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:34:53]wFMCommunicate OK [12:34:53]SAM_PROTO_GetShiftState done [12:34:53]FM_GetShiftState done [12:34:53]opened in 1720744654 [12:34:53]opened+sec_in_day 1720831054 [12:34:53]quantity*price = 100016 [12:34:53]sum+1 = 100017 [12:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 125 12.07.2024 12:34 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164204 ФПД: 86800703078411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123455&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164204&fm=86800703078411&tin=02508201610067®Number=0000000000090829&sum=100000 [12:34:55]StoreToDocumentArchive [12:34:55]shift 445 fd 164204 [12:34:55]save to /storage/0445/doc_00164204 [12:34:55]save last doc name /storage/0445/doc_00164204 to /storage/kkm_last_doc_name [12:34:55]save OK [12:34:55]Clear old archive folders... [12:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:55]tlvbuf is B6F3C7F0 [12:34:55]SAM_PROTO_ClearQueue [12:34:55]wFMCommunicate request_size=4 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 09 00 00 [12:34:55]Write to MH i2c: E2 08 00 E1 18 80 09 00 00 00 00 00 00 6B [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 E1 18 00 90 00 6D [12:34:55]RAPDU: 90 00 [12:34:55]wFMCommunicate OK [12:34:55]SAM_PROTO_ClearQueue done [12:34:55]KKMCreateOFDPacket [12:34:55]OFDProtocolAddRootSTLVToBuf [12:34:55]FM_MakeSignedData [12:34:55]FM_MakeSignedData [12:34:55]SAM_PROTO_SignData [12:34:55]wFMCommunicate request_size=4 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 0D 01 02 [12:34:55]Write to MH i2c: E2 08 00 E2 18 80 0D 01 02 00 00 00 00 73 [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 E2 18 00 90 00 6E [12:34:55]RAPDU: 90 00 [12:34:55]wFMCommunicate OK [12:34:55]wFMCommunicate request_size=255 [12:34:55]MH_SAM_APDU [12:34: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 EF 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 81 02 00 35 04 06 00 4E [12:34:55]Write to MH i2c: E2 02 01 E3 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 EF 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 81 02 00 35 04 06 00 4E 00 00 0E [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 E3 18 00 90 00 6F [12:34:55]RAPDU: 90 00 [12:34:55]wFMCommunicate OK [12:34:55]wFMCommunicate request_size=10 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 0D 02 02 05 F1 DD 12 C0 0B [12:34:55]Write to MH i2c: E2 0D 00 E4 18 80 0D 02 02 05 00 F1 DD 12 C0 0B 00 00 2B [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 E4 18 00 90 00 70 [12:34:55]RAPDU: 90 00 [12:34:55]wFMCommunicate OK [12:34:55]wFMCommunicate request_size=4 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 0D 03 02 [12:34:55]Write to MH i2c: E2 08 00 E5 18 80 0D 03 02 00 00 00 00 78 [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 0B 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 0B 00 E5 18 00 BE E1 7B A7 D1 49 58 32 90 00 DE [12:34:55]RAPDU: BE E1 7B A7 D1 49 58 32 90 00 [12:34:55]wFMCommunicate OK [12:34:55]SAM_PROTO_SignData done [12:34:55]FM_MakeSignedData done [12:34:55]CreateOFDProtocolMessage [12:34:55]wFMCommunicate request_size=4 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 11 00 00 [12:34:55]Write to MH i2c: E2 08 00 E6 18 80 11 00 00 00 00 00 00 78 [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 17 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 17 00 E6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CE [12:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:34:55]wFMCommunicate OK [12:34:55]CreateOFDProtocolMessage done [12:34:55]OFDSenderStorePacket 164204 [12:34:55]StoreOFDPacket docnum=164204 [12:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B C9 07 01 54 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 EF 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 81 02 00 35 04 06 00 4E F1 DD 12 C0 0B BE E1 7B A7 D1 49 58 32 [12:34:55]CheckFolder [12:34:55]dirname=/storage/ofd_packets [12:34:55]CheckFolder done [12:34:55]ProducePacketName [12:34:55]name=ofd_packets/00164204 [12:34:55]NVStorageSaveData ofd_packets/00164204 [12:34:55]File name is /storage/ofd_packets/00164204 [12:34:55]Write 301 bytes [12:34:55]NVStorageSaveData done [12:34:55]OFDSenderStorePacket done [12:34:55]KKMCreateOFDPacket done [12:34:55]NVStorageSaveData kkm_last_timestamp [12:34:55]File name is /storage/kkm_last_timestamp [12:34:55]Write 4 bytes [12:34:55]NVStorageSaveData done [12:34:55]ExternCall_PrintAddStr [12:34:55]wPrintStart [12:34:55]Write to MH i2c: 01 00 00 E7 18 FF [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 07 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 07 00 E7 18 00 00 00 00 00 FF 0F 14 [12:34:55]RasterBufferAndPrint [12:34:55]line Счет N : (1)458286 [12:34:55]line ИНН: 02508201610067 [12:34:55]line Контрольно-Кассовый Чек [12:34:55]line ПРОДАЖА [12:34:55]line ТРК (МРК, ГНК) : 22 [12:34:55]line Товар: 2710124130 [12:34:55]line Аи-92-К-5 [12:34:55]line 15.200 * 65.80 [12:34:55]line = 1000.16 [12:34:55]line НДС 12% НСП 1% [12:34:55]line > о реализуемом товаре [12:34:55]line ОКРУГЛЕНИЕ: -0.16 [12:34:55]line ИТОГО: 1000.00 [12:34:55]line Внесено: 1000.00 [12:34:55]line СДАЧА: 0.00 [12:34:55]line НСП 1% : 8.85 [12:34:55]line НДС 12% : 106.21 [12:34:55]line Наличными: 1000.00 [12:34:55]line Безнал.: 0.00 [12:34:55]line Место: АЗС № 72 "Партнер Нефть" [12:34:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:34:55]line СНО: Общий режим [12:34:55]line Чек 125 12.07.2024 12:34 [12:34:55]line Смена: 445 ФФД: 1.0 [12:34:55]line ЗНМ: 0300000160 [12:34:55]line РНМ: 0000000000090829 [12:34:55]line Версия ККМ: 001 [12:34:55]line ФМ: 0000000000874718 [12:34:55]line ФД: 164204 [12:34:55]line ФПД: 86800703078411 [12:34:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123455&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164204&fm=86800703078411&tin=02508201610067®Number=0000000000090829&sum=100000 [12:34:55]written 0, free lines is 4095 [12:34:55]OFD Sender: Processing packet 164204 [packets to send 104, broken 103] [12:34:55]ProducePacketName [12:34:55]name=ofd_packets/00164204 [12:34:55]OFD Sender: To server: pG, [12:34:55]CommunicateWithHost lk.salyk.kg:30040 [12:34:55]ConnectInit lk.salyk.kg [12:34:56]Connected sock=9 [12:34:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B C9 07 01 54 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 EF 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 81 02 00 35 04 06 00 4E F1 DD 12 C0 0B BE E1 7B A7 D1 49 58 32 [12:34:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C8 4A 47 00 23 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 34 37 31 38 10 04 04 00 6C 81 02 00 F4 03 04 00 83 C9 90 66 B6 04 01 00 00 48 C9 2F 0C 29 A3 10 5F [12:34:56]CommunicateWithHost err = 0 [12:34:56]CheckOFDResponse [12:34:56]1017 (14) - 77093643461234 [12:34:56]1041 (16) - 0000000000874718 [12:34:56]1040 (4) - 164204 [12:34:56]1012 (4) - 12.07.2024 06:13 [12:34:56]1206 (1) - 0 [12:34:56]OFD Sender: Remove packet 164204 [12:34:56]ProducePacketName [12:34:56]name=ofd_packets/00164204 [12:34:56]NVStorageDeleteData [12:34:56]Write to MH i2c: 01 00 00 11 19 2A [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: 01 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: 01 07 00 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: 01 07 00 11 19 00 00 00 00 00 F0 0C 2D [12:34:56]RasterBufferAndPrint [12:34:56]line [12:34:56]line [12:34:56]line [12:34:56]line [12:34:56]line [12:34:56]written 0, free lines is 3322 [12:34:56]MH_Cut [12:34:56]Write to MH i2c: D1 01 00 18 19 01 03 [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: D1 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: D1 01 00 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: D1 01 00 18 19 00 02 [12:34:56]Write to MH i2c: 01 00 00 19 19 32 [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]OFD Sender: No OFD packet to send [12:34:57]*** Cut start [12:34:57]*** Partial cut [12:34:57]*** CUTSNS_PIN = 1 [12:34:57]*** CUTSNS_PIN = 0 [12:34:57]*** Brake cut motor [12:34:57]Read from MH i2c: 01 [12:34:57]MH_I2C_Read... [12:34:57]*** Stop cut motor [12:34:57]*** Cut end [12:34:57]Read from MH i2c: 01 07 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: 01 07 00 19 19 00 00 00 00 00 FF 0F 47 [12:34:57]process_action close_receipt done [12:34:57]requested_data is exist [12:34:57]produce_requested_data [12:34:57]requested_item fm.sn is exist - process it [12:34:57]wFMCommunicate request_size=4 [12:34:57]MH_SAM_APDU [12:34:57]CAPDU: 80 11 00 00 [12:34:57]Write to MH i2c: E2 08 00 1A 19 80 11 00 00 00 00 00 00 AD [12:34:57]Write i2c OK [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 [12:34:57]MH_I2C_Read... [12:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:57]Read from MH i2c: E2 17 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 17 00 1A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [12:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:34:57]wFMCommunicate OK [12:34:57]requested_item fd.num is exist - process it [12:34:57]SAM_PROTO_GetFieldsCounters [12:34:57]wFMCommunicate request_size=4 [12:34:57]MH_SAM_APDU [12:34:57]CAPDU: 80 13 00 00 [12:34:57]Write to MH i2c: E2 08 00 1B 19 80 13 00 00 00 00 00 00 B0 [12:34:57]Write i2c OK [12:34:57]MH_I2C_Read... [12:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:57]Read from MH i2c: E2 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 62 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 62 00 1B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [12:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:57]wFMCommunicate OK [12:34:57]SAM_PROTO_GetFieldsCounters done [12:34:57]requested_item shift.num is exist - process it [12:34:57]requested_item shift.opened is exist - process it [12:34:57]req_shift_opened [12:34:57]FM_GetShiftState [12:34:57]SAM_PROTO_GetShiftState [12:34:57]wFMCommunicate request_size=4 [12:34:57]MH_SAM_APDU [12:34:57]CAPDU: 80 13 01 00 [12:34:57]Write to MH i2c: E2 08 00 1C 19 80 13 01 00 00 00 00 00 B2 [12:34:57]Write i2c OK [12:34:57]MH_I2C_Read... [12:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:57]Read from MH i2c: E2 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 0E 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 0E 00 1C 19 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FC [12:34:57]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:34:57]wFMCommunicate OK [12:34:57]SAM_PROTO_GetShiftState done [12:34:57]FM_GetShiftState done [12:34:57]req_shift_opened done [12:34:57]requested_item shift.open_date is exist - process it [12:34:57]req_shift_open_date [12:34:57]req_shift_open_date done [12:34:57]produce_requested_data done [12:34:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164204,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:34:57]process_action_free close_receipt [12:34:57]json_value_free [12:34:57]json_value_free done [12:34:57]process_json_proto returns [12:34:57]Send response to host [12:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164204,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:34:57]free response buf [12:34:57]execute_script done [12:34:57]execute_script returns [12:34:57]free content buf [12:34:57]Sock 7.Close socket [12:34:57]Sock 7.Thread stoped [12:34:58]accept exits with 10 [12:34:58]New connection [12:34:58]New thread 3066850660 created [12:34:58]Thread 3066707300 joined [12:34:58]Waiting for new connection... [12:34:58] Sock 10.Parse request [12:34:58]Sock 10.Check first char [12:34:58]Sock 10.First char is OK [12:34:58]request: POST /json_proto HTTP/1.0 [12:34:58]Method: POST [12:34:58]URL: /json_proto [12:34:58]Method is POST - this is cgi request [12:34:58]url: /json_proto [12:34:58]query_string will be loaded in cgi processing [12:34:58]execute_cgi json_proto POST (null) [12:34:58]execute_cgi path=json_proto method=POST [12:34:58]POST find Content-Length [12:34:58]Host: 172.17.56.4:8080 [12:34:58]Content-Length: 679 [12:34:58]Content-Type: application/json [12:34:58] [12:34:58]POST finish read [12:34:58]Found Content-Length = 679 [12:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:58]execute_script... [12:34: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)458285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:58]POST & json_proto [12:34:58]process_json_proto [12:34:58]json parsed OK: [12:34:58]protocol is kg_v1.0 [12:34:58]action value=close_receipt [12:34:58]process_action close_receipt [12:34:58]cmd_close_receipt [12:34:58]MH_GetDate [12:34:58]Write to MH i2c: F0 00 00 1D 19 25 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: F0 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: F0 09 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: F0 09 00 1D 19 00 F3 22 91 66 C9 DC B2 64 F5 [12:34:58]GetLastDocTimeStamp 1720787695 [12:34:58]current date 1720787699 [12:34:58]FM_GetShiftState [12:34:58]SAM_PROTO_GetShiftState [12:34:58]wFMCommunicate request_size=4 [12:34:58]MH_SAM_APDU [12:34:58]CAPDU: 80 13 01 00 [12:34:58]Write to MH i2c: E2 08 00 1E 19 80 13 01 00 00 00 00 00 B4 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:58]Read from MH i2c: E2 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 0E 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 0E 00 1E 19 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FE [12:34:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:34:58]wFMCommunicate OK [12:34:58]SAM_PROTO_GetShiftState done [12:34:58]FM_GetShiftState done [12:34:58]opened in 1720744654 [12:34:58]opened+sec_in_day 1720831054 [12:34:58]quantity*price = 200025 [12:34:58]sum+1 = 200027 [12:34:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 126 12.07.2024 12:34 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164205 ФПД: 205234544595089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164205&fm=205234544595089&tin=02508201610067®Number=0000000000090829&sum=200000 [12:34:59]StoreToDocumentArchive [12:34:59]shift 445 fd 164205 [12:34:59]save to /storage/0445/doc_00164205 [12:34:59]save last doc name /storage/0445/doc_00164205 to /storage/kkm_last_doc_name [12:34:59]save OK [12:34:59]Clear old archive folders... [12:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:34:59]tlvbuf is 009EFEA0 [12:34:59]SAM_PROTO_ClearQueue [12:34:59]wFMCommunicate request_size=4 [12:34:59]MH_SAM_APDU [12:34:59]CAPDU: 80 09 00 00 [12:34:59]Write to MH i2c: E2 08 00 2B 19 80 09 00 00 00 00 00 00 B6 [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:59]Read from MH i2c: E2 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 2B 19 00 90 00 B8 [12:34:59]RAPDU: 90 00 [12:34:59]wFMCommunicate OK [12:34:59]SAM_PROTO_ClearQueue done [12:34:59]KKMCreateOFDPacket [12:34:59]OFDProtocolAddRootSTLVToBuf [12:34:59]FM_MakeSignedData [12:34:59]FM_MakeSignedData [12:34:59]SAM_PROTO_SignData [12:34:59]wFMCommunicate request_size=4 [12:34:59]MH_SAM_APDU [12:34:59]CAPDU: 80 0D 01 02 [12:34:59]Write to MH i2c: E2 08 00 2C 19 80 0D 01 02 00 00 00 00 BE [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:59]Read from MH i2c: E2 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [12:34:59]RAPDU: 90 00 [12:34:59]wFMCommunicate OK [12:34:59]wFMCommunicate request_size=255 [12:34:59]MH_SAM_APDU [12:34: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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 7E 00 00 00 F4 03 04 00 F3 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 81 02 00 35 04 06 00 BA A8 E4 20 [12:34:59]Write to MH i2c: E2 02 01 2D 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 7E 00 00 00 F4 03 04 00 F3 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 81 02 00 35 04 06 00 BA A8 E4 20 00 00 4F [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [12:35:00]RAPDU: 90 00 [12:35:00]wFMCommunicate OK [12:35:00]wFMCommunicate request_size=7 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 0D 02 02 02 50 91 [12:35:00]Write to MH i2c: E2 0A 00 2E 19 80 0D 02 02 02 00 50 91 00 00 A6 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [12:35:00]RAPDU: 90 00 [12:35:00]wFMCommunicate OK [12:35:00]wFMCommunicate request_size=4 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 0D 03 02 [12:35:00]Write to MH i2c: E2 08 00 2F 19 80 0D 03 02 00 00 00 00 C3 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 0B 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 0B 00 2F 19 00 F6 75 5D 68 5B DC F9 EC 90 00 10 [12:35:00]RAPDU: F6 75 5D 68 5B DC F9 EC 90 00 [12:35:00]wFMCommunicate OK [12:35:00]SAM_PROTO_SignData done [12:35:00]FM_MakeSignedData done [12:35:00]CreateOFDProtocolMessage [12:35:00]wFMCommunicate request_size=4 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 11 00 00 [12:35:00]Write to MH i2c: E2 08 00 30 19 80 11 00 00 00 00 00 00 C3 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 17 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 17 00 30 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 19 [12:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:35:00]wFMCommunicate OK [12:35:00]CreateOFDProtocolMessage done [12:35:00]OFDSenderStorePacket 164205 [12:35:00]StoreOFDPacket docnum=164205 [12:35:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F4 F1 04 01 5F 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 7E 00 00 00 F4 03 04 00 F3 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 81 02 00 35 04 06 00 BA A8 E4 20 50 91 F6 75 5D 68 5B DC F9 EC [12:35:00]CheckFolder [12:35:00]dirname=/storage/ofd_packets [12:35:00]CheckFolder done [12:35:00]ProducePacketName [12:35:00]name=ofd_packets/00164205 [12:35:00]NVStorageSaveData ofd_packets/00164205 [12:35:00]File name is /storage/ofd_packets/00164205 [12:35:00]Write 298 bytes [12:35:00]NVStorageSaveData done [12:35:00]OFDSenderStorePacket done [12:35:00]KKMCreateOFDPacket done [12:35:00]NVStorageSaveData kkm_last_timestamp [12:35:00]File name is /storage/kkm_last_timestamp [12:35:00]Write 4 bytes [12:35:00]NVStorageSaveData done [12:35:00]ExternCall_PrintAddStr [12:35:00]wPrintStart [12:35:00]Write to MH i2c: 01 00 00 31 19 4A [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 31 19 00 00 00 00 00 FF 0F 5F [12:35:00]RasterBufferAndPrint [12:35:00]line Счет N : (1)458285 [12:35:00]line ИНН: 02508201610067 [12:35:00]line Контрольно-Кассовый Чек [12:35:00]line ПРОДАЖА [12:35:00]line ТРК (МРК, ГНК) : 11 [12:35:00]line Товар: 2710194210 [12:35:00]line ДТ-К-5 [12:35:00]line 27.820 * 71.90 [12:35:00]line = 2000.26 [12:35:00]line НДС 12% НСП 1% [12:35:00]line > о реализуемом товаре [12:35:00]line ОКРУГЛЕНИЕ: -0.26 [12:35:00]line ИТОГО: 2000.00 [12:35:00]line Внесено: 2000.00 [12:35:00]line СДАЧА: 0.00 [12:35:00]line НСП 1% : 17.70 [12:35:00]line НДС 12% : 212.42 [12:35:00]line Наличными: 2000.00 [12:35:00]line Безнал.: 0.00 [12:35:00]line Место: АЗС № 72 "Партнер Нефть" [12:35:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:35:00]line СНО: Общий режим [12:35:00]line Чек 126 12.07.2024 12:34 [12:35:00]line Смена: 445 ФФД: 1.0 [12:35:00]line ЗНМ: 0300000160 [12:35:00]line РНМ: 0000000000090829 [12:35:00]line Версия ККМ: 001 [12:35:00]line ФМ: 0000000000874718 [12:35:00]line ФД: 164205 [12:35:00]line ФПД: 205234544595089 [12:35:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164205&fm=205234544595089&tin=02508201610067®Number=0000000000090829&sum=200000 [12:35:00]OFD Sender: Processing packet 164205 [packets to send 104, broken 103] [12:35:00]ProducePacketName [12:35:00]name=ofd_packets/00164205 [12:35:00]OFD Sender: To server: pG, [12:35:00]CommunicateWithHost lk.salyk.kg:30040 [12:35:00]ConnectInit lk.salyk.kg [12:35:00]written 0, free lines is 4095 [12:35:00]Connected sock=9 [12:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F4 F1 04 01 5F 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 7E 00 00 00 F4 03 04 00 F3 22 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 81 02 00 35 04 06 00 BA A8 E4 20 50 91 F6 75 5D 68 5B DC F9 EC [12:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 09 96 47 00 D1 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 81 02 00 F4 03 04 00 88 C9 90 66 B6 04 01 00 00 D3 8E 65 5F D6 3F DF 5E [12:35:00]CommunicateWithHost err = 0 [12:35:00]CheckOFDResponse [12:35:00]1017 (14) - 77093643461234 [12:35:00]1041 (16) - 0000000000874718 [12:35:00]1040 (4) - 164205 [12:35:00]1012 (4) - 12.07.2024 06:13 [12:35:00]1206 (1) - 0 [12:35:00]OFD Sender: Remove packet 164205 [12:35:00]ProducePacketName [12:35:00]name=ofd_packets/00164205 [12:35:00]NVStorageDeleteData [12:35:00]Write to MH i2c: 01 00 00 5B 19 74 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 5B 19 00 00 00 00 00 F6 0C 7D [12:35:00]RasterBufferAndPrint [12:35:00]line [12:35:00]line [12:35:00]line [12:35:00]line [12:35:00]line [12:35:00]written 0, free lines is 3333 [12:35:00]MH_Cut [12:35:00]Write to MH i2c: D1 01 00 62 19 01 4D [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: D1 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: D1 01 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: D1 01 00 62 19 00 4C [12:35:00]Write to MH i2c: 01 00 00 63 19 7C [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:01]OFD Sender: No OFD packet to send [12:35:01]*** Cut start [12:35:01]*** Partial cut [12:35:01]*** CUTSNS_PIN = 1 [12:35:01]*** CUTSNS_PIN = 0 [12:35:01]*** Brake cut motor [12:35:02]Read from MH i2c: 01 [12:35:02]MH_I2C_Read... [12:35:02]*** Stop cut motor [12:35:02]*** Cut end [12:35:02]Read from MH i2c: 01 07 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: 01 07 00 63 19 00 00 00 00 00 FF 0F 91 [12:35:02]process_action close_receipt done [12:35:02]requested_data is exist [12:35:02]produce_requested_data [12:35:02]requested_item fm.sn is exist - process it [12:35:02]wFMCommunicate request_size=4 [12:35:02]MH_SAM_APDU [12:35:02]CAPDU: 80 11 00 00 [12:35:02]Write to MH i2c: E2 08 00 64 19 80 11 00 00 00 00 00 00 F7 [12:35:02]Write i2c OK [12:35:02]MH_I2C_Read... [12:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:02]Read from MH i2c: E2 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 17 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 17 00 64 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [12:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:35:02]wFMCommunicate OK [12:35:02]requested_item fd.num is exist - process it [12:35:02]SAM_PROTO_GetFieldsCounters [12:35:02]wFMCommunicate request_size=4 [12:35:02]MH_SAM_APDU [12:35:02]CAPDU: 80 13 00 00 [12:35:02]Write to MH i2c: E2 08 00 65 19 80 13 00 00 00 00 00 00 FA [12:35:02]Write i2c OK [12:35:02]MH_I2C_Read... [12:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:02]Read from MH i2c: E2 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 62 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 62 00 65 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [12:35: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:02]wFMCommunicate OK [12:35:02]SAM_PROTO_GetFieldsCounters done [12:35:02]requested_item shift.num is exist - process it [12:35:02]requested_item shift.opened is exist - process it [12:35:02]req_shift_opened [12:35:02]FM_GetShiftState [12:35:02]SAM_PROTO_GetShiftState [12:35:02]wFMCommunicate request_size=4 [12:35:02]MH_SAM_APDU [12:35:02]CAPDU: 80 13 01 00 [12:35:02]Write to MH i2c: E2 08 00 66 19 80 13 01 00 00 00 00 00 FC [12:35:02]Write i2c OK [12:35:02]MH_I2C_Read... [12:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:02]Read from MH i2c: E2 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 0E 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 0E 00 66 19 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 46 [12:35:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:35:02]wFMCommunicate OK [12:35:02]SAM_PROTO_GetShiftState done [12:35:02]FM_GetShiftState done [12:35:02]req_shift_opened done [12:35:02]requested_item shift.open_date is exist - process it [12:35:02]req_shift_open_date [12:35:02]req_shift_open_date done [12:35:02]produce_requested_data done [12:35:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164205,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:35:02]process_action_free close_receipt [12:35:02]json_value_free [12:35:02]json_value_free done [12:35:02]process_json_proto returns [12:35:02]Send response to host [12:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164205,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:35:02]free response buf [12:35:02]execute_script done [12:35:02]execute_script returns [12:35:02]free content buf [12:35:02]Sock 10.Close socket [12:35:02]Sock 10.Thread stoped [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:43]accept exits with 7 [12:38:43]New connection [12:38:43]New thread 3066707300 created [12:38:43]Thread 3066850660 joined [12:38:43]Waiting for new connection... [12:38:43] Sock 7.Parse request [12:38:43]Sock 7.Check first char [12:38:43]Sock 7.First char is OK [12:38:43]request: POST /json_proto HTTP/1.0 [12:38:43]Method: POST [12:38:43]URL: /json_proto [12:38:43]Method is POST - this is cgi request [12:38:43]url: /json_proto [12:38:43]query_string will be loaded in cgi processing [12:38:43]execute_cgi json_proto POST (null) [12:38:43]execute_cgi path=json_proto method=POST [12:38:43]POST find Content-Length [12:38:43]Host: 172.17.56.4:8080 [12:38:43]Content-Length: 677 [12:38:43]Content-Type: application/json [12:38:43] [12:38:43]POST finish read [12:38:43]Found Content-Length = 677 [12:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:43]execute_script... [12:38: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)458288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:43]POST & json_proto [12:38:43]process_json_proto [12:38:43]json parsed OK: [12:38:43]protocol is kg_v1.0 [12:38:43]action value=close_receipt [12:38:43]process_action close_receipt [12:38:43]cmd_close_receipt [12:38:43]MH_GetDate [12:38:43]Write to MH i2c: F0 00 00 67 19 6F [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: F0 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: F0 09 00 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: F0 09 00 67 19 00 D4 23 91 66 C9 DC B2 64 21 [12:38:43]GetLastDocTimeStamp 1720787699 [12:38:43]current date 1720787924 [12:38:43]FM_GetShiftState [12:38:43]SAM_PROTO_GetShiftState [12:38:43]wFMCommunicate request_size=4 [12:38:43]MH_SAM_APDU [12:38:43]CAPDU: 80 13 01 00 [12:38:43]Write to MH i2c: E2 08 00 68 19 80 13 01 00 00 00 00 00 FE [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:43]Read from MH i2c: E2 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: E2 0E 00 [12:38:43]MH_I2C_Read... [12:38:43]Read from MH i2c: E2 0E 00 68 19 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 48 [12:38:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:38:43]wFMCommunicate OK [12:38:43]SAM_PROTO_GetShiftState done [12:38:43]FM_GetShiftState done [12:38:43]opened in 1720744654 [12:38:43]opened+sec_in_day 1720831054 [12:38:43]quantity*price = 33031 [12:38:43]sum+1 = 33033 [12:38:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 127 12.07.2024 12:38 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164206 ФПД: 104019211760668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164206&fm=104019211760668&tin=02508201610067®Number=0000000000090829&sum=33000 [12:38:44]StoreToDocumentArchive [12:38:44]shift 445 fd 164206 [12:38:44]save to /storage/0445/doc_00164206 [12:38:44]save last doc name /storage/0445/doc_00164206 to /storage/kkm_last_doc_name [12:38:44]save OK [12:38:44]Clear old archive folders... [12:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:44]tlvbuf is 009F2370 [12:38:44]SAM_PROTO_ClearQueue [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 09 00 00 [12:38:44]Write to MH i2c: E2 08 00 75 19 80 09 00 00 00 00 00 00 00 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 75 19 00 90 00 02 [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]SAM_PROTO_ClearQueue done [12:38:44]KKMCreateOFDPacket [12:38:44]OFDProtocolAddRootSTLVToBuf [12:38:44]FM_MakeSignedData [12:38:44]FM_MakeSignedData [12:38:44]SAM_PROTO_SignData [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 0D 01 02 [12:38:44]Write to MH i2c: E2 08 00 76 19 80 0D 01 02 00 00 00 00 08 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 76 19 00 90 00 03 [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]wFMCommunicate request_size=255 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 D4 23 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 81 02 00 35 04 06 00 5E [12:38:44]Write to MH i2c: E2 02 01 77 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 D4 23 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 81 02 00 35 04 06 00 5E 00 00 4D [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 77 19 00 90 00 04 [12:38:45]RAPDU: 90 00 [12:38:45]wFMCommunicate OK [12:38:45]wFMCommunicate request_size=10 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 0D 02 02 05 9A DC 2A B4 1C [12:38:45]Write to MH i2c: E2 0D 00 78 19 80 0D 02 02 05 00 9A DC 2A B4 1C 00 00 85 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 03 00 78 19 00 90 00 05 [12:38:45]RAPDU: 90 00 [12:38:45]wFMCommunicate OK [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 0D 03 02 [12:38:45]Write to MH i2c: E2 08 00 79 19 80 0D 03 02 00 00 00 00 0D [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0B 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 0B 00 79 19 00 D9 4F 63 60 74 B7 73 35 90 00 CC [12:38:45]RAPDU: D9 4F 63 60 74 B7 73 35 90 00 [12:38:45]wFMCommunicate OK [12:38:45]SAM_PROTO_SignData done [12:38:45]FM_MakeSignedData done [12:38:45]CreateOFDProtocolMessage [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 11 00 00 [12:38:45]Write to MH i2c: E2 08 00 7A 19 80 11 00 00 00 00 00 00 0D [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:45]Read from MH i2c: E2 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 17 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: E2 17 00 7A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 63 [12:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:38:45]wFMCommunicate OK [12:38:45]CreateOFDProtocolMessage done [12:38:45]OFDSenderStorePacket 164206 [12:38:45]StoreOFDPacket docnum=164206 [12:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 13 07 01 6A D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 D4 23 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 81 02 00 35 04 06 00 5E 9A DC 2A B4 1C D9 4F 63 60 74 B7 73 35 [12:38:45]CheckFolder [12:38:45]dirname=/storage/ofd_packets [12:38:45]CheckFolder done [12:38:45]ProducePacketName [12:38:45]name=ofd_packets/00164206 [12:38:45]NVStorageSaveData ofd_packets/00164206 [12:38:45]File name is /storage/ofd_packets/00164206 [12:38:45]Write 301 bytes [12:38:45]NVStorageSaveData done [12:38:45]OFDSenderStorePacket done [12:38:45]KKMCreateOFDPacket done [12:38:45]NVStorageSaveData kkm_last_timestamp [12:38:45]File name is /storage/kkm_last_timestamp [12:38:45]Write 4 bytes [12:38:45]NVStorageSaveData done [12:38:45]ExternCall_PrintAddStr [12:38:45]wPrintStart [12:38:45]Write to MH i2c: 01 00 00 7B 19 94 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 7B 19 00 00 00 00 00 FF 0F A9 [12:38:45]RasterBufferAndPrint [12:38:45]line Счет N : (1)458288 [12:38:45]line ИНН: 02508201610067 [12:38:45]line Контрольно-Кассовый Чек [12:38:45]line ПРОДАЖА [12:38:45]line ТРК (МРК, ГНК) : 12 [12:38:45]line Товар: 2710124130 [12:38:45]line Аи-92-К-5 [12:38:45]line 5.020 * 65.80 [12:38:45]line = 330.32 [12:38:45]line НДС 12% НСП 1% [12:38:45]line > о реализуемом товаре [12:38:45]line ОКРУГЛЕНИЕ: -0.32 [12:38:45]line ИТОГО: 330.00 [12:38:45]line Внесено: 330.00 [12:38:45]line СДАЧА: 0.00 [12:38:45]line НСП 1% : 2.92 [12:38:45]line НДС 12% : 35.08 [12:38:45]line Наличными: 330.00 [12:38:45]line Безнал.: 0.00 [12:38:45]line Место: АЗС № 72 "Партнер Нефть" [12:38:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:38:45]line СНО: Общий режим [12:38:45]line Чек 127 12.07.2024 12:38 [12:38:45]line Смена: 445 ФФД: 1.0 [12:38:45]line ЗНМ: 0300000160 [12:38:45]line РНМ: 0000000000090829 [12:38:45]line Версия ККМ: 001 [12:38:45]line ФМ: 0000000000874718 [12:38:45]line ФД: 164206 [12:38:45]line ФПД: 104019211760668 [12:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T123844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164206&fm=104019211760668&tin=02508201610067®Number=0000000000090829&sum=33000 [12:38:45]OFD Sender: Processing packet 164206 [packets to send 104, broken 103] [12:38:45]ProducePacketName [12:38:45]name=ofd_packets/00164206 [12:38:45]OFD Sender: To server: pG, [12:38:45]CommunicateWithHost lk.salyk.kg:30040 [12:38:45]ConnectInit lk.salyk.kg [12:38:45]written 0, free lines is 4095 [12:38:45]Connected sock=10 [12:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 13 07 01 6A D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 D4 23 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 81 02 00 35 04 06 00 5E 9A DC 2A B4 1C D9 4F 63 60 74 B7 73 35 [12:38:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F7 83 47 00 B9 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 34 37 31 38 10 04 04 00 6E 81 02 00 F4 03 04 00 69 CA 90 66 B6 04 01 00 00 C5 61 6B D6 54 23 6F 6D [12:38:45]CommunicateWithHost err = 0 [12:38:45]CheckOFDResponse [12:38:45]1017 (14) - 77093643461234 [12:38:45]1041 (16) - 0000000000874718 [12:38:45]1040 (4) - 164206 [12:38:45]1012 (4) - 12.07.2024 06:17 [12:38:45]1206 (1) - 0 [12:38:45]OFD Sender: Remove packet 164206 [12:38:45]ProducePacketName [12:38:45]name=ofd_packets/00164206 [12:38:45]NVStorageDeleteData [12:38:46]Write to MH i2c: 01 00 00 A5 19 BE [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: 01 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: 01 07 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: 01 07 00 A5 19 00 00 00 00 00 F6 0C C7 [12:38:46]RasterBufferAndPrint [12:38:46]line [12:38:46]line [12:38:46]line [12:38:46]line [12:38:46]line [12:38:46]written 0, free lines is 3324 [12:38:46]MH_Cut [12:38:46]Write to MH i2c: D1 01 00 AC 19 01 97 [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: D1 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: D1 01 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: D1 01 00 AC 19 00 96 [12:38:46]Write to MH i2c: 01 00 00 AD 19 C6 [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]OFD Sender: No OFD packet to send [12:38:46]*** Cut start [12:38:46]*** Partial cut [12:38:46]*** CUTSNS_PIN = 1 [12:38:46]*** CUTSNS_PIN = 0 [12:38:47]*** Brake cut motor [12:38:47]Read from MH i2c: 01 [12:38:47]MH_I2C_Read... [12:38:47]*** Stop cut motor [12:38:47]*** Cut end [12:38:47]Read from MH i2c: 01 07 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: 01 07 00 AD 19 00 00 00 00 00 FF 0F DB [12:38:47]process_action close_receipt done [12:38:47]requested_data is exist [12:38:47]produce_requested_data [12:38:47]requested_item fm.sn is exist - process it [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 11 00 00 [12:38:47]Write to MH i2c: E2 08 00 AE 19 80 11 00 00 00 00 00 00 41 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 17 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 17 00 AE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [12:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:38:47]wFMCommunicate OK [12:38:47]requested_item fd.num is exist - process it [12:38:47]SAM_PROTO_GetFieldsCounters [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 13 00 00 [12:38:47]Write to MH i2c: E2 08 00 AF 19 80 13 00 00 00 00 00 00 44 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 62 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 62 00 AF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [12:38:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:47]wFMCommunicate OK [12:38:47]SAM_PROTO_GetFieldsCounters done [12:38:47]requested_item shift.num is exist - process it [12:38:47]requested_item shift.opened is exist - process it [12:38:47]req_shift_opened [12:38:47]FM_GetShiftState [12:38:47]SAM_PROTO_GetShiftState [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 13 01 00 [12:38:47]Write to MH i2c: E2 08 00 B0 19 80 13 01 00 00 00 00 00 46 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 0E 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 0E 00 B0 19 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 90 [12:38:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:38:47]wFMCommunicate OK [12:38:47]SAM_PROTO_GetShiftState done [12:38:47]FM_GetShiftState done [12:38:47]req_shift_opened done [12:38:47]requested_item shift.open_date is exist - process it [12:38:47]req_shift_open_date [12:38:47]req_shift_open_date done [12:38:47]produce_requested_data done [12:38:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164206,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:38:47]process_action_free close_receipt [12:38:47]json_value_free [12:38:47]json_value_free done [12:38:47]process_json_proto returns [12:38:47]Send response to host [12:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164206,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:38:47]free response buf [12:38:47]execute_script done [12:38:47]execute_script returns [12:38:47]free content buf [12:38:47]Sock 7.Close socket [12:38:47]Sock 7.Thread stoped [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39: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:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:01]accept exits with 9 [12:45:01]New connection [12:45:01]New thread 3066850660 created [12:45:01]Thread 3066707300 joined [12:45:01]Waiting for new connection... [12:45:01] Sock 9.Parse request [12:45:01]Sock 9.Check first char [12:45:01]Sock 9.First char is OK [12:45:01]request: POST /json_proto HTTP/1.0 [12:45:01]Method: POST [12:45:01]URL: /json_proto [12:45:01]Method is POST - this is cgi request [12:45:01]url: /json_proto [12:45:01]query_string will be loaded in cgi processing [12:45:01]execute_cgi json_proto POST (null) [12:45:01]execute_cgi path=json_proto method=POST [12:45:01]POST find Content-Length [12:45:01]Host: 172.17.56.4:8080 [12:45:01]Content-Length: 678 [12:45:01]Content-Type: application/json [12:45:01] [12:45:01]POST finish read [12:45:01]Found Content-Length = 678 [12:45:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:01]execute_script... [12:45:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:02]POST & json_proto [12:45:02]process_json_proto [12:45:02]json parsed OK: [12:45:02]protocol is kg_v1.0 [12:45:02]action value=close_receipt [12:45:02]process_action close_receipt [12:45:02]cmd_close_receipt [12:45:02]MH_GetDate [12:45:02]Write to MH i2c: F0 00 00 B1 19 B9 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: F0 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: F0 09 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: F0 09 00 B1 19 00 4F 25 91 66 C9 DC B2 64 E8 [12:45:02]GetLastDocTimeStamp 1720787924 [12:45:02]current date 1720788303 [12:45:02]FM_GetShiftState [12:45:02]SAM_PROTO_GetShiftState [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 13 01 00 [12:45:02]Write to MH i2c: E2 08 00 B2 19 80 13 01 00 00 00 00 00 48 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 B2 19 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 92 [12:45:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_GetShiftState done [12:45:02]FM_GetShiftState done [12:45:02]opened in 1720744654 [12:45:02]opened+sec_in_day 1720831054 [12:45:02]quantity*price = 66063 [12:45:02]sum+1 = 66064 [12:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 128 12.07.2024 12:45 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164207 ФПД: 115950452188740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164207&fm=115950452188740&tin=02508201610067®Number=0000000000090829&sum=66000 [12:45:03]StoreToDocumentArchive [12:45:03]shift 445 fd 164207 [12:45:03]save to /storage/0445/doc_00164207 [12:45:03]save last doc name /storage/0445/doc_00164207 to /storage/kkm_last_doc_name [12:45:03]save OK [12:45:03]Clear old archive folders... [12:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:03]tlvbuf is 00A19540 [12:45:03]SAM_PROTO_ClearQueue [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 09 00 00 [12:45:03]Write to MH i2c: E2 08 00 BF 19 80 09 00 00 00 00 00 00 4A [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 BF 19 00 90 00 4C [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_ClearQueue done [12:45:03]KKMCreateOFDPacket [12:45:03]OFDProtocolAddRootSTLVToBuf [12:45:03]FM_MakeSignedData [12:45:03]FM_MakeSignedData [12:45:03]SAM_PROTO_SignData [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 01 02 [12:45:03]Write to MH i2c: E2 08 00 C0 19 80 0D 01 02 00 00 00 00 52 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 C0 19 00 90 00 4D [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=255 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4F 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 81 02 00 35 04 06 00 69 [12:45:03]Write to MH i2c: E2 02 01 C1 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4F 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 81 02 00 35 04 06 00 69 00 00 15 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 C1 19 00 90 00 4E [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=10 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 02 02 05 74 D1 83 A6 44 [12:45:03]Write to MH i2c: E2 0D 00 C2 19 80 0D 02 02 05 00 74 D1 83 A6 44 00 00 11 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 C2 19 00 90 00 4F [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 03 02 [12:45:03]Write to MH i2c: E2 08 00 C3 19 80 0D 03 02 00 00 00 00 57 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0B 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0B 00 C3 19 00 D0 09 34 2C 85 72 AF 49 90 00 80 [12:45:03]RAPDU: D0 09 34 2C 85 72 AF 49 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_SignData done [12:45:03]FM_MakeSignedData done [12:45:03]CreateOFDProtocolMessage [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 11 00 00 [12:45:03]Write to MH i2c: E2 08 00 C4 19 80 11 00 00 00 00 00 00 57 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 C4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [12:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:45:03]wFMCommunicate OK [12:45:03]CreateOFDProtocolMessage done [12:45:03]OFDSenderStorePacket 164207 [12:45:03]StoreOFDPacket docnum=164207 [12:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 04 E9 07 01 E1 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4F 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 81 02 00 35 04 06 00 69 74 D1 83 A6 44 D0 09 34 2C 85 72 AF 49 [12:45:03]CheckFolder [12:45:03]dirname=/storage/ofd_packets [12:45:03]CheckFolder done [12:45:03]ProducePacketName [12:45:03]name=ofd_packets/00164207 [12:45:03]NVStorageSaveData ofd_packets/00164207 [12:45:03]File name is /storage/ofd_packets/00164207 [12:45:03]Write 301 bytes [12:45:03]NVStorageSaveData done [12:45:03]OFDSenderStorePacket done [12:45:03]KKMCreateOFDPacket done [12:45:03]NVStorageSaveData kkm_last_timestamp [12:45:03]File name is /storage/kkm_last_timestamp [12:45:03]Write 4 bytes [12:45:03]NVStorageSaveData done [12:45:03]OFD Sender: Processing packet 164207 [packets to send 104, broken 103] [12:45:03]ProducePacketName [12:45:03]name=ofd_packets/00164207 [12:45:03]OFD Sender: To server: pG, [12:45:03]CommunicateWithHost lk.salyk.kg:30040 [12:45:03]ConnectInit lk.salyk.kg [12:45:03]ExternCall_PrintAddStr [12:45:03]wPrintStart [12:45:03]Write to MH i2c: 01 00 00 C5 19 DE [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 C5 19 00 00 00 00 00 FF 0F F3 [12:45:03]RasterBufferAndPrint [12:45:03]line Счет N : (1)458289 [12:45:03]line ИНН: 02508201610067 [12:45:03]line Контрольно-Кассовый Чек [12:45:03]line ПРОДАЖА [12:45:03]line ТРК (МРК, ГНК) : 22 [12:45:03]line Товар: 2710124130 [12:45:03]line Аи-92-К-5 [12:45:03]line 10.040 * 65.80 [12:45:03]line = 660.63 [12:45:03]line НДС 12% НСП 1% [12:45:03]line > о реализуемом товаре [12:45:03]line ОКРУГЛЕНИЕ: -0.63 [12:45:03]line ИТОГО: 660.00 [12:45:03]line Внесено: 660.00 [12:45:03]line СДАЧА: 0.00 [12:45:03]line НСП 1% : 5.85 [12:45:03]line НДС 12% : 70.15 [12:45:03]line Наличными: 660.00 [12:45:03]line Безнал.: 0.00 [12:45:03]line Место: АЗС № 72 "Партнер Нефть" [12:45:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:45:03]line СНО: Общий режим [12:45:03]line Чек 128 12.07.2024 12:45 [12:45:03]line Смена: 445 ФФД: 1.0 [12:45:03]line ЗНМ: 0300000160 [12:45:03]line РНМ: 0000000000090829 [12:45:03]line Версия ККМ: 001 [12:45:03]line ФМ: 0000000000874718 [12:45:03]line ФД: 164207 [12:45:03]line ФПД: 115950452188740 [12:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164207&fm=115950452188740&tin=02508201610067®Number=0000000000090829&sum=66000 [12:45:04]Connected sock=11 [12:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 04 E9 07 01 E1 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4F 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 81 02 00 35 04 06 00 69 74 D1 83 A6 44 D0 09 34 2C 85 72 AF 49 [12:45:04]written 0, free lines is 4095 [12:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BA EA 47 00 A3 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 34 37 31 38 10 04 04 00 6F 81 02 00 F4 03 04 00 E3 CB 90 66 B6 04 01 00 00 F4 07 1B D5 3F 5C B7 7E [12:45:04]CommunicateWithHost err = 0 [12:45:04]CheckOFDResponse [12:45:04]1017 (14) - 77093643461234 [12:45:04]1041 (16) - 0000000000874718 [12:45:04]1040 (4) - 164207 [12:45:04]1012 (4) - 12.07.2024 06:23 [12:45:04]1206 (1) - 0 [12:45:04]OFD Sender: Remove packet 164207 [12:45:04]ProducePacketName [12:45:04]name=ofd_packets/00164207 [12:45:04]NVStorageDeleteData [12:45:04]Write to MH i2c: 01 00 00 EF 19 08 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 07 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: 01 07 00 EF 19 00 00 00 00 00 FE 0C 19 [12:45:04]RasterBufferAndPrint [12:45:04]line [12:45:04]line [12:45:04]line [12:45:04]line [12:45:04]line [12:45:04]written 0, free lines is 3332 [12:45:04]MH_Cut [12:45:04]Write to MH i2c: D1 01 00 F6 19 01 E1 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: D1 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: D1 01 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: D1 01 00 F6 19 00 E0 [12:45:04]Write to MH i2c: 01 00 00 F7 19 10 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]OFD Sender: No OFD packet to send [12:45:05]*** Cut start [12:45:05]*** Partial cut [12:45:05]*** CUTSNS_PIN = 1 [12:45:05]*** CUTSNS_PIN = 0 [12:45:05]*** Brake cut motor [12:45:05]Read from MH i2c: 01 [12:45:05]MH_I2C_Read... [12:45:05]*** Stop cut motor [12:45:05]*** Cut end [12:45:05]Read from MH i2c: 01 07 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 F7 19 00 00 00 00 00 FF 0F 25 [12:45:05]process_action close_receipt done [12:45:05]requested_data is exist [12:45:05]produce_requested_data [12:45:05]requested_item fm.sn is exist - process it [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 11 00 00 [12:45:05]Write to MH i2c: E2 08 00 F8 19 80 11 00 00 00 00 00 00 8B [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 F8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [12:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:45:05]wFMCommunicate OK [12:45:05]requested_item fd.num is exist - process it [12:45:05]SAM_PROTO_GetFieldsCounters [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 13 00 00 [12:45:05]Write to MH i2c: E2 08 00 F9 19 80 13 00 00 00 00 00 00 8E [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 62 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 62 00 F9 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:45: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:05]wFMCommunicate OK [12:45:05]SAM_PROTO_GetFieldsCounters done [12:45:05]requested_item shift.num is exist - process it [12:45:05]requested_item shift.opened is exist - process it [12:45:05]req_shift_opened [12:45:05]FM_GetShiftState [12:45:05]SAM_PROTO_GetShiftState [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 13 01 00 [12:45:05]Write to MH i2c: E2 08 00 FA 19 80 13 01 00 00 00 00 00 90 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 0E 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 0E 00 FA 19 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DA [12:45:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:45:05]wFMCommunicate OK [12:45:06]SAM_PROTO_GetShiftState done [12:45:06]FM_GetShiftState done [12:45:06]req_shift_opened done [12:45:06]requested_item shift.open_date is exist - process it [12:45:06]req_shift_open_date [12:45:06]req_shift_open_date done [12:45:06]produce_requested_data done [12:45:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164207,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:45:06]process_action_free close_receipt [12:45:06]json_value_free [12:45:06]json_value_free done [12:45:06]process_json_proto returns [12:45:06]Send response to host [12:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164207,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:45:06]free response buf [12:45:06]execute_script done [12:45:06]execute_script returns [12:45:06]free content buf [12:45:06]Sock 9.Close socket [12:45:06]Sock 9.Thread stoped [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:47]accept exits with 7 [12:45:47]New connection [12:45:47]New thread 3066707300 created [12:45:47]Thread 3066850660 joined [12:45:47]Waiting for new connection... [12:45:47] Sock 7.Parse request [12:45:47]Sock 7.Check first char [12:45:47]Sock 7.First char is OK [12:45:47]request: POST /json_proto HTTP/1.0 [12:45:47]Method: POST [12:45:47]URL: /json_proto [12:45:47]Method is POST - this is cgi request [12:45:47]url: /json_proto [12:45:47]query_string will be loaded in cgi processing [12:45:47]execute_cgi json_proto POST (null) [12:45:47]execute_cgi path=json_proto method=POST [12:45:47]POST find Content-Length [12:45:47]Host: 172.17.56.4:8080 [12:45:47]Content-Length: 678 [12:45:47]Content-Type: application/json [12:45:47] [12:45:47]POST finish read [12:45:47]Found Content-Length = 678 [12:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:47]execute_script... [12:45: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)458290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:47]POST & json_proto [12:45:47]process_json_proto [12:45:47]json parsed OK: [12:45:47]protocol is kg_v1.0 [12:45:47]action value=close_receipt [12:45:47]process_action close_receipt [12:45:47]cmd_close_receipt [12:45:47]MH_GetDate [12:45:47]Write to MH i2c: F0 00 00 FB 19 03 [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: F0 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: F0 09 00 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: F0 09 00 FB 19 00 7D 25 91 66 C9 DC B2 64 60 [12:45:47]GetLastDocTimeStamp 1720788303 [12:45:47]current date 1720788349 [12:45:47]FM_GetShiftState [12:45:47]SAM_PROTO_GetShiftState [12:45:47]wFMCommunicate request_size=4 [12:45:47]MH_SAM_APDU [12:45:47]CAPDU: 80 13 01 00 [12:45:47]Write to MH i2c: E2 08 00 FC 19 80 13 01 00 00 00 00 00 92 [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 0E 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 0E 00 FC 19 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DC [12:45:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:45:48]wFMCommunicate OK [12:45:48]SAM_PROTO_GetShiftState done [12:45:48]FM_GetShiftState done [12:45:48]opened in 1720744654 [12:45:48]opened+sec_in_day 1720831054 [12:45:48]quantity*price = 66063 [12:45:48]sum+1 = 66064 [12:45:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 129 12.07.2024 12:45 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164208 ФПД: 250877694391376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124549&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164208&fm=250877694391376&tin=02508201610067®Number=0000000000090829&sum=66000 [12:45:49]StoreToDocumentArchive [12:45:49]shift 445 fd 164208 [12:45:49]save to /storage/0445/doc_00164208 [12:45:49]save last doc name /storage/0445/doc_00164208 to /storage/kkm_last_doc_name [12:45:49]save OK [12:45:49]Clear old archive folders... [12:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:49]tlvbuf is B6E8F810 [12:45:49]SAM_PROTO_ClearQueue [12:45:49]wFMCommunicate request_size=4 [12:45:49]MH_SAM_APDU [12:45:49]CAPDU: 80 09 00 00 [12:45:49]Write to MH i2c: E2 08 00 09 1A 80 09 00 00 00 00 00 00 95 [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:49]Read from MH i2c: E2 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 03 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 03 00 09 1A 00 90 00 97 [12:45:49]RAPDU: 90 00 [12:45:49]wFMCommunicate OK [12:45:49]SAM_PROTO_ClearQueue done [12:45:49]KKMCreateOFDPacket [12:45:49]OFDProtocolAddRootSTLVToBuf [12:45:49]FM_MakeSignedData [12:45:49]FM_MakeSignedData [12:45:49]SAM_PROTO_SignData [12:45:49]wFMCommunicate request_size=4 [12:45:49]MH_SAM_APDU [12:45:49]CAPDU: 80 0D 01 02 [12:45:49]Write to MH i2c: E2 08 00 0A 1A 80 0D 01 02 00 00 00 00 9D [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:49]Read from MH i2c: E2 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 03 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 03 00 0A 1A 00 90 00 98 [12:45:49]RAPDU: 90 00 [12:45:49]wFMCommunicate OK [12:45:49]wFMCommunicate request_size=255 [12:45:49]MH_SAM_APDU [12:45: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 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 7D 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 81 02 00 35 04 06 00 E4 [12:45:49]Write to MH i2c: E2 02 01 0B 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 7D 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 81 02 00 35 04 06 00 E4 00 00 0B [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:49]Read from MH i2c: E2 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 03 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 03 00 0B 1A 00 90 00 99 [12:45:49]RAPDU: 90 00 [12:45:49]wFMCommunicate OK [12:45:49]wFMCommunicate request_size=10 [12:45:49]MH_SAM_APDU [12:45:49]CAPDU: 80 0D 02 02 05 2C 03 DB 34 50 [12:45:49]Write to MH i2c: E2 0D 00 0C 1A 80 0D 02 02 05 00 2C 03 DB 34 50 00 00 38 [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:49]Read from MH i2c: E2 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 03 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 03 00 0C 1A 00 90 00 9A [12:45:49]RAPDU: 90 00 [12:45:49]wFMCommunicate OK [12:45:49]wFMCommunicate request_size=4 [12:45:49]MH_SAM_APDU [12:45:49]CAPDU: 80 0D 03 02 [12:45:49]Write to MH i2c: E2 08 00 0D 1A 80 0D 03 02 00 00 00 00 A2 [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:49]Read from MH i2c: E2 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 0B 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 0B 00 0D 1A 00 EF F3 98 54 7F 14 D4 ED 90 00 C5 [12:45:49]RAPDU: EF F3 98 54 7F 14 D4 ED 90 00 [12:45:49]wFMCommunicate OK [12:45:49]SAM_PROTO_SignData done [12:45:49]FM_MakeSignedData done [12:45:49]CreateOFDProtocolMessage [12:45:49]wFMCommunicate request_size=4 [12:45:49]MH_SAM_APDU [12:45:49]CAPDU: 80 11 00 00 [12:45:49]Write to MH i2c: E2 08 00 0E 1A 80 11 00 00 00 00 00 00 A2 [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:49]Read from MH i2c: E2 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 17 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 17 00 0E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F8 [12:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:45:49]wFMCommunicate OK [12:45:49]CreateOFDProtocolMessage done [12:45:49]OFDSenderStorePacket 164208 [12:45:49]StoreOFDPacket docnum=164208 [12:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 C9 07 01 CD 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 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 7D 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 81 02 00 35 04 06 00 E4 2C 03 DB 34 50 EF F3 98 54 7F 14 D4 ED [12:45:49]CheckFolder [12:45:49]dirname=/storage/ofd_packets [12:45:49]CheckFolder done [12:45:49]ProducePacketName [12:45:49]name=ofd_packets/00164208 [12:45:49]NVStorageSaveData ofd_packets/00164208 [12:45:49]File name is /storage/ofd_packets/00164208 [12:45:49]Write 301 bytes [12:45:49]NVStorageSaveData done [12:45:49]OFDSenderStorePacket done [12:45:49]KKMCreateOFDPacket done [12:45:49]NVStorageSaveData kkm_last_timestamp [12:45:49]File name is /storage/kkm_last_timestamp [12:45:49]Write 4 bytes [12:45:49]NVStorageSaveData done [12:45:49]ExternCall_PrintAddStr [12:45:49]wPrintStart [12:45:49]Write to MH i2c: 01 00 00 0F 1A 29 [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: 01 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: 01 07 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: 01 07 00 0F 1A 00 00 00 00 00 FF 0F 3E [12:45:49]RasterBufferAndPrint [12:45:49]line Счет N : (1)458290 [12:45:49]line ИНН: 02508201610067 [12:45:49]line Контрольно-Кассовый Чек [12:45:49]line ПРОДАЖА [12:45:49]line ТРК (МРК, ГНК) : 12 [12:45:49]line Товар: 2710124130 [12:45:49]line Аи-92-К-5 [12:45:49]line 10.040 * 65.80 [12:45:49]line = 660.63 [12:45:49]line НДС 12% НСП 1% [12:45:49]line > о реализуемом товаре [12:45:49]line ОКРУГЛЕНИЕ: -0.63 [12:45:49]line ИТОГО: 660.00 [12:45:49]line Внесено: 660.00 [12:45:49]line СДАЧА: 0.00 [12:45:49]line НСП 1% : 5.85 [12:45:49]line НДС 12% : 70.15 [12:45:49]line Наличными: 660.00 [12:45:49]line Безнал.: 0.00 [12:45:49]line Место: АЗС № 72 "Партнер Нефть" [12:45:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:45:49]line СНО: Общий режим [12:45:49]line Чек 129 12.07.2024 12:45 [12:45:49]line Смена: 445 ФФД: 1.0 [12:45:49]line ЗНМ: 0300000160 [12:45:49]line РНМ: 0000000000090829 [12:45:49]line Версия ККМ: 001 [12:45:49]line ФМ: 0000000000874718 [12:45:49]line ФД: 164208 [12:45:49]line ФПД: 250877694391376 [12:45:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124549&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164208&fm=250877694391376&tin=02508201610067®Number=0000000000090829&sum=66000 [12:45:50]OFD Sender: Processing packet 164208 [packets to send 104, broken 103] [12:45:50]ProducePacketName [12:45:50]name=ofd_packets/00164208 [12:45:50]OFD Sender: To server: pG, [12:45:50]CommunicateWithHost lk.salyk.kg:30040 [12:45:50]ConnectInit lk.salyk.kg [12:45:50]written 0, free lines is 4095 [12:45:50]Connected sock=10 [12:45:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 C9 07 01 CD 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 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 7D 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 81 02 00 35 04 06 00 E4 2C 03 DB 34 50 EF F3 98 54 7F 14 D4 ED [12:45:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6C 9A 47 00 B8 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 34 37 31 38 10 04 04 00 70 81 02 00 F4 03 04 00 11 CC 90 66 B6 04 01 00 00 4C A4 20 D3 25 53 49 A5 [12:45:50]CommunicateWithHost err = 0 [12:45:50]CheckOFDResponse [12:45:50]1017 (14) - 77093643461234 [12:45:50]1041 (16) - 0000000000874718 [12:45:50]1040 (4) - 164208 [12:45:50]1012 (4) - 12.07.2024 06:24 [12:45:50]1206 (1) - 0 [12:45:50]OFD Sender: Remove packet 164208 [12:45:50]ProducePacketName [12:45:50]name=ofd_packets/00164208 [12:45:50]NVStorageDeleteData [12:45:50]Write to MH i2c: 01 00 00 39 1A 53 [12:45:50]Write i2c OK [12:45:50]MH_I2C_Read... [12:45:50]Read from MH i2c: 01 [12:45:50]MH_I2C_Read... [12:45:50]Read from MH i2c: 01 07 00 [12:45:50]MH_I2C_Read... [12:45:50]Read from MH i2c: 01 07 00 39 1A 00 00 00 00 00 F3 0C 59 [12:45:50]RasterBufferAndPrint [12:45:50]line [12:45:50]line [12:45:50]line [12:45:50]line [12:45:50]line [12:45:50]written 0, free lines is 3321 [12:45:50]MH_Cut [12:45:50]Write to MH i2c: D1 01 00 40 1A 01 2C [12:45:50]Write i2c OK [12:45:50]MH_I2C_Read... [12:45:50]Read from MH i2c: D1 [12:45:50]MH_I2C_Read... [12:45:50]Read from MH i2c: D1 01 00 [12:45:50]MH_I2C_Read... [12:45:50]Read from MH i2c: D1 01 00 40 1A 00 2B [12:45:50]Write to MH i2c: 01 00 00 41 1A 5B [12:45:50]Write i2c OK [12:45:50]MH_I2C_Read... [12:45:50]OFD Sender: No OFD packet to send [12:45:51]*** Cut start [12:45:51]*** Partial cut [12:45:51]*** CUTSNS_PIN = 1 [12:45:51]*** CUTSNS_PIN = 0 [12:45:51]*** Brake cut motor [12:45:51]Read from MH i2c: 01 [12:45:51]MH_I2C_Read... [12:45:51]*** Stop cut motor [12:45:51]*** Cut end [12:45:51]Read from MH i2c: 01 07 00 [12:45:51]MH_I2C_Read... [12:45:51]Read from MH i2c: 01 07 00 41 1A 00 00 00 00 00 FF 0F 70 [12:45:51]process_action close_receipt done [12:45:51]requested_data is exist [12:45:51]produce_requested_data [12:45:51]requested_item fm.sn is exist - process it [12:45:51]wFMCommunicate request_size=4 [12:45:51]MH_SAM_APDU [12:45:51]CAPDU: 80 11 00 00 [12:45:51]Write to MH i2c: E2 08 00 42 1A 80 11 00 00 00 00 00 00 D6 [12:45:51]Write i2c OK [12:45:51]MH_I2C_Read... [12:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:51]Read from MH i2c: E2 [12:45:51]MH_I2C_Read... [12:45:51]Read from MH i2c: E2 17 00 [12:45:51]MH_I2C_Read... [12:45:51]Read from MH i2c: E2 17 00 42 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [12:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:45:51]wFMCommunicate OK [12:45:51]requested_item fd.num is exist - process it [12:45:51]SAM_PROTO_GetFieldsCounters [12:45:51]wFMCommunicate request_size=4 [12:45:51]MH_SAM_APDU [12:45:51]CAPDU: 80 13 00 00 [12:45:51]Write to MH i2c: E2 08 00 43 1A 80 13 00 00 00 00 00 00 D9 [12:45:51]Write i2c OK [12:45:51]MH_I2C_Read... [12:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:51]Read from MH i2c: E2 [12:45:51]MH_I2C_Read... [12:45:51]Read from MH i2c: E2 62 00 [12:45:51]MH_I2C_Read... [12:45:51]Read from MH i2c: E2 62 00 43 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [12:45: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:51]wFMCommunicate OK [12:45:51]SAM_PROTO_GetFieldsCounters done [12:45:51]requested_item shift.num is exist - process it [12:45:51]requested_item shift.opened is exist - process it [12:45:51]req_shift_opened [12:45:51]FM_GetShiftState [12:45:51]SAM_PROTO_GetShiftState [12:45:51]wFMCommunicate request_size=4 [12:45:51]MH_SAM_APDU [12:45:51]CAPDU: 80 13 01 00 [12:45:51]Write to MH i2c: E2 08 00 44 1A 80 13 01 00 00 00 00 00 DB [12:45:51]Write i2c OK [12:45:51]MH_I2C_Read... [12:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:52]Read from MH i2c: E2 [12:45:52]MH_I2C_Read... [12:45:52]Read from MH i2c: E2 0E 00 [12:45:52]MH_I2C_Read... [12:45:52]Read from MH i2c: E2 0E 00 44 1A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 25 [12:45:52]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:45:52]wFMCommunicate OK [12:45:52]SAM_PROTO_GetShiftState done [12:45:52]FM_GetShiftState done [12:45:52]req_shift_opened done [12:45:52]requested_item shift.open_date is exist - process it [12:45:52]req_shift_open_date [12:45:52]req_shift_open_date done [12:45:52]produce_requested_data done [12:45:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164208,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:45:52]process_action_free close_receipt [12:45:52]json_value_free [12:45:52]json_value_free done [12:45:52]process_json_proto returns [12:45:52]Send response to host [12:45:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164208,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:45:52]free response buf [12:45:52]execute_script done [12:45:52]execute_script returns [12:45:52]free content buf [12:45:52]Sock 7.Close socket [12:45:52]Sock 7.Thread stoped [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:02]accept exits with 9 [12:46:02]New connection [12:46:02]New thread 3066850660 created [12:46:02]Thread 3066707300 joined [12:46:02]Waiting for new connection... [12:46:02] Sock 9.Parse request [12:46:02]Sock 9.Check first char [12:46:02]Sock 9.First char is OK [12:46:02]request: POST /json_proto HTTP/1.0 [12:46:02]Method: POST [12:46:02]URL: /json_proto [12:46:02]Method is POST - this is cgi request [12:46:02]url: /json_proto [12:46:02]query_string will be loaded in cgi processing [12:46:02]execute_cgi json_proto POST (null) [12:46:02]execute_cgi path=json_proto method=POST [12:46:02]POST find Content-Length [12:46:02]Host: 172.17.56.4:8080 [12:46:02]Content-Length: 677 [12:46:02]Content-Type: application/json [12:46:02] [12:46:02]POST finish read [12:46:02]Found Content-Length = 677 [12:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:02]execute_script... [12:46: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)458291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:02]POST & json_proto [12:46:02]process_json_proto [12:46:02]json parsed OK: [12:46:02]protocol is kg_v1.0 [12:46:02]action value=close_receipt [12:46:02]process_action close_receipt [12:46:02]cmd_close_receipt [12:46:02]MH_GetDate [12:46:02]Write to MH i2c: F0 00 00 45 1A 4E [12:46:02]Write i2c OK [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: F0 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: F0 09 00 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: F0 09 00 45 1A 00 8B 25 91 66 C9 DC B2 64 B9 [12:46:02]GetLastDocTimeStamp 1720788349 [12:46:02]current date 1720788363 [12:46:02]FM_GetShiftState [12:46:02]SAM_PROTO_GetShiftState [12:46:02]wFMCommunicate request_size=4 [12:46:02]MH_SAM_APDU [12:46:02]CAPDU: 80 13 01 00 [12:46:02]Write to MH i2c: E2 08 00 46 1A 80 13 01 00 00 00 00 00 DD [12:46:02]Write i2c OK [12:46:02]MH_I2C_Read... [12:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:02]Read from MH i2c: E2 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 0E 00 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 0E 00 46 1A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 27 [12:46:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:46:02]wFMCommunicate OK [12:46:02]SAM_PROTO_GetShiftState done [12:46:02]FM_GetShiftState done [12:46:02]opened in 1720744654 [12:46:02]opened+sec_in_day 1720831054 [12:46:02]quantity*price = 50008 [12:46:02]sum+1 = 50009 [12:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 130 12.07.2024 12:46 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164209 ФПД: 56214163587775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124603&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164209&fm=56214163587775&tin=02508201610067®Number=0000000000090829&sum=50000 [12:46:03]StoreToDocumentArchive [12:46:03]shift 445 fd 164209 [12:46:03]save to /storage/0445/doc_00164209 [12:46:03]save last doc name /storage/0445/doc_00164209 to /storage/kkm_last_doc_name [12:46:03]save OK [12:46:03]Clear old archive folders... [12:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:03]tlvbuf is B6EA80E0 [12:46:03]SAM_PROTO_ClearQueue [12:46:03]wFMCommunicate request_size=4 [12:46:03]MH_SAM_APDU [12:46:03]CAPDU: 80 09 00 00 [12:46:03]Write to MH i2c: E2 08 00 53 1A 80 09 00 00 00 00 00 00 DF [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:03]Read from MH i2c: E2 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 03 00 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 03 00 53 1A 00 90 00 E1 [12:46:03]RAPDU: 90 00 [12:46:03]wFMCommunicate OK [12:46:03]SAM_PROTO_ClearQueue done [12:46:03]KKMCreateOFDPacket [12:46:03]OFDProtocolAddRootSTLVToBuf [12:46:03]FM_MakeSignedData [12:46:03]FM_MakeSignedData [12:46:03]SAM_PROTO_SignData [12:46:03]wFMCommunicate request_size=4 [12:46:03]MH_SAM_APDU [12:46:03]CAPDU: 80 0D 01 02 [12:46:03]Write to MH i2c: E2 08 00 54 1A 80 0D 01 02 00 00 00 00 E7 [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:03]Read from MH i2c: E2 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 03 00 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 03 00 54 1A 00 90 00 E2 [12:46:03]RAPDU: 90 00 [12:46:03]wFMCommunicate OK [12:46:03]wFMCommunicate request_size=255 [12:46:03]MH_SAM_APDU [12:46:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 82 00 00 00 F4 03 04 00 8B 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 81 02 00 35 04 06 00 33 [12:46:03]Write to MH i2c: E2 02 01 55 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 82 00 00 00 F4 03 04 00 8B 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 81 02 00 35 04 06 00 33 00 00 6E [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:03]Read from MH i2c: E2 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 03 00 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 03 00 55 1A 00 90 00 E3 [12:46:03]RAPDU: 90 00 [12:46:03]wFMCommunicate OK [12:46:03]wFMCommunicate request_size=10 [12:46:03]MH_SAM_APDU [12:46:03]CAPDU: 80 0D 02 02 05 20 61 40 82 BF [12:46:03]Write to MH i2c: E2 0D 00 56 1A 80 0D 02 02 05 00 20 61 40 82 BF 00 00 F6 [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:03]Read from MH i2c: E2 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 03 00 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 03 00 56 1A 00 90 00 E4 [12:46:03]RAPDU: 90 00 [12:46:03]wFMCommunicate OK [12:46:03]wFMCommunicate request_size=4 [12:46:03]MH_SAM_APDU [12:46:03]CAPDU: 80 0D 03 02 [12:46:03]Write to MH i2c: E2 08 00 57 1A 80 0D 03 02 00 00 00 00 EC [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:03]Read from MH i2c: E2 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 0B 00 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 0B 00 57 1A 00 C2 B1 EA C2 A8 A7 E1 FE 90 00 3A [12:46:03]RAPDU: C2 B1 EA C2 A8 A7 E1 FE 90 00 [12:46:03]wFMCommunicate OK [12:46:03]SAM_PROTO_SignData done [12:46:03]FM_MakeSignedData done [12:46:03]CreateOFDProtocolMessage [12:46:03]wFMCommunicate request_size=4 [12:46:03]MH_SAM_APDU [12:46:03]CAPDU: 80 11 00 00 [12:46:03]Write to MH i2c: E2 08 00 58 1A 80 11 00 00 00 00 00 00 EC [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:03]Read from MH i2c: E2 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 17 00 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: E2 17 00 58 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [12:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:46:03]wFMCommunicate OK [12:46:03]CreateOFDProtocolMessage done [12:46:03]OFDSenderStorePacket 164209 [12:46:03]StoreOFDPacket docnum=164209 [12:46:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 34 B6 07 01 50 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 82 00 00 00 F4 03 04 00 8B 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 81 02 00 35 04 06 00 33 20 61 40 82 BF C2 B1 EA C2 A8 A7 E1 FE [12:46:03]CheckFolder [12:46:03]dirname=/storage/ofd_packets [12:46:03]CheckFolder done [12:46:03]ProducePacketName [12:46:03]name=ofd_packets/00164209 [12:46:03]NVStorageSaveData ofd_packets/00164209 [12:46:03]File name is /storage/ofd_packets/00164209 [12:46:03]Write 301 bytes [12:46:03]NVStorageSaveData done [12:46:03]OFDSenderStorePacket done [12:46:03]KKMCreateOFDPacket done [12:46:03]NVStorageSaveData kkm_last_timestamp [12:46:03]File name is /storage/kkm_last_timestamp [12:46:03]Write 4 bytes [12:46:03]NVStorageSaveData done [12:46:03]ExternCall_PrintAddStr [12:46:03]wPrintStart [12:46:03]Write to MH i2c: 01 00 00 59 1A 73 [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 59 1A 00 00 00 00 00 FF 0F 88 [12:46:03]RasterBufferAndPrint [12:46:03]line Счет N : (1)458291 [12:46:03]line ИНН: 02508201610067 [12:46:03]line Контрольно-Кассовый Чек [12:46:03]line ПРОДАЖА [12:46:03]line ТРК (МРК, ГНК) : 22 [12:46:03]line Товар: 2710124130 [12:46:03]line Аи-92-К-5 [12:46:03]line 7.600 * 65.80 [12:46:03]line = 500.08 [12:46:03]line НДС 12% НСП 1% [12:46:03]line > о реализуемом товаре [12:46:03]line ОКРУГЛЕНИЕ: -0.08 [12:46:03]line ИТОГО: 500.00 [12:46:03]line Внесено: 500.00 [12:46:03]line СДАЧА: 0.00 [12:46:03]line НСП 1% : 4.42 [12:46:03]line НДС 12% : 53.11 [12:46:03]line Наличными: 500.00 [12:46:03]line Безнал.: 0.00 [12:46:03]line Место: АЗС № 72 "Партнер Нефть" [12:46:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:46:03]line СНО: Общий режим [12:46:03]line Чек 130 12.07.2024 12:46 [12:46:03]line Смена: 445 ФФД: 1.0 [12:46:03]line ЗНМ: 0300000160 [12:46:03]line РНМ: 0000000000090829 [12:46:03]line Версия ККМ: 001 [12:46:03]line ФМ: 0000000000874718 [12:46:03]line ФД: 164209 [12:46:03]line ФПД: 56214163587775 [12:46:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124603&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164209&fm=56214163587775&tin=02508201610067®Number=0000000000090829&sum=50000 [12:46:03]written 0, free lines is 4095 [12:46:03]OFD Sender: Processing packet 164209 [packets to send 104, broken 103] [12:46:03]ProducePacketName [12:46:03]name=ofd_packets/00164209 [12:46:03]OFD Sender: To server: pG, [12:46:03]CommunicateWithHost lk.salyk.kg:30040 [12:46:03]ConnectInit lk.salyk.kg [12:46:03]Connected sock=10 [12:46:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 34 B6 07 01 50 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 82 00 00 00 F4 03 04 00 8B 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 81 02 00 35 04 06 00 33 20 61 40 82 BF C2 B1 EA C2 A8 A7 E1 FE [12:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5C 59 47 00 C7 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 34 37 31 38 10 04 04 00 71 81 02 00 F4 03 04 00 1F CC 90 66 B6 04 01 00 00 73 BC 10 C8 CD 0E 69 4D [12:46:04]CommunicateWithHost err = 0 [12:46:04]CheckOFDResponse [12:46:04]1017 (14) - 77093643461234 [12:46:04]1041 (16) - 0000000000874718 [12:46:04]1040 (4) - 164209 [12:46:04]1012 (4) - 12.07.2024 06:24 [12:46:04]1206 (1) - 0 [12:46:04]OFD Sender: Remove packet 164209 [12:46:04]ProducePacketName [12:46:04]name=ofd_packets/00164209 [12:46:04]NVStorageDeleteData [12:46:04]Write to MH i2c: 01 00 00 83 1A 9D [12:46:04]Write i2c OK [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: 01 [12:46:04]MH_I2C_Read... [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 83 1A 00 00 00 00 00 FE 0C AE [12:46:04]RasterBufferAndPrint [12:46:04]line [12:46:04]line [12:46:04]line [12:46:04]line [12:46:04]line [12:46:04]written 0, free lines is 3332 [12:46:04]MH_Cut [12:46:04]Write to MH i2c: D1 01 00 8A 1A 01 76 [12:46:04]Write i2c OK [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: D1 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: D1 01 00 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: D1 01 00 8A 1A 00 75 [12:46:04]Write to MH i2c: 01 00 00 8B 1A A5 [12:46:04]Write i2c OK [12:46:04]MH_I2C_Read... [12:46:04]OFD Sender: No OFD packet to send [12:46:04]*** Cut start [12:46:04]*** Partial cut [12:46:04]*** CUTSNS_PIN = 1 [12:46:04]*** CUTSNS_PIN = 0 [12:46:05]*** Brake cut motor [12:46:05]Read from MH i2c: 01 [12:46:05]MH_I2C_Read... [12:46:05]*** Stop cut motor [12:46:05]*** Cut end [12:46:05]Read from MH i2c: 01 07 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: 01 07 00 8B 1A 00 00 00 00 00 FF 0F BA [12:46:05]process_action close_receipt done [12:46:05]requested_data is exist [12:46:05]produce_requested_data [12:46:05]requested_item fm.sn is exist - process it [12:46:05]wFMCommunicate request_size=4 [12:46:05]MH_SAM_APDU [12:46:05]CAPDU: 80 11 00 00 [12:46:05]Write to MH i2c: E2 08 00 8C 1A 80 11 00 00 00 00 00 00 20 [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 17 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 17 00 8C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [12:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:46:05]wFMCommunicate OK [12:46:05]requested_item fd.num is exist - process it [12:46:05]SAM_PROTO_GetFieldsCounters [12:46:05]wFMCommunicate request_size=4 [12:46:05]MH_SAM_APDU [12:46:05]CAPDU: 80 13 00 00 [12:46:05]Write to MH i2c: E2 08 00 8D 1A 80 13 00 00 00 00 00 00 23 [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 62 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 62 00 8D 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [12:46:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:05]wFMCommunicate OK [12:46:05]SAM_PROTO_GetFieldsCounters done [12:46:05]requested_item shift.num is exist - process it [12:46:05]requested_item shift.opened is exist - process it [12:46:05]req_shift_opened [12:46:05]FM_GetShiftState [12:46:05]SAM_PROTO_GetShiftState [12:46:05]wFMCommunicate request_size=4 [12:46:05]MH_SAM_APDU [12:46:05]CAPDU: 80 13 01 00 [12:46:05]Write to MH i2c: E2 08 00 8E 1A 80 13 01 00 00 00 00 00 25 [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 0E 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 0E 00 8E 1A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6F [12:46:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:46:05]wFMCommunicate OK [12:46:05]SAM_PROTO_GetShiftState done [12:46:05]FM_GetShiftState done [12:46:05]req_shift_opened done [12:46:05]requested_item shift.open_date is exist - process it [12:46:05]req_shift_open_date [12:46:05]req_shift_open_date done [12:46:05]produce_requested_data done [12:46:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164209,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:46:05]process_action_free close_receipt [12:46:05]json_value_free [12:46:05]json_value_free done [12:46:05]process_json_proto returns [12:46:05]Send response to host [12:46:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164209,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:46:05]free response buf [12:46:05]execute_script done [12:46:05]execute_script returns [12:46:05]free content buf [12:46:05]Sock 9.Close socket [12:46:05]Sock 9.Thread stoped [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:41]accept exits with 7 [12:46:41]New connection [12:46:41]New thread 3066707300 created [12:46:41]Thread 3066850660 joined [12:46:41]Waiting for new connection... [12:46:41] Sock 7.Parse request [12:46:41]Sock 7.Check first char [12:46:41]Sock 7.First char is OK [12:46:41]request: POST /json_proto HTTP/1.0 [12:46:41]Method: POST [12:46:41]URL: /json_proto [12:46:41]Method is POST - this is cgi request [12:46:41]url: /json_proto [12:46:41]query_string will be loaded in cgi processing [12:46:41]execute_cgi json_proto POST (null) [12:46:41]execute_cgi path=json_proto method=POST [12:46:41]POST find Content-Length [12:46:41]Host: 172.17.56.4:8080 [12:46:41]Content-Length: 682 [12:46:41]Content-Type: application/json [12:46:41] [12:46:41]POST finish read [12:46:41]Found Content-Length = 682 [12:46:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:41]execute_script... [12:46:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:41]POST & json_proto [12:46:41]process_json_proto [12:46:41]json parsed OK: [12:46:41]protocol is kg_v1.0 [12:46:41]action value=close_receipt [12:46:41]process_action close_receipt [12:46:41]cmd_close_receipt [12:46:41]MH_GetDate [12:46:41]Write to MH i2c: F0 00 00 8F 1A 98 [12:46:41]Write i2c OK [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: F0 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: F0 09 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: F0 09 00 8F 1A 00 B2 25 91 66 C9 DC B2 64 2A [12:46:41]GetLastDocTimeStamp 1720788363 [12:46:41]current date 1720788402 [12:46:41]FM_GetShiftState [12:46:41]SAM_PROTO_GetShiftState [12:46:41]wFMCommunicate request_size=4 [12:46:41]MH_SAM_APDU [12:46:41]CAPDU: 80 13 01 00 [12:46:41]Write to MH i2c: E2 08 00 90 1A 80 13 01 00 00 00 00 00 27 [12:46:41]Write i2c OK [12:46:41]MH_I2C_Read... [12:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 0E 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 0E 00 90 1A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 71 [12:46:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:46:41]wFMCommunicate OK [12:46:41]SAM_PROTO_GetShiftState done [12:46:41]FM_GetShiftState done [12:46:41]opened in 1720744654 [12:46:41]opened+sec_in_day 1720831054 [12:46:41]quantity*price = 100016 [12:46:41]sum+1 = 100017 [12:46:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 131 12.07.2024 12:46 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164210 ФПД: 201770913435374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124642&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164210&fm=201770913435374&tin=02508201610067®Number=0000000000090829&sum=100000 [12:46:42]StoreToDocumentArchive [12:46:42]shift 445 fd 164210 [12:46:42]save to /storage/0445/doc_00164210 [12:46:42]save last doc name /storage/0445/doc_00164210 to /storage/kkm_last_doc_name [12:46:42]save OK [12:46:42]Clear old archive folders... [12:46:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:42]tlvbuf is B6E8F7C0 [12:46:42]SAM_PROTO_ClearQueue [12:46:42]wFMCommunicate request_size=4 [12:46:42]MH_SAM_APDU [12:46:42]CAPDU: 80 09 00 00 [12:46:42]Write to MH i2c: E2 08 00 9D 1A 80 09 00 00 00 00 00 00 29 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:42]Read from MH i2c: E2 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 03 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [12:46:42]RAPDU: 90 00 [12:46:42]wFMCommunicate OK [12:46:42]SAM_PROTO_ClearQueue done [12:46:42]KKMCreateOFDPacket [12:46:42]OFDProtocolAddRootSTLVToBuf [12:46:42]FM_MakeSignedData [12:46:42]FM_MakeSignedData [12:46:42]SAM_PROTO_SignData [12:46:42]wFMCommunicate request_size=4 [12:46:42]MH_SAM_APDU [12:46:42]CAPDU: 80 0D 01 02 [12:46:42]Write to MH i2c: E2 08 00 9E 1A 80 0D 01 02 00 00 00 00 31 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:42]Read from MH i2c: E2 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 03 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [12:46:42]RAPDU: 90 00 [12:46:42]wFMCommunicate OK [12:46:42]wFMCommunicate request_size=255 [12:46:42]MH_SAM_APDU [12:46: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B2 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 81 02 00 35 04 06 00 B7 [12:46:42]Write to MH i2c: E2 02 01 9F 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B2 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 81 02 00 35 04 06 00 B7 00 00 07 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 9F 1A 00 90 00 2D [12:46:43]RAPDU: 90 00 [12:46:43]wFMCommunicate OK [12:46:43]wFMCommunicate request_size=10 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 0D 02 02 05 82 73 9F 0E EE [12:46:43]Write to MH i2c: E2 0D 00 A0 1A 80 0D 02 02 05 00 82 73 9F 0E EE 00 00 CE [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 A0 1A 00 90 00 2E [12:46:43]RAPDU: 90 00 [12:46:43]wFMCommunicate OK [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 0D 03 02 [12:46:43]Write to MH i2c: E2 08 00 A1 1A 80 0D 03 02 00 00 00 00 36 [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 0B 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 0B 00 A1 1A 00 30 B5 1A 8E C2 BA 11 A1 90 00 F2 [12:46:43]RAPDU: 30 B5 1A 8E C2 BA 11 A1 90 00 [12:46:43]wFMCommunicate OK [12:46:43]SAM_PROTO_SignData done [12:46:43]FM_MakeSignedData done [12:46:43]CreateOFDProtocolMessage [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 11 00 00 [12:46:43]Write to MH i2c: E2 08 00 A2 1A 80 11 00 00 00 00 00 00 36 [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 17 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 17 00 A2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [12:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:46:43]wFMCommunicate OK [12:46:43]CreateOFDProtocolMessage done [12:46:43]OFDSenderStorePacket 164210 [12:46:43]StoreOFDPacket docnum=164210 [12:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A 98 07 01 FD 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B2 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 81 02 00 35 04 06 00 B7 82 73 9F 0E EE 30 B5 1A 8E C2 BA 11 A1 [12:46:43]CheckFolder [12:46:43]dirname=/storage/ofd_packets [12:46:43]CheckFolder done [12:46:43]ProducePacketName [12:46:43]name=ofd_packets/00164210 [12:46:43]NVStorageSaveData ofd_packets/00164210 [12:46:43]File name is /storage/ofd_packets/00164210 [12:46:43]Write 301 bytes [12:46:43]NVStorageSaveData done [12:46:43]OFDSenderStorePacket done [12:46:43]KKMCreateOFDPacket done [12:46:43]NVStorageSaveData kkm_last_timestamp [12:46:43]File name is /storage/kkm_last_timestamp [12:46:43]Write 4 bytes [12:46:43]NVStorageSaveData done [12:46:43]ExternCall_PrintAddStr [12:46:43]wPrintStart [12:46:43]Write to MH i2c: 01 00 00 A3 1A BD [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: 01 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: 01 07 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: 01 07 00 A3 1A 00 00 00 00 00 FF 0F D2 [12:46:43]RasterBufferAndPrint [12:46:43]line Счет N : (1)458292 [12:46:43]line ИНН: 02508201610067 [12:46:43]line Контрольно-Кассовый Чек [12:46:43]line ПРОДАЖА [12:46:43]line ТРК (МРК, ГНК) : 12 [12:46:43]line Товар: 2710124130 [12:46:43]line Аи-92-К-5 [12:46:43]line 15.200 * 65.80 [12:46:43]line = 1000.16 [12:46:43]line НДС 12% НСП 1% [12:46:43]line > о реализуемом товаре [12:46:43]line ОКРУГЛЕНИЕ: -0.16 [12:46:43]line ИТОГО: 1000.00 [12:46:43]line Внесено: 1000.00 [12:46:43]line СДАЧА: 0.00 [12:46:43]line НСП 1% : 8.85 [12:46:43]line НДС 12% : 106.21 [12:46:43]line Наличными: 1000.00 [12:46:43]line Безнал.: 0.00 [12:46:43]line Место: АЗС № 72 "Партнер Нефть" [12:46:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:46:43]line СНО: Общий режим [12:46:43]line Чек 131 12.07.2024 12:46 [12:46:43]line Смена: 445 ФФД: 1.0 [12:46:43]line ЗНМ: 0300000160 [12:46:43]line РНМ: 0000000000090829 [12:46:43]line Версия ККМ: 001 [12:46:43]line ФМ: 0000000000874718 [12:46:43]line ФД: 164210 [12:46:43]line ФПД: 201770913435374 [12:46:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124642&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164210&fm=201770913435374&tin=02508201610067®Number=0000000000090829&sum=100000 [12:46:43]written 0, free lines is 4095 [12:46:43]OFD Sender: Processing packet 164210 [packets to send 104, broken 103] [12:46:43]ProducePacketName [12:46:43]name=ofd_packets/00164210 [12:46:43]OFD Sender: To server: pG, [12:46:43]CommunicateWithHost lk.salyk.kg:30040 [12:46:43]ConnectInit lk.salyk.kg [12:46:43]Connected sock=10 [12:46:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A 98 07 01 FD 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B2 25 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 81 02 00 35 04 06 00 B7 82 73 9F 0E EE 30 B5 1A 8E C2 BA 11 A1 [12:46:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8D C3 47 00 DF 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 81 02 00 F4 03 04 00 47 CC 90 66 B6 04 01 00 00 B9 C8 AB 72 2B 70 94 29 [12:46:43]CommunicateWithHost err = 0 [12:46:43]CheckOFDResponse [12:46:43]1017 (14) - 77093643461234 [12:46:43]1041 (16) - 0000000000874718 [12:46:43]1040 (4) - 164210 [12:46:43]1012 (4) - 12.07.2024 06:25 [12:46:43]1206 (1) - 0 [12:46:43]OFD Sender: Remove packet 164210 [12:46:43]ProducePacketName [12:46:43]name=ofd_packets/00164210 [12:46:43]NVStorageDeleteData [12:46:44]Write to MH i2c: 01 00 00 CD 1A E7 [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: 01 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: 01 07 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: 01 07 00 CD 1A 00 00 00 00 00 EF 0C E9 [12:46:44]RasterBufferAndPrint [12:46:44]line [12:46:44]line [12:46:44]line [12:46:44]line [12:46:44]line [12:46:44]written 0, free lines is 3318 [12:46:44]MH_Cut [12:46:44]Write to MH i2c: D1 01 00 D4 1A 01 C0 [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: D1 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: D1 01 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: D1 01 00 D4 1A 00 BF [12:46:44]Write to MH i2c: 01 00 00 D5 1A EF [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]OFD Sender: No OFD packet to send [12:46:44]*** Cut start [12:46:44]*** Partial cut [12:46:44]*** CUTSNS_PIN = 1 [12:46:44]*** CUTSNS_PIN = 0 [12:46:44]*** Brake cut motor [12:46:45]Read from MH i2c: 01 [12:46:45]MH_I2C_Read... [12:46:45]*** Stop cut motor [12:46:45]*** Cut end [12:46:45]Read from MH i2c: 01 07 00 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: 01 07 00 D5 1A 00 00 00 00 00 FF 0F 04 [12:46:45]process_action close_receipt done [12:46:45]requested_data is exist [12:46:45]produce_requested_data [12:46:45]requested_item fm.sn is exist - process it [12:46:45]wFMCommunicate request_size=4 [12:46:45]MH_SAM_APDU [12:46:45]CAPDU: 80 11 00 00 [12:46:45]Write to MH i2c: E2 08 00 D6 1A 80 11 00 00 00 00 00 00 6A [12:46:45]Write i2c OK [12:46:45]MH_I2C_Read... [12:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:45]Read from MH i2c: E2 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 17 00 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 17 00 D6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [12:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:46:45]wFMCommunicate OK [12:46:45]requested_item fd.num is exist - process it [12:46:45]SAM_PROTO_GetFieldsCounters [12:46:45]wFMCommunicate request_size=4 [12:46:45]MH_SAM_APDU [12:46:45]CAPDU: 80 13 00 00 [12:46:45]Write to MH i2c: E2 08 00 D7 1A 80 13 00 00 00 00 00 00 6D [12:46:45]Write i2c OK [12:46:45]MH_I2C_Read... [12:46:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:45]Read from MH i2c: E2 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 62 00 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 62 00 D7 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:46:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:45]wFMCommunicate OK [12:46:45]SAM_PROTO_GetFieldsCounters done [12:46:45]requested_item shift.num is exist - process it [12:46:45]requested_item shift.opened is exist - process it [12:46:45]req_shift_opened [12:46:45]FM_GetShiftState [12:46:45]SAM_PROTO_GetShiftState [12:46:45]wFMCommunicate request_size=4 [12:46:45]MH_SAM_APDU [12:46:45]CAPDU: 80 13 01 00 [12:46:45]Write to MH i2c: E2 08 00 D8 1A 80 13 01 00 00 00 00 00 6F [12:46:45]Write i2c OK [12:46:45]MH_I2C_Read... [12:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:45]Read from MH i2c: E2 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 0E 00 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 0E 00 D8 1A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B9 [12:46:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:46:45]wFMCommunicate OK [12:46:45]SAM_PROTO_GetShiftState done [12:46:45]FM_GetShiftState done [12:46:45]req_shift_opened done [12:46:45]requested_item shift.open_date is exist - process it [12:46:45]req_shift_open_date [12:46:45]req_shift_open_date done [12:46:45]produce_requested_data done [12:46:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164210,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:46:45]process_action_free close_receipt [12:46:45]json_value_free [12:46:45]json_value_free done [12:46:45]process_json_proto returns [12:46:45]Send response to host [12:46:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164210,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:46:45]free response buf [12:46:45]execute_script done [12:46:45]execute_script returns [12:46:45]free content buf [12:46:45]Sock 7.Close socket [12:46:45]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:31]accept exits with 9 [12:49:31]New connection [12:49:31]New thread 3066850660 created [12:49:31]Thread 3066707300 joined [12:49:31]Waiting for new connection... [12:49:31] Sock 9.Parse request [12:49:31]Sock 9.Check first char [12:49:31]Sock 9.First char is OK [12:49:31]request: POST /json_proto HTTP/1.0 [12:49:31]Method: POST [12:49:31]URL: /json_proto [12:49:31]Method is POST - this is cgi request [12:49:31]url: /json_proto [12:49:31]query_string will be loaded in cgi processing [12:49:31]execute_cgi json_proto POST (null) [12:49:31]execute_cgi path=json_proto method=POST [12:49:31]POST find Content-Length [12:49:31]Host: 172.17.56.4:8080 [12:49:31]Content-Length: 677 [12:49:31]Content-Type: application/json [12:49:31] [12:49:31]POST finish read [12:49:31]Found Content-Length = 677 [12:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:31]execute_script... [12: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)458294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:31]POST & json_proto [12:49:31]process_json_proto [12:49:31]json parsed OK: [12:49:31]protocol is kg_v1.0 [12:49:31]action value=close_receipt [12:49:31]process_action close_receipt [12:49:31]cmd_close_receipt [12:49:31]MH_GetDate [12:49:31]Write to MH i2c: F0 00 00 D9 1A E2 [12:49:31]Write i2c OK [12:49:31]MH_I2C_Read... [12:49:31]Read from MH i2c: F0 [12:49:31]MH_I2C_Read... [12:49:31]Read from MH i2c: F0 09 00 [12:49:31]MH_I2C_Read... [12:49:31]Read from MH i2c: F0 09 00 D9 1A 00 5C 26 91 66 C9 DC B2 64 1F [12:49:31]GetLastDocTimeStamp 1720788402 [12:49:31]current date 1720788572 [12:49:31]FM_GetShiftState [12:49:31]SAM_PROTO_GetShiftState [12:49:31]wFMCommunicate request_size=4 [12:49:31]MH_SAM_APDU [12:49:31]CAPDU: 80 13 01 00 [12:49:31]Write to MH i2c: E2 08 00 DA 1A 80 13 01 00 00 00 00 00 71 [12:49:31]Write i2c OK [12:49:31]MH_I2C_Read... [12:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:31]Read from MH i2c: E2 [12:49:31]MH_I2C_Read... [12:49:31]Read from MH i2c: E2 0E 00 [12:49:31]MH_I2C_Read... [12:49:31]Read from MH i2c: E2 0E 00 DA 1A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BB [12:49:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:49:31]wFMCommunicate OK [12:49:31]SAM_PROTO_GetShiftState done [12:49:31]FM_GetShiftState done [12:49:31]opened in 1720744654 [12:49:31]opened+sec_in_day 1720831054 [12:49:31]quantity*price = 50008 [12:49:31]sum+1 = 50009 [12:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 132 12.07.2024 12:49 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164211 ФПД: 7446954509246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164211&fm=7446954509246&tin=02508201610067®Number=0000000000090829&sum=50000 [12:49:32]StoreToDocumentArchive [12:49:32]shift 445 fd 164211 [12:49:32]save to /storage/0445/doc_00164211 [12:49:32]save last doc name /storage/0445/doc_00164211 to /storage/kkm_last_doc_name [12:49:32]save OK [12:49:32]Clear old archive folders... [12:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:32]tlvbuf is 00A42200 [12:49:32]SAM_PROTO_ClearQueue [12:49:32]wFMCommunicate request_size=4 [12:49:32]MH_SAM_APDU [12:49:32]CAPDU: 80 09 00 00 [12:49:32]Write to MH i2c: E2 08 00 E7 1A 80 09 00 00 00 00 00 00 73 [12:49:32]Write i2c OK [12:49:32]MH_I2C_Read... [12:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:32]Read from MH i2c: E2 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 03 00 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [12:49:32]RAPDU: 90 00 [12:49:32]wFMCommunicate OK [12:49:32]SAM_PROTO_ClearQueue done [12:49:32]KKMCreateOFDPacket [12:49:32]OFDProtocolAddRootSTLVToBuf [12:49:32]FM_MakeSignedData [12:49:32]FM_MakeSignedData [12:49:32]SAM_PROTO_SignData [12:49:32]wFMCommunicate request_size=4 [12:49:32]MH_SAM_APDU [12:49:32]CAPDU: 80 0D 01 02 [12:49:32]Write to MH i2c: E2 08 00 E8 1A 80 0D 01 02 00 00 00 00 7B [12:49:32]Write i2c OK [12:49:32]MH_I2C_Read... [12:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:32]Read from MH i2c: E2 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 03 00 [12:49:32]MH_I2C_Read... [12:49:32]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [12:49:32]RAPDU: 90 00 [12:49:32]wFMCommunicate OK [12:49:32]wFMCommunicate request_size=255 [12:49:32]MH_SAM_APDU [12: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 84 00 00 00 F4 03 04 00 5C 26 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 81 02 00 35 04 06 00 06 [12:49:32]Write to MH i2c: E2 02 01 E9 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 84 00 00 00 F4 03 04 00 5C 26 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 81 02 00 35 04 06 00 06 00 00 AB [12:49:32]Write i2c OK [12:49:32]MH_I2C_Read... [12:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:33]Read from MH i2c: E2 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 03 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 03 00 E9 1A 00 90 00 77 [12:49:33]RAPDU: 90 00 [12:49:33]wFMCommunicate OK [12:49:33]wFMCommunicate request_size=10 [12:49:33]MH_SAM_APDU [12:49:33]CAPDU: 80 0D 02 02 05 C5 E1 14 03 BE [12:49:33]Write to MH i2c: E2 0D 00 EA 1A 80 0D 02 02 05 00 C5 E1 14 03 BE 00 00 03 [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:33]Read from MH i2c: E2 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 03 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 03 00 EA 1A 00 90 00 78 [12:49:33]RAPDU: 90 00 [12:49:33]wFMCommunicate OK [12:49:33]wFMCommunicate request_size=4 [12:49:33]MH_SAM_APDU [12:49:33]CAPDU: 80 0D 03 02 [12:49:33]Write to MH i2c: E2 08 00 EB 1A 80 0D 03 02 00 00 00 00 80 [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:33]Read from MH i2c: E2 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 0B 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 0B 00 EB 1A 00 6B 07 5A 85 DF EE 51 E1 90 00 D1 [12:49:33]RAPDU: 6B 07 5A 85 DF EE 51 E1 90 00 [12:49:33]wFMCommunicate OK [12:49:33]SAM_PROTO_SignData done [12:49:33]FM_MakeSignedData done [12:49:33]CreateOFDProtocolMessage [12:49:33]wFMCommunicate request_size=4 [12:49:33]MH_SAM_APDU [12:49:33]CAPDU: 80 11 00 00 [12:49:33]Write to MH i2c: E2 08 00 EC 1A 80 11 00 00 00 00 00 00 80 [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:33]Read from MH i2c: E2 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 17 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: E2 17 00 EC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [12:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:49:33]wFMCommunicate OK [12:49:33]CreateOFDProtocolMessage done [12:49:33]OFDSenderStorePacket 164211 [12:49:33]StoreOFDPacket docnum=164211 [12:49:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5C 9F 07 01 64 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 84 00 00 00 F4 03 04 00 5C 26 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 81 02 00 35 04 06 00 06 C5 E1 14 03 BE 6B 07 5A 85 DF EE 51 E1 [12:49:33]CheckFolder [12:49:33]dirname=/storage/ofd_packets [12:49:33]CheckFolder done [12:49:33]ProducePacketName [12:49:33]name=ofd_packets/00164211 [12:49:33]NVStorageSaveData ofd_packets/00164211 [12:49:33]File name is /storage/ofd_packets/00164211 [12:49:33]Write 301 bytes [12:49:33]NVStorageSaveData done [12:49:33]OFDSenderStorePacket done [12:49:33]KKMCreateOFDPacket done [12:49:33]NVStorageSaveData kkm_last_timestamp [12:49:33]File name is /storage/kkm_last_timestamp [12:49:33]Write 4 bytes [12:49:33]NVStorageSaveData done [12:49:33]ExternCall_PrintAddStr [12:49:33]wPrintStart [12:49:33]Write to MH i2c: 01 00 00 ED 1A 07 [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: 01 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: 01 07 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: 01 07 00 ED 1A 00 00 00 00 00 FF 0F 1C [12:49:33]RasterBufferAndPrint [12:49:33]line Счет N : (1)458294 [12:49:33]line ИНН: 02508201610067 [12:49:33]line Контрольно-Кассовый Чек [12:49:33]line ПРОДАЖА [12:49:33]line ТРК (МРК, ГНК) : 22 [12:49:33]line Товар: 2710124130 [12:49:33]line Аи-92-К-5 [12:49:33]line 7.600 * 65.80 [12:49:33]line = 500.08 [12:49:33]line НДС 12% НСП 1% [12:49:33]line > о реализуемом товаре [12:49:33]line ОКРУГЛЕНИЕ: -0.08 [12:49:33]line ИТОГО: 500.00 [12:49:33]line Внесено: 500.00 [12:49:33]line СДАЧА: 0.00 [12:49:33]line НСП 1% : 4.42 [12:49:33]line НДС 12% : 53.11 [12:49:33]line Наличными: 500.00 [12:49:33]line Безнал.: 0.00 [12:49:33]line Место: АЗС № 72 "Партнер Нефть" [12:49:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:49:33]line СНО: Общий режим [12:49:33]line Чек 132 12.07.2024 12:49 [12:49:33]line Смена: 445 ФФД: 1.0 [12:49:33]line ЗНМ: 0300000160 [12:49:33]line РНМ: 0000000000090829 [12:49:33]line Версия ККМ: 001 [12:49:33]line ФМ: 0000000000874718 [12:49:33]line ФД: 164211 [12:49:33]line ФПД: 7446954509246 [12:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T124932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164211&fm=7446954509246&tin=02508201610067®Number=0000000000090829&sum=50000 [12:49:33]written 0, free lines is 4095 [12:49:33]OFD Sender: Processing packet 164211 [packets to send 104, broken 103] [12:49:33]ProducePacketName [12:49:33]name=ofd_packets/00164211 [12:49:33]OFD Sender: To server: pG, [12:49:33]CommunicateWithHost lk.salyk.kg:30040 [12:49:33]ConnectInit lk.salyk.kg [12:49:33]Connected sock=10 [12: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 34 37 31 38 0F 01 00 00 5C 9F 07 01 64 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 84 00 00 00 F4 03 04 00 5C 26 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 81 02 00 35 04 06 00 06 C5 E1 14 03 BE 6B 07 5A 85 DF EE 51 E1 [12:49:33]Write to MH i2c: 01 00 00 17 1B 32 [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: 01 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: 01 07 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: 01 07 00 17 1B 00 00 00 00 00 FB 0C 40 [12:49:33]RasterBufferAndPrint [12:49:33]line [12:49:33]line [12:49:33]line [12:49:33]line [12:49:33]line [12:49:33]written 0, free lines is 3329 [12:49:33]MH_Cut [12:49:33]Write to MH i2c: D1 01 00 1E 1B 01 0B [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: D1 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: D1 01 00 [12:49:33]MH_I2C_Read... [12:49:33]Read from MH i2c: D1 01 00 1E 1B 00 0A [12:49:33]Write to MH i2c: 01 00 00 1F 1B 3A [12:49:33]Write i2c OK [12:49:33]MH_I2C_Read... [12:49:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0E 7C 47 00 94 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 34 37 31 38 10 04 04 00 73 81 02 00 F4 03 04 00 F1 CC 90 66 B6 04 01 00 00 25 D3 01 A1 ED 0F A9 B9 [12:49:33]CommunicateWithHost err = 0 [12:49:33]CheckOFDResponse [12:49:33]1017 (14) - 77093643461234 [12:49:33]1041 (16) - 0000000000874718 [12:49:33]1040 (4) - 164211 [12:49:33]1012 (4) - 12.07.2024 06:28 [12:49:33]1206 (1) - 0 [12:49:33]OFD Sender: Remove packet 164211 [12:49:33]ProducePacketName [12:49:33]name=ofd_packets/00164211 [12:49:33]NVStorageDeleteData [12:49:34]*** Cut start [12:49:34]*** Partial cut [12:49:34]*** CUTSNS_PIN = 1 [12:49:34]OFD Sender: No OFD packet to send [12:49:34]*** CUTSNS_PIN = 0 [12:49:34]*** Brake cut motor [12:49:35]Read from MH i2c: 01 [12:49:35]MH_I2C_Read... [12:49:35]*** Stop cut motor [12:49:35]*** Cut end [12:49:35]Read from MH i2c: 01 07 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: 01 07 00 1F 1B 00 00 00 00 00 FF 0F 4F [12:49:35]process_action close_receipt done [12:49:35]requested_data is exist [12:49:35]produce_requested_data [12:49:35]requested_item fm.sn is exist - process it [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 11 00 00 [12:49:35]Write to MH i2c: E2 08 00 20 1B 80 11 00 00 00 00 00 00 B5 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 17 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 17 00 20 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [12:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:49:35]wFMCommunicate OK [12:49:35]requested_item fd.num is exist - process it [12:49:35]SAM_PROTO_GetFieldsCounters [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 13 00 00 [12:49:35]Write to MH i2c: E2 08 00 21 1B 80 13 00 00 00 00 00 00 B8 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 62 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 62 00 21 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:35]wFMCommunicate OK [12:49:35]SAM_PROTO_GetFieldsCounters done [12:49:35]requested_item shift.num is exist - process it [12:49:35]requested_item shift.opened is exist - process it [12:49:35]req_shift_opened [12:49:35]FM_GetShiftState [12:49:35]SAM_PROTO_GetShiftState [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 13 01 00 [12:49:35]Write to MH i2c: E2 08 00 22 1B 80 13 01 00 00 00 00 00 BA [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 0E 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 0E 00 22 1B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 04 [12:49:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:49:35]wFMCommunicate OK [12:49:35]SAM_PROTO_GetShiftState done [12:49:35]FM_GetShiftState done [12:49:35]req_shift_opened done [12:49:35]requested_item shift.open_date is exist - process it [12:49:35]req_shift_open_date [12:49:35]req_shift_open_date done [12:49:35]produce_requested_data done [12:49:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164211,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:49:35]process_action_free close_receipt [12:49:35]json_value_free [12:49:35]json_value_free done [12:49:35]process_json_proto returns [12:49:35]Send response to host [12:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164211,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:49:35]free response buf [12:49:35]execute_script done [12:49:35]execute_script returns [12:49:35]free content buf [12:49:35]Sock 9.Close socket [12:49:35]Sock 9.Thread stoped [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:02]accept exits with 7 [12:50:02]New connection [12:50:02]New thread 3066707300 created [12:50:02]Thread 3066850660 joined [12:50:02]Waiting for new connection... [12:50:02] Sock 7.Parse request [12:50:02]Sock 7.Check first char [12:50:02]Sock 7.First char is OK [12:50:02]request: POST /json_proto HTTP/1.0 [12:50:02]Method: POST [12:50:02]URL: /json_proto [12:50:02]Method is POST - this is cgi request [12:50:02]url: /json_proto [12:50:02]query_string will be loaded in cgi processing [12:50:02]execute_cgi json_proto POST (null) [12:50:02]execute_cgi path=json_proto method=POST [12:50:02]POST find Content-Length [12:50:02]Host: 172.17.56.4:8080 [12:50:02]Content-Length: 677 [12:50:02]Content-Type: application/json [12:50:02] [12:50:02]POST finish read [12:50:02]Found Content-Length = 677 [12:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:50:02]execute_script... [12:50:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:50:02]POST & json_proto [12:50:02]process_json_proto [12:50:02]json parsed OK: [12:50:02]protocol is kg_v1.0 [12:50:02]action value=close_receipt [12:50:02]process_action close_receipt [12:50:02]cmd_close_receipt [12:50:02]MH_GetDate [12:50:02]Write to MH i2c: F0 00 00 23 1B 2D [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: F0 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: F0 09 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: F0 09 00 23 1B 00 7B 26 91 66 C9 DC B2 64 89 [12:50:02]GetLastDocTimeStamp 1720788572 [12:50:02]current date 1720788603 [12:50:02]FM_GetShiftState [12:50:02]SAM_PROTO_GetShiftState [12:50:02]wFMCommunicate request_size=4 [12:50:02]MH_SAM_APDU [12:50:02]CAPDU: 80 13 01 00 [12:50:02]Write to MH i2c: E2 08 00 24 1B 80 13 01 00 00 00 00 00 BC [12:50:02]Write i2c OK [12:50:02]MH_I2C_Read... [12:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:02]Read from MH i2c: E2 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 0E 00 [12:50:02]MH_I2C_Read... [12:50:02]Read from MH i2c: E2 0E 00 24 1B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 06 [12:50:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:50:02]wFMCommunicate OK [12:50:02]SAM_PROTO_GetShiftState done [12:50:02]FM_GetShiftState done [12:50:02]opened in 1720744654 [12:50:02]opened+sec_in_day 1720831054 [12:50:02]quantity*price = 30004 [12:50:02]sum+1 = 30006 [12:50:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 133 12.07.2024 12:50 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164212 ФПД: 189683700040478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T125003&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164212&fm=189683700040478&tin=02508201610067®Number=0000000000090829&sum=30000 [12:50:03]StoreToDocumentArchive [12:50:03]shift 445 fd 164212 [12:50:03]save to /storage/0445/doc_00164212 [12:50:03]save last doc name /storage/0445/doc_00164212 to /storage/kkm_last_doc_name [12:50:03]save OK [12:50:03]Clear old archive folders... [12:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:03]tlvbuf is 009F1A20 [12:50:03]SAM_PROTO_ClearQueue [12:50:03]wFMCommunicate request_size=4 [12:50:03]MH_SAM_APDU [12:50:03]CAPDU: 80 09 00 00 [12:50:03]Write to MH i2c: E2 08 00 31 1B 80 09 00 00 00 00 00 00 BE [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:03]Read from MH i2c: E2 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 03 00 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [12:50:03]RAPDU: 90 00 [12:50:03]wFMCommunicate OK [12:50:03]SAM_PROTO_ClearQueue done [12:50:03]KKMCreateOFDPacket [12:50:03]OFDProtocolAddRootSTLVToBuf [12:50:03]FM_MakeSignedData [12:50:03]FM_MakeSignedData [12:50:03]SAM_PROTO_SignData [12:50:03]wFMCommunicate request_size=4 [12:50:03]MH_SAM_APDU [12:50:03]CAPDU: 80 0D 01 02 [12:50:03]Write to MH i2c: E2 08 00 32 1B 80 0D 01 02 00 00 00 00 C6 [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:03]Read from MH i2c: E2 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 03 00 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [12:50:03]RAPDU: 90 00 [12:50:03]wFMCommunicate OK [12:50:03]wFMCommunicate request_size=255 [12:50:03]MH_SAM_APDU [12:50:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7B 26 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 81 02 00 35 04 06 00 AC [12:50:03]Write to MH i2c: E2 02 01 33 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7B 26 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 81 02 00 35 04 06 00 AC 00 00 7E [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:03]Read from MH i2c: E2 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 03 00 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 03 00 33 1B 00 90 00 C2 [12:50:03]RAPDU: 90 00 [12:50:03]wFMCommunicate OK [12:50:03]wFMCommunicate request_size=10 [12:50:03]MH_SAM_APDU [12:50:03]CAPDU: 80 0D 02 02 05 84 2D 8F 83 1E [12:50:03]Write to MH i2c: E2 0D 00 34 1B 80 0D 02 02 05 00 84 2D 8F 83 1E 00 00 B4 [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:03]Read from MH i2c: E2 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 03 00 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 03 00 34 1B 00 90 00 C3 [12:50:03]RAPDU: 90 00 [12:50:03]wFMCommunicate OK [12:50:03]wFMCommunicate request_size=4 [12:50:03]MH_SAM_APDU [12:50:03]CAPDU: 80 0D 03 02 [12:50:03]Write to MH i2c: E2 08 00 35 1B 80 0D 03 02 00 00 00 00 CB [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:03]Read from MH i2c: E2 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 0B 00 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 0B 00 35 1B 00 D1 85 03 8F 3B C7 04 D1 90 00 8B [12:50:03]RAPDU: D1 85 03 8F 3B C7 04 D1 90 00 [12:50:03]wFMCommunicate OK [12:50:03]SAM_PROTO_SignData done [12:50:03]FM_MakeSignedData done [12:50:03]CreateOFDProtocolMessage [12:50:03]wFMCommunicate request_size=4 [12:50:03]MH_SAM_APDU [12:50:03]CAPDU: 80 11 00 00 [12:50:03]Write to MH i2c: E2 08 00 36 1B 80 11 00 00 00 00 00 00 CB [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:03]Read from MH i2c: E2 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 17 00 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: E2 17 00 36 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [12:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:50:03]wFMCommunicate OK [12:50:03]CreateOFDProtocolMessage done [12:50:03]OFDSenderStorePacket 164212 [12:50:03]StoreOFDPacket docnum=164212 [12:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B6 A2 07 01 E5 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7B 26 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 81 02 00 35 04 06 00 AC 84 2D 8F 83 1E D1 85 03 8F 3B C7 04 D1 [12:50:03]CheckFolder [12:50:03]dirname=/storage/ofd_packets [12:50:03]CheckFolder done [12:50:03]ProducePacketName [12:50:03]name=ofd_packets/00164212 [12:50:03]NVStorageSaveData ofd_packets/00164212 [12:50:03]File name is /storage/ofd_packets/00164212 [12:50:03]Write 301 bytes [12:50:03]NVStorageSaveData done [12:50:03]OFDSenderStorePacket done [12:50:03]KKMCreateOFDPacket done [12:50:03]NVStorageSaveData kkm_last_timestamp [12:50:03]File name is /storage/kkm_last_timestamp [12:50:03]Write 4 bytes [12:50:03]NVStorageSaveData done [12:50:03]ExternCall_PrintAddStr [12:50:03]wPrintStart [12:50:03]Write to MH i2c: 01 00 00 37 1B 52 [12:50:03]Write i2c OK [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: 01 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: 01 07 00 [12:50:03]MH_I2C_Read... [12:50:03]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [12:50:03]RasterBufferAndPrint [12:50:03]line Счет N : (1)458295 [12:50:03]line ИНН: 02508201610067 [12:50:03]line Контрольно-Кассовый Чек [12:50:03]line ПРОДАЖА [12:50:03]line ТРК (МРК, ГНК) : 12 [12:50:03]line Товар: 2710124130 [12:50:03]line Аи-92-К-5 [12:50:03]line 4.560 * 65.80 [12:50:03]line = 300.05 [12:50:03]line НДС 12% НСП 1% [12:50:03]line > о реализуемом товаре [12:50:03]line ОКРУГЛЕНИЕ: -0.05 [12:50:03]line ИТОГО: 300.00 [12:50:03]line Внесено: 300.00 [12:50:03]line СДАЧА: 0.00 [12:50:03]line НСП 1% : 2.65 [12:50:03]line НДС 12% : 31.86 [12:50:03]line Наличными: 300.00 [12:50:03]line Безнал.: 0.00 [12:50:03]line Место: АЗС № 72 "Партнер Нефть" [12:50:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:50:03]line СНО: Общий режим [12:50:03]line Чек 133 12.07.2024 12:50 [12:50:03]line Смена: 445 ФФД: 1.0 [12:50:03]line ЗНМ: 0300000160 [12:50:03]line РНМ: 0000000000090829 [12:50:03]line Версия ККМ: 001 [12:50:03]line ФМ: 0000000000874718 [12:50:03]line ФД: 164212 [12:50:03]line ФПД: 189683700040478 [12:50:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T125003&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164212&fm=189683700040478&tin=02508201610067®Number=0000000000090829&sum=30000 [12:50:04]OFD Sender: Processing packet 164212 [packets to send 104, broken 103] [12:50:04]ProducePacketName [12:50:04]name=ofd_packets/00164212 [12:50:04]OFD Sender: To server: pG, [12:50:04]CommunicateWithHost lk.salyk.kg:30040 [12:50:04]ConnectInit lk.salyk.kg [12:50:04]written 0, free lines is 4095 [12:50:04]Connected sock=10 [12:50:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B6 A2 07 01 E5 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7B 26 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 81 02 00 35 04 06 00 AC 84 2D 8F 83 1E D1 85 03 8F 3B C7 04 D1 [12:50:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 82 99 47 00 EB 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 34 37 31 38 10 04 04 00 74 81 02 00 F4 03 04 00 0F CD 90 66 B6 04 01 00 00 EE B5 15 57 30 44 EF 30 [12:50:04]CommunicateWithHost err = 0 [12:50:04]CheckOFDResponse [12:50:04]1017 (14) - 77093643461234 [12:50:04]1041 (16) - 0000000000874718 [12:50:04]1040 (4) - 164212 [12:50:04]1012 (4) - 12.07.2024 06:28 [12:50:04]1206 (1) - 0 [12:50:04]OFD Sender: Remove packet 164212 [12:50:04]ProducePacketName [12:50:04]name=ofd_packets/00164212 [12:50:04]NVStorageDeleteData [12:50:04]Write to MH i2c: 01 00 00 61 1B 7C [12:50:04]Write i2c OK [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: 01 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: 01 07 00 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: 01 07 00 61 1B 00 00 00 00 00 F2 0C 81 [12:50:04]RasterBufferAndPrint [12:50:04]line [12:50:04]line [12:50:04]line [12:50:04]line [12:50:04]line [12:50:04]written 0, free lines is 3320 [12:50:04]MH_Cut [12:50:04]Write to MH i2c: D1 01 00 68 1B 01 55 [12:50:04]Write i2c OK [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: D1 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: D1 01 00 [12:50:04]MH_I2C_Read... [12:50:04]Read from MH i2c: D1 01 00 68 1B 00 54 [12:50:04]Write to MH i2c: 01 00 00 69 1B 84 [12:50:04]Write i2c OK [12:50:04]MH_I2C_Read... [12:50:05]OFD Sender: No OFD packet to send [12:50:05]*** Cut start [12:50:05]*** Partial cut [12:50:05]*** CUTSNS_PIN = 1 [12:50:05]*** CUTSNS_PIN = 0 [12:50:05]*** Brake cut motor [12:50:05]Read from MH i2c: 01 [12:50:05]MH_I2C_Read... [12:50:06]*** Stop cut motor [12:50:06]*** Cut end [12:50:06]Read from MH i2c: 01 07 00 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: 01 07 00 69 1B 00 00 00 00 00 FF 0F 99 [12:50:06]process_action close_receipt done [12:50:06]requested_data is exist [12:50:06]produce_requested_data [12:50:06]requested_item fm.sn is exist - process it [12:50:06]wFMCommunicate request_size=4 [12:50:06]MH_SAM_APDU [12:50:06]CAPDU: 80 11 00 00 [12:50:06]Write to MH i2c: E2 08 00 6A 1B 80 11 00 00 00 00 00 00 FF [12:50:06]Write i2c OK [12:50:06]MH_I2C_Read... [12:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:06]Read from MH i2c: E2 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 17 00 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 17 00 6A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [12:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:50:06]wFMCommunicate OK [12:50:06]requested_item fd.num is exist - process it [12:50:06]SAM_PROTO_GetFieldsCounters [12:50:06]wFMCommunicate request_size=4 [12:50:06]MH_SAM_APDU [12:50:06]CAPDU: 80 13 00 00 [12:50:06]Write to MH i2c: E2 08 00 6B 1B 80 13 00 00 00 00 00 00 02 [12:50:06]Write i2c OK [12:50:06]MH_I2C_Read... [12:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:06]Read from MH i2c: E2 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 62 00 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 62 00 6B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [12:50:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:06]wFMCommunicate OK [12:50:06]SAM_PROTO_GetFieldsCounters done [12:50:06]requested_item shift.num is exist - process it [12:50:06]requested_item shift.opened is exist - process it [12:50:06]req_shift_opened [12:50:06]FM_GetShiftState [12:50:06]SAM_PROTO_GetShiftState [12:50:06]wFMCommunicate request_size=4 [12:50:06]MH_SAM_APDU [12:50:06]CAPDU: 80 13 01 00 [12:50:06]Write to MH i2c: E2 08 00 6C 1B 80 13 01 00 00 00 00 00 04 [12:50:06]Write i2c OK [12:50:06]MH_I2C_Read... [12:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:06]Read from MH i2c: E2 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 0E 00 [12:50:06]MH_I2C_Read... [12:50:06]Read from MH i2c: E2 0E 00 6C 1B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4E [12:50:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:50:06]wFMCommunicate OK [12:50:06]SAM_PROTO_GetShiftState done [12:50:06]FM_GetShiftState done [12:50:06]req_shift_opened done [12:50:06]requested_item shift.open_date is exist - process it [12:50:06]req_shift_open_date [12:50:06]req_shift_open_date done [12:50:06]produce_requested_data done [12:50:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164212,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:50:06]process_action_free close_receipt [12:50:06]json_value_free [12:50:06]json_value_free done [12:50:06]process_json_proto returns [12:50:06]Send response to host [12:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164212,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:50:06]free response buf [12:50:06]execute_script done [12:50:06]execute_script returns [12:50:06]free content buf [12:50:06]Sock 7.Close socket [12:50:06]Sock 7.Thread stoped [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]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:09]accept exits with 9 [12:54:09]New connection [12:54:09]New thread 3066850660 created [12:54:09]Thread 3066707300 joined [12:54:09]Waiting for new connection... [12:54:09] Sock 9.Parse request [12:54:09]Sock 9.Check first char [12:54:09]Sock 9.First char is OK [12:54:09]request: POST /json_proto HTTP/1.0 [12:54:09]Method: POST [12:54:09]URL: /json_proto [12:54:09]Method is POST - this is cgi request [12:54:09]url: /json_proto [12:54:09]query_string will be loaded in cgi processing [12:54:09]execute_cgi json_proto POST (null) [12:54:09]execute_cgi path=json_proto method=POST [12:54:09]POST find Content-Length [12:54:09]Host: 172.17.56.4:8080 [12:54:09]Content-Length: 682 [12:54:09]Content-Type: application/json [12:54:09] [12:54:09]POST finish read [12:54:09]Found Content-Length = 682 [12:54:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 25.840, "sum" : 1700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:09]execute_script... [12:54: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)458296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 25.840, "sum" : 1700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:09]POST & json_proto [12:54:09]process_json_proto [12:54:09]json parsed OK: [12:54:09]protocol is kg_v1.0 [12:54:09]action value=close_receipt [12:54:09]process_action close_receipt [12:54:09]cmd_close_receipt [12:54:09]MH_GetDate [12:54:09]Write to MH i2c: F0 00 00 6D 1B 77 [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: F0 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: F0 09 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: F0 09 00 6D 1B 00 72 27 91 66 C9 DC B2 64 CB [12:54:09]GetLastDocTimeStamp 1720788603 [12:54:09]current date 1720788850 [12:54:09]FM_GetShiftState [12:54:09]SAM_PROTO_GetShiftState [12:54:09]wFMCommunicate request_size=4 [12:54:09]MH_SAM_APDU [12:54:09]CAPDU: 80 13 01 00 [12:54:09]Write to MH i2c: E2 08 00 6E 1B 80 13 01 00 00 00 00 00 06 [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:09]Read from MH i2c: E2 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 0E 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 0E 00 6E 1B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 50 [12:54:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:54:09]wFMCommunicate OK [12:54:09]SAM_PROTO_GetShiftState done [12:54:09]FM_GetShiftState done [12:54:09]opened in 1720744654 [12:54:09]opened+sec_in_day 1720831054 [12:54:09]quantity*price = 170027 [12:54:09]sum+1 = 170028 [12:54:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.56 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 134 12.07.2024 12:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164213 ФПД: 58339526676147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T125410&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164213&fm=58339526676147&tin=02508201610067®Number=0000000000090829&sum=170000 [12:54:10]StoreToDocumentArchive [12:54:10]shift 445 fd 164213 [12:54:10]save to /storage/0445/doc_00164213 [12:54:10]save last doc name /storage/0445/doc_00164213 to /storage/kkm_last_doc_name [12:54:10]save OK [12:54:10]Clear old archive folders... [12:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:10]tlvbuf is B6E8F4F0 [12:54:10]SAM_PROTO_ClearQueue [12:54:10]wFMCommunicate request_size=4 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 09 00 00 [12:54:10]Write to MH i2c: E2 08 00 7B 1B 80 09 00 00 00 00 00 00 08 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [12:54:10]RAPDU: 90 00 [12:54:10]wFMCommunicate OK [12:54:10]SAM_PROTO_ClearQueue done [12:54:10]KKMCreateOFDPacket [12:54:10]OFDProtocolAddRootSTLVToBuf [12:54:10]FM_MakeSignedData [12:54:10]FM_MakeSignedData [12:54:10]SAM_PROTO_SignData [12:54:10]wFMCommunicate request_size=4 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 0D 01 02 [12:54:10]Write to MH i2c: E2 08 00 7C 1B 80 0D 01 02 00 00 00 00 10 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [12:54:10]RAPDU: 90 00 [12:54:10]wFMCommunicate OK [12:54:10]wFMCommunicate request_size=255 [12:54:10]MH_SAM_APDU [12:54: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 F0 64 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2B 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 72 27 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 81 02 00 35 04 06 00 35 [12:54:10]Write to MH i2c: E2 02 01 7D 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 64 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2B 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 72 27 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 81 02 00 35 04 06 00 35 00 00 0F [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 7D 1B 00 90 00 0C [12:54:10]RAPDU: 90 00 [12:54:10]wFMCommunicate OK [12:54:10]wFMCommunicate request_size=10 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 0D 02 02 05 0F 3A C3 8E B3 [12:54:10]Write to MH i2c: E2 0D 00 7E 1B 80 0D 02 02 05 00 0F 3A C3 8E B3 00 00 6A [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:11]Read from MH i2c: E2 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: E2 03 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: E2 03 00 7E 1B 00 90 00 0D [12:54:11]RAPDU: 90 00 [12:54:11]wFMCommunicate OK [12:54:11]wFMCommunicate request_size=4 [12:54:11]MH_SAM_APDU [12:54:11]CAPDU: 80 0D 03 02 [12:54:11]Write to MH i2c: E2 08 00 7F 1B 80 0D 03 02 00 00 00 00 15 [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:11]Read from MH i2c: E2 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: E2 0B 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: E2 0B 00 7F 1B 00 D7 CC B9 A8 65 7B A2 1A 90 00 B6 [12:54:11]RAPDU: D7 CC B9 A8 65 7B A2 1A 90 00 [12:54:11]wFMCommunicate OK [12:54:11]SAM_PROTO_SignData done [12:54:11]FM_MakeSignedData done [12:54:11]CreateOFDProtocolMessage [12:54:11]wFMCommunicate request_size=4 [12:54:11]MH_SAM_APDU [12:54:11]CAPDU: 80 11 00 00 [12:54:11]Write to MH i2c: E2 08 00 80 1B 80 11 00 00 00 00 00 00 15 [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:11]Read from MH i2c: E2 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: E2 17 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: E2 17 00 80 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6B [12:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:54:11]wFMCommunicate OK [12:54:11]CreateOFDProtocolMessage done [12:54:11]OFDSenderStorePacket 164213 [12:54:11]StoreOFDPacket docnum=164213 [12:54:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A DB 07 01 DA 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 64 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2B 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 72 27 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 81 02 00 35 04 06 00 35 0F 3A C3 8E B3 D7 CC B9 A8 65 7B A2 1A [12:54:11]CheckFolder [12:54:11]dirname=/storage/ofd_packets [12:54:11]CheckFolder done [12:54:11]ProducePacketName [12:54:11]name=ofd_packets/00164213 [12:54:11]NVStorageSaveData ofd_packets/00164213 [12:54:11]File name is /storage/ofd_packets/00164213 [12:54:11]Write 301 bytes [12:54:11]NVStorageSaveData done [12:54:11]OFDSenderStorePacket done [12:54:11]KKMCreateOFDPacket done [12:54:11]NVStorageSaveData kkm_last_timestamp [12:54:11]File name is /storage/kkm_last_timestamp [12:54:11]Write 4 bytes [12:54:11]NVStorageSaveData done [12:54:11]OFD Sender: Processing packet 164213 [packets to send 104, broken 103] [12:54:11]ProducePacketName [12:54:11]name=ofd_packets/00164213 [12:54:11]OFD Sender: To server: pG, [12:54:11]CommunicateWithHost lk.salyk.kg:30040 [12:54:11]ConnectInit lk.salyk.kg [12:54:11]ExternCall_PrintAddStr [12:54:11]wPrintStart [12:54:11]Write to MH i2c: 01 00 00 81 1B 9C [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: 01 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: 01 07 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: 01 07 00 81 1B 00 00 00 00 00 FF 0F B1 [12:54:11]RasterBufferAndPrint [12:54:11]line Счет N : (1)458296 [12:54:11]line ИНН: 02508201610067 [12:54:11]line Контрольно-Кассовый Чек [12:54:11]line ПРОДАЖА [12:54:11]line ТРК (МРК, ГНК) : 12 [12:54:11]line Товар: 2710124130 [12:54:11]line Аи-92-К-5 [12:54:11]line 25.840 * 65.80 [12:54:11]line = 1700.27 [12:54:11]line НДС 12% НСП 1% [12:54:11]line > о реализуемом товаре [12:54:11]line ОКРУГЛЕНИЕ: -0.27 [12:54:11]line ИТОГО: 1700.00 [12:54:11]line Внесено: 1700.00 [12:54:11]line СДАЧА: 0.00 [12:54:11]line НСП 1% : 15.05 [12:54:11]line НДС 12% : 180.56 [12:54:11]line Наличными: 1700.00 [12:54:11]line Безнал.: 0.00 [12:54:11]line Место: АЗС № 72 "Партнер Нефть" [12:54:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:54:11]line СНО: Общий режим [12:54:11]line Чек 134 12.07.2024 12:54 [12:54:11]line Смена: 445 ФФД: 1.0 [12:54:11]line ЗНМ: 0300000160 [12:54:11]line РНМ: 0000000000090829 [12:54:11]line Версия ККМ: 001 [12:54:11]line ФМ: 0000000000874718 [12:54:11]line ФД: 164213 [12:54:11]line ФПД: 58339526676147 [12:54:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T125410&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164213&fm=58339526676147&tin=02508201610067®Number=0000000000090829&sum=170000 [12:54:11]Connected sock=11 [12:54:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A DB 07 01 DA 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 64 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2B 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 72 27 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D written 0, free lines is 4095 [12:54:11]04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 81 02 00 35 04 06 00 35 0F 3A C3 8E B3 D7 CC B9 A8 65 7B A2 1A [12:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BD 78 47 00 08 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 34 37 31 38 10 04 04 00 75 81 02 00 F4 03 04 00 07 CE 90 66 B6 04 01 00 00 52 A0 29 3F ED 3C 92 D5 [12:54:11]CommunicateWithHost err = 0 [12:54:11]CheckOFDResponse [12:54:11]1017 (14) - 77093643461234 [12:54:11]1041 (16) - 0000000000874718 [12:54:11]1040 (4) - 164213 [12:54:11]1012 (4) - 12.07.2024 06:32 [12:54:11]1206 (1) - 0 [12:54:11]OFD Sender: Remove packet 164213 [12:54:11]ProducePacketName [12:54:11]name=ofd_packets/00164213 [12:54:11]NVStorageDeleteData [12:54:11]Write to MH i2c: 01 00 00 AB 1B C6 [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: 01 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: 01 07 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: 01 07 00 AB 1B 00 00 00 00 00 F3 0C CC [12:54:11]RasterBufferAndPrint [12:54:11]line [12:54:11]line [12:54:11]line [12:54:11]line [12:54:11]line [12:54:11]written 0, free lines is 3322 [12:54:11]MH_Cut [12:54:11]Write to MH i2c: D1 01 00 B2 1B 01 9F [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: D1 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: D1 01 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: D1 01 00 B2 1B 00 9E [12:54:11]Write to MH i2c: 01 00 00 B3 1B CE [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:12]OFD Sender: No OFD packet to send [12:54:12]*** Cut start [12:54:12]*** Partial cut [12:54:12]*** CUTSNS_PIN = 1 [12:54:12]*** CUTSNS_PIN = 0 [12:54:12]*** Brake cut motor [12:54:13]Read from MH i2c: 01 [12:54:13]MH_I2C_Read... [12:54:13]*** Stop cut motor [12:54:13]*** Cut end [12:54:13]Read from MH i2c: 01 07 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: 01 07 00 B3 1B 00 00 00 00 00 FF 0F E3 [12:54:13]process_action close_receipt done [12:54:13]requested_data is exist [12:54:13]produce_requested_data [12:54:13]requested_item fm.sn is exist - process it [12:54:13]wFMCommunicate request_size=4 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 11 00 00 [12:54:13]Write to MH i2c: E2 08 00 B4 1B 80 11 00 00 00 00 00 00 49 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 17 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 17 00 B4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [12:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:54:13]wFMCommunicate OK [12:54:13]requested_item fd.num is exist - process it [12:54:13]SAM_PROTO_GetFieldsCounters [12:54:13]wFMCommunicate request_size=4 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 13 00 00 [12:54:13]Write to MH i2c: E2 08 00 B5 1B 80 13 00 00 00 00 00 00 4C [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 62 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 62 00 B5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [12:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:13]wFMCommunicate OK [12:54:13]SAM_PROTO_GetFieldsCounters done [12:54:13]requested_item shift.num is exist - process it [12:54:13]requested_item shift.opened is exist - process it [12:54:13]req_shift_opened [12:54:13]FM_GetShiftState [12:54:13]SAM_PROTO_GetShiftState [12:54:13]wFMCommunicate request_size=4 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 13 01 00 [12:54:13]Write to MH i2c: E2 08 00 B6 1B 80 13 01 00 00 00 00 00 4E [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 0E 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 0E 00 B6 1B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 98 [12:54:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:54:13]wFMCommunicate OK [12:54:13]SAM_PROTO_GetShiftState done [12:54:13]FM_GetShiftState done [12:54:13]req_shift_opened done [12:54:13]requested_item shift.open_date is exist - process it [12:54:13]req_shift_open_date [12:54:13]req_shift_open_date done [12:54:13]produce_requested_data done [12:54:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164213,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:54:13]process_action_free close_receipt [12:54:13]json_value_free [12:54:13]json_value_free done [12:54:13]process_json_proto returns [12:54:13]Send response to host [12:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164213,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:54:13]free response buf [12:54:13]execute_script done [12:54:13]execute_script returns [12:54:13]free content buf [12:54:13]Sock 9.Close socket [12:54:13]Sock 9.Thread stoped [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:55:58]accept exits with 7 [12:55:58]New connection [12:55:58]New thread 3066707300 created [12:55:58]Thread 3066850660 joined [12:55:58]Waiting for new connection... [12:55:58] Sock 7.Parse request [12:55:58]Sock 7.Check first char [12:55:58]Sock 7.First char is OK [12:55:58]request: POST /json_proto HTTP/1.0 [12:55:58]Method: POST [12:55:58]URL: /json_proto [12:55:58]Method is POST - this is cgi request [12:55:58]url: /json_proto [12:55:58]query_string will be loaded in cgi processing [12:55:58]execute_cgi json_proto POST (null) [12:55:58]execute_cgi path=json_proto method=POST [12:55:58]POST find Content-Length [12:55:58]Host: 172.17.56.4:8080 [12:55:58]Content-Length: 677 [12:55:58]Content-Type: application/json [12:55:58] [12:55:58]POST finish read [12:55:58]Found Content-Length = 677 [12:55:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.730, "sum" : 640.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:58]execute_script... [12:55:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.730, "sum" : 640.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:58]POST & json_proto [12:55:58]process_json_proto [12:55:58]json parsed OK: [12:55:58]protocol is kg_v1.0 [12:55:58]action value=close_receipt [12:55:58]process_action close_receipt [12:55:58]cmd_close_receipt [12:55:58]MH_GetDate [12:55:58]Write to MH i2c: F0 00 00 B7 1B C1 [12:55:58]Write i2c OK [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: F0 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: F0 09 00 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: F0 09 00 B7 1B 00 DF 27 91 66 C9 DC B2 64 82 [12:55:58]GetLastDocTimeStamp 1720788850 [12:55:58]current date 1720788959 [12:55:58]FM_GetShiftState [12:55:58]SAM_PROTO_GetShiftState [12:55:58]wFMCommunicate request_size=4 [12:55:58]MH_SAM_APDU [12:55:58]CAPDU: 80 13 01 00 [12:55:58]Write to MH i2c: E2 08 00 B8 1B 80 13 01 00 00 00 00 00 50 [12:55:58]Write i2c OK [12:55:58]MH_I2C_Read... [12:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:58]Read from MH i2c: E2 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 0E 00 [12:55:58]MH_I2C_Read... [12:55:58]Read from MH i2c: E2 0E 00 B8 1B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9A [12:55:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:55:58]wFMCommunicate OK [12:55:58]SAM_PROTO_GetShiftState done [12:55:58]FM_GetShiftState done [12:55:58]opened in 1720744654 [12:55:58]opened+sec_in_day 1720831054 [12:55:58]quantity*price = 64023 [12:55:58]sum+1 = 64024 [12:55:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 67.99 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 135 12.07.2024 12:55 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164214 ФПД: 166573057000034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T125559&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164214&fm=166573057000034&tin=02508201610067®Number=0000000000090829&sum=64000 [12:55:59]StoreToDocumentArchive [12:55:59]shift 445 fd 164214 [12:55:59]save to /storage/0445/doc_00164214 [12:55:59]save last doc name /storage/0445/doc_00164214 to /storage/kkm_last_doc_name [12:55:59]save OK [12:55:59]Clear old archive folders... [12:55:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:59]tlvbuf is B6F3FA00 [12:55:59]SAM_PROTO_ClearQueue [12:55:59]wFMCommunicate request_size=4 [12:55:59]MH_SAM_APDU [12:55:59]CAPDU: 80 09 00 00 [12:55:59]Write to MH i2c: E2 08 00 C5 1B 80 09 00 00 00 00 00 00 52 [12:55:59]Write i2c OK [12:55:59]MH_I2C_Read... [12:55:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:59]Read from MH i2c: E2 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 03 00 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [12:55:59]RAPDU: 90 00 [12:55:59]wFMCommunicate OK [12:55:59]SAM_PROTO_ClearQueue done [12:55:59]KKMCreateOFDPacket [12:55:59]OFDProtocolAddRootSTLVToBuf [12:55:59]FM_MakeSignedData [12:55:59]FM_MakeSignedData [12:55:59]SAM_PROTO_SignData [12:55:59]wFMCommunicate request_size=4 [12:55:59]MH_SAM_APDU [12:55:59]CAPDU: 80 0D 01 02 [12:55:59]Write to MH i2c: E2 08 00 C6 1B 80 0D 01 02 00 00 00 00 5A [12:55:59]Write i2c OK [12:55:59]MH_I2C_Read... [12:55:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:59]Read from MH i2c: E2 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 03 00 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [12:55:59]RAPDU: 90 00 [12:55:59]wFMCommunicate OK [12:55:59]wFMCommunicate request_size=255 [12:55:59]MH_SAM_APDU [12:55:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 DF 27 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 81 02 00 35 04 06 00 97 [12:55:59]Write to MH i2c: E2 02 01 C7 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 DF 27 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 81 02 00 35 04 06 00 97 00 00 18 [12:55:59]Write i2c OK [12:55:59]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [12:56:00]RAPDU: 90 00 [12:56:00]wFMCommunicate OK [12:56:00]wFMCommunicate request_size=10 [12:56:00]MH_SAM_APDU [12:56:00]CAPDU: 80 0D 02 02 05 7F 4F E4 42 62 [12:56:00]Write to MH i2c: E2 0D 00 C8 1B 80 0D 02 02 05 00 7F 4F E4 42 62 00 00 BD [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 03 00 C8 1B 00 90 00 57 [12:56:00]RAPDU: 90 00 [12:56:00]wFMCommunicate OK [12:56:00]wFMCommunicate request_size=4 [12:56:00]MH_SAM_APDU [12:56:00]CAPDU: 80 0D 03 02 [12:56:00]Write to MH i2c: E2 08 00 C9 1B 80 0D 03 02 00 00 00 00 5F [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 0B 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 0B 00 C9 1B 00 00 CF 15 DA C9 0B 18 5C 90 00 66 [12:56:00]RAPDU: 00 CF 15 DA C9 0B 18 5C 90 00 [12:56:00]wFMCommunicate OK [12:56:00]SAM_PROTO_SignData done [12:56:00]FM_MakeSignedData done [12:56:00]CreateOFDProtocolMessage [12:56:00]wFMCommunicate request_size=4 [12:56:00]MH_SAM_APDU [12:56:00]CAPDU: 80 11 00 00 [12:56:00]Write to MH i2c: E2 08 00 CA 1B 80 11 00 00 00 00 00 00 5F [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:00]Read from MH i2c: E2 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 17 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: E2 17 00 CA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B5 [12:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:56:00]wFMCommunicate OK [12:56:00]CreateOFDProtocolMessage done [12:56:00]OFDSenderStorePacket 164214 [12:56:00]StoreOFDPacket docnum=164214 [12:56:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D F5 07 01 A3 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 02 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 DF 27 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 81 02 00 35 04 06 00 97 7F 4F E4 42 62 00 CF 15 DA C9 0B 18 5C [12:56:00]CheckFolder [12:56:00]dirname=/storage/ofd_packets [12:56:00]CheckFolder done [12:56:00]ProducePacketName [12:56:00]name=ofd_packets/00164214 [12:56:00]NVStorageSaveData ofd_packets/00164214 [12:56:00]File name is /storage/ofd_packets/00164214 [12:56:00]Write 301 bytes [12:56:00]NVStorageSaveData done [12:56:00]OFDSenderStorePacket done [12:56:00]KKMCreateOFDPacket done [12:56:00]NVStorageSaveData kkm_last_timestamp [12:56:00]File name is /storage/kkm_last_timestamp [12:56:00]Write 4 bytes [12:56:00]NVStorageSaveData done [12:56:00]OFD Sender: Processing packet 164214 [packets to send 104, broken 103] [12:56:00]ProducePacketName [12:56:00]name=ofd_packets/00164214 [12:56:00]OFD Sender: To server: pG, [12:56:00]CommunicateWithHost lk.salyk.kg:30040 [12:56:00]ConnectInit lk.salyk.kg [12:56:00]ExternCall_PrintAddStr [12:56:00]wPrintStart [12:56:00]Write to MH i2c: 01 00 00 CB 1B E6 [12:56:00]Write i2c OK [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: 01 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: 01 07 00 [12:56:00]MH_I2C_Read... [12:56:00]Read from MH i2c: 01 07 00 CB 1B 00 00 00 00 00 FF 0F FB [12:56:00]RasterBufferAndPrint [12:56:00]line Счет N : (1)458297 [12:56:00]line ИНН: 02508201610067 [12:56:00]line Контрольно-Кассовый Чек [12:56:00]line ПРОДАЖА [12:56:00]line ТРК (МРК, ГНК) : 22 [12:56:00]line Товар: 2710124130 [12:56:00]line Аи-92-К-5 [12:56:00]line 9.730 * 65.80 [12:56:00]line = 640.23 [12:56:00]line НДС 12% НСП 1% [12:56:00]line > о реализуемом товаре [12:56:00]line ОКРУГЛЕНИЕ: -0.23 [12:56:00]line ИТОГО: 640.00 [12:56:00]line Внесено: 640.00 [12:56:00]line СДАЧА: 0.00 [12:56:00]line НСП 1% : 5.67 [12:56:00]line НДС 12% : 67.99 [12:56:00]line Наличными: 640.00 [12:56:00]line Безнал.: 0.00 [12:56:00]line Место: АЗС № 72 "Партнер Нефть" [12:56:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:56:00]line СНО: Общий режим [12:56:00]line Чек 135 12.07.2024 12:55 [12:56:00]line Смена: 445 ФФД: 1.0 [12:56:00]line ЗНМ: 0300000160 [12:56:00]line РНМ: 0000000000090829 [12:56:00]line Версия ККМ: 001 [12:56:00]line ФМ: 0000000000874718 [12:56:00]line ФД: 164214 [12:56:00]line ФПД: 166573057000034 [12:56:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T125559&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164214&fm=166573057000034&tin=02508201610067®Number=0000000000090829&sum=64000 [12:56:00]Connected sock=11 [12:56:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D F5 07 01 A3 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 02 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 DF 27 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 81 02 00 35 04 06 00 97 7F 4F E4 42 62 00 CF 15 DA C9 0B 18 5C [12:56:00]written 0, free lines is 4095 [12:56:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8F 0B 47 00 BA 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 34 37 31 38 10 04 04 00 76 81 02 00 F4 03 04 00 74 CE 90 66 B6 04 01 00 00 4F 72 7A 97 60 3F A0 2C [12:56:00]CommunicateWithHost err = 0 [12:56:00]CheckOFDResponse [12:56:00]1017 (14) - 77093643461234 [12:56:00]1041 (16) - 0000000000874718 [12:56:00]1040 (4) - 164214 [12:56:00]1012 (4) - 12.07.2024 06:34 [12:56:00]1206 (1) - 0 [12:56:00]OFD Sender: Remove packet 164214 [12:56:00]ProducePacketName [12:56:00]name=ofd_packets/00164214 [12:56:00]NVStorageDeleteData [12:56:01]Write to MH i2c: 01 00 00 F5 1B 10 [12:56:01]Write i2c OK [12:56:01]MH_I2C_Read... [12:56:01]Read from MH i2c: 01 [12:56:01]MH_I2C_Read... [12:56:01]Read from MH i2c: 01 07 00 [12:56:01]MH_I2C_Read... [12:56:01]Read from MH i2c: 01 07 00 F5 1B 00 00 00 00 00 F2 0C 15 [12:56:01]RasterBufferAndPrint [12:56:01]line [12:56:01]line [12:56:01]line [12:56:01]line [12:56:01]line [12:56:01]written 0, free lines is 3322 [12:56:01]MH_Cut [12:56:01]Write to MH i2c: D1 01 00 FC 1B 01 E9 [12:56:01]Write i2c OK [12:56:01]MH_I2C_Read... [12:56:01]Read from MH i2c: D1 [12:56:01]MH_I2C_Read... [12:56:01]Read from MH i2c: D1 01 00 [12:56:01]MH_I2C_Read... [12:56:01]Read from MH i2c: D1 01 00 FC 1B 00 E8 [12:56:01]Write to MH i2c: 01 00 00 FD 1B 18 [12:56:01]Write i2c OK [12:56:01]MH_I2C_Read... [12:56:01]OFD Sender: No OFD packet to send [12:56:01]*** Cut start [12:56:01]*** Partial cut [12:56:01]*** CUTSNS_PIN = 1 [12:56:01]*** CUTSNS_PIN = 0 [12:56:02]*** Brake cut motor [12:56:02]Read from MH i2c: 01 [12:56:02]MH_I2C_Read... [12:56:02]*** Stop cut motor [12:56:02]*** Cut end [12:56:02]Read from MH i2c: 01 07 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: 01 07 00 FD 1B 00 00 00 00 00 FF 0F 2D [12:56:02]process_action close_receipt done [12:56:02]requested_data is exist [12:56:02]produce_requested_data [12:56:02]requested_item fm.sn is exist - process it [12:56:02]wFMCommunicate request_size=4 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 11 00 00 [12:56:02]Write to MH i2c: E2 08 00 FE 1B 80 11 00 00 00 00 00 00 93 [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 17 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 17 00 FE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E9 [12:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:56:02]wFMCommunicate OK [12:56:02]requested_item fd.num is exist - process it [12:56:02]SAM_PROTO_GetFieldsCounters [12:56:02]wFMCommunicate request_size=4 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 13 00 00 [12:56:02]Write to MH i2c: E2 08 00 FF 1B 80 13 00 00 00 00 00 00 96 [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 62 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 62 00 FF 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [12:56:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:02]wFMCommunicate OK [12:56:02]SAM_PROTO_GetFieldsCounters done [12:56:02]requested_item shift.num is exist - process it [12:56:02]requested_item shift.opened is exist - process it [12:56:02]req_shift_opened [12:56:02]FM_GetShiftState [12:56:02]SAM_PROTO_GetShiftState [12:56:02]wFMCommunicate request_size=4 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 13 01 00 [12:56:02]Write to MH i2c: E2 08 00 00 1C 80 13 01 00 00 00 00 00 99 [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 0E 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 0E 00 00 1C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E3 [12:56:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [12:56:02]wFMCommunicate OK [12:56:02]SAM_PROTO_GetShiftState done [12:56:02]FM_GetShiftState done [12:56:02]req_shift_opened done [12:56:02]requested_item shift.open_date is exist - process it [12:56:02]req_shift_open_date [12:56:02]req_shift_open_date done [12:56:02]produce_requested_data done [12:56:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164214,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [12:56:02]process_action_free close_receipt [12:56:02]json_value_free [12:56:02]json_value_free done [12:56:02]process_json_proto returns [12:56:02]Send response to host [12:56:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164214,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [12:56:02]free response buf [12:56:02]execute_script done [12:56:02]execute_script returns [12:56:02]free content buf [12:56:02]Sock 7.Close socket [12:56:02]Sock 7.Thread stoped [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:17]accept exits with 9 [13:00:17]New connection [13:00:17]New thread 3066850660 created [13:00:17]Thread 3066707300 joined [13:00:17]Waiting for new connection... [13:00:17] Sock 9.Parse request [13:00:17]Sock 9.Check first char [13:00:17]Sock 9.First char is OK [13:00:17]request: POST /json_proto HTTP/1.0 [13:00:17]Method: POST [13:00:17]URL: /json_proto [13:00:17]Method is POST - this is cgi request [13:00:17]url: /json_proto [13:00:17]query_string will be loaded in cgi processing [13:00:17]execute_cgi json_proto POST (null) [13:00:17]execute_cgi path=json_proto method=POST [13:00:17]POST find Content-Length [13:00:17]Host: 172.17.56.4:8080 [13:00:17]Content-Length: 673 [13:00:17]Content-Type: application/json [13:00:17] [13:00:17]POST finish read [13:00:17]Found Content-Length = 673 [13:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.510, "sum" : 99.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 99.00, "total" : 99.00, "payments": [ { "type": 0, "sum" : 99.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:17]execute_script... [13: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)458298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.510, "sum" : 99.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 99.00, "total" : 99.00, "payments": [ { "type": 0, "sum" : 99.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:17]POST & json_proto [13:00:17]process_json_proto [13:00:17]json parsed OK: [13:00:17]protocol is kg_v1.0 [13:00:17]action value=close_receipt [13:00:17]process_action close_receipt [13:00:17]cmd_close_receipt [13:00:17]MH_GetDate [13:00:17]Write to MH i2c: F0 00 00 01 1C 0C [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: F0 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: F0 09 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: F0 09 00 01 1C 00 E3 28 91 66 C9 DC B2 64 D2 [13:00:17]GetLastDocTimeStamp 1720788959 [13:00:17]current date 1720789219 [13:00:17]FM_GetShiftState [13:00:17]SAM_PROTO_GetShiftState [13:00:17]wFMCommunicate request_size=4 [13:00:17]MH_SAM_APDU [13:00:17]CAPDU: 80 13 01 00 [13:00:17]Write to MH i2c: E2 08 00 02 1C 80 13 01 00 00 00 00 00 9B [13:00:17]Write i2c OK [13:00:17]MH_I2C_Read... [13:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:17]Read from MH i2c: E2 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 0E 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 0E 00 02 1C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E5 [13:00:17]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:00:17]wFMCommunicate OK [13:00:17]SAM_PROTO_GetShiftState done [13:00:17]FM_GetShiftState done [13:00:17]opened in 1720744654 [13:00:17]opened+sec_in_day 1720831054 [13:00:17]quantity*price = 9935 [13:00:17]sum+1 = 9937 [13:00:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 99.00 Внесено: 99.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.55 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 136 12.07.2024 13:00 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164215 ФПД: 134855162626574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130019&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164215&fm=134855162626574&tin=02508201610067®Number=0000000000090829&sum=9900 [13:00:19]StoreToDocumentArchive [13:00:19]shift 445 fd 164215 [13:00:19]save to /storage/0445/doc_00164215 [13:00:19]save last doc name /storage/0445/doc_00164215 to /storage/kkm_last_doc_name [13:00:19]save OK [13:00:19]Clear old archive folders... [13:00:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:19]tlvbuf is 00A7E4F0 [13:00:19]SAM_PROTO_ClearQueue [13:00:19]wFMCommunicate request_size=4 [13:00:19]MH_SAM_APDU [13:00:19]CAPDU: 80 09 00 00 [13:00:19]Write to MH i2c: E2 08 00 0F 1C 80 09 00 00 00 00 00 00 9D [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:19]Read from MH i2c: E2 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 03 00 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [13:00:19]RAPDU: 90 00 [13:00:19]wFMCommunicate OK [13:00:19]SAM_PROTO_ClearQueue done [13:00:19]KKMCreateOFDPacket [13:00:19]OFDProtocolAddRootSTLVToBuf [13:00:19]FM_MakeSignedData [13:00:19]FM_MakeSignedData [13:00:19]SAM_PROTO_SignData [13:00:19]wFMCommunicate request_size=4 [13:00:19]MH_SAM_APDU [13:00:19]CAPDU: 80 0D 01 02 [13:00:19]Write to MH i2c: E2 08 00 10 1C 80 0D 01 02 00 00 00 00 A5 [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:19]Read from MH i2c: E2 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 03 00 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [13:00:19]RAPDU: 90 00 [13:00:19]wFMCommunicate OK [13:00:19]wFMCommunicate request_size=255 [13:00:19]MH_SAM_APDU [13:00: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 E6 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D0 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 E3 28 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 81 02 00 35 04 06 00 7A [13:00:19]Write to MH i2c: E2 02 01 11 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D0 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 E3 28 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 81 02 00 35 04 06 00 7A 00 00 3E [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:19]Read from MH i2c: E2 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 03 00 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 03 00 11 1C 00 90 00 A1 [13:00:19]RAPDU: 90 00 [13:00:19]wFMCommunicate OK [13:00:19]wFMCommunicate request_size=10 [13:00:19]MH_SAM_APDU [13:00:19]CAPDU: 80 0D 02 02 05 A6 6A 10 82 0E [13:00:19]Write to MH i2c: E2 0D 00 12 1C 80 0D 02 02 05 00 A6 6A 10 82 0E 00 00 62 [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:19]Read from MH i2c: E2 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 03 00 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 03 00 12 1C 00 90 00 A2 [13:00:19]RAPDU: 90 00 [13:00:19]wFMCommunicate OK [13:00:19]wFMCommunicate request_size=4 [13:00:19]MH_SAM_APDU [13:00:19]CAPDU: 80 0D 03 02 [13:00:19]Write to MH i2c: E2 08 00 13 1C 80 0D 03 02 00 00 00 00 AA [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:19]Read from MH i2c: E2 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 0B 00 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 0B 00 13 1C 00 8F D1 AD 20 C1 A0 D5 93 90 00 A1 [13:00:19]RAPDU: 8F D1 AD 20 C1 A0 D5 93 90 00 [13:00:19]wFMCommunicate OK [13:00:19]SAM_PROTO_SignData done [13:00:19]FM_MakeSignedData done [13:00:19]CreateOFDProtocolMessage [13:00:19]wFMCommunicate request_size=4 [13:00:19]MH_SAM_APDU [13:00:19]CAPDU: 80 11 00 00 [13:00:19]Write to MH i2c: E2 08 00 14 1C 80 11 00 00 00 00 00 00 AA [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:19]Read from MH i2c: E2 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 17 00 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: E2 17 00 14 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [13:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:00:19]wFMCommunicate OK [13:00:19]CreateOFDProtocolMessage done [13:00:19]OFDSenderStorePacket 164215 [13:00:19]StoreOFDPacket docnum=164215 [13:00:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 28 07 01 7E 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D0 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 E3 28 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 81 02 00 35 04 06 00 7A A6 6A 10 82 0E 8F D1 AD 20 C1 A0 D5 93 [13:00:19]CheckFolder [13:00:19]dirname=/storage/ofd_packets [13:00:19]CheckFolder done [13:00:19]ProducePacketName [13:00:19]name=ofd_packets/00164215 [13:00:19]NVStorageSaveData ofd_packets/00164215 [13:00:19]File name is /storage/ofd_packets/00164215 [13:00:19]Write 301 bytes [13:00:19]NVStorageSaveData done [13:00:19]OFDSenderStorePacket done [13:00:19]KKMCreateOFDPacket done [13:00:19]NVStorageSaveData kkm_last_timestamp [13:00:19]File name is /storage/kkm_last_timestamp [13:00:19]Write 4 bytes [13:00:19]NVStorageSaveData done [13:00:19]OFD Sender: Processing packet 164215 [packets to send 104, broken 103] [13:00:19]ProducePacketName [13:00:19]name=ofd_packets/00164215 [13:00:19]OFD Sender: To server: pG, [13:00:19]CommunicateWithHost lk.salyk.kg:30040 [13:00:19]ConnectInit lk.salyk.kg [13:00:19]ExternCall_PrintAddStr [13:00:19]wPrintStart [13:00:19]Write to MH i2c: 01 00 00 15 1C 31 [13:00:19]Write i2c OK [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: 01 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: 01 07 00 [13:00:19]MH_I2C_Read... [13:00:19]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 FF 0F 46 [13:00:19]RasterBufferAndPrint [13:00:19]line Счет N : (1)458298 [13:00:19]line ИНН: 02508201610067 [13:00:19]line Контрольно-Кассовый Чек [13:00:19]line ПРОДАЖА [13:00:19]line ТРК (МРК, ГНК) : 12 [13:00:19]line Товар: 2710124130 [13:00:19]line Аи-92-К-5 [13:00:19]line 1.510 * 65.80 [13:00:19]line = 99.36 [13:00:19]line НДС 12% НСП 1% [13:00:19]line > о реализуемом товаре [13:00:19]line ОКРУГЛЕНИЕ: -0.36 [13:00:19]line ИТОГО: 99.00 [13:00:19]line Внесено: 99.00 [13:00:19]line СДАЧА: 0.00 [13:00:19]line НСП 1% : 0.88 [13:00:19]line НДС 12% : 10.55 [13:00:19]line Наличными: 99.00 [13:00:19]line Безнал.: 0.00 [13:00:19]line Место: АЗС № 72 "Партнер Нефть" [13:00:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:00:19]line СНО: Общий режим [13:00:19]line Чек 136 12.07.2024 13:00 [13:00:19]line Смена: 445 ФФД: 1.0 [13:00:19]line ЗНМ: 0300000160 [13:00:19]line РНМ: 0000000000090829 [13:00:19]line Версия ККМ: 001 [13:00:19]line ФМ: 0000000000874718 [13:00:19]line ФД: 164215 [13:00:19]line ФПД: 134855162626574 [13:00:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130019&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164215&fm=134855162626574&tin=02508201610067®Number=0000000000090829&sum=9900 [13:00:20]Connected sock=11 [13:00:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 28 07 01 7E 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D0 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 E3 28 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 81 02 00 35 04 06 00 7A A6 6A 10 82 0E 8F D1 AD 20 C1 A0 D5 93 [13:00:20]written 0, free lines is 4095 [13:00:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C0 95 47 00 00 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 34 37 31 38 10 04 04 00 77 81 02 00 F4 03 04 00 77 CF 90 66 B6 04 01 00 00 8D 6C 36 7A 07 4D C9 8E [13:00:20]CommunicateWithHost err = 0 [13:00:20]CheckOFDResponse [13:00:20]1017 (14) - 77093643461234 [13:00:20]1041 (16) - 0000000000874718 [13:00:20]1040 (4) - 164215 [13:00:20]1012 (4) - 12.07.2024 06:38 [13:00:20]1206 (1) - 0 [13:00:20]OFD Sender: Remove packet 164215 [13:00:20]ProducePacketName [13:00:20]name=ofd_packets/00164215 [13:00:20]NVStorageDeleteData [13:00:20]Write to MH i2c: 01 00 00 3F 1C 5B [13:00:20]Write i2c OK [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: 01 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: 01 07 00 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: 01 07 00 3F 1C 00 00 00 00 00 FD 0C 6B [13:00:20]RasterBufferAndPrint [13:00:20]line [13:00:20]line [13:00:20]line [13:00:20]line [13:00:20]line [13:00:20]written 0, free lines is 3331 [13:00:20]MH_Cut [13:00:20]Write to MH i2c: D1 01 00 46 1C 01 34 [13:00:20]Write i2c OK [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: D1 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: D1 01 00 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: D1 01 00 46 1C 00 33 [13:00:20]Write to MH i2c: 01 00 00 47 1C 63 [13:00:20]Write i2c OK [13:00:20]MH_I2C_Read... [13:00:20]OFD Sender: No OFD packet to send [13:00:21]*** Cut start [13:00:21]*** Partial cut [13:00:21]*** CUTSNS_PIN = 1 [13:00:21]*** CUTSNS_PIN = 0 [13:00:21]*** Brake cut motor [13:00:21]Read from MH i2c: 01 [13:00:21]MH_I2C_Read... [13:00:21]*** Stop cut motor [13:00:21]*** Cut end [13:00:21]Read from MH i2c: 01 07 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: 01 07 00 47 1C 00 00 00 00 00 FF 0F 78 [13:00:21]process_action close_receipt done [13:00:21]requested_data is exist [13:00:21]produce_requested_data [13:00:21]requested_item fm.sn is exist - process it [13:00:21]wFMCommunicate request_size=4 [13:00:21]MH_SAM_APDU [13:00:21]CAPDU: 80 11 00 00 [13:00:21]Write to MH i2c: E2 08 00 48 1C 80 11 00 00 00 00 00 00 DE [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:21]Read from MH i2c: E2 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 17 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 17 00 48 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [13:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:00:21]wFMCommunicate OK [13:00:21]requested_item fd.num is exist - process it [13:00:21]SAM_PROTO_GetFieldsCounters [13:00:21]wFMCommunicate request_size=4 [13:00:21]MH_SAM_APDU [13:00:21]CAPDU: 80 13 00 00 [13:00:21]Write to MH i2c: E2 08 00 49 1C 80 13 00 00 00 00 00 00 E1 [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:21]Read from MH i2c: E2 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 62 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 62 00 49 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:21]wFMCommunicate OK [13:00:21]SAM_PROTO_GetFieldsCounters done [13:00:21]requested_item shift.num is exist - process it [13:00:21]requested_item shift.opened is exist - process it [13:00:21]req_shift_opened [13:00:21]FM_GetShiftState [13:00:21]SAM_PROTO_GetShiftState [13:00:21]wFMCommunicate request_size=4 [13:00:21]MH_SAM_APDU [13:00:21]CAPDU: 80 13 01 00 [13:00:21]Write to MH i2c: E2 08 00 4A 1C 80 13 01 00 00 00 00 00 E3 [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:21]Read from MH i2c: E2 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 0E 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 0E 00 4A 1C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2D [13:00:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:00:21]wFMCommunicate OK [13:00:21]SAM_PROTO_GetShiftState done [13:00:21]FM_GetShiftState done [13:00:21]req_shift_opened done [13:00:21]requested_item shift.open_date is exist - process it [13:00:21]req_shift_open_date [13:00:21]req_shift_open_date done [13:00:21]produce_requested_data done [13:00:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164215,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:00:21]process_action_free close_receipt [13:00:21]json_value_free [13:00:21]json_value_free done [13:00:21]process_json_proto returns [13:00:21]Send response to host [13:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164215,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:00:21]free response buf [13:00:21]execute_script done [13:00:21]execute_script returns [13:00:21]free content buf [13:00:21]Sock 9.Close socket [13:00:21]Sock 9.Thread stoped [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:36]accept exits with 7 [13:01:36]New connection [13:01:36]New thread 3066707300 created [13:01:36]Thread 3066850660 joined [13:01:36]Waiting for new connection... [13:01:36] Sock 7.Parse request [13:01:36]Sock 7.Check first char [13:01:36]Sock 7.First char is OK [13:01:36]request: POST /json_proto HTTP/1.0 [13:01:36]Method: POST [13:01:36]URL: /json_proto [13:01:36]Method is POST - this is cgi request [13:01:36]url: /json_proto [13:01:36]query_string will be loaded in cgi processing [13:01:36]execute_cgi json_proto POST (null) [13:01:36]execute_cgi path=json_proto method=POST [13:01:36]POST find Content-Length [13:01:36]Host: 172.17.56.4:8080 [13:01:36]Content-Length: 674 [13:01:36]Content-Type: application/json [13:01:36] [13:01:36]POST finish read [13:01:36]Found Content-Length = 674 [13:01:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458299", "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" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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:01:36]execute_script... [13:01: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)458299", "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" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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:01:36]POST & json_proto [13:01:36]process_json_proto [13:01:36]json parsed OK: [13:01:36]protocol is kg_v1.0 [13:01:36]action value=close_receipt [13:01:36]process_action close_receipt [13:01:36]cmd_close_receipt [13:01:36]MH_GetDate [13:01:36]Write to MH i2c: F0 00 00 4B 1C 56 [13:01:36]Write i2c OK [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: F0 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: F0 09 00 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: F0 09 00 4B 1C 00 32 29 91 66 C9 DC B2 64 6C [13:01:36]GetLastDocTimeStamp 1720789219 [13:01:36]current date 1720789298 [13:01:36]FM_GetShiftState [13:01:36]SAM_PROTO_GetShiftState [13:01:36]wFMCommunicate request_size=4 [13:01:36]MH_SAM_APDU [13:01:36]CAPDU: 80 13 01 00 [13:01:36]Write to MH i2c: E2 08 00 4C 1C 80 13 01 00 00 00 00 00 E5 [13:01:36]Write i2c OK [13:01:36]MH_I2C_Read... [13:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:36]Read from MH i2c: E2 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: E2 0E 00 [13:01:36]MH_I2C_Read... [13:01:36]Read from MH i2c: E2 0E 00 4C 1C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2F [13:01:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:01:36]wFMCommunicate OK [13:01:36]SAM_PROTO_GetShiftState done [13:01:36]FM_GetShiftState done [13:01:36]opened in 1720744654 [13:01:36]opened+sec_in_day 1720831054 [13:01:36]quantity*price = 60036 [13:01:36]sum+1 = 60038 [13:01:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 137 12.07.2024 13:01 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164216 ФПД: 253805846624341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130138&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164216&fm=253805846624341&tin=02508201610067®Number=0000000000090829&sum=60000 [13:01:38]StoreToDocumentArchive [13:01:38]shift 445 fd 164216 [13:01:38]save to /storage/0445/doc_00164216 [13:01:38]save last doc name /storage/0445/doc_00164216 to /storage/kkm_last_doc_name [13:01:38]save OK [13:01:38]Clear old archive folders... [13:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:01:38]tlvbuf is B6E8FD30 [13:01:38]SAM_PROTO_ClearQueue [13:01:38]wFMCommunicate request_size=4 [13:01:38]MH_SAM_APDU [13:01:38]CAPDU: 80 09 00 00 [13:01:38]Write to MH i2c: E2 08 00 59 1C 80 09 00 00 00 00 00 00 E7 [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:38]Read from MH i2c: E2 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 03 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 03 00 59 1C 00 90 00 E9 [13:01:38]RAPDU: 90 00 [13:01:38]wFMCommunicate OK [13:01:38]SAM_PROTO_ClearQueue done [13:01:38]KKMCreateOFDPacket [13:01:38]OFDProtocolAddRootSTLVToBuf [13:01:38]FM_MakeSignedData [13:01:38]FM_MakeSignedData [13:01:38]SAM_PROTO_SignData [13:01:38]wFMCommunicate request_size=4 [13:01:38]MH_SAM_APDU [13:01:38]CAPDU: 80 0D 01 02 [13:01:38]Write to MH i2c: E2 08 00 5A 1C 80 0D 01 02 00 00 00 00 EF [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:38]Read from MH i2c: E2 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 03 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [13:01:38]RAPDU: 90 00 [13:01:38]wFMCommunicate OK [13:01:38]wFMCommunicate request_size=255 [13:01:38]MH_SAM_APDU [13:01: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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 32 29 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 81 02 00 35 04 06 00 E6 D5 C7 54 [13:01:38]Write to MH i2c: E2 02 01 5B 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 32 29 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 81 02 00 35 04 06 00 E6 D5 C7 54 00 00 C4 [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:38]Read from MH i2c: E2 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 03 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 03 00 5B 1C 00 90 00 EB [13:01:38]RAPDU: 90 00 [13:01:38]wFMCommunicate OK [13:01:38]wFMCommunicate request_size=7 [13:01:38]MH_SAM_APDU [13:01:38]CAPDU: 80 0D 02 02 02 78 55 [13:01:38]Write to MH i2c: E2 0A 00 5C 1C 80 0D 02 02 02 00 78 55 00 00 C3 [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:38]Read from MH i2c: E2 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 03 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 03 00 5C 1C 00 90 00 EC [13:01:38]RAPDU: 90 00 [13:01:38]wFMCommunicate OK [13:01:38]wFMCommunicate request_size=4 [13:01:38]MH_SAM_APDU [13:01:38]CAPDU: 80 0D 03 02 [13:01:38]Write to MH i2c: E2 08 00 5D 1C 80 0D 03 02 00 00 00 00 F4 [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:38]Read from MH i2c: E2 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 0B 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 0B 00 5D 1C 00 88 C7 CC 4F E0 B2 30 13 90 00 34 [13:01:38]RAPDU: 88 C7 CC 4F E0 B2 30 13 90 00 [13:01:38]wFMCommunicate OK [13:01:38]SAM_PROTO_SignData done [13:01:38]FM_MakeSignedData done [13:01:38]CreateOFDProtocolMessage [13:01:38]wFMCommunicate request_size=4 [13:01:38]MH_SAM_APDU [13:01:38]CAPDU: 80 11 00 00 [13:01:38]Write to MH i2c: E2 08 00 5E 1C 80 11 00 00 00 00 00 00 F4 [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:38]Read from MH i2c: E2 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 17 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: E2 17 00 5E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [13:01:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:01:38]wFMCommunicate OK [13:01:38]CreateOFDProtocolMessage done [13:01:38]OFDSenderStorePacket 164216 [13:01:38]StoreOFDPacket docnum=164216 [13:01:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 97 37 04 01 AA D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 32 29 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 81 02 00 35 04 06 00 E6 D5 C7 54 78 55 88 C7 CC 4F E0 B2 30 13 [13:01:38]CheckFolder [13:01:38]dirname=/storage/ofd_packets [13:01:38]CheckFolder done [13:01:38]ProducePacketName [13:01:38]name=ofd_packets/00164216 [13:01:38]NVStorageSaveData ofd_packets/00164216 [13:01:38]File name is /storage/ofd_packets/00164216 [13:01:38]Write 298 bytes [13:01:38]NVStorageSaveData done [13:01:38]OFDSenderStorePacket done [13:01:38]KKMCreateOFDPacket done [13:01:38]NVStorageSaveData kkm_last_timestamp [13:01:38]File name is /storage/kkm_last_timestamp [13:01:38]Write 4 bytes [13:01:38]NVStorageSaveData done [13:01:38]ExternCall_PrintAddStr [13:01:38]wPrintStart [13:01:38]Write to MH i2c: 01 00 00 5F 1C 7B [13:01:38]Write i2c OK [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: 01 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: 01 07 00 [13:01:38]MH_I2C_Read... [13:01:38]Read from MH i2c: 01 07 00 5F 1C 00 00 00 00 00 FF 0F 90 [13:01:38]RasterBufferAndPrint [13:01:38]line Счет N : (1)458299 [13:01:38]line ИНН: 02508201610067 [13:01:38]line Контрольно-Кассовый Чек [13:01:38]line ПРОДАЖА [13:01:38]line ТРК (МРК, ГНК) : 21 [13:01:38]line Товар: 2710194210 [13:01:38]line ДТ-К-5 [13:01:38]line 8.350 * 71.90 [13:01:38]line = 600.37 [13:01:38]line НДС 12% НСП 1% [13:01:38]line > о реализуемом товаре [13:01:38]line ОКРУГЛЕНИЕ: -0.37 [13:01:38]line ИТОГО: 600.00 [13:01:38]line Внесено: 600.00 [13:01:38]line СДАЧА: 0.00 [13:01:38]line НСП 1% : 5.31 [13:01:38]line НДС 12% : 63.76 [13:01:38]line Наличными: 600.00 [13:01:38]line Безнал.: 0.00 [13:01:38]line Место: АЗС № 72 "Партнер Нефть" [13:01:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:01:38]line СНО: Общий режим [13:01:38]line Чек 137 12.07.2024 13:01 [13:01:38]line Смена: 445 ФФД: 1.0 [13:01:38]line ЗНМ: 0300000160 [13:01:38]line РНМ: 0000000000090829 [13:01:38]line Версия ККМ: 001 [13:01:38]line ФМ: 0000000000874718 [13:01:38]line ФД: 164216 [13:01:38]line ФПД: 253805846624341 [13:01:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130138&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164216&fm=253805846624341&tin=02508201610067®Number=0000000000090829&sum=60000 [13:01:38]OFD Sender: Processing packet 164216 [packets to send 104, broken 103] [13:01:38]ProducePacketName [13:01:38]name=ofd_packets/00164216 [13:01:38]OFD Sender: To server: pG, [13:01:38]CommunicateWithHost lk.salyk.kg:30040 [13:01:38]ConnectInit lk.salyk.kg [13:01:38]written 0, free lines is 4095 [13:01:39]Connected sock=10 [13:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 97 37 04 01 AA D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 32 29 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 81 02 00 35 04 06 00 E6 D5 C7 54 78 55 88 C7 CC 4F E0 B2 30 13 [13:01:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6F 7B 47 00 B7 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 34 37 31 38 10 04 04 00 78 81 02 00 F4 03 04 00 C6 CF 90 66 B6 04 01 00 00 06 92 F9 AB F4 8D 28 0C [13:01:39]CommunicateWithHost err = 0 [13:01:39]CheckOFDResponse [13:01:39]1017 (14) - 77093643461234 [13:01:39]1041 (16) - 0000000000874718 [13:01:39]1040 (4) - 164216 [13:01:39]1012 (4) - 12.07.2024 06:40 [13:01:39]1206 (1) - 0 [13:01:39]OFD Sender: Remove packet 164216 [13:01:39]ProducePacketName [13:01:39]name=ofd_packets/00164216 [13:01:39]NVStorageDeleteData [13:01:39]Write to MH i2c: 01 00 00 89 1C A5 [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: 01 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: 01 07 00 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: 01 07 00 89 1C 00 00 00 00 00 FE 0C B6 [13:01:39]RasterBufferAndPrint [13:01:39]line [13:01:39]line [13:01:39]line [13:01:39]line [13:01:39]line [13:01:39]written 0, free lines is 3335 [13:01:39]MH_Cut [13:01:39]Write to MH i2c: D1 01 00 90 1C 01 7E [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: D1 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: D1 01 00 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: D1 01 00 90 1C 00 7D [13:01:39]Write to MH i2c: 01 00 00 91 1C AD [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]OFD Sender: No OFD packet to send [13:01:40]*** Cut start [13:01:40]*** Partial cut [13:01:40]*** CUTSNS_PIN = 1 [13:01:40]*** CUTSNS_PIN = 0 [13:01:40]*** Brake cut motor [13:01:40]Read from MH i2c: 01 [13:01:40]MH_I2C_Read... [13:01:40]*** Stop cut motor [13:01:40]*** Cut end [13:01:40]Read from MH i2c: 01 07 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: 01 07 00 91 1C 00 00 00 00 00 FF 0F C2 [13:01:40]process_action close_receipt done [13:01:40]requested_data is exist [13:01:40]produce_requested_data [13:01:40]requested_item fm.sn is exist - process it [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 11 00 00 [13:01:40]Write to MH i2c: E2 08 00 92 1C 80 11 00 00 00 00 00 00 28 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 17 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 17 00 92 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [13:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:01:40]wFMCommunicate OK [13:01:40]requested_item fd.num is exist - process it [13:01:40]SAM_PROTO_GetFieldsCounters [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 13 00 00 [13:01:40]Write to MH i2c: E2 08 00 93 1C 80 13 00 00 00 00 00 00 2B [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 62 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 62 00 93 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [13:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:40]wFMCommunicate OK [13:01:40]SAM_PROTO_GetFieldsCounters done [13:01:40]requested_item shift.num is exist - process it [13:01:40]requested_item shift.opened is exist - process it [13:01:40]req_shift_opened [13:01:40]FM_GetShiftState [13:01:40]SAM_PROTO_GetShiftState [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 13 01 00 [13:01:40]Write to MH i2c: E2 08 00 94 1C 80 13 01 00 00 00 00 00 2D [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 0E 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 0E 00 94 1C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 77 [13:01:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:01:40]wFMCommunicate OK [13:01:40]SAM_PROTO_GetShiftState done [13:01:40]FM_GetShiftState done [13:01:40]req_shift_opened done [13:01:40]requested_item shift.open_date is exist - process it [13:01:40]req_shift_open_date [13:01:40]req_shift_open_date done [13:01:40]produce_requested_data done [13:01:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164216,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:01:40]process_action_free close_receipt [13:01:40]json_value_free [13:01:40]json_value_free done [13:01:40]process_json_proto returns [13:01:40]Send response to host [13:01:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164216,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:01:40]free response buf [13:01:40]execute_script done [13:01:40]execute_script returns [13:01:40]free content buf [13:01:40]Sock 7.Close socket [13:01:40]Sock 7.Thread stoped [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 9 [13:05:21]New connection [13:05:21]New thread 3066850660 created [13:05:21]Thread 3066707300 joined [13:05:21]Waiting for new connection... [13:05:21] Sock 9.Parse request [13:05:21]Sock 9.Check first char [13:05:21]Sock 9.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.56.4:8080 [13:05:21]Content-Length: 682 [13:05:21]Content-Type: application/json [13:05:21] [13:05:21]POST finish read [13:05:21]Found Content-Length = 682 [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)458300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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: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)458300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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: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 95 1C A0 [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 95 1C 00 12 2A 91 66 C9 DC B2 64 97 [13:05:21]GetLastDocTimeStamp 1720789298 [13:05:21]current date 1720789522 [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 96 1C 80 13 01 00 00 00 00 00 2F [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:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 0E 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 0E 00 96 1C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 79 [13:05:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:05:21]wFMCommunicate OK [13:05:21]SAM_PROTO_GetShiftState done [13:05:21]FM_GetShiftState done [13:05:21]opened in 1720744654 [13:05:21]opened+sec_in_day 1720831054 [13:05:21]quantity*price = 100016 [13:05:21]sum+1 = 100017 [13:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 138 12.07.2024 13:05 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164217 ФПД: 176220232910751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130522&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164217&fm=176220232910751&tin=02508201610067®Number=0000000000090829&sum=100000 [13:05:22]StoreToDocumentArchive [13:05:22]shift 445 fd 164217 [13:05:22]save to /storage/0445/doc_00164217 [13:05:22]save last doc name /storage/0445/doc_00164217 to /storage/kkm_last_doc_name [13:05:22]save OK [13:05:22]Clear old archive folders... [13:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:22]tlvbuf is B6EA8C40 [13:05:22]SAM_PROTO_ClearQueue [13:05:22]wFMCommunicate request_size=4 [13:05:22]MH_SAM_APDU [13:05:22]CAPDU: 80 09 00 00 [13:05:22]Write to MH i2c: E2 08 00 A3 1C 80 09 00 00 00 00 00 00 31 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 A3 1C 00 90 00 33 [13:05:22]RAPDU: 90 00 [13:05:22]wFMCommunicate OK [13:05:22]SAM_PROTO_ClearQueue done [13:05:22]KKMCreateOFDPacket [13:05:22]OFDProtocolAddRootSTLVToBuf [13:05:22]FM_MakeSignedData [13:05:22]FM_MakeSignedData [13:05:22]SAM_PROTO_SignData [13:05:22]wFMCommunicate request_size=4 [13:05:22]MH_SAM_APDU [13:05:22]CAPDU: 80 0D 01 02 [13:05:22]Write to MH i2c: E2 08 00 A4 1C 80 0D 01 02 00 00 00 00 39 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 A4 1C 00 90 00 34 [13:05:22]RAPDU: 90 00 [13:05:22]wFMCommunicate OK [13:05:22]wFMCommunicate request_size=255 [13:05:22]MH_SAM_APDU [13:05: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 12 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 81 02 00 35 04 06 00 A0 [13:05:22]Write to MH i2c: E2 02 01 A5 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 12 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 81 02 00 35 04 06 00 A0 00 00 6B [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [13:05:22]RAPDU: 90 00 [13:05:22]wFMCommunicate OK [13:05:22]wFMCommunicate request_size=10 [13:05:22]MH_SAM_APDU [13:05:22]CAPDU: 80 0D 02 02 05 45 78 62 87 9F [13:05:22]Write to MH i2c: E2 0D 00 A6 1C 80 0D 02 02 05 00 45 78 62 87 9F 00 00 8B [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 03 00 A6 1C 00 90 00 36 [13:05:22]RAPDU: 90 00 [13:05:22]wFMCommunicate OK [13:05:22]wFMCommunicate request_size=4 [13:05:22]MH_SAM_APDU [13:05:22]CAPDU: 80 0D 03 02 [13:05:22]Write to MH i2c: E2 08 00 A7 1C 80 0D 03 02 00 00 00 00 3E [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 0B 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 0B 00 A7 1C 00 CE 0C 89 5D FC 7D A3 0D 90 00 28 [13:05:22]RAPDU: CE 0C 89 5D FC 7D A3 0D 90 00 [13:05:22]wFMCommunicate OK [13:05:22]SAM_PROTO_SignData done [13:05:22]FM_MakeSignedData done [13:05:22]CreateOFDProtocolMessage [13:05:22]wFMCommunicate request_size=4 [13:05:22]MH_SAM_APDU [13:05:22]CAPDU: 80 11 00 00 [13:05:22]Write to MH i2c: E2 08 00 A8 1C 80 11 00 00 00 00 00 00 3E [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 17 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 17 00 A8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [13:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:05:22]wFMCommunicate OK [13:05:22]CreateOFDProtocolMessage done [13:05:22]OFDSenderStorePacket 164217 [13:05:22]StoreOFDPacket docnum=164217 [13:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 D4 07 01 B8 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 12 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 81 02 00 35 04 06 00 A0 45 78 62 87 9F CE 0C 89 5D FC 7D A3 0D [13:05:22]CheckFolder [13:05:22]dirname=/storage/ofd_packets [13:05:22]CheckFolder done [13:05:22]ProducePacketName [13:05:22]name=ofd_packets/00164217 [13:05:22]NVStorageSaveData ofd_packets/00164217 [13:05:22]File name is /storage/ofd_packets/00164217 [13:05:22]Write 301 bytes [13:05:22]NVStorageSaveData done [13:05:22]OFDSenderStorePacket done [13:05:22]KKMCreateOFDPacket done [13:05:22]NVStorageSaveData kkm_last_timestamp [13:05:22]File name is /storage/kkm_last_timestamp [13:05:22]Write 4 bytes [13:05:22]OFD Sender: Processing packet 164217 [packets to send 104, broken 103] [13:05:22]ProducePacketName [13:05:22]name=ofd_packets/00164217 [13:05:22]OFD Sender: To server: pG, [13:05:22]CommunicateWithHost lk.salyk.kg:30040 [13:05:22]ConnectInit lk.salyk.kg [13:05:22]NVStorageSaveData done [13:05:22]ExternCall_PrintAddStr [13:05:22]wPrintStart [13:05:22]Write to MH i2c: 01 00 00 A9 1C C5 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 A9 1C 00 00 00 00 00 FF 0F DA [13:05:22]RasterBufferAndPrint [13:05:22]line Счет N : (1)458300 [13:05:22]line ИНН: 02508201610067 [13:05:22]line Контрольно-Кассовый Чек [13:05:22]line ПРОДАЖА [13:05:22]line ТРК (МРК, ГНК) : 22 [13:05:22]line Товар: 2710124130 [13:05:22]line Аи-92-К-5 [13:05:22]line 15.200 * 65.80 [13:05:22]line = 1000.16 [13:05:22]line НДС 12% НСП 1% [13:05:22]line > о реализуемом товаре [13:05:22]line ОКРУГЛЕНИЕ: -0.16 [13:05:22]line ИТОГО: 1000.00 [13:05:22]line Внесено: 1000.00 [13:05:22]line СДАЧА: 0.00 [13:05:22]line НСП 1% : 8.85 [13:05:22]line НДС 12% : 106.21 [13:05:22]line Наличными: 1000.00 [13:05:22]line Безнал.: 0.00 [13:05:22]line Место: АЗС № 72 "Партнер Нефть" [13:05:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:05:22]line СНО: Общий режим [13:05:22]line Чек 138 12.07.2024 13:05 [13:05:22]line Смена: 445 ФФД: 1.0 [13:05:22]line ЗНМ: 0300000160 [13:05:22]line РНМ: 0000000000090829 [13:05:22]line Версия ККМ: 001 [13:05:22]line ФМ: 0000000000874718 [13:05:22]line ФД: 164217 [13:05:22]line ФПД: 176220232910751 [13:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130522&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164217&fm=176220232910751&tin=02508201610067®Number=0000000000090829&sum=100000 [13:05:23]written 0, free lines is 4095 [13:05:23]Write to MH i2c: 01 00 00 D3 1C EF [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 D3 1C 00 00 00 00 00 F7 0C F9 [13:05:23]RasterBufferAndPrint [13:05:23]line [13:05:23]line [13:05:23]line [13:05:23]line [13:05:23]line [13:05:23]written 0, free lines is 3323 [13:05:23]MH_Cut [13:05:23]Write to MH i2c: D1 01 00 DA 1C 01 C8 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: D1 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: D1 01 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: D1 01 00 DA 1C 00 C7 [13:05:23]Write to MH i2c: 01 00 00 DB 1C F7 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:24]*** Cut start [13:05:24]*** Partial cut [13:05:24]*** CUTSNS_PIN = 1 [13:05:24]*** CUTSNS_PIN = 0 [13:05:24]*** Brake cut motor [13:05:24]Read from MH i2c: 01 [13:05:24]MH_I2C_Read... [13:05:24]*** Stop cut motor [13:05:24]*** Cut end [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 DB 1C 00 00 00 00 00 FF 0F 0C [13:05:24]process_action close_receipt done [13:05:24]requested_data is exist [13:05:24]produce_requested_data [13:05:24]requested_item fm.sn is exist - process it [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 11 00 00 [13:05:24]Write to MH i2c: E2 08 00 DC 1C 80 11 00 00 00 00 00 00 72 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 17 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 17 00 DC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [13:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:05:24]wFMCommunicate OK [13:05:24]requested_item fd.num is exist - process it [13:05:24]SAM_PROTO_GetFieldsCounters [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 13 00 00 [13:05:24]Write to MH i2c: E2 08 00 DD 1C 80 13 00 00 00 00 00 00 75 [13:05:24]Write i2c OK [13:05:24]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 DD 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13: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 DE 1C 80 13 01 00 00 00 00 00 77 [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 DE 1C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C1 [13:05:25]RAPDU: 09 00 01 CE 7A 90 66 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":"0000000000874718","fd.num":164217,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [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":"0000000000874718","fd.num":164217,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [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 9.Close socket [13:05:25]Sock 9.Thread stoped [13:06:54]accept exits with 7 [13:06:54]New connection [13:06:54]New thread 3066707300 created [13:06:54]Thread 3066850660 joined [13:06:54]Waiting for new connection... [13:06:54] Sock 7.Parse request [13:06:54]Sock 7.Check first char [13:06:54]Sock 7.First char is OK [13:06:54]request: POST /json_proto HTTP/1.0 [13:06:54]Method: POST [13:06:54]URL: /json_proto [13:06:54]Method is POST - this is cgi request [13:06:54]url: /json_proto [13:06:54]query_string will be loaded in cgi processing [13:06:54]execute_cgi json_proto POST (null) [13:06:54]execute_cgi path=json_proto method=POST [13:06:54]POST find Content-Length [13:06:54]Host: 172.17.56.4:8080 [13:06:54]Content-Length: 677 [13:06:54]Content-Type: application/json [13:06:54] [13:06:54]POST finish read [13:06:54]Found Content-Length = 677 [13:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:54]execute_script... [13: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)458301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:54]POST & json_proto [13:06:54]process_json_proto [13:06:54]json parsed OK: [13:06:54]protocol is kg_v1.0 [13:06:54]action value=close_receipt [13:06:54]process_action close_receipt [13:06:54]cmd_close_receipt [13:06:54]MH_GetDate [13:06:54]Write to MH i2c: F0 00 00 DF 1C EA [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: F0 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: F0 09 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: F0 09 00 DF 1C 00 6F 2A 91 66 C9 DC B2 64 3E [13:06:54]GetLastDocTimeStamp 1720789522 [13:06:54]current date 1720789615 [13:06:54]FM_GetShiftState [13:06:54]SAM_PROTO_GetShiftState [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 13 01 00 [13:06:54]Write to MH i2c: E2 08 00 E0 1C 80 13 01 00 00 00 00 00 79 [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 0E 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 0E 00 E0 1C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C3 [13:06:54]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:06:54]wFMCommunicate OK [13:06:54]SAM_PROTO_GetShiftState done [13:06:54]FM_GetShiftState done [13:06:54]opened in 1720744654 [13:06:54]opened+sec_in_day 1720831054 [13:06:54]quantity*price = 14015 [13:06:54]sum+1 = 14016 [13:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.88 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 139 12.07.2024 13:06 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164218 ФПД: 238182381823518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130655&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164218&fm=238182381823518&tin=02508201610067®Number=0000000000090829&sum=14000 [13:06:55]StoreToDocumentArchive [13:06:55]shift 445 fd 164218 [13:06:55]save to /storage/0445/doc_00164218 [13:06:55]save last doc name /storage/0445/doc_00164218 to /storage/kkm_last_doc_name [13:06:55]save OK [13:06:55]Clear old archive folders... [13:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:55]tlvbuf is 00A8E800 [13:06:55]SAM_PROTO_ClearQueue [13:06:55]wFMCommunicate request_size=4 [13:06:55]MH_SAM_APDU [13:06:55]CAPDU: 80 09 00 00 [13:06:55]Write to MH i2c: E2 08 00 ED 1C 80 09 00 00 00 00 00 00 7B [13:06:55]Write i2c OK [13:06:55]MH_I2C_Read... [13:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:55]Read from MH i2c: E2 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 03 00 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [13:06:55]RAPDU: 90 00 [13:06:55]wFMCommunicate OK [13:06:55]SAM_PROTO_ClearQueue done [13:06:55]KKMCreateOFDPacket [13:06:55]OFDProtocolAddRootSTLVToBuf [13:06:55]FM_MakeSignedData [13:06:55]FM_MakeSignedData [13:06:55]SAM_PROTO_SignData [13:06:55]wFMCommunicate request_size=4 [13:06:55]MH_SAM_APDU [13:06:55]CAPDU: 80 0D 01 02 [13:06:55]Write to MH i2c: E2 08 00 EE 1C 80 0D 01 02 00 00 00 00 83 [13:06:55]Write i2c OK [13:06:55]MH_I2C_Read... [13:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:55]Read from MH i2c: E2 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 03 00 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 03 00 EE 1C 00 90 00 7E [13:06:55]RAPDU: 90 00 [13:06:55]wFMCommunicate OK [13:06:55]wFMCommunicate request_size=255 [13:06:55]MH_SAM_APDU [13: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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 6F 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 81 02 00 35 04 06 00 D8 [13:06:55]Write to MH i2c: E2 02 01 EF 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 6F 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 81 02 00 35 04 06 00 D8 00 00 7A [13:06:55]Write i2c OK [13:06:55]MH_I2C_Read... [13:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:55]Read from MH i2c: E2 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 03 00 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 03 00 EF 1C 00 90 00 7F [13:06:55]RAPDU: 90 00 [13:06:55]wFMCommunicate OK [13:06:55]wFMCommunicate request_size=10 [13:06:55]MH_SAM_APDU [13:06:55]CAPDU: 80 0D 02 02 05 A0 28 42 A6 1E [13:06:55]Write to MH i2c: E2 0D 00 F0 1C 80 0D 02 02 05 00 A0 28 42 A6 1E 00 00 5E [13:06:55]Write i2c OK [13:06:55]MH_I2C_Read... [13:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:55]Read from MH i2c: E2 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 03 00 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 03 00 F0 1C 00 90 00 80 [13:06:55]RAPDU: 90 00 [13:06:55]wFMCommunicate OK [13:06:55]wFMCommunicate request_size=4 [13:06:55]MH_SAM_APDU [13:06:55]CAPDU: 80 0D 03 02 [13:06:55]Write to MH i2c: E2 08 00 F1 1C 80 0D 03 02 00 00 00 00 88 [13:06:55]Write i2c OK [13:06:55]MH_I2C_Read... [13:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:56]Read from MH i2c: E2 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: E2 0B 00 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: E2 0B 00 F1 1C 00 E6 1B 05 DA DD E4 18 3A 90 00 7C [13:06:56]RAPDU: E6 1B 05 DA DD E4 18 3A 90 00 [13:06:56]wFMCommunicate OK [13:06:56]SAM_PROTO_SignData done [13:06:56]FM_MakeSignedData done [13:06:56]CreateOFDProtocolMessage [13:06:56]wFMCommunicate request_size=4 [13:06:56]MH_SAM_APDU [13:06:56]CAPDU: 80 11 00 00 [13:06:56]Write to MH i2c: E2 08 00 F2 1C 80 11 00 00 00 00 00 00 88 [13:06:56]Write i2c OK [13:06:56]MH_I2C_Read... [13:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:56]Read from MH i2c: E2 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: E2 17 00 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: E2 17 00 F2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [13:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:06:56]wFMCommunicate OK [13:06:56]CreateOFDProtocolMessage done [13:06:56]OFDSenderStorePacket 164218 [13:06:56]StoreOFDPacket docnum=164218 [13:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 45 8F 07 01 72 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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 6F 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 81 02 00 35 04 06 00 D8 A0 28 42 A6 1E E6 1B 05 DA DD E4 18 3A [13:06:56]CheckFolder [13:06:56]dirname=/storage/ofd_packets [13:06:56]CheckFolder done [13:06:56]ProducePacketName [13:06:56]name=ofd_packets/00164218 [13:06:56]NVStorageSaveData ofd_packets/00164218 [13:06:56]File name is /storage/ofd_packets/00164218 [13:06:56]Write 301 bytes [13:06:56]NVStorageSaveData done [13:06:56]OFDSenderStorePacket done [13:06:56]KKMCreateOFDPacket done [13:06:56]NVStorageSaveData kkm_last_timestamp [13:06:56]File name is /storage/kkm_last_timestamp [13:06:56]Write 4 bytes [13:06:56]NVStorageSaveData done [13:06:56]ExternCall_PrintAddStr [13:06:56]wPrintStart [13:06:56]Write to MH i2c: 01 00 00 F3 1C 0F [13:06:56]Write i2c OK [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: 01 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: 01 07 00 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: 01 07 00 F3 1C 00 00 00 00 00 FF 0F 24 [13:06:56]RasterBufferAndPrint [13:06:56]line Счет N : (1)458301 [13:06:56]line ИНН: 02508201610067 [13:06:56]line Контрольно-Кассовый Чек [13:06:56]line ПРОДАЖА [13:06:56]line ТРК (МРК, ГНК) : 12 [13:06:56]line Товар: 2710124130 [13:06:56]line Аи-92-К-5 [13:06:56]line 2.130 * 65.80 [13:06:56]line = 140.15 [13:06:56]line НДС 12% НСП 1% [13:06:56]line > о реализуемом товаре [13:06:56]line ОКРУГЛЕНИЕ: -0.15 [13:06:56]line ИТОГО: 140.00 [13:06:56]line Внесено: 140.00 [13:06:56]line СДАЧА: 0.00 [13:06:56]line НСП 1% : 1.24 [13:06:56]line НДС 12% : 14.88 [13:06:56]line Наличными: 140.00 [13:06:56]line Безнал.: 0.00 [13:06:56]line Место: АЗС № 72 "Партнер Нефть" [13:06:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:06:56]line СНО: Общий режим [13:06:56]line Чек 139 12.07.2024 13:06 [13:06:56]line Смена: 445 ФФД: 1.0 [13:06:56]line ЗНМ: 0300000160 [13:06:56]line РНМ: 0000000000090829 [13:06:56]line Версия ККМ: 001 [13:06:56]line ФМ: 0000000000874718 [13:06:56]line ФД: 164218 [13:06:56]line ФПД: 238182381823518 [13:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130655&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164218&fm=238182381823518&tin=02508201610067®Number=0000000000090829&sum=14000 [13:06:56]written 0, free lines is 4095 [13:06:56]Write to MH i2c: 01 00 00 1D 1D 3A [13:06:56]Write i2c OK [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: 01 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: 01 07 00 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: 01 07 00 1D 1D 00 00 00 00 00 F2 0C 3F [13:06:56]RasterBufferAndPrint [13:06:56]line [13:06:56]line [13:06:56]line [13:06:56]line [13:06:56]line [13:06:56]written 0, free lines is 3322 [13:06:56]MH_Cut [13:06:56]Write to MH i2c: D1 01 00 24 1D 01 13 [13:06:56]Write i2c OK [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: D1 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: D1 01 00 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: D1 01 00 24 1D 00 12 [13:06:56]Write to MH i2c: 01 00 00 25 1D 42 [13:06:56]Write i2c OK [13:06:56]MH_I2C_Read... [13:06:57]*** Cut start [13:06:57]*** Partial cut [13:06:57]*** CUTSNS_PIN = 1 [13:06:57]*** CUTSNS_PIN = 0 [13:06:57]*** Brake cut motor [13:06:58]Read from MH i2c: 01 [13:06:58]MH_I2C_Read... [13:06:58]*** Stop cut motor [13:06:58]*** Cut end [13:06:58]Read from MH i2c: 01 07 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: 01 07 00 25 1D 00 00 00 00 00 FF 0F 57 [13:06:58]process_action close_receipt done [13:06:58]requested_data is exist [13:06:58]produce_requested_data [13:06:58]requested_item fm.sn is exist - process it [13:06:58]wFMCommunicate request_size=4 [13:06:58]MH_SAM_APDU [13:06:58]CAPDU: 80 11 00 00 [13:06:58]Write to MH i2c: E2 08 00 26 1D 80 11 00 00 00 00 00 00 BD [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 17 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 17 00 26 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [13:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:06:58]wFMCommunicate OK [13:06:58]requested_item fd.num is exist - process it [13:06:58]SAM_PROTO_GetFieldsCounters [13:06:58]wFMCommunicate request_size=4 [13:06:58]MH_SAM_APDU [13:06:58]CAPDU: 80 13 00 00 [13:06:58]Write to MH i2c: E2 08 00 27 1D 80 13 00 00 00 00 00 00 C0 [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 62 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 62 00 27 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:58]wFMCommunicate OK [13:06:58]SAM_PROTO_GetFieldsCounters done [13:06:58]requested_item shift.num is exist - process it [13:06:58]requested_item shift.opened is exist - process it [13:06:58]req_shift_opened [13:06:58]FM_GetShiftState [13:06:58]SAM_PROTO_GetShiftState [13:06:58]wFMCommunicate request_size=4 [13:06:58]MH_SAM_APDU [13:06:58]CAPDU: 80 13 01 00 [13:06:58]Write to MH i2c: E2 08 00 28 1D 80 13 01 00 00 00 00 00 C2 [13:06:58]Write i2c OK [13:06:58]MH_I2C_Read... [13:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:58]Read from MH i2c: E2 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 0E 00 [13:06:58]MH_I2C_Read... [13:06:58]Read from MH i2c: E2 0E 00 28 1D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0C [13:06:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:06:58]wFMCommunicate OK [13:06:58]SAM_PROTO_GetShiftState done [13:06:58]FM_GetShiftState done [13:06:58]req_shift_opened done [13:06:58]requested_item shift.open_date is exist - process it [13:06:58]req_shift_open_date [13:06:58]req_shift_open_date done [13:06:58]produce_requested_data done [13:06:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164218,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:06:58]process_action_free close_receipt [13:06:58]json_value_free [13:06:58]json_value_free done [13:06:58]process_json_proto returns [13:06:58]Send response to host [13:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164218,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:06:58]free response buf [13:06:58]execute_script done [13:06:58]execute_script returns [13:06:58]free content buf [13:06:58]Sock 7.Close socket [13:06:58]Sock 7.Thread stoped [13:07:32]ConnectInit Can't connect to host [13:07:32]CommunicateWithHost connect error [13:07:32]CommunicateWithHost err = -1 [13:07:32]OFD Sender: Server communicate error [13:07:33]OFD Sender: Processing packet 164217 [packets to send 105, broken 103] [13:07:33]ProducePacketName [13:07:33]name=ofd_packets/00164217 [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]Connected sock=7 [13:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 D4 07 01 B8 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 12 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 81 02 00 35 04 06 00 A0 45 78 62 87 9F CE 0C 89 5D FC 7D A3 0D [13:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 05 66 47 00 BF 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 81 02 00 F4 03 04 00 28 D1 90 66 B6 04 01 00 00 0F 0E 93 FD 70 7D 43 55 [13:07:33]CommunicateWithHost err = 0 [13:07:33]CheckOFDResponse [13:07:33]1017 (14) - 77093643461234 [13:07:33]1041 (16) - 0000000000874718 [13:07:33]1040 (4) - 164217 [13:07:33]1012 (4) - 12.07.2024 06:46 [13:07:33]1206 (1) - 0 [13:07:33]OFD Sender: Remove packet 164217 [13:07:33]ProducePacketName [13:07:33]name=ofd_packets/00164217 [13:07:33]NVStorageDeleteData [13:07:33]OFD Sender: Processing packet 164218 [packets to send 104, broken 103] [13:07:33]ProducePacketName [13:07:33]name=ofd_packets/00164218 [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]Connected sock=7 [13:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 45 8F 07 01 72 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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 6F 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 81 02 00 35 04 06 00 D8 A0 28 42 A6 1E E6 1B 05 DA DD E4 18 3A [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 34 37 31 38 4F 00 00 00 83 15 47 00 F5 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 81 02 00 F4 03 04 00 29 D1 90 66 B6 04 01 00 00 81 CE B5 2D 3F 01 0D 31 [13:07:34]CommunicateWithHost err = 0 [13:07:34]CheckOFDResponse [13:07:34]1017 (14) - 77093643461234 [13:07:34]1041 (16) - 0000000000874718 [13:07:34]1040 (4) - 164218 [13:07:34]1012 (4) - 12.07.2024 06:46 [13:07:34]1206 (1) - 0 [13:07:34]OFD Sender: Remove packet 164218 [13:07:34]ProducePacketName [13:07:34]name=ofd_packets/00164218 [13:07:34]NVStorageDeleteData [13:07:34]OFD Sender: No OFD packet to send [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:58]accept exits with 9 [13:08:58]New connection [13:08:58]New thread 3066850660 created [13:08:58]Thread 3066707300 joined [13:08:58]Waiting for new connection... [13:08:58] Sock 9.Parse request [13:08:58]Sock 9.Check first char [13:08:58]Sock 9.First char is OK [13:08:58]request: POST /json_proto HTTP/1.0 [13:08:58]Method: POST [13:08:58]URL: /json_proto [13:08:58]Method is POST - this is cgi request [13:08:58]url: /json_proto [13:08:58]query_string will be loaded in cgi processing [13:08:58]execute_cgi json_proto POST (null) [13:08:58]execute_cgi path=json_proto method=POST [13:08:58]POST find Content-Length [13:08:58]Host: 172.17.56.4:8080 [13:08:58]Content-Length: 677 [13:08:58]Content-Type: application/json [13:08:58] [13:08:58]POST finish read [13:08:58]Found Content-Length = 677 [13:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:58]execute_script... [13:08:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:58]POST & json_proto [13:08:58]process_json_proto [13:08:58]json parsed OK: [13:08:58]protocol is kg_v1.0 [13:08:58]action value=close_receipt [13:08:58]process_action close_receipt [13:08:58]cmd_close_receipt [13:08:58]MH_GetDate [13:08:58]Write to MH i2c: F0 00 00 29 1D 35 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: F0 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: F0 09 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: F0 09 00 29 1D 00 EB 2A 91 66 C9 DC B2 64 05 [13:08:58]GetLastDocTimeStamp 1720789615 [13:08:58]current date 1720789739 [13:08:58]FM_GetShiftState [13:08:58]SAM_PROTO_GetShiftState [13:08:58]wFMCommunicate request_size=4 [13:08:58]MH_SAM_APDU [13:08:58]CAPDU: 80 13 01 00 [13:08:58]Write to MH i2c: E2 08 00 2A 1D 80 13 01 00 00 00 00 00 C4 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:58]Read from MH i2c: E2 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 0E 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: E2 0E 00 2A 1D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0E [13:08:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:08:58]wFMCommunicate OK [13:08:58]SAM_PROTO_GetShiftState done [13:08:58]FM_GetShiftState done [13:08:58]opened in 1720744654 [13:08:58]opened+sec_in_day 1720831054 [13:08:58]quantity*price = 30004 [13:08:58]sum+1 = 30006 [13:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 140 12.07.2024 13:08 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164219 ФПД: 157682353072708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164219&fm=157682353072708&tin=02508201610067®Number=0000000000090829&sum=30000 [13:08:59]StoreToDocumentArchive [13:08:59]shift 445 fd 164219 [13:08:59]save to /storage/0445/doc_00164219 [13:08:59]save last doc name /storage/0445/doc_00164219 to /storage/kkm_last_doc_name [13:08:59]save OK [13:08:59]Clear old archive folders... [13:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:59]tlvbuf is B6F3C010 [13:08:59]SAM_PROTO_ClearQueue [13:08:59]wFMCommunicate request_size=4 [13:08:59]MH_SAM_APDU [13:08:59]CAPDU: 80 09 00 00 [13:08:59]Write to MH i2c: E2 08 00 37 1D 80 09 00 00 00 00 00 00 C6 [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 [13:08:59]MH_I2C_Read... [13:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:59]Read from MH i2c: E2 03 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [13:08:59]RAPDU: 90 00 [13:08:59]wFMCommunicate OK [13:08:59]SAM_PROTO_ClearQueue done [13:08:59]KKMCreateOFDPacket [13:08:59]OFDProtocolAddRootSTLVToBuf [13:08:59]FM_MakeSignedData [13:08:59]FM_MakeSignedData [13:08:59]SAM_PROTO_SignData [13:08:59]wFMCommunicate request_size=4 [13:08:59]MH_SAM_APDU [13:08:59]CAPDU: 80 0D 01 02 [13:08:59]Write to MH i2c: E2 08 00 38 1D 80 0D 01 02 00 00 00 00 CE [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:59]Read from MH i2c: E2 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 03 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 03 00 38 1D 00 90 00 C9 [13:08:59]RAPDU: 90 00 [13:08:59]wFMCommunicate OK [13:08:59]wFMCommunicate request_size=255 [13:08:59]MH_SAM_APDU [13:08:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 EB 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 81 02 00 35 04 06 00 8F [13:08:59]Write to MH i2c: E2 02 01 39 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 EB 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 81 02 00 35 04 06 00 8F 00 00 EB [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]OFD Sender: No OFD packet to send [13:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:59]Read from MH i2c: E2 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 03 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 03 00 39 1D 00 90 00 CA [13:08:59]RAPDU: 90 00 [13:08:59]wFMCommunicate OK [13:08:59]wFMCommunicate request_size=10 [13:08:59]MH_SAM_APDU [13:08:59]CAPDU: 80 0D 02 02 05 69 48 A4 6A 44 [13:08:59]Write to MH i2c: E2 0D 00 3A 1D 80 0D 02 02 05 00 69 48 A4 6A 44 00 00 DE [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:59]Read from MH i2c: E2 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 03 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 03 00 3A 1D 00 90 00 CB [13:08:59]RAPDU: 90 00 [13:08:59]wFMCommunicate OK [13:08:59]wFMCommunicate request_size=4 [13:08:59]MH_SAM_APDU [13:08:59]CAPDU: 80 0D 03 02 [13:08:59]Write to MH i2c: E2 08 00 3B 1D 80 0D 03 02 00 00 00 00 D3 [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:59]Read from MH i2c: E2 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 0B 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 0B 00 3B 1D 00 27 53 1C 82 05 4F 5E EC 90 00 8A [13:08:59]RAPDU: 27 53 1C 82 05 4F 5E EC 90 00 [13:08:59]wFMCommunicate OK [13:08:59]SAM_PROTO_SignData done [13:08:59]FM_MakeSignedData done [13:08:59]CreateOFDProtocolMessage [13:08:59]wFMCommunicate request_size=4 [13:08:59]MH_SAM_APDU [13:08:59]CAPDU: 80 11 00 00 [13:08:59]Write to MH i2c: E2 08 00 3C 1D 80 11 00 00 00 00 00 00 D3 [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:59]Read from MH i2c: E2 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 17 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: E2 17 00 3C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [13:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:08:59]wFMCommunicate OK [13:08:59]CreateOFDProtocolMessage done [13:08:59]OFDSenderStorePacket 164219 [13:08:59]StoreOFDPacket docnum=164219 [13:08:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E 9A 07 01 DA 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 EB 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 81 02 00 35 04 06 00 8F 69 48 A4 6A 44 27 53 1C 82 05 4F 5E EC [13:08:59]CheckFolder [13:08:59]dirname=/storage/ofd_packets [13:08:59]CheckFolder done [13:08:59]ProducePacketName [13:08:59]name=ofd_packets/00164219 [13:08:59]NVStorageSaveData ofd_packets/00164219 [13:08:59]File name is /storage/ofd_packets/00164219 [13:08:59]Write 301 bytes [13:08:59]NVStorageSaveData done [13:08:59]OFDSenderStorePacket done [13:08:59]KKMCreateOFDPacket done [13:08:59]NVStorageSaveData kkm_last_timestamp [13:08:59]File name is /storage/kkm_last_timestamp [13:08:59]Write 4 bytes [13:08:59]NVStorageSaveData done [13:08:59]ExternCall_PrintAddStr [13:08:59]wPrintStart [13:08:59]Write to MH i2c: 01 00 00 3D 1D 5A [13:08:59]Write i2c OK [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: 01 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: 01 07 00 [13:08:59]MH_I2C_Read... [13:08:59]Read from MH i2c: 01 07 00 3D 1D 00 00 00 00 00 FF 0F 6F [13:08:59]RasterBufferAndPrint [13:08:59]line Счет N : (1)458302 [13:08:59]line ИНН: 02508201610067 [13:08:59]line Контрольно-Кассовый Чек [13:08:59]line ПРОДАЖА [13:08:59]line ТРК (МРК, ГНК) : 22 [13:08:59]line Товар: 2710124130 [13:08:59]line Аи-92-К-5 [13:08:59]line 4.560 * 65.80 [13:08:59]line = 300.05 [13:08:59]line НДС 12% НСП 1% [13:08:59]line > о реализуемом товаре [13:08:59]line ОКРУГЛЕНИЕ: -0.05 [13:08:59]line ИТОГО: 300.00 [13:08:59]line Внесено: 300.00 [13:08:59]line СДАЧА: 0.00 [13:08:59]line НСП 1% : 2.65 [13:08:59]line НДС 12% : 31.86 [13:08:59]line Наличными: 300.00 [13:08:59]line Безнал.: 0.00 [13:08:59]line Место: АЗС № 72 "Партнер Нефть" [13:08:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:08:59]line СНО: Общий режим [13:08:59]line Чек 140 12.07.2024 13:08 [13:08:59]line Смена: 445 ФФД: 1.0 [13:08:59]line ЗНМ: 0300000160 [13:08:59]line РНМ: 0000000000090829 [13:08:59]line Версия ККМ: 001 [13:08:59]line ФМ: 0000000000874718 [13:08:59]line ФД: 164219 [13:08:59]line ФПД: 157682353072708 [13:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164219&fm=157682353072708&tin=02508201610067®Number=0000000000090829&sum=30000 [13:09:00]OFD Sender: Processing packet 164219 [packets to send 104, broken 103] [13:09:00]ProducePacketName [13:09:00]name=ofd_packets/00164219 [13:09:00]OFD Sender: To server: pG, [13:09:00]CommunicateWithHost lk.salyk.kg:30040 [13:09:00]ConnectInit lk.salyk.kg [13:09:00]written 0, free lines is 4095 [13:09:00]Connected sock=10 [13:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E 9A 07 01 DA 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 EB 2A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 81 02 00 35 04 06 00 8F 69 48 A4 6A 44 27 53 1C 82 05 4F 5E EC [13:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E6 62 47 00 86 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 34 37 31 38 10 04 04 00 7B 81 02 00 F4 03 04 00 7F D1 90 66 B6 04 01 00 00 6D 01 1C D0 A0 15 51 6E [13:09:00]CommunicateWithHost err = 0 [13:09:00]CheckOFDResponse [13:09:00]1017 (14) - 77093643461234 [13:09:00]1041 (16) - 0000000000874718 [13:09:00]1040 (4) - 164219 [13:09:00]1012 (4) - 12.07.2024 06:47 [13:09:00]1206 (1) - 0 [13:09:00]OFD Sender: Remove packet 164219 [13:09:00]ProducePacketName [13:09:00]name=ofd_packets/00164219 [13:09:00]NVStorageDeleteData [13:09:00]Write to MH i2c: 01 00 00 67 1D 84 [13:09:00]Write i2c OK [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: 01 [13:09:00]MH_I2C_Read... [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 67 1D 00 00 00 00 00 F6 0C 8D [13:09:00]RasterBufferAndPrint [13:09:00]line [13:09:00]line [13:09:00]line [13:09:00]line [13:09:00]line [13:09:00]written 0, free lines is 3324 [13:09:00]MH_Cut [13:09:00]Write to MH i2c: D1 01 00 6E 1D 01 5D [13:09:00]Write i2c OK [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: D1 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: D1 01 00 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: D1 01 00 6E 1D 00 5C [13:09:00]Write to MH i2c: 01 00 00 6F 1D 8C [13:09:00]Write i2c OK [13:09:00]MH_I2C_Read... [13:09:01]OFD Sender: No OFD packet to send [13:09:01]*** Cut start [13:09:01]*** Partial cut [13:09:01]*** CUTSNS_PIN = 1 [13:09:01]*** CUTSNS_PIN = 0 [13:09:01]*** Brake cut motor [13:09:01]Read from MH i2c: 01 [13:09:01]MH_I2C_Read... [13:09:01]*** Stop cut motor [13:09:01]*** Cut end [13:09:01]Read from MH i2c: 01 07 00 [13:09:01]MH_I2C_Read... [13:09:01]Read from MH i2c: 01 07 00 6F 1D 00 00 00 00 00 FF 0F A1 [13:09:01]process_action close_receipt done [13:09:01]requested_data is exist [13:09:01]produce_requested_data [13:09:01]requested_item fm.sn is exist - process it [13:09:01]wFMCommunicate request_size=4 [13:09:01]MH_SAM_APDU [13:09:01]CAPDU: 80 11 00 00 [13:09:01]Write to MH i2c: E2 08 00 70 1D 80 11 00 00 00 00 00 00 07 [13:09:01]Write i2c OK [13:09:01]MH_I2C_Read... [13:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:02]Read from MH i2c: E2 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: E2 17 00 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: E2 17 00 70 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [13:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:09:02]wFMCommunicate OK [13:09:02]requested_item fd.num is exist - process it [13:09:02]SAM_PROTO_GetFieldsCounters [13:09:02]wFMCommunicate request_size=4 [13:09:02]MH_SAM_APDU [13:09:02]CAPDU: 80 13 00 00 [13:09:02]Write to MH i2c: E2 08 00 71 1D 80 13 00 00 00 00 00 00 0A [13:09:02]Write i2c OK [13:09:02]MH_I2C_Read... [13:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:02]Read from MH i2c: E2 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: E2 62 00 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: E2 62 00 71 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [13:09:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:02]wFMCommunicate OK [13:09:02]SAM_PROTO_GetFieldsCounters done [13:09:02]requested_item shift.num is exist - process it [13:09:02]requested_item shift.opened is exist - process it [13:09:02]req_shift_opened [13:09:02]FM_GetShiftState [13:09:02]SAM_PROTO_GetShiftState [13:09:02]wFMCommunicate request_size=4 [13:09:02]MH_SAM_APDU [13:09:02]CAPDU: 80 13 01 00 [13:09:02]Write to MH i2c: E2 08 00 72 1D 80 13 01 00 00 00 00 00 0C [13:09:02]Write i2c OK [13:09:02]MH_I2C_Read... [13:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:02]Read from MH i2c: E2 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: E2 0E 00 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: E2 0E 00 72 1D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 56 [13:09:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:09:02]wFMCommunicate OK [13:09:02]SAM_PROTO_GetShiftState done [13:09:02]FM_GetShiftState done [13:09:02]req_shift_opened done [13:09:02]requested_item shift.open_date is exist - process it [13:09:02]req_shift_open_date [13:09:02]req_shift_open_date done [13:09:02]produce_requested_data done [13:09:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164219,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:09:02]process_action_free close_receipt [13:09:02]json_value_free [13:09:02]json_value_free done [13:09:02]process_json_proto returns [13:09:02]Send response to host [13:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164219,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:09:02]free response buf [13:09:02]execute_script done [13:09:02]execute_script returns [13:09:02]free content buf [13:09:02]Sock 9.Close socket [13:09:02]Sock 9.Thread stoped [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:54]accept exits with 7 [13:09:54]New connection [13:09:54]New thread 3066707300 created [13:09:54]Thread 3066850660 joined [13:09:54]Waiting for new connection... [13:09:54] Sock 7.Parse request [13:09:54]Sock 7.Check first char [13:09:54]Sock 7.First char is OK [13:09:54]request: POST /json_proto HTTP/1.0 [13:09:54]Method: POST [13:09:54]URL: /json_proto [13:09:54]Method is POST - this is cgi request [13:09:54]url: /json_proto [13:09:54]query_string will be loaded in cgi processing [13:09:54]execute_cgi json_proto POST (null) [13:09:54]execute_cgi path=json_proto method=POST [13:09:54]POST find Content-Length [13:09:54]Host: 172.17.56.4:8080 [13:09:54]Content-Length: 677 [13:09:54]Content-Type: application/json [13:09:54] [13:09:54]POST finish read [13:09:54]Found Content-Length = 677 [13:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:54]execute_script... [13:09: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)458303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:54]POST & json_proto [13:09:54]process_json_proto [13:09:54]json parsed OK: [13:09:54]protocol is kg_v1.0 [13:09:54]action value=close_receipt [13:09:54]process_action close_receipt [13:09:54]cmd_close_receipt [13:09:54]MH_GetDate [13:09:54]Write to MH i2c: F0 00 00 73 1D 7F [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: F0 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: F0 09 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: F0 09 00 73 1D 00 23 2B 91 66 C9 DC B2 64 88 [13:09:54]GetLastDocTimeStamp 1720789739 [13:09:54]current date 1720789795 [13:09:54]FM_GetShiftState [13:09:54]SAM_PROTO_GetShiftState [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 13 01 00 [13:09:54]Write to MH i2c: E2 08 00 74 1D 80 13 01 00 00 00 00 00 0E [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0E 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0E 00 74 1D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 58 [13:09:54]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:09:54]wFMCommunicate OK [13:09:54]SAM_PROTO_GetShiftState done [13:09:54]FM_GetShiftState done [13:09:54]opened in 1720744654 [13:09:54]opened+sec_in_day 1720831054 [13:09:54]quantity*price = 50008 [13:09:54]sum+1 = 50009 [13:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 141 12.07.2024 13:09 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164220 ФПД: 144257296658708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130955&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164220&fm=144257296658708&tin=02508201610067®Number=0000000000090829&sum=50000 [13:09:55]StoreToDocumentArchive [13:09:55]shift 445 fd 164220 [13:09:55]save to /storage/0445/doc_00164220 [13:09:55]save last doc name /storage/0445/doc_00164220 to /storage/kkm_last_doc_name [13:09:55]save OK [13:09:55]Clear old archive folders... [13:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:55]tlvbuf is 00A7DB00 [13:09:55]SAM_PROTO_ClearQueue [13:09:55]wFMCommunicate request_size=4 [13:09:55]MH_SAM_APDU [13:09:55]CAPDU: 80 09 00 00 [13:09:55]Write to MH i2c: E2 08 00 81 1D 80 09 00 00 00 00 00 00 10 [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:55]Read from MH i2c: E2 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: E2 03 00 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [13:09:55]RAPDU: 90 00 [13:09:55]wFMCommunicate OK [13:09:55]SAM_PROTO_ClearQueue done [13:09:55]KKMCreateOFDPacket [13:09:55]OFDProtocolAddRootSTLVToBuf [13:09:55]FM_MakeSignedData [13:09:55]FM_MakeSignedData [13:09:55]SAM_PROTO_SignData [13:09:55]wFMCommunicate request_size=4 [13:09:55]MH_SAM_APDU [13:09:55]CAPDU: 80 0D 01 02 [13:09:55]Write to MH i2c: E2 08 00 82 1D 80 0D 01 02 00 00 00 00 18 [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:55]Read from MH i2c: E2 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: E2 03 00 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [13:09:55]RAPDU: 90 00 [13:09:55]wFMCommunicate OK [13:09:55]wFMCommunicate request_size=255 [13:09:55]MH_SAM_APDU [13:09: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D 00 00 00 F4 03 04 00 23 2B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 81 02 00 35 04 06 00 83 [13:09:55]Write to MH i2c: E2 02 01 83 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D 00 00 00 F4 03 04 00 23 2B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 81 02 00 35 04 06 00 83 00 00 A3 [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [13:09:56]RAPDU: 90 00 [13:09:56]wFMCommunicate OK [13:09:56]wFMCommunicate request_size=10 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 0D 02 02 05 33 84 EC 71 14 [13:09:56]Write to MH i2c: E2 0D 00 84 1D 80 0D 02 02 05 00 33 84 EC 71 14 00 00 4D [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 03 00 84 1D 00 90 00 15 [13:09:56]RAPDU: 90 00 [13:09:56]wFMCommunicate OK [13:09:56]wFMCommunicate request_size=4 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 0D 03 02 [13:09:56]Write to MH i2c: E2 08 00 85 1D 80 0D 03 02 00 00 00 00 1D [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]OFD Sender: No OFD packet to send [13:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 0B 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 0B 00 85 1D 00 10 D0 3F 1F 2F 47 54 85 90 00 AB [13:09:56]RAPDU: 10 D0 3F 1F 2F 47 54 85 90 00 [13:09:56]wFMCommunicate OK [13:09:56]SAM_PROTO_SignData done [13:09:56]FM_MakeSignedData done [13:09:56]CreateOFDProtocolMessage [13:09:56]wFMCommunicate request_size=4 [13:09:56]MH_SAM_APDU [13:09:56]CAPDU: 80 11 00 00 [13:09:56]Write to MH i2c: E2 08 00 86 1D 80 11 00 00 00 00 00 00 1D [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:56]Read from MH i2c: E2 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 17 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: E2 17 00 86 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [13:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:09:56]wFMCommunicate OK [13:09:56]CreateOFDProtocolMessage done [13:09:56]OFDSenderStorePacket 164220 [13:09:56]StoreOFDPacket docnum=164220 [13:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 4A 07 01 1F EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D 00 00 00 F4 03 04 00 23 2B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 81 02 00 35 04 06 00 83 33 84 EC 71 14 10 D0 3F 1F 2F 47 54 85 [13:09:56]CheckFolder [13:09:56]dirname=/storage/ofd_packets [13:09:56]CheckFolder done [13:09:56]ProducePacketName [13:09:56]name=ofd_packets/00164220 [13:09:56]NVStorageSaveData ofd_packets/00164220 [13:09:56]File name is /storage/ofd_packets/00164220 [13:09:56]Write 301 bytes [13:09:56]NVStorageSaveData done [13:09:56]OFDSenderStorePacket done [13:09:56]KKMCreateOFDPacket done [13:09:56]NVStorageSaveData kkm_last_timestamp [13:09:56]File name is /storage/kkm_last_timestamp [13:09:56]Write 4 bytes [13:09:56]NVStorageSaveData done [13:09:56]ExternCall_PrintAddStr [13:09:56]wPrintStart [13:09:56]Write to MH i2c: 01 00 00 87 1D A4 [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: 01 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: 01 07 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: 01 07 00 87 1D 00 00 00 00 00 FF 0F B9 [13:09:56]RasterBufferAndPrint [13:09:56]line Счет N : (1)458303 [13:09:56]line ИНН: 02508201610067 [13:09:56]line Контрольно-Кассовый Чек [13:09:56]line ПРОДАЖА [13:09:56]line ТРК (МРК, ГНК) : 12 [13:09:56]line Товар: 2710124130 [13:09:56]line Аи-92-К-5 [13:09:56]line 7.600 * 65.80 [13:09:56]line = 500.08 [13:09:56]line НДС 12% НСП 1% [13:09:56]line > о реализуемом товаре [13:09:56]line ОКРУГЛЕНИЕ: -0.08 [13:09:56]line ИТОГО: 500.00 [13:09:56]line Внесено: 500.00 [13:09:56]line СДАЧА: 0.00 [13:09:56]line НСП 1% : 4.42 [13:09:56]line НДС 12% : 53.11 [13:09:56]line Наличными: 500.00 [13:09:56]line Безнал.: 0.00 [13:09:56]line Место: АЗС № 72 "Партнер Нефть" [13:09:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:09:56]line СНО: Общий режим [13:09:56]line Чек 141 12.07.2024 13:09 [13:09:56]line Смена: 445 ФФД: 1.0 [13:09:56]line ЗНМ: 0300000160 [13:09:56]line РНМ: 0000000000090829 [13:09:56]line Версия ККМ: 001 [13:09:56]line ФМ: 0000000000874718 [13:09:56]line ФД: 164220 [13:09:56]line ФПД: 144257296658708 [13:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T130955&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164220&fm=144257296658708&tin=02508201610067®Number=0000000000090829&sum=50000 [13:09:56]OFD Sender: Processing packet 164220 [packets to send 104, broken 103] [13:09:56]ProducePacketName [13:09:56]name=ofd_packets/00164220 [13:09:56]OFD Sender: To server: pG, [13:09:56]CommunicateWithHost lk.salyk.kg:30040 [13:09:56]ConnectInit lk.salyk.kg [13:09:56]written 0, free lines is 4095 [13:09:56]Connected sock=10 [13:09:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 4A 07 01 1F EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D 00 00 00 F4 03 04 00 23 2B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 81 02 00 35 04 06 00 83 33 84 EC 71 14 10 D0 3F 1F 2F 47 54 85 [13:09:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE CC 47 00 12 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 81 02 00 F4 03 04 00 B7 D1 90 66 B6 04 01 00 00 AF 68 ED 90 E0 F8 A7 65 [13:09:56]CommunicateWithHost err = 0 [13:09:56]CheckOFDResponse [13:09:56]1017 (14) - 77093643461234 [13:09:56]1041 (16) - 0000000000874718 [13:09:56]1040 (4) - 164220 [13:09:56]1012 (4) - 12.07.2024 06:48 [13:09:56]1206 (1) - 0 [13:09:56]OFD Sender: Remove packet 164220 [13:09:56]ProducePacketName [13:09:56]name=ofd_packets/00164220 [13:09:56]NVStorageDeleteData [13:09:56]Write to MH i2c: 01 00 00 B1 1D CE [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: 01 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: 01 07 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: 01 07 00 B1 1D 00 00 00 00 00 F3 0C D4 [13:09:56]RasterBufferAndPrint [13:09:56]line [13:09:56]line [13:09:56]line [13:09:56]line [13:09:56]line [13:09:56]written 0, free lines is 3321 [13:09:56]MH_Cut [13:09:56]Write to MH i2c: D1 01 00 B8 1D 01 A7 [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: D1 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: D1 01 00 [13:09:56]MH_I2C_Read... [13:09:56]Read from MH i2c: D1 01 00 B8 1D 00 A6 [13:09:56]Write to MH i2c: 01 00 00 B9 1D D6 [13:09:56]Write i2c OK [13:09:56]MH_I2C_Read... [13:09:57]OFD Sender: No OFD packet to send [13:09:57]*** Cut start [13:09:57]*** Partial cut [13:09:57]*** CUTSNS_PIN = 1 [13:09:57]*** CUTSNS_PIN = 0 [13:09:57]*** Brake cut motor [13:09:57]Read from MH i2c: 01 [13:09:57]MH_I2C_Read... [13:09:57]*** Stop cut motor [13:09:57]*** Cut end [13:09:57]Read from MH i2c: 01 07 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 B9 1D 00 00 00 00 00 FF 0F EB [13:09:57]process_action close_receipt done [13:09:57]requested_data is exist [13:09:57]produce_requested_data [13:09:57]requested_item fm.sn is exist - process it [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 11 00 00 [13:09:57]Write to MH i2c: E2 08 00 BA 1D 80 11 00 00 00 00 00 00 51 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:58]Read from MH i2c: E2 [13:09:58]MH_I2C_Read... [13:09:58]Read from MH i2c: E2 17 00 [13:09:58]MH_I2C_Read... [13:09:58]Read from MH i2c: E2 17 00 BA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [13:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:09:58]wFMCommunicate OK [13:09:58]requested_item fd.num is exist - process it [13:09:58]SAM_PROTO_GetFieldsCounters [13:09:58]wFMCommunicate request_size=4 [13:09:58]MH_SAM_APDU [13:09:58]CAPDU: 80 13 00 00 [13:09:58]Write to MH i2c: E2 08 00 BB 1D 80 13 00 00 00 00 00 00 54 [13:09:58]Write i2c OK [13:09:58]MH_I2C_Read... [13:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:58]Read from MH i2c: E2 [13:09:58]MH_I2C_Read... [13:09:58]Read from MH i2c: E2 62 00 [13:09:58]MH_I2C_Read... [13:09:58]Read from MH i2c: E2 62 00 BB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [13:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:58]wFMCommunicate OK [13:09:58]SAM_PROTO_GetFieldsCounters done [13:09:58]requested_item shift.num is exist - process it [13:09:58]requested_item shift.opened is exist - process it [13:09:58]req_shift_opened [13:09:58]FM_GetShiftState [13:09:58]SAM_PROTO_GetShiftState [13:09:58]wFMCommunicate request_size=4 [13:09:58]MH_SAM_APDU [13:09:58]CAPDU: 80 13 01 00 [13:09:58]Write to MH i2c: E2 08 00 BC 1D 80 13 01 00 00 00 00 00 56 [13:09:58]Write i2c OK [13:09:58]MH_I2C_Read... [13:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:58]Read from MH i2c: E2 [13:09:58]MH_I2C_Read... [13:09:58]Read from MH i2c: E2 0E 00 [13:09:58]MH_I2C_Read... [13:09:58]Read from MH i2c: E2 0E 00 BC 1D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A0 [13:09:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:09:58]wFMCommunicate OK [13:09:58]SAM_PROTO_GetShiftState done [13:09:58]FM_GetShiftState done [13:09:58]req_shift_opened done [13:09:58]requested_item shift.open_date is exist - process it [13:09:58]req_shift_open_date [13:09:58]req_shift_open_date done [13:09:58]produce_requested_data done [13:09:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164220,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:09:58]process_action_free close_receipt [13:09:58]json_value_free [13:09:58]json_value_free done [13:09:58]process_json_proto returns [13:09:58]Send response to host [13:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164220,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:09:58]free response buf [13:09:58]execute_script done [13:09:58]execute_script returns [13:09:58]free content buf [13:09:58]Sock 7.Close socket [13:09:58]Sock 7.Thread stoped [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]accept exits with 9 [13:18:57]New connection [13:18:57]New thread 3066850660 created [13:18:57]Thread 3066707300 joined [13:18:57]Waiting for new connection... [13:18:57] Sock 9.Parse request [13:18:57]Sock 9.Check first char [13:18:57]Sock 9.First char is OK [13:18:57]request: POST /json_proto HTTP/1.0 [13:18:57]Method: POST [13:18:57]URL: /json_proto [13:18:57]Method is POST - this is cgi request [13:18:57]url: /json_proto [13:18:57]query_string will be loaded in cgi processing [13:18:57]execute_cgi json_proto POST (null) [13:18:57]execute_cgi path=json_proto method=POST [13:18:57]POST find Content-Length [13:18:57]Host: 172.17.56.4:8080 [13:18:57]Content-Length: 677 [13:18:57]Content-Type: application/json [13:18:57] [13:18:57]POST finish read [13:18:57]Found Content-Length = 677 [13:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:57]execute_script... [13:18: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)458304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:57]POST & json_proto [13:18:57]process_json_proto [13:18:57]json parsed OK: [13:18:57]protocol is kg_v1.0 [13:18:57]action value=close_receipt [13:18:57]process_action close_receipt [13:18:57]cmd_close_receipt [13:18:57]MH_GetDate [13:18:57]Write to MH i2c: F0 00 00 BD 1D C9 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: F0 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: F0 09 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: F0 09 00 BD 1D 00 42 2D 91 66 C9 DC B2 64 F3 [13:18:57]GetLastDocTimeStamp 1720789795 [13:18:57]current date 1720790338 [13:18:57]FM_GetShiftState [13:18:57]SAM_PROTO_GetShiftState [13:18:57]wFMCommunicate request_size=4 [13:18:57]MH_SAM_APDU [13:18:57]CAPDU: 80 13 01 00 [13:18:57]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:57]Read from MH i2c: E2 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 0E 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A2 [13:18:57]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:18:57]wFMCommunicate OK [13:18:57]SAM_PROTO_GetShiftState done [13:18:57]FM_GetShiftState done [13:18:57]opened in 1720744654 [13:18:57]opened+sec_in_day 1720831054 [13:18:57]quantity*price = 30004 [13:18:57]sum+1 = 30006 [13:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 142 12.07.2024 13:18 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164221 ФПД: 32043142839058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T131858&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164221&fm=32043142839058&tin=02508201610067®Number=0000000000090829&sum=30000 [13:18:58]StoreToDocumentArchive [13:18:58]shift 445 fd 164221 [13:18:58]save to /storage/0445/doc_00164221 [13:18:58]save last doc name /storage/0445/doc_00164221 to /storage/kkm_last_doc_name [13:18:58]save OK [13:18:58]Clear old archive folders... [13:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:58]tlvbuf is B6EA8AD0 [13:18:58]SAM_PROTO_ClearQueue [13:18:58]wFMCommunicate request_size=4 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 09 00 00 [13:18:58]Write to MH i2c: E2 08 00 CB 1D 80 09 00 00 00 00 00 00 5A [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [13:18:58]RAPDU: 90 00 [13:18:58]wFMCommunicate OK [13:18:58]SAM_PROTO_ClearQueue done [13:18:58]KKMCreateOFDPacket [13:18:58]OFDProtocolAddRootSTLVToBuf [13:18:58]FM_MakeSignedData [13:18:58]FM_MakeSignedData [13:18:58]SAM_PROTO_SignData [13:18:58]wFMCommunicate request_size=4 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 0D 01 02 [13:18:58]Write to MH i2c: E2 08 00 CC 1D 80 0D 01 02 00 00 00 00 62 [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [13:18:58]RAPDU: 90 00 [13:18:58]wFMCommunicate OK [13:18:58]wFMCommunicate request_size=255 [13:18:58]MH_SAM_APDU [13:18: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 42 2D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 81 02 00 35 04 06 00 1D [13:18:58]Write to MH i2c: E2 02 01 CD 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 42 2D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 81 02 00 35 04 06 00 1D 00 00 6B [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [13:18:58]RAPDU: 90 00 [13:18:58]wFMCommunicate OK [13:18:58]wFMCommunicate request_size=10 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 0D 02 02 05 24 A0 25 7B 12 [13:18:58]Write to MH i2c: E2 0D 00 CE 1D 80 0D 02 02 05 00 24 A0 25 7B 12 00 00 E5 [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [13:18:58]RAPDU: 90 00 [13:18:58]wFMCommunicate OK [13:18:58]wFMCommunicate request_size=4 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 0D 03 02 [13:18:58]Write to MH i2c: E2 08 00 CF 1D 80 0D 03 02 00 00 00 00 67 [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 0B 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 0B 00 CF 1D 00 57 50 AF F9 96 63 CD 05 90 00 82 [13:18:58]RAPDU: 57 50 AF F9 96 63 CD 05 90 00 [13:18:58]wFMCommunicate OK [13:18:58]SAM_PROTO_SignData done [13:18:58]FM_MakeSignedData done [13:18:58]CreateOFDProtocolMessage [13:18:58]wFMCommunicate request_size=4 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 11 00 00 [13:18:58]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 17 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [13:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:18:58]wFMCommunicate OK [13:18:58]CreateOFDProtocolMessage done [13:18:58]OFDSenderStorePacket 164221 [13:18:58]StoreOFDPacket docnum=164221 [13:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 91 16 07 01 52 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 42 2D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 81 02 00 35 04 06 00 1D 24 A0 25 7B 12 57 50 AF F9 96 63 CD 05 [13:18:58]CheckFolder [13:18:58]dirname=/storage/ofd_packets [13:18:58]CheckFolder done [13:18:58]ProducePacketName [13:18:58]name=ofd_packets/00164221 [13:18:58]NVStorageSaveData ofd_packets/00164221 [13:18:58]File name is /storage/ofd_packets/00164221 [13:18:58]Write 301 bytes [13:18:58]NVStorageSaveData done [13:18:58]OFDSenderStorePacket done [13:18:58]KKMCreateOFDPacket done [13:18:58]NVStorageSaveData kkm_last_timestamp [13:18:58]File name is /storage/kkm_last_timestamp [13:18:58]Write 4 bytes [13:18:58]NVStorageSaveData done [13:18:58]ExternCall_PrintAddStr [13:18:58]wPrintStart [13:18:58]Write to MH i2c: 01 00 00 D1 1D EE [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: 01 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: 01 07 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: 01 07 00 D1 1D 00 00 00 00 00 FF 0F 03 [13:18:58]RasterBufferAndPrint [13:18:58]line Счет N : (1)458304 [13:18:58]line ИНН: 02508201610067 [13:18:58]line Контрольно-Кассовый Чек [13:18:58]line ПРОДАЖА [13:18:58]line ТРК (МРК, ГНК) : 22 [13:18:58]line Товар: 2710124130 [13:18:58]line Аи-92-К-5 [13:18:58]line 4.560 * 65.80 [13:18:58]line = 300.05 [13:18:58]line НДС 12% НСП 1% [13:18:58]line > о реализуемом товаре [13:18:58]line ОКРУГЛЕНИЕ: -0.05 [13:18:58]line ИТОГО: 300.00 [13:18:58]line Внесено: 300.00 [13:18:58]line СДАЧА: 0.00 [13:18:58]line НСП 1% : 2.65 [13:18:58]line НДС 12% : 31.86 [13:18:58]line Наличными: 300.00 [13:18:58]line Безнал.: 0.00 [13:18:58]line Место: АЗС № 72 "Партнер Нефть" [13:18:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:18:58]line СНО: Общий режим [13:18:58]line Чек 142 12.07.2024 13:18 [13:18:58]line Смена: 445 ФФД: 1.0 [13:18:58]line ЗНМ: 0300000160 [13:18:58]line РНМ: 0000000000090829 [13:18:58]line Версия ККМ: 001 [13:18:58]line ФМ: 0000000000874718 [13:18:58]line ФД: 164221 [13:18:58]line ФПД: 32043142839058 [13:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T131858&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164221&fm=32043142839058&tin=02508201610067®Number=0000000000090829&sum=30000 [13:18:59]OFD Sender: Processing packet 164221 [packets to send 104, broken 103] [13:18:59]ProducePacketName [13:18:59]name=ofd_packets/00164221 [13:18:59]OFD Sender: To server: pG, [13:18:59]CommunicateWithHost lk.salyk.kg:30040 [13:18:59]ConnectInit lk.salyk.kg [13:18:59]written 0, free lines is 4095 [13:18:59]Connected sock=10 [13:18:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 91 16 07 01 52 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 42 2D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 81 02 00 35 04 06 00 1D 24 A0 25 7B 12 57 50 AF F9 96 63 CD 05 [13:18:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 25 7A 47 00 6F 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 34 37 31 38 10 04 04 00 7D 81 02 00 F4 03 04 00 D6 D3 90 66 B6 04 01 00 00 8D B3 5F 5B 15 6E 94 BF [13:18:59]CommunicateWithHost err = 0 [13:18:59]CheckOFDResponse [13:18:59]1017 (14) - 77093643461234 [13:18:59]1041 (16) - 0000000000874718 [13:18:59]1040 (4) - 164221 [13:18:59]1012 (4) - 12.07.2024 06:57 [13:18:59]1206 (1) - 0 [13:18:59]OFD Sender: Remove packet 164221 [13:18:59]ProducePacketName [13:18:59]name=ofd_packets/00164221 [13:18:59]NVStorageDeleteData [13:18:59]Write to MH i2c: 01 00 00 FB 1D 18 [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: 01 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: 01 07 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: 01 07 00 FB 1D 00 00 00 00 00 11 0D 3D [13:18:59]RasterBufferAndPrint [13:18:59]line [13:18:59]line [13:18:59]line [13:18:59]line [13:18:59]line [13:18:59]written 0, free lines is 3351 [13:18:59]MH_Cut [13:18:59]Write to MH i2c: D1 01 00 02 1E 01 F2 [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: D1 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: D1 01 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: D1 01 00 02 1E 00 F1 [13:18:59]Write to MH i2c: 01 00 00 03 1E 21 [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:19:00]OFD Sender: No OFD packet to send [13:19:00]*** Cut start [13:19:00]*** Partial cut [13:19:00]*** CUTSNS_PIN = 1 [13:19:00]*** CUTSNS_PIN = 0 [13:19:00]*** Brake cut motor [13:19:00]Read from MH i2c: 01 [13:19:00]MH_I2C_Read... [13:19:00]*** Stop cut motor [13:19:00]*** Cut end [13:19:00]Read from MH i2c: 01 07 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: 01 07 00 03 1E 00 00 00 00 00 FF 0F 36 [13:19:00]process_action close_receipt done [13:19:00]requested_data is exist [13:19:00]produce_requested_data [13:19:00]requested_item fm.sn is exist - process it [13:19:00]wFMCommunicate request_size=4 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 11 00 00 [13:19:00]Write to MH i2c: E2 08 00 04 1E 80 11 00 00 00 00 00 00 9C [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:00]Read from MH i2c: E2 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 17 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 17 00 04 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [13:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:19:00]wFMCommunicate OK [13:19:00]requested_item fd.num is exist - process it [13:19:00]SAM_PROTO_GetFieldsCounters [13:19:00]wFMCommunicate request_size=4 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 13 00 00 [13:19:00]Write to MH i2c: E2 08 00 05 1E 80 13 00 00 00 00 00 00 9F [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:01]Read from MH i2c: E2 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: E2 62 00 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: E2 62 00 05 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [13:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:01]wFMCommunicate OK [13:19:01]SAM_PROTO_GetFieldsCounters done [13:19:01]requested_item shift.num is exist - process it [13:19:01]requested_item shift.opened is exist - process it [13:19:01]req_shift_opened [13:19:01]FM_GetShiftState [13:19:01]SAM_PROTO_GetShiftState [13:19:01]wFMCommunicate request_size=4 [13:19:01]MH_SAM_APDU [13:19:01]CAPDU: 80 13 01 00 [13:19:01]Write to MH i2c: E2 08 00 06 1E 80 13 01 00 00 00 00 00 A1 [13:19:01]Write i2c OK [13:19:01]MH_I2C_Read... [13:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:01]Read from MH i2c: E2 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: E2 0E 00 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: E2 0E 00 06 1E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EB [13:19:01]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:19:01]wFMCommunicate OK [13:19:01]SAM_PROTO_GetShiftState done [13:19:01]FM_GetShiftState done [13:19:01]req_shift_opened done [13:19:01]requested_item shift.open_date is exist - process it [13:19:01]req_shift_open_date [13:19:01]req_shift_open_date done [13:19:01]produce_requested_data done [13:19:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164221,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:19:01]process_action_free close_receipt [13:19:01]json_value_free [13:19:01]json_value_free done [13:19:01]process_json_proto returns [13:19:01]Send response to host [13:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164221,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:19:01]free response buf [13:19:01]execute_script done [13:19:01]execute_script returns [13:19:01]free content buf [13:19:01]Sock 9.Close socket [13:19:01]Sock 9.Thread stoped [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:25]accept exits with 7 [13:19:25]New connection [13:19:25]New thread 3066707300 created [13:19:25]Thread 3066850660 joined [13:19:25]Waiting for new connection... [13:19:25] Sock 7.Parse request [13:19:25]Sock 7.Check first char [13:19:25]Sock 7.First char is OK [13:19:25]request: POST /json_proto HTTP/1.0 [13:19:25]Method: POST [13:19:25]URL: /json_proto [13:19:25]Method is POST - this is cgi request [13:19:25]url: /json_proto [13:19:25]query_string will be loaded in cgi processing [13:19:25]execute_cgi json_proto POST (null) [13:19:25]execute_cgi path=json_proto method=POST [13:19:25]POST find Content-Length [13:19:25]Host: 172.17.56.4:8080 [13:19:25]Content-Length: 677 [13:19:25]Content-Type: application/json [13:19:25] [13:19:25]POST finish read [13:19:25]Found Content-Length = 677 [13:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:25]execute_script... [13:19: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)458305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:25]POST & json_proto [13:19:25]process_json_proto [13:19:25]json parsed OK: [13:19:25]protocol is kg_v1.0 [13:19:25]action value=close_receipt [13:19:25]process_action close_receipt [13:19:25]cmd_close_receipt [13:19:25]MH_GetDate [13:19:25]Write to MH i2c: F0 00 00 07 1E 14 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: F0 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: F0 09 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: F0 09 00 07 1E 00 5E 2D 91 66 C9 DC B2 64 5A [13:19:25]GetLastDocTimeStamp 1720790338 [13:19:25]current date 1720790366 [13:19:25]FM_GetShiftState [13:19:25]SAM_PROTO_GetShiftState [13:19:25]wFMCommunicate request_size=4 [13:19:25]MH_SAM_APDU [13:19:25]CAPDU: 80 13 01 00 [13:19:25]Write to MH i2c: E2 08 00 08 1E 80 13 01 00 00 00 00 00 A3 [13:19:25]Write i2c OK [13:19:25]MH_I2C_Read... [13:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:25]Read from MH i2c: E2 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 0E 00 [13:19:25]MH_I2C_Read... [13:19:25]Read from MH i2c: E2 0E 00 08 1E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 ED [13:19:25]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:19:25]wFMCommunicate OK [13:19:25]SAM_PROTO_GetShiftState done [13:19:25]FM_GetShiftState done [13:19:25]opened in 1720744654 [13:19:25]opened+sec_in_day 1720831054 [13:19:25]quantity*price = 40006 [13:19:25]sum+1 = 40007 [13:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 143 12.07.2024 13:19 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164222 ФПД: 109957466842803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T131926&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164222&fm=109957466842803&tin=02508201610067®Number=0000000000090829&sum=40000 [13:19:26]StoreToDocumentArchive [13:19:26]shift 445 fd 164222 [13:19:26]save to /storage/0445/doc_00164222 [13:19:26]save last doc name /storage/0445/doc_00164222 to /storage/kkm_last_doc_name [13:19:26]save OK [13:19:26]Clear old archive folders... [13:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:26]tlvbuf is 00A8E130 [13:19:26]SAM_PROTO_ClearQueue [13:19:26]wFMCommunicate request_size=4 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 09 00 00 [13:19:26]Write to MH i2c: E2 08 00 15 1E 80 09 00 00 00 00 00 00 A5 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [13:19:26]RAPDU: 90 00 [13:19:26]wFMCommunicate OK [13:19:26]SAM_PROTO_ClearQueue done [13:19:26]KKMCreateOFDPacket [13:19:26]OFDProtocolAddRootSTLVToBuf [13:19:26]FM_MakeSignedData [13:19:26]FM_MakeSignedData [13:19:26]SAM_PROTO_SignData [13:19:26]wFMCommunicate request_size=4 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 0D 01 02 [13:19:26]Write to MH i2c: E2 08 00 16 1E 80 0D 01 02 00 00 00 00 AD [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [13:19:26]RAPDU: 90 00 [13:19:26]wFMCommunicate OK [13:19:26]wFMCommunicate request_size=255 [13:19:26]MH_SAM_APDU [13:19: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 17 00 00 00 00 00 37 04 06 00 B4 19 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 8F 00 00 00 F4 03 04 00 5E 2D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 81 02 00 35 04 06 00 64 [13:19:26]Write to MH i2c: E2 02 01 17 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 8F 00 00 00 F4 03 04 00 5E 2D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 81 02 00 35 04 06 00 64 00 00 3A [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]wFMCommunicate request_size=10 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 02 02 05 01 77 C0 66 B3 [13:19:27]Write to MH i2c: E2 0D 00 18 1E 80 0D 02 02 05 00 01 77 C0 66 B3 00 00 0B [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 03 00 18 1E 00 90 00 AA [13:19:27]RAPDU: 90 00 [13:19:27]wFMCommunicate OK [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 0D 03 02 [13:19:27]Write to MH i2c: E2 08 00 19 1E 80 0D 03 02 00 00 00 00 B2 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 0B 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 0B 00 19 1E 00 88 90 5B 75 3E E3 0E BE 90 00 88 [13:19:27]RAPDU: 88 90 5B 75 3E E3 0E BE 90 00 [13:19:27]wFMCommunicate OK [13:19:27]SAM_PROTO_SignData done [13:19:27]FM_MakeSignedData done [13:19:27]CreateOFDProtocolMessage [13:19:27]wFMCommunicate request_size=4 [13:19:27]MH_SAM_APDU [13:19:27]CAPDU: 80 11 00 00 [13:19:27]Write to MH i2c: E2 08 00 1A 1E 80 11 00 00 00 00 00 00 B2 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:27]Read from MH i2c: E2 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 17 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: E2 17 00 1A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [13:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:19:27]wFMCommunicate OK [13:19:27]CreateOFDProtocolMessage done [13:19:27]OFDSenderStorePacket 164222 [13:19:27]StoreOFDPacket docnum=164222 [13:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F2 94 07 01 CF 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 8F 00 00 00 F4 03 04 00 5E 2D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 81 02 00 35 04 06 00 64 01 77 C0 66 B3 88 90 5B 75 3E E3 0E BE [13:19:27]CheckFolder [13:19:27]dirname=/storage/ofd_packets [13:19:27]CheckFolder done [13:19:27]ProducePacketName [13:19:27]name=ofd_packets/00164222 [13:19:27]NVStorageSaveData ofd_packets/00164222 [13:19:27]File name is /storage/ofd_packets/00164222 [13:19:27]Write 301 bytes [13:19:27]NVStorageSaveData done [13:19:27]OFDSenderStorePacket done [13:19:27]KKMCreateOFDPacket done [13:19:27]NVStorageSaveData kkm_last_timestamp [13:19:27]File name is /storage/kkm_last_timestamp [13:19:27]Write 4 bytes [13:19:27]NVStorageSaveData done [13:19:27]ExternCall_PrintAddStr [13:19:27]wPrintStart [13:19:27]Write to MH i2c: 01 00 00 1B 1E 39 [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: 01 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: 01 07 00 [13:19:27]MH_I2C_Read... [13:19:27]OFD Sender: Processing packet 164222 [packets to send 104, broken 103] [13:19:27]ProducePacketName [13:19:27]name=ofd_packets/00164222 [13:19:27]OFD Sender: To server: pG, [13:19:27]CommunicateWithHost lk.salyk.kg:30040 [13:19:27]ConnectInit lk.salyk.kg [13:19:27]Read from MH i2c: 01 07 00 1B 1E 00 00 00 00 00 FF 0F 4E [13:19:27]RasterBufferAndPrint [13:19:27]line Счет N : (1)458305 [13:19:27]line ИНН: 02508201610067 [13:19:27]line Контрольно-Кассовый Чек [13:19:27]line ПРОДАЖА [13:19:27]line ТРК (МРК, ГНК) : 22 [13:19:27]line Товар: 2710124130 [13:19:27]line Аи-92-К-5 [13:19:27]line 6.080 * 65.80 [13:19:27]line = 400.06 [13:19:27]line НДС 12% НСП 1% [13:19:27]line > о реализуемом товаре [13:19:27]line ОКРУГЛЕНИЕ: -0.06 [13:19:27]line ИТОГО: 400.00 [13:19:27]line Внесено: 400.00 [13:19:27]line СДАЧА: 0.00 [13:19:27]line НСП 1% : 3.54 [13:19:27]line НДС 12% : 42.48 [13:19:27]line Наличными: 400.00 [13:19:27]line Безнал.: 0.00 [13:19:27]line Место: АЗС № 72 "Партнер Нефть" [13:19:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:19:27]line СНО: Общий режим [13:19:27]line Чек 143 12.07.2024 13:19 [13:19:27]line Смена: 445 ФФД: 1.0 [13:19:27]line ЗНМ: 0300000160 [13:19:27]line РНМ: 0000000000090829 [13:19:27]line Версия ККМ: 001 [13:19:27]line ФМ: 0000000000874718 [13:19:27]line ФД: 164222 [13:19:27]line ФПД: 109957466842803 [13:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T131926&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164222&fm=109957466842803&tin=02508201610067®Number=0000000000090829&sum=40000 [13:19:27]Connected sock=10 [13:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F2 94 07 01 CF 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 8F 00 00 00 F4 03 04 00 5E 2D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 81 02 00 35 04 06 00 64 01 77 C0 66 B3 88 90 5B 75 3E E3 0E BE [13:19:27]written 0, free lines is 4095 [13:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 43 2A 47 00 0D 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 81 02 00 F4 03 04 00 F3 D3 90 66 B6 04 01 00 00 7A 17 C0 01 37 3D 87 B6 [13:19:27]CommunicateWithHost err = 0 [13:19:27]CheckOFDResponse [13:19:27]1017 (14) - 77093643461234 [13:19:27]1041 (16) - 0000000000874718 [13:19:27]1040 (4) - 164222 [13:19:27]1012 (4) - 12.07.2024 06:57 [13:19:27]1206 (1) - 0 [13:19:27]OFD Sender: Remove packet 164222 [13:19:27]ProducePacketName [13:19:27]name=ofd_packets/00164222 [13:19:27]NVStorageDeleteData [13:19:28]Write to MH i2c: 01 00 00 45 1E 63 [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 07 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: 01 07 00 45 1E 00 00 00 00 00 FE 0C 74 [13:19:28]RasterBufferAndPrint [13:19:28]line [13:19:28]line [13:19:28]line [13:19:28]line [13:19:28]line [13:19:28]written 0, free lines is 3332 [13:19:28]MH_Cut [13:19:28]Write to MH i2c: D1 01 00 4C 1E 01 3C [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: D1 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: D1 01 00 [13:19:28]MH_I2C_Read... [13:19:28]Read from MH i2c: D1 01 00 4C 1E 00 3B [13:19:28]Write to MH i2c: 01 00 00 4D 1E 6B [13:19:28]Write i2c OK [13:19:28]MH_I2C_Read... [13:19:28]OFD Sender: No OFD packet to send [13:19:28]*** Cut start [13:19:28]*** Partial cut [13:19:28]*** CUTSNS_PIN = 1 [13:19:28]*** CUTSNS_PIN = 0 [13:19:28]*** Brake cut motor [13:19:29]Read from MH i2c: 01 [13:19:29]MH_I2C_Read... [13:19:29]*** Stop cut motor [13:19:29]*** Cut end [13:19:29]Read from MH i2c: 01 07 00 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 FF 0F 80 [13:19:29]process_action close_receipt done [13:19:29]requested_data is exist [13:19:29]produce_requested_data [13:19:29]requested_item fm.sn is exist - process it [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 11 00 00 [13:19:29]Write to MH i2c: E2 08 00 4E 1E 80 11 00 00 00 00 00 00 E6 [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:29]Read from MH i2c: E2 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 17 00 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 17 00 4E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [13:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:19:29]wFMCommunicate OK [13:19:29]requested_item fd.num is exist - process it [13:19:29]SAM_PROTO_GetFieldsCounters [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 13 00 00 [13:19:29]Write to MH i2c: E2 08 00 4F 1E 80 13 00 00 00 00 00 00 E9 [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:29]Read from MH i2c: E2 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 62 00 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 62 00 4F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [13:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:29]wFMCommunicate OK [13:19:29]SAM_PROTO_GetFieldsCounters done [13:19:29]requested_item shift.num is exist - process it [13:19:29]requested_item shift.opened is exist - process it [13:19:29]req_shift_opened [13:19:29]FM_GetShiftState [13:19:29]SAM_PROTO_GetShiftState [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 13 01 00 [13:19:29]Write to MH i2c: E2 08 00 50 1E 80 13 01 00 00 00 00 00 EB [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:29]Read from MH i2c: E2 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 0E 00 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 0E 00 50 1E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 35 [13:19:29]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:19:29]wFMCommunicate OK [13:19:29]SAM_PROTO_GetShiftState done [13:19:29]FM_GetShiftState done [13:19:29]req_shift_opened done [13:19:29]requested_item shift.open_date is exist - process it [13:19:29]req_shift_open_date [13:19:29]req_shift_open_date done [13:19:29]produce_requested_data done [13:19:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164222,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:19:29]process_action_free close_receipt [13:19:29]json_value_free [13:19:29]json_value_free done [13:19:29]process_json_proto returns [13:19:29]Send response to host [13:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164222,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:19:29]free response buf [13:19:29]execute_script done [13:19:29]execute_script returns [13:19:29]free content buf [13:19:29]Sock 7.Close socket [13:19:29]Sock 7.Thread stoped [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:15]accept exits with 9 [13:22:15]New connection [13:22:15]New thread 3066850660 created [13:22:15] Sock 9.Parse request [13:22:15]Thread 3066707300 joined [13:22:15]Sock 9.Check first char [13:22:15]Waiting for new connection... [13:22:15]Sock 9.First char is OK [13:22:15]request: POST /json_proto HTTP/1.0 [13:22:15]Method: POST [13:22:15]URL: /json_proto [13:22:15]Method is POST - this is cgi request [13:22:15]url: /json_proto [13:22:15]query_string will be loaded in cgi processing [13:22:15]execute_cgi json_proto POST (null) [13:22:15]execute_cgi path=json_proto method=POST [13:22:15]POST find Content-Length [13:22:15]Host: 172.17.56.4:8080 [13:22:15]Content-Length: 674 [13:22:15]Content-Type: application/json [13:22:15] [13:22:15]POST finish read [13:22:15]Found Content-Length = 674 [13:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458306", "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" : 71.90, "quantity" : 9.120, "sum" : 655.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 719.00, "total" : 655.00, "payments": [ { "type": 0, "sum" : 655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:15]execute_script... [13:22: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)458306", "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" : 71.90, "quantity" : 9.120, "sum" : 655.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 719.00, "total" : 655.00, "payments": [ { "type": 0, "sum" : 655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:15]POST & json_proto [13:22:15]process_json_proto [13:22:15]json parsed OK: [13:22:15]protocol is kg_v1.0 [13:22:15]action value=close_receipt [13:22:15]process_action close_receipt [13:22:15]cmd_close_receipt [13:22:15]MH_GetDate [13:22:15]Write to MH i2c: F0 00 00 51 1E 5E [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: F0 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: F0 09 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: F0 09 00 51 1E 00 08 2E 91 66 C9 DC B2 64 4F [13:22:15]GetLastDocTimeStamp 1720790366 [13:22:15]current date 1720790536 [13:22:15]FM_GetShiftState [13:22:15]SAM_PROTO_GetShiftState [13:22:15]wFMCommunicate request_size=4 [13:22:15]MH_SAM_APDU [13:22:15]CAPDU: 80 13 01 00 [13:22:15]Write to MH i2c: E2 08 00 52 1E 80 13 01 00 00 00 00 00 ED [13:22:15]Write i2c OK [13:22:15]MH_I2C_Read... [13:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:15]Read from MH i2c: E2 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 0E 00 [13:22:15]MH_I2C_Read... [13:22:15]Read from MH i2c: E2 0E 00 52 1E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 37 [13:22:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:22:15]wFMCommunicate OK [13:22:15]SAM_PROTO_GetShiftState done [13:22:15]FM_GetShiftState done [13:22:15]opened in 1720744654 [13:22:15]opened+sec_in_day 1720831054 [13:22:15]quantity*price = 65572 [13:22:15]sum+1 = 65574 [13:22:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 655.00 Внесено: 719.00 СДАЧА: 64.00 НСП 1% : 5.80 НДС 12% : 69.63 Наличными: 655.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 144 12.07.2024 13:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164223 ФПД: 146485278420143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T132216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164223&fm=146485278420143&tin=02508201610067®Number=0000000000090829&sum=65500 [13:22:16]StoreToDocumentArchive [13:22:16]shift 445 fd 164223 [13:22:16]save to /storage/0445/doc_00164223 [13:22:16]save last doc name /storage/0445/doc_00164223 to /storage/kkm_last_doc_name [13:22:16]save OK [13:22:16]Clear old archive folders... [13:22:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:22:16]tlvbuf is B6EA85A0 [13:22:16]SAM_PROTO_ClearQueue [13:22:16]wFMCommunicate request_size=4 [13:22:16]MH_SAM_APDU [13:22:16]CAPDU: 80 09 00 00 [13:22:16]Write to MH i2c: E2 08 00 5F 1E 80 09 00 00 00 00 00 00 EF [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:16]Read from MH i2c: E2 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 03 00 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 03 00 5F 1E 00 90 00 F1 [13:22:16]RAPDU: 90 00 [13:22:16]wFMCommunicate OK [13:22:16]SAM_PROTO_ClearQueue done [13:22:16]KKMCreateOFDPacket [13:22:16]OFDProtocolAddRootSTLVToBuf [13:22:16]FM_MakeSignedData [13:22:16]FM_MakeSignedData [13:22:16]SAM_PROTO_SignData [13:22:16]wFMCommunicate request_size=4 [13:22:16]MH_SAM_APDU [13:22:16]CAPDU: 80 0D 01 02 [13:22:16]Write to MH i2c: E2 08 00 60 1E 80 0D 01 02 00 00 00 00 F7 [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:16]Read from MH i2c: E2 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 03 00 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 03 00 60 1E 00 90 00 F2 [13:22:16]RAPDU: 90 00 [13:22:16]wFMCommunicate OK [13:22:16]wFMCommunicate request_size=255 [13:22:16]MH_SAM_APDU [13:22:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 25 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 1B 00 00 00 00 07 04 06 00 DC FF 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 08 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 81 02 00 35 04 06 00 85 3A 42 FC [13:22:16]Write to MH i2c: E2 02 01 61 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 25 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 1B 00 00 00 00 07 04 06 00 DC FF 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 08 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 81 02 00 35 04 06 00 85 3A 42 FC 00 00 39 [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:16]Read from MH i2c: E2 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 03 00 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 03 00 61 1E 00 90 00 F3 [13:22:16]RAPDU: 90 00 [13:22:16]wFMCommunicate OK [13:22:16]wFMCommunicate request_size=7 [13:22:16]MH_SAM_APDU [13:22:16]CAPDU: 80 0D 02 02 02 2C AF [13:22:16]Write to MH i2c: E2 0A 00 62 1E 80 0D 02 02 02 00 2C AF 00 00 D9 [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:16]Read from MH i2c: E2 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 03 00 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 03 00 62 1E 00 90 00 F4 [13:22:16]RAPDU: 90 00 [13:22:16]wFMCommunicate OK [13:22:16]wFMCommunicate request_size=4 [13:22:16]MH_SAM_APDU [13:22:16]CAPDU: 80 0D 03 02 [13:22:16]Write to MH i2c: E2 08 00 63 1E 80 0D 03 02 00 00 00 00 FC [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:16]Read from MH i2c: E2 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 0B 00 [13:22:16]MH_I2C_Read... [13:22:16]Read from MH i2c: E2 0B 00 63 1E 00 EC 4A E3 A0 05 B3 80 A8 90 00 96 [13:22:16]RAPDU: EC 4A E3 A0 05 B3 80 A8 90 00 [13:22:16]wFMCommunicate OK [13:22:16]SAM_PROTO_SignData done [13:22:16]FM_MakeSignedData done [13:22:16]CreateOFDProtocolMessage [13:22:16]wFMCommunicate request_size=4 [13:22:16]MH_SAM_APDU [13:22:16]CAPDU: 80 11 00 00 [13:22:16]Write to MH i2c: E2 08 00 64 1E 80 11 00 00 00 00 00 00 FC [13:22:16]Write i2c OK [13:22:16]MH_I2C_Read... [13:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:17]Read from MH i2c: E2 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: E2 17 00 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: E2 17 00 64 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [13:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:22:17]wFMCommunicate OK [13:22:17]CreateOFDProtocolMessage done [13:22:17]OFDSenderStorePacket 164223 [13:22:17]StoreOFDPacket docnum=164223 [13:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 92 45 04 01 71 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 25 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 1B 00 00 00 00 07 04 06 00 DC FF 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 08 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 81 02 00 35 04 06 00 85 3A 42 FC 2C AF EC 4A E3 A0 05 B3 80 A8 [13:22:17]CheckFolder [13:22:17]dirname=/storage/ofd_packets [13:22:17]CheckFolder done [13:22:17]ProducePacketName [13:22:17]name=ofd_packets/00164223 [13:22:17]NVStorageSaveData ofd_packets/00164223 [13:22:17]File name is /storage/ofd_packets/00164223 [13:22:17]Write 298 bytes [13:22:17]NVStorageSaveData done [13:22:17]OFDSenderStorePacket done [13:22:17]KKMCreateOFDPacket done [13:22:17]NVStorageSaveData kkm_last_timestamp [13:22:17]File name is /storage/kkm_last_timestamp [13:22:17]Write 4 bytes [13:22:17]NVStorageSaveData done [13:22:17]ExternCall_PrintAddStr [13:22:17]wPrintStart [13:22:17]Write to MH i2c: 01 00 00 65 1E 83 [13:22:17]Write i2c OK [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: 01 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: 01 07 00 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: 01 07 00 65 1E 00 00 00 00 00 FF 0F 98 [13:22:17]RasterBufferAndPrint [13:22:17]line Счет N : (1)458306 [13:22:17]line ИНН: 02508201610067 [13:22:17]line Контрольно-Кассовый Чек [13:22:17]line ПРОДАЖА [13:22:17]line ТРК (МРК, ГНК) : 21 [13:22:17]line Товар: 2710194210 [13:22:17]line ДТ-К-5 [13:22:17]line 9.120 * 71.90 [13:22:17]line = 655.73 [13:22:17]line НДС 12% НСП 1% [13:22:17]line > о реализуемом товаре [13:22:17]line ОКРУГЛЕНИЕ: -0.73 [13:22:17]line ИТОГО: 655.00 [13:22:17]line Внесено: 719.00 [13:22:17]line СДАЧА: 64.00 [13:22:17]line НСП 1% : 5.80 [13:22:17]line НДС 12% : 69.63 [13:22:17]line Наличными: 655.00 [13:22:17]line Безнал.: 0.00 [13:22:17]line Место: АЗС № 72 "Партнер Нефть" [13:22:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:22:17]line СНО: Общий режим [13:22:17]line Чек 144 12.07.2024 13:22 [13:22:17]line Смена: 445 ФФД: 1.0 [13:22:17]line ЗНМ: 0300000160 [13:22:17]line РНМ: 0000000000090829 [13:22:17]line Версия ККМ: 001 [13:22:17]line ФМ: 0000000000874718 [13:22:17]line ФД: 164223 [13:22:17]line ФПД: 146485278420143 [13:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T132216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164223&fm=146485278420143&tin=02508201610067®Number=0000000000090829&sum=65500 [13:22:17]OFD Sender: Processing packet 164223 [packets to send 104, broken 103] [13:22:17]ProducePacketName [13:22:17]name=ofd_packets/00164223 [13:22:17]OFD Sender: To server: pG, [13:22:17]CommunicateWithHost lk.salyk.kg:30040 [13:22:17]ConnectInit lk.salyk.kg [13:22:17]written 0, free lines is 4095 [13:22:17]Connected sock=10 [13:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 92 45 04 01 71 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 25 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 1B 00 00 00 00 07 04 06 00 DC FF 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 08 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 81 02 00 35 04 06 00 85 3A 42 FC 2C AF EC 4A E3 A0 05 B3 80 A8 [13:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1F DA 47 00 E5 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 34 37 31 38 10 04 04 00 7F 81 02 00 F4 03 04 00 9D D4 90 66 B6 04 01 00 00 3D DB 28 00 45 69 83 0E [13:22:17]CommunicateWithHost err = 0 [13:22:17]CheckOFDResponse [13:22:17]1017 (14) - 77093643461234 [13:22:17]1041 (16) - 0000000000874718 [13:22:17]1040 (4) - 164223 [13:22:17]1012 (4) - 12.07.2024 07:00 [13:22:17]1206 (1) - 0 [13:22:17]OFD Sender: Remove packet 164223 [13:22:17]ProducePacketName [13:22:17]name=ofd_packets/00164223 [13:22:17]NVStorageDeleteData [13:22:17]Write to MH i2c: 01 00 00 8F 1E AD [13:22:17]Write i2c OK [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: 01 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: 01 07 00 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: 01 07 00 8F 1E 00 00 00 00 00 FB 0C BB [13:22:17]RasterBufferAndPrint [13:22:17]line [13:22:17]line [13:22:17]line [13:22:17]line [13:22:17]line [13:22:17]written 0, free lines is 3330 [13:22:17]MH_Cut [13:22:17]Write to MH i2c: D1 01 00 96 1E 01 86 [13:22:17]Write i2c OK [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: D1 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: D1 01 00 [13:22:17]MH_I2C_Read... [13:22:17]Read from MH i2c: D1 01 00 96 1E 00 85 [13:22:17]Write to MH i2c: 01 00 00 97 1E B5 [13:22:17]Write i2c OK [13:22:17]MH_I2C_Read... [13:22:18]OFD Sender: No OFD packet to send [13:22:18]*** Cut start [13:22:18]*** Partial cut [13:22:18]*** CUTSNS_PIN = 1 [13:22:18]*** CUTSNS_PIN = 0 [13:22:18]*** Brake cut motor [13:22:19]Read from MH i2c: 01 [13:22:19]MH_I2C_Read... [13:22:19]*** Stop cut motor [13:22:19]*** Cut end [13:22:19]Read from MH i2c: 01 07 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: 01 07 00 97 1E 00 00 00 00 00 FF 0F CA [13:22:19]process_action close_receipt done [13:22:19]requested_data is exist [13:22:19]produce_requested_data [13:22:19]requested_item fm.sn is exist - process it [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 11 00 00 [13:22:19]Write to MH i2c: E2 08 00 98 1E 80 11 00 00 00 00 00 00 30 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 17 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 17 00 98 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [13:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:22:19]wFMCommunicate OK [13:22:19]requested_item fd.num is exist - process it [13:22:19]SAM_PROTO_GetFieldsCounters [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 13 00 00 [13:22:19]Write to MH i2c: E2 08 00 99 1E 80 13 00 00 00 00 00 00 33 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 62 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 62 00 99 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [13:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:19]wFMCommunicate OK [13:22:19]SAM_PROTO_GetFieldsCounters done [13:22:19]requested_item shift.num is exist - process it [13:22:19]requested_item shift.opened is exist - process it [13:22:19]req_shift_opened [13:22:19]FM_GetShiftState [13:22:19]SAM_PROTO_GetShiftState [13:22:19]wFMCommunicate request_size=4 [13:22:19]MH_SAM_APDU [13:22:19]CAPDU: 80 13 01 00 [13:22:19]Write to MH i2c: E2 08 00 9A 1E 80 13 01 00 00 00 00 00 35 [13:22:19]Write i2c OK [13:22:19]MH_I2C_Read... [13:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:19]Read from MH i2c: E2 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0E 00 [13:22:19]MH_I2C_Read... [13:22:19]Read from MH i2c: E2 0E 00 9A 1E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7F [13:22:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:22:19]wFMCommunicate OK [13:22:19]SAM_PROTO_GetShiftState done [13:22:19]FM_GetShiftState done [13:22:19]req_shift_opened done [13:22:19]requested_item shift.open_date is exist - process it [13:22:19]req_shift_open_date [13:22:19]req_shift_open_date done [13:22:19]produce_requested_data done [13:22:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164223,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:22:19]process_action_free close_receipt [13:22:19]json_value_free [13:22:19]json_value_free done [13:22:19]process_json_proto returns [13:22:19]Send response to host [13:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164223,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:22:19]free response buf [13:22:19]execute_script done [13:22:19]execute_script returns [13:22:19]free content buf [13:22:19]Sock 9.Close socket [13:22:19]Sock 9.Thread stoped [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:41]accept exits with 7 [13:22:41]New connection [13:22:41]New thread 3066707300 created [13:22:41]Thread 3066850660 joined [13:22:41]Waiting for new connection... [13:22:41] Sock 7.Parse request [13:22:41]Sock 7.Check first char [13:22:41]Sock 7.First char is OK [13:22:41]request: POST /json_proto HTTP/1.0 [13:22:41]Method: POST [13:22:41]URL: /json_proto [13:22:41]Method is POST - this is cgi request [13:22:41]url: /json_proto [13:22:41]query_string will be loaded in cgi processing [13:22:41]execute_cgi json_proto POST (null) [13:22:41]execute_cgi path=json_proto method=POST [13:22:41]POST find Content-Length [13:22:41]Host: 172.17.56.4:8080 [13:22:41]Content-Length: 677 [13:22:41]Content-Type: application/json [13:22:41] [13:22:41]POST finish read [13:22:41]Found Content-Length = 677 [13:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.110, "sum" : 270.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:41]execute_script... [13:22: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)458307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.110, "sum" : 270.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:41]POST & json_proto [13:22:41]process_json_proto [13:22:41]json parsed OK: [13:22:41]protocol is kg_v1.0 [13:22:41]action value=close_receipt [13:22:41]process_action close_receipt [13:22:41]cmd_close_receipt [13:22:41]MH_GetDate [13:22:41]Write to MH i2c: F0 00 00 9B 1E A8 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: F0 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: F0 09 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: F0 09 00 9B 1E 00 23 2E 91 66 C9 DC B2 64 B4 [13:22:41]GetLastDocTimeStamp 1720790536 [13:22:41]current date 1720790563 [13:22:41]FM_GetShiftState [13:22:41]SAM_PROTO_GetShiftState [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 13 01 00 [13:22:41]Write to MH i2c: E2 08 00 9C 1E 80 13 01 00 00 00 00 00 37 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 0E 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 0E 00 9C 1E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 81 [13:22:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:22:41]wFMCommunicate OK [13:22:41]SAM_PROTO_GetShiftState done [13:22:41]FM_GetShiftState done [13:22:41]opened in 1720744654 [13:22:41]opened+sec_in_day 1720831054 [13:22:41]quantity*price = 27043 [13:22:41]sum+1 = 27045 [13:22:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.72 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 145 12.07.2024 13:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164224 ФПД: 234745616411251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T132243&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164224&fm=234745616411251&tin=02508201610067®Number=0000000000090829&sum=27000 [13:22:42]StoreToDocumentArchive [13:22:42]shift 445 fd 164224 [13:22:42]save to /storage/0445/doc_00164224 [13:22:42]save last doc name /storage/0445/doc_00164224 to /storage/kkm_last_doc_name [13:22:42]save OK [13:22:42]Clear old archive folders... [13:22:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:42]tlvbuf is 00A684B0 [13:22:42]SAM_PROTO_ClearQueue [13:22:42]wFMCommunicate request_size=4 [13:22:42]MH_SAM_APDU [13:22:42]CAPDU: 80 09 00 00 [13:22:42]Write to MH i2c: E2 08 00 A9 1E 80 09 00 00 00 00 00 00 39 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 A9 1E 00 90 00 3B [13:22:43]RAPDU: 90 00 [13:22:43]wFMCommunicate OK [13:22:43]SAM_PROTO_ClearQueue done [13:22:43]KKMCreateOFDPacket [13:22:43]OFDProtocolAddRootSTLVToBuf [13:22:43]FM_MakeSignedData [13:22:43]FM_MakeSignedData [13:22:43]SAM_PROTO_SignData [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 0D 01 02 [13:22:43]Write to MH i2c: E2 08 00 AA 1E 80 0D 01 02 00 00 00 00 41 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 AA 1E 00 90 00 3C [13:22:43]RAPDU: 90 00 [13:22:43]wFMCommunicate OK [13:22:43]wFMCommunicate request_size=255 [13:22:43]MH_SAM_APDU [13: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 0E 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A4 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 23 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 81 02 00 35 04 06 00 D5 [13:22:43]Write to MH i2c: E2 02 01 AB 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A4 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 23 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 81 02 00 35 04 06 00 D5 00 00 AC [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]OFD Sender: No OFD packet to send [13:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 AB 1E 00 90 00 3D [13:22:43]RAPDU: 90 00 [13:22:43]wFMCommunicate OK [13:22:43]wFMCommunicate request_size=10 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 0D 02 02 05 7F F9 14 2A 73 [13:22:43]Write to MH i2c: E2 0D 00 AC 1E 80 0D 02 02 05 00 7F F9 14 2A 73 00 00 77 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 AC 1E 00 90 00 3E [13:22:43]RAPDU: 90 00 [13:22:43]wFMCommunicate OK [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 0D 03 02 [13:22:43]Write to MH i2c: E2 08 00 AD 1E 80 0D 03 02 00 00 00 00 46 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 0B 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 0B 00 AD 1E 00 99 44 9B 6B 90 35 35 17 90 00 3B [13:22:43]RAPDU: 99 44 9B 6B 90 35 35 17 90 00 [13:22:43]wFMCommunicate OK [13:22:43]SAM_PROTO_SignData done [13:22:43]FM_MakeSignedData done [13:22:43]CreateOFDProtocolMessage [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 11 00 00 [13:22:43]Write to MH i2c: E2 08 00 AE 1E 80 11 00 00 00 00 00 00 46 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 17 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 17 00 AE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [13:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:22:43]wFMCommunicate OK [13:22:43]CreateOFDProtocolMessage done [13:22:43]OFDSenderStorePacket 164224 [13:22:43]StoreOFDPacket docnum=164224 [13:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A9 0F 07 01 7C 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A4 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 23 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 81 02 00 35 04 06 00 D5 7F F9 14 2A 73 99 44 9B 6B 90 35 35 17 [13:22:43]CheckFolder [13:22:43]dirname=/storage/ofd_packets [13:22:43]CheckFolder done [13:22:43]ProducePacketName [13:22:43]name=ofd_packets/00164224 [13:22:43]NVStorageSaveData ofd_packets/00164224 [13:22:43]File name is /storage/ofd_packets/00164224 [13:22:43]Write 301 bytes [13:22:43]NVStorageSaveData done [13:22:43]OFDSenderStorePacket done [13:22:43]KKMCreateOFDPacket done [13:22:43]NVStorageSaveData kkm_last_timestamp [13:22:43]File name is /storage/kkm_last_timestamp [13:22:43]Write 4 bytes [13:22:43]NVStorageSaveData done [13:22:43]ExternCall_PrintAddStr [13:22:43]wPrintStart [13:22:43]Write to MH i2c: 01 00 00 AF 1E CD [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: 01 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: 01 07 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 FF 0F E2 [13:22:43]RasterBufferAndPrint [13:22:43]line Счет N : (1)458307 [13:22:43]line ИНН: 02508201610067 [13:22:43]line Контрольно-Кассовый Чек [13:22:43]line ПРОДАЖА [13:22:43]line ТРК (МРК, ГНК) : 12 [13:22:43]line Товар: 2710124130 [13:22:43]line Аи-92-К-5 [13:22:43]line 4.110 * 65.80 [13:22:43]line = 270.44 [13:22:43]line НДС 12% НСП 1% [13:22:43]line > о реализуемом товаре [13:22:43]line ОКРУГЛЕНИЕ: -0.44 [13:22:43]line ИТОГО: 270.00 [13:22:43]line Внесено: 270.00 [13:22:43]line СДАЧА: 0.00 [13:22:43]line НСП 1% : 2.39 [13:22:43]line НДС 12% : 28.72 [13:22:43]line Наличными: 270.00 [13:22:43]line Безнал.: 0.00 [13:22:43]line Место: АЗС № 72 "Партнер Нефть" [13:22:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:22:43]line СНО: Общий режим [13:22:43]line Чек 145 12.07.2024 13:22 [13:22:43]line Смена: 445 ФФД: 1.0 [13:22:43]line ЗНМ: 0300000160 [13:22:43]line РНМ: 0000000000090829 [13:22:43]line Версия ККМ: 001 [13:22:43]line ФМ: 0000000000874718 [13:22:43]line ФД: 164224 [13:22:43]line ФПД: 234745616411251 [13:22:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T132243&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164224&fm=234745616411251&tin=02508201610067®Number=0000000000090829&sum=27000 [13:22:43]OFD Sender: Processing packet 164224 [packets to send 104, broken 103] [13:22:43]ProducePacketName [13:22:43]name=ofd_packets/00164224 [13:22:43]OFD Sender: To server: pG, [13:22:43]CommunicateWithHost lk.salyk.kg:30040 [13:22:43]ConnectInit lk.salyk.kg [13:22:43]written 0, free lines is 4095 [13:22:43]Connected sock=10 [13:22:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A9 0F 07 01 7C 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A4 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 23 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 81 02 00 35 04 06 00 D5 7F F9 14 2A 73 99 44 9B 6B 90 35 35 17 [13:22:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 80 4A 47 00 4C 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 34 37 31 38 10 04 04 00 80 81 02 00 F4 03 04 00 B7 D4 90 66 B6 04 01 00 00 02 9B 48 6A 27 6E 48 D3 [13:22:44]CommunicateWithHost err = 0 [13:22:44]CheckOFDResponse [13:22:44]1017 (14) - 77093643461234 [13:22:44]1041 (16) - 0000000000874718 [13:22:44]1040 (4) - 164224 [13:22:44]1012 (4) - 12.07.2024 07:01 [13:22:44]1206 (1) - 0 [13:22:44]OFD Sender: Remove packet 164224 [13:22:44]ProducePacketName [13:22:44]name=ofd_packets/00164224 [13:22:44]NVStorageDeleteData [13:22:44]Write to MH i2c: 01 00 00 D9 1E F7 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: 01 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: 01 07 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: 01 07 00 D9 1E 00 00 00 00 00 FE 0C 08 [13:22:44]RasterBufferAndPrint [13:22:44]line [13:22:44]line [13:22:44]line [13:22:44]line [13:22:44]line [13:22:44]written 0, free lines is 3332 [13:22:44]MH_Cut [13:22:44]Write to MH i2c: D1 01 00 E0 1E 01 D0 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: D1 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: D1 01 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: D1 01 00 E0 1E 00 CF [13:22:44]Write to MH i2c: 01 00 00 E1 1E FF [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]OFD Sender: No OFD packet to send [13:22:44]*** Cut start [13:22:44]*** Partial cut [13:22:44]*** CUTSNS_PIN = 1 [13:22:44]*** CUTSNS_PIN = 0 [13:22:45]*** Brake cut motor [13:22:45]Read from MH i2c: 01 [13:22:45]MH_I2C_Read... [13:22:45]*** Stop cut motor [13:22:45]*** Cut end [13:22:45]Read from MH i2c: 01 07 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 07 00 E1 1E 00 00 00 00 00 FF 0F 14 [13:22:45]process_action close_receipt done [13:22:45]requested_data is exist [13:22:45]produce_requested_data [13:22:45]requested_item fm.sn is exist - process it [13:22:45]wFMCommunicate request_size=4 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 11 00 00 [13:22:45]Write to MH i2c: E2 08 00 E2 1E 80 11 00 00 00 00 00 00 7A [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 17 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 17 00 E2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [13:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:22:45]wFMCommunicate OK [13:22:45]requested_item fd.num is exist - process it [13:22:45]SAM_PROTO_GetFieldsCounters [13:22:45]wFMCommunicate request_size=4 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 13 00 00 [13:22:45]Write to MH i2c: E2 08 00 E3 1E 80 13 00 00 00 00 00 00 7D [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 62 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 62 00 E3 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [13:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:45]wFMCommunicate OK [13:22:45]SAM_PROTO_GetFieldsCounters done [13:22:45]requested_item shift.num is exist - process it [13:22:45]requested_item shift.opened is exist - process it [13:22:45]req_shift_opened [13:22:45]FM_GetShiftState [13:22:45]SAM_PROTO_GetShiftState [13:22:45]wFMCommunicate request_size=4 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 13 01 00 [13:22:45]Write to MH i2c: E2 08 00 E4 1E 80 13 01 00 00 00 00 00 7F [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 0E 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 0E 00 E4 1E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C9 [13:22:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:22:45]wFMCommunicate OK [13:22:45]SAM_PROTO_GetShiftState done [13:22:45]FM_GetShiftState done [13:22:45]req_shift_opened done [13:22:45]requested_item shift.open_date is exist - process it [13:22:45]req_shift_open_date [13:22:45]req_shift_open_date done [13:22:45]produce_requested_data done [13:22:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164224,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:22:45]process_action_free close_receipt [13:22:45]json_value_free [13:22:45]json_value_free done [13:22:45]process_json_proto returns [13:22:45]Send response to host [13:22:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164224,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:22:45]free response buf [13:22:45]execute_script done [13:22:45]execute_script returns [13:22:45]free content buf [13:22:45]Sock 7.Close socket [13:22:45]Sock 7.Thread stoped [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:10]accept exits with 9 [13:26:10]New connection [13:26:10]New thread 3066850660 created [13:26:10]Thread 3066707300 joined [13:26:10]Waiting for new connection... [13:26:10] Sock 9.Parse request [13:26:10]Sock 9.Check first char [13:26:10]Sock 9.First char is OK [13:26:10]request: POST /json_proto HTTP/1.0 [13:26:10]Method: POST [13:26:10]URL: /json_proto [13:26:10]Method is POST - this is cgi request [13:26:10]url: /json_proto [13:26:10]query_string will be loaded in cgi processing [13:26:10]execute_cgi json_proto POST (null) [13:26:10]execute_cgi path=json_proto method=POST [13:26:10]POST find Content-Length [13:26:10]Host: 172.17.56.4:8080 [13:26:10]Content-Length: 677 [13:26:10]Content-Type: application/json [13:26:10] [13:26:10]POST finish read [13:26:10]Found Content-Length = 677 [13:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "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" ] } } [13:26:10]execute_script... [13:26: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)458308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "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" ] } } [13:26:10]POST & json_proto [13:26:10]process_json_proto [13:26:10]json parsed OK: [13:26:10]protocol is kg_v1.0 [13:26:10]action value=close_receipt [13:26:10]process_action close_receipt [13:26:10]cmd_close_receipt [13:26:10]MH_GetDate [13:26:10]Write to MH i2c: F0 00 00 E5 1E F2 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: F0 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: F0 09 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: F0 09 00 E5 1E 00 F3 2E 91 66 C9 DC B2 64 CE [13:26:10]GetLastDocTimeStamp 1720790563 [13:26:10]current date 1720790771 [13:26:10]FM_GetShiftState [13:26:10]SAM_PROTO_GetShiftState [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 13 01 00 [13:26:10]Write to MH i2c: E2 08 00 E6 1E 80 13 01 00 00 00 00 00 81 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0E 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0E 00 E6 1E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CB [13:26:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:26:10]wFMCommunicate OK [13:26:10]SAM_PROTO_GetShiftState done [13:26:10]FM_GetShiftState done [13:26:10]opened in 1720744654 [13:26:10]opened+sec_in_day 1720831054 [13:26:10]quantity*price = 65010 [13:26:10]sum+1 = 65011 [13:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.04 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 146 12.07.2024 13:26 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164225 ФПД: 48341038411634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T132611&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164225&fm=48341038411634&tin=02508201610067®Number=0000000000090829&sum=65000 [13:26:11]StoreToDocumentArchive [13:26:11]shift 445 fd 164225 [13:26:11]save to /storage/0445/doc_00164225 [13:26:11]save last doc name /storage/0445/doc_00164225 to /storage/kkm_last_doc_name [13:26:11]save OK [13:26:11]Clear old archive folders... [13:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:11]tlvbuf is 00A2DF60 [13:26:11]SAM_PROTO_ClearQueue [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 09 00 00 [13:26:11]Write to MH i2c: E2 08 00 F3 1E 80 09 00 00 00 00 00 00 83 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 F3 1E 00 90 00 85 [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]SAM_PROTO_ClearQueue done [13:26:11]KKMCreateOFDPacket [13:26:11]OFDProtocolAddRootSTLVToBuf [13:26:11]FM_MakeSignedData [13:26:11]FM_MakeSignedData [13:26:11]SAM_PROTO_SignData [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 01 02 [13:26:11]Write to MH i2c: E2 08 00 F4 1E 80 0D 01 02 00 00 00 00 8B [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 F4 1E 00 90 00 86 [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=255 [13:26:11]MH_SAM_APDU [13:26: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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 92 00 00 00 F4 03 04 00 F3 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 81 02 00 35 04 06 00 2B [13:26:11]Write to MH i2c: E2 02 01 F5 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 92 00 00 00 F4 03 04 00 F3 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 81 02 00 35 04 06 00 2B 00 00 C9 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 F5 1E 00 90 00 87 [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=10 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 02 02 05 F7 46 6C 2F 72 [13:26:11]Write to MH i2c: E2 0D 00 F6 1E 80 0D 02 02 05 00 F7 46 6C 2F 72 00 00 E2 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 F6 1E 00 90 00 88 [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 03 02 [13:26:11]Write to MH i2c: E2 08 00 F7 1E 80 0D 03 02 00 00 00 00 90 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 0B 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 0B 00 F7 1E 00 EF 3D 3B 4C 9F 8C 02 DE 90 00 4F [13:26:12]RAPDU: EF 3D 3B 4C 9F 8C 02 DE 90 00 [13:26:12]wFMCommunicate OK [13:26:12]SAM_PROTO_SignData done [13:26:12]FM_MakeSignedData done [13:26:12]CreateOFDProtocolMessage [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 11 00 00 [13:26:12]Write to MH i2c: E2 08 00 F8 1E 80 11 00 00 00 00 00 00 90 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 17 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 17 00 F8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [13:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:26:12]wFMCommunicate OK [13:26:12]CreateOFDProtocolMessage done [13:26:12]OFDSenderStorePacket 164225 [13:26:12]StoreOFDPacket docnum=164225 [13:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 0B 07 01 37 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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 92 00 00 00 F4 03 04 00 F3 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 81 02 00 35 04 06 00 2B F7 46 6C 2F 72 EF 3D 3B 4C 9F 8C 02 DE [13:26:12]CheckFolder [13:26:12]dirname=/storage/ofd_packets [13:26:12]CheckFolder done [13:26:12]ProducePacketName [13:26:12]name=ofd_packets/00164225 [13:26:12]NVStorageSaveData ofd_packets/00164225 [13:26:12]File name is /storage/ofd_packets/00164225 [13:26:12]Write 301 bytes [13:26:12]NVStorageSaveData done [13:26:12]OFDSenderStorePacket done [13:26:12]KKMCreateOFDPacket done [13:26:12]NVStorageSaveData kkm_last_timestamp [13:26:12]File name is /storage/kkm_last_timestamp [13:26:12]Write 4 bytes [13:26:12]NVStorageSaveData done [13:26:12]ExternCall_PrintAddStr [13:26:12]wPrintStart [13:26:12]Write to MH i2c: 01 00 00 F9 1E 17 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 F9 1E 00 00 00 00 00 FF 0F 2C [13:26:12]RasterBufferAndPrint [13:26:12]line Счет N : (1)458308 [13:26:12]line ИНН: 02508201610067 [13:26:12]line Контрольно-Кассовый Чек [13:26:12]line ПРОДАЖА [13:26:12]line ТРК (МРК, ГНК) : 22 [13:26:12]line Товар: 2710124130 [13:26:12]line Аи-92-К-5 [13:26:12]line 9.880 * 65.80 [13:26:12]line = 650.10 [13:26:12]line НДС 12% НСП 1% [13:26:12]line > о реализуемом товаре [13:26:12]line ОКРУГЛЕНИЕ: -0.10 [13:26:12]line ИТОГО: 650.00 [13:26:12]line Внесено: 650.00 [13:26:12]line СДАЧА: 0.00 [13:26:12]line НСП 1% : 5.75 [13:26:12]line НДС 12% : 69.04 [13:26:12]line Наличными: 650.00 [13:26:12]line Безнал.: 0.00 [13:26:12]line Место: АЗС № 72 "Партнер Нефть" [13:26:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:26:12]line СНО: Общий режим [13:26:12]line Чек 146 12.07.2024 13:26 [13:26:12]line Смена: 445 ФФД: 1.0 [13:26:12]line ЗНМ: 0300000160 [13:26:12]line РНМ: 0000000000090829 [13:26:12]line Версия ККМ: 001 [13:26:12]line ФМ: 0000000000874718 [13:26:12]line ФД: 164225 [13:26:12]line ФПД: 48341038411634 [13:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T132611&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164225&fm=48341038411634&tin=02508201610067®Number=0000000000090829&sum=65000 [13:26:12]OFD Sender: Processing packet 164225 [packets to send 104, broken 103] [13:26:12]ProducePacketName [13:26:12]name=ofd_packets/00164225 [13:26:12]OFD Sender: To server: pG, [13:26:12]CommunicateWithHost lk.salyk.kg:30040 [13:26:12]ConnectInit lk.salyk.kg [13:26:12]written 0, free lines is 4095 [13:26:12]Connected sock=10 [13:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 0B 07 01 37 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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 92 00 00 00 F4 03 04 00 F3 2E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 81 02 00 35 04 06 00 2B F7 46 6C 2F 72 EF 3D 3B 4C 9F 8C 02 DE [13:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B4 E2 47 00 A1 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 34 37 31 38 10 04 04 00 81 81 02 00 F4 03 04 00 88 D5 90 66 B6 04 01 00 00 40 53 A4 7E CE CE 15 D8 [13:26:12]CommunicateWithHost err = 0 [13:26:12]CheckOFDResponse [13:26:12]1017 (14) - 77093643461234 [13:26:12]1041 (16) - 0000000000874718 [13:26:12]1040 (4) - 164225 [13:26:12]1012 (4) - 12.07.2024 07:04 [13:26:12]1206 (1) - 0 [13:26:12]OFD Sender: Remove packet 164225 [13:26:12]ProducePacketName [13:26:12]name=ofd_packets/00164225 [13:26:12]NVStorageDeleteData [13:26:12]Write to MH i2c: 01 00 00 23 1F 42 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 23 1F 00 00 00 00 00 FF 0C 54 [13:26:12]RasterBufferAndPrint [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]written 0, free lines is 3333 [13:26:12]MH_Cut [13:26:12]Write to MH i2c: D1 01 00 2A 1F 01 1B [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 01 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 01 00 2A 1F 00 1A [13:26:12]Write to MH i2c: 01 00 00 2B 1F 4A [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:13]OFD Sender: No OFD packet to send [13:26:13]*** Cut start [13:26:13]*** Partial cut [13:26:13]*** CUTSNS_PIN = 1 [13:26:13]*** CUTSNS_PIN = 0 [13:26:13]*** Brake cut motor [13:26:14]Read from MH i2c: 01 [13:26:14]MH_I2C_Read... [13:26:14]*** Stop cut motor [13:26:14]*** Cut end [13:26:14]Read from MH i2c: 01 07 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: 01 07 00 2B 1F 00 00 00 00 00 FF 0F 5F [13:26:14]process_action close_receipt done [13:26:14]requested_data is exist [13:26:14]produce_requested_data [13:26:14]requested_item fm.sn is exist - process it [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 11 00 00 [13:26:14]Write to MH i2c: E2 08 00 2C 1F 80 11 00 00 00 00 00 00 C5 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 2C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [13:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:26:14]wFMCommunicate OK [13:26:14]requested_item fd.num is exist - process it [13:26:14]SAM_PROTO_GetFieldsCounters [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 13 00 00 [13:26:14]Write to MH i2c: E2 08 00 2D 1F 80 13 00 00 00 00 00 00 C8 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 2D 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [13:26: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetFieldsCounters done [13:26:14]requested_item shift.num is exist - process it [13:26:14]requested_item shift.opened is exist - process it [13:26:14]req_shift_opened [13:26:14]FM_GetShiftState [13:26:14]SAM_PROTO_GetShiftState [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 13 01 00 [13:26:14]Write to MH i2c: E2 08 00 2E 1F 80 13 01 00 00 00 00 00 CA [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 2E 1F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 14 [13:26:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetShiftState done [13:26:14]FM_GetShiftState done [13:26:14]req_shift_opened done [13:26:14]requested_item shift.open_date is exist - process it [13:26:14]req_shift_open_date [13:26:14]req_shift_open_date done [13:26:14]produce_requested_data done [13:26:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164225,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:26:14]process_action_free close_receipt [13:26:14]json_value_free [13:26:14]json_value_free done [13:26:14]process_json_proto returns [13:26:14]Send response to host [13:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164225,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:26:14]free response buf [13:26:14]execute_script done [13:26:14]execute_script returns [13:26:14]free content buf [13:26:14]Sock 9.Close socket [13:26:14]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:24]accept exits with 7 [13:30:24]New connection [13:30:24]New thread 3066707300 created [13:30:24]Thread 3066850660 joined [13:30:24]Waiting for new connection... [13:30:24] Sock 7.Parse request [13:30:24]Sock 7.Check first char [13:30:24]Sock 7.First char is OK [13:30:24]request: POST /json_proto HTTP/1.0 [13:30:24]Method: POST [13:30:24]URL: /json_proto [13:30:24]Method is POST - this is cgi request [13:30:24]url: /json_proto [13:30:24]query_string will be loaded in cgi processing [13:30:24]execute_cgi json_proto POST (null) [13:30:24]execute_cgi path=json_proto method=POST [13:30:24]POST find Content-Length [13:30:24]Host: 172.17.56.4:8080 [13:30:24]Content-Length: 678 [13:30:24]Content-Type: application/json [13:30:24] [13:30:24]POST finish read [13:30:24]Found Content-Length = 678 [13:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:30:24]execute_script... [13:30:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:30:24]POST & json_proto [13:30:24]process_json_proto [13:30:24]json parsed OK: [13:30:24]protocol is kg_v1.0 [13:30:24]action value=close_receipt [13:30:24]process_action close_receipt [13:30:24]cmd_close_receipt [13:30:24]MH_GetDate [13:30:24]Write to MH i2c: F0 00 00 2F 1F 3D [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: F0 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: F0 09 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: F0 09 00 2F 1F 00 F2 2F 91 66 C9 DC B2 64 19 [13:30:24]GetLastDocTimeStamp 1720790771 [13:30:24]current date 1720791026 [13:30:24]FM_GetShiftState [13:30:24]SAM_PROTO_GetShiftState [13:30:24]wFMCommunicate request_size=4 [13:30:24]MH_SAM_APDU [13:30:24]CAPDU: 80 13 01 00 [13:30:24]Write to MH i2c: E2 08 00 30 1F 80 13 01 00 00 00 00 00 CC [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:24]Read from MH i2c: E2 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 0E 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 0E 00 30 1F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 16 [13:30:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:30:24]wFMCommunicate OK [13:30:24]SAM_PROTO_GetShiftState done [13:30:24]FM_GetShiftState done [13:30:24]opened in 1720744654 [13:30:24]opened+sec_in_day 1720831054 [13:30:24]quantity*price = 70011 [13:30:24]sum+1 = 70012 [13:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 147 12.07.2024 13:30 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164226 ФПД: 270552475179203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133026&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164226&fm=270552475179203&tin=02508201610067®Number=0000000000090829&sum=70000 [13:30:25]StoreToDocumentArchive [13:30:25]shift 445 fd 164226 [13:30:25]save to /storage/0445/doc_00164226 [13:30:25]save last doc name /storage/0445/doc_00164226 to /storage/kkm_last_doc_name [13:30:25]save OK [13:30:25]Clear old archive folders... [13:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:25]tlvbuf is 00A684E0 [13:30:25]SAM_PROTO_ClearQueue [13:30:25]wFMCommunicate request_size=4 [13:30:25]MH_SAM_APDU [13:30:25]CAPDU: 80 09 00 00 [13:30:25]Write to MH i2c: E2 08 00 3D 1F 80 09 00 00 00 00 00 00 CE [13:30:25]Write i2c OK [13:30:25]MH_I2C_Read... [13:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:25]Read from MH i2c: E2 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 03 00 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 03 00 3D 1F 00 90 00 D0 [13:30:25]RAPDU: 90 00 [13:30:25]wFMCommunicate OK [13:30:25]SAM_PROTO_ClearQueue done [13:30:25]KKMCreateOFDPacket [13:30:25]OFDProtocolAddRootSTLVToBuf [13:30:25]FM_MakeSignedData [13:30:25]FM_MakeSignedData [13:30:25]SAM_PROTO_SignData [13:30:25]wFMCommunicate request_size=4 [13:30:25]MH_SAM_APDU [13:30:25]CAPDU: 80 0D 01 02 [13:30:25]Write to MH i2c: E2 08 00 3E 1F 80 0D 01 02 00 00 00 00 D6 [13:30:25]Write i2c OK [13:30:25]MH_I2C_Read... [13:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:25]Read from MH i2c: E2 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 03 00 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 03 00 3E 1F 00 90 00 D1 [13:30:25]RAPDU: 90 00 [13:30:25]wFMCommunicate OK [13:30:25]wFMCommunicate request_size=255 [13:30:25]MH_SAM_APDU [13:30:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 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 F2 2F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 81 02 00 35 04 06 00 F6 [13:30:25]Write to MH i2c: E2 02 01 3F 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 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 F2 2F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 81 02 00 35 04 06 00 F6 00 00 F7 [13:30:25]Write i2c OK [13:30:25]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 03 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 03 00 3F 1F 00 90 00 D2 [13:30:26]RAPDU: 90 00 [13:30:26]wFMCommunicate OK [13:30:26]wFMCommunicate request_size=10 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 0D 02 02 05 10 E8 2D 18 C3 [13:30:26]Write to MH i2c: E2 0D 00 40 1F 80 0D 02 02 05 00 10 E8 2D 18 C3 00 00 E3 [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 03 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 03 00 40 1F 00 90 00 D3 [13:30:26]RAPDU: 90 00 [13:30:26]wFMCommunicate OK [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 0D 03 02 [13:30:26]Write to MH i2c: E2 08 00 41 1F 80 0D 03 02 00 00 00 00 DB [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 0B 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 0B 00 41 1F 00 08 62 1C B8 10 2C E5 2B 90 00 66 [13:30:26]RAPDU: 08 62 1C B8 10 2C E5 2B 90 00 [13:30:26]wFMCommunicate OK [13:30:26]SAM_PROTO_SignData done [13:30:26]FM_MakeSignedData done [13:30:26]CreateOFDProtocolMessage [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 11 00 00 [13:30:26]Write to MH i2c: E2 08 00 42 1F 80 11 00 00 00 00 00 00 DB [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 17 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 17 00 42 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [13:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:30:26]wFMCommunicate OK [13:30:26]CreateOFDProtocolMessage done [13:30:26]OFDSenderStorePacket 164226 [13:30:26]StoreOFDPacket docnum=164226 [13:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EF 3E 07 01 AB 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 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 F2 2F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 81 02 00 35 04 06 00 F6 10 E8 2D 18 C3 08 62 1C B8 10 2C E5 2B [13:30:26]CheckFolder [13:30:26]dirname=/storage/ofd_packets [13:30:26]CheckFolder done [13:30:26]ProducePacketName [13:30:26]name=ofd_packets/00164226 [13:30:26]NVStorageSaveData ofd_packets/00164226 [13:30:26]File name is /storage/ofd_packets/00164226 [13:30:26]Write 301 bytes [13:30:26]NVStorageSaveData done [13:30:26]OFDSenderStorePacket done [13:30:26]KKMCreateOFDPacket done [13:30:26]NVStorageSaveData kkm_last_timestamp [13:30:26]File name is /storage/kkm_last_timestamp [13:30:26]Write 4 bytes [13:30:26]NVStorageSaveData done [13:30:26]ExternCall_PrintAddStr [13:30:26]wPrintStart [13:30:26]Write to MH i2c: 01 00 00 43 1F 62 [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: 01 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: 01 07 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: 01 07 00 43 1F 00 00 00 00 00 FF 0F 77 [13:30:26]RasterBufferAndPrint [13:30:26]line Счет N : (1)458309 [13:30:26]line ИНН: 02508201610067 [13:30:26]line Контрольно-Кассовый Чек [13:30:26]line ПРОДАЖА [13:30:26]line ТРК (МРК, ГНК) : 12 [13:30:26]line Товар: 2710124130 [13:30:26]line Аи-92-К-5 [13:30:26]line 10.640 * 65.80 [13:30:26]line = 700.11 [13:30:26]line НДС 12% НСП 1% [13:30:26]line > о реализуемом товаре [13:30:26]line ОКРУГЛЕНИЕ: -0.11 [13:30:26]line ИТОГО: 700.00 [13:30:26]line Внесено: 700.00 [13:30:26]line СДАЧА: 0.00 [13:30:26]line НСП 1% : 6.20 [13:30:26]line НДС 12% : 74.35 [13:30:26]line Наличными: 700.00 [13:30:26]line Безнал.: 0.00 [13:30:26]line Место: АЗС № 72 "Партнер Нефть" [13:30:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:30:26]line СНО: Общий режим [13:30:26]line Чек 147 12.07.2024 13:30 [13:30:26]line Смена: 445 ФФД: 1.0 [13:30:26]line ЗНМ: 0300000160 [13:30:26]line РНМ: 0000000000090829 [13:30:26]line Версия ККМ: 001 [13:30:26]line ФМ: 0000000000874718 [13:30:26]line ФД: 164226 [13:30:26]line ФПД: 270552475179203 [13:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133026&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164226&fm=270552475179203&tin=02508201610067®Number=0000000000090829&sum=70000 [13:30:26]OFD Sender: Processing packet 164226 [packets to send 104, broken 103] [13:30:26]ProducePacketName [13:30:26]name=ofd_packets/00164226 [13:30:26]OFD Sender: To server: pG, [13:30:26]CommunicateWithHost lk.salyk.kg:30040 [13:30:26]ConnectInit lk.salyk.kg [13:30:26]written 0, free lines is 4095 [13:30:26]Connected sock=10 [13:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EF 3E 07 01 AB 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 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 F2 2F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 81 02 00 35 04 06 00 F6 10 E8 2D 18 C3 08 62 1C B8 10 2C E5 2B [13:30:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BA 37 47 00 1A 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 34 37 31 38 10 04 04 00 82 81 02 00 F4 03 04 00 86 D6 90 66 B6 04 01 00 00 7C B6 0D 1D D5 21 1A A4 [13:30:26]CommunicateWithHost err = 0 [13:30:26]CheckOFDResponse [13:30:26]1017 (14) - 77093643461234 [13:30:26]1041 (16) - 0000000000874718 [13:30:26]1040 (4) - 164226 [13:30:26]1012 (4) - 12.07.2024 07:08 [13:30:26]1206 (1) - 0 [13:30:26]OFD Sender: Remove packet 164226 [13:30:26]ProducePacketName [13:30:26]name=ofd_packets/00164226 [13:30:26]NVStorageDeleteData [13:30:27]Write to MH i2c: 01 00 00 6D 1F 8C [13:30:27]Write i2c OK [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: 01 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: 01 07 00 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: 01 07 00 6D 1F 00 00 00 00 00 F6 0C 95 [13:30:27]RasterBufferAndPrint [13:30:27]line [13:30:27]line [13:30:27]line [13:30:27]line [13:30:27]line [13:30:27]written 0, free lines is 3323 [13:30:27]MH_Cut [13:30:27]Write to MH i2c: D1 01 00 74 1F 01 65 [13:30:27]Write i2c OK [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: D1 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: D1 01 00 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: D1 01 00 74 1F 00 64 [13:30:27]Write to MH i2c: 01 00 00 75 1F 94 [13:30:27]Write i2c OK [13:30:27]MH_I2C_Read... [13:30:27]OFD Sender: No OFD packet to send [13:30:27]*** Cut start [13:30:27]*** Partial cut [13:30:27]*** CUTSNS_PIN = 1 [13:30:27]*** CUTSNS_PIN = 0 [13:30:28]*** Brake cut motor [13:30:28]Read from MH i2c: 01 [13:30:28]MH_I2C_Read... [13:30:28]*** Stop cut motor [13:30:28]*** Cut end [13:30:28]Read from MH i2c: 01 07 00 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: 01 07 00 75 1F 00 00 00 00 00 FF 0F A9 [13:30:28]process_action close_receipt done [13:30:28]requested_data is exist [13:30:28]produce_requested_data [13:30:28]requested_item fm.sn is exist - process it [13:30:28]wFMCommunicate request_size=4 [13:30:28]MH_SAM_APDU [13:30:28]CAPDU: 80 11 00 00 [13:30:28]Write to MH i2c: E2 08 00 76 1F 80 11 00 00 00 00 00 00 0F [13:30:28]Write i2c OK [13:30:28]MH_I2C_Read... [13:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:28]Read from MH i2c: E2 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 17 00 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 17 00 76 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [13:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:30:28]wFMCommunicate OK [13:30:28]requested_item fd.num is exist - process it [13:30:28]SAM_PROTO_GetFieldsCounters [13:30:28]wFMCommunicate request_size=4 [13:30:28]MH_SAM_APDU [13:30:28]CAPDU: 80 13 00 00 [13:30:28]Write to MH i2c: E2 08 00 77 1F 80 13 00 00 00 00 00 00 12 [13:30:28]Write i2c OK [13:30:28]MH_I2C_Read... [13:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:28]Read from MH i2c: E2 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 62 00 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 62 00 77 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [13:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:28]wFMCommunicate OK [13:30:28]SAM_PROTO_GetFieldsCounters done [13:30:28]requested_item shift.num is exist - process it [13:30:28]requested_item shift.opened is exist - process it [13:30:28]req_shift_opened [13:30:28]FM_GetShiftState [13:30:28]SAM_PROTO_GetShiftState [13:30:28]wFMCommunicate request_size=4 [13:30:28]MH_SAM_APDU [13:30:28]CAPDU: 80 13 01 00 [13:30:28]Write to MH i2c: E2 08 00 78 1F 80 13 01 00 00 00 00 00 14 [13:30:28]Write i2c OK [13:30:28]MH_I2C_Read... [13:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:28]Read from MH i2c: E2 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 0E 00 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 0E 00 78 1F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5E [13:30:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:30:28]wFMCommunicate OK [13:30:28]SAM_PROTO_GetShiftState done [13:30:28]FM_GetShiftState done [13:30:28]req_shift_opened done [13:30:28]requested_item shift.open_date is exist - process it [13:30:28]req_shift_open_date [13:30:28]req_shift_open_date done [13:30:28]produce_requested_data done [13:30:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164226,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:30:28]process_action_free close_receipt [13:30:28]json_value_free [13:30:28]json_value_free done [13:30:28]process_json_proto returns [13:30:28]Send response to host [13:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164226,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:30:28]free response buf [13:30:28]execute_script done [13:30:28]execute_script returns [13:30:28]free content buf [13:30:28]Sock 7.Close socket [13:30:28]Sock 7.Thread stoped [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:30:58]accept exits with 9 [13:30:58]New connection [13:30:58]New thread 3066850660 created [13:30:58]Thread 3066707300 joined [13:30:58]Waiting for new connection... [13:30:58] Sock 9.Parse request [13:30:58]Sock 9.Check first char [13:30:58]Sock 9.First char is OK [13:30:58]request: POST /json_proto HTTP/1.0 [13:30:58]Method: POST [13:30:58]URL: /json_proto [13:30:58]Method is POST - this is cgi request [13:30:58]url: /json_proto [13:30:58]query_string will be loaded in cgi processing [13:30:58]execute_cgi json_proto POST (null) [13:30:58]execute_cgi path=json_proto method=POST [13:30:58]POST find Content-Length [13:30:58]Host: 172.17.56.4:8080 [13:30:58]Content-Length: 682 [13:30:58]Content-Type: application/json [13:30:58] [13:30:58]POST finish read [13:30:58]Found Content-Length = 682 [13:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:30:58]execute_script... [13:30: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)458310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:30:58]POST & json_proto [13:30:58]process_json_proto [13:30:58]json parsed OK: [13:30:58]protocol is kg_v1.0 [13:30:58]action value=close_receipt [13:30:58]process_action close_receipt [13:30:58]cmd_close_receipt [13:30:58]MH_GetDate [13:30:58]Write to MH i2c: F0 00 00 79 1F 87 [13:30:58]Write i2c OK [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: F0 [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: F0 09 00 [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: F0 09 00 79 1F 00 14 30 91 66 C9 DC B2 64 86 [13:30:58]GetLastDocTimeStamp 1720791026 [13:30:58]current date 1720791060 [13:30:58]FM_GetShiftState [13:30:58]SAM_PROTO_GetShiftState [13:30:58]wFMCommunicate request_size=4 [13:30:58]MH_SAM_APDU [13:30:58]CAPDU: 80 13 01 00 [13:30:58]Write to MH i2c: E2 08 00 7A 1F 80 13 01 00 00 00 00 00 16 [13:30:58]Write i2c OK [13:30:58]MH_I2C_Read... [13:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:58]Read from MH i2c: E2 [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: E2 0E 00 [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: E2 0E 00 7A 1F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 60 [13:30:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:30:58]wFMCommunicate OK [13:30:58]SAM_PROTO_GetShiftState done [13:30:58]FM_GetShiftState done [13:30:58]opened in 1720744654 [13:30:58]opened+sec_in_day 1720831054 [13:30:58]quantity*price = 100016 [13:30:58]sum+1 = 100017 [13:30:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 148 12.07.2024 13:31 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164227 ФПД: 106179032678879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164227&fm=106179032678879&tin=02508201610067®Number=0000000000090829&sum=100000 [13:30:59]StoreToDocumentArchive [13:30:59]shift 445 fd 164227 [13:30:59]save to /storage/0445/doc_00164227 [13:30:59]save last doc name /storage/0445/doc_00164227 to /storage/kkm_last_doc_name [13:30:59]save OK [13:30:59]Clear old archive folders... [13:31:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:00]tlvbuf is 00A7DE30 [13:31:00]SAM_PROTO_ClearQueue [13:31:00]wFMCommunicate request_size=4 [13:31:00]MH_SAM_APDU [13:31:00]CAPDU: 80 09 00 00 [13:31:00]Write to MH i2c: E2 08 00 87 1F 80 09 00 00 00 00 00 00 18 [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:00]Read from MH i2c: E2 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 03 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 03 00 87 1F 00 90 00 1A [13:31:00]RAPDU: 90 00 [13:31:00]wFMCommunicate OK [13:31:00]SAM_PROTO_ClearQueue done [13:31:00]KKMCreateOFDPacket [13:31:00]OFDProtocolAddRootSTLVToBuf [13:31:00]FM_MakeSignedData [13:31:00]FM_MakeSignedData [13:31:00]SAM_PROTO_SignData [13:31:00]wFMCommunicate request_size=4 [13:31:00]MH_SAM_APDU [13:31:00]CAPDU: 80 0D 01 02 [13:31:00]Write to MH i2c: E2 08 00 88 1F 80 0D 01 02 00 00 00 00 20 [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:00]Read from MH i2c: E2 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 03 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 03 00 88 1F 00 90 00 1B [13:31:00]RAPDU: 90 00 [13:31:00]wFMCommunicate OK [13:31:00]wFMCommunicate request_size=255 [13:31:00]MH_SAM_APDU [13:31: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 14 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 81 02 00 35 04 06 00 60 [13:31:00]Write to MH i2c: E2 02 01 89 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 14 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 81 02 00 35 04 06 00 60 00 00 2E [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:00]Read from MH i2c: E2 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 03 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 03 00 89 1F 00 90 00 1C [13:31:00]RAPDU: 90 00 [13:31:00]wFMCommunicate OK [13:31:00]wFMCommunicate request_size=10 [13:31:00]MH_SAM_APDU [13:31:00]CAPDU: 80 0D 02 02 05 91 BB 86 81 DF [13:31:00]Write to MH i2c: E2 0D 00 8A 1F 80 0D 02 02 05 00 91 BB 86 81 DF 00 00 5F [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:00]Read from MH i2c: E2 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 03 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 03 00 8A 1F 00 90 00 1D [13:31:00]RAPDU: 90 00 [13:31:00]wFMCommunicate OK [13:31:00]wFMCommunicate request_size=4 [13:31:00]MH_SAM_APDU [13:31:00]CAPDU: 80 0D 03 02 [13:31:00]Write to MH i2c: E2 08 00 8B 1F 80 0D 03 02 00 00 00 00 25 [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:00]Read from MH i2c: E2 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 0B 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 0B 00 8B 1F 00 CD EE 2E BE BA 36 FF 16 90 00 D2 [13:31:00]RAPDU: CD EE 2E BE BA 36 FF 16 90 00 [13:31:00]wFMCommunicate OK [13:31:00]SAM_PROTO_SignData done [13:31:00]FM_MakeSignedData done [13:31:00]CreateOFDProtocolMessage [13:31:00]wFMCommunicate request_size=4 [13:31:00]MH_SAM_APDU [13:31:00]CAPDU: 80 11 00 00 [13:31:00]Write to MH i2c: E2 08 00 8C 1F 80 11 00 00 00 00 00 00 25 [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:00]Read from MH i2c: E2 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 17 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 17 00 8C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [13:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:00]wFMCommunicate OK [13:31:00]CreateOFDProtocolMessage done [13:31:00]OFDSenderStorePacket 164227 [13:31:00]StoreOFDPacket docnum=164227 [13:31:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 61 07 01 D8 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 14 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 81 02 00 35 04 06 00 60 91 BB 86 81 DF CD EE 2E BE BA 36 FF 16 [13:31:00]CheckFolder [13:31:00]dirname=/storage/ofd_packets [13:31:00]CheckFolder done [13:31:00]ProducePacketName [13:31:00]name=ofd_packets/00164227 [13:31:00]NVStorageSaveData ofd_packets/00164227 [13:31:00]File name is /storage/ofd_packets/00164227 [13:31:00]Write 301 bytes [13:31:00]NVStorageSaveData done [13:31:00]OFDSenderStorePacket done [13:31:00]KKMCreateOFDPacket done [13:31:00]NVStorageSaveData kkm_last_timestamp [13:31:00]File name is /storage/kkm_last_timestamp [13:31:00]Write 4 bytes [13:31:00]NVStorageSaveData done [13:31:00]OFD Sender: Processing packet 164227 [packets to send 104, broken 103] [13:31:00]ProducePacketName [13:31:00]name=ofd_packets/00164227 [13:31:00]OFD Sender: To server: pG, [13:31:00]CommunicateWithHost lk.salyk.kg:30040 [13:31:00]ConnectInit lk.salyk.kg [13:31:00]ExternCall_PrintAddStr [13:31:00]wPrintStart [13:31:00]Write to MH i2c: 01 00 00 8D 1F AC [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: 01 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: 01 07 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 FF 0F C1 [13:31:00]RasterBufferAndPrint [13:31:00]line Счет N : (1)458310 [13:31:00]line ИНН: 02508201610067 [13:31:00]line Контрольно-Кассовый Чек [13:31:00]line ПРОДАЖА [13:31:00]line ТРК (МРК, ГНК) : 22 [13:31:00]line Товар: 2710124130 [13:31:00]line Аи-92-К-5 [13:31:00]line 15.200 * 65.80 [13:31:00]line = 1000.16 [13:31:00]line НДС 12% НСП 1% [13:31:00]line > о реализуемом товаре [13:31:00]line ОКРУГЛЕНИЕ: -0.16 [13:31:00]line ИТОГО: 1000.00 [13:31:00]line Внесено: 1000.00 [13:31:00]line СДАЧА: 0.00 [13:31:00]line НСП 1% : 8.85 [13:31:00]line НДС 12% : 106.21 [13:31:00]line Наличными: 1000.00 [13:31:00]line Безнал.: 0.00 [13:31:00]line Место: АЗС № 72 "Партнер Нефть" [13:31:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:31:00]line СНО: Общий режим [13:31:00]line Чек 148 12.07.2024 13:31 [13:31:00]line Смена: 445 ФФД: 1.0 [13:31:00]line ЗНМ: 0300000160 [13:31:00]line РНМ: 0000000000090829 [13:31:00]line Версия ККМ: 001 [13:31:00]line ФМ: 0000000000874718 [13:31:00]line ФД: 164227 [13:31:00]line ФПД: 106179032678879 [13:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164227&fm=106179032678879&tin=02508201610067®Number=0000000000090829&sum=100000 [13:31:00]Connected sock=11 [13:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 61 07 01 D8 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 14 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 81 02 00 35 04 06 00 60 91 BB 86 81 DF CD EE 2E BE BA 36 FF 16 [13:31:00]written 0, free lines is 4095 [13:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CC CC 47 00 22 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 81 02 00 F4 03 04 00 A8 D6 90 66 B6 04 01 00 00 3F A1 1D 78 35 5E B6 C5 [13:31:01]CommunicateWithHost err = 0 [13:31:01]CheckOFDResponse [13:31:01]1017 (14) - 77093643461234 [13:31:01]1041 (16) - 0000000000874718 [13:31:01]1040 (4) - 164227 [13:31:01]1012 (4) - 12.07.2024 07:09 [13:31:01]1206 (1) - 0 [13:31:01]OFD Sender: Remove packet 164227 [13:31:01]ProducePacketName [13:31:01]name=ofd_packets/00164227 [13:31:01]NVStorageDeleteData [13:31:01]Write to MH i2c: 01 00 00 B7 1F D6 [13:31:01]Write i2c OK [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: 01 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: 01 07 00 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: 01 07 00 B7 1F 00 00 00 00 00 F2 0C DB [13:31:01]RasterBufferAndPrint [13:31:01]line [13:31:01]line [13:31:01]line [13:31:01]line [13:31:01]line [13:31:01]written 0, free lines is 3322 [13:31:01]MH_Cut [13:31:01]Write to MH i2c: D1 01 00 BE 1F 01 AF [13:31:01]Write i2c OK [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: D1 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: D1 01 00 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: D1 01 00 BE 1F 00 AE [13:31:01]Write to MH i2c: 01 00 00 BF 1F DE [13:31:01]Write i2c OK [13:31:01]MH_I2C_Read... [13:31:01]OFD Sender: No OFD packet to send [13:31:02]*** Cut start [13:31:02]*** Partial cut [13:31:02]*** CUTSNS_PIN = 1 [13:31:02]*** CUTSNS_PIN = 0 [13:31:02]*** Brake cut motor [13:31:02]Read from MH i2c: 01 [13:31:02]MH_I2C_Read... [13:31:02]*** Stop cut motor [13:31:02]*** Cut end [13:31:02]Read from MH i2c: 01 07 00 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: 01 07 00 BF 1F 00 00 00 00 00 FF 0F F3 [13:31:02]process_action close_receipt done [13:31:02]requested_data is exist [13:31:02]produce_requested_data [13:31:02]requested_item fm.sn is exist - process it [13:31:02]wFMCommunicate request_size=4 [13:31:02]MH_SAM_APDU [13:31:02]CAPDU: 80 11 00 00 [13:31:02]Write to MH i2c: E2 08 00 C0 1F 80 11 00 00 00 00 00 00 59 [13:31:02]Write i2c OK [13:31:02]MH_I2C_Read... [13:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:02]Read from MH i2c: E2 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 17 00 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 17 00 C0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [13:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:02]wFMCommunicate OK [13:31:02]requested_item fd.num is exist - process it [13:31:02]SAM_PROTO_GetFieldsCounters [13:31:02]wFMCommunicate request_size=4 [13:31:02]MH_SAM_APDU [13:31:02]CAPDU: 80 13 00 00 [13:31:02]Write to MH i2c: E2 08 00 C1 1F 80 13 00 00 00 00 00 00 5C [13:31:02]Write i2c OK [13:31:02]MH_I2C_Read... [13:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:02]Read from MH i2c: E2 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 62 00 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 62 00 C1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [13:31:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:02]wFMCommunicate OK [13:31:02]SAM_PROTO_GetFieldsCounters done [13:31:02]requested_item shift.num is exist - process it [13:31:02]requested_item shift.opened is exist - process it [13:31:02]req_shift_opened [13:31:02]FM_GetShiftState [13:31:02]SAM_PROTO_GetShiftState [13:31:02]wFMCommunicate request_size=4 [13:31:02]MH_SAM_APDU [13:31:02]CAPDU: 80 13 01 00 [13:31:02]Write to MH i2c: E2 08 00 C2 1F 80 13 01 00 00 00 00 00 5E [13:31:02]Write i2c OK [13:31:02]MH_I2C_Read... [13:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:02]Read from MH i2c: E2 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 0E 00 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 0E 00 C2 1F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A8 [13:31:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:31:02]wFMCommunicate OK [13:31:02]SAM_PROTO_GetShiftState done [13:31:02]FM_GetShiftState done [13:31:02]req_shift_opened done [13:31:02]requested_item shift.open_date is exist - process it [13:31:02]req_shift_open_date [13:31:02]req_shift_open_date done [13:31:02]produce_requested_data done [13:31:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164227,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:31:02]process_action_free close_receipt [13:31:02]json_value_free [13:31:02]json_value_free done [13:31:02]process_json_proto returns [13:31:02]Send response to host [13:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164227,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:31:02]free response buf [13:31:02]execute_script done [13:31:02]execute_script returns [13:31:02]free content buf [13:31:02]Sock 9.Close socket [13:31:02]Sock 9.Thread stoped [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:33]accept exits with 7 [13:31:33]New connection [13:31:33]New thread 3066707300 created [13:31:33]Thread 3066850660 joined [13:31:33]Waiting for new connection... [13:31:33] Sock 7.Parse request [13:31:33]Sock 7.Check first char [13:31:33]Sock 7.First char is OK [13:31:33]request: POST /json_proto HTTP/1.0 [13:31:33]Method: POST [13:31:33]URL: /json_proto [13:31:33]Method is POST - this is cgi request [13:31:33]url: /json_proto [13:31:33]query_string will be loaded in cgi processing [13:31:33]execute_cgi json_proto POST (null) [13:31:33]execute_cgi path=json_proto method=POST [13:31:33]POST find Content-Length [13:31:33]Host: 172.17.56.4:8080 [13:31:33]Content-Length: 677 [13:31:33]Content-Type: application/json [13:31:33] [13:31:33]POST finish read [13:31:33]Found Content-Length = 677 [13:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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:31:33]execute_script... [13:31:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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:31:33]POST & json_proto [13:31:33]process_json_proto [13:31:33]json parsed OK: [13:31:33]protocol is kg_v1.0 [13:31:33]action value=close_receipt [13:31:33]process_action close_receipt [13:31:33]cmd_close_receipt [13:31:33]MH_GetDate [13:31:33]Write to MH i2c: F0 00 00 C3 1F D1 [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: F0 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: F0 09 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: F0 09 00 C3 1F 00 37 30 91 66 C9 DC B2 64 F3 [13:31:33]GetLastDocTimeStamp 1720791060 [13:31:33]current date 1720791095 [13:31:33]FM_GetShiftState [13:31:33]SAM_PROTO_GetShiftState [13:31:33]wFMCommunicate request_size=4 [13:31:33]MH_SAM_APDU [13:31:33]CAPDU: 80 13 01 00 [13:31:33]Write to MH i2c: E2 08 00 C4 1F 80 13 01 00 00 00 00 00 60 [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:33]Read from MH i2c: E2 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 0E 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 0E 00 C4 1F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AA [13:31:33]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:31:33]wFMCommunicate OK [13:31:33]SAM_PROTO_GetShiftState done [13:31:33]FM_GetShiftState done [13:31:33]opened in 1720744654 [13:31:33]opened+sec_in_day 1720831054 [13:31:33]quantity*price = 10001 [13:31:33]sum+1 = 10003 [13:31:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 149 12.07.2024 13:31 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164228 ФПД: 169754825646127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133135&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164228&fm=169754825646127&tin=02508201610067®Number=0000000000090829&sum=10000 [13:31:35]StoreToDocumentArchive [13:31:35]shift 445 fd 164228 [13:31:35]save to /storage/0445/doc_00164228 [13:31:35]save last doc name /storage/0445/doc_00164228 to /storage/kkm_last_doc_name [13:31:35]save OK [13:31:35]Clear old archive folders... [13:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:35]tlvbuf is 00A89D90 [13:31:35]SAM_PROTO_ClearQueue [13:31:35]wFMCommunicate request_size=4 [13:31:35]MH_SAM_APDU [13:31:35]CAPDU: 80 09 00 00 [13:31:35]Write to MH i2c: E2 08 00 D1 1F 80 09 00 00 00 00 00 00 62 [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 03 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 03 00 D1 1F 00 90 00 64 [13:31:35]RAPDU: 90 00 [13:31:35]wFMCommunicate OK [13:31:35]SAM_PROTO_ClearQueue done [13:31:35]KKMCreateOFDPacket [13:31:35]OFDProtocolAddRootSTLVToBuf [13:31:35]FM_MakeSignedData [13:31:35]FM_MakeSignedData [13:31:35]SAM_PROTO_SignData [13:31:35]wFMCommunicate request_size=4 [13:31:35]MH_SAM_APDU [13:31:35]CAPDU: 80 0D 01 02 [13:31:35]Write to MH i2c: E2 08 00 D2 1F 80 0D 01 02 00 00 00 00 6A [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 03 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 03 00 D2 1F 00 90 00 65 [13:31:35]RAPDU: 90 00 [13:31:35]wFMCommunicate OK [13:31:35]wFMCommunicate request_size=255 [13:31:35]MH_SAM_APDU [13:31: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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 37 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 81 02 00 35 04 06 00 9A [13:31:35]Write to MH i2c: E2 02 01 D3 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 37 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 81 02 00 35 04 06 00 9A 00 00 B7 [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 03 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 03 00 D3 1F 00 90 00 66 [13:31:35]RAPDU: 90 00 [13:31:35]wFMCommunicate OK [13:31:35]wFMCommunicate request_size=10 [13:31:35]MH_SAM_APDU [13:31:35]CAPDU: 80 0D 02 02 05 64 20 14 E0 2F [13:31:35]Write to MH i2c: E2 0D 00 D4 1F 80 0D 02 02 05 00 64 20 14 E0 2F 00 00 1E [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 03 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 03 00 D4 1F 00 90 00 67 [13:31:35]RAPDU: 90 00 [13:31:35]wFMCommunicate OK [13:31:35]wFMCommunicate request_size=4 [13:31:35]MH_SAM_APDU [13:31:35]CAPDU: 80 0D 03 02 [13:31:35]Write to MH i2c: E2 08 00 D5 1F 80 0D 03 02 00 00 00 00 6F [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 0B 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 0B 00 D5 1F 00 10 9A 2A 08 1B 73 4B 38 90 00 5D [13:31:35]RAPDU: 10 9A 2A 08 1B 73 4B 38 90 00 [13:31:35]wFMCommunicate OK [13:31:35]SAM_PROTO_SignData done [13:31:35]FM_MakeSignedData done [13:31:35]CreateOFDProtocolMessage [13:31:35]wFMCommunicate request_size=4 [13:31:35]MH_SAM_APDU [13:31:35]CAPDU: 80 11 00 00 [13:31:35]Write to MH i2c: E2 08 00 D6 1F 80 11 00 00 00 00 00 00 6F [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 17 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 17 00 D6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [13:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:35]wFMCommunicate OK [13:31:35]CreateOFDProtocolMessage done [13:31:35]OFDSenderStorePacket 164228 [13:31:35]StoreOFDPacket docnum=164228 [13:31:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 E5 07 01 A6 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 37 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 81 02 00 35 04 06 00 9A 64 20 14 E0 2F 10 9A 2A 08 1B 73 4B 38 [13:31:35]CheckFolder [13:31:35]dirname=/storage/ofd_packets [13:31:35]CheckFolder done [13:31:35]ProducePacketName [13:31:35]name=ofd_packets/00164228 [13:31:35]NVStorageSaveData ofd_packets/00164228 [13:31:35]File name is /storage/ofd_packets/00164228 [13:31:35]Write 301 bytes [13:31:35]NVStorageSaveData done [13:31:35]OFDSenderStorePacket done [13:31:35]KKMCreateOFDPacket done [13:31:35]NVStorageSaveData kkm_last_timestamp [13:31:35]File name is /storage/kkm_last_timestamp [13:31:35]Write 4 bytes [13:31:35]NVStorageSaveData done [13:31:35]ExternCall_PrintAddStr [13:31:35]wPrintStart [13:31:35]Write to MH i2c: 01 00 00 D7 1F F6 [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: 01 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: 01 07 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: 01 07 00 D7 1F 00 00 00 00 00 FF 0F 0B [13:31:35]RasterBufferAndPrint [13:31:35]line Счет N : (1)458311 [13:31:35]line ИНН: 02508201610067 [13:31:35]line Контрольно-Кассовый Чек [13:31:35]line ПРОДАЖА [13:31:35]line ТРК (МРК, ГНК) : 12 [13:31:35]line Товар: 2710124130 [13:31:35]line Аи-92-К-5 [13:31:35]line 1.520 * 65.80 [13:31:35]line = 100.02 [13:31:35]line НДС 12% НСП 1% [13:31:35]line > о реализуемом товаре [13:31:35]line ОКРУГЛЕНИЕ: -0.02 [13:31:35]line ИТОГО: 100.00 [13:31:35]line Внесено: 100.00 [13:31:35]line СДАЧА: 0.00 [13:31:35]line НСП 1% : 0.88 [13:31:35]line НДС 12% : 10.62 [13:31:35]line Наличными: 100.00 [13:31:35]line Безнал.: 0.00 [13:31:35]line Место: АЗС № 72 "Партнер Нефть" [13:31:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:31:35]line СНО: Общий режим [13:31:35]line Чек 149 12.07.2024 13:31 [13:31:35]line Смена: 445 ФФД: 1.0 [13:31:35]line ЗНМ: 0300000160 [13:31:35]line РНМ: 0000000000090829 [13:31:35]line Версия ККМ: 001 [13:31:35]line ФМ: 0000000000874718 [13:31:35]line ФД: 164228 [13:31:35]line ФПД: 169754825646127 [13:31:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133135&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164228&fm=169754825646127&tin=02508201610067®Number=0000000000090829&sum=10000 [13:31:35]OFD Sender: Processing packet 164228 [packets to send 104, broken 103] [13:31:35]ProducePacketName [13:31:35]name=ofd_packets/00164228 [13:31:35]OFD Sender: To server: pG, [13:31:35]CommunicateWithHost lk.salyk.kg:30040 [13:31:35]ConnectInit lk.salyk.kg [13:31:35]written 0, free lines is 4095 [13:31:36]Connected sock=10 [13:31:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 E5 07 01 A6 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 37 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 81 02 00 35 04 06 00 9A 64 20 14 E0 2F 10 9A 2A 08 1B 73 4B 38 [13:31:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8D C3 47 00 FC 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 34 37 31 38 10 04 04 00 84 81 02 00 F4 03 04 00 CB D6 90 66 B6 04 01 00 00 54 BA 41 1C 5D BD 5A 1A [13:31:36]CommunicateWithHost err = 0 [13:31:36]CheckOFDResponse [13:31:36]1017 (14) - 77093643461234 [13:31:36]1041 (16) - 0000000000874718 [13:31:36]1040 (4) - 164228 [13:31:36]1012 (4) - 12.07.2024 07:10 [13:31:36]1206 (1) - 0 [13:31:36]OFD Sender: Remove packet 164228 [13:31:36]ProducePacketName [13:31:36]name=ofd_packets/00164228 [13:31:36]NVStorageDeleteData [13:31:36]Write to MH i2c: 01 00 00 01 20 21 [13:31:36]Write i2c OK [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: 01 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: 01 07 00 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: 01 07 00 01 20 00 00 00 00 00 F0 0C 24 [13:31:36]RasterBufferAndPrint [13:31:36]line [13:31:36]line [13:31:36]line [13:31:36]line [13:31:36]line [13:31:36]written 0, free lines is 3318 [13:31:36]MH_Cut [13:31:36]Write to MH i2c: D1 01 00 08 20 01 FA [13:31:36]Write i2c OK [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: D1 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: D1 01 00 [13:31:36]MH_I2C_Read... [13:31:36]Read from MH i2c: D1 01 00 08 20 00 F9 [13:31:36]Write to MH i2c: 01 00 00 09 20 29 [13:31:36]Write i2c OK [13:31:36]MH_I2C_Read... [13:31:36]OFD Sender: No OFD packet to send [13:31:37]*** Cut start [13:31:37]*** Partial cut [13:31:37]*** CUTSNS_PIN = 1 [13:31:37]*** CUTSNS_PIN = 0 [13:31:37]*** Brake cut motor [13:31:37]Read from MH i2c: 01 [13:31:37]MH_I2C_Read... [13:31:37]*** Stop cut motor [13:31:37]*** Cut end [13:31:37]Read from MH i2c: 01 07 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: 01 07 00 09 20 00 00 00 00 00 FF 0F 3E [13:31:37]process_action close_receipt done [13:31:37]requested_data is exist [13:31:37]produce_requested_data [13:31:37]requested_item fm.sn is exist - process it [13:31:37]wFMCommunicate request_size=4 [13:31:37]MH_SAM_APDU [13:31:37]CAPDU: 80 11 00 00 [13:31:37]Write to MH i2c: E2 08 00 0A 20 80 11 00 00 00 00 00 00 A4 [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:37]Read from MH i2c: E2 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 17 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 17 00 0A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [13:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:37]wFMCommunicate OK [13:31:37]requested_item fd.num is exist - process it [13:31:37]SAM_PROTO_GetFieldsCounters [13:31:37]wFMCommunicate request_size=4 [13:31:37]MH_SAM_APDU [13:31:37]CAPDU: 80 13 00 00 [13:31:37]Write to MH i2c: E2 08 00 0B 20 80 13 00 00 00 00 00 00 A7 [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:37]Read from MH i2c: E2 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 62 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 62 00 0B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [13:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:37]wFMCommunicate OK [13:31:37]SAM_PROTO_GetFieldsCounters done [13:31:37]requested_item shift.num is exist - process it [13:31:37]requested_item shift.opened is exist - process it [13:31:37]req_shift_opened [13:31:37]FM_GetShiftState [13:31:37]SAM_PROTO_GetShiftState [13:31:37]wFMCommunicate request_size=4 [13:31:37]MH_SAM_APDU [13:31:37]CAPDU: 80 13 01 00 [13:31:37]Write to MH i2c: E2 08 00 0C 20 80 13 01 00 00 00 00 00 A9 [13:31:37]Write i2c OK [13:31:37]MH_I2C_Read... [13:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:37]Read from MH i2c: E2 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 0E 00 [13:31:37]MH_I2C_Read... [13:31:37]Read from MH i2c: E2 0E 00 0C 20 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F3 [13:31:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:31:37]wFMCommunicate OK [13:31:37]SAM_PROTO_GetShiftState done [13:31:37]FM_GetShiftState done [13:31:37]req_shift_opened done [13:31:37]requested_item shift.open_date is exist - process it [13:31:37]req_shift_open_date [13:31:37]req_shift_open_date done [13:31:37]produce_requested_data done [13:31:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164228,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:31:37]process_action_free close_receipt [13:31:37]json_value_free [13:31:37]json_value_free done [13:31:37]process_json_proto returns [13:31:37]Send response to host [13:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164228,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:31:37]free response buf [13:31:37]execute_script done [13:31:37]execute_script returns [13:31:37]free content buf [13:31:37]Sock 7.Close socket [13:31:37]Sock 7.Thread stoped [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:23]accept exits with 9 [13:32:23]New connection [13:32:23]New thread 3066850660 created [13:32:23]Thread 3066707300 joined [13:32:23]Waiting for new connection... [13:32:23] Sock 9.Parse request [13:32:23]Sock 9.Check first char [13:32:23]Sock 9.First char is OK [13:32:23]request: POST /json_proto HTTP/1.0 [13:32:23]Method: POST [13:32:23]URL: /json_proto [13:32:23]Method is POST - this is cgi request [13:32:23]url: /json_proto [13:32:23]query_string will be loaded in cgi processing [13:32:23]execute_cgi json_proto POST (null) [13:32:23]execute_cgi path=json_proto method=POST [13:32:23]POST find Content-Length [13:32:23]Host: 172.17.56.4:8080 [13:32:23]Content-Length: 677 [13:32:23]Content-Type: application/json [13:32:23] [13:32:23]POST finish read [13:32:23]Found Content-Length = 677 [13:32:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:23]execute_script... [13:32: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)458312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:23]POST & json_proto [13:32:23]process_json_proto [13:32:23]json parsed OK: [13:32:23]protocol is kg_v1.0 [13:32:23]action value=close_receipt [13:32:23]process_action close_receipt [13:32:23]cmd_close_receipt [13:32:23]MH_GetDate [13:32:23]Write to MH i2c: F0 00 00 0D 20 1C [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: F0 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: F0 09 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: F0 09 00 0D 20 00 69 30 91 66 C9 DC B2 64 70 [13:32:23]GetLastDocTimeStamp 1720791095 [13:32:23]current date 1720791145 [13:32:23]FM_GetShiftState [13:32:23]SAM_PROTO_GetShiftState [13:32:23]wFMCommunicate request_size=4 [13:32:23]MH_SAM_APDU [13:32:23]CAPDU: 80 13 01 00 [13:32:23]Write to MH i2c: E2 08 00 0E 20 80 13 01 00 00 00 00 00 AB [13:32:23]Write i2c OK [13:32:23]MH_I2C_Read... [13:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:23]Read from MH i2c: E2 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 0E 00 [13:32:23]MH_I2C_Read... [13:32:23]Read from MH i2c: E2 0E 00 0E 20 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F5 [13:32:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:32:23]wFMCommunicate OK [13:32:23]SAM_PROTO_GetShiftState done [13:32:23]FM_GetShiftState done [13:32:23]opened in 1720744654 [13:32:23]opened+sec_in_day 1720831054 [13:32:23]quantity*price = 40006 [13:32:23]sum+1 = 40007 [13:32:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 150 12.07.2024 13:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164229 ФПД: 11238184861085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133225&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164229&fm=11238184861085&tin=02508201610067®Number=0000000000090829&sum=40000 [13:32:24]StoreToDocumentArchive [13:32:24]shift 445 fd 164229 [13:32:24]save to /storage/0445/doc_00164229 [13:32:24]save last doc name /storage/0445/doc_00164229 to /storage/kkm_last_doc_name [13:32:24]save OK [13:32:24]Clear old archive folders... [13:32:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:24]tlvbuf is 00AA91C0 [13:32:24]SAM_PROTO_ClearQueue [13:32:24]wFMCommunicate request_size=4 [13:32:24]MH_SAM_APDU [13:32:24]CAPDU: 80 09 00 00 [13:32:24]Write to MH i2c: E2 08 00 1B 20 80 09 00 00 00 00 00 00 AD [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:24]Read from MH i2c: E2 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 1B 20 00 90 00 AF [13:32:24]RAPDU: 90 00 [13:32:24]wFMCommunicate OK [13:32:24]SAM_PROTO_ClearQueue done [13:32:24]KKMCreateOFDPacket [13:32:24]OFDProtocolAddRootSTLVToBuf [13:32:24]FM_MakeSignedData [13:32:24]FM_MakeSignedData [13:32:24]SAM_PROTO_SignData [13:32:24]wFMCommunicate request_size=4 [13:32:24]MH_SAM_APDU [13:32:24]CAPDU: 80 0D 01 02 [13:32:24]Write to MH i2c: E2 08 00 1C 20 80 0D 01 02 00 00 00 00 B5 [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:24]Read from MH i2c: E2 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 1C 20 00 90 00 B0 [13:32:24]RAPDU: 90 00 [13:32:24]wFMCommunicate OK [13:32:24]wFMCommunicate request_size=255 [13:32:24]MH_SAM_APDU [13:32: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 96 00 00 00 F4 03 04 00 69 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 81 02 00 35 04 06 00 0A [13:32:24]Write to MH i2c: E2 02 01 1D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 96 00 00 00 F4 03 04 00 69 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 81 02 00 35 04 06 00 0A 00 00 04 [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:25]Read from MH i2c: E2 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 03 00 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 03 00 1D 20 00 90 00 B1 [13:32:25]RAPDU: 90 00 [13:32:25]wFMCommunicate OK [13:32:25]wFMCommunicate request_size=10 [13:32:25]MH_SAM_APDU [13:32:25]CAPDU: 80 0D 02 02 05 38 98 04 3D 9D [13:32:25]Write to MH i2c: E2 0D 00 1E 20 80 0D 02 02 05 00 38 98 04 3D 9D 00 00 70 [13:32:25]Write i2c OK [13:32:25]MH_I2C_Read... [13:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:25]Read from MH i2c: E2 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 03 00 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 03 00 1E 20 00 90 00 B2 [13:32:25]RAPDU: 90 00 [13:32:25]wFMCommunicate OK [13:32:25]wFMCommunicate request_size=4 [13:32:25]MH_SAM_APDU [13:32:25]CAPDU: 80 0D 03 02 [13:32:25]Write to MH i2c: E2 08 00 1F 20 80 0D 03 02 00 00 00 00 BA [13:32:25]Write i2c OK [13:32:25]MH_I2C_Read... [13:32:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:25]Read from MH i2c: E2 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 0B 00 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 0B 00 1F 20 00 F9 FB 94 1F E8 56 A4 04 90 00 48 [13:32:25]RAPDU: F9 FB 94 1F E8 56 A4 04 90 00 [13:32:25]wFMCommunicate OK [13:32:25]SAM_PROTO_SignData done [13:32:25]FM_MakeSignedData done [13:32:25]CreateOFDProtocolMessage [13:32:25]wFMCommunicate request_size=4 [13:32:25]MH_SAM_APDU [13:32:25]CAPDU: 80 11 00 00 [13:32:25]Write to MH i2c: E2 08 00 20 20 80 11 00 00 00 00 00 00 BA [13:32:25]Write i2c OK [13:32:25]MH_I2C_Read... [13:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:25]Read from MH i2c: E2 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 17 00 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: E2 17 00 20 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [13:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:32:25]wFMCommunicate OK [13:32:25]CreateOFDProtocolMessage done [13:32:25]OFDSenderStorePacket 164229 [13:32:25]StoreOFDPacket docnum=164229 [13:32:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 09 48 07 01 5F 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 96 00 00 00 F4 03 04 00 69 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 81 02 00 35 04 06 00 0A 38 98 04 3D 9D F9 FB 94 1F E8 56 A4 04 [13:32:25]CheckFolder [13:32:25]dirname=/storage/ofd_packets [13:32:25]CheckFolder done [13:32:25]ProducePacketName [13:32:25]name=ofd_packets/00164229 [13:32:25]NVStorageSaveData ofd_packets/00164229 [13:32:25]File name is /storage/ofd_packets/00164229 [13:32:25]Write 301 bytes [13:32:25]NVStorageSaveData done [13:32:25]OFDSenderStorePacket done [13:32:25]KKMCreateOFDPacket done [13:32:25]NVStorageSaveData kkm_last_timestamp [13:32:25]File name is /storage/kkm_last_timestamp [13:32:25]Write 4 bytes [13:32:25]NVStorageSaveData done [13:32:25]ExternCall_PrintAddStr [13:32:25]wPrintStart [13:32:25]Write to MH i2c: 01 00 00 21 20 41 [13:32:25]Write i2c OK [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: 01 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: 01 07 00 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 FF 0F 56 [13:32:25]RasterBufferAndPrint [13:32:25]line Счет N : (1)458312 [13:32:25]line ИНН: 02508201610067 [13:32:25]line Контрольно-Кассовый Чек [13:32:25]line ПРОДАЖА [13:32:25]line ТРК (МРК, ГНК) : 12 [13:32:25]line Товар: 2710124130 [13:32:25]line Аи-92-К-5 [13:32:25]line 6.080 * 65.80 [13:32:25]line = 400.06 [13:32:25]line НДС 12% НСП 1% [13:32:25]line > о реализуемом товаре [13:32:25]line ОКРУГЛЕНИЕ: -0.06 [13:32:25]line ИТОГО: 400.00 [13:32:25]line Внесено: 400.00 [13:32:25]line СДАЧА: 0.00 [13:32:25]line НСП 1% : 3.54 [13:32:25]line НДС 12% : 42.48 [13:32:25]line Наличными: 400.00 [13:32:25]line Безнал.: 0.00 [13:32:25]line Место: АЗС № 72 "Партнер Нефть" [13:32:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:32:25]line СНО: Общий режим [13:32:25]line Чек 150 12.07.2024 13:32 [13:32:25]line Смена: 445 ФФД: 1.0 [13:32:25]line ЗНМ: 0300000160 [13:32:25]line РНМ: 0000000000090829 [13:32:25]line Версия ККМ: 001 [13:32:25]line ФМ: 0000000000874718 [13:32:25]line ФД: 164229 [13:32:25]line ФПД: 11238184861085 [13:32:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133225&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164229&fm=11238184861085&tin=02508201610067®Number=0000000000090829&sum=40000 [13:32:25]OFD Sender: Processing packet 164229 [packets to send 104, broken 103] [13:32:25]ProducePacketName [13:32:25]name=ofd_packets/00164229 [13:32:25]OFD Sender: To server: pG, [13:32:25]CommunicateWithHost lk.salyk.kg:30040 [13:32:25]ConnectInit lk.salyk.kg [13:32:25]written 0, free lines is 4095 [13:32:25]Connected sock=10 [13:32:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 09 48 07 01 5F 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 96 00 00 00 F4 03 04 00 69 30 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 81 02 00 35 04 06 00 0A 38 98 04 3D 9D F9 FB 94 1F E8 56 A4 04 [13:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CD 64 47 00 18 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 34 37 31 38 10 04 04 00 85 81 02 00 F4 03 04 00 FD D6 90 66 B6 04 01 00 00 16 18 AE 4D 74 C9 AD 23 [13:32:26]CommunicateWithHost err = 0 [13:32:26]CheckOFDResponse [13:32:26]1017 (14) - 77093643461234 [13:32:26]1041 (16) - 0000000000874718 [13:32:26]1040 (4) - 164229 [13:32:26]1012 (4) - 12.07.2024 07:10 [13:32:26]1206 (1) - 0 [13:32:26]OFD Sender: Remove packet 164229 [13:32:26]ProducePacketName [13:32:26]name=ofd_packets/00164229 [13:32:26]NVStorageDeleteData [13:32:26]Write to MH i2c: 01 00 00 4B 20 6B [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: 01 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: 01 07 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: 01 07 00 4B 20 00 00 00 00 00 F2 0C 70 [13:32:26]RasterBufferAndPrint [13:32:26]line [13:32:26]line [13:32:26]line [13:32:26]line [13:32:26]line [13:32:26]written 0, free lines is 3322 [13:32:26]MH_Cut [13:32:26]Write to MH i2c: D1 01 00 52 20 01 44 [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: D1 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: D1 01 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: D1 01 00 52 20 00 43 [13:32:26]Write to MH i2c: 01 00 00 53 20 73 [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]OFD Sender: No OFD packet to send [13:32:26]*** Cut start [13:32:26]*** Partial cut [13:32:26]*** CUTSNS_PIN = 1 [13:32:26]*** CUTSNS_PIN = 0 [13:32:27]*** Brake cut motor [13:32:27]Read from MH i2c: 01 [13:32:27]MH_I2C_Read... [13:32:27]*** Stop cut motor [13:32:27]*** Cut end [13:32:27]Read from MH i2c: 01 07 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: 01 07 00 53 20 00 00 00 00 00 FF 0F 88 [13:32:27]process_action close_receipt done [13:32:27]requested_data is exist [13:32:27]produce_requested_data [13:32:27]requested_item fm.sn is exist - process it [13:32:27]wFMCommunicate request_size=4 [13:32:27]MH_SAM_APDU [13:32:27]CAPDU: 80 11 00 00 [13:32:27]Write to MH i2c: E2 08 00 54 20 80 11 00 00 00 00 00 00 EE [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 17 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 17 00 54 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [13:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:32:27]wFMCommunicate OK [13:32:27]requested_item fd.num is exist - process it [13:32:27]SAM_PROTO_GetFieldsCounters [13:32:27]wFMCommunicate request_size=4 [13:32:27]MH_SAM_APDU [13:32:27]CAPDU: 80 13 00 00 [13:32:27]Write to MH i2c: E2 08 00 55 20 80 13 00 00 00 00 00 00 F1 [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 62 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 62 00 55 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [13:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:27]wFMCommunicate OK [13:32:27]SAM_PROTO_GetFieldsCounters done [13:32:27]requested_item shift.num is exist - process it [13:32:27]requested_item shift.opened is exist - process it [13:32:27]req_shift_opened [13:32:27]FM_GetShiftState [13:32:27]SAM_PROTO_GetShiftState [13:32:27]wFMCommunicate request_size=4 [13:32:27]MH_SAM_APDU [13:32:27]CAPDU: 80 13 01 00 [13:32:27]Write to MH i2c: E2 08 00 56 20 80 13 01 00 00 00 00 00 F3 [13:32:27]Write i2c OK [13:32:27]MH_I2C_Read... [13:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 0E 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 0E 00 56 20 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3D [13:32:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:32:27]wFMCommunicate OK [13:32:27]SAM_PROTO_GetShiftState done [13:32:27]FM_GetShiftState done [13:32:27]req_shift_opened done [13:32:27]requested_item shift.open_date is exist - process it [13:32:27]req_shift_open_date [13:32:27]req_shift_open_date done [13:32:27]produce_requested_data done [13:32:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164229,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:32:27]process_action_free close_receipt [13:32:27]json_value_free [13:32:27]json_value_free done [13:32:27]process_json_proto returns [13:32:27]Send response to host [13:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164229,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:32:27]free response buf [13:32:27]execute_script done [13:32:27]execute_script returns [13:32:27]free content buf [13:32:27]Sock 9.Close socket [13:32:27]Sock 9.Thread stoped [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:53]accept exits with 7 [13:36:53]New connection [13:36:53]New thread 3066707300 created [13:36:53]Thread 3066850660 joined [13:36:53]Waiting for new connection... [13:36:53] Sock 7.Parse request [13:36:53]Sock 7.Check first char [13:36:53]Sock 7.First char is OK [13:36:53]request: POST /json_proto HTTP/1.0 [13:36:53]Method: POST [13:36:53]URL: /json_proto [13:36:53]Method is POST - this is cgi request [13:36:53]url: /json_proto [13:36:53]query_string will be loaded in cgi processing [13:36:53]execute_cgi json_proto POST (null) [13:36:53]execute_cgi path=json_proto method=POST [13:36:53]POST find Content-Length [13:36:53]Host: 172.17.56.4:8080 [13:36:53]Content-Length: 841 [13:36:53]Content-Type: application/json [13:36:53] [13:36:53]POST finish read [13:36:53]Found Content-Length = 841 [13:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.740, "sum" : 700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:53]execute_script... [13: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)458313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.740, "sum" : 700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:53]POST & json_proto [13:36:53]process_json_proto [13:36:53]json parsed OK: [13:36:53]protocol is kg_v1.0 [13:36:53]action value=close_receipt [13:36:53]process_action close_receipt [13:36:53]cmd_close_receipt [13:36:53]MH_GetDate [13:36:53]Write to MH i2c: F0 00 00 57 20 66 [13:36:53]Write i2c OK [13:36:53]MH_I2C_Read... [13:36:53]Read from MH i2c: F0 [13:36:53]MH_I2C_Read... [13:36:53]Read from MH i2c: F0 09 00 [13:36:53]MH_I2C_Read... [13:36:53]Read from MH i2c: F0 09 00 57 20 00 77 31 91 66 C9 DC B2 64 C9 [13:36:53]GetLastDocTimeStamp 1720791145 [13:36:53]current date 1720791415 [13:36:53]FM_GetShiftState [13:36:53]SAM_PROTO_GetShiftState [13:36:53]wFMCommunicate request_size=4 [13:36:53]MH_SAM_APDU [13:36:53]CAPDU: 80 13 01 00 [13:36:53]Write to MH i2c: E2 08 00 58 20 80 13 01 00 00 00 00 00 F5 [13:36:53]Write i2c OK [13:36:53]MH_I2C_Read... [13:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:53]Read from MH i2c: E2 [13:36:53]MH_I2C_Read... [13:36:53]Read from MH i2c: E2 0E 00 [13:36:53]MH_I2C_Read... [13:36:53]Read from MH i2c: E2 0E 00 58 20 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3F [13:36:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:36:53]wFMCommunicate OK [13:36:53]SAM_PROTO_GetShiftState done [13:36:53]FM_GetShiftState done [13:36:53]opened in 1720744654 [13:36:53]opened+sec_in_day 1720831054 [13:36:53]quantity*price = 70046 [13:36:53]sum+1 = 70047 [13:36:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.46 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.46 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 151 12.07.2024 13:36 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164230 ФПД: 82840040504018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133655&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164230&fm=82840040504018&tin=02508201610067®Number=0000000000090829&sum=70046 [13:36:54]StoreToDocumentArchive [13:36:54]shift 445 fd 164230 [13:36:54]save to /storage/0445/doc_00164230 [13:36:54]save last doc name /storage/0445/doc_00164230 to /storage/kkm_last_doc_name [13:36:54]save OK [13:36:54]Clear old archive folders... [13:36:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:54]tlvbuf is 00A41A30 [13:36:54]SAM_PROTO_ClearQueue [13:36:54]wFMCommunicate request_size=4 [13:36:54]MH_SAM_APDU [13:36:54]CAPDU: 80 09 00 00 [13:36:54]Write to MH i2c: E2 08 00 65 20 80 09 00 00 00 00 00 00 F7 [13:36:54]Write i2c OK [13:36:54]MH_I2C_Read... [13:36:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:54]Read from MH i2c: E2 [13:36:54]MH_I2C_Read... [13:36:54]Read from MH i2c: E2 03 00 [13:36:54]MH_I2C_Read... [13:36:54]Read from MH i2c: E2 03 00 65 20 00 90 00 F9 [13:36:54]RAPDU: 90 00 [13:36:54]wFMCommunicate OK [13:36:54]SAM_PROTO_ClearQueue done [13:36:54]KKMCreateOFDPacket [13:36:54]OFDProtocolAddRootSTLVToBuf [13:36:54]FM_MakeSignedData [13:36:54]FM_MakeSignedData [13:36:54]SAM_PROTO_SignData [13:36:54]wFMCommunicate request_size=4 [13:36:54]MH_SAM_APDU [13:36:54]CAPDU: 80 0D 01 02 [13:36:54]Write to MH i2c: E2 08 00 66 20 80 0D 01 02 00 00 00 00 FF [13:36:54]Write i2c OK [13:36:54]MH_I2C_Read... [13:36:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:54]Read from MH i2c: E2 [13:36:54]MH_I2C_Read... [13:36:54]Read from MH i2c: E2 03 00 [13:36:54]MH_I2C_Read... [13:36:54]Read from MH i2c: E2 03 00 66 20 00 90 00 FA [13:36:54]RAPDU: 90 00 [13:36:54]wFMCommunicate OK [13:36:54]wFMCommunicate request_size=255 [13:36:54]MH_SAM_APDU [13:36: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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 77 31 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 81 02 00 35 04 06 00 4B [13:36:54]Write to MH i2c: E2 02 01 67 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 77 31 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 81 02 00 35 04 06 00 4B 00 00 B0 [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:55]Read from MH i2c: E2 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 03 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 03 00 67 20 00 90 00 FB [13:36:55]RAPDU: 90 00 [13:36:55]wFMCommunicate OK [13:36:55]wFMCommunicate request_size=10 [13:36:55]MH_SAM_APDU [13:36:55]CAPDU: 80 0D 02 02 05 57 B3 2F FA D2 [13:36:55]Write to MH i2c: E2 0D 00 68 20 80 0D 02 02 05 00 57 B3 2F FA D2 00 00 11 [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:55]Read from MH i2c: E2 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 03 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 03 00 68 20 00 90 00 FC [13:36:55]RAPDU: 90 00 [13:36:55]wFMCommunicate OK [13:36:55]wFMCommunicate request_size=4 [13:36:55]MH_SAM_APDU [13:36:55]CAPDU: 80 0D 03 02 [13:36:55]Write to MH i2c: E2 08 00 69 20 80 0D 03 02 00 00 00 00 04 [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:55]Read from MH i2c: E2 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 0B 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 0B 00 69 20 00 A2 56 1A 85 6E F8 8A 99 90 00 25 [13:36:55]RAPDU: A2 56 1A 85 6E F8 8A 99 90 00 [13:36:55]wFMCommunicate OK [13:36:55]SAM_PROTO_SignData done [13:36:55]FM_MakeSignedData done [13:36:55]CreateOFDProtocolMessage [13:36:55]wFMCommunicate request_size=4 [13:36:55]MH_SAM_APDU [13:36:55]CAPDU: 80 11 00 00 [13:36:55]Write to MH i2c: E2 08 00 6A 20 80 11 00 00 00 00 00 00 04 [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:55]Read from MH i2c: E2 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 17 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 17 00 6A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [13:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:36:55]wFMCommunicate OK [13:36:55]CreateOFDProtocolMessage done [13:36:55]OFDSenderStorePacket 164230 [13:36:55]StoreOFDPacket docnum=164230 [13:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AC C0 07 01 87 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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 77 31 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 81 02 00 35 04 06 00 4B 57 B3 2F FA D2 A2 56 1A 85 6E F8 8A 99 [13:36:55]CheckFolder [13:36:55]dirname=/storage/ofd_packets [13:36:55]CheckFolder done [13:36:55]ProducePacketName [13:36:55]name=ofd_packets/00164230 [13:36:55]NVStorageSaveData ofd_packets/00164230 [13:36:55]File name is /storage/ofd_packets/00164230 [13:36:55]Write 301 bytes [13:36:55]NVStorageSaveData done [13:36:55]OFDSenderStorePacket done [13:36:55]KKMCreateOFDPacket done [13:36:55]NVStorageSaveData kkm_last_timestamp [13:36:55]File name is /storage/kkm_last_timestamp [13:36:55]Write 4 bytes [13:36:55]NVStorageSaveData done [13:36:55]ExternCall_PrintAddStr [13:36:55]wPrintStart [13:36:55]Write to MH i2c: 01 00 00 6B 20 8B [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 6B 20 00 00 00 00 00 FF 0F A0 [13:36:55]RasterBufferAndPrint [13:36:55]line Счет N : (1)458313 [13:36:55]line ИНН: 02508201610067 [13:36:55]line Контрольно-Кассовый Чек [13:36:55]line ПРОДАЖА [13:36:55]line ТРК (МРК, ГНК) : 22 [13:36:55]line Товар: 2710124130 [13:36:55]line Аи-92-К-5 [13:36:55]line 10.740 * 65.22 [13:36:55]line = 700.46 [13:36:55]line НДС 12% НСП 1% [13:36:55]line > о реализуемом товаре [13:36:55]line ИТОГО: 700.46 [13:36:55]line НСП 1% : 6.20 [13:36:55]line НДС 12% : 74.38 [13:36:55]line Наличными: 0.00 [13:36:55]line Безнал.: 700.46 [13:36:55]line Место: АЗС № 72 "Партнер Нефть" [13:36:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:36:55]line СНО: Общий режим [13:36:55]line Чек 151 12.07.2024 13:36 [13:36:55]line Смена: 445 ФФД: 1.0 [13:36:55]line ЗНМ: 0300000160 [13:36:55]line РНМ: 0000000000090829 [13:36:55]line Версия ККМ: 001 [13:36:55]line Платежная система: АКБ Кыргызстан [13:36:55]line ФМ: 0000000000874718 [13:36:55]line ФД: 164230 [13:36:55]line ФПД: 82840040504018 [13:36:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133655&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164230&fm=82840040504018&tin=02508201610067®Number=0000000000090829&sum=70046 [13:36:55]written 0, free lines is 4095 [13:36:55]OFD Sender: Processing packet 164230 [packets to send 104, broken 103] [13:36:55]ProducePacketName [13:36:55]name=ofd_packets/00164230 [13:36:55]OFD Sender: To server: pG, [13:36:55]CommunicateWithHost lk.salyk.kg:30040 [13:36:55]ConnectInit lk.salyk.kg [13:36:55]Connected sock=10 [13: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 34 37 31 38 0F 01 00 00 AC C0 07 01 87 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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 77 31 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 81 02 00 35 04 06 00 4B 57 B3 2F FA D2 A2 56 1A 85 6E F8 8A 99 [13:36:55]Write to MH i2c: 01 00 00 94 20 B4 [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 94 20 00 00 00 00 00 1A 0D E2 [13:36:55]RasterBufferAndPrint [13:36:55]line [13:36:55]line [13:36:55]line [13:36:55]line [13:36:55]line [13:36:55]written 0, free lines is 3360 [13:36:55]MH_Cut [13:36:55]Write to MH i2c: D1 01 00 9B 20 01 8D [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: D1 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: D1 01 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: D1 01 00 9B 20 00 8C [13:36:55]Write to MH i2c: 01 00 00 9C 20 BC [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A0 9F 47 00 2B 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 34 37 31 38 10 04 04 00 86 81 02 00 F4 03 04 00 0B D8 90 66 B6 04 01 00 00 4B 8C 91 5C 2A 22 F3 02 [13:36:56]CommunicateWithHost err = 0 [13:36:56]CheckOFDResponse [13:36:56]1017 (14) - 77093643461234 [13:36:56]1041 (16) - 0000000000874718 [13:36:56]1040 (4) - 164230 [13:36:56]1012 (4) - 12.07.2024 07:15 [13:36:56]1206 (1) - 0 [13:36:56]OFD Sender: Remove packet 164230 [13:36:56]ProducePacketName [13:36:56]name=ofd_packets/00164230 [13:36:56]NVStorageDeleteData [13:36:56]*** Cut start [13:36:56]*** Partial cut [13:36:56]*** CUTSNS_PIN = 1 [13:36:56]OFD Sender: No OFD packet to send [13:36:56]*** CUTSNS_PIN = 0 [13:36:56]*** Brake cut motor [13:36:57]Read from MH i2c: 01 [13:36:57]MH_I2C_Read... [13:36:57]*** Stop cut motor [13:36:57]*** Cut end [13:36:57]Read from MH i2c: 01 07 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 07 00 9C 20 00 00 00 00 00 FF 0F D1 [13:36:57]process_action close_receipt done [13:36:57]requested_data is exist [13:36:57]produce_requested_data [13:36:57]requested_item fm.sn is exist - process it [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 11 00 00 [13:36:57]Write to MH i2c: E2 08 00 9D 20 80 11 00 00 00 00 00 00 37 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 17 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 17 00 9D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [13:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:36:57]wFMCommunicate OK [13:36:57]requested_item fd.num is exist - process it [13:36:57]SAM_PROTO_GetFieldsCounters [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 13 00 00 [13:36:57]Write to MH i2c: E2 08 00 9E 20 80 13 00 00 00 00 00 00 3A [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 62 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 62 00 9E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:57]wFMCommunicate OK [13:36:57]SAM_PROTO_GetFieldsCounters done [13:36:57]requested_item shift.num is exist - process it [13:36:57]requested_item shift.opened is exist - process it [13:36:57]req_shift_opened [13:36:57]FM_GetShiftState [13:36:57]SAM_PROTO_GetShiftState [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 13 01 00 [13:36:57]Write to MH i2c: E2 08 00 9F 20 80 13 01 00 00 00 00 00 3C [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 0E 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 0E 00 9F 20 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 86 [13:36:57]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:36:57]wFMCommunicate OK [13:36:57]SAM_PROTO_GetShiftState done [13:36:57]FM_GetShiftState done [13:36:57]req_shift_opened done [13:36:57]requested_item shift.open_date is exist - process it [13:36:57]req_shift_open_date [13:36:57]req_shift_open_date done [13:36:57]produce_requested_data done [13:36:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164230,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:36:57]process_action_free close_receipt [13:36:57]json_value_free [13:36:57]json_value_free done [13:36:57]process_json_proto returns [13:36:57]Send response to host [13:36:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164230,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:36:57]free response buf [13:36:57]execute_script done [13:36:57]execute_script returns [13:36:57]free content buf [13:36:57]Sock 7.Close socket [13:36:57]Sock 7.Thread stoped [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:17]accept exits with 9 [13:39:17]New connection [13:39:17]New thread 3066850660 created [13:39:17]Thread 3066707300 joined [13:39:17]Waiting for new connection... [13:39:17] Sock 9.Parse request [13:39:17]Sock 9.Check first char [13:39:17]Sock 9.First char is OK [13:39:17]request: POST /json_proto HTTP/1.0 [13:39:17]Method: POST [13:39:17]URL: /json_proto [13:39:17]Method is POST - this is cgi request [13:39:17]url: /json_proto [13:39:17]query_string will be loaded in cgi processing [13:39:17]execute_cgi json_proto POST (null) [13:39:17]execute_cgi path=json_proto method=POST [13:39:17]POST find Content-Length [13:39:17]Host: 172.17.56.4:8080 [13:39:17]Content-Length: 679 [13:39:17]Content-Type: application/json [13:39:17] [13:39:17]POST finish read [13:39:17]Found Content-Length = 679 [13:39:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:17]execute_script... [13:39: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)458314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:17]POST & json_proto [13:39:17]process_json_proto [13:39:17]json parsed OK: [13:39:17]protocol is kg_v1.0 [13:39:17]action value=close_receipt [13:39:17]process_action close_receipt [13:39:17]cmd_close_receipt [13:39:17]MH_GetDate [13:39:17]Write to MH i2c: F0 00 00 A0 20 AF [13:39:17]Write i2c OK [13:39:17]MH_I2C_Read... [13:39:17]Read from MH i2c: F0 [13:39:17]MH_I2C_Read... [13:39:17]Read from MH i2c: F0 09 00 [13:39:17]MH_I2C_Read... [13:39:17]Read from MH i2c: F0 09 00 A0 20 00 07 32 91 66 C9 DC B2 64 A3 [13:39:17]GetLastDocTimeStamp 1720791415 [13:39:17]current date 1720791559 [13:39:17]FM_GetShiftState [13:39:17]SAM_PROTO_GetShiftState [13:39:17]wFMCommunicate request_size=4 [13:39:17]MH_SAM_APDU [13:39:17]CAPDU: 80 13 01 00 [13:39:17]Write to MH i2c: E2 08 00 A1 20 80 13 01 00 00 00 00 00 3E [13:39:17]Write i2c OK [13:39:17]MH_I2C_Read... [13:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:17]Read from MH i2c: E2 [13:39:17]MH_I2C_Read... [13:39:17]Read from MH i2c: E2 0E 00 [13:39:17]MH_I2C_Read... [13:39:17]Read from MH i2c: E2 0E 00 A1 20 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 88 [13:39:17]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:39:17]wFMCommunicate OK [13:39:17]SAM_PROTO_GetShiftState done [13:39:17]FM_GetShiftState done [13:39:17]opened in 1720744654 [13:39:17]opened+sec_in_day 1720831054 [13:39:17]quantity*price = 100012 [13:39:17]sum+1 = 100014 [13:39:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 152 12.07.2024 13:39 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164231 ФПД: 11582906299254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133919&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164231&fm=11582906299254&tin=02508201610067®Number=0000000000090829&sum=100000 [13:39:18]StoreToDocumentArchive [13:39:18]shift 445 fd 164231 [13:39:18]save to /storage/0445/doc_00164231 [13:39:18]save last doc name /storage/0445/doc_00164231 to /storage/kkm_last_doc_name [13:39:18]save OK [13:39:18]Clear old archive folders... [13:39:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:39:18]tlvbuf is 00A8E790 [13:39:18]SAM_PROTO_ClearQueue [13:39:18]wFMCommunicate request_size=4 [13:39:18]MH_SAM_APDU [13:39:18]CAPDU: 80 09 00 00 [13:39:18]Write to MH i2c: E2 08 00 AE 20 80 09 00 00 00 00 00 00 40 [13:39:18]Write i2c OK [13:39:18]MH_I2C_Read... [13:39:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:18]Read from MH i2c: E2 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 03 00 [13:39:18]MH_I2C_Read... [13:39:18]Read from MH i2c: E2 03 00 AE 20 00 90 00 42 [13:39:18]RAPDU: 90 00 [13:39:18]wFMCommunicate OK [13:39:18]SAM_PROTO_ClearQueue done [13:39:18]KKMCreateOFDPacket [13:39:18]OFDProtocolAddRootSTLVToBuf [13:39:18]FM_MakeSignedData [13:39:18]FM_MakeSignedData [13:39:18]SAM_PROTO_SignData [13:39:18]wFMCommunicate request_size=4 [13:39:18]MH_SAM_APDU [13:39:18]CAPDU: 80 0D 01 02 [13:39:18]Write to MH i2c: E2 08 00 AF 20 80 0D 01 02 00 00 00 00 48 [13:39:18]Write i2c OK [13:39:18]MH_I2C_Read... [13:39:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 AF 20 00 90 00 43 [13:39:19]RAPDU: 90 00 [13:39:19]wFMCommunicate OK [13:39:19]wFMCommunicate request_size=255 [13:39:19]MH_SAM_APDU [13:39: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 07 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 81 02 00 35 04 06 00 0A 88 DB 03 [13:39:19]Write to MH i2c: E2 02 01 B0 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 07 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 81 02 00 35 04 06 00 0A 88 DB 03 00 00 09 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 B0 20 00 90 00 44 [13:39:19]RAPDU: 90 00 [13:39:19]wFMCommunicate OK [13:39:19]wFMCommunicate request_size=7 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 0D 02 02 02 F3 76 [13:39:19]Write to MH i2c: E2 0A 00 B1 20 80 0D 02 02 02 00 F3 76 00 00 B8 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 03 00 B1 20 00 90 00 45 [13:39:19]RAPDU: 90 00 [13:39:19]wFMCommunicate OK [13:39:19]wFMCommunicate request_size=4 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 0D 03 02 [13:39:19]Write to MH i2c: E2 08 00 B2 20 80 0D 03 02 00 00 00 00 4D [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 0B 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 0B 00 B2 20 00 1A C4 73 3F 6F 85 A8 DD 90 00 57 [13:39:19]RAPDU: 1A C4 73 3F 6F 85 A8 DD 90 00 [13:39:19]wFMCommunicate OK [13:39:19]SAM_PROTO_SignData done [13:39:19]FM_MakeSignedData done [13:39:19]CreateOFDProtocolMessage [13:39:19]wFMCommunicate request_size=4 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 11 00 00 [13:39:19]Write to MH i2c: E2 08 00 B3 20 80 11 00 00 00 00 00 00 4D [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 17 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 17 00 B3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [13:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:39:19]wFMCommunicate OK [13:39:19]CreateOFDProtocolMessage done [13:39:19]OFDSenderStorePacket 164231 [13:39:19]StoreOFDPacket docnum=164231 [13:39:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C7 B5 04 01 18 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 07 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 81 02 00 35 04 06 00 0A 88 DB 03 F3 76 1A C4 73 3F 6F 85 A8 DD [13:39:19]CheckFolder [13:39:19]dirname=/storage/ofd_packets [13:39:19]CheckFolder done [13:39:19]ProducePacketName [13:39:19]name=ofd_packets/00164231 [13:39:19]NVStorageSaveData ofd_packets/00164231 [13:39:19]File name is /storage/ofd_packets/00164231 [13:39:19]Write 298 bytes [13:39:19]NVStorageSaveData done [13:39:19]OFDSenderStorePacket done [13:39:19]KKMCreateOFDPacket done [13:39:19]NVStorageSaveData kkm_last_timestamp [13:39:19]File name is /storage/kkm_last_timestamp [13:39:19]Write 4 bytes [13:39:19]NVStorageSaveData done [13:39:19]ExternCall_PrintAddStr [13:39:19]wPrintStart [13:39:19]Write to MH i2c: 01 00 00 B4 20 D4 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: 01 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: 01 07 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: 01 07 00 B4 20 00 00 00 00 00 FF 0F E9 [13:39:19]RasterBufferAndPrint [13:39:19]line Счет N : (1)458314 [13:39:19]line ИНН: 02508201610067 [13:39:19]line Контрольно-Кассовый Чек [13:39:19]line ПРОДАЖА [13:39:19]line ТРК (МРК, ГНК) : 11 [13:39:19]line Товар: 2710194210 [13:39:19]line ДТ-К-5 [13:39:19]line 13.910 * 71.90 [13:39:19]line = 1000.13 [13:39:19]line НДС 12% НСП 1% [13:39:19]line > о реализуемом товаре [13:39:19]line ОКРУГЛЕНИЕ: -0.13 [13:39:19]line ИТОГО: 1000.00 [13:39:19]line Внесено: 1000.00 [13:39:19]line СДАЧА: 0.00 [13:39:19]line НСП 1% : 8.85 [13:39:19]line НДС 12% : 106.21 [13:39:19]line Наличными: 1000.00 [13:39:19]line Безнал.: 0.00 [13:39:19]line Место: АЗС № 72 "Партнер Нефть" [13:39:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:39:19]line СНО: Общий режим [13:39:19]line Чек 152 12.07.2024 13:39 [13:39:19]line Смена: 445 ФФД: 1.0 [13:39:19]line ЗНМ: 0300000160 [13:39:19]line РНМ: 0000000000090829 [13:39:19]line Версия ККМ: 001 [13:39:19]line ФМ: 0000000000874718 [13:39:19]line ФД: 164231 [13:39:19]line ФПД: 11582906299254 [13:39:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T133919&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164231&fm=11582906299254&tin=02508201610067®Number=0000000000090829&sum=100000 [13:39:19]OFD Sender: Processing packet 164231 [packets to send 104, broken 103] [13:39:19]ProducePacketName [13:39:19]name=ofd_packets/00164231 [13:39:19]OFD Sender: To server: pG, [13:39:19]CommunicateWithHost lk.salyk.kg:30040 [13:39:19]ConnectInit lk.salyk.kg [13:39:19]written 0, free lines is 4095 [13:39:19]Connected sock=10 [13:39:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C7 B5 04 01 18 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 07 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 81 02 00 35 04 06 00 0A 88 DB 03 F3 76 1A C4 73 3F 6F 85 A8 DD [13:39:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1F A1 47 00 DC 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 81 02 00 F4 03 04 00 9B D8 90 66 B6 04 01 00 00 FF 20 53 13 15 DA 4C 39 [13:39:20]CommunicateWithHost err = 0 [13:39:20]CheckOFDResponse [13:39:20]1017 (14) - 77093643461234 [13:39:20]1041 (16) - 0000000000874718 [13:39:20]1040 (4) - 164231 [13:39:20]1012 (4) - 12.07.2024 07:17 [13:39:20]1206 (1) - 0 [13:39:20]OFD Sender: Remove packet 164231 [13:39:20]ProducePacketName [13:39:20]name=ofd_packets/00164231 [13:39:20]NVStorageDeleteData [13:39:20]Write to MH i2c: 01 00 00 DE 20 FE [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: 01 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: 01 07 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: 01 07 00 DE 20 00 00 00 00 00 F2 0C 03 [13:39:20]RasterBufferAndPrint [13:39:20]line [13:39:20]line [13:39:20]line [13:39:20]line [13:39:20]line [13:39:20]written 0, free lines is 3322 [13:39:20]MH_Cut [13:39:20]Write to MH i2c: D1 01 00 E5 20 01 D7 [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: D1 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: D1 01 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: D1 01 00 E5 20 00 D6 [13:39:20]Write to MH i2c: 01 00 00 E6 20 06 [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]OFD Sender: No OFD packet to send [13:39:20]*** Cut start [13:39:20]*** Partial cut [13:39:20]*** CUTSNS_PIN = 1 [13:39:20]*** CUTSNS_PIN = 0 [13:39:21]*** Brake cut motor [13:39:21]Read from MH i2c: 01 [13:39:21]MH_I2C_Read... [13:39:21]*** Stop cut motor [13:39:21]*** Cut end [13:39:21]Read from MH i2c: 01 07 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 07 00 E6 20 00 00 00 00 00 FF 0F 1B [13:39:21]process_action close_receipt done [13:39:21]requested_data is exist [13:39:21]produce_requested_data [13:39:21]requested_item fm.sn is exist - process it [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 11 00 00 [13:39:21]Write to MH i2c: E2 08 00 E7 20 80 11 00 00 00 00 00 00 81 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:21]Read from MH i2c: E2 17 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 17 00 E7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [13:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:39:21]wFMCommunicate OK [13:39:21]requested_item fd.num is exist - process it [13:39:21]SAM_PROTO_GetFieldsCounters [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 13 00 00 [13:39:21]Write to MH i2c: E2 08 00 E8 20 80 13 00 00 00 00 00 00 84 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 62 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 62 00 E8 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [13:39:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:21]wFMCommunicate OK [13:39:21]SAM_PROTO_GetFieldsCounters done [13:39:21]requested_item shift.num is exist - process it [13:39:21]requested_item shift.opened is exist - process it [13:39:21]req_shift_opened [13:39:21]FM_GetShiftState [13:39:21]SAM_PROTO_GetShiftState [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 13 01 00 [13:39:21]Write to MH i2c: E2 08 00 E9 20 80 13 01 00 00 00 00 00 86 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0E 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0E 00 E9 20 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D0 [13:39:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:39:21]wFMCommunicate OK [13:39:21]SAM_PROTO_GetShiftState done [13:39:21]FM_GetShiftState done [13:39:21]req_shift_opened done [13:39:21]requested_item shift.open_date is exist - process it [13:39:21]req_shift_open_date [13:39:21]req_shift_open_date done [13:39:21]produce_requested_data done [13:39:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164231,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:39:21]process_action_free close_receipt [13:39:21]json_value_free [13:39:21]json_value_free done [13:39:21]process_json_proto returns [13:39:21]Send response to host [13:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164231,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:39:21]free response buf [13:39:21]execute_script done [13:39:21]execute_script returns [13:39:21]free content buf [13:39:21]Sock 9.Close socket [13:39:21]Sock 9.Thread stoped [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:09]accept exits with 7 [13:41:09]New connection [13:41:09]New thread 3066707300 created [13:41:09]Thread 3066850660 joined [13:41:09]Waiting for new connection... [13:41:09] Sock 7.Parse request [13:41:09]Sock 7.Check first char [13:41:09]Sock 7.First char is OK [13:41:09]request: POST /json_proto HTTP/1.0 [13:41:09]Method: POST [13:41:09]URL: /json_proto [13:41:09]Method is POST - this is cgi request [13:41:09]url: /json_proto [13:41:09]query_string will be loaded in cgi processing [13:41:09]execute_cgi json_proto POST (null) [13:41:09]execute_cgi path=json_proto method=POST [13:41:09]POST find Content-Length [13:41:09]Host: 172.17.56.4:8080 [13:41:09]Content-Length: 674 [13:41:09]Content-Type: application/json [13:41:09] [13:41:09]POST finish read [13:41:09]Found Content-Length = 674 [13:41:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458316", "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" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:41:09]execute_script... [13:41: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)458316", "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" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:41:09]POST & json_proto [13:41:09]process_json_proto [13:41:09]json parsed OK: [13:41:09]protocol is kg_v1.0 [13:41:09]action value=close_receipt [13:41:09]process_action close_receipt [13:41:09]cmd_close_receipt [13:41:09]MH_GetDate [13:41:09]Write to MH i2c: F0 00 00 EA 20 F9 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: F0 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: F0 09 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: F0 09 00 EA 20 00 77 32 91 66 C9 DC B2 64 5D [13:41:09]GetLastDocTimeStamp 1720791559 [13:41:09]current date 1720791671 [13:41:09]FM_GetShiftState [13:41:09]SAM_PROTO_GetShiftState [13:41:09]wFMCommunicate request_size=4 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 13 01 00 [13:41:09]Write to MH i2c: E2 08 00 EB 20 80 13 01 00 00 00 00 00 88 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 0E 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 0E 00 EB 20 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D2 [13:41:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:41:09]wFMCommunicate OK [13:41:09]SAM_PROTO_GetShiftState done [13:41:09]FM_GetShiftState done [13:41:09]opened in 1720744654 [13:41:09]opened+sec_in_day 1720831054 [13:41:09]quantity*price = 70030 [13:41:09]sum+1 = 70032 [13:41:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 153 12.07.2024 13:41 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164232 ФПД: 2605239554393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T134111&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164232&fm=2605239554393&tin=02508201610067®Number=0000000000090829&sum=70000 [13:41:11]StoreToDocumentArchive [13:41:11]shift 445 fd 164232 [13:41:11]save to /storage/0445/doc_00164232 [13:41:11]save last doc name /storage/0445/doc_00164232 to /storage/kkm_last_doc_name [13:41:11]save OK [13:41:11]Clear old archive folders... [13:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:11]tlvbuf is 009EF790 [13:41:11]SAM_PROTO_ClearQueue [13:41:11]wFMCommunicate request_size=4 [13:41:11]MH_SAM_APDU [13:41:11]CAPDU: 80 09 00 00 [13:41:11]Write to MH i2c: E2 08 00 F8 20 80 09 00 00 00 00 00 00 8A [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:11]Read from MH i2c: E2 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 03 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 03 00 F8 20 00 90 00 8C [13:41:11]RAPDU: 90 00 [13:41:11]wFMCommunicate OK [13:41:11]SAM_PROTO_ClearQueue done [13:41:11]KKMCreateOFDPacket [13:41:11]OFDProtocolAddRootSTLVToBuf [13:41:11]FM_MakeSignedData [13:41:11]FM_MakeSignedData [13:41:11]SAM_PROTO_SignData [13:41:11]wFMCommunicate request_size=4 [13:41:11]MH_SAM_APDU [13:41:11]CAPDU: 80 0D 01 02 [13:41:11]Write to MH i2c: E2 08 00 F9 20 80 0D 01 02 00 00 00 00 92 [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:11]Read from MH i2c: E2 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 03 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 03 00 F9 20 00 90 00 8D [13:41:11]RAPDU: 90 00 [13:41:11]wFMCommunicate OK [13:41:11]wFMCommunicate request_size=255 [13:41:11]MH_SAM_APDU [13:41:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 99 00 00 00 F4 03 04 00 77 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 81 02 00 35 04 06 00 02 5E 94 60 [13:41:11]Write to MH i2c: E2 02 01 FA 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 99 00 00 00 F4 03 04 00 77 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 81 02 00 35 04 06 00 02 5E 94 60 00 00 EC [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:11]Read from MH i2c: E2 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 03 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 03 00 FA 20 00 90 00 8E [13:41:11]RAPDU: 90 00 [13:41:11]wFMCommunicate OK [13:41:11]wFMCommunicate request_size=7 [13:41:11]MH_SAM_APDU [13:41:11]CAPDU: 80 0D 02 02 02 D1 59 [13:41:11]Write to MH i2c: E2 0A 00 FB 20 80 0D 02 02 02 00 D1 59 00 00 C3 [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:11]Read from MH i2c: E2 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 03 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 03 00 FB 20 00 90 00 8F [13:41:11]RAPDU: 90 00 [13:41:11]wFMCommunicate OK [13:41:11]wFMCommunicate request_size=4 [13:41:11]MH_SAM_APDU [13:41:11]CAPDU: 80 0D 03 02 [13:41:11]Write to MH i2c: E2 08 00 FC 20 80 0D 03 02 00 00 00 00 97 [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:11]Read from MH i2c: E2 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 0B 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 0B 00 FC 20 00 E2 6D F0 F7 46 F1 2C 92 90 00 C3 [13:41:11]RAPDU: E2 6D F0 F7 46 F1 2C 92 90 00 [13:41:11]wFMCommunicate OK [13:41:11]SAM_PROTO_SignData done [13:41:11]FM_MakeSignedData done [13:41:11]CreateOFDProtocolMessage [13:41:11]wFMCommunicate request_size=4 [13:41:11]MH_SAM_APDU [13:41:11]CAPDU: 80 11 00 00 [13:41:11]Write to MH i2c: E2 08 00 FD 20 80 11 00 00 00 00 00 00 97 [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:11]Read from MH i2c: E2 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 17 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 17 00 FD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [13:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:11]wFMCommunicate OK [13:41:11]CreateOFDProtocolMessage done [13:41:11]OFDSenderStorePacket 164232 [13:41:11]StoreOFDPacket docnum=164232 [13:41:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 46 A4 04 01 74 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 99 00 00 00 F4 03 04 00 77 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 81 02 00 35 04 06 00 02 5E 94 60 D1 59 E2 6D F0 F7 46 F1 2C 92 [13:41:11]CheckFolder [13:41:11]dirname=/storage/ofd_packets [13:41:11]CheckFolder done [13:41:11]ProducePacketName [13:41:11]name=ofd_packets/00164232 [13:41:11]NVStorageSaveData ofd_packets/00164232 [13:41:11]File name is /storage/ofd_packets/00164232 [13:41:11]Write 298 bytes [13:41:11]NVStorageSaveData done [13:41:11]OFDSenderStorePacket done [13:41:11]KKMCreateOFDPacket done [13:41:11]NVStorageSaveData kkm_last_timestamp [13:41:11]File name is /storage/kkm_last_timestamp [13:41:11]Write 4 bytes [13:41:11]NVStorageSaveData done [13:41:11]ExternCall_PrintAddStr [13:41:11]wPrintStart [13:41:11]Write to MH i2c: 01 00 00 FE 20 1E [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: 01 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: 01 07 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: 01 07 00 FE 20 00 00 00 00 00 FF 0F 33 [13:41:11]RasterBufferAndPrint [13:41:11]line Счет N : (1)458316 [13:41:11]line ИНН: 02508201610067 [13:41:11]line Контрольно-Кассовый Чек [13:41:11]line ПРОДАЖА [13:41:11]line ТРК (МРК, ГНК) : 21 [13:41:11]line Товар: 2710194210 [13:41:11]line ДТ-К-5 [13:41:11]line 9.740 * 71.90 [13:41:11]line = 700.31 [13:41:11]line НДС 12% НСП 1% [13:41:11]line > о реализуемом товаре [13:41:11]line ОКРУГЛЕНИЕ: -0.31 [13:41:11]line ИТОГО: 700.00 [13:41:11]line Внесено: 700.00 [13:41:11]line СДАЧА: 0.00 [13:41:11]line НСП 1% : 6.20 [13:41:11]line НДС 12% : 74.37 [13:41:11]line Наличными: 700.00 [13:41:11]line Безнал.: 0.00 [13:41:11]line Место: АЗС № 72 "Партнер Нефть" [13:41:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:41:11]line СНО: Общий режим [13:41:11]line Чек 153 12.07.2024 13:41 [13:41:11]line Смена: 445 ФФД: 1.0 [13:41:11]line ЗНМ: 0300000160 [13:41:11]line РНМ: 0000000000090829 [13:41:11]line Версия ККМ: 001 [13:41:11]line ФМ: 0000000000874718 [13:41:11]line ФД: 164232 [13:41:11]line ФПД: 2605239554393 [13:41:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T134111&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164232&fm=2605239554393&tin=02508201610067®Number=0000000000090829&sum=70000 [13:41:11]OFD Sender: Processing packet 164232 [packets to send 104, broken 103] [13:41:11]ProducePacketName [13:41:11]name=ofd_packets/00164232 [13:41:11]OFD Sender: To server: pG, [13:41:11]CommunicateWithHost lk.salyk.kg:30040 [13:41:11]ConnectInit lk.salyk.kg [13:41:11]written 0, free lines is 4095 [13:41:12]Connected sock=10 [13:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 46 A4 04 01 74 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 99 00 00 00 F4 03 04 00 77 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 81 02 00 35 04 06 00 02 5E 94 60 D1 59 E2 6D F0 F7 46 F1 2C 92 [13:41:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3B D5 47 00 49 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 34 37 31 38 10 04 04 00 88 81 02 00 F4 03 04 00 0B D9 90 66 B6 04 01 00 00 A5 37 E4 BD 0A 64 12 84 [13:41:12]CommunicateWithHost err = 0 [13:41:12]CheckOFDResponse [13:41:12]1017 (14) - 77093643461234 [13:41:12]1041 (16) - 0000000000874718 [13:41:12]1040 (4) - 164232 [13:41:12]1012 (4) - 12.07.2024 07:19 [13:41:12]1206 (1) - 0 [13:41:12]OFD Sender: Remove packet 164232 [13:41:12]ProducePacketName [13:41:12]name=ofd_packets/00164232 [13:41:12]NVStorageDeleteData [13:41:12]Write to MH i2c: 01 00 00 28 21 49 [13:41:12]Write i2c OK [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: 01 [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: 01 07 00 [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: 01 07 00 28 21 00 00 00 00 00 F0 0C 4C [13:41:12]RasterBufferAndPrint [13:41:12]line [13:41:12]line [13:41:12]line [13:41:12]line [13:41:12]line [13:41:12]written 0, free lines is 3319 [13:41:12]MH_Cut [13:41:12]Write to MH i2c: D1 01 00 2F 21 01 22 [13:41:12]Write i2c OK [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: D1 [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: D1 01 00 [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: D1 01 00 2F 21 00 21 [13:41:12]Write to MH i2c: 01 00 00 30 21 51 [13:41:12]Write i2c OK [13:41:12]MH_I2C_Read... [13:41:12]OFD Sender: No OFD packet to send [13:41:13]*** Cut start [13:41:13]*** Partial cut [13:41:13]*** CUTSNS_PIN = 1 [13:41:13]*** CUTSNS_PIN = 0 [13:41:13]*** Brake cut motor [13:41:13]Read from MH i2c: 01 [13:41:13]MH_I2C_Read... [13:41:13]*** Stop cut motor [13:41:13]*** Cut end [13:41:13]Read from MH i2c: 01 07 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: 01 07 00 30 21 00 00 00 00 00 FF 0F 66 [13:41:13]process_action close_receipt done [13:41:13]requested_data is exist [13:41:13]produce_requested_data [13:41:13]requested_item fm.sn is exist - process it [13:41:13]wFMCommunicate request_size=4 [13:41:13]MH_SAM_APDU [13:41:13]CAPDU: 80 11 00 00 [13:41:13]Write to MH i2c: E2 08 00 31 21 80 11 00 00 00 00 00 00 CC [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 17 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 17 00 31 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 22 [13:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:13]wFMCommunicate OK [13:41:13]requested_item fd.num is exist - process it [13:41:13]SAM_PROTO_GetFieldsCounters [13:41:13]wFMCommunicate request_size=4 [13:41:13]MH_SAM_APDU [13:41:13]CAPDU: 80 13 00 00 [13:41:13]Write to MH i2c: E2 08 00 32 21 80 13 00 00 00 00 00 00 CF [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 62 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 62 00 32 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [13:41: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:13]wFMCommunicate OK [13:41:13]SAM_PROTO_GetFieldsCounters done [13:41:13]requested_item shift.num is exist - process it [13:41:13]requested_item shift.opened is exist - process it [13:41:13]req_shift_opened [13:41:13]FM_GetShiftState [13:41:13]SAM_PROTO_GetShiftState [13:41:13]wFMCommunicate request_size=4 [13:41:13]MH_SAM_APDU [13:41:13]CAPDU: 80 13 01 00 [13:41:13]Write to MH i2c: E2 08 00 33 21 80 13 01 00 00 00 00 00 D1 [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 0E 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 0E 00 33 21 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1B [13:41:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:41:13]wFMCommunicate OK [13:41:13]SAM_PROTO_GetShiftState done [13:41:13]FM_GetShiftState done [13:41:13]req_shift_opened done [13:41:13]requested_item shift.open_date is exist - process it [13:41:13]req_shift_open_date [13:41:13]req_shift_open_date done [13:41:13]produce_requested_data done [13:41:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164232,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:41:13]process_action_free close_receipt [13:41:13]json_value_free [13:41:13]json_value_free done [13:41:13]process_json_proto returns [13:41:13]Send response to host [13:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164232,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:41:13]free response buf [13:41:13]execute_script done [13:41:13]execute_script returns [13:41:13]free content buf [13:41:13]Sock 7.Close socket [13:41:13]Sock 7.Thread stoped [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:46]accept exits with 9 [13:41:46]New connection [13:41:46]New thread 3066850660 created [13:41:46]Thread 3066707300 joined [13:41:46]Waiting for new connection... [13:41:46] Sock 9.Parse request [13:41:46]Sock 9.Check first char [13:41:46]Sock 9.First char is OK [13:41:46]request: POST /json_proto HTTP/1.0 [13:41:46]Method: POST [13:41:46]URL: /json_proto [13:41:46]Method is POST - this is cgi request [13:41:46]url: /json_proto [13:41:46]query_string will be loaded in cgi processing [13:41:46]execute_cgi json_proto POST (null) [13:41:46]execute_cgi path=json_proto method=POST [13:41:46]POST find Content-Length [13:41:46]Host: 172.17.56.4:8080 [13:41:46]Content-Length: 639 [13:41:46]Content-Type: application/json [13:41:46] [13:41:46]POST finish read [13:41:46]Found Content-Length = 639 [13:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:46]execute_script... [13:41: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)458315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:46]POST & json_proto [13:41:46]process_json_proto [13:41:46]json parsed OK: [13:41:46]protocol is kg_v1.0 [13:41:46]action value=close_receipt [13:41:46]process_action close_receipt [13:41:46]cmd_close_receipt [13:41:46]MH_GetDate [13:41:46]Write to MH i2c: F0 00 00 34 21 44 [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: F0 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: F0 09 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: F0 09 00 34 21 00 9C 32 91 66 C9 DC B2 64 CD [13:41:46]GetLastDocTimeStamp 1720791671 [13:41:46]current date 1720791708 [13:41:46]FM_GetShiftState [13:41:46]SAM_PROTO_GetShiftState [13:41:46]wFMCommunicate request_size=4 [13:41:46]MH_SAM_APDU [13:41:46]CAPDU: 80 13 01 00 [13:41:46]Write to MH i2c: E2 08 00 35 21 80 13 01 00 00 00 00 00 D3 [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:46]Read from MH i2c: E2 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 0E 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 0E 00 35 21 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1D [13:41:46]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:41:46]wFMCommunicate OK [13:41:46]SAM_PROTO_GetShiftState done [13:41:46]FM_GetShiftState done [13:41:46]opened in 1720744654 [13:41:46]opened+sec_in_day 1720831054 [13:41:46]quantity*price = 143800 [13:41:46]sum+1 = 143801 [13:41:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1438.00 НСП 1% : 12.73 НДС 12% : 152.71 Наличными: 1438.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 154 12.07.2024 13:41 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164233 ФПД: 128025162276080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T134148&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164233&fm=128025162276080&tin=02508201610067®Number=0000000000090829&sum=143800 [13:41:48]StoreToDocumentArchive [13:41:48]shift 445 fd 164233 [13:41:48]save to /storage/0445/doc_00164233 [13:41:48]save last doc name /storage/0445/doc_00164233 to /storage/kkm_last_doc_name [13:41:48]save OK [13:41:48]Clear old archive folders... [13:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:48]tlvbuf is 00A8E8C0 [13:41:48]SAM_PROTO_ClearQueue [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 09 00 00 [13:41:48]Write to MH i2c: E2 08 00 42 21 80 09 00 00 00 00 00 00 D5 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 42 21 00 90 00 D7 [13:41:48]RAPDU: 90 00 [13:41:48]wFMCommunicate OK [13:41:48]SAM_PROTO_ClearQueue done [13:41:48]KKMCreateOFDPacket [13:41:48]OFDProtocolAddRootSTLVToBuf [13:41:48]FM_MakeSignedData [13:41:48]FM_MakeSignedData [13:41:48]SAM_PROTO_SignData [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 0D 01 02 [13:41:48]Write to MH i2c: E2 08 00 43 21 80 0D 01 02 00 00 00 00 DD [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 43 21 00 90 00 D8 [13:41:48]RAPDU: 90 00 [13:41:48]wFMCommunicate OK [13:41:48]wFMCommunicate request_size=255 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 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 9C 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 81 02 00 35 04 06 00 74 70 2E 51 [13:41:48]Write to MH i2c: E2 02 01 44 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 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 9C 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 81 02 00 35 04 06 00 74 70 2E 51 00 00 0C [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 44 21 00 90 00 D9 [13:41:48]RAPDU: 90 00 [13:41:48]wFMCommunicate OK [13:41:48]wFMCommunicate request_size=7 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 0D 02 02 02 DC F0 [13:41:48]Write to MH i2c: E2 0A 00 45 21 80 0D 02 02 02 00 DC F0 00 00 B0 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 03 00 45 21 00 90 00 DA [13:41:48]RAPDU: 90 00 [13:41:48]wFMCommunicate OK [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 0D 03 02 [13:41:48]Write to MH i2c: E2 08 00 46 21 80 0D 03 02 00 00 00 00 E2 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 0B 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 0B 00 46 21 00 44 E5 94 66 B6 3A E3 C1 90 00 9A [13:41:48]RAPDU: 44 E5 94 66 B6 3A E3 C1 90 00 [13:41:48]wFMCommunicate OK [13:41:48]SAM_PROTO_SignData done [13:41:48]FM_MakeSignedData done [13:41:48]CreateOFDProtocolMessage [13:41:48]wFMCommunicate request_size=4 [13:41:48]MH_SAM_APDU [13:41:48]CAPDU: 80 11 00 00 [13:41:48]Write to MH i2c: E2 08 00 47 21 80 11 00 00 00 00 00 00 E2 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:48]Read from MH i2c: E2 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 17 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: E2 17 00 47 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 38 [13:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:48]wFMCommunicate OK [13:41:48]CreateOFDProtocolMessage done [13:41:48]OFDSenderStorePacket 164233 [13:41:48]StoreOFDPacket docnum=164233 [13:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 5A 8D 04 01 62 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 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 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 9C 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 81 02 00 35 04 06 00 74 70 2E 51 DC F0 44 E5 94 66 B6 3A E3 C1 [13:41:48]CheckFolder [13:41:48]dirname=/storage/ofd_packets [13:41:48]CheckFolder done [13:41:48]ProducePacketName [13:41:48]name=ofd_packets/00164233 [13:41:48]NVStorageSaveData ofd_packets/00164233 [13:41:48]File name is /storage/ofd_packets/00164233 [13:41:48]Write 298 bytes [13:41:48]NVStorageSaveData done [13:41:48]OFDSenderStorePacket done [13:41:48]KKMCreateOFDPacket done [13:41:48]NVStorageSaveData kkm_last_timestamp [13:41:48]File name is /storage/kkm_last_timestamp [13:41:48]Write 4 bytes [13:41:48]NVStorageSaveData done [13:41:48]ExternCall_PrintAddStr [13:41:48]wPrintStart [13:41:48]Write to MH i2c: 01 00 00 48 21 69 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 07 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 07 00 48 21 00 00 00 00 00 FF 0F 7E [13:41:48]RasterBufferAndPrint [13:41:48]line Счет N : (1)458315 [13:41:48]line ИНН: 02508201610067 [13:41:48]line Контрольно-Кассовый Чек [13:41:48]line ПРОДАЖА [13:41:48]line ТРК (МРК, ГНК) : 11 [13:41:48]line Товар: 2710194210 [13:41:48]line ДТ-К-5 [13:41:48]line 20.000 * 71.90 [13:41:48]line = 1438.00 [13:41:48]line НДС 12% НСП 1% [13:41:48]line > о реализуемом товаре [13:41:48]line ИТОГО: 1438.00 [13:41:48]line НСП 1% : 12.73 [13:41:48]line НДС 12% : 152.71 [13:41:48]line Наличными: 1438.00 [13:41:48]line Безнал.: 0.00 [13:41:48]line Место: АЗС № 72 "Партнер Нефть" [13:41:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:41:48]line СНО: Общий режим [13:41:48]line Чек 154 12.07.2024 13:41 [13:41:48]line Смена: 445 ФФД: 1.0 [13:41:48]line ЗНМ: 0300000160 [13:41:48]line РНМ: 0000000000090829 [13:41:48]line Версия ККМ: 001 [13:41:48]line ФМ: 0000000000874718 [13:41:48]line ФД: 164233 [13:41:48]line ФПД: 128025162276080 [13:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T134148&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164233&fm=128025162276080&tin=02508201610067®Number=0000000000090829&sum=143800 [13:41:48]OFD Sender: Processing packet 164233 [packets to send 104, broken 103] [13:41:48]ProducePacketName [13:41:48]name=ofd_packets/00164233 [13:41:48]OFD Sender: To server: pG, [13:41:48]CommunicateWithHost lk.salyk.kg:30040 [13:41:48]ConnectInit lk.salyk.kg [13:41:48]written 0, free lines is 4095 [13:41:48]Connected sock=10 [13:41:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 5A 8D 04 01 62 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 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 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 9C 32 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 81 02 00 35 04 06 00 74 70 2E 51 DC F0 44 E5 94 66 B6 3A E3 C1 [13:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AC 95 47 00 49 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 34 37 31 38 10 04 04 00 89 81 02 00 F4 03 04 00 30 D9 90 66 B6 04 01 00 00 57 A0 A7 1C 77 94 5D 35 [13:41:49]CommunicateWithHost err = 0 [13:41:49]CheckOFDResponse [13:41:49]1017 (14) - 77093643461234 [13:41:49]1041 (16) - 0000000000874718 [13:41:49]1040 (4) - 164233 [13:41:49]1012 (4) - 12.07.2024 07:20 [13:41:49]1206 (1) - 0 [13:41:49]OFD Sender: Remove packet 164233 [13:41:49]ProducePacketName [13:41:49]name=ofd_packets/00164233 [13:41:49]NVStorageDeleteData [13:41:49]Write to MH i2c: 01 00 00 6F 21 90 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 6F 21 00 00 00 00 00 1B 0D BF [13:41:49]RasterBufferAndPrint [13:41:49]line [13:41:49]line [13:41:49]line [13:41:49]line [13:41:49]line [13:41:49]written 0, free lines is 3361 [13:41:49]MH_Cut [13:41:49]Write to MH i2c: D1 01 00 76 21 01 69 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: D1 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: D1 01 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: D1 01 00 76 21 00 68 [13:41:49]Write to MH i2c: 01 00 00 77 21 98 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]OFD Sender: No OFD packet to send [13:41:49]*** Cut start [13:41:49]*** Partial cut [13:41:49]*** CUTSNS_PIN = 1 [13:41:49]*** CUTSNS_PIN = 0 [13:41:50]*** Brake cut motor [13:41:50]Read from MH i2c: 01 [13:41:50]MH_I2C_Read... [13:41:50]*** Stop cut motor [13:41:50]*** Cut end [13:41:50]Read from MH i2c: 01 07 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: 01 07 00 77 21 00 00 00 00 00 FF 0F AD [13:41:50]process_action close_receipt done [13:41:50]requested_data is exist [13:41:50]produce_requested_data [13:41:50]requested_item fm.sn is exist - process it [13:41:50]wFMCommunicate request_size=4 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 11 00 00 [13:41:50]Write to MH i2c: E2 08 00 78 21 80 11 00 00 00 00 00 00 13 [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 [13:41:50]MH_I2C_Read... [13:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:50]Read from MH i2c: E2 17 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 17 00 78 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 69 [13:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:50]wFMCommunicate OK [13:41:50]requested_item fd.num is exist - process it [13:41:50]SAM_PROTO_GetFieldsCounters [13:41:50]wFMCommunicate request_size=4 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 13 00 00 [13:41:50]Write to MH i2c: E2 08 00 79 21 80 13 00 00 00 00 00 00 16 [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:50]Read from MH i2c: E2 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 62 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 62 00 79 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [13:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:50]wFMCommunicate OK [13:41:50]SAM_PROTO_GetFieldsCounters done [13:41:50]requested_item shift.num is exist - process it [13:41:50]requested_item shift.opened is exist - process it [13:41:50]req_shift_opened [13:41:50]FM_GetShiftState [13:41:50]SAM_PROTO_GetShiftState [13:41:50]wFMCommunicate request_size=4 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 13 01 00 [13:41:50]Write to MH i2c: E2 08 00 7A 21 80 13 01 00 00 00 00 00 18 [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:50]Read from MH i2c: E2 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 0E 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 0E 00 7A 21 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 62 [13:41:50]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:41:50]wFMCommunicate OK [13:41:50]SAM_PROTO_GetShiftState done [13:41:50]FM_GetShiftState done [13:41:50]req_shift_opened done [13:41:50]requested_item shift.open_date is exist - process it [13:41:50]req_shift_open_date [13:41:50]req_shift_open_date done [13:41:50]produce_requested_data done [13:41:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164233,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:41:50]process_action_free close_receipt [13:41:50]json_value_free [13:41:50]json_value_free done [13:41:50]process_json_proto returns [13:41:50]Send response to host [13:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164233,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:41:50]free response buf [13:41:50]execute_script done [13:41:50]execute_script returns [13:41:50]free content buf [13:41:50]Sock 9.Close socket [13:41:50]Sock 9.Thread stoped [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:05]accept exits with 7 [13:44:05]New connection [13:44:05]New thread 3066707300 created [13:44:05]Thread 3066850660 joined [13:44:05]Waiting for new connection... [13:44:05] Sock 7.Parse request [13:44:05]Sock 7.Check first char [13:44:05]Sock 7.First char is OK [13:44:05]request: POST /json_proto HTTP/1.0 [13:44:05]Method: POST [13:44:05]URL: /json_proto [13:44:05]Method is POST - this is cgi request [13:44:05]url: /json_proto [13:44:05]query_string will be loaded in cgi processing [13:44:05]execute_cgi json_proto POST (null) [13:44:05]execute_cgi path=json_proto method=POST [13:44:05]POST find Content-Length [13:44:05]Host: 172.17.56.4:8080 [13:44:05]Content-Length: 674 [13:44:05]Content-Type: application/json [13:44:05] [13:44:05]POST finish read [13:44:05]Found Content-Length = 674 [13:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458317", "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" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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:44:05]execute_script... [13:44:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458317", "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" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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:44:05]POST & json_proto [13:44:05]process_json_proto [13:44:05]json parsed OK: [13:44:05]protocol is kg_v1.0 [13:44:05]action value=close_receipt [13:44:05]process_action close_receipt [13:44:05]cmd_close_receipt [13:44:05]MH_GetDate [13:44:05]Write to MH i2c: F0 00 00 7B 21 8B [13:44:05]Write i2c OK [13:44:05]MH_I2C_Read... [13:44:05]Read from MH i2c: F0 [13:44:05]MH_I2C_Read... [13:44:05]Read from MH i2c: F0 09 00 [13:44:05]MH_I2C_Read... [13:44:05]Read from MH i2c: F0 09 00 7B 21 00 27 33 91 66 C9 DC B2 64 A0 [13:44:05]GetLastDocTimeStamp 1720791708 [13:44:05]current date 1720791847 [13:44:05]FM_GetShiftState [13:44:05]SAM_PROTO_GetShiftState [13:44:05]wFMCommunicate request_size=4 [13:44:05]MH_SAM_APDU [13:44:05]CAPDU: 80 13 01 00 [13:44:05]Write to MH i2c: E2 08 00 7C 21 80 13 01 00 00 00 00 00 1A [13:44:05]Write i2c OK [13:44:05]MH_I2C_Read... [13:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:05]Read from MH i2c: E2 [13:44:05]MH_I2C_Read... [13:44:05]Read from MH i2c: E2 0E 00 [13:44:05]MH_I2C_Read... [13:44:05]Read from MH i2c: E2 0E 00 7C 21 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 64 [13:44:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:44:05]wFMCommunicate OK [13:44:05]SAM_PROTO_GetShiftState done [13:44:05]FM_GetShiftState done [13:44:05]opened in 1720744654 [13:44:05]opened+sec_in_day 1720831054 [13:44:05]quantity*price = 60036 [13:44:05]sum+1 = 60038 [13:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 155 12.07.2024 13:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164234 ФПД: 253170797232071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T134407&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164234&fm=253170797232071&tin=02508201610067®Number=0000000000090829&sum=60000 [13:44:06]StoreToDocumentArchive [13:44:06]shift 445 fd 164234 [13:44:06]save to /storage/0445/doc_00164234 [13:44:06]save last doc name /storage/0445/doc_00164234 to /storage/kkm_last_doc_name [13:44:06]save OK [13:44:06]Clear old archive folders... [13:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:44:06]tlvbuf is B6E8F6E0 [13:44:06]SAM_PROTO_ClearQueue [13:44:06]wFMCommunicate request_size=4 [13:44:06]MH_SAM_APDU [13:44:06]CAPDU: 80 09 00 00 [13:44:06]Write to MH i2c: E2 08 00 89 21 80 09 00 00 00 00 00 00 1C [13:44:06]Write i2c OK [13:44:06]MH_I2C_Read... [13:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:06]Read from MH i2c: E2 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 03 00 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 03 00 89 21 00 90 00 1E [13:44:06]RAPDU: 90 00 [13:44:06]wFMCommunicate OK [13:44:06]SAM_PROTO_ClearQueue done [13:44:06]KKMCreateOFDPacket [13:44:06]OFDProtocolAddRootSTLVToBuf [13:44:06]FM_MakeSignedData [13:44:06]FM_MakeSignedData [13:44:06]SAM_PROTO_SignData [13:44:06]wFMCommunicate request_size=4 [13:44:06]MH_SAM_APDU [13:44:06]CAPDU: 80 0D 01 02 [13:44:06]Write to MH i2c: E2 08 00 8A 21 80 0D 01 02 00 00 00 00 24 [13:44:06]Write i2c OK [13:44:06]MH_I2C_Read... [13:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:06]Read from MH i2c: E2 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 03 00 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 03 00 8A 21 00 90 00 1F [13:44:06]RAPDU: 90 00 [13:44:06]wFMCommunicate OK [13:44:06]wFMCommunicate request_size=255 [13:44:06]MH_SAM_APDU [13:44: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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 27 33 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 81 02 00 35 04 06 00 E6 41 EB 6F [13:44:06]Write to MH i2c: E2 02 01 8B 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 27 33 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 81 02 00 35 04 06 00 E6 41 EB 6F 00 00 C7 [13:44:06]Write i2c OK [13:44:06]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 8B 21 00 90 00 20 [13:44:07]RAPDU: 90 00 [13:44:07]wFMCommunicate OK [13:44:07]wFMCommunicate request_size=7 [13:44:07]MH_SAM_APDU [13:44:07]CAPDU: 80 0D 02 02 02 BF C7 [13:44:07]Write to MH i2c: E2 0A 00 8C 21 80 0D 02 02 02 00 BF C7 00 00 B1 [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 03 00 8C 21 00 90 00 21 [13:44:07]RAPDU: 90 00 [13:44:07]wFMCommunicate OK [13:44:07]wFMCommunicate request_size=4 [13:44:07]MH_SAM_APDU [13:44:07]CAPDU: 80 0D 03 02 [13:44:07]Write to MH i2c: E2 08 00 8D 21 80 0D 03 02 00 00 00 00 29 [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 0B 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 0B 00 8D 21 00 F5 4D F9 5B 1C D1 C2 5E 90 00 CD [13:44:07]RAPDU: F5 4D F9 5B 1C D1 C2 5E 90 00 [13:44:07]wFMCommunicate OK [13:44:07]SAM_PROTO_SignData done [13:44:07]FM_MakeSignedData done [13:44:07]CreateOFDProtocolMessage [13:44:07]wFMCommunicate request_size=4 [13:44:07]MH_SAM_APDU [13:44:07]CAPDU: 80 11 00 00 [13:44:07]Write to MH i2c: E2 08 00 8E 21 80 11 00 00 00 00 00 00 29 [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:07]Read from MH i2c: E2 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 17 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: E2 17 00 8E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7F [13:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:44:07]wFMCommunicate OK [13:44:07]CreateOFDProtocolMessage done [13:44:07]OFDSenderStorePacket 164234 [13:44:07]StoreOFDPacket docnum=164234 [13:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 71 39 04 01 80 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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 27 33 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 81 02 00 35 04 06 00 E6 41 EB 6F BF C7 F5 4D F9 5B 1C D1 C2 5E [13:44:07]CheckFolder [13:44:07]dirname=/storage/ofd_packets [13:44:07]CheckFolder done [13:44:07]ProducePacketName [13:44:07]name=ofd_packets/00164234 [13:44:07]NVStorageSaveData ofd_packets/00164234 [13:44:07]File name is /storage/ofd_packets/00164234 [13:44:07]Write 298 bytes [13:44:07]NVStorageSaveData done [13:44:07]OFDSenderStorePacket done [13:44:07]KKMCreateOFDPacket done [13:44:07]NVStorageSaveData kkm_last_timestamp [13:44:07]File name is /storage/kkm_last_timestamp [13:44:07]Write 4 bytes [13:44:07]NVStorageSaveData done [13:44:07]ExternCall_PrintAddStr [13:44:07]wPrintStart [13:44:07]Write to MH i2c: 01 00 00 8F 21 B0 [13:44:07]Write i2c OK [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: 01 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: 01 07 00 [13:44:07]MH_I2C_Read... [13:44:07]Read from MH i2c: 01 07 00 8F 21 00 00 00 00 00 FF 0F C5 [13:44:07]RasterBufferAndPrint [13:44:07]line Счет N : (1)458317 [13:44:07]line ИНН: 02508201610067 [13:44:07]line Контрольно-Кассовый Чек [13:44:07]line ПРОДАЖА [13:44:07]line ТРК (МРК, ГНК) : 21 [13:44:07]line Товар: 2710194210 [13:44:07]line ДТ-К-5 [13:44:07]line 8.350 * 71.90 [13:44:07]line = 600.37 [13:44:07]line НДС 12% НСП 1% [13:44:07]line > о реализуемом товаре [13:44:07]line ОКРУГЛЕНИЕ: -0.37 [13:44:07]line ИТОГО: 600.00 [13:44:07]line Внесено: 600.00 [13:44:07]line СДАЧА: 0.00 [13:44:07]line НСП 1% : 5.31 [13:44:07]line НДС 12% : 63.76 [13:44:07]line Наличными: 600.00 [13:44:07]line Безнал.: 0.00 [13:44:07]line Место: АЗС № 72 "Партнер Нефть" [13:44:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:44:07]line СНО: Общий режим [13:44:07]line Чек 155 12.07.2024 13:44 [13:44:07]line Смена: 445 ФФД: 1.0 [13:44:07]line ЗНМ: 0300000160 [13:44:07]line РНМ: 0000000000090829 [13:44:07]line Версия ККМ: 001 [13:44:07]line ФМ: 0000000000874718 [13:44:07]line ФД: 164234 [13:44:07]line ФПД: 253170797232071 [13:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T134407&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164234&fm=253170797232071&tin=02508201610067®Number=0000000000090829&sum=60000 [13:44:07]OFD Sender: Processing packet 164234 [packets to send 104, broken 103] [13:44:07]ProducePacketName [13:44:07]name=ofd_packets/00164234 [13:44:07]OFD Sender: To server: pG, [13:44:07]CommunicateWithHost lk.salyk.kg:30040 [13:44:07]ConnectInit lk.salyk.kg [13:44:07]written 0, free lines is 4095 [13:44:07]Connected sock=10 [13:44:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 71 39 04 01 80 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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 27 33 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 81 02 00 35 04 06 00 E6 41 EB 6F BF C7 F5 4D F9 5B 1C D1 C2 5E [13:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B5 5D 47 00 04 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 34 37 31 38 10 04 04 00 8A 81 02 00 F4 03 04 00 BB D9 90 66 B6 04 01 00 00 DF 83 C4 EA 62 0E 84 F7 [13:44:07]CommunicateWithHost err = 0 [13:44:07]CheckOFDResponse [13:44:07]1017 (14) - 77093643461234 [13:44:07]1041 (16) - 0000000000874718 [13:44:07]1040 (4) - 164234 [13:44:07]1012 (4) - 12.07.2024 07:22 [13:44:07]1206 (1) - 0 [13:44:07]OFD Sender: Remove packet 164234 [13:44:07]ProducePacketName [13:44:07]name=ofd_packets/00164234 [13:44:07]NVStorageDeleteData [13:44:08]Write to MH i2c: 01 00 00 B9 21 DA [13:44:08]Write i2c OK [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: 01 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: 01 07 00 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: 01 07 00 B9 21 00 00 00 00 00 F0 0C DD [13:44:08]RasterBufferAndPrint [13:44:08]line [13:44:08]line [13:44:08]line [13:44:08]line [13:44:08]line [13:44:08]written 0, free lines is 3322 [13:44:08]MH_Cut [13:44:08]Write to MH i2c: D1 01 00 C0 21 01 B3 [13:44:08]Write i2c OK [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: D1 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: D1 01 00 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: D1 01 00 C0 21 00 B2 [13:44:08]Write to MH i2c: 01 00 00 C1 21 E2 [13:44:08]Write i2c OK [13:44:08]MH_I2C_Read... [13:44:08]OFD Sender: No OFD packet to send [13:44:08]*** Cut start [13:44:08]*** Partial cut [13:44:08]*** CUTSNS_PIN = 1 [13:44:08]*** CUTSNS_PIN = 0 [13:44:09]*** Brake cut motor [13:44:09]Read from MH i2c: 01 [13:44:09]MH_I2C_Read... [13:44:09]*** Stop cut motor [13:44:09]*** Cut end [13:44:09]Read from MH i2c: 01 07 00 [13:44:09]MH_I2C_Read... [13:44:09]Read from MH i2c: 01 07 00 C1 21 00 00 00 00 00 FF 0F F7 [13:44:09]process_action close_receipt done [13:44:09]requested_data is exist [13:44:09]produce_requested_data [13:44:09]requested_item fm.sn is exist - process it [13:44:09]wFMCommunicate request_size=4 [13:44:09]MH_SAM_APDU [13:44:09]CAPDU: 80 11 00 00 [13:44:09]Write to MH i2c: E2 08 00 C2 21 80 11 00 00 00 00 00 00 5D [13:44:09]Write i2c OK [13:44:09]MH_I2C_Read... [13:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:09]Read from MH i2c: E2 [13:44:09]MH_I2C_Read... [13:44:09]Read from MH i2c: E2 17 00 [13:44:09]MH_I2C_Read... [13:44:09]Read from MH i2c: E2 17 00 C2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [13:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:44:09]wFMCommunicate OK [13:44:09]requested_item fd.num is exist - process it [13:44:09]SAM_PROTO_GetFieldsCounters [13:44:09]wFMCommunicate request_size=4 [13:44:09]MH_SAM_APDU [13:44:09]CAPDU: 80 13 00 00 [13:44:09]Write to MH i2c: E2 08 00 C3 21 80 13 00 00 00 00 00 00 60 [13:44:09]Write i2c OK [13:44:09]MH_I2C_Read... [13:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:09]Read from MH i2c: E2 [13:44:09]MH_I2C_Read... [13:44:09]Read from MH i2c: E2 62 00 [13:44:09]MH_I2C_Read... [13:44:09]Read from MH i2c: E2 62 00 C3 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [13:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:09]wFMCommunicate OK [13:44:09]SAM_PROTO_GetFieldsCounters done [13:44:09]requested_item shift.num is exist - process it [13:44:09]requested_item shift.opened is exist - process it [13:44:09]req_shift_opened [13:44:09]FM_GetShiftState [13:44:09]SAM_PROTO_GetShiftState [13:44:09]wFMCommunicate request_size=4 [13:44:09]MH_SAM_APDU [13:44:09]CAPDU: 80 13 01 00 [13:44:09]Write to MH i2c: E2 08 00 C4 21 80 13 01 00 00 00 00 00 62 [13:44:09]Write i2c OK [13:44:09]MH_I2C_Read... [13:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:09]Read from MH i2c: E2 [13:44:09]MH_I2C_Read... [13:44:09]Read from MH i2c: E2 0E 00 [13:44:09]MH_I2C_Read... [13:44:09]Read from MH i2c: E2 0E 00 C4 21 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AC [13:44:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:44:09]wFMCommunicate OK [13:44:09]SAM_PROTO_GetShiftState done [13:44:09]FM_GetShiftState done [13:44:09]req_shift_opened done [13:44:09]requested_item shift.open_date is exist - process it [13:44:09]req_shift_open_date [13:44:09]req_shift_open_date done [13:44:09]produce_requested_data done [13:44:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164234,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:44:09]process_action_free close_receipt [13:44:09]json_value_free [13:44:09]json_value_free done [13:44:09]process_json_proto returns [13:44:09]Send response to host [13:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164234,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:44:09]free response buf [13:44:09]execute_script done [13:44:09]execute_script returns [13:44:09]free content buf [13:44:09]Sock 7.Close socket [13:44:09]Sock 7.Thread stoped [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]accept exits with 9 [13:45:03]New connection [13:45:03]New thread 3066850660 created [13:45:03]Thread 3066707300 joined [13:45:03]Waiting for new connection... [13:45:03] Sock 9.Parse request [13:45:03]Sock 9.Check first char [13:45:03]Sock 9.First char is OK [13:45:03]request: POST /json_proto HTTP/1.0 [13:45:03]Method: POST [13:45:03]URL: /json_proto [13:45:03]Method is POST - this is cgi request [13:45:03]url: /json_proto [13:45:03]query_string will be loaded in cgi processing [13:45:03]execute_cgi json_proto POST (null) [13:45:03]execute_cgi path=json_proto method=POST [13:45:03]POST find Content-Length [13:45:03]Host: 172.17.56.4:8080 [13:45:03]Content-Length: 677 [13:45:03]Content-Type: application/json [13:45:03] [13:45:03]POST finish read [13:45:03]Found Content-Length = 677 [13:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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:45:03]execute_script... [13: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)458318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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:45:03]POST & json_proto [13:45:03]process_json_proto [13:45:03]json parsed OK: [13:45:03]protocol is kg_v1.0 [13:45:03]action value=close_receipt [13:45:03]process_action close_receipt [13:45:03]cmd_close_receipt [13:45:03]MH_GetDate [13:45:03]Write to MH i2c: F0 00 00 C5 21 D5 [13:45:03]Write i2c OK [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: F0 [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: F0 09 00 [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: F0 09 00 C5 21 00 60 33 91 66 C9 DC B2 64 23 [13:45:03]GetLastDocTimeStamp 1720791847 [13:45:03]current date 1720791904 [13:45:03]FM_GetShiftState [13:45:03]SAM_PROTO_GetShiftState [13:45:03]wFMCommunicate request_size=4 [13:45:03]MH_SAM_APDU [13:45:03]CAPDU: 80 13 01 00 [13:45:03]Write to MH i2c: E2 08 00 C6 21 80 13 01 00 00 00 00 00 64 [13:45:03]Write i2c OK [13:45:03]MH_I2C_Read... [13:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:03]Read from MH i2c: E2 [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: E2 0E 00 [13:45:03]MH_I2C_Read... [13:45:03]Read from MH i2c: E2 0E 00 C6 21 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AE [13:45:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:45:03]wFMCommunicate OK [13:45:03]SAM_PROTO_GetShiftState done [13:45:03]FM_GetShiftState done [13:45:03]opened in 1720744654 [13:45:03]opened+sec_in_day 1720831054 [13:45:03]quantity*price = 10001 [13:45:03]sum+1 = 10003 [13:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 156 12.07.2024 13:45 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164235 ФПД: 147808876526050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T134504&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164235&fm=147808876526050&tin=02508201610067®Number=0000000000090829&sum=10000 [13:45:04]StoreToDocumentArchive [13:45:04]shift 445 fd 164235 [13:45:04]save to /storage/0445/doc_00164235 [13:45:04]save last doc name /storage/0445/doc_00164235 to /storage/kkm_last_doc_name [13:45:04]save OK [13:45:04]Clear old archive folders... [13:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:04]tlvbuf is 00A7E0A0 [13:45:04]SAM_PROTO_ClearQueue [13:45:04]wFMCommunicate request_size=4 [13:45:04]MH_SAM_APDU [13:45:04]CAPDU: 80 09 00 00 [13:45:04]Write to MH i2c: E2 08 00 D3 21 80 09 00 00 00 00 00 00 66 [13:45:04]Write i2c OK [13:45:04]MH_I2C_Read... [13:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:04]Read from MH i2c: E2 [13:45:04]MH_I2C_Read... [13:45:04]Read from MH i2c: E2 03 00 [13:45:04]MH_I2C_Read... [13:45:04]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [13:45:04]RAPDU: 90 00 [13:45:04]wFMCommunicate OK [13:45:04]SAM_PROTO_ClearQueue done [13:45:04]KKMCreateOFDPacket [13:45:04]OFDProtocolAddRootSTLVToBuf [13:45:04]FM_MakeSignedData [13:45:04]FM_MakeSignedData [13:45:04]SAM_PROTO_SignData [13:45:04]wFMCommunicate request_size=4 [13:45:04]MH_SAM_APDU [13:45:04]CAPDU: 80 0D 01 02 [13:45:04]Write to MH i2c: E2 08 00 D4 21 80 0D 01 02 00 00 00 00 6E [13:45:04]Write i2c OK [13:45:04]MH_I2C_Read... [13:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:04]Read from MH i2c: E2 [13:45:04]MH_I2C_Read... [13:45:04]Read from MH i2c: E2 03 00 [13:45:04]MH_I2C_Read... [13:45:04]Read from MH i2c: E2 03 00 D4 21 00 90 00 69 [13:45:04]RAPDU: 90 00 [13:45:04]wFMCommunicate OK [13:45:04]wFMCommunicate request_size=255 [13:45:04]MH_SAM_APDU [13: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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 60 33 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 81 02 00 35 04 06 00 86 [13:45:04]Write to MH i2c: E2 02 01 D5 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 60 33 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 81 02 00 35 04 06 00 86 00 00 E1 [13:45:04]Write i2c OK [13:45:04]MH_I2C_Read... [13:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:04]Read from MH i2c: E2 [13:45:04]MH_I2C_Read... [13:45:04]Read from MH i2c: E2 03 00 [13:45:04]MH_I2C_Read... [13:45:04]Read from MH i2c: E2 03 00 D5 21 00 90 00 6A [13:45:04]RAPDU: 90 00 [13:45:04]wFMCommunicate OK [13:45:04]wFMCommunicate request_size=10 [13:45:04]MH_SAM_APDU [13:45:04]CAPDU: 80 0D 02 02 05 6E 6F 94 79 E2 [13:45:04]Write to MH i2c: E2 0D 00 D6 21 80 0D 02 02 05 00 6E 6F 94 79 E2 00 00 47 [13:45:04]Write i2c OK [13:45:04]MH_I2C_Read... [13:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:04]Read from MH i2c: E2 [13:45:04]MH_I2C_Read... [13:45:04]Read from MH i2c: E2 03 00 [13:45:04]MH_I2C_Read... [13:45:04]Read from MH i2c: E2 03 00 D6 21 00 90 00 6B [13:45:04]RAPDU: 90 00 [13:45:04]wFMCommunicate OK [13:45:04]wFMCommunicate request_size=4 [13:45:04]MH_SAM_APDU [13:45:04]CAPDU: 80 0D 03 02 [13:45:04]Write to MH i2c: E2 08 00 D7 21 80 0D 03 02 00 00 00 00 73 [13:45:04]Write i2c OK [13:45:04]MH_I2C_Read... [13:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:05]Read from MH i2c: E2 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 0B 00 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 0B 00 D7 21 00 DC 7F E6 DF 9A 3B F8 2E 90 00 8F [13:45:05]RAPDU: DC 7F E6 DF 9A 3B F8 2E 90 00 [13:45:05]wFMCommunicate OK [13:45:05]SAM_PROTO_SignData done [13:45:05]FM_MakeSignedData done [13:45:05]CreateOFDProtocolMessage [13:45:05]wFMCommunicate request_size=4 [13:45:05]MH_SAM_APDU [13:45:05]CAPDU: 80 11 00 00 [13:45:05]Write to MH i2c: E2 08 00 D8 21 80 11 00 00 00 00 00 00 73 [13:45:05]Write i2c OK [13:45:05]MH_I2C_Read... [13:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:05]Read from MH i2c: E2 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 17 00 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: E2 17 00 D8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [13:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:45:05]wFMCommunicate OK [13:45:05]CreateOFDProtocolMessage done [13:45:05]OFDSenderStorePacket 164235 [13:45:05]StoreOFDPacket docnum=164235 [13:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 50 B4 07 01 D9 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 60 33 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 81 02 00 35 04 06 00 86 6E 6F 94 79 E2 DC 7F E6 DF 9A 3B F8 2E [13:45:05]CheckFolder [13:45:05]dirname=/storage/ofd_packets [13:45:05]CheckFolder done [13:45:05]ProducePacketName [13:45:05]name=ofd_packets/00164235 [13:45:05]NVStorageSaveData ofd_packets/00164235 [13:45:05]File name is /storage/ofd_packets/00164235 [13:45:05]Write 301 bytes [13:45:05]NVStorageSaveData done [13:45:05]OFDSenderStorePacket done [13:45:05]KKMCreateOFDPacket done [13:45:05]NVStorageSaveData kkm_last_timestamp [13:45:05]File name is /storage/kkm_last_timestamp [13:45:05]Write 4 bytes [13:45:05]NVStorageSaveData done [13:45:05]ExternCall_PrintAddStr [13:45:05]wPrintStart [13:45:05]Write to MH i2c: 01 00 00 D9 21 FA [13:45:05]Write i2c OK [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: 01 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: 01 07 00 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: 01 07 00 D9 21 00 00 00 00 00 FF 0F 0F [13:45:05]RasterBufferAndPrint [13:45:05]line Счет N : (1)458318 [13:45:05]line ИНН: 02508201610067 [13:45:05]line Контрольно-Кассовый Чек [13:45:05]line ПРОДАЖА [13:45:05]line ТРК (МРК, ГНК) : 22 [13:45:05]line Товар: 2710124130 [13:45:05]line Аи-92-К-5 [13:45:05]line 1.520 * 65.80 [13:45:05]line = 100.02 [13:45:05]line НДС 12% НСП 1% [13:45:05]line > о реализуемом товаре [13:45:05]line ОКРУГЛЕНИЕ: -0.02 [13:45:05]line ИТОГО: 100.00 [13:45:05]line Внесено: 100.00 [13:45:05]line СДАЧА: 0.00 [13:45:05]line НСП 1% : 0.88 [13:45:05]line НДС 12% : 10.62 [13:45:05]line Наличными: 100.00 [13:45:05]line Безнал.: 0.00 [13:45:05]line Место: АЗС № 72 "Партнер Нефть" [13:45:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:45:05]line СНО: Общий режим [13:45:05]line Чек 156 12.07.2024 13:45 [13:45:05]line Смена: 445 ФФД: 1.0 [13:45:05]line ЗНМ: 0300000160 [13:45:05]line РНМ: 0000000000090829 [13:45:05]line Версия ККМ: 001 [13:45:05]line ФМ: 0000000000874718 [13:45:05]line ФД: 164235 [13:45:05]line ФПД: 147808876526050 [13:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T134504&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164235&fm=147808876526050&tin=02508201610067®Number=0000000000090829&sum=10000 [13:45:05]written 0, free lines is 4095 [13:45:05]OFD Sender: Processing packet 164235 [packets to send 104, broken 103] [13:45:05]ProducePacketName [13:45:05]name=ofd_packets/00164235 [13:45:05]OFD Sender: To server: pG, [13:45:05]CommunicateWithHost lk.salyk.kg:30040 [13:45:05]ConnectInit lk.salyk.kg [13:45:05]Connected sock=10 [13: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 34 37 31 38 0F 01 00 00 50 B4 07 01 D9 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 60 33 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 81 02 00 35 04 06 00 86 6E 6F 94 79 E2 DC 7F E6 DF 9A 3B F8 2E [13:45:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 22 D7 47 00 22 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 34 37 31 38 10 04 04 00 8B 81 02 00 F4 03 04 00 F5 D9 90 66 B6 04 01 00 00 C5 89 0D 9D EE 98 0F 63 [13:45:05]CommunicateWithHost err = 0 [13:45:05]CheckOFDResponse [13:45:05]1017 (14) - 77093643461234 [13:45:05]1041 (16) - 0000000000874718 [13:45:05]1040 (4) - 164235 [13:45:05]1012 (4) - 12.07.2024 07:23 [13:45:05]1206 (1) - 0 [13:45:05]OFD Sender: Remove packet 164235 [13:45:05]ProducePacketName [13:45:05]name=ofd_packets/00164235 [13:45:05]NVStorageDeleteData [13:45:05]Write to MH i2c: 01 00 00 03 22 25 [13:45:05]Write i2c OK [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: 01 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: 01 07 00 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: 01 07 00 03 22 00 00 00 00 00 F5 0C 2D [13:45:05]RasterBufferAndPrint [13:45:05]line [13:45:05]line [13:45:05]line [13:45:05]line [13:45:05]line [13:45:05]written 0, free lines is 3325 [13:45:05]MH_Cut [13:45:05]Write to MH i2c: D1 01 00 0A 22 01 FE [13:45:05]Write i2c OK [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: D1 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: D1 01 00 [13:45:05]MH_I2C_Read... [13:45:05]Read from MH i2c: D1 01 00 0A 22 00 FD [13:45:05]Write to MH i2c: 01 00 00 0B 22 2D [13:45:05]Write i2c OK [13:45:05]MH_I2C_Read... [13:45:06]OFD Sender: No OFD packet to send [13:45:06]*** Cut start [13:45:06]*** Partial cut [13:45:06]*** CUTSNS_PIN = 1 [13:45:06]*** CUTSNS_PIN = 0 [13:45:06]*** Brake cut motor [13:45:07]Read from MH i2c: 01 [13:45:07]MH_I2C_Read... [13:45:07]*** Stop cut motor [13:45:07]*** Cut end [13:45:07]Read from MH i2c: 01 07 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: 01 07 00 0B 22 00 00 00 00 00 FF 0F 42 [13:45:07]process_action close_receipt done [13:45:07]requested_data is exist [13:45:07]produce_requested_data [13:45:07]requested_item fm.sn is exist - process it [13:45:07]wFMCommunicate request_size=4 [13:45:07]MH_SAM_APDU [13:45:07]CAPDU: 80 11 00 00 [13:45:07]Write to MH i2c: E2 08 00 0C 22 80 11 00 00 00 00 00 00 A8 [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 17 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 17 00 0C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [13:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:45:07]wFMCommunicate OK [13:45:07]requested_item fd.num is exist - process it [13:45:07]SAM_PROTO_GetFieldsCounters [13:45:07]wFMCommunicate request_size=4 [13:45:07]MH_SAM_APDU [13:45:07]CAPDU: 80 13 00 00 [13:45:07]Write to MH i2c: E2 08 00 0D 22 80 13 00 00 00 00 00 00 AB [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 62 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 62 00 0D 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:07]wFMCommunicate OK [13:45:07]SAM_PROTO_GetFieldsCounters done [13:45:07]requested_item shift.num is exist - process it [13:45:07]requested_item shift.opened is exist - process it [13:45:07]req_shift_opened [13:45:07]FM_GetShiftState [13:45:07]SAM_PROTO_GetShiftState [13:45:07]wFMCommunicate request_size=4 [13:45:07]MH_SAM_APDU [13:45:07]CAPDU: 80 13 01 00 [13:45:07]Write to MH i2c: E2 08 00 0E 22 80 13 01 00 00 00 00 00 AD [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 0E 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 0E 00 0E 22 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F7 [13:45:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:45:07]wFMCommunicate OK [13:45:07]SAM_PROTO_GetShiftState done [13:45:07]FM_GetShiftState done [13:45:07]req_shift_opened done [13:45:07]requested_item shift.open_date is exist - process it [13:45:07]req_shift_open_date [13:45:07]req_shift_open_date done [13:45:07]produce_requested_data done [13:45:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164235,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:45:07]process_action_free close_receipt [13:45:07]json_value_free [13:45:07]json_value_free done [13:45:07]process_json_proto returns [13:45:07]Send response to host [13:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164235,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:45:07]free response buf [13:45:07]execute_script done [13:45:07]execute_script returns [13:45:07]free content buf [13:45:07]Sock 9.Close socket [13:45:07]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:14]accept exits with 7 [13:52:14]New connection [13:52:14]New thread 3066707300 created [13:52:14]Thread 3066850660 joined [13:52:14]Waiting for new connection... [13:52:14] Sock 7.Parse request [13:52:14]Sock 7.Check first char [13:52:14]Sock 7.First char is OK [13:52:14]request: POST /json_proto HTTP/1.0 [13:52:14]Method: POST [13:52:14]URL: /json_proto [13:52:14]Method is POST - this is cgi request [13:52:14]url: /json_proto [13:52:14]query_string will be loaded in cgi processing [13:52:14]execute_cgi json_proto POST (null) [13:52:14]execute_cgi path=json_proto method=POST [13:52:14]POST find Content-Length [13:52:14]Host: 172.17.56.4:8080 [13:52:14]Content-Length: 677 [13:52:14]Content-Type: application/json [13:52:14] [13:52:14]POST finish read [13:52:14]Found Content-Length = 677 [13:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:14]execute_script... [13:52: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)458319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:14]POST & json_proto [13:52:14]process_json_proto [13:52:14]json parsed OK: [13:52:14]protocol is kg_v1.0 [13:52:14]action value=close_receipt [13:52:14]process_action close_receipt [13:52:14]cmd_close_receipt [13:52:14]MH_GetDate [13:52:14]Write to MH i2c: F0 00 00 0F 22 20 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: F0 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: F0 09 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: F0 09 00 0F 22 00 10 35 91 66 C9 DC B2 64 20 [13:52:14]GetLastDocTimeStamp 1720791904 [13:52:14]current date 1720792336 [13:52:14]FM_GetShiftState [13:52:14]SAM_PROTO_GetShiftState [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 13 01 00 [13:52:14]Write to MH i2c: E2 08 00 10 22 80 13 01 00 00 00 00 00 AF [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0E 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0E 00 10 22 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F9 [13:52:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:52:14]wFMCommunicate OK [13:52:14]SAM_PROTO_GetShiftState done [13:52:14]FM_GetShiftState done [13:52:14]opened in 1720744654 [13:52:14]opened+sec_in_day 1720831054 [13:52:14]quantity*price = 60009 [13:52:14]sum+1 = 60011 [13:52:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 157 12.07.2024 13:52 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164236 ФПД: 201394040587397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T135216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164236&fm=201394040587397&tin=02508201610067®Number=0000000000090829&sum=60000 [13:52:15]StoreToDocumentArchive [13:52:15]shift 445 fd 164236 [13:52:15]save to /storage/0445/doc_00164236 [13:52:15]save last doc name /storage/0445/doc_00164236 to /storage/kkm_last_doc_name [13:52:15]save OK [13:52:15]Clear old archive folders... [13:52:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:15]tlvbuf is 00A8E3C0 [13:52:15]SAM_PROTO_ClearQueue [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 09 00 00 [13:52:15]Write to MH i2c: E2 08 00 1D 22 80 09 00 00 00 00 00 00 B1 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 1D 22 00 90 00 B3 [13:52:15]RAPDU: 90 00 [13:52:15]wFMCommunicate OK [13:52:15]SAM_PROTO_ClearQueue done [13:52:15]KKMCreateOFDPacket [13:52:15]OFDProtocolAddRootSTLVToBuf [13:52:15]FM_MakeSignedData [13:52:15]FM_MakeSignedData [13:52:15]SAM_PROTO_SignData [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 0D 01 02 [13:52:15]Write to MH i2c: E2 08 00 1E 22 80 0D 01 02 00 00 00 00 B9 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 1E 22 00 90 00 B4 [13:52:15]RAPDU: 90 00 [13:52:15]wFMCommunicate OK [13:52:15]wFMCommunicate request_size=255 [13:52:15]MH_SAM_APDU [13:52: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 00 00 00 F4 03 04 00 10 35 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 81 02 00 35 04 06 00 B7 [13:52:15]Write to MH i2c: E2 02 01 1F 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 00 00 00 F4 03 04 00 10 35 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 81 02 00 35 04 06 00 B7 00 00 B0 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 1F 22 00 90 00 B5 [13:52:16]RAPDU: 90 00 [13:52:16]wFMCommunicate OK [13:52:16]wFMCommunicate request_size=10 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 0D 02 02 05 2A B4 3F C4 85 [13:52:16]Write to MH i2c: E2 0D 00 20 22 80 0D 02 02 05 00 2A B4 3F C4 85 00 00 2C [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 20 22 00 90 00 B6 [13:52:16]RAPDU: 90 00 [13:52:16]wFMCommunicate OK [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 0D 03 02 [13:52:16]Write to MH i2c: E2 08 00 21 22 80 0D 03 02 00 00 00 00 BE [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 0B 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 0B 00 21 22 00 57 02 84 CC 3D A1 B3 1F 90 00 18 [13:52:16]RAPDU: 57 02 84 CC 3D A1 B3 1F 90 00 [13:52:16]wFMCommunicate OK [13:52:16]SAM_PROTO_SignData done [13:52:16]FM_MakeSignedData done [13:52:16]CreateOFDProtocolMessage [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 11 00 00 [13:52:16]Write to MH i2c: E2 08 00 22 22 80 11 00 00 00 00 00 00 BE [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 17 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 17 00 22 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [13:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:52:16]wFMCommunicate OK [13:52:16]CreateOFDProtocolMessage done [13:52:16]OFDSenderStorePacket 164236 [13:52:16]StoreOFDPacket docnum=164236 [13:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 FB 07 01 14 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 00 00 00 F4 03 04 00 10 35 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 81 02 00 35 04 06 00 B7 2A B4 3F C4 85 57 02 84 CC 3D A1 B3 1F [13:52:16]CheckFolder [13:52:16]dirname=/storage/ofd_packets [13:52:16]CheckFolder done [13:52:16]ProducePacketName [13:52:16]name=ofd_packets/00164236 [13:52:16]NVStorageSaveData ofd_packets/00164236 [13:52:16]File name is /storage/ofd_packets/00164236 [13:52:16]Write 301 bytes [13:52:16]NVStorageSaveData done [13:52:16]OFDSenderStorePacket done [13:52:16]KKMCreateOFDPacket done [13:52:16]NVStorageSaveData kkm_last_timestamp [13:52:16]File name is /storage/kkm_last_timestamp [13:52:16]Write 4 bytes [13:52:16]NVStorageSaveData done [13:52:16]OFD Sender: Processing packet 164236 [packets to send 104, broken 103] [13:52:16]ProducePacketName [13:52:16]name=ofd_packets/00164236 [13:52:16]OFD Sender: To server: pG, [13:52:16]CommunicateWithHost lk.salyk.kg:30040 [13:52:16]ConnectInit lk.salyk.kg [13:52:16]ExternCall_PrintAddStr [13:52:16]wPrintStart [13:52:16]Write to MH i2c: 01 00 00 23 22 45 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 23 22 00 00 00 00 00 FF 0F 5A [13:52:16]RasterBufferAndPrint [13:52:16]line Счет N : (1)458319 [13:52:16]line ИНН: 02508201610067 [13:52:16]line Контрольно-Кассовый Чек [13:52:16]line ПРОДАЖА [13:52:16]line ТРК (МРК, ГНК) : 12 [13:52:16]line Товар: 2710124130 [13:52:16]line Аи-92-К-5 [13:52:16]line 9.120 * 65.80 [13:52:16]line = 600.10 [13:52:16]line НДС 12% НСП 1% [13:52:16]line > о реализуемом товаре [13:52:16]line ОКРУГЛЕНИЕ: -0.10 [13:52:16]line ИТОГО: 600.00 [13:52:16]line Внесено: 600.00 [13:52:16]line СДАЧА: 0.00 [13:52:16]line НСП 1% : 5.31 [13:52:16]line НДС 12% : 63.73 [13:52:16]line Наличными: 600.00 [13:52:16]line Безнал.: 0.00 [13:52:16]line Место: АЗС № 72 "Партнер Нефть" [13:52:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:52:16]line СНО: Общий режим [13:52:16]line Чек 157 12.07.2024 13:52 [13:52:16]line Смена: 445 ФФД: 1.0 [13:52:16]line ЗНМ: 0300000160 [13:52:16]line РНМ: 0000000000090829 [13:52:16]line Версия ККМ: 001 [13:52:16]line ФМ: 0000000000874718 [13:52:16]line ФД: 164236 [13:52:16]line ФПД: 201394040587397 [13:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T135216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164236&fm=201394040587397&tin=02508201610067®Number=0000000000090829&sum=60000 [13:52:16]Connected sock=11 [13:52:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 FB 07 01 14 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 A0 23 00 00 00 00 00 written 0, free lines is 4095 [13:52:16]37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 00 00 00 F4 03 04 00 10 35 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 81 02 00 35 04 06 00 B7 2A B4 3F C4 85 57 02 84 CC 3D A1 B3 1F [13:52:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B2 C0 47 00 63 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 34 37 31 38 10 04 04 00 8C 81 02 00 F4 03 04 00 A4 DB 90 66 B6 04 01 00 00 B8 FB 73 D0 41 AC EC 7B [13:52:16]CommunicateWithHost err = 0 [13:52:16]CheckOFDResponse [13:52:16]1017 (14) - 77093643461234 [13:52:16]1041 (16) - 0000000000874718 [13:52:16]1040 (4) - 164236 [13:52:16]1012 (4) - 12.07.2024 07:30 [13:52:16]1206 (1) - 0 [13:52:16]OFD Sender: Remove packet 164236 [13:52:16]ProducePacketName [13:52:16]name=ofd_packets/00164236 [13:52:16]NVStorageDeleteData [13:52:16]Write to MH i2c: 01 00 00 4D 22 6F [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 4D 22 00 00 00 00 00 FE 0C 80 [13:52:16]RasterBufferAndPrint [13:52:16]line [13:52:16]line [13:52:16]line [13:52:16]line [13:52:16]line [13:52:16]written 0, free lines is 3332 [13:52:16]MH_Cut [13:52:16]Write to MH i2c: D1 01 00 54 22 01 48 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: D1 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: D1 01 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: D1 01 00 54 22 00 47 [13:52:16]Write to MH i2c: 01 00 00 55 22 77 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:17]OFD Sender: No OFD packet to send [13:52:17]*** Cut start [13:52:17]*** Partial cut [13:52:17]*** CUTSNS_PIN = 1 [13:52:17]*** CUTSNS_PIN = 0 [13:52:17]*** Brake cut motor [13:52:18]Read from MH i2c: 01 [13:52:18]MH_I2C_Read... [13:52:18]*** Stop cut motor [13:52:18]*** Cut end [13:52:18]Read from MH i2c: 01 07 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: 01 07 00 55 22 00 00 00 00 00 FF 0F 8C [13:52:18]process_action close_receipt done [13:52:18]requested_data is exist [13:52:18]produce_requested_data [13:52:18]requested_item fm.sn is exist - process it [13:52:18]wFMCommunicate request_size=4 [13:52:18]MH_SAM_APDU [13:52:18]CAPDU: 80 11 00 00 [13:52:18]Write to MH i2c: E2 08 00 56 22 80 11 00 00 00 00 00 00 F2 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:18]Read from MH i2c: E2 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 17 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 17 00 56 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 48 [13:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:52:18]wFMCommunicate OK [13:52:18]requested_item fd.num is exist - process it [13:52:18]SAM_PROTO_GetFieldsCounters [13:52:18]wFMCommunicate request_size=4 [13:52:18]MH_SAM_APDU [13:52:18]CAPDU: 80 13 00 00 [13:52:18]Write to MH i2c: E2 08 00 57 22 80 13 00 00 00 00 00 00 F5 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:18]Read from MH i2c: E2 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 62 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 62 00 57 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [13:52: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:18]wFMCommunicate OK [13:52:18]SAM_PROTO_GetFieldsCounters done [13:52:18]requested_item shift.num is exist - process it [13:52:18]requested_item shift.opened is exist - process it [13:52:18]req_shift_opened [13:52:18]FM_GetShiftState [13:52:18]SAM_PROTO_GetShiftState [13:52:18]wFMCommunicate request_size=4 [13:52:18]MH_SAM_APDU [13:52:18]CAPDU: 80 13 01 00 [13:52:18]Write to MH i2c: E2 08 00 58 22 80 13 01 00 00 00 00 00 F7 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:18]Read from MH i2c: E2 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 0E 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 0E 00 58 22 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 41 [13:52:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:52:18]wFMCommunicate OK [13:52:18]SAM_PROTO_GetShiftState done [13:52:18]FM_GetShiftState done [13:52:18]req_shift_opened done [13:52:18]requested_item shift.open_date is exist - process it [13:52:18]req_shift_open_date [13:52:18]req_shift_open_date done [13:52:18]produce_requested_data done [13:52:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164236,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:52:18]process_action_free close_receipt [13:52:18]json_value_free [13:52:18]json_value_free done [13:52:18]process_json_proto returns [13:52:18]Send response to host [13:52:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164236,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:52:18]free response buf [13:52:18]execute_script done [13:52:18]execute_script returns [13:52:18]free content buf [13:52:18]Sock 7.Close socket [13:52:18]Sock 7.Thread stoped [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:08]accept exits with 9 [13:54:08]New connection [13:54:08]New thread 3066850660 created [13:54:08]Thread 3066707300 joined [13:54:08]Waiting for new connection... [13:54:08] Sock 9.Parse request [13:54:08]Sock 9.Check first char [13:54:08]Sock 9.First char is OK [13:54:08]request: POST /json_proto HTTP/1.0 [13:54:08]Method: POST [13:54:08]URL: /json_proto [13:54:08]Method is POST - this is cgi request [13:54:08]url: /json_proto [13:54:08]query_string will be loaded in cgi processing [13:54:08]execute_cgi json_proto POST (null) [13:54:08]execute_cgi path=json_proto method=POST [13:54:08]POST find Content-Length [13:54:08]Host: 172.17.56.4:8080 [13:54:08]Content-Length: 793 [13:54:08]Content-Type: application/json [13:54:08] [13:54:08]POST finish read [13:54:08]Found Content-Length = 793 [13:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:08]execute_script... [13:54: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)458320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:08]POST & json_proto [13:54:08]process_json_proto [13:54:08]json parsed OK: [13:54:08]protocol is kg_v1.0 [13:54:08]action value=close_receipt [13:54:08]process_action close_receipt [13:54:08]cmd_close_receipt [13:54:08]MH_GetDate [13:54:08]Write to MH i2c: F0 00 00 59 22 6A [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: F0 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: F0 09 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: F0 09 00 59 22 00 82 35 91 66 C9 DC B2 64 DC [13:54:08]GetLastDocTimeStamp 1720792336 [13:54:08]current date 1720792450 [13:54:08]FM_GetShiftState [13:54:08]SAM_PROTO_GetShiftState [13:54:08]wFMCommunicate request_size=4 [13:54:08]MH_SAM_APDU [13:54:08]CAPDU: 80 13 01 00 [13:54:08]Write to MH i2c: E2 08 00 5A 22 80 13 01 00 00 00 00 00 F9 [13:54:08]Write i2c OK [13:54:08]MH_I2C_Read... [13:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:08]Read from MH i2c: E2 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 0E 00 [13:54:08]MH_I2C_Read... [13:54:08]Read from MH i2c: E2 0E 00 5A 22 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 43 [13:54:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:54:08]wFMCommunicate OK [13:54:08]SAM_PROTO_GetShiftState done [13:54:08]FM_GetShiftState done [13:54:08]opened in 1720744654 [13:54:08]opened+sec_in_day 1720831054 [13:54:08]quantity*price = 100047 [13:54:08]sum+1 = 100048 [13:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 158 12.07.2024 13:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164237 ФПД: 245697644463605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T135410&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164237&fm=245697644463605&tin=02508201610067®Number=0000000000090829&sum=100047 [13:54:10]StoreToDocumentArchive [13:54:10]shift 445 fd 164237 [13:54:10]save to /storage/0445/doc_00164237 [13:54:10]save last doc name /storage/0445/doc_00164237 to /storage/kkm_last_doc_name [13:54:10]save OK [13:54:10]Clear old archive folders... [13:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:10]tlvbuf is 00AA9210 [13:54:10]SAM_PROTO_ClearQueue [13:54:10]wFMCommunicate request_size=4 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 09 00 00 [13:54:10]Write to MH i2c: E2 08 00 67 22 80 09 00 00 00 00 00 00 FB [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 03 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 03 00 67 22 00 90 00 FD [13:54:10]RAPDU: 90 00 [13:54:10]wFMCommunicate OK [13:54:10]SAM_PROTO_ClearQueue done [13:54:10]KKMCreateOFDPacket [13:54:10]OFDProtocolAddRootSTLVToBuf [13:54:10]FM_MakeSignedData [13:54:10]FM_MakeSignedData [13:54:10]SAM_PROTO_SignData [13:54:10]wFMCommunicate request_size=4 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 0D 01 02 [13:54:10]Write to MH i2c: E2 08 00 68 22 80 0D 01 02 00 00 00 00 03 [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 03 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 03 00 68 22 00 90 00 FE [13:54:10]RAPDU: 90 00 [13:54:10]wFMCommunicate OK [13:54:10]wFMCommunicate request_size=255 [13:54:10]MH_SAM_APDU [13:54: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 82 35 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 81 02 00 35 04 06 00 DF [13:54:10]Write to MH i2c: E2 02 01 69 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 82 35 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 81 02 00 35 04 06 00 DF 00 00 E9 [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 03 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 03 00 69 22 00 90 00 FF [13:54:10]RAPDU: 90 00 [13:54:10]wFMCommunicate OK [13:54:10]wFMCommunicate request_size=10 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 0D 02 02 05 75 F0 D2 05 F5 [13:54:10]Write to MH i2c: E2 0D 00 6A 22 80 0D 02 02 05 00 75 F0 D2 05 F5 00 00 41 [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 03 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 03 00 6A 22 00 90 00 00 [13:54:10]RAPDU: 90 00 [13:54:10]wFMCommunicate OK [13:54:10]wFMCommunicate request_size=4 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 0D 03 02 [13:54:10]Write to MH i2c: E2 08 00 6B 22 80 0D 03 02 00 00 00 00 08 [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 0B 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 0B 00 6B 22 00 C0 9C 21 90 8C 4F 6E CA 90 00 29 [13:54:10]RAPDU: C0 9C 21 90 8C 4F 6E CA 90 00 [13:54:10]wFMCommunicate OK [13:54:10]SAM_PROTO_SignData done [13:54:10]FM_MakeSignedData done [13:54:10]CreateOFDProtocolMessage [13:54:10]wFMCommunicate request_size=4 [13:54:10]MH_SAM_APDU [13:54:10]CAPDU: 80 11 00 00 [13:54:10]Write to MH i2c: E2 08 00 6C 22 80 11 00 00 00 00 00 00 08 [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:10]Read from MH i2c: E2 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 17 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: E2 17 00 6C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [13:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:54:10]wFMCommunicate OK [13:54:10]CreateOFDProtocolMessage done [13:54:10]OFDSenderStorePacket 164237 [13:54:10]StoreOFDPacket docnum=164237 [13:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB 48 07 01 3F A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 82 35 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 81 02 00 35 04 06 00 DF 75 F0 D2 05 F5 C0 9C 21 90 8C 4F 6E CA [13:54:10]CheckFolder [13:54:10]dirname=/storage/ofd_packets [13:54:10]CheckFolder done [13:54:10]ProducePacketName [13:54:10]name=ofd_packets/00164237 [13:54:10]NVStorageSaveData ofd_packets/00164237 [13:54:10]File name is /storage/ofd_packets/00164237 [13:54:10]Write 301 bytes [13:54:10]NVStorageSaveData done [13:54:10]OFDSenderStorePacket done [13:54:10]KKMCreateOFDPacket done [13:54:10]NVStorageSaveData kkm_last_timestamp [13:54:10]File name is /storage/kkm_last_timestamp [13:54:10]Write 4 bytes [13:54:10]NVStorageSaveData done [13:54:10]ExternCall_PrintAddStr [13:54:10]wPrintStart [13:54:10]Write to MH i2c: 01 00 00 6D 22 8F [13:54:10]Write i2c OK [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: 01 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: 01 07 00 [13:54:10]MH_I2C_Read... [13:54:10]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 FF 0F A4 [13:54:10]RasterBufferAndPrint [13:54:10]line Счет N : (1)458320 [13:54:10]line ИНН: 02508201610067 [13:54:10]line Контрольно-Кассовый Чек [13:54:10]line ПРОДАЖА [13:54:10]line ТРК (МРК, ГНК) : 22 [13:54:10]line Товар: 2710124130 [13:54:10]line Аи-92-К-5 [13:54:10]line 15.340 * 65.22 [13:54:10]line = 1000.47 [13:54:10]line НДС 12% НСП 1% [13:54:10]line > о реализуемом товаре [13:54:10]line ИТОГО: 1000.47 [13:54:10]line НСП 1% : 8.85 [13:54:10]line НДС 12% : 106.24 [13:54:10]line Наличными: 0.00 [13:54:10]line Безнал.: 1000.47 [13:54:10]line Место: АЗС № 72 "Партнер Нефть" [13:54:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:54:10]line СНО: Общий режим [13:54:10]line Чек 158 12.07.2024 13:54 [13:54:10]line Смена: 445 ФФД: 1.0 [13:54:10]line ЗНМ: 0300000160 [13:54:10]line РНМ: 0000000000090829 [13:54:10]line Версия ККМ: 001 [13:54:10]line Платежная система: KICB Банк [13:54:10]line ФМ: 0000000000874718 [13:54:10]line ФД: 164237 [13:54:10]line ФПД: 245697644463605 [13:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T135410&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164237&fm=245697644463605&tin=02508201610067®Number=0000000000090829&sum=100047 [13:54:10]OFD Sender: Processing packet 164237 [packets to send 104, broken 103] [13:54:10]ProducePacketName [13:54:10]name=ofd_packets/00164237 [13:54:10]OFD Sender: To server: pG, [13:54:10]CommunicateWithHost lk.salyk.kg:30040 [13:54:10]ConnectInit lk.salyk.kg [13:54:10]written 0, free lines is 4095 [13:54:11]Connected sock=10 [13:54:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB 48 07 01 3F A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 82 35 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 81 02 00 35 04 06 00 DF 75 F0 D2 05 F5 C0 9C 21 90 8C 4F 6E CA [13:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 26 0E 47 00 3E 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 34 37 31 38 10 04 04 00 8D 81 02 00 F4 03 04 00 16 DC 90 66 B6 04 01 00 00 01 4F FD 44 96 5C 96 02 [13:54:11]CommunicateWithHost err = 0 [13:54:11]CheckOFDResponse [13:54:11]1017 (14) - 77093643461234 [13:54:11]1041 (16) - 0000000000874718 [13:54:11]1040 (4) - 164237 [13:54:11]1012 (4) - 12.07.2024 07:32 [13:54:11]1206 (1) - 0 [13:54:11]OFD Sender: Remove packet 164237 [13:54:11]ProducePacketName [13:54:11]name=ofd_packets/00164237 [13:54:11]NVStorageDeleteData [13:54:11]Write to MH i2c: 01 00 00 96 22 B8 [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: 01 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: 01 07 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: 01 07 00 96 22 00 00 00 00 00 10 0D DC [13:54:11]RasterBufferAndPrint [13:54:11]line [13:54:11]line [13:54:11]line [13:54:11]line [13:54:11]line [13:54:11]written 0, free lines is 3350 [13:54:11]MH_Cut [13:54:11]Write to MH i2c: D1 01 00 9D 22 01 91 [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: D1 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: D1 01 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: D1 01 00 9D 22 00 90 [13:54:11]Write to MH i2c: 01 00 00 9E 22 C0 [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]OFD Sender: No OFD packet to send [13:54:12]*** Cut start [13:54:12]*** Partial cut [13:54:12]*** CUTSNS_PIN = 1 [13:54:12]*** CUTSNS_PIN = 0 [13:54:12]*** Brake cut motor [13:54:12]Read from MH i2c: 01 [13:54:12]MH_I2C_Read... [13:54:12]*** Stop cut motor [13:54:12]*** Cut end [13:54:12]Read from MH i2c: 01 07 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: 01 07 00 9E 22 00 00 00 00 00 FF 0F D5 [13:54:12]process_action close_receipt done [13:54:12]requested_data is exist [13:54:12]produce_requested_data [13:54:12]requested_item fm.sn is exist - process it [13:54:12]wFMCommunicate request_size=4 [13:54:12]MH_SAM_APDU [13:54:12]CAPDU: 80 11 00 00 [13:54:12]Write to MH i2c: E2 08 00 9F 22 80 11 00 00 00 00 00 00 3B [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:12]Read from MH i2c: E2 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 17 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 17 00 9F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [13:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:54:12]wFMCommunicate OK [13:54:12]requested_item fd.num is exist - process it [13:54:12]SAM_PROTO_GetFieldsCounters [13:54:12]wFMCommunicate request_size=4 [13:54:12]MH_SAM_APDU [13:54:12]CAPDU: 80 13 00 00 [13:54:12]Write to MH i2c: E2 08 00 A0 22 80 13 00 00 00 00 00 00 3E [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:12]Read from MH i2c: E2 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 62 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 62 00 A0 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [13:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:12]wFMCommunicate OK [13:54:12]SAM_PROTO_GetFieldsCounters done [13:54:12]requested_item shift.num is exist - process it [13:54:12]requested_item shift.opened is exist - process it [13:54:12]req_shift_opened [13:54:12]FM_GetShiftState [13:54:12]SAM_PROTO_GetShiftState [13:54:12]wFMCommunicate request_size=4 [13:54:12]MH_SAM_APDU [13:54:12]CAPDU: 80 13 01 00 [13:54:12]Write to MH i2c: E2 08 00 A1 22 80 13 01 00 00 00 00 00 40 [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:12]Read from MH i2c: E2 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 0E 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 0E 00 A1 22 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8A [13:54:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [13:54:12]wFMCommunicate OK [13:54:12]SAM_PROTO_GetShiftState done [13:54:12]FM_GetShiftState done [13:54:12]req_shift_opened done [13:54:12]requested_item shift.open_date is exist - process it [13:54:12]req_shift_open_date [13:54:12]req_shift_open_date done [13:54:12]produce_requested_data done [13:54:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164237,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [13:54:12]process_action_free close_receipt [13:54:12]json_value_free [13:54:12]json_value_free done [13:54:12]process_json_proto returns [13:54:12]Send response to host [13:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164237,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [13:54:12]free response buf [13:54:12]execute_script done [13:54:12]execute_script returns [13:54:12]free content buf [13:54:12]Sock 9.Close socket [13:54:12]Sock 9.Thread stoped [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:46]accept exits with 7 [14:00:46]New connection [14:00:46]New thread 3066707300 created [14:00:46]Thread 3066850660 joined [14:00:46]Waiting for new connection... [14:00:46] Sock 7.Parse request [14:00:46]Sock 7.Check first char [14:00:46]Sock 7.First char is OK [14:00:46]request: POST /json_proto HTTP/1.0 [14:00:46]Method: POST [14:00:46]URL: /json_proto [14:00:46]Method is POST - this is cgi request [14:00:46]url: /json_proto [14:00:46]query_string will be loaded in cgi processing [14:00:46]execute_cgi json_proto POST (null) [14:00:46]execute_cgi path=json_proto method=POST [14:00:46]POST find Content-Length [14:00:46]Host: 172.17.56.4:8080 [14:00:46]Content-Length: 677 [14:00:46]Content-Type: application/json [14:00:46] [14:00:46]POST finish read [14:00:46]Found Content-Length = 677 [14:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:00:46]execute_script... [14:00: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)458321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:00:46]POST & json_proto [14:00:46]process_json_proto [14:00:46]json parsed OK: [14:00:46]protocol is kg_v1.0 [14:00:46]action value=close_receipt [14:00:46]process_action close_receipt [14:00:46]cmd_close_receipt [14:00:46]MH_GetDate [14:00:46]Write to MH i2c: F0 00 00 A2 22 B3 [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: F0 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: F0 09 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: F0 09 00 A2 22 00 0F 37 91 66 C9 DC B2 64 B4 [14:00:46]GetLastDocTimeStamp 1720792450 [14:00:46]current date 1720792847 [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 A3 22 80 13 01 00 00 00 00 00 42 [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 A3 22 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8C [14:00:46]RAPDU: 09 00 01 CE 7A 90 66 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]opened in 1720744654 [14:00:46]opened+sec_in_day 1720831054 [14:00:46]quantity*price = 40006 [14:00:46]sum+1 = 40007 [14:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 159 12.07.2024 14:00 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164238 ФПД: 42233776887293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T140047&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164238&fm=42233776887293&tin=02508201610067®Number=0000000000090829&sum=40000 [14:00:47]StoreToDocumentArchive [14:00:47]shift 445 fd 164238 [14:00:47]save to /storage/0445/doc_00164238 [14:00:47]save last doc name /storage/0445/doc_00164238 to /storage/kkm_last_doc_name [14:00:47]save OK [14:00:47]Clear old archive folders... [14:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:47]tlvbuf is 00A68C50 [14:00:47]SAM_PROTO_ClearQueue [14:00:47]wFMCommunicate request_size=4 [14:00:47]MH_SAM_APDU [14:00:47]CAPDU: 80 09 00 00 [14:00:47]Write to MH i2c: E2 08 00 B0 22 80 09 00 00 00 00 00 00 44 [14:00:47]Write i2c OK [14:00:47]MH_I2C_Read... [14:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:47]Read from MH i2c: E2 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 B0 22 00 90 00 46 [14:00:47]RAPDU: 90 00 [14:00:47]wFMCommunicate OK [14:00:47]SAM_PROTO_ClearQueue done [14:00:47]KKMCreateOFDPacket [14:00:47]OFDProtocolAddRootSTLVToBuf [14:00:47]FM_MakeSignedData [14:00:47]FM_MakeSignedData [14:00:47]SAM_PROTO_SignData [14:00:47]wFMCommunicate request_size=4 [14:00:47]MH_SAM_APDU [14:00:47]CAPDU: 80 0D 01 02 [14:00:47]Write to MH i2c: E2 08 00 B1 22 80 0D 01 02 00 00 00 00 4C [14:00:47]Write i2c OK [14:00:47]MH_I2C_Read... [14:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:47]Read from MH i2c: E2 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 B1 22 00 90 00 47 [14:00:47]RAPDU: 90 00 [14:00:47]wFMCommunicate OK [14:00:47]wFMCommunicate request_size=255 [14:00:47]MH_SAM_APDU [14:00: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 9F 00 00 00 F4 03 04 00 0F 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 81 02 00 35 04 06 00 26 [14:00:47]Write to MH i2c: E2 02 01 B2 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 9F 00 00 00 F4 03 04 00 0F 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 81 02 00 35 04 06 00 26 00 00 76 [14:00:47]Write i2c OK [14:00:47]MH_I2C_Read... [14:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:47]Read from MH i2c: E2 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 B2 22 00 90 00 48 [14:00:47]RAPDU: 90 00 [14:00:47]wFMCommunicate OK [14:00:47]wFMCommunicate request_size=10 [14:00:47]MH_SAM_APDU [14:00:47]CAPDU: 80 0D 02 02 05 69 51 44 D5 FD [14:00:47]Write to MH i2c: E2 0D 00 B3 22 80 0D 02 02 05 00 69 51 44 D5 FD 00 00 29 [14:00:47]Write i2c OK [14:00:47]MH_I2C_Read... [14:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:47]Read from MH i2c: E2 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 B3 22 00 90 00 49 [14:00:47]RAPDU: 90 00 [14:00:47]wFMCommunicate OK [14:00:47]wFMCommunicate request_size=4 [14:00:47]MH_SAM_APDU [14:00:47]CAPDU: 80 0D 03 02 [14:00:47]Write to MH i2c: E2 08 00 B4 22 80 0D 03 02 00 00 00 00 51 [14:00:47]Write i2c OK [14:00:47]MH_I2C_Read... [14:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:47]Read from MH i2c: E2 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 0B 00 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 0B 00 B4 22 00 F1 2E 05 99 74 30 36 D1 90 00 BA [14:00:47]RAPDU: F1 2E 05 99 74 30 36 D1 90 00 [14:00:47]wFMCommunicate OK [14:00:47]SAM_PROTO_SignData done [14:00:47]FM_MakeSignedData done [14:00:47]CreateOFDProtocolMessage [14:00:47]wFMCommunicate request_size=4 [14:00:47]MH_SAM_APDU [14:00:47]CAPDU: 80 11 00 00 [14:00:47]Write to MH i2c: E2 08 00 B5 22 80 11 00 00 00 00 00 00 51 [14:00:47]Write i2c OK [14:00:47]MH_I2C_Read... [14:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:47]Read from MH i2c: E2 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 17 00 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 17 00 B5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [14:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:00:47]wFMCommunicate OK [14:00:47]CreateOFDProtocolMessage done [14:00:47]OFDSenderStorePacket 164238 [14:00:47]StoreOFDPacket docnum=164238 [14:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 50 07 01 AA 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 9F 00 00 00 F4 03 04 00 0F 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 81 02 00 35 04 06 00 26 69 51 44 D5 FD F1 2E 05 99 74 30 36 D1 [14:00:47]CheckFolder [14:00:47]dirname=/storage/ofd_packets [14:00:47]CheckFolder done [14:00:47]ProducePacketName [14:00:47]name=ofd_packets/00164238 [14:00:47]NVStorageSaveData ofd_packets/00164238 [14:00:47]File name is /storage/ofd_packets/00164238 [14:00:47]Write 301 bytes [14:00:47]NVStorageSaveData done [14:00:47]OFDSenderStorePacket done [14:00:47]KKMCreateOFDPacket done [14:00:47]NVStorageSaveData kkm_last_timestamp [14:00:47]File name is /storage/kkm_last_timestamp [14:00:47]Write 4 bytes [14:00:47]NVStorageSaveData done [14:00:47]ExternCall_PrintAddStr [14:00:47]wPrintStart [14:00:47]Write to MH i2c: 01 00 00 B6 22 D8 [14:00:47]Write i2c OK [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: 01 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: 01 07 00 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: 01 07 00 B6 22 00 00 00 00 00 FF 0F ED [14:00:47]RasterBufferAndPrint [14:00:47]line Счет N : (1)458321 [14:00:47]line ИНН: 02508201610067 [14:00:47]line Контрольно-Кассовый Чек [14:00:47]line ПРОДАЖА [14:00:47]line ТРК (МРК, ГНК) : 22 [14:00:47]line Товар: 2710124130 [14:00:47]line Аи-92-К-5 [14:00:47]line 6.080 * 65.80 [14:00:47]line = 400.06 [14:00:47]line НДС 12% НСП 1% [14:00:47]line > о реализуемом товаре [14:00:47]line ОКРУГЛЕНИЕ: -0.06 [14:00:47]line ИТОГО: 400.00 [14:00:47]line Внесено: 400.00 [14:00:47]line СДАЧА: 0.00 [14:00:47]line НСП 1% : 3.54 [14:00:47]line НДС 12% : 42.48 [14:00:47]line Наличными: 400.00 [14:00:47]line Безнал.: 0.00 [14:00:47]line Место: АЗС № 72 "Партнер Нефть" [14:00:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:00:47]line СНО: Общий режим [14:00:47]line Чек 159 12.07.2024 14:00 [14:00:47]line Смена: 445 ФФД: 1.0 [14:00:47]line ЗНМ: 0300000160 [14:00:47]line РНМ: 0000000000090829 [14:00:47]line Версия ККМ: 001 [14:00:47]line ФМ: 0000000000874718 [14:00:47]line ФД: 164238 [14:00:47]line ФПД: 42233776887293 [14:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T140047&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164238&fm=42233776887293&tin=02508201610067®Number=0000000000090829&sum=40000 [14:00:48]written 0, free lines is 4095 [14:00:48]OFD Sender: Processing packet 164238 [packets to send 104, broken 103] [14:00:48]ProducePacketName [14:00:48]name=ofd_packets/00164238 [14:00:48]OFD Sender: To server: pG, [14:00:48]CommunicateWithHost lk.salyk.kg:30040 [14:00:48]ConnectInit lk.salyk.kg [14:00:48]Connected sock=10 [14:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 50 07 01 AA 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 9F 00 00 00 F4 03 04 00 0F 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 81 02 00 35 04 06 00 26 69 51 44 D5 FD F1 2E 05 99 74 30 36 D1 [14:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 85 2C 47 00 F5 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 81 02 00 F4 03 04 00 A4 DD 90 66 B6 04 01 00 00 74 A8 D1 66 44 FB EF FE [14:00:48]CommunicateWithHost err = 0 [14:00:48]CheckOFDResponse [14:00:48]1017 (14) - 77093643461234 [14:00:48]1041 (16) - 0000000000874718 [14:00:48]1040 (4) - 164238 [14:00:48]1012 (4) - 12.07.2024 07:39 [14:00:48]1206 (1) - 0 [14:00:48]OFD Sender: Remove packet 164238 [14:00:48]ProducePacketName [14:00:48]name=ofd_packets/00164238 [14:00:48]NVStorageDeleteData [14:00:48]Write to MH i2c: 01 00 00 E0 22 02 [14:00:48]Write i2c OK [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: 01 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: 01 07 00 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: 01 07 00 E0 22 00 00 00 00 00 F0 0C 05 [14:00:48]RasterBufferAndPrint [14:00:48]line [14:00:48]line [14:00:48]line [14:00:48]line [14:00:48]line [14:00:48]written 0, free lines is 3322 [14:00:48]MH_Cut [14:00:48]Write to MH i2c: D1 01 00 E7 22 01 DB [14:00:48]Write i2c OK [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: D1 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: D1 01 00 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: D1 01 00 E7 22 00 DA [14:00:48]Write to MH i2c: 01 00 00 E8 22 0A [14:00:48]Write i2c OK [14:00:48]MH_I2C_Read... [14:00:49]OFD Sender: No OFD packet to send [14:00:49]*** Cut start [14:00:49]*** Partial cut [14:00:49]*** CUTSNS_PIN = 1 [14:00:49]*** CUTSNS_PIN = 0 [14:00:49]*** Brake cut motor [14:00:49]Read from MH i2c: 01 [14:00:49]MH_I2C_Read... [14:00:49]*** Stop cut motor [14:00:49]*** Cut end [14:00:49]Read from MH i2c: 01 07 00 [14:00:49]MH_I2C_Read... [14:00:49]Read from MH i2c: 01 07 00 E8 22 00 00 00 00 00 FF 0F 1F [14:00:49]process_action close_receipt done [14:00:49]requested_data is exist [14:00:49]produce_requested_data [14:00:49]requested_item fm.sn is exist - process it [14:00:49]wFMCommunicate request_size=4 [14:00:49]MH_SAM_APDU [14:00:49]CAPDU: 80 11 00 00 [14:00:49]Write to MH i2c: E2 08 00 E9 22 80 11 00 00 00 00 00 00 85 [14:00:49]Write i2c OK [14:00:49]MH_I2C_Read... [14:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:49]Read from MH i2c: E2 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 17 00 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 17 00 E9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [14:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:00:50]wFMCommunicate OK [14:00:50]requested_item fd.num is exist - process it [14:00:50]SAM_PROTO_GetFieldsCounters [14:00:50]wFMCommunicate request_size=4 [14:00:50]MH_SAM_APDU [14:00:50]CAPDU: 80 13 00 00 [14:00:50]Write to MH i2c: E2 08 00 EA 22 80 13 00 00 00 00 00 00 88 [14:00:50]Write i2c OK [14:00:50]MH_I2C_Read... [14:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:50]Read from MH i2c: E2 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 62 00 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 62 00 EA 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [14:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:50]wFMCommunicate OK [14:00:50]SAM_PROTO_GetFieldsCounters done [14:00:50]requested_item shift.num is exist - process it [14:00:50]requested_item shift.opened is exist - process it [14:00:50]req_shift_opened [14:00:50]FM_GetShiftState [14:00:50]SAM_PROTO_GetShiftState [14:00:50]wFMCommunicate request_size=4 [14:00:50]MH_SAM_APDU [14:00:50]CAPDU: 80 13 01 00 [14:00:50]Write to MH i2c: E2 08 00 EB 22 80 13 01 00 00 00 00 00 8A [14:00:50]Write i2c OK [14:00:50]MH_I2C_Read... [14:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:50]Read from MH i2c: E2 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 0E 00 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 0E 00 EB 22 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D4 [14:00:50]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:00:50]wFMCommunicate OK [14:00:50]SAM_PROTO_GetShiftState done [14:00:50]FM_GetShiftState done [14:00:50]req_shift_opened done [14:00:50]requested_item shift.open_date is exist - process it [14:00:50]req_shift_open_date [14:00:50]req_shift_open_date done [14:00:50]produce_requested_data done [14:00:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164238,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:00:50]process_action_free close_receipt [14:00:50]json_value_free [14:00:50]json_value_free done [14:00:50]process_json_proto returns [14:00:50]Send response to host [14:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164238,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:00:50]free response buf [14:00:50]execute_script done [14:00:50]execute_script returns [14:00:50]free content buf [14:00:50]Sock 7.Close socket [14:00:50]Sock 7.Thread stoped [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:11]accept exits with 9 [14:03:11]New connection [14:03:11]New thread 3066850660 created [14:03:11]Thread 3066707300 joined [14:03:11]Waiting for new connection... [14:03:11] Sock 9.Parse request [14:03:11]Sock 9.Check first char [14:03:11]Sock 9.First char is OK [14:03:11]request: POST /json_proto HTTP/1.0 [14:03:11]Method: POST [14:03:11]URL: /json_proto [14:03:11]Method is POST - this is cgi request [14:03:11]url: /json_proto [14:03:11]query_string will be loaded in cgi processing [14:03:11]execute_cgi json_proto POST (null) [14:03:11]execute_cgi path=json_proto method=POST [14:03:11]POST find Content-Length [14:03:11]Host: 172.17.56.4:8080 [14:03:11]Content-Length: 790 [14:03:11]Content-Type: application/json [14:03:11] [14:03:11]POST finish read [14:03:11]Found Content-Length = 790 [14:03:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:11]execute_script... [14:03: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)458322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:11]POST & json_proto [14:03:11]process_json_proto [14:03:11]json parsed OK: [14:03:11]protocol is kg_v1.0 [14:03:11]action value=close_receipt [14:03:11]process_action close_receipt [14:03:11]cmd_close_receipt [14:03:11]MH_GetDate [14:03:11]Write to MH i2c: F0 00 00 EC 22 FD [14:03:11]Write i2c OK [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: F0 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: F0 09 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: F0 09 00 EC 22 00 A0 37 91 66 C9 DC B2 64 8F [14:03:11]GetLastDocTimeStamp 1720792847 [14:03:11]current date 1720792992 [14:03:11]FM_GetShiftState [14:03:11]SAM_PROTO_GetShiftState [14:03:11]wFMCommunicate request_size=4 [14:03:11]MH_SAM_APDU [14:03:11]CAPDU: 80 13 01 00 [14:03:11]Write to MH i2c: E2 08 00 ED 22 80 13 01 00 00 00 00 00 8C [14:03:11]Write i2c OK [14:03:11]MH_I2C_Read... [14:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:11]Read from MH i2c: E2 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 0E 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 0E 00 ED 22 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D6 [14:03:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:03:11]wFMCommunicate OK [14:03:11]SAM_PROTO_GetShiftState done [14:03:11]FM_GetShiftState done [14:03:11]opened in 1720744654 [14:03:11]opened+sec_in_day 1720831054 [14:03:11]quantity*price = 20022 [14:03:11]sum+1 = 20024 [14:03:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 160 12.07.2024 14:03 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164239 ФПД: 65604141606510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T140312&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164239&fm=65604141606510&tin=02508201610067®Number=0000000000090829&sum=20023 [14:03:12]StoreToDocumentArchive [14:03:12]shift 445 fd 164239 [14:03:12]save to /storage/0445/doc_00164239 [14:03:12]save last doc name /storage/0445/doc_00164239 to /storage/kkm_last_doc_name [14:03:12]save OK [14:03:12]Clear old archive folders... [14:03:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:12]tlvbuf is B6EA83A0 [14:03:12]SAM_PROTO_ClearQueue [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 09 00 00 [14:03:12]Write to MH i2c: E2 08 00 FA 22 80 09 00 00 00 00 00 00 8E [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 FA 22 00 90 00 90 [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]SAM_PROTO_ClearQueue done [14:03:12]KKMCreateOFDPacket [14:03:12]OFDProtocolAddRootSTLVToBuf [14:03:12]FM_MakeSignedData [14:03:12]FM_MakeSignedData [14:03:12]SAM_PROTO_SignData [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 01 02 [14:03:12]Write to MH i2c: E2 08 00 FB 22 80 0D 01 02 00 00 00 00 96 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 FB 22 00 90 00 91 [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]wFMCommunicate request_size=255 [14:03:12]MH_SAM_APDU [14:03: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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 A0 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 81 02 00 35 04 06 00 3B [14:03:12]Write to MH i2c: E2 02 01 FC 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 A0 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 81 02 00 35 04 06 00 3B 00 00 51 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 FC 22 00 90 00 92 [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]wFMCommunicate request_size=10 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 02 02 05 AA A7 8E 66 6E [14:03:12]Write to MH i2c: E2 0D 00 FD 22 80 0D 02 02 05 00 AA A7 8E 66 6E 00 00 56 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 03 00 FD 22 00 90 00 93 [14:03:12]RAPDU: 90 00 [14:03:12]wFMCommunicate OK [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 0D 03 02 [14:03:12]Write to MH i2c: E2 08 00 FE 22 80 0D 03 02 00 00 00 00 9B [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 0B 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 0B 00 FE 22 00 F8 D6 48 2F D9 74 60 39 90 00 C7 [14:03:12]RAPDU: F8 D6 48 2F D9 74 60 39 90 00 [14:03:12]wFMCommunicate OK [14:03:12]SAM_PROTO_SignData done [14:03:12]FM_MakeSignedData done [14:03:12]CreateOFDProtocolMessage [14:03:12]wFMCommunicate request_size=4 [14:03:12]MH_SAM_APDU [14:03:12]CAPDU: 80 11 00 00 [14:03:12]Write to MH i2c: E2 08 00 FF 22 80 11 00 00 00 00 00 00 9B [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:12]Read from MH i2c: E2 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 17 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: E2 17 00 FF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [14:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:03:12]wFMCommunicate OK [14:03:12]CreateOFDProtocolMessage done [14:03:12]OFDSenderStorePacket 164239 [14:03:12]StoreOFDPacket docnum=164239 [14:03:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8C DA 07 01 45 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 A0 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 81 02 00 35 04 06 00 3B AA A7 8E 66 6E F8 D6 48 2F D9 74 60 39 [14:03:12]CheckFolder [14:03:12]dirname=/storage/ofd_packets [14:03:12]CheckFolder done [14:03:12]ProducePacketName [14:03:12]name=ofd_packets/00164239 [14:03:12]NVStorageSaveData ofd_packets/00164239 [14:03:12]File name is /storage/ofd_packets/00164239 [14:03:12]Write 301 bytes [14:03:12]NVStorageSaveData done [14:03:12]OFDSenderStorePacket done [14:03:12]KKMCreateOFDPacket done [14:03:12]NVStorageSaveData kkm_last_timestamp [14:03:12]File name is /storage/kkm_last_timestamp [14:03:12]Write 4 bytes [14:03:12]NVStorageSaveData done [14:03:12]ExternCall_PrintAddStr [14:03:12]wPrintStart [14:03:12]Write to MH i2c: 01 00 00 00 23 23 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 07 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 07 00 00 23 00 00 00 00 00 FF 0F 38 [14:03:12]RasterBufferAndPrint [14:03:12]line Счет N : (1)458322 [14:03:12]line ИНН: 02508201610067 [14:03:12]line Контрольно-Кассовый Чек [14:03:12]line ПРОДАЖА [14:03:12]line ТРК (МРК, ГНК) : 12 [14:03:12]line Товар: 2710124130 [14:03:12]line Аи-92-К-5 [14:03:12]line 3.070 * 65.22 [14:03:12]line = 200.23 [14:03:12]line НДС 12% НСП 1% [14:03:12]line > о реализуемом товаре [14:03:12]line ИТОГО: 200.23 [14:03:12]line НСП 1% : 1.77 [14:03:12]line НДС 12% : 21.26 [14:03:12]line Наличными: 0.00 [14:03:12]line Безнал.: 200.23 [14:03:12]line Место: АЗС № 72 "Партнер Нефть" [14:03:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:03:12]line СНО: Общий режим [14:03:12]line Чек 160 12.07.2024 14:03 [14:03:12]line Смена: 445 ФФД: 1.0 [14:03:12]line ЗНМ: 0300000160 [14:03:12]line РНМ: 0000000000090829 [14:03:12]line Версия ККМ: 001 [14:03:12]line Платежная система: KICB Банк [14:03:12]line ФМ: 0000000000874718 [14:03:12]line ФД: 164239 [14:03:12]line ФПД: 65604141606510 [14:03:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T140312&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164239&fm=65604141606510&tin=02508201610067®Number=0000000000090829&sum=20023 [14:03:12]written 0, free lines is 4095 [14:03:12]OFD Sender: Processing packet 164239 [packets to send 104, broken 103] [14:03:12]ProducePacketName [14:03:12]name=ofd_packets/00164239 [14:03:12]OFD Sender: To server: pG, [14:03:13]CommunicateWithHost lk.salyk.kg:30040 [14:03:13]ConnectInit lk.salyk.kg [14:03:13]Write to MH i2c: 01 00 00 29 23 4C [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 07 00 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 07 00 29 23 00 00 00 00 00 FE 0C 5D [14:03:13]RasterBufferAndPrint [14:03:13]line [14:03:13]line [14:03:13]line [14:03:13]line [14:03:13]line [14:03:13]written 0, free lines is 3332 [14:03:13]MH_Cut [14:03:13]Write to MH i2c: D1 01 00 30 23 01 25 [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: D1 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: D1 01 00 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: D1 01 00 30 23 00 24 [14:03:13]Write to MH i2c: 01 00 00 31 23 54 [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]*** Cut start [14:03:13]*** Partial cut [14:03:13]*** CUTSNS_PIN = 1 [14:03:13]*** CUTSNS_PIN = 0 [14:03:14]*** Brake cut motor [14:03:14]Read from MH i2c: 01 [14:03:14]MH_I2C_Read... [14:03:14]*** Stop cut motor [14:03:14]*** Cut end [14:03:14]Read from MH i2c: 01 07 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: 01 07 00 31 23 00 00 00 00 00 FF 0F 69 [14:03:14]process_action close_receipt done [14:03:14]requested_data is exist [14:03:14]produce_requested_data [14:03:14]requested_item fm.sn is exist - process it [14:03:14]wFMCommunicate request_size=4 [14:03:14]MH_SAM_APDU [14:03:14]CAPDU: 80 11 00 00 [14:03:14]Write to MH i2c: E2 08 00 32 23 80 11 00 00 00 00 00 00 CF [14:03:14]Write i2c OK [14:03:14]MH_I2C_Read... [14:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:14]Read from MH i2c: E2 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 17 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 17 00 32 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [14:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:03:14]wFMCommunicate OK [14:03:14]requested_item fd.num is exist - process it [14:03:14]SAM_PROTO_GetFieldsCounters [14:03:14]wFMCommunicate request_size=4 [14:03:14]MH_SAM_APDU [14:03:14]CAPDU: 80 13 00 00 [14:03:14]Write to MH i2c: E2 08 00 33 23 80 13 00 00 00 00 00 00 D2 [14:03:14]Write i2c OK [14:03:14]MH_I2C_Read... [14:03:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:14]Read from MH i2c: E2 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 62 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 62 00 33 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [14:03:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:14]wFMCommunicate OK [14:03:14]SAM_PROTO_GetFieldsCounters done [14:03:14]requested_item shift.num is exist - process it [14:03:14]requested_item shift.opened is exist - process it [14:03:14]req_shift_opened [14:03:14]FM_GetShiftState [14:03:14]SAM_PROTO_GetShiftState [14:03:14]wFMCommunicate request_size=4 [14:03:14]MH_SAM_APDU [14:03:14]CAPDU: 80 13 01 00 [14:03:14]Write to MH i2c: E2 08 00 34 23 80 13 01 00 00 00 00 00 D4 [14:03:14]Write i2c OK [14:03:14]MH_I2C_Read... [14:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:14]Read from MH i2c: E2 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 0E 00 [14:03:14]MH_I2C_Read... [14:03:14]Read from MH i2c: E2 0E 00 34 23 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1E [14:03:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:03:14]wFMCommunicate OK [14:03:14]SAM_PROTO_GetShiftState done [14:03:14]FM_GetShiftState done [14:03:14]req_shift_opened done [14:03:14]requested_item shift.open_date is exist - process it [14:03:14]req_shift_open_date [14:03:14]req_shift_open_date done [14:03:14]produce_requested_data done [14:03:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164239,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:03:14]process_action_free close_receipt [14:03:14]json_value_free [14:03:14]json_value_free done [14:03:14]process_json_proto returns [14:03:14]Send response to host [14:03:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164239,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:03:14]free response buf [14:03:14]execute_script done [14:03:14]execute_script returns [14:03:14]free content buf [14:03:14]Sock 9.Close socket [14:03:14]Sock 9.Thread stoped [14:04:27]accept exits with 7 [14:04:27]New connection [14:04:27]New thread 3066707300 created [14:04:27]Thread 3066850660 joined [14:04:27]Waiting for new connection... [14:04:27] Sock 7.Parse request [14:04:27]Sock 7.Check first char [14:04:27]Sock 7.First char is OK [14:04:27]request: POST /json_proto HTTP/1.0 [14:04:27]Method: POST [14:04:27]URL: /json_proto [14:04:27]Method is POST - this is cgi request [14:04:27]url: /json_proto [14:04:27]query_string will be loaded in cgi processing [14:04:27]execute_cgi json_proto POST (null) [14:04:27]execute_cgi path=json_proto method=POST [14:04:27]POST find Content-Length [14:04:27]Host: 172.17.56.4:8080 [14:04:27]Content-Length: 677 [14:04:27]Content-Type: application/json [14:04:27] [14:04:27]POST finish read [14:04:27]Found Content-Length = 677 [14:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:27]execute_script... [14:04: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)458323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:27]POST & json_proto [14:04:27]process_json_proto [14:04:27]json parsed OK: [14:04:27]protocol is kg_v1.0 [14:04:27]action value=close_receipt [14:04:27]process_action close_receipt [14:04:27]cmd_close_receipt [14:04:27]MH_GetDate [14:04:27]Write to MH i2c: F0 00 00 35 23 47 [14:04:27]Write i2c OK [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: F0 [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: F0 09 00 [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: F0 09 00 35 23 00 ED 37 91 66 C9 DC B2 64 26 [14:04:27]GetLastDocTimeStamp 1720792992 [14:04:27]current date 1720793069 [14:04:27]FM_GetShiftState [14:04:27]SAM_PROTO_GetShiftState [14:04:27]wFMCommunicate request_size=4 [14:04:27]MH_SAM_APDU [14:04:27]CAPDU: 80 13 01 00 [14:04:27]Write to MH i2c: E2 08 00 36 23 80 13 01 00 00 00 00 00 D6 [14:04:27]Write i2c OK [14:04:27]MH_I2C_Read... [14:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:27]Read from MH i2c: E2 [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: E2 0E 00 [14:04:27]MH_I2C_Read... [14:04:27]Read from MH i2c: E2 0E 00 36 23 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 20 [14:04:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:04:27]wFMCommunicate OK [14:04:27]SAM_PROTO_GetShiftState done [14:04:27]FM_GetShiftState done [14:04:27]opened in 1720744654 [14:04:27]opened+sec_in_day 1720831054 [14:04:27]quantity*price = 50008 [14:04:27]sum+1 = 50009 [14:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 161 12.07.2024 14:04 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164240 ФПД: 44075282655577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T140429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164240&fm=44075282655577&tin=02508201610067®Number=0000000000090829&sum=50000 [14:04:28]StoreToDocumentArchive [14:04:28]shift 445 fd 164240 [14:04:28]save to /storage/0445/doc_00164240 [14:04:28]save last doc name /storage/0445/doc_00164240 to /storage/kkm_last_doc_name [14:04:28]save OK [14:04:28]Clear old archive folders... [14:04:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:28]tlvbuf is 00A7DD90 [14:04:28]SAM_PROTO_ClearQueue [14:04:28]wFMCommunicate request_size=4 [14:04:28]MH_SAM_APDU [14:04:28]CAPDU: 80 09 00 00 [14:04:28]Write to MH i2c: E2 08 00 43 23 80 09 00 00 00 00 00 00 D8 [14:04:28]Write i2c OK [14:04:28]MH_I2C_Read... [14:04:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:28]Read from MH i2c: E2 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 03 00 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 03 00 43 23 00 90 00 DA [14:04:28]RAPDU: 90 00 [14:04:28]wFMCommunicate OK [14:04:28]SAM_PROTO_ClearQueue done [14:04:28]KKMCreateOFDPacket [14:04:28]OFDProtocolAddRootSTLVToBuf [14:04:28]FM_MakeSignedData [14:04:28]FM_MakeSignedData [14:04:28]SAM_PROTO_SignData [14:04:28]wFMCommunicate request_size=4 [14:04:28]MH_SAM_APDU [14:04:28]CAPDU: 80 0D 01 02 [14:04:28]Write to MH i2c: E2 08 00 44 23 80 0D 01 02 00 00 00 00 E0 [14:04:28]Write i2c OK [14:04:28]MH_I2C_Read... [14:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:28]Read from MH i2c: E2 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 03 00 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 03 00 44 23 00 90 00 DB [14:04:28]RAPDU: 90 00 [14:04:28]wFMCommunicate OK [14:04:28]wFMCommunicate request_size=255 [14:04:28]MH_SAM_APDU [14:04: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A1 00 00 00 F4 03 04 00 ED 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 81 02 00 35 04 06 00 28 [14:04:28]Write to MH i2c: E2 02 01 45 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A1 00 00 00 F4 03 04 00 ED 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 81 02 00 35 04 06 00 28 00 00 0E [14:04:28]Write i2c OK [14:04:28]MH_I2C_Read... [14:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:29]Read from MH i2c: E2 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 03 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 03 00 45 23 00 90 00 DC [14:04:29]RAPDU: 90 00 [14:04:29]wFMCommunicate OK [14:04:29]wFMCommunicate request_size=10 [14:04:29]MH_SAM_APDU [14:04:29]CAPDU: 80 0D 02 02 05 16 13 90 E9 59 [14:04:29]Write to MH i2c: E2 0D 00 46 23 80 0D 02 02 05 00 16 13 90 E9 59 00 00 E8 [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:29]Read from MH i2c: E2 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 03 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 03 00 46 23 00 90 00 DD [14:04:29]RAPDU: 90 00 [14:04:29]wFMCommunicate OK [14:04:29]wFMCommunicate request_size=4 [14:04:29]MH_SAM_APDU [14:04:29]CAPDU: 80 0D 03 02 [14:04:29]Write to MH i2c: E2 08 00 47 23 80 0D 03 02 00 00 00 00 E5 [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:29]Read from MH i2c: E2 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 0B 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 0B 00 47 23 00 CA 34 E4 7F 55 A1 F0 99 90 00 C6 [14:04:29]RAPDU: CA 34 E4 7F 55 A1 F0 99 90 00 [14:04:29]wFMCommunicate OK [14:04:29]SAM_PROTO_SignData done [14:04:29]FM_MakeSignedData done [14:04:29]CreateOFDProtocolMessage [14:04:29]wFMCommunicate request_size=4 [14:04:29]MH_SAM_APDU [14:04:29]CAPDU: 80 11 00 00 [14:04:29]Write to MH i2c: E2 08 00 48 23 80 11 00 00 00 00 00 00 E5 [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:29]Read from MH i2c: E2 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 17 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 17 00 48 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3B [14:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:04:29]wFMCommunicate OK [14:04:29]CreateOFDProtocolMessage done [14:04:29]OFDSenderStorePacket 164240 [14:04:29]StoreOFDPacket docnum=164240 [14:04:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0F 84 07 01 41 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A1 00 00 00 F4 03 04 00 ED 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 81 02 00 35 04 06 00 28 16 13 90 E9 59 CA 34 E4 7F 55 A1 F0 99 [14:04:29]CheckFolder [14:04:29]dirname=/storage/ofd_packets [14:04:29]CheckFolder done [14:04:29]ProducePacketName [14:04:29]name=ofd_packets/00164240 [14:04:29]NVStorageSaveData ofd_packets/00164240 [14:04:29]File name is /storage/ofd_packets/00164240 [14:04:29]Write 301 bytes [14:04:29]NVStorageSaveData done [14:04:29]OFDSenderStorePacket done [14:04:29]KKMCreateOFDPacket done [14:04:29]NVStorageSaveData kkm_last_timestamp [14:04:29]File name is /storage/kkm_last_timestamp [14:04:29]Write 4 bytes [14:04:29]NVStorageSaveData done [14:04:29]ExternCall_PrintAddStr [14:04:29]wPrintStart [14:04:29]Write to MH i2c: 01 00 00 49 23 6C [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: 01 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: 01 07 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: 01 07 00 49 23 00 00 00 00 00 FF 0F 81 [14:04:29]RasterBufferAndPrint [14:04:29]line Счет N : (1)458323 [14:04:29]line ИНН: 02508201610067 [14:04:29]line Контрольно-Кассовый Чек [14:04:29]line ПРОДАЖА [14:04:29]line ТРК (МРК, ГНК) : 22 [14:04:29]line Товар: 2710124130 [14:04:29]line Аи-92-К-5 [14:04:29]line 7.600 * 65.80 [14:04:29]line = 500.08 [14:04:29]line НДС 12% НСП 1% [14:04:29]line > о реализуемом товаре [14:04:29]line ОКРУГЛЕНИЕ: -0.08 [14:04:29]line ИТОГО: 500.00 [14:04:29]line Внесено: 500.00 [14:04:29]line СДАЧА: 0.00 [14:04:29]line НСП 1% : 4.42 [14:04:29]line НДС 12% : 53.11 [14:04:29]line Наличными: 500.00 [14:04:29]line Безнал.: 0.00 [14:04:29]line Место: АЗС № 72 "Партнер Нефть" [14:04:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:04:29]line СНО: Общий режим [14:04:29]line Чек 161 12.07.2024 14:04 [14:04:29]line Смена: 445 ФФД: 1.0 [14:04:29]line ЗНМ: 0300000160 [14:04:29]line РНМ: 0000000000090829 [14:04:29]line Версия ККМ: 001 [14:04:29]line ФМ: 0000000000874718 [14:04:29]line ФД: 164240 [14:04:29]line ФПД: 44075282655577 [14:04:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T140429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164240&fm=44075282655577&tin=02508201610067®Number=0000000000090829&sum=50000 [14:04:29]written 0, free lines is 4095 [14:04:29]Write to MH i2c: 01 00 00 73 23 96 [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: 01 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: 01 07 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: 01 07 00 73 23 00 00 00 00 00 F5 0C 9E [14:04:29]RasterBufferAndPrint [14:04:29]line [14:04:29]line [14:04:29]line [14:04:29]line [14:04:29]line [14:04:29]written 0, free lines is 3324 [14:04:30]MH_Cut [14:04:30]Write to MH i2c: D1 01 00 7A 23 01 6F [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: D1 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: D1 01 00 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: D1 01 00 7A 23 00 6E [14:04:30]Write to MH i2c: 01 00 00 7B 23 9E [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:30]*** Cut start [14:04:30]*** Partial cut [14:04:30]*** CUTSNS_PIN = 1 [14:04:30]*** CUTSNS_PIN = 0 [14:04:30]*** Brake cut motor [14:04:31]Read from MH i2c: 01 [14:04:31]MH_I2C_Read... [14:04:31]*** Stop cut motor [14:04:31]*** Cut end [14:04:31]Read from MH i2c: 01 07 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: 01 07 00 7B 23 00 00 00 00 00 FF 0F B3 [14:04:31]process_action close_receipt done [14:04:31]requested_data is exist [14:04:31]produce_requested_data [14:04:31]requested_item fm.sn is exist - process it [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 11 00 00 [14:04:31]Write to MH i2c: E2 08 00 7C 23 80 11 00 00 00 00 00 00 19 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 17 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 17 00 7C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [14:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:04:31]wFMCommunicate OK [14:04:31]requested_item fd.num is exist - process it [14:04:31]SAM_PROTO_GetFieldsCounters [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 13 00 00 [14:04:31]Write to MH i2c: E2 08 00 7D 23 80 13 00 00 00 00 00 00 1C [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 62 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 62 00 7D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [14:04: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:31]wFMCommunicate OK [14:04:31]SAM_PROTO_GetFieldsCounters done [14:04:31]requested_item shift.num is exist - process it [14:04:31]requested_item shift.opened is exist - process it [14:04:31]req_shift_opened [14:04:31]FM_GetShiftState [14:04:31]SAM_PROTO_GetShiftState [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 13 01 00 [14:04:31]Write to MH i2c: E2 08 00 7E 23 80 13 01 00 00 00 00 00 1E [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 0E 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 0E 00 7E 23 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 68 [14:04:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:04:31]wFMCommunicate OK [14:04:31]SAM_PROTO_GetShiftState done [14:04:31]FM_GetShiftState done [14:04:31]req_shift_opened done [14:04:31]requested_item shift.open_date is exist - process it [14:04:31]req_shift_open_date [14:04:31]req_shift_open_date done [14:04:31]produce_requested_data done [14:04:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164240,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:04:31]process_action_free close_receipt [14:04:31]json_value_free [14:04:31]json_value_free done [14:04:31]process_json_proto returns [14:04:31]Send response to host [14:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164240,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:04:31]free response buf [14:04:31]execute_script done [14:04:31]execute_script returns [14:04:31]free content buf [14:04:31]Sock 7.Close socket [14:04:31]Sock 7.Thread stoped [14:05:24]ConnectInit Can't connect to host [14:05:24]CommunicateWithHost connect error [14:05:24]CommunicateWithHost err = -1 [14:05:24]OFD Sender: Server communicate error [14:05:24]OFD Sender: Processing packet 164239 [packets to send 105, broken 103] [14:05:24]ProducePacketName [14:05:24]name=ofd_packets/00164239 [14:05:24]OFD Sender: To server: pG, [14:05:24]CommunicateWithHost lk.salyk.kg:30040 [14:05:24]ConnectInit lk.salyk.kg [14:05:24]Connected sock=7 [14:05:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8C DA 07 01 45 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 A0 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 81 02 00 35 04 06 00 3B AA A7 8E 66 6E F8 D6 48 2F D9 74 60 39 [14:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 16 CD 47 00 24 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 34 37 31 38 10 04 04 00 8F 81 02 00 F4 03 04 00 B8 DE 90 66 B6 04 01 00 00 40 CB 77 44 FD 3A 80 8A [14:05:24]CommunicateWithHost err = 0 [14:05:24]CheckOFDResponse [14:05:24]1017 (14) - 77093643461234 [14:05:24]1041 (16) - 0000000000874718 [14:05:24]1040 (4) - 164239 [14:05:24]1012 (4) - 12.07.2024 07:43 [14:05:24]1206 (1) - 0 [14:05:24]OFD Sender: Remove packet 164239 [14:05:24]ProducePacketName [14:05:24]name=ofd_packets/00164239 [14:05:24]NVStorageDeleteData [14:05:25]OFD Sender: Processing packet 164240 [packets to send 104, broken 103] [14:05:25]ProducePacketName [14:05:25]name=ofd_packets/00164240 [14:05:25]OFD Sender: To server: pG, [14:05:25]CommunicateWithHost lk.salyk.kg:30040 [14:05:25]ConnectInit lk.salyk.kg [14:05:25]Connected sock=7 [14:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0F 84 07 01 41 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A1 00 00 00 F4 03 04 00 ED 37 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 81 02 00 35 04 06 00 28 16 13 90 E9 59 CA 34 E4 7F 55 A1 F0 99 [14:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 71 65 47 00 C8 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 81 02 00 F4 03 04 00 B8 DE 90 66 B6 04 01 00 00 6C E5 32 B3 AA 90 16 32 [14:05:25]CommunicateWithHost err = 0 [14:05:25]CheckOFDResponse [14:05:25]1017 (14) - 77093643461234 [14:05:25]1041 (16) - 0000000000874718 [14:05:25]1040 (4) - 164240 [14:05:25]1012 (4) - 12.07.2024 07:43 [14:05:25]1206 (1) - 0 [14:05:25]OFD Sender: Remove packet 164240 [14:05:25]ProducePacketName [14:05:25]name=ofd_packets/00164240 [14:05:25]NVStorageDeleteData [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:10]accept exits with 9 [14:08:10]New connection [14:08:10]New thread 3066850660 created [14:08:10]Thread 3066707300 joined [14:08:10]Waiting for new connection... [14:08:10] Sock 9.Parse request [14:08:10]Sock 9.Check first char [14:08:10]Sock 9.First char is OK [14:08:10]request: POST /json_proto HTTP/1.0 [14:08:10]Method: POST [14:08:10]URL: /json_proto [14:08:10]Method is POST - this is cgi request [14:08:10]url: /json_proto [14:08:10]query_string will be loaded in cgi processing [14:08:10]execute_cgi json_proto POST (null) [14:08:10]execute_cgi path=json_proto method=POST [14:08:10]POST find Content-Length [14:08:10]Host: 172.17.56.4:8080 [14:08:10]Content-Length: 677 [14:08:10]Content-Type: application/json [14:08:10] [14:08:10]POST finish read [14:08:10]Found Content-Length = 677 [14:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:08:10]execute_script... [14:08:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:08:10]POST & json_proto [14:08:10]process_json_proto [14:08:10]json parsed OK: [14:08:10]protocol is kg_v1.0 [14:08:10]action value=close_receipt [14:08:10]process_action close_receipt [14:08:10]cmd_close_receipt [14:08:10]MH_GetDate [14:08:10]Write to MH i2c: F0 00 00 7F 23 91 [14:08:10]Write i2c OK [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 09 00 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 09 00 7F 23 00 CB 38 91 66 C9 DC B2 64 4F [14:08:10]GetLastDocTimeStamp 1720793069 [14:08:10]current date 1720793291 [14:08:10]FM_GetShiftState [14:08:10]SAM_PROTO_GetShiftState [14:08:10]wFMCommunicate request_size=4 [14:08:10]MH_SAM_APDU [14:08:10]CAPDU: 80 13 01 00 [14:08:10]Write to MH i2c: E2 08 00 80 23 80 13 01 00 00 00 00 00 20 [14:08:10]Write i2c OK [14:08:10]MH_I2C_Read... [14:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:10]Read from MH i2c: E2 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: E2 0E 00 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: E2 0E 00 80 23 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6A [14:08:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:08:10]wFMCommunicate OK [14:08:10]SAM_PROTO_GetShiftState done [14:08:10]FM_GetShiftState done [14:08:10]opened in 1720744654 [14:08:10]opened+sec_in_day 1720831054 [14:08:10]quantity*price = 20003 [14:08:10]sum+1 = 20004 [14:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 162 12.07.2024 14:08 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164241 ФПД: 201347620683042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T140811&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164241&fm=201347620683042&tin=02508201610067®Number=0000000000090829&sum=20000 [14:08:11]StoreToDocumentArchive [14:08:11]shift 445 fd 164241 [14:08:11]save to /storage/0445/doc_00164241 [14:08:11]save last doc name /storage/0445/doc_00164241 to /storage/kkm_last_doc_name [14:08:11]save OK [14:08:11]Clear old archive folders... [14:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:11]tlvbuf is 00A23EF0 [14:08:11]SAM_PROTO_ClearQueue [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 09 00 00 [14:08:11]Write to MH i2c: E2 08 00 8D 23 80 09 00 00 00 00 00 00 22 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 8D 23 00 90 00 24 [14:08:11]RAPDU: 90 00 [14:08:11]wFMCommunicate OK [14:08:11]SAM_PROTO_ClearQueue done [14:08:11]KKMCreateOFDPacket [14:08:11]OFDProtocolAddRootSTLVToBuf [14:08:11]FM_MakeSignedData [14:08:11]FM_MakeSignedData [14:08:11]SAM_PROTO_SignData [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 0D 01 02 [14:08:11]Write to MH i2c: E2 08 00 8E 23 80 0D 01 02 00 00 00 00 2A [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 8E 23 00 90 00 25 [14:08:11]RAPDU: 90 00 [14:08:11]wFMCommunicate OK [14:08:11]wFMCommunicate request_size=255 [14:08:11]MH_SAM_APDU [14:08: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 A2 00 00 00 F4 03 04 00 CB 38 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 81 02 00 35 04 06 00 B7 [14:08:11]Write to MH i2c: E2 02 01 8F 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 A2 00 00 00 F4 03 04 00 CB 38 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 81 02 00 35 04 06 00 B7 00 00 69 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 8F 23 00 90 00 26 [14:08:11]RAPDU: 90 00 [14:08:11]wFMCommunicate OK [14:08:11]wFMCommunicate request_size=10 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 0D 02 02 05 1F E5 68 3D 22 [14:08:11]Write to MH i2c: E2 0D 00 90 23 80 0D 02 02 05 00 1F E5 68 3D 22 00 00 02 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 90 23 00 90 00 27 [14:08:11]RAPDU: 90 00 [14:08:11]wFMCommunicate OK [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 0D 03 02 [14:08:11]Write to MH i2c: E2 08 00 91 23 80 0D 03 02 00 00 00 00 2F [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 0B 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 0B 00 91 23 00 07 24 15 6C FE E5 69 A8 90 00 D0 [14:08:11]RAPDU: 07 24 15 6C FE E5 69 A8 90 00 [14:08:11]wFMCommunicate OK [14:08:11]SAM_PROTO_SignData done [14:08:11]FM_MakeSignedData done [14:08:11]CreateOFDProtocolMessage [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 11 00 00 [14:08:11]Write to MH i2c: E2 08 00 92 23 80 11 00 00 00 00 00 00 2F [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 17 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 17 00 92 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [14:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:08:11]wFMCommunicate OK [14:08:11]CreateOFDProtocolMessage done [14:08:11]OFDSenderStorePacket 164241 [14:08:11]StoreOFDPacket docnum=164241 [14:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 A2 07 01 8E 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 A2 00 00 00 F4 03 04 00 CB 38 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 81 02 00 35 04 06 00 B7 1F E5 68 3D 22 07 24 15 6C FE E5 69 A8 [14:08:11]CheckFolder [14:08:11]dirname=/storage/ofd_packets [14:08:11]CheckFolder done [14:08:11]ProducePacketName [14:08:11]name=ofd_packets/00164241 [14:08:11]NVStorageSaveData ofd_packets/00164241 [14:08:11]File name is /storage/ofd_packets/00164241 [14:08:11]Write 301 bytes [14:08:11]NVStorageSaveData done [14:08:11]OFDSenderStorePacket done [14:08:11]KKMCreateOFDPacket done [14:08:11]NVStorageSaveData kkm_last_timestamp [14:08:11]File name is /storage/kkm_last_timestamp [14:08:11]Write 4 bytes [14:08:11]NVStorageSaveData done [14:08:11]OFD Sender: Processing packet 164241 [packets to send 104, broken 103] [14:08:11]ProducePacketName [14:08:11]name=ofd_packets/00164241 [14:08:11]OFD Sender: To server: pG, [14:08:11]CommunicateWithHost lk.salyk.kg:30040 [14:08:11]ConnectInit lk.salyk.kg [14:08:11]ExternCall_PrintAddStr [14:08:11]wPrintStart [14:08:11]Write to MH i2c: 01 00 00 93 23 B6 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: 01 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: 01 07 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: 01 07 00 93 23 00 00 00 00 00 FF 0F CB [14:08:11]RasterBufferAndPrint [14:08:11]line Счет N : (1)458324 [14:08:11]line ИНН: 02508201610067 [14:08:11]line Контрольно-Кассовый Чек [14:08:11]line ПРОДАЖА [14:08:11]line ТРК (МРК, ГНК) : 12 [14:08:11]line Товар: 2710124130 [14:08:11]line Аи-92-К-5 [14:08:11]line 3.040 * 65.80 [14:08:11]line = 200.03 [14:08:11]line НДС 12% НСП 1% [14:08:11]line > о реализуемом товаре [14:08:11]line ОКРУГЛЕНИЕ: -0.03 [14:08:11]line ИТОГО: 200.00 [14:08:11]line Внесено: 200.00 [14:08:11]line СДАЧА: 0.00 [14:08:11]line НСП 1% : 1.77 [14:08:11]line НДС 12% : 21.24 [14:08:11]line Наличными: 200.00 [14:08:11]line Безнал.: 0.00 [14:08:11]line Место: АЗС № 72 "Партнер Нефть" [14:08:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:08:11]line СНО: Общий режим [14:08:11]line Чек 162 12.07.2024 14:08 [14:08:11]line Смена: 445 ФФД: 1.0 [14:08:11]line ЗНМ: 0300000160 [14:08:11]line РНМ: 0000000000090829 [14:08:11]line Версия ККМ: 001 [14:08:11]line ФМ: 0000000000874718 [14:08:11]line ФД: 164241 [14:08:11]line ФПД: 201347620683042 [14:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T140811&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164241&fm=201347620683042&tin=02508201610067®Number=0000000000090829&sum=20000 [14:08:12]Connected sock=11 [14:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 A2 07 01 8E 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 A2 00 00 00 F4 03 04 00 CB 38 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 81 02 00 35 04 06 00 B7 1F E5 68 3D 22 07 24 15 6C FE E5 69 A8 [14:08:12]written 0, free lines is 4095 [14:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BC 3D 47 00 82 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 34 37 31 38 10 04 04 00 91 81 02 00 F4 03 04 00 5F DF 90 66 B6 04 01 00 00 FD 09 B4 16 E4 EC 7E B0 [14:08:12]CommunicateWithHost err = 0 [14:08:12]CheckOFDResponse [14:08:12]1017 (14) - 77093643461234 [14:08:12]1041 (16) - 0000000000874718 [14:08:12]1040 (4) - 164241 [14:08:12]1012 (4) - 12.07.2024 07:46 [14:08:12]1206 (1) - 0 [14:08:12]OFD Sender: Remove packet 164241 [14:08:12]ProducePacketName [14:08:12]name=ofd_packets/00164241 [14:08:12]NVStorageDeleteData [14:08:12]Write to MH i2c: 01 00 00 BD 23 E0 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 BD 23 00 00 00 00 00 F3 0C E6 [14:08:12]RasterBufferAndPrint [14:08:12]line [14:08:12]line [14:08:12]line [14:08:12]line [14:08:12]line [14:08:12]written 0, free lines is 3321 [14:08:12]MH_Cut [14:08:12]Write to MH i2c: D1 01 00 C4 23 01 B9 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: D1 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: D1 01 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: D1 01 00 C4 23 00 B8 [14:08:12]Write to MH i2c: 01 00 00 C5 23 E8 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]OFD Sender: No OFD packet to send [14:08:13]*** Cut start [14:08:13]*** Partial cut [14:08:13]*** CUTSNS_PIN = 1 [14:08:13]*** CUTSNS_PIN = 0 [14:08:13]*** Brake cut motor [14:08:13]Read from MH i2c: 01 [14:08:13]MH_I2C_Read... [14:08:13]*** Stop cut motor [14:08:13]*** Cut end [14:08:13]Read from MH i2c: 01 07 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 07 00 C5 23 00 00 00 00 00 FF 0F FD [14:08:13]process_action close_receipt done [14:08:13]requested_data is exist [14:08:13]produce_requested_data [14:08:13]requested_item fm.sn is exist - process it [14:08:13]wFMCommunicate request_size=4 [14:08:13]MH_SAM_APDU [14:08:13]CAPDU: 80 11 00 00 [14:08:13]Write to MH i2c: E2 08 00 C6 23 80 11 00 00 00 00 00 00 63 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:13]Read from MH i2c: E2 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 17 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 17 00 C6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [14:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:08:13]wFMCommunicate OK [14:08:13]requested_item fd.num is exist - process it [14:08:13]SAM_PROTO_GetFieldsCounters [14:08:13]wFMCommunicate request_size=4 [14:08:13]MH_SAM_APDU [14:08:13]CAPDU: 80 13 00 00 [14:08:13]Write to MH i2c: E2 08 00 C7 23 80 13 00 00 00 00 00 00 66 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 62 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 62 00 C7 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [14:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:14]wFMCommunicate OK [14:08:14]SAM_PROTO_GetFieldsCounters done [14:08:14]requested_item shift.num is exist - process it [14:08:14]requested_item shift.opened is exist - process it [14:08:14]req_shift_opened [14:08:14]FM_GetShiftState [14:08:14]SAM_PROTO_GetShiftState [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 13 01 00 [14:08:14]Write to MH i2c: E2 08 00 C8 23 80 13 01 00 00 00 00 00 68 [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 0E 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 0E 00 C8 23 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B2 [14:08:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:08:14]wFMCommunicate OK [14:08:14]SAM_PROTO_GetShiftState done [14:08:14]FM_GetShiftState done [14:08:14]req_shift_opened done [14:08:14]requested_item shift.open_date is exist - process it [14:08:14]req_shift_open_date [14:08:14]req_shift_open_date done [14:08:14]produce_requested_data done [14:08:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164241,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:08:14]process_action_free close_receipt [14:08:14]json_value_free [14:08:14]json_value_free done [14:08:14]process_json_proto returns [14:08:14]Send response to host [14:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164241,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:08:14]free response buf [14:08:14]execute_script done [14:08:14]execute_script returns [14:08:14]free content buf [14:08:14]Sock 9.Close socket [14:08:14]Sock 9.Thread stoped [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:22]accept exits with 7 [14:11:22]New connection [14:11:22]New thread 3066707300 created [14:11:22]Thread 3066850660 joined [14:11:22]Waiting for new connection... [14:11:22] Sock 7.Parse request [14:11:22]Sock 7.Check first char [14:11:22]Sock 7.First char is OK [14:11:22]request: POST /json_proto HTTP/1.0 [14:11:22]Method: POST [14:11:22]URL: /json_proto [14:11:22]Method is POST - this is cgi request [14:11:22]url: /json_proto [14:11:22]query_string will be loaded in cgi processing [14:11:22]execute_cgi json_proto POST (null) [14:11:22]execute_cgi path=json_proto method=POST [14:11:22]POST find Content-Length [14:11:22]Host: 172.17.56.4:8080 [14:11:22]Content-Length: 677 [14:11:22]Content-Type: application/json [14:11:22] [14:11:22]POST finish read [14:11:22]Found Content-Length = 677 [14:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:22]execute_script... [14: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)458325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:22]POST & json_proto [14:11:22]process_json_proto [14:11:22]json parsed OK: [14:11:22]protocol is kg_v1.0 [14:11:22]action value=close_receipt [14:11:22]process_action close_receipt [14:11:22]cmd_close_receipt [14:11:22]MH_GetDate [14:11:22]Write to MH i2c: F0 00 00 C9 23 DB [14:11:22]Write i2c OK [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: F0 [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: F0 09 00 [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: F0 09 00 C9 23 00 8C 39 91 66 C9 DC B2 64 5B [14:11:22]GetLastDocTimeStamp 1720793291 [14:11:22]current date 1720793484 [14:11:22]FM_GetShiftState [14:11:22]SAM_PROTO_GetShiftState [14:11:22]wFMCommunicate request_size=4 [14:11:22]MH_SAM_APDU [14:11:22]CAPDU: 80 13 01 00 [14:11:22]Write to MH i2c: E2 08 00 CA 23 80 13 01 00 00 00 00 00 6A [14:11:22]Write i2c OK [14:11:22]MH_I2C_Read... [14:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:22]Read from MH i2c: E2 [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: E2 0E 00 [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: E2 0E 00 CA 23 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B4 [14:11:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:11:22]wFMCommunicate OK [14:11:22]SAM_PROTO_GetShiftState done [14:11:22]FM_GetShiftState done [14:11:22]opened in 1720744654 [14:11:22]opened+sec_in_day 1720831054 [14:11:22]quantity*price = 30004 [14:11:22]sum+1 = 30006 [14:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 163 12.07.2024 14:11 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164242 ФПД: 100743890594074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T141124&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164242&fm=100743890594074&tin=02508201610067®Number=0000000000090829&sum=30000 [14:11:23]StoreToDocumentArchive [14:11:23]shift 445 fd 164242 [14:11:23]save to /storage/0445/doc_00164242 [14:11:23]save last doc name /storage/0445/doc_00164242 to /storage/kkm_last_doc_name [14:11:23]save OK [14:11:23]Clear old archive folders... [14:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:23]tlvbuf is B6E8F090 [14:11:23]SAM_PROTO_ClearQueue [14:11:23]wFMCommunicate request_size=4 [14:11:23]MH_SAM_APDU [14:11:23]CAPDU: 80 09 00 00 [14:11:23]Write to MH i2c: E2 08 00 D7 23 80 09 00 00 00 00 00 00 6C [14:11:23]Write i2c OK [14:11:23]MH_I2C_Read... [14:11:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:23]Read from MH i2c: E2 [14:11:23]MH_I2C_Read... [14:11:23]Read from MH i2c: E2 03 00 [14:11:23]MH_I2C_Read... [14:11:23]Read from MH i2c: E2 03 00 D7 23 00 90 00 6E [14:11:23]RAPDU: 90 00 [14:11:23]wFMCommunicate OK [14:11:23]SAM_PROTO_ClearQueue done [14:11:23]KKMCreateOFDPacket [14:11:23]OFDProtocolAddRootSTLVToBuf [14:11:23]FM_MakeSignedData [14:11:23]FM_MakeSignedData [14:11:23]SAM_PROTO_SignData [14:11:23]wFMCommunicate request_size=4 [14:11:23]MH_SAM_APDU [14:11:23]CAPDU: 80 0D 01 02 [14:11:23]Write to MH i2c: E2 08 00 D8 23 80 0D 01 02 00 00 00 00 74 [14:11:23]Write i2c OK [14:11:23]MH_I2C_Read... [14:11:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:23]Read from MH i2c: E2 [14:11:23]MH_I2C_Read... [14:11:23]Read from MH i2c: E2 03 00 [14:11:23]MH_I2C_Read... [14:11:23]Read from MH i2c: E2 03 00 D8 23 00 90 00 6F [14:11:23]RAPDU: 90 00 [14:11:23]wFMCommunicate OK [14:11:23]wFMCommunicate request_size=255 [14:11:23]MH_SAM_APDU [14:11: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 8C 39 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 81 02 00 35 04 06 00 5B [14:11:23]Write to MH i2c: E2 02 01 D9 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 8C 39 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 81 02 00 35 04 06 00 5B 00 00 3B [14:11:23]Write i2c OK [14:11:23]MH_I2C_Read... [14:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:24]Read from MH i2c: E2 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 03 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 03 00 D9 23 00 90 00 70 [14:11:24]RAPDU: 90 00 [14:11:24]wFMCommunicate OK [14:11:24]wFMCommunicate request_size=10 [14:11:24]MH_SAM_APDU [14:11:24]CAPDU: 80 0D 02 02 05 A0 43 CF E9 1A [14:11:24]Write to MH i2c: E2 0D 00 DA 23 80 0D 02 02 05 00 A0 43 CF E9 1A 00 00 36 [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:24]Read from MH i2c: E2 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 03 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 03 00 DA 23 00 90 00 71 [14:11:24]RAPDU: 90 00 [14:11:24]wFMCommunicate OK [14:11:24]wFMCommunicate request_size=4 [14:11:24]MH_SAM_APDU [14:11:24]CAPDU: 80 0D 03 02 [14:11:24]Write to MH i2c: E2 08 00 DB 23 80 0D 03 02 00 00 00 00 79 [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:24]Read from MH i2c: E2 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 0B 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 0B 00 DB 23 00 30 AE 1D 0B 6D 71 3A EF 90 00 87 [14:11:24]RAPDU: 30 AE 1D 0B 6D 71 3A EF 90 00 [14:11:24]wFMCommunicate OK [14:11:24]SAM_PROTO_SignData done [14:11:24]FM_MakeSignedData done [14:11:24]CreateOFDProtocolMessage [14:11:24]wFMCommunicate request_size=4 [14:11:24]MH_SAM_APDU [14:11:24]CAPDU: 80 11 00 00 [14:11:24]Write to MH i2c: E2 08 00 DC 23 80 11 00 00 00 00 00 00 79 [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:24]Read from MH i2c: E2 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 17 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 17 00 DC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [14:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:11:24]wFMCommunicate OK [14:11:24]CreateOFDProtocolMessage done [14:11:24]OFDSenderStorePacket 164242 [14:11:24]StoreOFDPacket docnum=164242 [14:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 E2 07 01 39 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 8C 39 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 81 02 00 35 04 06 00 5B A0 43 CF E9 1A 30 AE 1D 0B 6D 71 3A EF [14:11:24]CheckFolder [14:11:24]dirname=/storage/ofd_packets [14:11:24]CheckFolder done [14:11:24]ProducePacketName [14:11:24]name=ofd_packets/00164242 [14:11:24]NVStorageSaveData ofd_packets/00164242 [14:11:24]File name is /storage/ofd_packets/00164242 [14:11:24]Write 301 bytes [14:11:24]NVStorageSaveData done [14:11:24]OFDSenderStorePacket done [14:11:24]KKMCreateOFDPacket done [14:11:24]NVStorageSaveData kkm_last_timestamp [14:11:24]File name is /storage/kkm_last_timestamp [14:11:24]Write 4 bytes [14:11:24]NVStorageSaveData done [14:11:24]ExternCall_PrintAddStr [14:11:24]wPrintStart [14:11:24]Write to MH i2c: 01 00 00 DD 23 00 [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: 01 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: 01 07 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: 01 07 00 DD 23 00 00 00 00 00 FF 0F 15 [14:11:24]RasterBufferAndPrint [14:11:24]line Счет N : (1)458325 [14:11:24]line ИНН: 02508201610067 [14:11:24]line Контрольно-Кассовый Чек [14:11:24]line ПРОДАЖА [14:11:24]line ТРК (МРК, ГНК) : 22 [14:11:24]line Товар: 2710124130 [14:11:24]line Аи-92-К-5 [14:11:24]line 4.560 * 65.80 [14:11:24]line = 300.05 [14:11:24]line НДС 12% НСП 1% [14:11:24]line > о реализуемом товаре [14:11:24]line ОКРУГЛЕНИЕ: -0.05 [14:11:24]line ИТОГО: 300.00 [14:11:24]line Внесено: 300.00 [14:11:24]line СДАЧА: 0.00 [14:11:24]line НСП 1% : 2.65 [14:11:24]line НДС 12% : 31.86 [14:11:24]line Наличными: 300.00 [14:11:24]line Безнал.: 0.00 [14:11:24]line Место: АЗС № 72 "Партнер Нефть" [14:11:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:11:24]line СНО: Общий режим [14:11:24]line Чек 163 12.07.2024 14:11 [14:11:24]line Смена: 445 ФФД: 1.0 [14:11:24]line ЗНМ: 0300000160 [14:11:24]line РНМ: 0000000000090829 [14:11:24]line Версия ККМ: 001 [14:11:24]line ФМ: 0000000000874718 [14:11:24]line ФД: 164242 [14:11:24]line ФПД: 100743890594074 [14:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T141124&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164242&fm=100743890594074&tin=02508201610067®Number=0000000000090829&sum=30000 [14:11:24]OFD Sender: Processing packet 164242 [packets to send 104, broken 103] [14:11:24]ProducePacketName [14:11:24]name=ofd_packets/00164242 [14:11:24]OFD Sender: To server: pG, [14:11:24]CommunicateWithHost lk.salyk.kg:30040 [14:11:24]ConnectInit lk.salyk.kg [14:11:24]written 0, free lines is 4095 [14:11:24]Connected sock=10 [14: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 34 37 31 38 0F 01 00 00 B8 E2 07 01 39 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 8C 39 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 81 02 00 35 04 06 00 5B A0 43 CF E9 1A 30 AE 1D 0B 6D 71 3A EF [14:11:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FA 66 47 00 E9 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 34 37 31 38 10 04 04 00 92 81 02 00 F4 03 04 00 20 E0 90 66 B6 04 01 00 00 B2 2E 56 19 F9 53 02 4F [14:11:24]CommunicateWithHost err = 0 [14:11:24]CheckOFDResponse [14:11:24]1017 (14) - 77093643461234 [14:11:24]1041 (16) - 0000000000874718 [14:11:24]1040 (4) - 164242 [14:11:24]1012 (4) - 12.07.2024 07:49 [14:11:24]1206 (1) - 0 [14:11:24]OFD Sender: Remove packet 164242 [14:11:24]ProducePacketName [14:11:24]name=ofd_packets/00164242 [14:11:24]NVStorageDeleteData [14:11:25]Write to MH i2c: 01 00 00 07 24 2B [14:11:25]Write i2c OK [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: 01 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: 01 07 00 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: 01 07 00 07 24 00 00 00 00 00 F7 0C 35 [14:11:25]RasterBufferAndPrint [14:11:25]line [14:11:25]line [14:11:25]line [14:11:25]line [14:11:25]line [14:11:25]written 0, free lines is 3326 [14:11:25]MH_Cut [14:11:25]Write to MH i2c: D1 01 00 0E 24 01 04 [14:11:25]Write i2c OK [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: D1 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: D1 01 00 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: D1 01 00 0E 24 00 03 [14:11:25]Write to MH i2c: 01 00 00 0F 24 33 [14:11:25]Write i2c OK [14:11:25]MH_I2C_Read... [14:11:25]OFD Sender: No OFD packet to send [14:11:25]*** Cut start [14:11:25]*** Partial cut [14:11:25]*** CUTSNS_PIN = 1 [14:11:25]*** CUTSNS_PIN = 0 [14:11:26]*** Brake cut motor [14:11:26]Read from MH i2c: 01 [14:11:26]MH_I2C_Read... [14:11:26]*** Stop cut motor [14:11:26]*** Cut end [14:11:26]Read from MH i2c: 01 07 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 07 00 0F 24 00 00 00 00 00 FF 0F 48 [14:11:26]process_action close_receipt done [14:11:26]requested_data is exist [14:11:26]produce_requested_data [14:11:26]requested_item fm.sn is exist - process it [14:11:26]wFMCommunicate request_size=4 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 11 00 00 [14:11:26]Write to MH i2c: E2 08 00 10 24 80 11 00 00 00 00 00 00 AE [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 17 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 17 00 10 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [14:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:11:26]wFMCommunicate OK [14:11:26]requested_item fd.num is exist - process it [14:11:26]SAM_PROTO_GetFieldsCounters [14:11:26]wFMCommunicate request_size=4 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 13 00 00 [14:11:26]Write to MH i2c: E2 08 00 11 24 80 13 00 00 00 00 00 00 B1 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 62 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 62 00 11 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [14: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:26]wFMCommunicate OK [14:11:26]SAM_PROTO_GetFieldsCounters done [14:11:26]requested_item shift.num is exist - process it [14:11:26]requested_item shift.opened is exist - process it [14:11:26]req_shift_opened [14:11:26]FM_GetShiftState [14:11:26]SAM_PROTO_GetShiftState [14:11:26]wFMCommunicate request_size=4 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 13 01 00 [14:11:26]Write to MH i2c: E2 08 00 12 24 80 13 01 00 00 00 00 00 B3 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 0E 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 0E 00 12 24 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FD [14:11:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:11:26]wFMCommunicate OK [14:11:26]SAM_PROTO_GetShiftState done [14:11:26]FM_GetShiftState done [14:11:26]req_shift_opened done [14:11:26]requested_item shift.open_date is exist - process it [14:11:26]req_shift_open_date [14:11:26]req_shift_open_date done [14:11:26]produce_requested_data done [14:11:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164242,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:11:26]process_action_free close_receipt [14:11:26]json_value_free [14:11:26]json_value_free done [14:11:26]process_json_proto returns [14:11:26]Send response to host [14:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164242,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:11:26]free response buf [14:11:26]execute_script done [14:11:26]execute_script returns [14:11:26]free content buf [14:11:26]Sock 7.Close socket [14:11:26]Sock 7.Thread stoped [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:27]accept exits with 9 [14:22:27]New connection [14:22:27]New thread 3066850660 created [14:22:27]Thread 3066707300 joined [14:22:27]Waiting for new connection... [14:22:27] Sock 9.Parse request [14:22:27]Sock 9.Check first char [14:22:27]Sock 9.First char is OK [14:22:27]request: POST /json_proto HTTP/1.0 [14:22:27]Method: POST [14:22:27]URL: /json_proto [14:22:27]Method is POST - this is cgi request [14:22:27]url: /json_proto [14:22:27]query_string will be loaded in cgi processing [14:22:27]execute_cgi json_proto POST (null) [14:22:27]execute_cgi path=json_proto method=POST [14:22:27]POST find Content-Length [14:22:27]Host: 172.17.56.4:8080 [14:22:27]Content-Length: 679 [14:22:27]Content-Type: application/json [14:22:27] [14:22:27]POST finish read [14:22:27]Found Content-Length = 679 [14:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:27]execute_script... [14:22: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)458326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:27]POST & json_proto [14:22:27]process_json_proto [14:22:27]json parsed OK: [14:22:27]protocol is kg_v1.0 [14:22:27]action value=close_receipt [14:22:27]process_action close_receipt [14:22:27]cmd_close_receipt [14:22:27]MH_GetDate [14:22:27]Write to MH i2c: F0 00 00 13 24 26 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: F0 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: F0 09 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: F0 09 00 13 24 00 25 3C 91 66 C9 DC B2 64 42 [14:22:27]GetLastDocTimeStamp 1720793484 [14:22:27]current date 1720794149 [14:22:27]FM_GetShiftState [14:22:27]SAM_PROTO_GetShiftState [14:22:27]wFMCommunicate request_size=4 [14:22:27]MH_SAM_APDU [14:22:27]CAPDU: 80 13 01 00 [14:22:27]Write to MH i2c: E2 08 00 14 24 80 13 01 00 00 00 00 00 B5 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 0E 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 0E 00 14 24 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FF [14:22:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:22:27]wFMCommunicate OK [14:22:27]SAM_PROTO_GetShiftState done [14:22:27]FM_GetShiftState done [14:22:27]opened in 1720744654 [14:22:27]opened+sec_in_day 1720831054 [14:22:27]quantity*price = 200025 [14:22:27]sum+1 = 200027 [14:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 164 12.07.2024 14:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164243 ФПД: 68946865657342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T142229&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164243&fm=68946865657342&tin=02508201610067®Number=0000000000090829&sum=200000 [14:22:29]StoreToDocumentArchive [14:22:29]shift 445 fd 164243 [14:22:29]save to /storage/0445/doc_00164243 [14:22:29]save last doc name /storage/0445/doc_00164243 to /storage/kkm_last_doc_name [14:22:29]save OK [14:22:29]Clear old archive folders... [14:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:22:29]tlvbuf is B6EC1880 [14:22:29]SAM_PROTO_ClearQueue [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 09 00 00 [14:22:29]Write to MH i2c: E2 08 00 21 24 80 09 00 00 00 00 00 00 B7 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 03 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 03 00 21 24 00 90 00 B9 [14:22:29]RAPDU: 90 00 [14:22:29]wFMCommunicate OK [14:22:29]SAM_PROTO_ClearQueue done [14:22:29]KKMCreateOFDPacket [14:22:29]OFDProtocolAddRootSTLVToBuf [14:22:29]FM_MakeSignedData [14:22:29]FM_MakeSignedData [14:22:29]SAM_PROTO_SignData [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 0D 01 02 [14:22:29]Write to MH i2c: E2 08 00 22 24 80 0D 01 02 00 00 00 00 BF [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 03 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 03 00 22 24 00 90 00 BA [14:22:29]RAPDU: 90 00 [14:22:29]wFMCommunicate OK [14:22:29]wFMCommunicate request_size=255 [14:22:29]MH_SAM_APDU [14:22: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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 A4 00 00 00 F4 03 04 00 25 3C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 81 02 00 35 04 06 00 3E B4 F1 6F [14:22:29]Write to MH i2c: E2 02 01 23 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 A4 00 00 00 F4 03 04 00 25 3C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 81 02 00 35 04 06 00 3E B4 F1 6F 00 00 D4 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 03 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 03 00 23 24 00 90 00 BB [14:22:29]RAPDU: 90 00 [14:22:29]wFMCommunicate OK [14:22:29]wFMCommunicate request_size=7 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 0D 02 02 02 95 FE [14:22:29]Write to MH i2c: E2 0A 00 24 24 80 0D 02 02 02 00 95 FE 00 00 59 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 03 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 03 00 24 24 00 90 00 BC [14:22:29]RAPDU: 90 00 [14:22:29]wFMCommunicate OK [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 0D 03 02 [14:22:29]Write to MH i2c: E2 08 00 25 24 80 0D 03 02 00 00 00 00 C4 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 0B 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 0B 00 25 24 00 71 DA 8F E3 3D BE ED B9 90 00 23 [14:22:29]RAPDU: 71 DA 8F E3 3D BE ED B9 90 00 [14:22:29]wFMCommunicate OK [14:22:29]SAM_PROTO_SignData done [14:22:29]FM_MakeSignedData done [14:22:29]CreateOFDProtocolMessage [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 11 00 00 [14:22:29]Write to MH i2c: E2 08 00 26 24 80 11 00 00 00 00 00 00 C4 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 17 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 17 00 26 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [14:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:22:29]wFMCommunicate OK [14:22:29]CreateOFDProtocolMessage done [14:22:29]OFDSenderStorePacket 164243 [14:22:29]StoreOFDPacket docnum=164243 [14:22:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 8A B6 04 01 E9 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 A4 00 00 00 F4 03 04 00 25 3C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 81 02 00 35 04 06 00 3E B4 F1 6F 95 FE 71 DA 8F E3 3D BE ED B9 [14:22:29]CheckFolder [14:22:29]dirname=/storage/ofd_packets [14:22:29]CheckFolder done [14:22:29]ProducePacketName [14:22:29]name=ofd_packets/00164243 [14:22:29]NVStorageSaveData ofd_packets/00164243 [14:22:29]File name is /storage/ofd_packets/00164243 [14:22:29]Write 298 bytes [14:22:29]NVStorageSaveData done [14:22:29]OFDSenderStorePacket done [14:22:29]KKMCreateOFDPacket done [14:22:29]NVStorageSaveData kkm_last_timestamp [14:22:29]File name is /storage/kkm_last_timestamp [14:22:29]Write 4 bytes [14:22:29]NVStorageSaveData done [14:22:29]ExternCall_PrintAddStr [14:22:29]wPrintStart [14:22:29]Write to MH i2c: 01 00 00 27 24 4B [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: 01 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: 01 07 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: 01 07 00 27 24 00 00 00 00 00 FF 0F 60 [14:22:29]RasterBufferAndPrint [14:22:29]line Счет N : (1)458326 [14:22:29]line ИНН: 02508201610067 [14:22:29]line Контрольно-Кассовый Чек [14:22:29]line ПРОДАЖА [14:22:29]line ТРК (МРК, ГНК) : 11 [14:22:29]line Товар: 2710194210 [14:22:29]line ДТ-К-5 [14:22:29]line 27.820 * 71.90 [14:22:29]line = 2000.26 [14:22:29]line НДС 12% НСП 1% [14:22:29]line > о реализуемом товаре [14:22:29]line ОКРУГЛЕНИЕ: -0.26 [14:22:29]line ИТОГО: 2000.00 [14:22:29]line Внесено: 2000.00 [14:22:29]line СДАЧА: 0.00 [14:22:29]line НСП 1% : 17.70 [14:22:29]line НДС 12% : 212.42 [14:22:29]line Наличными: 2000.00 [14:22:29]line Безнал.: 0.00 [14:22:29]line Место: АЗС № 72 "Партнер Нефть" [14:22:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:22:29]line СНО: Общий режим [14:22:29]line Чек 164 12.07.2024 14:22 [14:22:29]line Смена: 445 ФФД: 1.0 [14:22:29]line ЗНМ: 0300000160 [14:22:29]line РНМ: 0000000000090829 [14:22:29]line Версия ККМ: 001 [14:22:29]line ФМ: 0000000000874718 [14:22:29]line ФД: 164243 [14:22:29]line ФПД: 68946865657342 [14:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T142229&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164243&fm=68946865657342&tin=02508201610067®Number=0000000000090829&sum=200000 [14:22:29]OFD Sender: Processing packet 164243 [packets to send 104, broken 103] [14:22:29]ProducePacketName [14:22:29]name=ofd_packets/00164243 [14:22:29]OFD Sender: To server: pG, [14:22:29]CommunicateWithHost lk.salyk.kg:30040 [14:22:29]ConnectInit lk.salyk.kg [14:22:29]written 0, free lines is 4095 [14:22:29]Connected sock=10 [14:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 8A B6 04 01 E9 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 A4 00 00 00 F4 03 04 00 25 3C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 81 02 00 35 04 06 00 3E B4 F1 6F 95 FE 71 DA 8F E3 3D BE ED B9 [14:22:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7C 31 47 00 A4 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 34 37 31 38 10 04 04 00 93 81 02 00 F4 03 04 00 B9 E2 90 66 B6 04 01 00 00 BB 84 CF C7 4B AE F0 B6 [14:22:30]CommunicateWithHost err = 0 [14:22:30]CheckOFDResponse [14:22:30]1017 (14) - 77093643461234 [14:22:30]1041 (16) - 0000000000874718 [14:22:30]1040 (4) - 164243 [14:22:30]1012 (4) - 12.07.2024 08:00 [14:22:30]1206 (1) - 0 [14:22:30]OFD Sender: Remove packet 164243 [14:22:30]ProducePacketName [14:22:30]name=ofd_packets/00164243 [14:22:30]NVStorageDeleteData [14:22:30]Write to MH i2c: 01 00 00 51 24 75 [14:22:30]Write i2c OK [14:22:30]MH_I2C_Read... [14:22:30]Read from MH i2c: 01 [14:22:30]MH_I2C_Read... [14:22:30]Read from MH i2c: 01 07 00 [14:22:30]MH_I2C_Read... [14:22:30]Read from MH i2c: 01 07 00 51 24 00 00 00 00 00 F1 0C 79 [14:22:30]RasterBufferAndPrint [14:22:30]line [14:22:30]line [14:22:30]line [14:22:30]line [14:22:30]line [14:22:30]written 0, free lines is 3320 [14:22:30]MH_Cut [14:22:30]Write to MH i2c: D1 01 00 58 24 01 4E [14:22:30]Write i2c OK [14:22:30]MH_I2C_Read... [14:22:30]Read from MH i2c: D1 [14:22:30]MH_I2C_Read... [14:22:30]Read from MH i2c: D1 01 00 [14:22:30]MH_I2C_Read... [14:22:30]Read from MH i2c: D1 01 00 58 24 00 4D [14:22:30]Write to MH i2c: 01 00 00 59 24 7D [14:22:30]Write i2c OK [14:22:30]MH_I2C_Read... [14:22:30]OFD Sender: No OFD packet to send [14:22:30]*** Cut start [14:22:30]*** Partial cut [14:22:30]*** CUTSNS_PIN = 1 [14:22:31]*** CUTSNS_PIN = 0 [14:22:31]*** Brake cut motor [14:22:31]Read from MH i2c: 01 [14:22:31]MH_I2C_Read... [14:22:31]*** Stop cut motor [14:22:31]*** Cut end [14:22:31]Read from MH i2c: 01 07 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: 01 07 00 59 24 00 00 00 00 00 FF 0F 92 [14:22:31]process_action close_receipt done [14:22:31]requested_data is exist [14:22:31]produce_requested_data [14:22:31]requested_item fm.sn is exist - process it [14:22:31]wFMCommunicate request_size=4 [14:22:31]MH_SAM_APDU [14:22:31]CAPDU: 80 11 00 00 [14:22:31]Write to MH i2c: E2 08 00 5A 24 80 11 00 00 00 00 00 00 F8 [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 [14:22:31]MH_I2C_Read... [14:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:31]Read from MH i2c: E2 17 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 17 00 5A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [14:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:22:31]wFMCommunicate OK [14:22:31]requested_item fd.num is exist - process it [14:22:31]SAM_PROTO_GetFieldsCounters [14:22:31]wFMCommunicate request_size=4 [14:22:31]MH_SAM_APDU [14:22:31]CAPDU: 80 13 00 00 [14:22:31]Write to MH i2c: E2 08 00 5B 24 80 13 00 00 00 00 00 00 FB [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:31]Read from MH i2c: E2 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 62 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 62 00 5B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:31]wFMCommunicate OK [14:22:31]SAM_PROTO_GetFieldsCounters done [14:22:31]requested_item shift.num is exist - process it [14:22:31]requested_item shift.opened is exist - process it [14:22:31]req_shift_opened [14:22:31]FM_GetShiftState [14:22:31]SAM_PROTO_GetShiftState [14:22:31]wFMCommunicate request_size=4 [14:22:31]MH_SAM_APDU [14:22:31]CAPDU: 80 13 01 00 [14:22:31]Write to MH i2c: E2 08 00 5C 24 80 13 01 00 00 00 00 00 FD [14:22:31]Write i2c OK [14:22:31]MH_I2C_Read... [14:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:31]Read from MH i2c: E2 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 0E 00 [14:22:31]MH_I2C_Read... [14:22:31]Read from MH i2c: E2 0E 00 5C 24 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 47 [14:22:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:22:31]wFMCommunicate OK [14:22:31]SAM_PROTO_GetShiftState done [14:22:31]FM_GetShiftState done [14:22:31]req_shift_opened done [14:22:31]requested_item shift.open_date is exist - process it [14:22:31]req_shift_open_date [14:22:31]req_shift_open_date done [14:22:31]produce_requested_data done [14:22:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164243,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:22:31]process_action_free close_receipt [14:22:31]json_value_free [14:22:31]json_value_free done [14:22:31]process_json_proto returns [14:22:31]Send response to host [14:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164243,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:22:31]free response buf [14:22:31]execute_script done [14:22:31]execute_script returns [14:22:31]free content buf [14:22:31]Sock 9.Close socket [14:22:31]Sock 9.Thread stoped [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:11]accept exits with 7 [14:31:11]New connection [14:31:11]New thread 3066707300 created [14:31:11]Thread 3066850660 joined [14:31:11]Waiting for new connection... [14:31:11] Sock 7.Parse request [14:31:11]Sock 7.Check first char [14:31:11]Sock 7.First char is OK [14:31:11]request: POST /json_proto HTTP/1.0 [14:31:11]Method: POST [14:31:11]URL: /json_proto [14:31:11]Method is POST - this is cgi request [14:31:11]url: /json_proto [14:31:11]query_string will be loaded in cgi processing [14:31:11]execute_cgi json_proto POST (null) [14:31:11]execute_cgi path=json_proto method=POST [14:31:11]POST find Content-Length [14:31:11]Host: 172.17.56.4:8080 [14:31:11]Content-Length: 677 [14:31:11]Content-Type: application/json [14:31:11] [14:31:11]POST finish read [14:31:11]Found Content-Length = 677 [14:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:11]execute_script... [14:31: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)458328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:11]POST & json_proto [14:31:11]process_json_proto [14:31:11]json parsed OK: [14:31:11]protocol is kg_v1.0 [14:31:11]action value=close_receipt [14:31:11]process_action close_receipt [14:31:11]cmd_close_receipt [14:31:11]MH_GetDate [14:31:11]Write to MH i2c: F0 00 00 5D 24 70 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: F0 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: F0 09 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: F0 09 00 5D 24 00 31 3E 91 66 C9 DC B2 64 9A [14:31:11]GetLastDocTimeStamp 1720794149 [14:31:11]current date 1720794673 [14:31:11]FM_GetShiftState [14:31:11]SAM_PROTO_GetShiftState [14:31:11]wFMCommunicate request_size=4 [14:31:11]MH_SAM_APDU [14:31:11]CAPDU: 80 13 01 00 [14:31:11]Write to MH i2c: E2 08 00 5E 24 80 13 01 00 00 00 00 00 FF [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 0E 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 0E 00 5E 24 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 49 [14:31:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:31:12]wFMCommunicate OK [14:31:12]SAM_PROTO_GetShiftState done [14:31:12]FM_GetShiftState done [14:31:12]opened in 1720744654 [14:31:12]opened+sec_in_day 1720831054 [14:31:12]quantity*price = 50008 [14:31:12]sum+1 = 50009 [14:31:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 165 12.07.2024 14:31 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164244 ФПД: 281453419786887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143113&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164244&fm=281453419786887&tin=02508201610067®Number=0000000000090829&sum=50000 [14:31:13]StoreToDocumentArchive [14:31:13]shift 445 fd 164244 [14:31:13]save to /storage/0445/doc_00164244 [14:31:13]save last doc name /storage/0445/doc_00164244 to /storage/kkm_last_doc_name [14:31:13]save OK [14:31:13]Clear old archive folders... [14:31:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:13]tlvbuf is 00A77B90 [14:31:13]SAM_PROTO_ClearQueue [14:31:13]wFMCommunicate request_size=4 [14:31:13]MH_SAM_APDU [14:31:13]CAPDU: 80 09 00 00 [14:31:13]Write to MH i2c: E2 08 00 6B 24 80 09 00 00 00 00 00 00 01 [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:13]Read from MH i2c: E2 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 03 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 03 00 6B 24 00 90 00 03 [14:31:13]RAPDU: 90 00 [14:31:13]wFMCommunicate OK [14:31:13]SAM_PROTO_ClearQueue done [14:31:13]KKMCreateOFDPacket [14:31:13]OFDProtocolAddRootSTLVToBuf [14:31:13]FM_MakeSignedData [14:31:13]FM_MakeSignedData [14:31:13]SAM_PROTO_SignData [14:31:13]wFMCommunicate request_size=4 [14:31:13]MH_SAM_APDU [14:31:13]CAPDU: 80 0D 01 02 [14:31:13]Write to MH i2c: E2 08 00 6C 24 80 0D 01 02 00 00 00 00 09 [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:13]Read from MH i2c: E2 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 03 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 03 00 6C 24 00 90 00 04 [14:31:13]RAPDU: 90 00 [14:31:13]wFMCommunicate OK [14:31:13]wFMCommunicate request_size=255 [14:31:13]MH_SAM_APDU [14:31: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A5 00 00 00 F4 03 04 00 31 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 81 02 00 35 04 06 00 FF [14:31:13]Write to MH i2c: E2 02 01 6D 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A5 00 00 00 F4 03 04 00 31 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 81 02 00 35 04 06 00 FF 00 00 61 [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:13]Read from MH i2c: E2 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 03 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 03 00 6D 24 00 90 00 05 [14:31:13]RAPDU: 90 00 [14:31:13]wFMCommunicate OK [14:31:13]wFMCommunicate request_size=10 [14:31:13]MH_SAM_APDU [14:31:13]CAPDU: 80 0D 02 02 05 FA FB 1B 72 87 [14:31:13]Write to MH i2c: E2 0D 00 6E 24 80 0D 02 02 05 00 FA FB 1B 72 87 00 00 1F [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:13]Read from MH i2c: E2 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 03 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 03 00 6E 24 00 90 00 06 [14:31:13]RAPDU: 90 00 [14:31:13]wFMCommunicate OK [14:31:13]wFMCommunicate request_size=4 [14:31:13]MH_SAM_APDU [14:31:13]CAPDU: 80 0D 03 02 [14:31:13]Write to MH i2c: E2 08 00 6F 24 80 0D 03 02 00 00 00 00 0E [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:13]Read from MH i2c: E2 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 0B 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 0B 00 6F 24 00 BD 32 02 05 8D A6 28 57 90 00 B7 [14:31:13]RAPDU: BD 32 02 05 8D A6 28 57 90 00 [14:31:13]wFMCommunicate OK [14:31:13]SAM_PROTO_SignData done [14:31:13]FM_MakeSignedData done [14:31:13]CreateOFDProtocolMessage [14:31:13]wFMCommunicate request_size=4 [14:31:13]MH_SAM_APDU [14:31:13]CAPDU: 80 11 00 00 [14:31:13]Write to MH i2c: E2 08 00 70 24 80 11 00 00 00 00 00 00 0E [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:13]Read from MH i2c: E2 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 17 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: E2 17 00 70 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [14:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:31:13]wFMCommunicate OK [14:31:13]CreateOFDProtocolMessage done [14:31:13]OFDSenderStorePacket 164244 [14:31:13]StoreOFDPacket docnum=164244 [14:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F6 5A 07 01 89 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A5 00 00 00 F4 03 04 00 31 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 81 02 00 35 04 06 00 FF FA FB 1B 72 87 BD 32 02 05 8D A6 28 57 [14:31:13]CheckFolder [14:31:13]dirname=/storage/ofd_packets [14:31:13]CheckFolder done [14:31:13]ProducePacketName [14:31:13]name=ofd_packets/00164244 [14:31:13]NVStorageSaveData ofd_packets/00164244 [14:31:13]File name is /storage/ofd_packets/00164244 [14:31:13]Write 301 bytes [14:31:13]NVStorageSaveData done [14:31:13]OFDSenderStorePacket done [14:31:13]KKMCreateOFDPacket done [14:31:13]NVStorageSaveData kkm_last_timestamp [14:31:13]File name is /storage/kkm_last_timestamp [14:31:13]Write 4 bytes [14:31:13]NVStorageSaveData done [14:31:13]ExternCall_PrintAddStr [14:31:13]wPrintStart [14:31:13]Write to MH i2c: 01 00 00 71 24 95 [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: 01 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: 01 07 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: 01 07 00 71 24 00 00 00 00 00 FF 0F AA [14:31:13]RasterBufferAndPrint [14:31:13]line Счет N : (1)458328 [14:31:13]line ИНН: 02508201610067 [14:31:13]line Контрольно-Кассовый Чек [14:31:13]line ПРОДАЖА [14:31:13]line ТРК (МРК, ГНК) : 22 [14:31:13]line Товар: 2710124130 [14:31:13]line Аи-92-К-5 [14:31:13]line 7.600 * 65.80 [14:31:13]line = 500.08 [14:31:13]line НДС 12% НСП 1% [14:31:13]line > о реализуемом товаре [14:31:13]line ОКРУГЛЕНИЕ: -0.08 [14:31:13]line ИТОГО: 500.00 [14:31:13]line Внесено: 500.00 [14:31:13]line СДАЧА: 0.00 [14:31:13]line НСП 1% : 4.42 [14:31:13]line НДС 12% : 53.11 [14:31:13]line Наличными: 500.00 [14:31:13]line Безнал.: 0.00 [14:31:13]line Место: АЗС № 72 "Партнер Нефть" [14:31:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:31:13]line СНО: Общий режим [14:31:13]line Чек 165 12.07.2024 14:31 [14:31:13]line Смена: 445 ФФД: 1.0 [14:31:13]line ЗНМ: 0300000160 [14:31:13]line РНМ: 0000000000090829 [14:31:13]line Версия ККМ: 001 [14:31:13]line ФМ: 0000000000874718 [14:31:13]line ФД: 164244 [14:31:13]line ФПД: 281453419786887 [14:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143113&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164244&fm=281453419786887&tin=02508201610067®Number=0000000000090829&sum=50000 [14:31:14]written 0, free lines is 4095 [14:31:14]OFD Sender: Processing packet 164244 [packets to send 104, broken 103] [14:31:14]ProducePacketName [14:31:14]name=ofd_packets/00164244 [14:31:14]OFD Sender: To server: pG, [14:31:14]CommunicateWithHost lk.salyk.kg:30040 [14:31:14]ConnectInit lk.salyk.kg [14:31:14]Connected sock=10 [14: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 34 37 31 38 0F 01 00 00 F6 5A 07 01 89 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A5 00 00 00 F4 03 04 00 31 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 81 02 00 35 04 06 00 FF FA FB 1B 72 87 BD 32 02 05 8D A6 28 57 [14:31:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DB CA 47 00 73 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 34 37 31 38 10 04 04 00 94 81 02 00 F4 03 04 00 C5 E4 90 66 B6 04 01 00 00 AD 17 0F CC 7A 79 74 BD [14:31:14]CommunicateWithHost err = 0 [14:31:14]CheckOFDResponse [14:31:14]1017 (14) - 77093643461234 [14:31:14]1041 (16) - 0000000000874718 [14:31:14]1040 (4) - 164244 [14:31:14]1012 (4) - 12.07.2024 08:09 [14:31:14]1206 (1) - 0 [14:31:14]OFD Sender: Remove packet 164244 [14:31:14]ProducePacketName [14:31:14]name=ofd_packets/00164244 [14:31:14]NVStorageDeleteData [14:31:14]Write to MH i2c: 01 00 00 9B 24 BF [14:31:14]Write i2c OK [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: 01 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: 01 07 00 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: 01 07 00 9B 24 00 00 00 00 00 F3 0C C5 [14:31:14]RasterBufferAndPrint [14:31:14]line [14:31:14]line [14:31:14]line [14:31:14]line [14:31:14]line [14:31:14]written 0, free lines is 3321 [14:31:14]MH_Cut [14:31:14]Write to MH i2c: D1 01 00 A2 24 01 98 [14:31:14]Write i2c OK [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: D1 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: D1 01 00 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: D1 01 00 A2 24 00 97 [14:31:14]Write to MH i2c: 01 00 00 A3 24 C7 [14:31:14]Write i2c OK [14:31:14]MH_I2C_Read... [14:31:14]OFD Sender: No OFD packet to send [14:31:15]*** Cut start [14:31:15]*** Partial cut [14:31:15]*** CUTSNS_PIN = 1 [14:31:15]*** CUTSNS_PIN = 0 [14:31:15]*** Brake cut motor [14:31:15]Read from MH i2c: 01 [14:31:15]MH_I2C_Read... [14:31:15]*** Stop cut motor [14:31:15]*** Cut end [14:31:15]Read from MH i2c: 01 07 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: 01 07 00 A3 24 00 00 00 00 00 FF 0F DC [14:31:15]process_action close_receipt done [14:31:15]requested_data is exist [14:31:15]produce_requested_data [14:31:15]requested_item fm.sn is exist - process it [14:31:15]wFMCommunicate request_size=4 [14:31:15]MH_SAM_APDU [14:31:15]CAPDU: 80 11 00 00 [14:31:15]Write to MH i2c: E2 08 00 A4 24 80 11 00 00 00 00 00 00 42 [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:15]Read from MH i2c: E2 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 17 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 17 00 A4 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [14:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:31:15]wFMCommunicate OK [14:31:15]requested_item fd.num is exist - process it [14:31:15]SAM_PROTO_GetFieldsCounters [14:31:15]wFMCommunicate request_size=4 [14:31:15]MH_SAM_APDU [14:31:15]CAPDU: 80 13 00 00 [14:31:15]Write to MH i2c: E2 08 00 A5 24 80 13 00 00 00 00 00 00 45 [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:15]Read from MH i2c: E2 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 62 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 62 00 A5 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [14:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:15]wFMCommunicate OK [14:31:15]SAM_PROTO_GetFieldsCounters done [14:31:15]requested_item shift.num is exist - process it [14:31:15]requested_item shift.opened is exist - process it [14:31:15]req_shift_opened [14:31:15]FM_GetShiftState [14:31:15]SAM_PROTO_GetShiftState [14:31:15]wFMCommunicate request_size=4 [14:31:15]MH_SAM_APDU [14:31:15]CAPDU: 80 13 01 00 [14:31:15]Write to MH i2c: E2 08 00 A6 24 80 13 01 00 00 00 00 00 47 [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:15]Read from MH i2c: E2 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 0E 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 0E 00 A6 24 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 91 [14:31:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:31:15]wFMCommunicate OK [14:31:15]SAM_PROTO_GetShiftState done [14:31:15]FM_GetShiftState done [14:31:15]req_shift_opened done [14:31:15]requested_item shift.open_date is exist - process it [14:31:15]req_shift_open_date [14:31:15]req_shift_open_date done [14:31:15]produce_requested_data done [14:31:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164244,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:31:15]process_action_free close_receipt [14:31:15]json_value_free [14:31:15]json_value_free done [14:31:15]process_json_proto returns [14:31:15]Send response to host [14:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164244,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:31:15]free response buf [14:31:15]execute_script done [14:31:15]execute_script returns [14:31:15]free content buf [14:31:15]Sock 7.Close socket [14:31:15]Sock 7.Thread stoped [14:31:19]OFD Sender: No OFD packet to send [14:31:24]accept exits with 9 [14:31:24]New connection [14:31:24]New thread 3066850660 created [14:31:24]Thread 3066707300 joined [14:31:24]Waiting for new connection... [14:31:24] Sock 9.Parse request [14:31:24]Sock 9.Check first char [14:31:24]Sock 9.First char is OK [14:31:24]request: POST /json_proto HTTP/1.0 [14:31:24]Method: POST [14:31:24]URL: /json_proto [14:31:24]Method is POST - this is cgi request [14:31:24]url: /json_proto [14:31:24]query_string will be loaded in cgi processing [14:31:24]execute_cgi json_proto POST (null) [14:31:24]execute_cgi path=json_proto method=POST [14:31:24]POST find Content-Length [14:31:24]Host: 172.17.56.4:8080 [14:31:24]Content-Length: 639 [14:31:24]Content-Type: application/json [14:31:24] [14:31:24]POST finish read [14:31:24]Found Content-Length = 639 [14:31:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458327", "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" : 71.90, "quantity" : 50.000, "sum" : 3595.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3595.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:24]execute_script... [14:31: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)458327", "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" : 71.90, "quantity" : 50.000, "sum" : 3595.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3595.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:24]POST & json_proto [14:31:24]process_json_proto [14:31:24]json parsed OK: [14:31:24]protocol is kg_v1.0 [14:31:24]action value=close_receipt [14:31:24]process_action close_receipt [14:31:24]cmd_close_receipt [14:31:24]MH_GetDate [14:31:24]Write to MH i2c: F0 00 00 A7 24 BA [14:31:24]Write i2c OK [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: F0 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: F0 09 00 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: F0 09 00 A7 24 00 3D 3E 91 66 C9 DC B2 64 F0 [14:31:24]GetLastDocTimeStamp 1720794673 [14:31:24]current date 1720794685 [14:31:24]FM_GetShiftState [14:31:24]SAM_PROTO_GetShiftState [14:31:24]wFMCommunicate request_size=4 [14:31:24]MH_SAM_APDU [14:31:24]CAPDU: 80 13 01 00 [14:31:24]Write to MH i2c: E2 08 00 A8 24 80 13 01 00 00 00 00 00 49 [14:31:24]Write i2c OK [14:31:24]MH_I2C_Read... [14:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:24]Read from MH i2c: E2 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: E2 0E 00 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: E2 0E 00 A8 24 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 93 [14:31:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:31:24]wFMCommunicate OK [14:31:24]SAM_PROTO_GetShiftState done [14:31:24]FM_GetShiftState done [14:31:24]opened in 1720744654 [14:31:24]opened+sec_in_day 1720831054 [14:31:24]quantity*price = 359500 [14:31:24]sum+1 = 359501 [14:31:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3595.00 НСП 1% : 31.81 НДС 12% : 381.77 Наличными: 3595.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 166 12.07.2024 14:31 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164245 ФПД: 33180950009340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143125&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164245&fm=33180950009340&tin=02508201610067®Number=0000000000090829&sum=359500 [14:31:25]StoreToDocumentArchive [14:31:25]shift 445 fd 164245 [14:31:25]save to /storage/0445/doc_00164245 [14:31:25]save last doc name /storage/0445/doc_00164245 to /storage/kkm_last_doc_name [14:31:25]save OK [14:31:25]Clear old archive folders... [14:31:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:31:25]tlvbuf is B6EC1760 [14:31:25]SAM_PROTO_ClearQueue [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 09 00 00 [14:31:25]Write to MH i2c: E2 08 00 B5 24 80 09 00 00 00 00 00 00 4B [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 B5 24 00 90 00 4D [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]SAM_PROTO_ClearQueue done [14:31:25]KKMCreateOFDPacket [14:31:25]OFDProtocolAddRootSTLVToBuf [14:31:25]FM_MakeSignedData [14:31:25]FM_MakeSignedData [14:31:25]SAM_PROTO_SignData [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 01 02 [14:31:25]Write to MH i2c: E2 08 00 B6 24 80 0D 01 02 00 00 00 00 53 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 B6 24 00 90 00 4E [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]wFMCommunicate request_size=255 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3D 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 81 02 00 35 04 06 00 1E 2D 8A BD [14:31:25]Write to MH i2c: E2 02 01 B7 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3D 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 81 02 00 35 04 06 00 1E 2D 8A BD 00 00 11 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 B7 24 00 90 00 4F [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]wFMCommunicate request_size=7 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 02 02 02 15 FC [14:31:25]Write to MH i2c: E2 0A 00 B8 24 80 0D 02 02 02 00 15 FC 00 00 6B [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 B8 24 00 90 00 50 [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 03 02 [14:31:25]Write to MH i2c: E2 08 00 B9 24 80 0D 03 02 00 00 00 00 58 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 0B 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 0B 00 B9 24 00 C1 CD D4 A8 52 24 B2 98 90 00 23 [14:31:25]RAPDU: C1 CD D4 A8 52 24 B2 98 90 00 [14:31:25]wFMCommunicate OK [14:31:25]SAM_PROTO_SignData done [14:31:25]FM_MakeSignedData done [14:31:25]CreateOFDProtocolMessage [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 11 00 00 [14:31:25]Write to MH i2c: E2 08 00 BA 24 80 11 00 00 00 00 00 00 58 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 17 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 17 00 BA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [14:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:31:25]wFMCommunicate OK [14:31:25]CreateOFDProtocolMessage done [14:31:25]OFDSenderStorePacket 164245 [14:31:25]StoreOFDPacket docnum=164245 [14:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E0 FD 04 01 A9 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 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3D 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 81 02 00 35 04 06 00 1E 2D 8A BD 15 FC C1 CD D4 A8 52 24 B2 98 [14:31:25]CheckFolder [14:31:25]dirname=/storage/ofd_packets [14:31:25]CheckFolder done [14:31:25]ProducePacketName [14:31:25]name=ofd_packets/00164245 [14:31:25]NVStorageSaveData ofd_packets/00164245 [14:31:25]File name is /storage/ofd_packets/00164245 [14:31:25]Write 298 bytes [14:31:25]NVStorageSaveData done [14:31:25]OFDSenderStorePacket done [14:31:25]KKMCreateOFDPacket done [14:31:25]NVStorageSaveData kkm_last_timestamp [14:31:25]File name is /storage/kkm_last_timestamp [14:31:25]Write 4 bytes [14:31:25]NVStorageSaveData done [14:31:25]ExternCall_PrintAddStr [14:31:25]wPrintStart [14:31:25]Write to MH i2c: 01 00 00 BB 24 DF [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: 01 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: 01 07 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: 01 07 00 BB 24 00 00 00 00 00 FF 0F F4 [14:31:25]RasterBufferAndPrint [14:31:25]line Счет N : (1)458327 [14:31:25]line ИНН: 02508201610067 [14:31:25]line Контрольно-Кассовый Чек [14:31:25]line ПРОДАЖА [14:31:25]line ТРК (МРК, ГНК) : 21 [14:31:25]line Товар: 2710194210 [14:31:25]line ДТ-К-5 [14:31:25]line 50.000 * 71.90 [14:31:25]line = 3595.00 [14:31:25]line НДС 12% НСП 1% [14:31:25]line > о реализуемом товаре [14:31:25]line ИТОГО: 3595.00 [14:31:25]line НСП 1% : 31.81 [14:31:25]line НДС 12% : 381.77 [14:31:25]line Наличными: 3595.00 [14:31:25]line Безнал.: 0.00 [14:31:25]line Место: АЗС № 72 "Партнер Нефть" [14:31:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:31:25]line СНО: Общий режим [14:31:25]line Чек 166 12.07.2024 14:31 [14:31:25]line Смена: 445 ФФД: 1.0 [14:31:25]line ЗНМ: 0300000160 [14:31:25]line РНМ: 0000000000090829 [14:31:25]line Версия ККМ: 001 [14:31:25]line ФМ: 0000000000874718 [14:31:25]line ФД: 164245 [14:31:25]line ФПД: 33180950009340 [14:31:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143125&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164245&fm=33180950009340&tin=02508201610067®Number=0000000000090829&sum=359500 [14:31:26]OFD Sender: Processing packet 164245 [packets to send 104, broken 103] [14:31:26]ProducePacketName [14:31:26]name=ofd_packets/00164245 [14:31:26]OFD Sender: To server: pG, [14:31:26]CommunicateWithHost lk.salyk.kg:30040 [14:31:26]ConnectInit lk.salyk.kg [14:31:26]written 0, free lines is 4095 [14:31:26]Connected sock=10 [14:31:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E0 FD 04 01 A9 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 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3D 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 81 02 00 35 04 06 00 1E 2D 8A BD 15 FC C1 CD D4 A8 52 24 B2 98 [14:31:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 86 D6 47 00 7E 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 34 37 31 38 10 04 04 00 95 81 02 00 F4 03 04 00 D2 E4 90 66 B6 04 01 00 00 D8 D5 62 DD 46 FA 82 8A [14:31:26]CommunicateWithHost err = 0 [14:31:26]CheckOFDResponse [14:31:26]1017 (14) - 77093643461234 [14:31:26]1041 (16) - 0000000000874718 [14:31:26]1040 (4) - 164245 [14:31:26]1012 (4) - 12.07.2024 08:09 [14:31:26]1206 (1) - 0 [14:31:26]OFD Sender: Remove packet 164245 [14:31:26]ProducePacketName [14:31:26]name=ofd_packets/00164245 [14:31:26]NVStorageDeleteData [14:31:26]Write to MH i2c: 01 00 00 E2 24 06 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 07 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 07 00 E2 24 00 00 00 00 00 1E 0D 38 [14:31:26]RasterBufferAndPrint [14:31:26]line [14:31:26]line [14:31:26]line [14:31:26]line [14:31:26]line [14:31:26]written 0, free lines is 3364 [14:31:26]MH_Cut [14:31:26]Write to MH i2c: D1 01 00 E9 24 01 DF [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: D1 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: D1 01 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: D1 01 00 E9 24 00 DE [14:31:26]Write to MH i2c: 01 00 00 EA 24 0E [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]OFD Sender: No OFD packet to send [14:31:27]*** Cut start [14:31:27]*** Partial cut [14:31:27]*** CUTSNS_PIN = 1 [14:31:27]*** CUTSNS_PIN = 0 [14:31:27]*** Brake cut motor [14:31:27]Read from MH i2c: 01 [14:31:27]MH_I2C_Read... [14:31:27]*** Stop cut motor [14:31:27]*** Cut end [14:31:27]Read from MH i2c: 01 07 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 EA 24 00 00 00 00 00 FF 0F 23 [14:31:27]process_action close_receipt done [14:31:27]requested_data is exist [14:31:27]produce_requested_data [14:31:27]requested_item fm.sn is exist - process it [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 11 00 00 [14:31:27]Write to MH i2c: E2 08 00 EB 24 80 11 00 00 00 00 00 00 89 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 17 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 17 00 EB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [14:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:31:27]wFMCommunicate OK [14:31:27]requested_item fd.num is exist - process it [14:31:27]SAM_PROTO_GetFieldsCounters [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 13 00 00 [14:31:27]Write to MH i2c: E2 08 00 EC 24 80 13 00 00 00 00 00 00 8C [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 62 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 62 00 EC 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [14:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_GetFieldsCounters done [14:31:28]requested_item shift.num is exist - process it [14:31:28]requested_item shift.opened is exist - process it [14:31:28]req_shift_opened [14:31:28]FM_GetShiftState [14:31:28]SAM_PROTO_GetShiftState [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 13 01 00 [14:31:28]Write to MH i2c: E2 08 00 ED 24 80 13 01 00 00 00 00 00 8E [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 ED 24 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D8 [14:31:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_GetShiftState done [14:31:28]FM_GetShiftState done [14:31:28]req_shift_opened done [14:31:28]requested_item shift.open_date is exist - process it [14:31:28]req_shift_open_date [14:31:28]req_shift_open_date done [14:31:28]produce_requested_data done [14:31:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164245,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:31:28]process_action_free close_receipt [14:31:28]json_value_free [14:31:28]json_value_free done [14:31:28]process_json_proto returns [14:31:28]Send response to host [14:31:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164245,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:31:28]free response buf [14:31:28]execute_script done [14:31:28]execute_script returns [14:31:28]free content buf [14:31:28]Sock 9.Close socket [14:31:28]Sock 9.Thread stoped [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:21]accept exits with 7 [14:32:21]New connection [14:32:21]New thread 3066707300 created [14:32:21]Thread 3066850660 joined [14:32:21]Waiting for new connection... [14:32:21] Sock 7.Parse request [14:32:21]Sock 7.Check first char [14:32:21]Sock 7.First char is OK [14:32:21]request: POST /json_proto HTTP/1.0 [14:32:21]Method: POST [14:32:21]URL: /json_proto [14:32:21]Method is POST - this is cgi request [14:32:21]url: /json_proto [14:32:21]query_string will be loaded in cgi processing [14:32:21]execute_cgi json_proto POST (null) [14:32:21]execute_cgi path=json_proto method=POST [14:32:21]POST find Content-Length [14:32:21]Host: 172.17.56.4:8080 [14:32:21]Content-Length: 791 [14:32:21]Content-Type: application/json [14:32:21] [14:32:21]POST finish read [14:32:21]Found Content-Length = 791 [14:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:21]execute_script... [14:32:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:21]POST & json_proto [14:32:21]process_json_proto [14:32:21]json parsed OK: [14:32:21]protocol is kg_v1.0 [14:32:21]action value=close_receipt [14:32:21]process_action close_receipt [14:32:21]cmd_close_receipt [14:32:21]MH_GetDate [14:32:21]Write to MH i2c: F0 00 00 EE 24 01 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: F0 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: F0 09 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: F0 09 00 EE 24 00 77 3E 91 66 C9 DC B2 64 71 [14:32:21]GetLastDocTimeStamp 1720794685 [14:32:21]current date 1720794743 [14:32:21]FM_GetShiftState [14:32:21]SAM_PROTO_GetShiftState [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 13 01 00 [14:32:21]Write to MH i2c: E2 08 00 EF 24 80 13 01 00 00 00 00 00 90 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0E 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0E 00 EF 24 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DA [14:32:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:32:21]wFMCommunicate OK [14:32:21]SAM_PROTO_GetShiftState done [14:32:21]FM_GetShiftState done [14:32:21]opened in 1720744654 [14:32:21]opened+sec_in_day 1720831054 [14:32:21]quantity*price = 65220 [14:32:21]sum+1 = 65221 [14:32:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 167 12.07.2024 14:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164246 ФПД: 225089360421815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143223&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164246&fm=225089360421815&tin=02508201610067®Number=0000000000090829&sum=65220 [14:32:22]StoreToDocumentArchive [14:32:22]shift 445 fd 164246 [14:32:22]save to /storage/0445/doc_00164246 [14:32:22]save last doc name /storage/0445/doc_00164246 to /storage/kkm_last_doc_name [14:32:22]save OK [14:32:22]Clear old archive folders... [14:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:22]tlvbuf is B6E8F2F0 [14:32:22]SAM_PROTO_ClearQueue [14:32:22]wFMCommunicate request_size=4 [14:32:22]MH_SAM_APDU [14:32:22]CAPDU: 80 09 00 00 [14:32:22]Write to MH i2c: E2 08 00 FC 24 80 09 00 00 00 00 00 00 92 [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:22]Read from MH i2c: E2 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 FC 24 00 90 00 94 [14:32:22]RAPDU: 90 00 [14:32:22]wFMCommunicate OK [14:32:22]SAM_PROTO_ClearQueue done [14:32:22]KKMCreateOFDPacket [14:32:22]OFDProtocolAddRootSTLVToBuf [14:32:22]FM_MakeSignedData [14:32:22]FM_MakeSignedData [14:32:22]SAM_PROTO_SignData [14:32:22]wFMCommunicate request_size=4 [14:32:22]MH_SAM_APDU [14:32:22]CAPDU: 80 0D 01 02 [14:32:22]Write to MH i2c: E2 08 00 FD 24 80 0D 01 02 00 00 00 00 9A [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:22]Read from MH i2c: E2 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 FD 24 00 90 00 95 [14:32:22]RAPDU: 90 00 [14:32:22]wFMCommunicate OK [14:32:22]wFMCommunicate request_size=255 [14:32:22]MH_SAM_APDU [14:32: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 77 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 81 02 00 35 04 06 00 CC [14:32:22]Write to MH i2c: E2 02 01 FE 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 77 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 81 02 00 35 04 06 00 CC 00 00 1C [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:23]Read from MH i2c: E2 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 03 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 03 00 FE 24 00 90 00 96 [14:32:23]RAPDU: 90 00 [14:32:23]wFMCommunicate OK [14:32:23]wFMCommunicate request_size=10 [14:32:23]MH_SAM_APDU [14:32:23]CAPDU: 80 0D 02 02 05 B7 B3 5E E3 B7 [14:32:23]Write to MH i2c: E2 0D 00 FF 24 80 0D 02 02 05 00 B7 B3 5E E3 B7 00 00 09 [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:23]Read from MH i2c: E2 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 03 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 03 00 FF 24 00 90 00 97 [14:32:23]RAPDU: 90 00 [14:32:23]wFMCommunicate OK [14:32:23]wFMCommunicate request_size=4 [14:32:23]MH_SAM_APDU [14:32:23]CAPDU: 80 0D 03 02 [14:32:23]Write to MH i2c: E2 08 00 00 25 80 0D 03 02 00 00 00 00 A0 [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:23]Read from MH i2c: E2 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 0B 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 0B 00 00 25 00 A8 E7 B9 3E 2A B2 DD 2D 90 00 0D [14:32:23]RAPDU: A8 E7 B9 3E 2A B2 DD 2D 90 00 [14:32:23]wFMCommunicate OK [14:32:23]SAM_PROTO_SignData done [14:32:23]FM_MakeSignedData done [14:32:23]CreateOFDProtocolMessage [14:32:23]wFMCommunicate request_size=4 [14:32:23]MH_SAM_APDU [14:32:23]CAPDU: 80 11 00 00 [14:32:23]Write to MH i2c: E2 08 00 01 25 80 11 00 00 00 00 00 00 A0 [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:23]Read from MH i2c: E2 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 17 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 17 00 01 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F6 [14:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:32:23]wFMCommunicate OK [14:32:23]CreateOFDProtocolMessage done [14:32:23]OFDSenderStorePacket 164246 [14:32:23]StoreOFDPacket docnum=164246 [14:32:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 F4 07 01 12 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 77 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 81 02 00 35 04 06 00 CC B7 B3 5E E3 B7 A8 E7 B9 3E 2A B2 DD 2D [14:32:23]CheckFolder [14:32:23]dirname=/storage/ofd_packets [14:32:23]CheckFolder done [14:32:23]ProducePacketName [14:32:23]name=ofd_packets/00164246 [14:32:23]NVStorageSaveData ofd_packets/00164246 [14:32:23]File name is /storage/ofd_packets/00164246 [14:32:23]Write 301 bytes [14:32:23]NVStorageSaveData done [14:32:23]OFDSenderStorePacket done [14:32:23]KKMCreateOFDPacket done [14:32:23]NVStorageSaveData kkm_last_timestamp [14:32:23]File name is /storage/kkm_last_timestamp [14:32:23]Write 4 bytes [14:32:23]NVStorageSaveData done [14:32:23]ExternCall_PrintAddStr [14:32:23]wPrintStart [14:32:23]Write to MH i2c: 01 00 00 02 25 27 [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 07 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 07 00 02 25 00 00 00 00 00 FF 0F 3C [14:32:23]RasterBufferAndPrint [14:32:23]line Счет N : (1)458329 [14:32:23]line ИНН: 02508201610067 [14:32:23]line Контрольно-Кассовый Чек [14:32:23]line ПРОДАЖА [14:32:23]line ТРК (МРК, ГНК) : 12 [14:32:23]line Товар: 2710124130 [14:32:23]line Аи-92-К-5 [14:32:23]line 10.000 * 65.22 [14:32:23]line = 652.20 [14:32:23]line НДС 12% НСП 1% [14:32:23]line > о реализуемом товаре [14:32:23]line ИТОГО: 652.20 [14:32:23]line НСП 1% : 5.77 [14:32:23]line НДС 12% : 69.26 [14:32:23]line Наличными: 0.00 [14:32:23]line Безнал.: 652.20 [14:32:23]line Место: АЗС № 72 "Партнер Нефть" [14:32:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:32:23]line СНО: Общий режим [14:32:23]line Чек 167 12.07.2024 14:32 [14:32:23]line Смена: 445 ФФД: 1.0 [14:32:23]line ЗНМ: 0300000160 [14:32:23]line РНМ: 0000000000090829 [14:32:23]line Версия ККМ: 001 [14:32:23]line Платежная система: KICB Банк [14:32:23]line ФМ: 0000000000874718 [14:32:23]line ФД: 164246 [14:32:23]line ФПД: 225089360421815 [14:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143223&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164246&fm=225089360421815&tin=02508201610067®Number=0000000000090829&sum=65220 [14:32:23]OFD Sender: Processing packet 164246 [packets to send 104, broken 103] [14:32:23]ProducePacketName [14:32:23]name=ofd_packets/00164246 [14:32:23]OFD Sender: To server: pG, [14:32:23]CommunicateWithHost lk.salyk.kg:30040 [14:32:23]ConnectInit lk.salyk.kg [14:32:23]written 0, free lines is 4095 [14:32:23]Connected sock=10 [14:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 F4 07 01 12 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 77 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 81 02 00 35 04 06 00 CC B7 B3 5E E3 B7 A8 E7 B9 3E 2A B2 DD 2D [14:32:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 89 A4 47 00 33 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 34 37 31 38 10 04 04 00 96 81 02 00 F4 03 04 00 0B E5 90 66 B6 04 01 00 00 58 57 C6 9B 73 75 5A F1 [14:32:24]CommunicateWithHost err = 0 [14:32:24]CheckOFDResponse [14:32:24]1017 (14) - 77093643461234 [14:32:24]1041 (16) - 0000000000874718 [14:32:24]1040 (4) - 164246 [14:32:24]1012 (4) - 12.07.2024 08:10 [14:32:24]1206 (1) - 0 [14:32:24]OFD Sender: Remove packet 164246 [14:32:24]ProducePacketName [14:32:24]name=ofd_packets/00164246 [14:32:24]NVStorageDeleteData [14:32:24]Write to MH i2c: 01 00 00 2B 25 50 [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 2B 25 00 00 00 00 00 01 0D 65 [14:32:24]RasterBufferAndPrint [14:32:24]line [14:32:24]line [14:32:24]line [14:32:24]line [14:32:24]line [14:32:24]written 0, free lines is 3335 [14:32:24]MH_Cut [14:32:24]Write to MH i2c: D1 01 00 32 25 01 29 [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: D1 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: D1 01 00 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: D1 01 00 32 25 00 28 [14:32:24]Write to MH i2c: 01 00 00 33 25 58 [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:24]OFD Sender: No OFD packet to send [14:32:24]*** Cut start [14:32:24]*** Partial cut [14:32:24]*** CUTSNS_PIN = 1 [14:32:24]*** CUTSNS_PIN = 0 [14:32:25]*** Brake cut motor [14:32:25]Read from MH i2c: 01 [14:32:25]MH_I2C_Read... [14:32:25]*** Stop cut motor [14:32:25]*** Cut end [14:32:25]Read from MH i2c: 01 07 00 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: 01 07 00 33 25 00 00 00 00 00 FF 0F 6D [14:32:25]process_action close_receipt done [14:32:25]requested_data is exist [14:32:25]produce_requested_data [14:32:25]requested_item fm.sn is exist - process it [14:32:25]wFMCommunicate request_size=4 [14:32:25]MH_SAM_APDU [14:32:25]CAPDU: 80 11 00 00 [14:32:25]Write to MH i2c: E2 08 00 34 25 80 11 00 00 00 00 00 00 D3 [14:32:25]Write i2c OK [14:32:25]MH_I2C_Read... [14:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:25]Read from MH i2c: E2 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 17 00 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 17 00 34 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [14:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:32:25]wFMCommunicate OK [14:32:25]requested_item fd.num is exist - process it [14:32:25]SAM_PROTO_GetFieldsCounters [14:32:25]wFMCommunicate request_size=4 [14:32:25]MH_SAM_APDU [14:32:25]CAPDU: 80 13 00 00 [14:32:25]Write to MH i2c: E2 08 00 35 25 80 13 00 00 00 00 00 00 D6 [14:32:25]Write i2c OK [14:32:25]MH_I2C_Read... [14:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:25]Read from MH i2c: E2 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 62 00 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 62 00 35 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [14:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:25]wFMCommunicate OK [14:32:25]SAM_PROTO_GetFieldsCounters done [14:32:25]requested_item shift.num is exist - process it [14:32:25]requested_item shift.opened is exist - process it [14:32:25]req_shift_opened [14:32:25]FM_GetShiftState [14:32:25]SAM_PROTO_GetShiftState [14:32:25]wFMCommunicate request_size=4 [14:32:25]MH_SAM_APDU [14:32:25]CAPDU: 80 13 01 00 [14:32:25]Write to MH i2c: E2 08 00 36 25 80 13 01 00 00 00 00 00 D8 [14:32:25]Write i2c OK [14:32:25]MH_I2C_Read... [14:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:25]Read from MH i2c: E2 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 0E 00 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 0E 00 36 25 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 22 [14:32:25]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:32:25]wFMCommunicate OK [14:32:25]SAM_PROTO_GetShiftState done [14:32:25]FM_GetShiftState done [14:32:25]req_shift_opened done [14:32:25]requested_item shift.open_date is exist - process it [14:32:25]req_shift_open_date [14:32:25]req_shift_open_date done [14:32:25]produce_requested_data done [14:32:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164246,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:32:25]process_action_free close_receipt [14:32:25]json_value_free [14:32:25]json_value_free done [14:32:25]process_json_proto returns [14:32:25]Send response to host [14:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164246,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:32:25]free response buf [14:32:25]execute_script done [14:32:25]execute_script returns [14:32:25]free content buf [14:32:25]Sock 7.Close socket [14:32:25]Sock 7.Thread stoped [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]accept exits with 9 [14:32:44]New connection [14:32:44]New thread 3066850660 created [14:32:44]Thread 3066707300 joined [14:32:44]Waiting for new connection... [14:32:44] Sock 9.Parse request [14:32:44]Sock 9.Check first char [14:32:44]Sock 9.First char is OK [14:32:44]request: POST /json_proto HTTP/1.0 [14:32:44]Method: POST [14:32:44]URL: /json_proto [14:32:44]Method is POST - this is cgi request [14:32:44]url: /json_proto [14:32:44]query_string will be loaded in cgi processing [14:32:44]execute_cgi json_proto POST (null) [14:32:44]execute_cgi path=json_proto method=POST [14:32:44]POST find Content-Length [14:32:44]Host: 172.17.56.4:8080 [14:32:44]Content-Length: 677 [14:32:44]Content-Type: application/json [14:32:44] [14:32:44]POST finish read [14:32:44]Found Content-Length = 677 [14:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:32:44]execute_script... [14:32:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:32:44]POST & json_proto [14:32:44]process_json_proto [14:32:44]json parsed OK: [14:32:44]protocol is kg_v1.0 [14:32:44]action value=close_receipt [14:32:44]process_action close_receipt [14:32:44]cmd_close_receipt [14:32:44]MH_GetDate [14:32:44]Write to MH i2c: F0 00 00 37 25 4B [14:32:44]Write i2c OK [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: F0 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: F0 09 00 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: F0 09 00 37 25 00 8E 3E 91 66 C9 DC B2 64 D2 [14:32:44]GetLastDocTimeStamp 1720794743 [14:32:44]current date 1720794766 [14:32:44]FM_GetShiftState [14:32:44]SAM_PROTO_GetShiftState [14:32:44]wFMCommunicate request_size=4 [14:32:44]MH_SAM_APDU [14:32:44]CAPDU: 80 13 01 00 [14:32:44]Write to MH i2c: E2 08 00 38 25 80 13 01 00 00 00 00 00 DA [14:32:44]Write i2c OK [14:32:44]MH_I2C_Read... [14:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:44]Read from MH i2c: E2 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: E2 0E 00 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: E2 0E 00 38 25 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 24 [14:32:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:32:44]wFMCommunicate OK [14:32:44]SAM_PROTO_GetShiftState done [14:32:44]FM_GetShiftState done [14:32:44]opened in 1720744654 [14:32:44]opened+sec_in_day 1720831054 [14:32:44]quantity*price = 40006 [14:32:44]sum+1 = 40007 [14:32: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 168 12.07.2024 14:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164247 ФПД: 110229104915167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143246&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164247&fm=110229104915167&tin=02508201610067®Number=0000000000090829&sum=40000 [14:32:45]StoreToDocumentArchive [14:32:45]shift 445 fd 164247 [14:32:45]save to /storage/0445/doc_00164247 [14:32:45]save last doc name /storage/0445/doc_00164247 to /storage/kkm_last_doc_name [14:32:45]save OK [14:32:45]Clear old archive folders... [14:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:45]tlvbuf is B6EC1640 [14:32:45]SAM_PROTO_ClearQueue [14:32:45]wFMCommunicate request_size=4 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 09 00 00 [14:32:45]Write to MH i2c: E2 08 00 45 25 80 09 00 00 00 00 00 00 DC [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 45 25 00 90 00 DE [14:32:45]RAPDU: 90 00 [14:32:45]wFMCommunicate OK [14:32:45]SAM_PROTO_ClearQueue done [14:32:45]KKMCreateOFDPacket [14:32:45]OFDProtocolAddRootSTLVToBuf [14:32:45]FM_MakeSignedData [14:32:45]FM_MakeSignedData [14:32:45]SAM_PROTO_SignData [14:32:45]wFMCommunicate request_size=4 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 0D 01 02 [14:32:45]Write to MH i2c: E2 08 00 46 25 80 0D 01 02 00 00 00 00 E4 [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 46 25 00 90 00 DF [14:32:45]RAPDU: 90 00 [14:32:45]wFMCommunicate OK [14:32:45]wFMCommunicate request_size=255 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 A8 00 00 00 F4 03 04 00 8E 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 81 02 00 35 04 06 00 64 [14:32:45]Write to MH i2c: E2 02 01 47 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 A8 00 00 00 F4 03 04 00 8E 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 81 02 00 35 04 06 00 64 00 00 E4 [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 47 25 00 90 00 E0 [14:32:45]RAPDU: 90 00 [14:32:45]wFMCommunicate OK [14:32:45]wFMCommunicate request_size=10 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 0D 02 02 05 40 B6 A4 72 DF [14:32:45]Write to MH i2c: E2 0D 00 48 25 80 0D 02 02 05 00 40 B6 A4 72 DF 00 00 DC [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 48 25 00 90 00 E1 [14:32:45]RAPDU: 90 00 [14:32:45]wFMCommunicate OK [14:32:45]wFMCommunicate request_size=4 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 0D 03 02 [14:32:45]Write to MH i2c: E2 08 00 49 25 80 0D 03 02 00 00 00 00 E9 [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:46]Read from MH i2c: E2 0B 00 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: E2 0B 00 49 25 00 AF 56 D1 BE 64 88 5B D4 90 00 99 [14:32:46]RAPDU: AF 56 D1 BE 64 88 5B D4 90 00 [14:32:46]wFMCommunicate OK [14:32:46]SAM_PROTO_SignData done [14:32:46]FM_MakeSignedData done [14:32:46]CreateOFDProtocolMessage [14:32:46]wFMCommunicate request_size=4 [14:32:46]MH_SAM_APDU [14:32:46]CAPDU: 80 11 00 00 [14:32:46]Write to MH i2c: E2 08 00 4A 25 80 11 00 00 00 00 00 00 E9 [14:32:46]Write i2c OK [14:32:46]MH_I2C_Read... [14:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:46]Read from MH i2c: E2 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: E2 17 00 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: E2 17 00 4A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [14:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:32:46]wFMCommunicate OK [14:32:46]CreateOFDProtocolMessage done [14:32:46]OFDSenderStorePacket 164247 [14:32:46]StoreOFDPacket docnum=164247 [14:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E8 18 07 01 F9 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 A8 00 00 00 F4 03 04 00 8E 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 81 02 00 35 04 06 00 64 40 B6 A4 72 DF AF 56 D1 BE 64 88 5B D4 [14:32:46]CheckFolder [14:32:46]dirname=/storage/ofd_packets [14:32:46]CheckFolder done [14:32:46]ProducePacketName [14:32:46]name=ofd_packets/00164247 [14:32:46]NVStorageSaveData ofd_packets/00164247 [14:32:46]File name is /storage/ofd_packets/00164247 [14:32:46]Write 301 bytes [14:32:46]NVStorageSaveData done [14:32:46]OFDSenderStorePacket done [14:32:46]KKMCreateOFDPacket done [14:32:46]NVStorageSaveData kkm_last_timestamp [14:32:46]File name is /storage/kkm_last_timestamp [14:32:46]Write 4 bytes [14:32:46]NVStorageSaveData done [14:32:46]ExternCall_PrintAddStr [14:32:46]wPrintStart [14:32:46]Write to MH i2c: 01 00 00 4B 25 70 [14:32:46]Write i2c OK [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: 01 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: 01 07 00 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: 01 07 00 4B 25 00 00 00 00 00 FF 0F 85 [14:32:46]RasterBufferAndPrint [14:32:46]line Счет N : (1)458330 [14:32:46]line ИНН: 02508201610067 [14:32:46]line Контрольно-Кассовый Чек [14:32:46]line ПРОДАЖА [14:32:46]line ТРК (МРК, ГНК) : 22 [14:32:46]line Товар: 2710124130 [14:32:46]line Аи-92-К-5 [14:32:46]line 6.080 * 65.80 [14:32:46]line = 400.06 [14:32:46]line НДС 12% НСП 1% [14:32:46]line > о реализуемом товаре [14:32:46]line ОКРУГЛЕНИЕ: -0.06 [14:32:46]line ИТОГО: 400.00 [14:32:46]line Внесено: 400.00 [14:32:46]line СДАЧА: 0.00 [14:32:46]line НСП 1% : 3.54 [14:32:46]line НДС 12% : 42.48 [14:32:46]line Наличными: 400.00 [14:32:46]line Безнал.: 0.00 [14:32:46]line Место: АЗС № 72 "Партнер Нефть" [14:32:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:32:46]line СНО: Общий режим [14:32:46]line Чек 168 12.07.2024 14:32 [14:32:46]line Смена: 445 ФФД: 1.0 [14:32:46]line ЗНМ: 0300000160 [14:32:46]line РНМ: 0000000000090829 [14:32:46]line Версия ККМ: 001 [14:32:46]line ФМ: 0000000000874718 [14:32:46]line ФД: 164247 [14:32:46]line ФПД: 110229104915167 [14:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143246&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164247&fm=110229104915167&tin=02508201610067®Number=0000000000090829&sum=40000 [14:32:46]written 0, free lines is 4095 [14:32:46]OFD Sender: Processing packet 164247 [packets to send 104, broken 103] [14:32:46]ProducePacketName [14:32:46]name=ofd_packets/00164247 [14:32:46]OFD Sender: To server: pG, [14:32:46]CommunicateWithHost lk.salyk.kg:30040 [14:32:46]ConnectInit lk.salyk.kg [14:32:46]Connected sock=10 [14:32:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E8 18 07 01 F9 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 A8 00 00 00 F4 03 04 00 8E 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 81 02 00 35 04 06 00 64 40 B6 A4 72 DF AF 56 D1 BE 64 88 5B D4 [14:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 64 52 47 00 04 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 34 37 31 38 10 04 04 00 97 81 02 00 F4 03 04 00 22 E5 90 66 B6 04 01 00 00 CE 27 BB 86 E4 AC B2 AB [14:32:46]CommunicateWithHost err = 0 [14:32:46]CheckOFDResponse [14:32:46]1017 (14) - 77093643461234 [14:32:46]1041 (16) - 0000000000874718 [14:32:46]1040 (4) - 164247 [14:32:46]1012 (4) - 12.07.2024 08:11 [14:32:46]1206 (1) - 0 [14:32:46]OFD Sender: Remove packet 164247 [14:32:46]ProducePacketName [14:32:46]name=ofd_packets/00164247 [14:32:46]NVStorageDeleteData [14:32:46]Write to MH i2c: 01 00 00 75 25 9A [14:32:46]Write i2c OK [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: 01 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: 01 07 00 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: 01 07 00 75 25 00 00 00 00 00 F7 0C A4 [14:32:46]RasterBufferAndPrint [14:32:46]line [14:32:46]line [14:32:46]line [14:32:46]line [14:32:46]line [14:32:46]written 0, free lines is 3326 [14:32:46]MH_Cut [14:32:46]Write to MH i2c: D1 01 00 7C 25 01 73 [14:32:46]Write i2c OK [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: D1 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: D1 01 00 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: D1 01 00 7C 25 00 72 [14:32:46]Write to MH i2c: 01 00 00 7D 25 A2 [14:32:46]Write i2c OK [14:32:46]MH_I2C_Read... [14:32:47]OFD Sender: No OFD packet to send [14:32:47]*** Cut start [14:32:47]*** Partial cut [14:32:47]*** CUTSNS_PIN = 1 [14:32:47]*** CUTSNS_PIN = 0 [14:32:47]*** Brake cut motor [14:32:48]Read from MH i2c: 01 [14:32:48]MH_I2C_Read... [14:32:48]*** Stop cut motor [14:32:48]*** Cut end [14:32:48]Read from MH i2c: 01 07 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 07 00 7D 25 00 00 00 00 00 FF 0F B7 [14:32:48]process_action close_receipt done [14:32:48]requested_data is exist [14:32:48]produce_requested_data [14:32:48]requested_item fm.sn is exist - process it [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 11 00 00 [14:32:48]Write to MH i2c: E2 08 00 7E 25 80 11 00 00 00 00 00 00 1D [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 17 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 17 00 7E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [14:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:32:48]wFMCommunicate OK [14:32:48]requested_item fd.num is exist - process it [14:32:48]SAM_PROTO_GetFieldsCounters [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 13 00 00 [14:32:48]Write to MH i2c: E2 08 00 7F 25 80 13 00 00 00 00 00 00 20 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 62 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 62 00 7F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [14:32:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:48]wFMCommunicate OK [14:32:48]SAM_PROTO_GetFieldsCounters done [14:32:48]requested_item shift.num is exist - process it [14:32:48]requested_item shift.opened is exist - process it [14:32:48]req_shift_opened [14:32:48]FM_GetShiftState [14:32:48]SAM_PROTO_GetShiftState [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 13 01 00 [14:32:48]Write to MH i2c: E2 08 00 80 25 80 13 01 00 00 00 00 00 22 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 0E 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 0E 00 80 25 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6C [14:32:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:32:48]wFMCommunicate OK [14:32:48]SAM_PROTO_GetShiftState done [14:32:48]FM_GetShiftState done [14:32:48]req_shift_opened done [14:32:48]requested_item shift.open_date is exist - process it [14:32:48]req_shift_open_date [14:32:48]req_shift_open_date done [14:32:48]produce_requested_data done [14:32:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164247,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:32:48]process_action_free close_receipt [14:32:48]json_value_free [14:32:48]json_value_free done [14:32:48]process_json_proto returns [14:32:48]Send response to host [14:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164247,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:32:48]free response buf [14:32:48]execute_script done [14:32:48]execute_script returns [14:32:48]free content buf [14:32:48]Sock 9.Close socket [14:32:48]Sock 9.Thread stoped [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:08]accept exits with 7 [14:33:08]New connection [14:33:08]New thread 3066707300 created [14:33:08]Thread 3066850660 joined [14:33:08]Waiting for new connection... [14:33:08] Sock 7.Parse request [14:33:08]Sock 7.Check first char [14:33:08]Sock 7.First char is OK [14:33:08]request: POST /json_proto HTTP/1.0 [14:33:08]Method: POST [14:33:08]URL: /json_proto [14:33:08]Method is POST - this is cgi request [14:33:08]url: /json_proto [14:33:08]query_string will be loaded in cgi processing [14:33:08]execute_cgi json_proto POST (null) [14:33:08]execute_cgi path=json_proto method=POST [14:33:08]POST find Content-Length [14:33:08]Host: 172.17.56.4:8080 [14:33:08]Content-Length: 682 [14:33:08]Content-Type: application/json [14:33:08] [14:33:08]POST finish read [14:33:08]Found Content-Length = 682 [14:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:33:08]execute_script... [14:33: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)458331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:33:08]POST & json_proto [14:33:08]process_json_proto [14:33:08]json parsed OK: [14:33:08]protocol is kg_v1.0 [14:33:08]action value=close_receipt [14:33:08]process_action close_receipt [14:33:08]cmd_close_receipt [14:33:08]MH_GetDate [14:33:08]Write to MH i2c: F0 00 00 81 25 95 [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: F0 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: F0 09 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: F0 09 00 81 25 00 A6 3E 91 66 C9 DC B2 64 34 [14:33:08]GetLastDocTimeStamp 1720794766 [14:33:08]current date 1720794790 [14:33:08]FM_GetShiftState [14:33:08]SAM_PROTO_GetShiftState [14:33:08]wFMCommunicate request_size=4 [14:33:08]MH_SAM_APDU [14:33:08]CAPDU: 80 13 01 00 [14:33:08]Write to MH i2c: E2 08 00 82 25 80 13 01 00 00 00 00 00 24 [14:33:08]Write i2c OK [14:33:08]MH_I2C_Read... [14:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:08]Read from MH i2c: E2 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 0E 00 [14:33:08]MH_I2C_Read... [14:33:08]Read from MH i2c: E2 0E 00 82 25 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6E [14:33:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:33:08]wFMCommunicate OK [14:33:08]SAM_PROTO_GetShiftState done [14:33:08]FM_GetShiftState done [14:33:08]opened in 1720744654 [14:33:08]opened+sec_in_day 1720831054 [14:33:08]quantity*price = 100016 [14:33:08]sum+1 = 100017 [14:33:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 169 12.07.2024 14:33 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164248 ФПД: 106196382695999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164248&fm=106196382695999&tin=02508201610067®Number=0000000000090829&sum=100000 [14:33:10]StoreToDocumentArchive [14:33:10]shift 445 fd 164248 [14:33:10]save to /storage/0445/doc_00164248 [14:33:10]save last doc name /storage/0445/doc_00164248 to /storage/kkm_last_doc_name [14:33:10]save OK [14:33:10]Clear old archive folders... [14:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:10]tlvbuf is B6EC1A70 [14:33:10]SAM_PROTO_ClearQueue [14:33:10]wFMCommunicate request_size=4 [14:33:10]MH_SAM_APDU [14:33:10]CAPDU: 80 09 00 00 [14:33:10]Write to MH i2c: E2 08 00 8F 25 80 09 00 00 00 00 00 00 26 [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:10]Read from MH i2c: E2 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 03 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 03 00 8F 25 00 90 00 28 [14:33:10]RAPDU: 90 00 [14:33:10]wFMCommunicate OK [14:33:10]SAM_PROTO_ClearQueue done [14:33:10]KKMCreateOFDPacket [14:33:10]OFDProtocolAddRootSTLVToBuf [14:33:10]FM_MakeSignedData [14:33:10]FM_MakeSignedData [14:33:10]SAM_PROTO_SignData [14:33:10]wFMCommunicate request_size=4 [14:33:10]MH_SAM_APDU [14:33:10]CAPDU: 80 0D 01 02 [14:33:10]Write to MH i2c: E2 08 00 90 25 80 0D 01 02 00 00 00 00 2E [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:10]Read from MH i2c: E2 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 03 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 03 00 90 25 00 90 00 29 [14:33:10]RAPDU: 90 00 [14:33:10]wFMCommunicate OK [14:33:10]wFMCommunicate request_size=255 [14:33:10]MH_SAM_APDU [14:33: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A6 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 81 02 00 35 04 06 00 60 [14:33:10]Write to MH i2c: E2 02 01 91 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A6 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 81 02 00 35 04 06 00 60 00 00 06 [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:10]Read from MH i2c: E2 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 03 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 03 00 91 25 00 90 00 2A [14:33:10]RAPDU: 90 00 [14:33:10]wFMCommunicate OK [14:33:10]wFMCommunicate request_size=10 [14:33:10]MH_SAM_APDU [14:33:10]CAPDU: 80 0D 02 02 05 95 C5 AA C2 3F [14:33:10]Write to MH i2c: E2 0D 00 92 25 80 0D 02 02 05 00 95 C5 AA C2 3F 00 00 40 [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:10]Read from MH i2c: E2 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 03 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 03 00 92 25 00 90 00 2B [14:33:10]RAPDU: 90 00 [14:33:10]wFMCommunicate OK [14:33:10]wFMCommunicate request_size=4 [14:33:10]MH_SAM_APDU [14:33:10]CAPDU: 80 0D 03 02 [14:33:10]Write to MH i2c: E2 08 00 93 25 80 0D 03 02 00 00 00 00 33 [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:10]Read from MH i2c: E2 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 0B 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 0B 00 93 25 00 0B BA 53 66 C1 FB CA 06 90 00 3E [14:33:10]RAPDU: 0B BA 53 66 C1 FB CA 06 90 00 [14:33:10]wFMCommunicate OK [14:33:10]SAM_PROTO_SignData done [14:33:10]FM_MakeSignedData done [14:33:10]CreateOFDProtocolMessage [14:33:10]wFMCommunicate request_size=4 [14:33:10]MH_SAM_APDU [14:33:10]CAPDU: 80 11 00 00 [14:33:10]Write to MH i2c: E2 08 00 94 25 80 11 00 00 00 00 00 00 33 [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:10]Read from MH i2c: E2 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 17 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: E2 17 00 94 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [14:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:33:10]wFMCommunicate OK [14:33:10]CreateOFDProtocolMessage done [14:33:10]OFDSenderStorePacket 164248 [14:33:10]StoreOFDPacket docnum=164248 [14:33:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E CE 07 01 B1 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A6 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 81 02 00 35 04 06 00 60 95 C5 AA C2 3F 0B BA 53 66 C1 FB CA 06 [14:33:10]CheckFolder [14:33:10]dirname=/storage/ofd_packets [14:33:10]CheckFolder done [14:33:10]ProducePacketName [14:33:10]name=ofd_packets/00164248 [14:33:10]NVStorageSaveData ofd_packets/00164248 [14:33:10]File name is /storage/ofd_packets/00164248 [14:33:10]Write 301 bytes [14:33:10]NVStorageSaveData done [14:33:10]OFDSenderStorePacket done [14:33:10]KKMCreateOFDPacket done [14:33:10]NVStorageSaveData kkm_last_timestamp [14:33:10]File name is /storage/kkm_last_timestamp [14:33:10]Write 4 bytes [14:33:10]NVStorageSaveData done [14:33:10]ExternCall_PrintAddStr [14:33:10]wPrintStart [14:33:10]Write to MH i2c: 01 00 00 95 25 BA [14:33:10]Write i2c OK [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: 01 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: 01 07 00 [14:33:10]MH_I2C_Read... [14:33:10]Read from MH i2c: 01 07 00 95 25 00 00 00 00 00 FF 0F CF [14:33:10]RasterBufferAndPrint [14:33:10]line Счет N : (1)458331 [14:33:10]line ИНН: 02508201610067 [14:33:10]line Контрольно-Кассовый Чек [14:33:10]line ПРОДАЖА [14:33:10]line ТРК (МРК, ГНК) : 12 [14:33:10]line Товар: 2710124130 [14:33:10]line Аи-92-К-5 [14:33:10]line 15.200 * 65.80 [14:33:10]line = 1000.16 [14:33:10]line НДС 12% НСП 1% [14:33:10]line > о реализуемом товаре [14:33:10]line ОКРУГЛЕНИЕ: -0.16 [14:33:10]line ИТОГО: 1000.00 [14:33:10]line Внесено: 1000.00 [14:33:10]line СДАЧА: 0.00 [14:33:10]line НСП 1% : 8.85 [14:33:10]line НДС 12% : 106.21 [14:33:10]line Наличными: 1000.00 [14:33:10]line Безнал.: 0.00 [14:33:10]line Место: АЗС № 72 "Партнер Нефть" [14:33:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:33:10]line СНО: Общий режим [14:33:10]line Чек 169 12.07.2024 14:33 [14:33:10]line Смена: 445 ФФД: 1.0 [14:33:10]line ЗНМ: 0300000160 [14:33:10]line РНМ: 0000000000090829 [14:33:10]line Версия ККМ: 001 [14:33:10]line ФМ: 0000000000874718 [14:33:10]line ФД: 164248 [14:33:10]line ФПД: 106196382695999 [14:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164248&fm=106196382695999&tin=02508201610067®Number=0000000000090829&sum=100000 [14:33:10]OFD Sender: Processing packet 164248 [packets to send 104, broken 103] [14:33:10]ProducePacketName [14:33:10]name=ofd_packets/00164248 [14:33:10]OFD Sender: To server: pG, [14:33:10]CommunicateWithHost lk.salyk.kg:30040 [14:33:10]ConnectInit lk.salyk.kg [14:33:10]written 0, free lines is 4095 [14:33:11]Connected sock=10 [14:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E CE 07 01 B1 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 A6 3E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 81 02 00 35 04 06 00 60 95 C5 AA C2 3F 0B BA 53 66 C1 FB CA 06 [14:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 89 02 47 00 B3 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 34 37 31 38 10 04 04 00 98 81 02 00 F4 03 04 00 3A E5 90 66 B6 04 01 00 00 4F 6A 7E A2 4B 8C 8E 5C [14:33:11]CommunicateWithHost err = 0 [14:33:11]CheckOFDResponse [14:33:11]1017 (14) - 77093643461234 [14:33:11]1041 (16) - 0000000000874718 [14:33:11]1040 (4) - 164248 [14:33:11]1012 (4) - 12.07.2024 08:11 [14:33:11]1206 (1) - 0 [14:33:11]OFD Sender: Remove packet 164248 [14:33:11]ProducePacketName [14:33:11]name=ofd_packets/00164248 [14:33:11]NVStorageDeleteData [14:33:11]Write to MH i2c: 01 00 00 BF 25 E4 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: 01 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: 01 07 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: 01 07 00 BF 25 00 00 00 00 00 F8 0C EF [14:33:11]RasterBufferAndPrint [14:33:11]line [14:33:11]line [14:33:11]line [14:33:11]line [14:33:11]line [14:33:11]written 0, free lines is 3328 [14:33:11]MH_Cut [14:33:11]Write to MH i2c: D1 01 00 C6 25 01 BD [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: D1 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: D1 01 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: D1 01 00 C6 25 00 BC [14:33:11]Write to MH i2c: 01 00 00 C7 25 EC [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]OFD Sender: No OFD packet to send [14:33:12]*** Cut start [14:33:12]*** Partial cut [14:33:12]*** CUTSNS_PIN = 1 [14:33:12]*** CUTSNS_PIN = 0 [14:33:12]*** Brake cut motor [14:33:12]Read from MH i2c: 01 [14:33:12]MH_I2C_Read... [14:33:12]*** Stop cut motor [14:33:12]*** Cut end [14:33:12]Read from MH i2c: 01 07 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 C7 25 00 00 00 00 00 FF 0F 01 [14:33:12]process_action close_receipt done [14:33:12]requested_data is exist [14:33:12]produce_requested_data [14:33:12]requested_item fm.sn is exist - process it [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 11 00 00 [14:33:12]Write to MH i2c: E2 08 00 C8 25 80 11 00 00 00 00 00 00 67 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 C8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [14:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:33:12]wFMCommunicate OK [14:33:12]requested_item fd.num is exist - process it [14:33:12]SAM_PROTO_GetFieldsCounters [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 13 00 00 [14:33:12]Write to MH i2c: E2 08 00 C9 25 80 13 00 00 00 00 00 00 6A [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 62 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 62 00 C9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [14:33: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_GetFieldsCounters done [14:33:12]requested_item shift.num is exist - process it [14:33:12]requested_item shift.opened is exist - process it [14:33:12]req_shift_opened [14:33:12]FM_GetShiftState [14:33:12]SAM_PROTO_GetShiftState [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 13 01 00 [14:33:12]Write to MH i2c: E2 08 00 CA 25 80 13 01 00 00 00 00 00 6C [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0E 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0E 00 CA 25 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B6 [14:33:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_GetShiftState done [14:33:12]FM_GetShiftState done [14:33:12]req_shift_opened done [14:33:12]requested_item shift.open_date is exist - process it [14:33:12]req_shift_open_date [14:33:12]req_shift_open_date done [14:33:12]produce_requested_data done [14:33:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164248,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:33:12]process_action_free close_receipt [14:33:12]json_value_free [14:33:12]json_value_free done [14:33:12]process_json_proto returns [14:33:12]Send response to host [14:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164248,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:33:12]free response buf [14:33:12]execute_script done [14:33:12]execute_script returns [14:33:12]free content buf [14:33:12]Sock 7.Close socket [14:33:12]Sock 7.Thread stoped [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:42]accept exits with 9 [14:36:42]New connection [14:36:42]New thread 3066850660 created [14:36:42]Thread 3066707300 joined [14:36:42]Waiting for new connection... [14:36:42] Sock 9.Parse request [14:36:42]Sock 9.Check first char [14:36:42]Sock 9.First char is OK [14:36:42]request: POST /json_proto HTTP/1.0 [14:36:42]Method: POST [14:36:42]URL: /json_proto [14:36:42]Method is POST - this is cgi request [14:36:42]url: /json_proto [14:36:42]query_string will be loaded in cgi processing [14:36:42]execute_cgi json_proto POST (null) [14:36:42]execute_cgi path=json_proto method=POST [14:36:42]POST find Content-Length [14:36:42]Host: 172.17.56.4:8080 [14:36:42]Content-Length: 678 [14:36:42]Content-Type: application/json [14:36:42] [14:36:42]POST finish read [14:36:42]Found Content-Length = 678 [14:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:36:42]execute_script... [14:36:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:36:42]POST & json_proto [14:36:42]process_json_proto [14:36:42]json parsed OK: [14:36:42]protocol is kg_v1.0 [14:36:42]action value=close_receipt [14:36:42]process_action close_receipt [14:36:42]cmd_close_receipt [14:36:42]MH_GetDate [14:36:42]Write to MH i2c: F0 00 00 CB 25 DF [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: F0 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: F0 09 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: F0 09 00 CB 25 00 7B 3F 91 66 C9 DC B2 64 54 [14:36:42]GetLastDocTimeStamp 1720794790 [14:36:42]current date 1720795003 [14:36:42]FM_GetShiftState [14:36:42]SAM_PROTO_GetShiftState [14:36:42]wFMCommunicate request_size=4 [14:36:42]MH_SAM_APDU [14:36:42]CAPDU: 80 13 01 00 [14:36:42]Write to MH i2c: E2 08 00 CC 25 80 13 01 00 00 00 00 00 6E [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:42]Read from MH i2c: E2 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 0E 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 0E 00 CC 25 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B8 [14:36:42]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:36:42]wFMCommunicate OK [14:36:42]SAM_PROTO_GetShiftState done [14:36:42]FM_GetShiftState done [14:36:42]opened in 1720744654 [14:36:42]opened+sec_in_day 1720831054 [14:36:42]quantity*price = 70011 [14:36:42]sum+1 = 70012 [14:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 170 12.07.2024 14:36 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164249 ФПД: 131823885003344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143644&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164249&fm=131823885003344&tin=02508201610067®Number=0000000000090829&sum=70000 [14:36:43]StoreToDocumentArchive [14:36:43]shift 445 fd 164249 [14:36:43]save to /storage/0445/doc_00164249 [14:36:43]save last doc name /storage/0445/doc_00164249 to /storage/kkm_last_doc_name [14:36:43]save OK [14:36:43]Clear old archive folders... [14:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:43]tlvbuf is 00A68CB0 [14:36:43]SAM_PROTO_ClearQueue [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 09 00 00 [14:36:43]Write to MH i2c: E2 08 00 D9 25 80 09 00 00 00 00 00 00 70 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 D9 25 00 90 00 72 [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_ClearQueue done [14:36:43]KKMCreateOFDPacket [14:36:43]OFDProtocolAddRootSTLVToBuf [14:36:43]FM_MakeSignedData [14:36:43]FM_MakeSignedData [14:36:43]SAM_PROTO_SignData [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 01 02 [14:36:43]Write to MH i2c: E2 08 00 DA 25 80 0D 01 02 00 00 00 00 78 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 DA 25 00 90 00 73 [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]wFMCommunicate request_size=255 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 7C 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 81 02 00 35 04 06 00 77 [14:36:43]Write to MH i2c: E2 02 01 DB 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 7C 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 81 02 00 35 04 06 00 77 00 00 E2 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 DB 25 00 90 00 74 [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]wFMCommunicate request_size=10 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 02 02 05 E4 A3 D6 AA 50 [14:36:43]Write to MH i2c: E2 0D 00 DC 25 80 0D 02 02 05 00 E4 A3 D6 AA 50 00 00 DC [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 DC 25 00 90 00 75 [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 03 02 [14:36:43]Write to MH i2c: E2 08 00 DD 25 80 0D 03 02 00 00 00 00 7D [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 0B 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 0B 00 DD 25 00 77 06 32 FF 91 F8 B5 45 90 00 AF [14:36:43]RAPDU: 77 06 32 FF 91 F8 B5 45 90 00 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_SignData done [14:36:43]FM_MakeSignedData done [14:36:43]CreateOFDProtocolMessage [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 11 00 00 [14:36:43]Write to MH i2c: E2 08 00 DE 25 80 11 00 00 00 00 00 00 7D [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 17 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 17 00 DE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [14:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:36:43]wFMCommunicate OK [14:36:43]CreateOFDProtocolMessage done [14:36:43]OFDSenderStorePacket 164249 [14:36:43]StoreOFDPacket docnum=164249 [14:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 2E 07 01 2E 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 7C 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 81 02 00 35 04 06 00 77 E4 A3 D6 AA 50 77 06 32 FF 91 F8 B5 45 [14:36:43]CheckFolder [14:36:43]dirname=/storage/ofd_packets [14:36:43]CheckFolder done [14:36:43]ProducePacketName [14:36:43]name=ofd_packets/00164249 [14:36:43]NVStorageSaveData ofd_packets/00164249 [14:36:43]File name is /storage/ofd_packets/00164249 [14:36:43]Write 301 bytes [14:36:43]NVStorageSaveData done [14:36:43]OFDSenderStorePacket done [14:36:43]KKMCreateOFDPacket done [14:36:43]NVStorageSaveData kkm_last_timestamp [14:36:43]File name is /storage/kkm_last_timestamp [14:36:43]Write 4 bytes [14:36:43]NVStorageSaveData done [14:36:43]ExternCall_PrintAddStr [14:36:43]wPrintStart [14:36:43]Write to MH i2c: 01 00 00 DF 25 04 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: 01 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: 01 07 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: 01 07 00 DF 25 00 00 00 00 00 FF 0F 19 [14:36:43]RasterBufferAndPrint [14:36:43]line Счет N : (1)458332 [14:36:43]line ИНН: 02508201610067 [14:36:43]line Контрольно-Кассовый Чек [14:36:43]line ПРОДАЖА [14:36:43]line ТРК (МРК, ГНК) : 12 [14:36:43]line Товар: 2710124130 [14:36:43]line Аи-92-К-5 [14:36:43]line 10.640 * 65.80 [14:36:43]line = 700.11 [14:36:43]line НДС 12% НСП 1% [14:36:43]line > о реализуемом товаре [14:36:43]line ОКРУГЛЕНИЕ: -0.11 [14:36:43]line ИТОГО: 700.00 [14:36:43]line Внесено: 700.00 [14:36:43]line СДАЧА: 0.00 [14:36:43]line НСП 1% : 6.20 [14:36:43]line НДС 12% : 74.35 [14:36:43]line Наличными: 700.00 [14:36:43]line Безнал.: 0.00 [14:36:43]line Место: АЗС № 72 "Партнер Нефть" [14:36:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:36:43]line СНО: Общий режим [14:36:43]line Чек 170 12.07.2024 14:36 [14:36:43]line Смена: 445 ФФД: 1.0 [14:36:43]line ЗНМ: 0300000160 [14:36:43]line РНМ: 0000000000090829 [14:36:43]line Версия ККМ: 001 [14:36:43]line ФМ: 0000000000874718 [14:36:43]line ФД: 164249 [14:36:43]line ФПД: 131823885003344 [14:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143644&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164249&fm=131823885003344&tin=02508201610067®Number=0000000000090829&sum=70000 [14:36:44]written 0, free lines is 4095 [14:36:44]OFD Sender: Processing packet 164249 [packets to send 104, broken 103] [14:36:44]ProducePacketName [14:36:44]name=ofd_packets/00164249 [14:36:44]OFD Sender: To server: pG, [14:36:44]CommunicateWithHost lk.salyk.kg:30040 [14:36:44]ConnectInit lk.salyk.kg [14:36:44]Connected sock=10 [14:36:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 2E 07 01 2E 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 7C 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 81 02 00 35 04 06 00 77 E4 A3 D6 AA 50 77 06 32 FF 91 F8 B5 45 [14:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CC DB 47 00 D8 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 34 37 31 38 10 04 04 00 99 81 02 00 F4 03 04 00 10 E6 90 66 B6 04 01 00 00 2E D3 10 28 AE 03 9A 5D [14:36:44]CommunicateWithHost err = 0 [14:36:44]CheckOFDResponse [14:36:44]1017 (14) - 77093643461234 [14:36:44]1041 (16) - 0000000000874718 [14:36:44]1040 (4) - 164249 [14:36:44]1012 (4) - 12.07.2024 08:15 [14:36:44]1206 (1) - 0 [14:36:44]OFD Sender: Remove packet 164249 [14:36:44]ProducePacketName [14:36:44]name=ofd_packets/00164249 [14:36:44]NVStorageDeleteData [14:36:44]Write to MH i2c: 01 00 00 09 26 2F [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 09 26 00 00 00 00 00 EE 0C 30 [14:36:44]RasterBufferAndPrint [14:36:44]line [14:36:44]line [14:36:44]line [14:36:44]line [14:36:44]line [14:36:44]written 0, free lines is 3317 [14:36:44]MH_Cut [14:36:44]Write to MH i2c: D1 01 00 10 26 01 08 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: D1 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: D1 01 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: D1 01 00 10 26 00 07 [14:36:44]Write to MH i2c: 01 00 00 11 26 37 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:45]OFD Sender: No OFD packet to send [14:36:45]*** Cut start [14:36:45]*** Partial cut [14:36:45]*** CUTSNS_PIN = 1 [14:36:45]*** CUTSNS_PIN = 0 [14:36:45]*** Brake cut motor [14:36:45]Read from MH i2c: 01 [14:36:45]MH_I2C_Read... [14:36:45]*** Stop cut motor [14:36:45]*** Cut end [14:36:45]Read from MH i2c: 01 07 00 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: 01 07 00 11 26 00 00 00 00 00 FF 0F 4C [14:36:46]process_action close_receipt done [14:36:46]requested_data is exist [14:36:46]produce_requested_data [14:36:46]requested_item fm.sn is exist - process it [14:36:46]wFMCommunicate request_size=4 [14:36:46]MH_SAM_APDU [14:36:46]CAPDU: 80 11 00 00 [14:36:46]Write to MH i2c: E2 08 00 12 26 80 11 00 00 00 00 00 00 B2 [14:36:46]Write i2c OK [14:36:46]MH_I2C_Read... [14:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:46]Read from MH i2c: E2 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 17 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 17 00 12 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [14:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:36:46]wFMCommunicate OK [14:36:46]requested_item fd.num is exist - process it [14:36:46]SAM_PROTO_GetFieldsCounters [14:36:46]wFMCommunicate request_size=4 [14:36:46]MH_SAM_APDU [14:36:46]CAPDU: 80 13 00 00 [14:36:46]Write to MH i2c: E2 08 00 13 26 80 13 00 00 00 00 00 00 B5 [14:36:46]Write i2c OK [14:36:46]MH_I2C_Read... [14:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:46]Read from MH i2c: E2 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 62 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 62 00 13 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [14:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:46]wFMCommunicate OK [14:36:46]SAM_PROTO_GetFieldsCounters done [14:36:46]requested_item shift.num is exist - process it [14:36:46]requested_item shift.opened is exist - process it [14:36:46]req_shift_opened [14:36:46]FM_GetShiftState [14:36:46]SAM_PROTO_GetShiftState [14:36:46]wFMCommunicate request_size=4 [14:36:46]MH_SAM_APDU [14:36:46]CAPDU: 80 13 01 00 [14:36:46]Write to MH i2c: E2 08 00 14 26 80 13 01 00 00 00 00 00 B7 [14:36:46]Write i2c OK [14:36:46]MH_I2C_Read... [14:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:46]Read from MH i2c: E2 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 0E 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 0E 00 14 26 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 01 [14:36:46]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:36:46]wFMCommunicate OK [14:36:46]SAM_PROTO_GetShiftState done [14:36:46]FM_GetShiftState done [14:36:46]req_shift_opened done [14:36:46]requested_item shift.open_date is exist - process it [14:36:46]req_shift_open_date [14:36:46]req_shift_open_date done [14:36:46]produce_requested_data done [14:36:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164249,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:36:46]process_action_free close_receipt [14:36:46]json_value_free [14:36:46]json_value_free done [14:36:46]process_json_proto returns [14:36:46]Send response to host [14:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164249,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:36:46]free response buf [14:36:46]execute_script done [14:36:46]execute_script returns [14:36:46]free content buf [14:36:46]Sock 9.Close socket [14:36:46]Sock 9.Thread stoped [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:04]accept exits with 7 [14:37:04]New connection [14:37:04]New thread 3066707300 created [14:37:04]Thread 3066850660 joined [14:37:04]Waiting for new connection... [14:37:04] Sock 7.Parse request [14:37:04]Sock 7.Check first char [14:37:04]Sock 7.First char is OK [14:37:04]request: POST /json_proto HTTP/1.0 [14:37:04]Method: POST [14:37:04]URL: /json_proto [14:37:04]Method is POST - this is cgi request [14:37:04]url: /json_proto [14:37:04]query_string will be loaded in cgi processing [14:37:04]execute_cgi json_proto POST (null) [14:37:04]execute_cgi path=json_proto method=POST [14:37:04]POST find Content-Length [14:37:04]Host: 172.17.56.4:8080 [14:37:04]Content-Length: 677 [14:37:04]Content-Type: application/json [14:37:04] [14:37:04]POST finish read [14:37:04]Found Content-Length = 677 [14:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:37:04]execute_script... [14:37: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)458333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:37:04]POST & json_proto [14:37:04]process_json_proto [14:37:04]json parsed OK: [14:37:04]protocol is kg_v1.0 [14:37:04]action value=close_receipt [14:37:04]process_action close_receipt [14:37:04]cmd_close_receipt [14:37:04]MH_GetDate [14:37:04]Write to MH i2c: F0 00 00 15 26 2A [14:37:04]Write i2c OK [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: F0 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: F0 09 00 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: F0 09 00 15 26 00 92 3F 91 66 C9 DC B2 64 B6 [14:37:04]GetLastDocTimeStamp 1720795004 [14:37:04]current date 1720795026 [14:37:04]FM_GetShiftState [14:37:04]SAM_PROTO_GetShiftState [14:37:04]wFMCommunicate request_size=4 [14:37:04]MH_SAM_APDU [14:37:04]CAPDU: 80 13 01 00 [14:37:04]Write to MH i2c: E2 08 00 16 26 80 13 01 00 00 00 00 00 B9 [14:37:04]Write i2c OK [14:37:04]MH_I2C_Read... [14:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:04]Read from MH i2c: E2 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 0E 00 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 0E 00 16 26 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 03 [14:37:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:37:04]wFMCommunicate OK [14:37:04]SAM_PROTO_GetShiftState done [14:37:04]FM_GetShiftState done [14:37:04]opened in 1720744654 [14:37:04]opened+sec_in_day 1720831054 [14:37:04]quantity*price = 20003 [14:37:04]sum+1 = 20004 [14:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 171 12.07.2024 14:37 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164250 ФПД: 118190990847371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164250&fm=118190990847371&tin=02508201610067®Number=0000000000090829&sum=20000 [14:37:06]StoreToDocumentArchive [14:37:06]shift 445 fd 164250 [14:37:06]save to /storage/0445/doc_00164250 [14:37:06]save last doc name /storage/0445/doc_00164250 to /storage/kkm_last_doc_name [14:37:06]save OK [14:37:06]Clear old archive folders... [14:37:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:06]tlvbuf is 00A2E5F0 [14:37:06]SAM_PROTO_ClearQueue [14:37:06]wFMCommunicate request_size=4 [14:37:06]MH_SAM_APDU [14:37:06]CAPDU: 80 09 00 00 [14:37:06]Write to MH i2c: E2 08 00 23 26 80 09 00 00 00 00 00 00 BB [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:06]Read from MH i2c: E2 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 03 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 03 00 23 26 00 90 00 BD [14:37:06]RAPDU: 90 00 [14:37:06]wFMCommunicate OK [14:37:06]SAM_PROTO_ClearQueue done [14:37:06]KKMCreateOFDPacket [14:37:06]OFDProtocolAddRootSTLVToBuf [14:37:06]FM_MakeSignedData [14:37:06]FM_MakeSignedData [14:37:06]SAM_PROTO_SignData [14:37:06]wFMCommunicate request_size=4 [14:37:06]MH_SAM_APDU [14:37:06]CAPDU: 80 0D 01 02 [14:37:06]Write to MH i2c: E2 08 00 24 26 80 0D 01 02 00 00 00 00 C3 [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:06]Read from MH i2c: E2 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 03 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 03 00 24 26 00 90 00 BE [14:37:06]RAPDU: 90 00 [14:37:06]wFMCommunicate OK [14:37:06]wFMCommunicate request_size=255 [14:37:06]MH_SAM_APDU [14:37: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 AB 00 00 00 F4 03 04 00 92 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 81 02 00 35 04 06 00 6B [14:37:06]Write to MH i2c: E2 02 01 25 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 AB 00 00 00 F4 03 04 00 92 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 81 02 00 35 04 06 00 6B 00 00 96 [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:06]Read from MH i2c: E2 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 03 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 03 00 25 26 00 90 00 BF [14:37:06]RAPDU: 90 00 [14:37:06]wFMCommunicate OK [14:37:06]wFMCommunicate request_size=10 [14:37:06]MH_SAM_APDU [14:37:06]CAPDU: 80 0D 02 02 05 7E 7C 06 6D 8B [14:37:06]Write to MH i2c: E2 0D 00 26 26 80 0D 02 02 05 00 7E 7C 06 6D 8B 00 00 C8 [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:06]Read from MH i2c: E2 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 03 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 03 00 26 26 00 90 00 C0 [14:37:06]RAPDU: 90 00 [14:37:06]wFMCommunicate OK [14:37:06]wFMCommunicate request_size=4 [14:37:06]MH_SAM_APDU [14:37:06]CAPDU: 80 0D 03 02 [14:37:06]Write to MH i2c: E2 08 00 27 26 80 0D 03 02 00 00 00 00 C8 [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:06]Read from MH i2c: E2 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 0B 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 0B 00 27 26 00 DE E1 A7 26 3E 65 DB C9 90 00 9C [14:37:06]RAPDU: DE E1 A7 26 3E 65 DB C9 90 00 [14:37:06]wFMCommunicate OK [14:37:06]SAM_PROTO_SignData done [14:37:06]FM_MakeSignedData done [14:37:06]CreateOFDProtocolMessage [14:37:06]wFMCommunicate request_size=4 [14:37:06]MH_SAM_APDU [14:37:06]CAPDU: 80 11 00 00 [14:37:06]Write to MH i2c: E2 08 00 28 26 80 11 00 00 00 00 00 00 C8 [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:06]Read from MH i2c: E2 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 17 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 17 00 28 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [14:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:37:06]wFMCommunicate OK [14:37:06]CreateOFDProtocolMessage done [14:37:06]OFDSenderStorePacket 164250 [14:37:06]StoreOFDPacket docnum=164250 [14:37:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 D0 07 01 96 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 AB 00 00 00 F4 03 04 00 92 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 81 02 00 35 04 06 00 6B 7E 7C 06 6D 8B DE E1 A7 26 3E 65 DB C9 [14:37:06]CheckFolder [14:37:06]dirname=/storage/ofd_packets [14:37:06]CheckFolder done [14:37:06]ProducePacketName [14:37:06]name=ofd_packets/00164250 [14:37:06]NVStorageSaveData ofd_packets/00164250 [14:37:06]File name is /storage/ofd_packets/00164250 [14:37:06]Write 301 bytes [14:37:06]NVStorageSaveData done [14:37:06]OFDSenderStorePacket done [14:37:06]KKMCreateOFDPacket done [14:37:06]NVStorageSaveData kkm_last_timestamp [14:37:06]File name is /storage/kkm_last_timestamp [14:37:06]Write 4 bytes [14:37:06]NVStorageSaveData done [14:37:06]ExternCall_PrintAddStr [14:37:06]wPrintStart [14:37:06]Write to MH i2c: 01 00 00 29 26 4F [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: 01 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: 01 07 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: 01 07 00 29 26 00 00 00 00 00 FF 0F 64 [14:37:06]RasterBufferAndPrint [14:37:06]line Счет N : (1)458333 [14:37:06]line ИНН: 02508201610067 [14:37:06]line Контрольно-Кассовый Чек [14:37:06]line ПРОДАЖА [14:37:06]line ТРК (МРК, ГНК) : 22 [14:37:06]line Товар: 2710124130 [14:37:06]line Аи-92-К-5 [14:37:06]line 3.040 * 65.80 [14:37:06]line = 200.03 [14:37:06]line НДС 12% НСП 1% [14:37:06]line > о реализуемом товаре [14:37:06]line ОКРУГЛЕНИЕ: -0.03 [14:37:06]line ИТОГО: 200.00 [14:37:06]line Внесено: 200.00 [14:37:06]line СДАЧА: 0.00 [14:37:06]line НСП 1% : 1.77 [14:37:06]line НДС 12% : 21.24 [14:37:06]line Наличными: 200.00 [14:37:06]line Безнал.: 0.00 [14:37:06]line Место: АЗС № 72 "Партнер Нефть" [14:37:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:37:06]line СНО: Общий режим [14:37:06]line Чек 171 12.07.2024 14:37 [14:37:06]line Смена: 445 ФФД: 1.0 [14:37:06]line ЗНМ: 0300000160 [14:37:06]line РНМ: 0000000000090829 [14:37:06]line Версия ККМ: 001 [14:37:06]line ФМ: 0000000000874718 [14:37:06]line ФД: 164250 [14:37:06]line ФПД: 118190990847371 [14:37:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164250&fm=118190990847371&tin=02508201610067®Number=0000000000090829&sum=20000 [14:37:06]OFD Sender: Processing packet 164250 [packets to send 104, broken 103] [14:37:06]ProducePacketName [14:37:06]name=ofd_packets/00164250 [14:37:06]OFD Sender: To server: pG, [14:37:06]CommunicateWithHost lk.salyk.kg:30040 [14:37:06]ConnectInit lk.salyk.kg [14:37:06]written 0, free lines is 4095 [14:37:07]Connected sock=10 [14:37:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 D0 07 01 96 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 AB 00 00 00 F4 03 04 00 92 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 81 02 00 35 04 06 00 6B 7E 7C 06 6D 8B DE E1 A7 26 3E 65 DB C9 [14:37:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 63 F3 47 00 52 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 81 02 00 F4 03 04 00 26 E6 90 66 B6 04 01 00 00 DC 1C A7 17 85 EE F9 AE [14:37:07]CommunicateWithHost err = 0 [14:37:07]CheckOFDResponse [14:37:07]1017 (14) - 77093643461234 [14:37:07]1041 (16) - 0000000000874718 [14:37:07]1040 (4) - 164250 [14:37:07]1012 (4) - 12.07.2024 08:15 [14:37:07]1206 (1) - 0 [14:37:07]OFD Sender: Remove packet 164250 [14:37:07]ProducePacketName [14:37:07]name=ofd_packets/00164250 [14:37:07]NVStorageDeleteData [14:37:07]Write to MH i2c: 01 00 00 53 26 79 [14:37:07]Write i2c OK [14:37:07]MH_I2C_Read... [14:37:07]Read from MH i2c: 01 [14:37:07]MH_I2C_Read... [14:37:07]Read from MH i2c: 01 07 00 [14:37:07]MH_I2C_Read... [14:37:07]Read from MH i2c: 01 07 00 53 26 00 00 00 00 00 F7 0C 83 [14:37:07]RasterBufferAndPrint [14:37:07]line [14:37:07]line [14:37:07]line [14:37:07]line [14:37:07]line [14:37:07]written 0, free lines is 3326 [14:37:07]MH_Cut [14:37:07]Write to MH i2c: D1 01 00 5A 26 01 52 [14:37:07]Write i2c OK [14:37:07]MH_I2C_Read... [14:37:07]Read from MH i2c: D1 [14:37:07]MH_I2C_Read... [14:37:07]Read from MH i2c: D1 01 00 [14:37:07]MH_I2C_Read... [14:37:07]Read from MH i2c: D1 01 00 5A 26 00 51 [14:37:07]Write to MH i2c: 01 00 00 5B 26 81 [14:37:07]Write i2c OK [14:37:07]MH_I2C_Read... [14:37:07]OFD Sender: No OFD packet to send [14:37:08]*** Cut start [14:37:08]*** Partial cut [14:37:08]*** CUTSNS_PIN = 1 [14:37:08]*** CUTSNS_PIN = 0 [14:37:08]*** Brake cut motor [14:37:08]Read from MH i2c: 01 [14:37:08]MH_I2C_Read... [14:37:08]*** Stop cut motor [14:37:08]*** Cut end [14:37:08]Read from MH i2c: 01 07 00 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: 01 07 00 5B 26 00 00 00 00 00 FF 0F 96 [14:37:08]process_action close_receipt done [14:37:08]requested_data is exist [14:37:08]produce_requested_data [14:37:08]requested_item fm.sn is exist - process it [14:37:08]wFMCommunicate request_size=4 [14:37:08]MH_SAM_APDU [14:37:08]CAPDU: 80 11 00 00 [14:37:08]Write to MH i2c: E2 08 00 5C 26 80 11 00 00 00 00 00 00 FC [14:37:08]Write i2c OK [14:37:08]MH_I2C_Read... [14:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:08]Read from MH i2c: E2 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 17 00 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 17 00 5C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [14:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:37:08]wFMCommunicate OK [14:37:08]requested_item fd.num is exist - process it [14:37:08]SAM_PROTO_GetFieldsCounters [14:37:08]wFMCommunicate request_size=4 [14:37:08]MH_SAM_APDU [14:37:08]CAPDU: 80 13 00 00 [14:37:08]Write to MH i2c: E2 08 00 5D 26 80 13 00 00 00 00 00 00 FF [14:37:08]Write i2c OK [14:37:08]MH_I2C_Read... [14:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:08]Read from MH i2c: E2 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 62 00 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 62 00 5D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [14:37: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:08]wFMCommunicate OK [14:37:08]SAM_PROTO_GetFieldsCounters done [14:37:08]requested_item shift.num is exist - process it [14:37:08]requested_item shift.opened is exist - process it [14:37:08]req_shift_opened [14:37:08]FM_GetShiftState [14:37:08]SAM_PROTO_GetShiftState [14:37:08]wFMCommunicate request_size=4 [14:37:08]MH_SAM_APDU [14:37:08]CAPDU: 80 13 01 00 [14:37:08]Write to MH i2c: E2 08 00 5E 26 80 13 01 00 00 00 00 00 01 [14:37:08]Write i2c OK [14:37:08]MH_I2C_Read... [14:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:08]Read from MH i2c: E2 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 0E 00 [14:37:08]MH_I2C_Read... [14:37:08]Read from MH i2c: E2 0E 00 5E 26 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4B [14:37:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:37:08]wFMCommunicate OK [14:37:08]SAM_PROTO_GetShiftState done [14:37:08]FM_GetShiftState done [14:37:08]req_shift_opened done [14:37:08]requested_item shift.open_date is exist - process it [14:37:08]req_shift_open_date [14:37:08]req_shift_open_date done [14:37:08]produce_requested_data done [14:37:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164250,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:37:08]process_action_free close_receipt [14:37:08]json_value_free [14:37:08]json_value_free done [14:37:08]process_json_proto returns [14:37:08]Send response to host [14:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164250,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:37:08]free response buf [14:37:08]execute_script done [14:37:08]execute_script returns [14:37:08]free content buf [14:37:08]Sock 7.Close socket [14:37:08]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:29]accept exits with 9 [14:38:29]New connection [14:38:29]New thread 3066850660 created [14:38:29]Thread 3066707300 joined [14:38:29]Waiting for new connection... [14:38:29] Sock 9.Parse request [14:38:29]Sock 9.Check first char [14:38:29]Sock 9.First char is OK [14:38:29]request: POST /json_proto HTTP/1.0 [14:38:29]Method: POST [14:38:29]URL: /json_proto [14:38:29]Method is POST - this is cgi request [14:38:29]url: /json_proto [14:38:29]query_string will be loaded in cgi processing [14:38:29]execute_cgi json_proto POST (null) [14:38:29]execute_cgi path=json_proto method=POST [14:38:29]POST find Content-Length [14:38:29]Host: 172.17.56.4:8080 [14:38:29]Content-Length: 678 [14:38:29]Content-Type: application/json [14:38:29] [14:38:29]POST finish read [14:38:29]Found Content-Length = 678 [14:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:29]execute_script... [14:38: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)458334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:29]POST & json_proto [14:38:29]process_json_proto [14:38:29]json parsed OK: [14:38:29]protocol is kg_v1.0 [14:38:29]action value=close_receipt [14:38:29]process_action close_receipt [14:38:29]cmd_close_receipt [14:38:29]MH_GetDate [14:38:29]Write to MH i2c: F0 00 00 5F 26 74 [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: F0 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: F0 09 00 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: F0 09 00 5F 26 00 E7 3F 91 66 C9 DC B2 64 55 [14:38:29]GetLastDocTimeStamp 1720795026 [14:38:29]current date 1720795111 [14:38:29]FM_GetShiftState [14:38:29]SAM_PROTO_GetShiftState [14:38:29]wFMCommunicate request_size=4 [14:38:29]MH_SAM_APDU [14:38:29]CAPDU: 80 13 01 00 [14:38:29]Write to MH i2c: E2 08 00 60 26 80 13 01 00 00 00 00 00 03 [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:30]Read from MH i2c: E2 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 0E 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 0E 00 60 26 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4D [14:38:30]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:38:30]wFMCommunicate OK [14:38:30]SAM_PROTO_GetShiftState done [14:38:30]FM_GetShiftState done [14:38:30]opened in 1720744654 [14:38:30]opened+sec_in_day 1720831054 [14:38:30]quantity*price = 66063 [14:38:30]sum+1 = 66064 [14:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 172 12.07.2024 14:38 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164251 ФПД: 15819409175830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143831&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164251&fm=15819409175830&tin=02508201610067®Number=0000000000090829&sum=66000 [14:38:31]StoreToDocumentArchive [14:38:31]shift 445 fd 164251 [14:38:31]save to /storage/0445/doc_00164251 [14:38:31]save last doc name /storage/0445/doc_00164251 to /storage/kkm_last_doc_name [14:38:31]save OK [14:38:31]Clear old archive folders... [14:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:31]tlvbuf is 00A8A650 [14:38:31]SAM_PROTO_ClearQueue [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 09 00 00 [14:38:31]Write to MH i2c: E2 08 00 6D 26 80 09 00 00 00 00 00 00 05 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 6D 26 00 90 00 07 [14:38:31]RAPDU: 90 00 [14:38:31]wFMCommunicate OK [14:38:31]SAM_PROTO_ClearQueue done [14:38:31]KKMCreateOFDPacket [14:38:31]OFDProtocolAddRootSTLVToBuf [14:38:31]FM_MakeSignedData [14:38:31]FM_MakeSignedData [14:38:31]SAM_PROTO_SignData [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 0D 01 02 [14:38:31]Write to MH i2c: E2 08 00 6E 26 80 0D 01 02 00 00 00 00 0D [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 6E 26 00 90 00 08 [14:38:31]RAPDU: 90 00 [14:38:31]wFMCommunicate OK [14:38:31]wFMCommunicate request_size=255 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E7 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 81 02 00 35 04 06 00 0E [14:38:31]Write to MH i2c: E2 02 01 6F 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E7 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 81 02 00 35 04 06 00 0E 00 00 7F [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 6F 26 00 90 00 09 [14:38:31]RAPDU: 90 00 [14:38:31]wFMCommunicate OK [14:38:31]wFMCommunicate request_size=10 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 0D 02 02 05 63 3E 43 B5 16 [14:38:31]Write to MH i2c: E2 0D 00 70 26 80 0D 02 02 05 00 63 3E 43 B5 16 00 00 C9 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 70 26 00 90 00 0A [14:38:31]RAPDU: 90 00 [14:38:31]wFMCommunicate OK [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 0D 03 02 [14:38:31]Write to MH i2c: E2 08 00 71 26 80 0D 03 02 00 00 00 00 12 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 0B 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 0B 00 71 26 00 9B 2F E9 B5 0A 6E DF EC 90 00 BE [14:38:31]RAPDU: 9B 2F E9 B5 0A 6E DF EC 90 00 [14:38:31]wFMCommunicate OK [14:38:31]SAM_PROTO_SignData done [14:38:31]FM_MakeSignedData done [14:38:31]CreateOFDProtocolMessage [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 11 00 00 [14:38:31]Write to MH i2c: E2 08 00 72 26 80 11 00 00 00 00 00 00 12 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 17 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 17 00 72 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [14:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:38:31]wFMCommunicate OK [14:38:31]CreateOFDProtocolMessage done [14:38:31]OFDSenderStorePacket 164251 [14:38:31]StoreOFDPacket docnum=164251 [14:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 4E 07 01 AF 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E7 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 81 02 00 35 04 06 00 0E 63 3E 43 B5 16 9B 2F E9 B5 0A 6E DF EC [14:38:31]CheckFolder [14:38:31]dirname=/storage/ofd_packets [14:38:31]CheckFolder done [14:38:31]ProducePacketName [14:38:31]name=ofd_packets/00164251 [14:38:31]NVStorageSaveData ofd_packets/00164251 [14:38:31]File name is /storage/ofd_packets/00164251 [14:38:31]Write 301 bytes [14:38:31]NVStorageSaveData done [14:38:31]OFDSenderStorePacket done [14:38:31]KKMCreateOFDPacket done [14:38:31]NVStorageSaveData kkm_last_timestamp [14:38:31]File name is /storage/kkm_last_timestamp [14:38:31]Write 4 bytes [14:38:31]NVStorageSaveData done [14:38:31]ExternCall_PrintAddStr [14:38:31]wPrintStart [14:38:31]Write to MH i2c: 01 00 00 73 26 99 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 07 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 07 00 73 26 00 00 00 00 00 FF 0F AE [14:38:31]RasterBufferAndPrint [14:38:31]line Счет N : (1)458334 [14:38:31]line ИНН: 02508201610067 [14:38:31]line Контрольно-Кассовый Чек [14:38:31]line ПРОДАЖА [14:38:31]line ТРК (МРК, ГНК) : 22 [14:38:31]line Товар: 2710124130 [14:38:31]line Аи-92-К-5 [14:38:31]line 10.040 * 65.80 [14:38:31]line = 660.63 [14:38:31]line НДС 12% НСП 1% [14:38:31]line > о реализуемом товаре [14:38:31]line ОКРУГЛЕНИЕ: -0.63 [14:38:31]line ИТОГО: 660.00 [14:38:31]line Внесено: 660.00 [14:38:31]line СДАЧА: 0.00 [14:38:31]line НСП 1% : 5.85 [14:38:31]line НДС 12% : 70.15 [14:38:31]line Наличными: 660.00 [14:38:31]line Безнал.: 0.00 [14:38:31]line Место: АЗС № 72 "Партнер Нефть" [14:38:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:38:31]line СНО: Общий режим [14:38:31]line Чек 172 12.07.2024 14:38 [14:38:31]line Смена: 445 ФФД: 1.0 [14:38:31]line ЗНМ: 0300000160 [14:38:31]line РНМ: 0000000000090829 [14:38:31]line Версия ККМ: 001 [14:38:31]line ФМ: 0000000000874718 [14:38:31]line ФД: 164251 [14:38:31]line ФПД: 15819409175830 [14:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143831&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164251&fm=15819409175830&tin=02508201610067®Number=0000000000090829&sum=66000 [14:38:32]OFD Sender: Processing packet 164251 [packets to send 104, broken 103] [14:38:32]ProducePacketName [14:38:32]name=ofd_packets/00164251 [14:38:32]OFD Sender: To server: pG, [14:38:32]CommunicateWithHost lk.salyk.kg:30040 [14:38:32]ConnectInit lk.salyk.kg [14:38:32]written 0, free lines is 4095 [14:38:32]Connected sock=10 [14:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 4E 07 01 AF 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 E7 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 81 02 00 35 04 06 00 0E 63 3E 43 B5 16 9B 2F E9 B5 0A 6E DF EC [14:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DC F1 47 00 F1 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 34 37 31 38 10 04 04 00 9B 81 02 00 F4 03 04 00 7B E6 90 66 B6 04 01 00 00 BD 6C ED BB 34 44 0C F8 [14:38:32]CommunicateWithHost err = 0 [14:38:32]CheckOFDResponse [14:38:32]1017 (14) - 77093643461234 [14:38:32]1041 (16) - 0000000000874718 [14:38:32]1040 (4) - 164251 [14:38:32]1012 (4) - 12.07.2024 08:16 [14:38:32]1206 (1) - 0 [14:38:32]OFD Sender: Remove packet 164251 [14:38:32]ProducePacketName [14:38:32]name=ofd_packets/00164251 [14:38:32]NVStorageDeleteData [14:38:32]Write to MH i2c: 01 00 00 9D 26 C3 [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: 01 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: 01 07 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: 01 07 00 9D 26 00 00 00 00 00 F7 0C CD [14:38:32]RasterBufferAndPrint [14:38:32]line [14:38:32]line [14:38:32]line [14:38:32]line [14:38:32]line [14:38:32]written 0, free lines is 3326 [14:38:32]MH_Cut [14:38:32]Write to MH i2c: D1 01 00 A4 26 01 9C [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: D1 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: D1 01 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: D1 01 00 A4 26 00 9B [14:38:32]Write to MH i2c: 01 00 00 A5 26 CB [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]OFD Sender: No OFD packet to send [14:38:33]*** Cut start [14:38:33]*** Partial cut [14:38:33]*** CUTSNS_PIN = 1 [14:38:33]*** CUTSNS_PIN = 0 [14:38:33]*** Brake cut motor [14:38:33]Read from MH i2c: 01 [14:38:33]MH_I2C_Read... [14:38:33]*** Stop cut motor [14:38:33]*** Cut end [14:38:33]Read from MH i2c: 01 07 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: 01 07 00 A5 26 00 00 00 00 00 FF 0F E0 [14:38:33]process_action close_receipt done [14:38:33]requested_data is exist [14:38:33]produce_requested_data [14:38:33]requested_item fm.sn is exist - process it [14:38:33]wFMCommunicate request_size=4 [14:38:33]MH_SAM_APDU [14:38:33]CAPDU: 80 11 00 00 [14:38:33]Write to MH i2c: E2 08 00 A6 26 80 11 00 00 00 00 00 00 46 [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 17 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 17 00 A6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [14:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:38:33]wFMCommunicate OK [14:38:33]requested_item fd.num is exist - process it [14:38:33]SAM_PROTO_GetFieldsCounters [14:38:33]wFMCommunicate request_size=4 [14:38:33]MH_SAM_APDU [14:38:33]CAPDU: 80 13 00 00 [14:38:33]Write to MH i2c: E2 08 00 A7 26 80 13 00 00 00 00 00 00 49 [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 62 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 62 00 A7 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [14:38: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:33]wFMCommunicate OK [14:38:33]SAM_PROTO_GetFieldsCounters done [14:38:33]requested_item shift.num is exist - process it [14:38:33]requested_item shift.opened is exist - process it [14:38:33]req_shift_opened [14:38:33]FM_GetShiftState [14:38:33]SAM_PROTO_GetShiftState [14:38:33]wFMCommunicate request_size=4 [14:38:33]MH_SAM_APDU [14:38:33]CAPDU: 80 13 01 00 [14:38:33]Write to MH i2c: E2 08 00 A8 26 80 13 01 00 00 00 00 00 4B [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 0E 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 0E 00 A8 26 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 95 [14:38:33]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:38:33]wFMCommunicate OK [14:38:33]SAM_PROTO_GetShiftState done [14:38:33]FM_GetShiftState done [14:38:33]req_shift_opened done [14:38:33]requested_item shift.open_date is exist - process it [14:38:33]req_shift_open_date [14:38:33]req_shift_open_date done [14:38:33]produce_requested_data done [14:38:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164251,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:38:33]process_action_free close_receipt [14:38:33]json_value_free [14:38:33]json_value_free done [14:38:33]process_json_proto returns [14:38:33]Send response to host [14:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164251,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:38:33]free response buf [14:38:33]execute_script done [14:38:33]execute_script returns [14:38:33]free content buf [14:38:33]Sock 9.Close socket [14:38:33]Sock 9.Thread stoped [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:48]accept exits with 7 [14:38:48]New connection [14:38:48]New thread 3066707300 created [14:38:48]Thread 3066850660 joined [14:38:48]Waiting for new connection... [14:38:48] Sock 7.Parse request [14:38:48]Sock 7.Check first char [14:38:48]Sock 7.First char is OK [14:38:48]request: POST /json_proto HTTP/1.0 [14:38:48]Method: POST [14:38:48]URL: /json_proto [14:38:48]Method is POST - this is cgi request [14:38:48]url: /json_proto [14:38:48]query_string will be loaded in cgi processing [14:38:48]execute_cgi json_proto POST (null) [14:38:48]execute_cgi path=json_proto method=POST [14:38:48]POST find Content-Length [14:38:48]Host: 172.17.56.4:8080 [14:38:48]Content-Length: 677 [14:38:48]Content-Type: application/json [14:38:48] [14:38:48]POST finish read [14:38:48]Found Content-Length = 677 [14:38:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:38:48]execute_script... [14:38:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:38:48]POST & json_proto [14:38:48]process_json_proto [14:38:48]json parsed OK: [14:38:48]protocol is kg_v1.0 [14:38:48]action value=close_receipt [14:38:48]process_action close_receipt [14:38:48]cmd_close_receipt [14:38:48]MH_GetDate [14:38:48]Write to MH i2c: F0 00 00 A9 26 BE [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 A9 26 00 F9 3F 91 66 C9 DC B2 64 B1 [14:38:48]GetLastDocTimeStamp 1720795111 [14:38:48]current date 1720795129 [14:38:48]FM_GetShiftState [14:38:48]SAM_PROTO_GetShiftState [14:38:48]wFMCommunicate request_size=4 [14:38:48]MH_SAM_APDU [14:38:48]CAPDU: 80 13 01 00 [14:38:48]Write to MH i2c: E2 08 00 AA 26 80 13 01 00 00 00 00 00 4D [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:48]Read from MH i2c: E2 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 AA 26 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 97 [14:38:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:38:48]wFMCommunicate OK [14:38:48]SAM_PROTO_GetShiftState done [14:38:48]FM_GetShiftState done [14:38:48]opened in 1720744654 [14:38:48]opened+sec_in_day 1720831054 [14:38:48]quantity*price = 40006 [14:38:48]sum+1 = 40007 [14:38:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 173 12.07.2024 14:38 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164252 ФПД: 159845212615430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143850&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164252&fm=159845212615430&tin=02508201610067®Number=0000000000090829&sum=40000 [14:38:49]StoreToDocumentArchive [14:38:49]shift 445 fd 164252 [14:38:49]save to /storage/0445/doc_00164252 [14:38:49]save last doc name /storage/0445/doc_00164252 to /storage/kkm_last_doc_name [14:38:49]save OK [14:38:49]Clear old archive folders... [14:38:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:49]tlvbuf is 00AADC50 [14:38:49]SAM_PROTO_ClearQueue [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 09 00 00 [14:38:49]Write to MH i2c: E2 08 00 B7 26 80 09 00 00 00 00 00 00 4F [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 B7 26 00 90 00 51 [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]SAM_PROTO_ClearQueue done [14:38:49]KKMCreateOFDPacket [14:38:49]OFDProtocolAddRootSTLVToBuf [14:38:49]FM_MakeSignedData [14:38:49]FM_MakeSignedData [14:38:49]SAM_PROTO_SignData [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 01 02 [14:38:49]Write to MH i2c: E2 08 00 B8 26 80 0D 01 02 00 00 00 00 57 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 B8 26 00 90 00 52 [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]wFMCommunicate request_size=255 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 B4 19 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 AD 00 00 00 F4 03 04 00 FA 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 81 02 00 35 04 06 00 91 [14:38:49]Write to MH i2c: E2 02 01 B9 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 AD 00 00 00 F4 03 04 00 FA 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 81 02 00 35 04 06 00 91 00 00 FB [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 B9 26 00 90 00 53 [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]wFMCommunicate request_size=10 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 02 02 05 60 DD 1D F3 06 [14:38:49]Write to MH i2c: E2 0D 00 BA 26 80 0D 02 02 05 00 60 DD 1D F3 06 00 00 B7 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 BA 26 00 90 00 54 [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 03 02 [14:38:49]Write to MH i2c: E2 08 00 BB 26 80 0D 03 02 00 00 00 00 5C [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 0B 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 0B 00 BB 26 00 80 B7 11 06 A7 4B 64 BF 90 00 C0 [14:38:49]RAPDU: 80 B7 11 06 A7 4B 64 BF 90 00 [14:38:49]wFMCommunicate OK [14:38:49]SAM_PROTO_SignData done [14:38:49]FM_MakeSignedData done [14:38:49]CreateOFDProtocolMessage [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 11 00 00 [14:38:49]Write to MH i2c: E2 08 00 BC 26 80 11 00 00 00 00 00 00 5C [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 17 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 17 00 BC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [14:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:38:49]wFMCommunicate OK [14:38:49]CreateOFDProtocolMessage done [14:38:49]OFDSenderStorePacket 164252 [14:38:49]StoreOFDPacket docnum=164252 [14:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 16 07 01 BA 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 AD 00 00 00 F4 03 04 00 FA 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 81 02 00 35 04 06 00 91 60 DD 1D F3 06 80 B7 11 06 A7 4B 64 BF [14:38:49]CheckFolder [14:38:49]dirname=/storage/ofd_packets [14:38:49]CheckFolder done [14:38:49]ProducePacketName [14:38:49]name=ofd_packets/00164252 [14:38:49]NVStorageSaveData ofd_packets/00164252 [14:38:49]File name is /storage/ofd_packets/00164252 [14:38:49]Write 301 bytes [14:38:49]NVStorageSaveData done [14:38:49]OFDSenderStorePacket done [14:38:49]KKMCreateOFDPacket done [14:38:49]NVStorageSaveData kkm_last_timestamp [14:38:49]File name is /storage/kkm_last_timestamp [14:38:49]Write 4 bytes [14:38:49]NVStorageSaveData done [14:38:49]ExternCall_PrintAddStr [14:38:49]wPrintStart [14:38:49]Write to MH i2c: 01 00 00 BD 26 E3 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: 01 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: 01 07 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: 01 07 00 BD 26 00 00 00 00 00 FF 0F F8 [14:38:49]RasterBufferAndPrint [14:38:49]line Счет N : (1)458335 [14:38:49]line ИНН: 02508201610067 [14:38:49]line Контрольно-Кассовый Чек [14:38:49]line ПРОДАЖА [14:38:49]line ТРК (МРК, ГНК) : 12 [14:38:49]line Товар: 2710124130 [14:38:49]line Аи-92-К-5 [14:38:49]line 6.080 * 65.80 [14:38:49]line = 400.06 [14:38:49]line НДС 12% НСП 1% [14:38:49]line > о реализуемом товаре [14:38:49]line ОКРУГЛЕНИЕ: -0.06 [14:38:49]line ИТОГО: 400.00 [14:38:49]line Внесено: 400.00 [14:38:49]line СДАЧА: 0.00 [14:38:49]line НСП 1% : 3.54 [14:38:49]line НДС 12% : 42.48 [14:38:49]line Наличными: 400.00 [14:38:49]line Безнал.: 0.00 [14:38:49]line Место: АЗС № 72 "Партнер Нефть" [14:38:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:38:49]line СНО: Общий режим [14:38:49]line Чек 173 12.07.2024 14:38 [14:38:49]line Смена: 445 ФФД: 1.0 [14:38:49]line ЗНМ: 0300000160 [14:38:49]line РНМ: 0000000000090829 [14:38:49]line Версия ККМ: 001 [14:38:49]line ФМ: 0000000000874718 [14:38:49]line ФД: 164252 [14:38:49]line ФПД: 159845212615430 [14:38:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T143850&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164252&fm=159845212615430&tin=02508201610067®Number=0000000000090829&sum=40000 [14:38:50]written 0, free lines is 4095 [14:38:50]OFD Sender: Processing packet 164252 [packets to send 104, broken 103] [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00164252 [14:38:50]OFD Sender: To server: pG, [14:38:50]CommunicateWithHost lk.salyk.kg:30040 [14:38:50]ConnectInit lk.salyk.kg [14:38:50]Connected sock=10 [14:38:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 16 07 01 BA 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 AD 00 00 00 F4 03 04 00 FA 3F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 81 02 00 35 04 06 00 91 60 DD 1D F3 06 80 B7 11 06 A7 4B 64 BF [14:38:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DC 86 47 00 F0 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 34 37 31 38 10 04 04 00 9C 81 02 00 F4 03 04 00 8E E6 90 66 B6 04 01 00 00 8E EA 5C F5 68 5F 54 28 [14:38:50]CommunicateWithHost err = 0 [14:38:50]CheckOFDResponse [14:38:50]1017 (14) - 77093643461234 [14:38:50]1041 (16) - 0000000000874718 [14:38:50]1040 (4) - 164252 [14:38:50]1012 (4) - 12.07.2024 08:17 [14:38:50]1206 (1) - 0 [14:38:50]OFD Sender: Remove packet 164252 [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00164252 [14:38:50]NVStorageDeleteData [14:38:50]Write to MH i2c: 01 00 00 E7 26 0D [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 E7 26 00 00 00 00 00 F1 0C 11 [14:38:50]RasterBufferAndPrint [14:38:50]line [14:38:50]line [14:38:50]line [14:38:50]line [14:38:50]line [14:38:50]written 0, free lines is 3319 [14:38:50]MH_Cut [14:38:50]Write to MH i2c: D1 01 00 EE 26 01 E6 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: D1 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: D1 01 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: D1 01 00 EE 26 00 E5 [14:38:50]Write to MH i2c: 01 00 00 EF 26 15 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:51]OFD Sender: No OFD packet to send [14:38:51]*** Cut start [14:38:51]*** Partial cut [14:38:51]*** CUTSNS_PIN = 1 [14:38:51]*** CUTSNS_PIN = 0 [14:38:51]*** Brake cut motor [14:38:51]Read from MH i2c: 01 [14:38:52]MH_I2C_Read... [14:38:52]*** Stop cut motor [14:38:52]*** Cut end [14:38:52]Read from MH i2c: 01 07 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: 01 07 00 EF 26 00 00 00 00 00 FF 0F 2A [14:38:52]process_action close_receipt done [14:38:52]requested_data is exist [14:38:52]produce_requested_data [14:38:52]requested_item fm.sn is exist - process it [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 11 00 00 [14:38:52]Write to MH i2c: E2 08 00 F0 26 80 11 00 00 00 00 00 00 90 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 F0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [14:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:38:52]wFMCommunicate OK [14:38:52]requested_item fd.num is exist - process it [14:38:52]SAM_PROTO_GetFieldsCounters [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 00 00 [14:38:52]Write to MH i2c: E2 08 00 F1 26 80 13 00 00 00 00 00 00 93 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 62 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 62 00 F1 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [14:38:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetFieldsCounters done [14:38:52]requested_item shift.num is exist - process it [14:38:52]requested_item shift.opened is exist - process it [14:38:52]req_shift_opened [14:38:52]FM_GetShiftState [14:38:52]SAM_PROTO_GetShiftState [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 01 00 [14:38:52]Write to MH i2c: E2 08 00 F2 26 80 13 01 00 00 00 00 00 95 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 F2 26 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DF [14:38:52]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetShiftState done [14:38:52]FM_GetShiftState done [14:38:52]req_shift_opened done [14:38:52]requested_item shift.open_date is exist - process it [14:38:52]req_shift_open_date [14:38:52]req_shift_open_date done [14:38:52]produce_requested_data done [14:38:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164252,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:38:52]process_action_free close_receipt [14:38:52]json_value_free [14:38:52]json_value_free done [14:38:52]process_json_proto returns [14:38:52]Send response to host [14:38:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164252,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:38:52]free response buf [14:38:52]execute_script done [14:38:52]execute_script returns [14:38:52]free content buf [14:38:52]Sock 7.Close socket [14:38:52]Sock 7.Thread stoped [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:50]accept exits with 9 [14:40:50]New connection [14:40:50]New thread 3066850660 created [14:40:50]Thread 3066707300 joined [14:40:50]Waiting for new connection... [14:40:50] Sock 9.Parse request [14:40:50]Sock 9.Check first char [14:40:50]Sock 9.First char is OK [14:40:50]request: POST /json_proto HTTP/1.0 [14:40:50]Method: POST [14:40:50]URL: /json_proto [14:40:50]Method is POST - this is cgi request [14:40:50]url: /json_proto [14:40:50]query_string will be loaded in cgi processing [14:40:50]execute_cgi json_proto POST (null) [14:40:50]execute_cgi path=json_proto method=POST [14:40:50]POST find Content-Length [14:40:50]Host: 172.17.56.4:8080 [14:40:50]Content-Length: 677 [14:40:50]Content-Type: application/json [14:40:50] [14:40:50]POST finish read [14:40:50]Found Content-Length = 677 [14:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.410, "sum" : 290.18, "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" ] } } [14:40:50]execute_script... [14:40: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)458336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.410, "sum" : 290.18, "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" ] } } [14:40:50]POST & json_proto [14:40:50]process_json_proto [14:40:50]json parsed OK: [14:40:50]protocol is kg_v1.0 [14:40:50]action value=close_receipt [14:40:50]process_action close_receipt [14:40:50]cmd_close_receipt [14:40:50]MH_GetDate [14:40:50]Write to MH i2c: F0 00 00 F3 26 08 [14:40:50]Write i2c OK [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: F0 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: F0 09 00 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: F0 09 00 F3 26 00 74 40 91 66 C9 DC B2 64 77 [14:40:50]GetLastDocTimeStamp 1720795130 [14:40:50]current date 1720795252 [14:40:50]FM_GetShiftState [14:40:50]SAM_PROTO_GetShiftState [14:40:50]wFMCommunicate request_size=4 [14:40:50]MH_SAM_APDU [14:40:50]CAPDU: 80 13 01 00 [14:40:50]Write to MH i2c: E2 08 00 F4 26 80 13 01 00 00 00 00 00 97 [14:40:50]Write i2c OK [14:40:50]MH_I2C_Read... [14:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:50]Read from MH i2c: E2 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: E2 0E 00 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: E2 0E 00 F4 26 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E1 [14:40:50]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:40:50]wFMCommunicate OK [14:40:50]SAM_PROTO_GetShiftState done [14:40:50]FM_GetShiftState done [14:40:50]opened in 1720744654 [14:40:50]opened+sec_in_day 1720831054 [14:40:50]quantity*price = 29017 [14:40:50]sum+1 = 29019 [14:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.82 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 174 12.07.2024 14:40 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164253 ФПД: 264215111266726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164253&fm=264215111266726&tin=02508201610067®Number=0000000000090829&sum=29000 [14:40:51]StoreToDocumentArchive [14:40:51]shift 445 fd 164253 [14:40:51]save to /storage/0445/doc_00164253 [14:40:51]save last doc name /storage/0445/doc_00164253 to /storage/kkm_last_doc_name [14:40:51]save OK [14:40:51]Clear old archive folders... [14:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:51]tlvbuf is 00A8A580 [14:40:51]SAM_PROTO_ClearQueue [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 09 00 00 [14:40:51]Write to MH i2c: E2 08 00 01 27 80 09 00 00 00 00 00 00 9A [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 01 27 00 90 00 9C [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]SAM_PROTO_ClearQueue done [14:40:51]KKMCreateOFDPacket [14:40:51]OFDProtocolAddRootSTLVToBuf [14:40:51]FM_MakeSignedData [14:40:51]FM_MakeSignedData [14:40:51]SAM_PROTO_SignData [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 0D 01 02 [14:40:51]Write to MH i2c: E2 08 00 02 27 80 0D 01 02 00 00 00 00 A2 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 02 27 00 90 00 9D [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]wFMCommunicate request_size=255 [14:40:51]MH_SAM_APDU [14:40: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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 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 0A 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 AE 00 00 00 F4 03 04 00 74 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 81 02 00 35 04 06 00 F0 [14:40:51]Write to MH i2c: E2 02 01 03 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 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 0A 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 AE 00 00 00 F4 03 04 00 74 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 81 02 00 35 04 06 00 F0 00 00 46 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:52]Read from MH i2c: E2 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 03 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 03 00 03 27 00 90 00 9E [14:40:52]RAPDU: 90 00 [14:40:52]wFMCommunicate OK [14:40:52]wFMCommunicate request_size=10 [14:40:52]MH_SAM_APDU [14:40:52]CAPDU: 80 0D 02 02 05 4D 5F D9 F1 A6 [14:40:52]Write to MH i2c: E2 0D 00 04 27 80 0D 02 02 05 00 4D 5F D9 F1 A6 00 00 CB [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:52]Read from MH i2c: E2 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 03 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 03 00 04 27 00 90 00 9F [14:40:52]RAPDU: 90 00 [14:40:52]wFMCommunicate OK [14:40:52]wFMCommunicate request_size=4 [14:40:52]MH_SAM_APDU [14:40:52]CAPDU: 80 0D 03 02 [14:40:52]Write to MH i2c: E2 08 00 05 27 80 0D 03 02 00 00 00 00 A7 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:52]Read from MH i2c: E2 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 0B 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 0B 00 05 27 00 70 8D 86 2B F3 68 3B 49 90 00 35 [14:40:52]RAPDU: 70 8D 86 2B F3 68 3B 49 90 00 [14:40:52]wFMCommunicate OK [14:40:52]SAM_PROTO_SignData done [14:40:52]FM_MakeSignedData done [14:40:52]CreateOFDProtocolMessage [14:40:52]wFMCommunicate request_size=4 [14:40:52]MH_SAM_APDU [14:40:52]CAPDU: 80 11 00 00 [14:40:52]Write to MH i2c: E2 08 00 06 27 80 11 00 00 00 00 00 00 A7 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:52]Read from MH i2c: E2 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 17 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 17 00 06 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [14:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:40:52]wFMCommunicate OK [14:40:52]CreateOFDProtocolMessage done [14:40:52]OFDSenderStorePacket 164253 [14:40:52]StoreOFDPacket docnum=164253 [14:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 93 07 01 FB 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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 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 0A 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 AE 00 00 00 F4 03 04 00 74 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 81 02 00 35 04 06 00 F0 4D 5F D9 F1 A6 70 8D 86 2B F3 68 3B 49 [14:40:52]CheckFolder [14:40:52]dirname=/storage/ofd_packets [14:40:52]CheckFolder done [14:40:52]ProducePacketName [14:40:52]name=ofd_packets/00164253 [14:40:52]NVStorageSaveData ofd_packets/00164253 [14:40:52]File name is /storage/ofd_packets/00164253 [14:40:52]Write 301 bytes [14:40:52]NVStorageSaveData done [14:40:52]OFDSenderStorePacket done [14:40:52]KKMCreateOFDPacket done [14:40:52]NVStorageSaveData kkm_last_timestamp [14:40:52]File name is /storage/kkm_last_timestamp [14:40:52]Write 4 bytes [14:40:52]NVStorageSaveData done [14:40:52]OFD Sender: Processing packet 164253 [packets to send 104, broken 103] [14:40:52]ProducePacketName [14:40:52]name=ofd_packets/00164253 [14:40:52]OFD Sender: To server: pG, [14:40:52]CommunicateWithHost lk.salyk.kg:30040 [14:40:52]ConnectInit lk.salyk.kg [14:40:52]ExternCall_PrintAddStr [14:40:52]wPrintStart [14:40:52]Write to MH i2c: 01 00 00 07 27 2E [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 07 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 07 00 07 27 00 00 00 00 00 FF 0F 43 [14:40:52]RasterBufferAndPrint [14:40:52]line Счет N : (1)458336 [14:40:52]line ИНН: 02508201610067 [14:40:52]line Контрольно-Кассовый Чек [14:40:52]line ПРОДАЖА [14:40:52]line ТРК (МРК, ГНК) : 22 [14:40:52]line Товар: 2710124130 [14:40:52]line Аи-92-К-5 [14:40:52]line 4.410 * 65.80 [14:40:52]line = 290.18 [14:40:52]line НДС 12% НСП 1% [14:40:52]line > о реализуемом товаре [14:40:52]line ОКРУГЛЕНИЕ: -0.18 [14:40:52]line ИТОГО: 290.00 [14:40:52]line Внесено: 290.00 [14:40:52]line СДАЧА: 0.00 [14:40:52]line НСП 1% : 2.57 [14:40:52]line НДС 12% : 30.82 [14:40:52]line Наличными: 290.00 [14:40:52]line Безнал.: 0.00 [14:40:52]line Место: АЗС № 72 "Партнер Нефть" [14:40:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:40:52]line СНО: Общий режим [14:40:52]line Чек 174 12.07.2024 14:40 [14:40:52]line Смена: 445 ФФД: 1.0 [14:40:52]line ЗНМ: 0300000160 [14:40:52]line РНМ: 0000000000090829 [14:40:52]line Версия ККМ: 001 [14:40:52]line ФМ: 0000000000874718 [14:40:52]line ФД: 164253 [14:40:52]line ФПД: 264215111266726 [14:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164253&fm=264215111266726&tin=02508201610067®Number=0000000000090829&sum=29000 [14:40:52]Connected sock=11 [14:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 93 07 01 FB 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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 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 0A 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 AE 00 00 00 F4 03 04 00 74 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 81 02 00 35 04 06 00 F0 4D 5F D9 F1 A6 70 8D 86 2B F3 68 3B 49 [14:40:52]written 0, free lines is 4095 [14:40:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 53 8E 47 00 FE 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 34 37 31 38 10 04 04 00 9D 81 02 00 F4 03 04 00 08 E7 90 66 B6 04 01 00 00 06 36 71 32 A7 10 97 19 [14:40:52]CommunicateWithHost err = 0 [14:40:52]CheckOFDResponse [14:40:52]1017 (14) - 77093643461234 [14:40:52]1041 (16) - 0000000000874718 [14:40:52]1040 (4) - 164253 [14:40:52]1012 (4) - 12.07.2024 08:19 [14:40:52]1206 (1) - 0 [14:40:52]OFD Sender: Remove packet 164253 [14:40:52]ProducePacketName [14:40:52]name=ofd_packets/00164253 [14:40:52]NVStorageDeleteData [14:40:52]Write to MH i2c: 01 00 00 31 27 58 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 07 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 07 00 31 27 00 00 00 00 00 FB 0C 66 [14:40:52]RasterBufferAndPrint [14:40:52]line [14:40:52]line [14:40:52]line [14:40:52]line [14:40:52]line [14:40:52]written 0, free lines is 3332 [14:40:52]MH_Cut [14:40:52]Write to MH i2c: D1 01 00 38 27 01 31 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 01 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 01 00 38 27 00 30 [14:40:52]Write to MH i2c: 01 00 00 39 27 60 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:53]OFD Sender: No OFD packet to send [14:40:53]*** Cut start [14:40:53]*** Partial cut [14:40:53]*** CUTSNS_PIN = 1 [14:40:53]*** CUTSNS_PIN = 0 [14:40:53]*** Brake cut motor [14:40:54]*** Stop cut motor [14:40:54]*** Cut end [14:40:54]Read from MH i2c: 01 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: 01 07 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: 01 07 00 39 27 00 00 00 00 00 FF 0F 75 [14:40:54]process_action close_receipt done [14:40:54]requested_data is exist [14:40:54]produce_requested_data [14:40:54]requested_item fm.sn is exist - process it [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 11 00 00 [14:40:54]Write to MH i2c: E2 08 00 3A 27 80 11 00 00 00 00 00 00 DB [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 17 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 17 00 3A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [14:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:40:54]wFMCommunicate OK [14:40:54]requested_item fd.num is exist - process it [14:40:54]SAM_PROTO_GetFieldsCounters [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 13 00 00 [14:40:54]Write to MH i2c: E2 08 00 3B 27 80 13 00 00 00 00 00 00 DE [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 62 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 62 00 3B 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [14:40: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:54]wFMCommunicate OK [14:40:54]SAM_PROTO_GetFieldsCounters done [14:40:54]requested_item shift.num is exist - process it [14:40:54]requested_item shift.opened is exist - process it [14:40:54]req_shift_opened [14:40:54]FM_GetShiftState [14:40:54]SAM_PROTO_GetShiftState [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 13 01 00 [14:40:54]Write to MH i2c: E2 08 00 3C 27 80 13 01 00 00 00 00 00 E0 [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 0E 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 0E 00 3C 27 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2A [14:40:54]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:40:54]wFMCommunicate OK [14:40:54]SAM_PROTO_GetShiftState done [14:40:54]FM_GetShiftState done [14:40:54]req_shift_opened done [14:40:54]requested_item shift.open_date is exist - process it [14:40:54]req_shift_open_date [14:40:54]req_shift_open_date done [14:40:54]produce_requested_data done [14:40:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164253,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:40:54]process_action_free close_receipt [14:40:54]json_value_free [14:40:54]json_value_free done [14:40:54]process_json_proto returns [14:40:54]Send response to host [14:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164253,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:40:54]free response buf [14:40:54]execute_script done [14:40:54]execute_script returns [14:40:54]free content buf [14:40:54]Sock 9.Close socket [14:40:54]Sock 9.Thread stoped [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]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:20]accept exits with 7 [14:42:20]New connection [14:42:20]New thread 3066707300 created [14:42:20]Thread 3066850660 joined [14:42:20]Waiting for new connection... [14:42:20] Sock 7.Parse request [14:42:20]Sock 7.Check first char [14:42:20]Sock 7.First char is OK [14:42:20]request: POST /json_proto HTTP/1.0 [14:42:20]Method: POST [14:42:20]URL: /json_proto [14:42:20]Method is POST - this is cgi request [14:42:20]url: /json_proto [14:42:20]query_string will be loaded in cgi processing [14:42:20]execute_cgi json_proto POST (null) [14:42:20]execute_cgi path=json_proto method=POST [14:42:20]POST find Content-Length [14:42:20]Host: 172.17.56.4:8080 [14:42:20]Content-Length: 791 [14:42:20]Content-Type: application/json [14:42:20] [14:42:20]POST finish read [14:42:20]Found Content-Length = 791 [14:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:20]execute_script... [14:42: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)458337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:20]POST & json_proto [14:42:20]process_json_proto [14:42:20]json parsed OK: [14:42:20]protocol is kg_v1.0 [14:42:20]action value=close_receipt [14:42:20]process_action close_receipt [14:42:20]cmd_close_receipt [14:42:20]MH_GetDate [14:42:20]Write to MH i2c: F0 00 00 3D 27 53 [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: F0 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: F0 09 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: F0 09 00 3D 27 00 CD 40 91 66 C9 DC B2 64 1B [14:42:20]GetLastDocTimeStamp 1720795252 [14:42:20]current date 1720795341 [14:42:20]FM_GetShiftState [14:42:20]SAM_PROTO_GetShiftState [14:42:20]wFMCommunicate request_size=4 [14:42:20]MH_SAM_APDU [14:42:20]CAPDU: 80 13 01 00 [14:42:20]Write to MH i2c: E2 08 00 3E 27 80 13 01 00 00 00 00 00 E2 [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:20]Read from MH i2c: E2 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 0E 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 0E 00 3E 27 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2C [14:42:20]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:42:20]wFMCommunicate OK [14:42:20]SAM_PROTO_GetShiftState done [14:42:20]FM_GetShiftState done [14:42:20]opened in 1720744654 [14:42:20]opened+sec_in_day 1720831054 [14:42:20]quantity*price = 65220 [14:42:20]sum+1 = 65221 [14:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 175 12.07.2024 14:42 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164254 ФПД: 204527378676598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144221&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164254&fm=204527378676598&tin=02508201610067®Number=0000000000090829&sum=65220 [14:42:21]StoreToDocumentArchive [14:42:21]shift 445 fd 164254 [14:42:21]save to /storage/0445/doc_00164254 [14:42:21]save last doc name /storage/0445/doc_00164254 to /storage/kkm_last_doc_name [14:42:21]save OK [14:42:21]Clear old archive folders... [14:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:21]tlvbuf is 00AAD4A0 [14:42:21]SAM_PROTO_ClearQueue [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 09 00 00 [14:42:21]Write to MH i2c: E2 08 00 4B 27 80 09 00 00 00 00 00 00 E4 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 4B 27 00 90 00 E6 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_ClearQueue done [14:42:21]KKMCreateOFDPacket [14:42:21]OFDProtocolAddRootSTLVToBuf [14:42:21]FM_MakeSignedData [14:42:21]FM_MakeSignedData [14:42:21]SAM_PROTO_SignData [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 01 02 [14:42:21]Write to MH i2c: E2 08 00 4C 27 80 0D 01 02 00 00 00 00 EC [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 4C 27 00 90 00 E7 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]wFMCommunicate request_size=255 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CD 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 81 02 00 35 04 06 00 BA [14:42:21]Write to MH i2c: E2 02 01 4D 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CD 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 81 02 00 35 04 06 00 BA 00 00 C4 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 4D 27 00 90 00 E8 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]wFMCommunicate request_size=10 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 02 02 05 04 3D C0 BB 76 [14:42:21]Write to MH i2c: E2 0D 00 4E 27 80 0D 02 02 05 00 04 3D C0 BB 76 00 00 2B [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 4E 27 00 90 00 E9 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 03 02 [14:42:21]Write to MH i2c: E2 08 00 4F 27 80 0D 03 02 00 00 00 00 F1 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0B 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0B 00 4F 27 00 DB 60 FB 3B FB 49 EF 2C 90 00 C2 [14:42:21]RAPDU: DB 60 FB 3B FB 49 EF 2C 90 00 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_SignData done [14:42:21]FM_MakeSignedData done [14:42:21]CreateOFDProtocolMessage [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 11 00 00 [14:42:21]Write to MH i2c: E2 08 00 50 27 80 11 00 00 00 00 00 00 F1 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 17 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 17 00 50 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [14:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:42:21]wFMCommunicate OK [14:42:21]CreateOFDProtocolMessage done [14:42:21]OFDSenderStorePacket 164254 [14:42:21]StoreOFDPacket docnum=164254 [14:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 51 23 07 01 D7 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CD 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 81 02 00 35 04 06 00 BA 04 3D C0 BB 76 DB 60 FB 3B FB 49 EF 2C [14:42:21]CheckFolder [14:42:21]dirname=/storage/ofd_packets [14:42:21]CheckFolder done [14:42:21]ProducePacketName [14:42:21]name=ofd_packets/00164254 [14:42:21]NVStorageSaveData ofd_packets/00164254 [14:42:21]File name is /storage/ofd_packets/00164254 [14:42:21]Write 301 bytes [14:42:21]NVStorageSaveData done [14:42:21]OFDSenderStorePacket done [14:42:21]KKMCreateOFDPacket done [14:42:21]NVStorageSaveData kkm_last_timestamp [14:42:21]File name is /storage/kkm_last_timestamp [14:42:21]Write 4 bytes [14:42:21]NVStorageSaveData done [14:42:21]ExternCall_PrintAddStr [14:42:21]wPrintStart [14:42:21]Write to MH i2c: 01 00 00 51 27 78 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 07 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 07 00 51 27 00 00 00 00 00 FF 0F 8D [14:42:21]RasterBufferAndPrint [14:42:21]line Счет N : (1)458337 [14:42:21]line ИНН: 02508201610067 [14:42:21]line Контрольно-Кассовый Чек [14:42:21]line ПРОДАЖА [14:42:21]line ТРК (МРК, ГНК) : 12 [14:42:21]line Товар: 2710124130 [14:42:21]line Аи-92-К-5 [14:42:21]line 10.000 * 65.22 [14:42:21]line = 652.20 [14:42:21]line НДС 12% НСП 1% [14:42:21]line > о реализуемом товаре [14:42:21]line ИТОГО: 652.20 [14:42:21]line НСП 1% : 5.77 [14:42:21]line НДС 12% : 69.26 [14:42:21]line Наличными: 0.00 [14:42:21]line Безнал.: 652.20 [14:42:21]line Место: АЗС № 72 "Партнер Нефть" [14:42:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:42:21]line СНО: Общий режим [14:42:21]line Чек 175 12.07.2024 14:42 [14:42:21]line Смена: 445 ФФД: 1.0 [14:42:21]line ЗНМ: 0300000160 [14:42:21]line РНМ: 0000000000090829 [14:42:21]line Версия ККМ: 001 [14:42:21]line Платежная система: KICB Банк [14:42:21]line ФМ: 0000000000874718 [14:42:21]line ФД: 164254 [14:42:21]line ФПД: 204527378676598 [14:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144221&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164254&fm=204527378676598&tin=02508201610067®Number=0000000000090829&sum=65220 [14:42:22]OFD Sender: Processing packet 164254 [packets to send 104, broken 103] [14:42:22]ProducePacketName [14:42:22]name=ofd_packets/00164254 [14:42:22]OFD Sender: To server: pG, [14:42:22]CommunicateWithHost lk.salyk.kg:30040 [14:42:22]ConnectInit lk.salyk.kg [14:42:22]written 0, free lines is 4095 [14:42:22]Connected sock=10 [14:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 51 23 07 01 D7 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CD 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 81 02 00 35 04 06 00 BA 04 3D C0 BB 76 DB 60 FB 3B FB 49 EF 2C [14:42:22]Write to MH i2c: 01 00 00 7A 27 A1 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 07 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 07 00 7A 27 00 00 00 00 00 0C 0D C1 [14:42:22]RasterBufferAndPrint [14:42:22]line [14:42:22]line [14:42:22]line [14:42:22]line [14:42:22]line [14:42:22]written 0, free lines is 3346 [14:42:22]MH_Cut [14:42:22]Write to MH i2c: D1 01 00 81 27 01 7A [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: D1 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: D1 01 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: D1 01 00 81 27 00 79 [14:42:22]Write to MH i2c: 01 00 00 82 27 A9 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1E 2D 47 00 A7 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 34 37 31 38 10 04 04 00 9E 81 02 00 F4 03 04 00 62 E7 90 66 B6 04 01 00 00 14 68 84 60 F4 23 0F D3 [14:42:22]CommunicateWithHost err = 0 [14:42:22]CheckOFDResponse [14:42:22]1017 (14) - 77093643461234 [14:42:22]1041 (16) - 0000000000874718 [14:42:22]1040 (4) - 164254 [14:42:22]1012 (4) - 12.07.2024 08:20 [14:42:22]1206 (1) - 0 [14:42:22]OFD Sender: Remove packet 164254 [14:42:22]ProducePacketName [14:42:22]name=ofd_packets/00164254 [14:42:22]NVStorageDeleteData [14:42:23]OFD Sender: No OFD packet to send [14:42:23]*** Cut start [14:42:23]*** Partial cut [14:42:23]*** CUTSNS_PIN = 1 [14:42:23]*** CUTSNS_PIN = 0 [14:42:23]*** Brake cut motor [14:42:23]Read from MH i2c: 01 [14:42:23]MH_I2C_Read... [14:42:23]*** Stop cut motor [14:42:23]*** Cut end [14:42:23]Read from MH i2c: 01 07 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 07 00 82 27 00 00 00 00 00 FF 0F BE [14:42:23]process_action close_receipt done [14:42:23]requested_data is exist [14:42:23]produce_requested_data [14:42:23]requested_item fm.sn is exist - process it [14:42:23]wFMCommunicate request_size=4 [14:42:23]MH_SAM_APDU [14:42:23]CAPDU: 80 11 00 00 [14:42:23]Write to MH i2c: E2 08 00 83 27 80 11 00 00 00 00 00 00 24 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:23]Read from MH i2c: E2 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 17 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 17 00 83 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [14:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:42:23]wFMCommunicate OK [14:42:23]requested_item fd.num is exist - process it [14:42:23]SAM_PROTO_GetFieldsCounters [14:42:23]wFMCommunicate request_size=4 [14:42:23]MH_SAM_APDU [14:42:23]CAPDU: 80 13 00 00 [14:42:23]Write to MH i2c: E2 08 00 84 27 80 13 00 00 00 00 00 00 27 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:24]Read from MH i2c: E2 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 62 00 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 62 00 84 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [14:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:24]wFMCommunicate OK [14:42:24]SAM_PROTO_GetFieldsCounters done [14:42:24]requested_item shift.num is exist - process it [14:42:24]requested_item shift.opened is exist - process it [14:42:24]req_shift_opened [14:42:24]FM_GetShiftState [14:42:24]SAM_PROTO_GetShiftState [14:42:24]wFMCommunicate request_size=4 [14:42:24]MH_SAM_APDU [14:42:24]CAPDU: 80 13 01 00 [14:42:24]Write to MH i2c: E2 08 00 85 27 80 13 01 00 00 00 00 00 29 [14:42:24]Write i2c OK [14:42:24]MH_I2C_Read... [14:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:24]Read from MH i2c: E2 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 0E 00 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 0E 00 85 27 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 73 [14:42:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:42:24]wFMCommunicate OK [14:42:24]SAM_PROTO_GetShiftState done [14:42:24]FM_GetShiftState done [14:42:24]req_shift_opened done [14:42:24]requested_item shift.open_date is exist - process it [14:42:24]req_shift_open_date [14:42:24]req_shift_open_date done [14:42:24]produce_requested_data done [14:42:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164254,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:42:24]process_action_free close_receipt [14:42:24]json_value_free [14:42:24]json_value_free done [14:42:24]process_json_proto returns [14:42:24]Send response to host [14:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164254,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:42:24]free response buf [14:42:24]execute_script done [14:42:24]execute_script returns [14:42:24]free content buf [14:42:24]Sock 7.Close socket [14:42:24]Sock 7.Thread stoped [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:49]accept exits with 9 [14:42:49]New connection [14:42:49]New thread 3066850660 created [14:42:49]Thread 3066707300 joined [14:42:49]Waiting for new connection... [14:42:49] Sock 9.Parse request [14:42:49]Sock 9.Check first char [14:42:49]Sock 9.First char is OK [14:42:49]request: POST /json_proto HTTP/1.0 [14:42:49]Method: POST [14:42:49]URL: /json_proto [14:42:49]Method is POST - this is cgi request [14:42:49]url: /json_proto [14:42:49]query_string will be loaded in cgi processing [14:42:49]execute_cgi json_proto POST (null) [14:42:49]execute_cgi path=json_proto method=POST [14:42:49]POST find Content-Length [14:42:49]Host: 172.17.56.4:8080 [14:42:49]Content-Length: 677 [14:42:49]Content-Type: application/json [14:42:49] [14:42:49]POST finish read [14:42:49]Found Content-Length = 677 [14:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:42:49]execute_script... [14:42: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)458338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:42:49]POST & json_proto [14:42:49]process_json_proto [14:42:49]json parsed OK: [14:42:49]protocol is kg_v1.0 [14:42:49]action value=close_receipt [14:42:49]process_action close_receipt [14:42:49]cmd_close_receipt [14:42:49]MH_GetDate [14:42:49]Write to MH i2c: F0 00 00 86 27 9C [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: F0 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: F0 09 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: F0 09 00 86 27 00 EB 40 91 66 C9 DC B2 64 82 [14:42:49]GetLastDocTimeStamp 1720795341 [14:42:49]current date 1720795371 [14:42:49]FM_GetShiftState [14:42:49]SAM_PROTO_GetShiftState [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 13 01 00 [14:42:49]Write to MH i2c: E2 08 00 87 27 80 13 01 00 00 00 00 00 2B [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0E 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0E 00 87 27 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 75 [14:42:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:42:49]wFMCommunicate OK [14:42:49]SAM_PROTO_GetShiftState done [14:42:49]FM_GetShiftState done [14:42:49]opened in 1720744654 [14:42:49]opened+sec_in_day 1720831054 [14:42:49]quantity*price = 20003 [14:42:49]sum+1 = 20004 [14:42: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 176 12.07.2024 14:42 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164255 ФПД: 50553630094841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144251&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164255&fm=50553630094841&tin=02508201610067®Number=0000000000090829&sum=20000 [14:42:50]StoreToDocumentArchive [14:42:50]shift 445 fd 164255 [14:42:50]save to /storage/0445/doc_00164255 [14:42:50]save last doc name /storage/0445/doc_00164255 to /storage/kkm_last_doc_name [14:42:50]save OK [14:42:50]Clear old archive folders... [14:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:50]tlvbuf is 00A68740 [14:42:50]SAM_PROTO_ClearQueue [14:42:50]wFMCommunicate request_size=4 [14:42:50]MH_SAM_APDU [14:42:50]CAPDU: 80 09 00 00 [14:42:50]Write to MH i2c: E2 08 00 94 27 80 09 00 00 00 00 00 00 2D [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:50]Read from MH i2c: E2 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 03 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 03 00 94 27 00 90 00 2F [14:42:50]RAPDU: 90 00 [14:42:50]wFMCommunicate OK [14:42:50]SAM_PROTO_ClearQueue done [14:42:50]KKMCreateOFDPacket [14:42:50]OFDProtocolAddRootSTLVToBuf [14:42:50]FM_MakeSignedData [14:42:50]FM_MakeSignedData [14:42:50]SAM_PROTO_SignData [14:42:50]wFMCommunicate request_size=4 [14:42:50]MH_SAM_APDU [14:42:50]CAPDU: 80 0D 01 02 [14:42:50]Write to MH i2c: E2 08 00 95 27 80 0D 01 02 00 00 00 00 35 [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:50]Read from MH i2c: E2 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 03 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 03 00 95 27 00 90 00 30 [14:42:50]RAPDU: 90 00 [14:42:50]wFMCommunicate OK [14:42:50]wFMCommunicate request_size=255 [14:42:50]MH_SAM_APDU [14:42: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B0 00 00 00 F4 03 04 00 EB 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 81 02 00 35 04 06 00 2D [14:42:50]Write to MH i2c: E2 02 01 96 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B0 00 00 00 F4 03 04 00 EB 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 81 02 00 35 04 06 00 2D 00 00 2E [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 96 27 00 90 00 31 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]wFMCommunicate request_size=10 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 0D 02 02 05 FA 6F 29 F5 F9 [14:42:51]Write to MH i2c: E2 0D 00 97 27 80 0D 02 02 05 00 FA 6F 29 F5 F9 00 00 C2 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 97 27 00 90 00 32 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 0D 03 02 [14:42:51]Write to MH i2c: E2 08 00 98 27 80 0D 03 02 00 00 00 00 3A [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 0B 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 0B 00 98 27 00 A1 DB 8B DD F7 3F 59 38 90 00 E6 [14:42:51]RAPDU: A1 DB 8B DD F7 3F 59 38 90 00 [14:42:51]wFMCommunicate OK [14:42:51]SAM_PROTO_SignData done [14:42:51]FM_MakeSignedData done [14:42:51]CreateOFDProtocolMessage [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 11 00 00 [14:42:51]Write to MH i2c: E2 08 00 99 27 80 11 00 00 00 00 00 00 3A [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 17 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 17 00 99 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [14:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:42:51]wFMCommunicate OK [14:42:51]CreateOFDProtocolMessage done [14:42:51]OFDSenderStorePacket 164255 [14:42:51]StoreOFDPacket docnum=164255 [14:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 39 5C 07 01 E2 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B0 00 00 00 F4 03 04 00 EB 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 81 02 00 35 04 06 00 2D FA 6F 29 F5 F9 A1 DB 8B DD F7 3F 59 38 [14:42:51]CheckFolder [14:42:51]dirname=/storage/ofd_packets [14:42:51]CheckFolder done [14:42:51]ProducePacketName [14:42:51]name=ofd_packets/00164255 [14:42:51]NVStorageSaveData ofd_packets/00164255 [14:42:51]File name is /storage/ofd_packets/00164255 [14:42:51]Write 301 bytes [14:42:51]NVStorageSaveData done [14:42:51]OFDSenderStorePacket done [14:42:51]KKMCreateOFDPacket done [14:42:51]NVStorageSaveData kkm_last_timestamp [14:42:51]File name is /storage/kkm_last_timestamp [14:42:51]Write 4 bytes [14:42:51]NVStorageSaveData done [14:42:51]ExternCall_PrintAddStr [14:42:51]wPrintStart [14:42:51]Write to MH i2c: 01 00 00 9A 27 C1 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 07 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 07 00 9A 27 00 00 00 00 00 FF 0F D6 [14:42:51]RasterBufferAndPrint [14:42:51]line Счет N : (1)458338 [14:42:51]line ИНН: 02508201610067 [14:42:51]line Контрольно-Кассовый Чек [14:42:51]line ПРОДАЖА [14:42:51]line ТРК (МРК, ГНК) : 12 [14:42:51]line Товар: 2710124130 [14:42:51]line Аи-92-К-5 [14:42:51]line 3.040 * 65.80 [14:42:51]line = 200.03 [14:42:51]line НДС 12% НСП 1% [14:42:51]line > о реализуемом товаре [14:42:51]line ОКРУГЛЕНИЕ: -0.03 [14:42:51]line ИТОГО: 200.00 [14:42:51]line Внесено: 200.00 [14:42:51]line СДАЧА: 0.00 [14:42:51]line НСП 1% : 1.77 [14:42:51]line НДС 12% : 21.24 [14:42:51]line Наличными: 200.00 [14:42:51]line Безнал.: 0.00 [14:42:51]line Место: АЗС № 72 "Партнер Нефть" [14:42:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:42:51]line СНО: Общий режим [14:42:51]line Чек 176 12.07.2024 14:42 [14:42:51]line Смена: 445 ФФД: 1.0 [14:42:51]line ЗНМ: 0300000160 [14:42:51]line РНМ: 0000000000090829 [14:42:51]line Версия ККМ: 001 [14:42:51]line ФМ: 0000000000874718 [14:42:51]line ФД: 164255 [14:42:51]line ФПД: 50553630094841 [14:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144251&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164255&fm=50553630094841&tin=02508201610067®Number=0000000000090829&sum=20000 [14:42:51]OFD Sender: Processing packet 164255 [packets to send 104, broken 103] [14:42:51]ProducePacketName [14:42:51]name=ofd_packets/00164255 [14:42:51]OFD Sender: To server: pG, [14:42:51]CommunicateWithHost lk.salyk.kg:30040 [14:42:51]ConnectInit lk.salyk.kg [14:42:51]written 0, free lines is 4095 [14:42:51]Connected sock=10 [14:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 39 5C 07 01 E2 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B0 00 00 00 F4 03 04 00 EB 40 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 81 02 00 35 04 06 00 2D FA 6F 29 F5 F9 A1 DB 8B DD F7 3F 59 38 [14:42:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CF D4 47 00 B0 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 34 37 31 38 10 04 04 00 9F 81 02 00 F4 03 04 00 7F E7 90 66 B6 04 01 00 00 51 85 F9 B1 97 77 9D 26 [14:42:51]CommunicateWithHost err = 0 [14:42:51]CheckOFDResponse [14:42:51]1017 (14) - 77093643461234 [14:42:51]1041 (16) - 0000000000874718 [14:42:51]1040 (4) - 164255 [14:42:51]1012 (4) - 12.07.2024 08:21 [14:42:51]1206 (1) - 0 [14:42:51]OFD Sender: Remove packet 164255 [14:42:51]ProducePacketName [14:42:51]name=ofd_packets/00164255 [14:42:51]NVStorageDeleteData [14:42:52]Write to MH i2c: 01 00 00 C4 27 EB [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: 01 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: 01 07 00 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: 01 07 00 C4 27 00 00 00 00 00 FE 0C FC [14:42:52]RasterBufferAndPrint [14:42:52]line [14:42:52]line [14:42:52]line [14:42:52]line [14:42:52]line [14:42:52]written 0, free lines is 3332 [14:42:52]MH_Cut [14:42:52]Write to MH i2c: D1 01 00 CB 27 01 C4 [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: D1 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: D1 01 00 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: D1 01 00 CB 27 00 C3 [14:42:52]Write to MH i2c: 01 00 00 CC 27 F3 [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]OFD Sender: No OFD packet to send [14:42:52]*** Cut start [14:42:52]*** Partial cut [14:42:52]*** CUTSNS_PIN = 1 [14:42:52]*** CUTSNS_PIN = 0 [14:42:52]*** Brake cut motor [14:42:53]Read from MH i2c: 01 [14:42:53]MH_I2C_Read... [14:42:53]*** Stop cut motor [14:42:53]*** Cut end [14:42:53]Read from MH i2c: 01 07 00 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: 01 07 00 CC 27 00 00 00 00 00 FF 0F 08 [14:42:53]process_action close_receipt done [14:42:53]requested_data is exist [14:42:53]produce_requested_data [14:42:53]requested_item fm.sn is exist - process it [14:42:53]wFMCommunicate request_size=4 [14:42:53]MH_SAM_APDU [14:42:53]CAPDU: 80 11 00 00 [14:42:53]Write to MH i2c: E2 08 00 CD 27 80 11 00 00 00 00 00 00 6E [14:42:53]Write i2c OK [14:42:53]MH_I2C_Read... [14:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:53]Read from MH i2c: E2 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 17 00 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 17 00 CD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [14:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:42:53]wFMCommunicate OK [14:42:53]requested_item fd.num is exist - process it [14:42:53]SAM_PROTO_GetFieldsCounters [14:42:53]wFMCommunicate request_size=4 [14:42:53]MH_SAM_APDU [14:42:53]CAPDU: 80 13 00 00 [14:42:53]Write to MH i2c: E2 08 00 CE 27 80 13 00 00 00 00 00 00 71 [14:42:53]Write i2c OK [14:42:53]MH_I2C_Read... [14:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:53]Read from MH i2c: E2 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 62 00 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 62 00 CE 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [14:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:53]wFMCommunicate OK [14:42:53]SAM_PROTO_GetFieldsCounters done [14:42:53]requested_item shift.num is exist - process it [14:42:53]requested_item shift.opened is exist - process it [14:42:53]req_shift_opened [14:42:53]FM_GetShiftState [14:42:53]SAM_PROTO_GetShiftState [14:42:53]wFMCommunicate request_size=4 [14:42:53]MH_SAM_APDU [14:42:53]CAPDU: 80 13 01 00 [14:42:53]Write to MH i2c: E2 08 00 CF 27 80 13 01 00 00 00 00 00 73 [14:42:53]Write i2c OK [14:42:53]MH_I2C_Read... [14:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:53]Read from MH i2c: E2 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 0E 00 [14:42:53]MH_I2C_Read... [14:42:53]Read from MH i2c: E2 0E 00 CF 27 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BD [14:42:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:42:53]wFMCommunicate OK [14:42:53]SAM_PROTO_GetShiftState done [14:42:53]FM_GetShiftState done [14:42:53]req_shift_opened done [14:42:53]requested_item shift.open_date is exist - process it [14:42:53]req_shift_open_date [14:42:53]req_shift_open_date done [14:42:53]produce_requested_data done [14:42:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164255,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:42:53]process_action_free close_receipt [14:42:53]json_value_free [14:42:53]json_value_free done [14:42:53]process_json_proto returns [14:42:53]Send response to host [14:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164255,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:42:53]free response buf [14:42:53]execute_script done [14:42:53]execute_script returns [14:42:53]free content buf [14:42:53]Sock 9.Close socket [14:42:53]Sock 9.Thread stoped [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]accept exits with 7 [14:46:52]New connection [14:46:52]New thread 3066707300 created [14:46:52]Thread 3066850660 joined [14:46:52]Waiting for new connection... [14:46:52] Sock 7.Parse request [14:46:52]Sock 7.Check first char [14:46:52]Sock 7.First char is OK [14:46:52]request: POST /json_proto HTTP/1.0 [14:46:52]Method: POST [14:46:52]URL: /json_proto [14:46:52]Method is POST - this is cgi request [14:46:52]url: /json_proto [14:46:52]query_string will be loaded in cgi processing [14:46:52]execute_cgi json_proto POST (null) [14:46:52]execute_cgi path=json_proto method=POST [14:46:52]POST find Content-Length [14:46:52]Host: 172.17.56.4:8080 [14:46:52]Content-Length: 679 [14:46:52]Content-Type: application/json [14:46:52] [14:46:52]POST finish read [14:46:52]Found Content-Length = 679 [14:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:52]execute_script... [14:46:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:52]POST & json_proto [14:46:52]process_json_proto [14:46:52]json parsed OK: [14:46:52]protocol is kg_v1.0 [14:46:52]action value=close_receipt [14:46:52]process_action close_receipt [14:46:52]cmd_close_receipt [14:46:52]MH_GetDate [14:46:52]Write to MH i2c: F0 00 00 D0 27 E6 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: F0 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: F0 09 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: F0 09 00 D0 27 00 DD 41 91 66 C9 DC B2 64 BF [14:46:52]GetLastDocTimeStamp 1720795371 [14:46:52]current date 1720795613 [14:46:52]FM_GetShiftState [14:46:52]SAM_PROTO_GetShiftState [14:46:52]wFMCommunicate request_size=4 [14:46:52]MH_SAM_APDU [14:46:52]CAPDU: 80 13 01 00 [14:46:52]Write to MH i2c: E2 08 00 D1 27 80 13 01 00 00 00 00 00 75 [14:46:52]Write i2c OK [14:46:52]MH_I2C_Read... [14:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:52]Read from MH i2c: E2 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0E 00 [14:46:52]MH_I2C_Read... [14:46:52]Read from MH i2c: E2 0E 00 D1 27 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BF [14:46:52]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:46:52]wFMCommunicate OK [14:46:52]SAM_PROTO_GetShiftState done [14:46:52]FM_GetShiftState done [14:46:52]opened in 1720744654 [14:46:52]opened+sec_in_day 1720831054 [14:46:52]quantity*price = 200025 [14:46:52]sum+1 = 200027 [14:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 177 12.07.2024 14:46 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164256 ФПД: 2295257719230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144653&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164256&fm=2295257719230&tin=02508201610067®Number=0000000000090829&sum=200000 [14:46:53]StoreToDocumentArchive [14:46:53]shift 445 fd 164256 [14:46:53]save to /storage/0445/doc_00164256 [14:46:53]save last doc name /storage/0445/doc_00164256 to /storage/kkm_last_doc_name [14:46:53]save OK [14:46:53]Clear old archive folders... [14:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:46:53]tlvbuf is B6F3C700 [14:46:53]SAM_PROTO_ClearQueue [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 09 00 00 [14:46:53]Write to MH i2c: E2 08 00 DE 27 80 09 00 00 00 00 00 00 77 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 DE 27 00 90 00 79 [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]SAM_PROTO_ClearQueue done [14:46:53]KKMCreateOFDPacket [14:46:53]OFDProtocolAddRootSTLVToBuf [14:46:53]FM_MakeSignedData [14:46:53]FM_MakeSignedData [14:46:53]SAM_PROTO_SignData [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 0D 01 02 [14:46:53]Write to MH i2c: E2 08 00 DF 27 80 0D 01 02 00 00 00 00 7F [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 DF 27 00 90 00 7A [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]wFMCommunicate request_size=255 [14:46:53]MH_SAM_APDU [14:46: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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 B1 00 00 00 F4 03 04 00 DD 41 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 81 02 00 35 04 06 00 02 16 68 05 [14:46:53]Write to MH i2c: E2 02 01 E0 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 B1 00 00 00 F4 03 04 00 DD 41 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 81 02 00 35 04 06 00 02 16 68 05 00 00 9E [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 E0 27 00 90 00 7B [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]wFMCommunicate request_size=7 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 0D 02 02 02 61 BE [14:46:53]Write to MH i2c: E2 0A 00 E1 27 80 0D 02 02 02 00 61 BE 00 00 A5 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 03 00 E1 27 00 90 00 7C [14:46:53]RAPDU: 90 00 [14:46:53]wFMCommunicate OK [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 0D 03 02 [14:46:53]Write to MH i2c: E2 08 00 E2 27 80 0D 03 02 00 00 00 00 84 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 0B 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 0B 00 E2 27 00 81 51 65 A9 D2 98 2F 0C 90 00 0A [14:46:53]RAPDU: 81 51 65 A9 D2 98 2F 0C 90 00 [14:46:53]wFMCommunicate OK [14:46:53]SAM_PROTO_SignData done [14:46:53]FM_MakeSignedData done [14:46:53]CreateOFDProtocolMessage [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 11 00 00 [14:46:53]Write to MH i2c: E2 08 00 E3 27 80 11 00 00 00 00 00 00 84 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 17 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 17 00 E3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [14:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:46:53]wFMCommunicate OK [14:46:53]CreateOFDProtocolMessage done [14:46:53]OFDSenderStorePacket 164256 [14:46:53]StoreOFDPacket docnum=164256 [14:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 09 56 04 01 4E 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 B1 00 00 00 F4 03 04 00 DD 41 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 81 02 00 35 04 06 00 02 16 68 05 61 BE 81 51 65 A9 D2 98 2F 0C [14:46:53]CheckFolder [14:46:53]dirname=/storage/ofd_packets [14:46:53]CheckFolder done [14:46:53]ProducePacketName [14:46:53]name=ofd_packets/00164256 [14:46:53]NVStorageSaveData ofd_packets/00164256 [14:46:53]File name is /storage/ofd_packets/00164256 [14:46:53]Write 298 bytes [14:46:53]NVStorageSaveData done [14:46:53]OFDSenderStorePacket done [14:46:53]KKMCreateOFDPacket done [14:46:53]NVStorageSaveData kkm_last_timestamp [14:46:53]File name is /storage/kkm_last_timestamp [14:46:53]Write 4 bytes [14:46:53]NVStorageSaveData done [14:46:53]ExternCall_PrintAddStr [14:46:53]wPrintStart [14:46:53]Write to MH i2c: 01 00 00 E4 27 0B [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 07 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: 01 07 00 E4 27 00 00 00 00 00 FF 0F 20 [14:46:53]RasterBufferAndPrint [14:46:53]line Счет N : (1)458339 [14:46:53]line ИНН: 02508201610067 [14:46:53]line Контрольно-Кассовый Чек [14:46:53]line ПРОДАЖА [14:46:53]line ТРК (МРК, ГНК) : 11 [14:46:53]line Товар: 2710194210 [14:46:53]line ДТ-К-5 [14:46:53]line 27.820 * 71.90 [14:46:53]line = 2000.26 [14:46:53]line НДС 12% НСП 1% [14:46:53]line > о реализуемом товаре [14:46:53]line ОКРУГЛЕНИЕ: -0.26 [14:46:53]line ИТОГО: 2000.00 [14:46:53]line Внесено: 2000.00 [14:46:53]line СДАЧА: 0.00 [14:46:53]line НСП 1% : 17.70 [14:46:53]line НДС 12% : 212.42 [14:46:53]line Наличными: 2000.00 [14:46:53]line Безнал.: 0.00 [14:46:53]line Место: АЗС № 72 "Партнер Нефть" [14:46:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:46:53]line СНО: Общий режим [14:46:53]line Чек 177 12.07.2024 14:46 [14:46:53]line Смена: 445 ФФД: 1.0 [14:46:53]line ЗНМ: 0300000160 [14:46:53]line РНМ: 0000000000090829 [14:46:53]line Версия ККМ: 001 [14:46:53]line ФМ: 0000000000874718 [14:46:53]line ФД: 164256 [14:46:53]line ФПД: 2295257719230 [14:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144653&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164256&fm=2295257719230&tin=02508201610067®Number=0000000000090829&sum=200000 [14:46:54]OFD Sender: Processing packet 164256 [packets to send 104, broken 103] [14:46:54]ProducePacketName [14:46:54]name=ofd_packets/00164256 [14:46:54]OFD Sender: To server: pG, [14:46:54]CommunicateWithHost lk.salyk.kg:30040 [14:46:54]ConnectInit lk.salyk.kg [14:46:54]written 0, free lines is 4095 [14:46:54]Connected sock=10 [14:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 09 56 04 01 4E 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 B1 00 00 00 F4 03 04 00 DD 41 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 81 02 00 35 04 06 00 02 16 68 05 61 BE 81 51 65 A9 D2 98 2F 0C [14:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DA C8 47 00 94 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 34 37 31 38 10 04 04 00 A0 81 02 00 F4 03 04 00 71 E8 90 66 B6 04 01 00 00 B3 6C 12 11 9E F5 6E 51 [14:46:54]CommunicateWithHost err = 0 [14:46:54]CheckOFDResponse [14:46:54]1017 (14) - 77093643461234 [14:46:54]1041 (16) - 0000000000874718 [14:46:54]1040 (4) - 164256 [14:46:54]1012 (4) - 12.07.2024 08:25 [14:46:54]1206 (1) - 0 [14:46:54]OFD Sender: Remove packet 164256 [14:46:54]ProducePacketName [14:46:54]name=ofd_packets/00164256 [14:46:54]NVStorageDeleteData [14:46:54]Write to MH i2c: 01 00 00 0E 28 36 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: 01 07 00 0E 28 00 00 00 00 00 F7 0C 40 [14:46:54]RasterBufferAndPrint [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]line [14:46:54]written 0, free lines is 3326 [14:46:54]MH_Cut [14:46:54]Write to MH i2c: D1 01 00 15 28 01 0F [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 01 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: D1 01 00 15 28 00 0E [14:46:54]Write to MH i2c: 01 00 00 16 28 3E [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]OFD Sender: No OFD packet to send [14:46:55]*** Cut start [14:46:55]*** Partial cut [14:46:55]*** CUTSNS_PIN = 1 [14:46:55]*** CUTSNS_PIN = 0 [14:46:55]*** Brake cut motor [14:46:55]Read from MH i2c: 01 [14:46:55]MH_I2C_Read... [14:46:55]*** Stop cut motor [14:46:55]*** Cut end [14:46:55]Read from MH i2c: 01 07 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: 01 07 00 16 28 00 00 00 00 00 FF 0F 53 [14:46:55]process_action close_receipt done [14:46:55]requested_data is exist [14:46:55]produce_requested_data [14:46:55]requested_item fm.sn is exist - process it [14:46:55]wFMCommunicate request_size=4 [14:46:55]MH_SAM_APDU [14:46:55]CAPDU: 80 11 00 00 [14:46:55]Write to MH i2c: E2 08 00 17 28 80 11 00 00 00 00 00 00 B9 [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 17 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 17 00 17 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [14:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:46:55]wFMCommunicate OK [14:46:55]requested_item fd.num is exist - process it [14:46:55]SAM_PROTO_GetFieldsCounters [14:46:55]wFMCommunicate request_size=4 [14:46:55]MH_SAM_APDU [14:46:55]CAPDU: 80 13 00 00 [14:46:55]Write to MH i2c: E2 08 00 18 28 80 13 00 00 00 00 00 00 BC [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 62 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 62 00 18 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [14:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:55]wFMCommunicate OK [14:46:55]SAM_PROTO_GetFieldsCounters done [14:46:55]requested_item shift.num is exist - process it [14:46:55]requested_item shift.opened is exist - process it [14:46:55]req_shift_opened [14:46:55]FM_GetShiftState [14:46:55]SAM_PROTO_GetShiftState [14:46:55]wFMCommunicate request_size=4 [14:46:55]MH_SAM_APDU [14:46:55]CAPDU: 80 13 01 00 [14:46:55]Write to MH i2c: E2 08 00 19 28 80 13 01 00 00 00 00 00 BE [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 0E 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 0E 00 19 28 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 08 [14:46:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:46:55]wFMCommunicate OK [14:46:55]SAM_PROTO_GetShiftState done [14:46:55]FM_GetShiftState done [14:46:55]req_shift_opened done [14:46:55]requested_item shift.open_date is exist - process it [14:46:55]req_shift_open_date [14:46:55]req_shift_open_date done [14:46:55]produce_requested_data done [14:46:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164256,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:46:55]process_action_free close_receipt [14:46:55]json_value_free [14:46:55]json_value_free done [14:46:55]process_json_proto returns [14:46:55]Send response to host [14:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164256,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:46:55]free response buf [14:46:55]execute_script done [14:46:55]execute_script returns [14:46:55]free content buf [14:46:55]Sock 7.Close socket [14:46:55]Sock 7.Thread stoped [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:20]accept exits with 9 [14:47:20]New connection [14:47:20]New thread 3066850660 created [14:47:20]Thread 3066707300 joined [14:47:20]Waiting for new connection... [14:47:20] Sock 9.Parse request [14:47:20]Sock 9.Check first char [14:47:20]Sock 9.First char is OK [14:47:20]request: POST /json_proto HTTP/1.0 [14:47:20]Method: POST [14:47:20]URL: /json_proto [14:47:20]Method is POST - this is cgi request [14:47:20]url: /json_proto [14:47:20]query_string will be loaded in cgi processing [14:47:20]execute_cgi json_proto POST (null) [14:47:20]execute_cgi path=json_proto method=POST [14:47:20]POST find Content-Length [14:47:20]Host: 172.17.56.4:8080 [14:47:20]Content-Length: 677 [14:47:20]Content-Type: application/json [14:47:20] [14:47:20]POST finish read [14:47:20]Found Content-Length = 677 [14:47:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:20]execute_script... [14:47: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)458340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:20]POST & json_proto [14:47:20]process_json_proto [14:47:20]json parsed OK: [14:47:20]protocol is kg_v1.0 [14:47:20]action value=close_receipt [14:47:20]process_action close_receipt [14:47:20]cmd_close_receipt [14:47:20]MH_GetDate [14:47:20]Write to MH i2c: F0 00 00 1A 28 31 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: F0 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: F0 09 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: F0 09 00 1A 28 00 FA 41 91 66 C9 DC B2 64 27 [14:47:20]GetLastDocTimeStamp 1720795613 [14:47:20]current date 1720795642 [14:47:20]FM_GetShiftState [14:47:20]SAM_PROTO_GetShiftState [14:47:20]wFMCommunicate request_size=4 [14:47:20]MH_SAM_APDU [14:47:20]CAPDU: 80 13 01 00 [14:47:20]Write to MH i2c: E2 08 00 1B 28 80 13 01 00 00 00 00 00 C0 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:20]Read from MH i2c: E2 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 0E 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 0E 00 1B 28 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0A [14:47:20]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:47:20]wFMCommunicate OK [14:47:20]SAM_PROTO_GetShiftState done [14:47:20]FM_GetShiftState done [14:47:20]opened in 1720744654 [14:47:20]opened+sec_in_day 1720831054 [14:47:20]quantity*price = 25004 [14:47:20]sum+1 = 25005 [14:47:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 178 12.07.2024 14:47 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164257 ФПД: 165641683632555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144722&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164257&fm=165641683632555&tin=02508201610067®Number=0000000000090829&sum=25000 [14:47:21]StoreToDocumentArchive [14:47:21]shift 445 fd 164257 [14:47:21]save to /storage/0445/doc_00164257 [14:47:21]save last doc name /storage/0445/doc_00164257 to /storage/kkm_last_doc_name [14:47:21]save OK [14:47:21]Clear old archive folders... [14:47:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:21]tlvbuf is 00A777A0 [14:47:21]SAM_PROTO_ClearQueue [14:47:21]wFMCommunicate request_size=4 [14:47:21]MH_SAM_APDU [14:47:21]CAPDU: 80 09 00 00 [14:47:21]Write to MH i2c: E2 08 00 28 28 80 09 00 00 00 00 00 00 C2 [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:21]Read from MH i2c: E2 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 03 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 03 00 28 28 00 90 00 C4 [14:47:21]RAPDU: 90 00 [14:47:21]wFMCommunicate OK [14:47:21]SAM_PROTO_ClearQueue done [14:47:21]KKMCreateOFDPacket [14:47:21]OFDProtocolAddRootSTLVToBuf [14:47:21]FM_MakeSignedData [14:47:21]FM_MakeSignedData [14:47:21]SAM_PROTO_SignData [14:47:21]wFMCommunicate request_size=4 [14:47:21]MH_SAM_APDU [14:47:21]CAPDU: 80 0D 01 02 [14:47:21]Write to MH i2c: E2 08 00 29 28 80 0D 01 02 00 00 00 00 CA [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:21]Read from MH i2c: E2 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 03 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 03 00 29 28 00 90 00 C5 [14:47:21]RAPDU: 90 00 [14:47:21]wFMCommunicate OK [14:47:21]wFMCommunicate request_size=255 [14:47:21]MH_SAM_APDU [14:47: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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 FA 41 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 81 02 00 35 04 06 00 96 [14:47:21]Write to MH i2c: E2 02 01 2A 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 FA 41 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 81 02 00 35 04 06 00 96 00 00 4E [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 2A 28 00 90 00 C6 [14:47:22]RAPDU: 90 00 [14:47:22]wFMCommunicate OK [14:47:22]wFMCommunicate request_size=10 [14:47:22]MH_SAM_APDU [14:47:22]CAPDU: 80 0D 02 02 05 A6 75 B6 81 AB [14:47:22]Write to MH i2c: E2 0D 00 2B 28 80 0D 02 02 05 00 A6 75 B6 81 AB 00 00 D4 [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 2B 28 00 90 00 C7 [14:47:22]RAPDU: 90 00 [14:47:22]wFMCommunicate OK [14:47:22]wFMCommunicate request_size=4 [14:47:22]MH_SAM_APDU [14:47:22]CAPDU: 80 0D 03 02 [14:47:22]Write to MH i2c: E2 08 00 2C 28 80 0D 03 02 00 00 00 00 CF [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 0B 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 0B 00 2C 28 00 7B 64 A3 D7 07 9F 78 11 90 00 58 [14:47:22]RAPDU: 7B 64 A3 D7 07 9F 78 11 90 00 [14:47:22]wFMCommunicate OK [14:47:22]SAM_PROTO_SignData done [14:47:22]FM_MakeSignedData done [14:47:22]CreateOFDProtocolMessage [14:47:22]wFMCommunicate request_size=4 [14:47:22]MH_SAM_APDU [14:47:22]CAPDU: 80 11 00 00 [14:47:22]Write to MH i2c: E2 08 00 2D 28 80 11 00 00 00 00 00 00 CF [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 17 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 17 00 2D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [14:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:47:22]wFMCommunicate OK [14:47:22]CreateOFDProtocolMessage done [14:47:22]OFDSenderStorePacket 164257 [14:47:22]StoreOFDPacket docnum=164257 [14:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 BF 07 01 2B 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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 FA 41 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 81 02 00 35 04 06 00 96 A6 75 B6 81 AB 7B 64 A3 D7 07 9F 78 11 [14:47:22]CheckFolder [14:47:22]dirname=/storage/ofd_packets [14:47:22]CheckFolder done [14:47:22]ProducePacketName [14:47:22]name=ofd_packets/00164257 [14:47:22]NVStorageSaveData ofd_packets/00164257 [14:47:22]File name is /storage/ofd_packets/00164257 [14:47:22]Write 301 bytes [14:47:22]NVStorageSaveData done [14:47:22]OFDSenderStorePacket done [14:47:22]KKMCreateOFDPacket done [14:47:22]NVStorageSaveData kkm_last_timestamp [14:47:22]File name is /storage/kkm_last_timestamp [14:47:22]Write 4 bytes [14:47:22]NVStorageSaveData done [14:47:22]ExternCall_PrintAddStr [14:47:22]wPrintStart [14:47:22]Write to MH i2c: 01 00 00 2E 28 56 [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: 01 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: 01 07 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: 01 07 00 2E 28 00 00 00 00 00 FF 0F 6B [14:47:22]RasterBufferAndPrint [14:47:22]line Счет N : (1)458340 [14:47:22]line ИНН: 02508201610067 [14:47:22]line Контрольно-Кассовый Чек [14:47:22]line ПРОДАЖА [14:47:22]line ТРК (МРК, ГНК) : 12 [14:47:22]line Товар: 2710124130 [14:47:22]line Аи-92-К-5 [14:47:22]line 3.800 * 65.80 [14:47:22]line = 250.04 [14:47:22]line НДС 12% НСП 1% [14:47:22]line > о реализуемом товаре [14:47:22]line ОКРУГЛЕНИЕ: -0.04 [14:47:22]line ИТОГО: 250.00 [14:47:22]line Внесено: 250.00 [14:47:22]line СДАЧА: 0.00 [14:47:22]line НСП 1% : 2.21 [14:47:22]line НДС 12% : 26.55 [14:47:22]line Наличными: 250.00 [14:47:22]line Безнал.: 0.00 [14:47:22]line Место: АЗС № 72 "Партнер Нефть" [14:47:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:47:22]line СНО: Общий режим [14:47:22]line Чек 178 12.07.2024 14:47 [14:47:22]line Смена: 445 ФФД: 1.0 [14:47:22]line ЗНМ: 0300000160 [14:47:22]line РНМ: 0000000000090829 [14:47:22]line Версия ККМ: 001 [14:47:22]line ФМ: 0000000000874718 [14:47:22]line ФД: 164257 [14:47:22]line ФПД: 165641683632555 [14:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T144722&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164257&fm=165641683632555&tin=02508201610067®Number=0000000000090829&sum=25000 [14:47:22]written 0, free lines is 4095 [14:47:22]OFD Sender: Processing packet 164257 [packets to send 104, broken 103] [14:47:22]ProducePacketName [14:47:22]name=ofd_packets/00164257 [14:47:22]OFD Sender: To server: pG, [14:47:22]CommunicateWithHost lk.salyk.kg:30040 [14:47:22]ConnectInit lk.salyk.kg [14:47:22]Connected sock=10 [14:47:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 BF 07 01 2B 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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 FA 41 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 81 02 00 35 04 06 00 96 A6 75 B6 81 AB 7B 64 A3 D7 07 9F 78 11 [14:47:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 38 9D 47 00 6F 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 34 37 31 38 10 04 04 00 A1 81 02 00 F4 03 04 00 8E E8 90 66 B6 04 01 00 00 94 41 62 1D 00 AA AF 86 [14:47:22]CommunicateWithHost err = 0 [14:47:22]CheckOFDResponse [14:47:22]1017 (14) - 77093643461234 [14:47:22]1041 (16) - 0000000000874718 [14:47:22]1040 (4) - 164257 [14:47:22]1012 (4) - 12.07.2024 08:25 [14:47:22]1206 (1) - 0 [14:47:22]OFD Sender: Remove packet 164257 [14:47:22]ProducePacketName [14:47:22]name=ofd_packets/00164257 [14:47:22]NVStorageDeleteData [14:47:23]Write to MH i2c: 01 00 00 58 28 80 [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 58 28 00 00 00 00 00 EF 0C 82 [14:47:23]RasterBufferAndPrint [14:47:23]line [14:47:23]line [14:47:23]line [14:47:23]line [14:47:23]line [14:47:23]written 0, free lines is 3317 [14:47:23]MH_Cut [14:47:23]Write to MH i2c: D1 01 00 5F 28 01 59 [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D1 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D1 01 00 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D1 01 00 5F 28 00 58 [14:47:23]Write to MH i2c: 01 00 00 60 28 88 [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]OFD Sender: No OFD packet to send [14:47:23]*** Cut start [14:47:23]*** Partial cut [14:47:23]*** CUTSNS_PIN = 1 [14:47:23]*** CUTSNS_PIN = 0 [14:47:24]*** Brake cut motor [14:47:24]Read from MH i2c: 01 [14:47:24]MH_I2C_Read... [14:47:24]*** Stop cut motor [14:47:24]*** Cut end [14:47:24]Read from MH i2c: 01 07 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 07 00 60 28 00 00 00 00 00 FF 0F 9D [14:47:24]process_action close_receipt done [14:47:24]requested_data is exist [14:47:24]produce_requested_data [14:47:24]requested_item fm.sn is exist - process it [14:47:24]wFMCommunicate request_size=4 [14:47:24]MH_SAM_APDU [14:47:24]CAPDU: 80 11 00 00 [14:47:24]Write to MH i2c: E2 08 00 61 28 80 11 00 00 00 00 00 00 03 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:24]Read from MH i2c: E2 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 17 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 17 00 61 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [14:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:47:24]wFMCommunicate OK [14:47:24]requested_item fd.num is exist - process it [14:47:24]SAM_PROTO_GetFieldsCounters [14:47:24]wFMCommunicate request_size=4 [14:47:24]MH_SAM_APDU [14:47:24]CAPDU: 80 13 00 00 [14:47:24]Write to MH i2c: E2 08 00 62 28 80 13 00 00 00 00 00 00 06 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:24]Read from MH i2c: E2 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 62 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 62 00 62 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [14:47: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:24]wFMCommunicate OK [14:47:24]SAM_PROTO_GetFieldsCounters done [14:47:24]requested_item shift.num is exist - process it [14:47:24]requested_item shift.opened is exist - process it [14:47:24]req_shift_opened [14:47:24]FM_GetShiftState [14:47:24]SAM_PROTO_GetShiftState [14:47:24]wFMCommunicate request_size=4 [14:47:24]MH_SAM_APDU [14:47:24]CAPDU: 80 13 01 00 [14:47:24]Write to MH i2c: E2 08 00 63 28 80 13 01 00 00 00 00 00 08 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:24]Read from MH i2c: E2 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 0E 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 0E 00 63 28 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 52 [14:47:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:47:24]wFMCommunicate OK [14:47:24]SAM_PROTO_GetShiftState done [14:47:24]FM_GetShiftState done [14:47:24]req_shift_opened done [14:47:24]requested_item shift.open_date is exist - process it [14:47:24]req_shift_open_date [14:47:24]req_shift_open_date done [14:47:24]produce_requested_data done [14:47:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164257,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:47:24]process_action_free close_receipt [14:47:24]json_value_free [14:47:24]json_value_free done [14:47:24]process_json_proto returns [14:47:24]Send response to host [14:47:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164257,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:47:24]free response buf [14:47:24]execute_script done [14:47:24]execute_script returns [14:47:24]free content buf [14:47:24]Sock 9.Close socket [14:47:24]Sock 9.Thread stoped [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:29]accept exits with 7 [14:50:29]New connection [14:50:29]New thread 3066707300 created [14:50:29]Thread 3066850660 joined [14:50:29]Waiting for new connection... [14:50:29] Sock 7.Parse request [14:50:29]Sock 7.Check first char [14:50:29]Sock 7.First char is OK [14:50:29]request: POST /json_proto HTTP/1.0 [14:50:29]Method: POST [14:50:29]URL: /json_proto [14:50:29]Method is POST - this is cgi request [14:50:29]url: /json_proto [14:50:29]query_string will be loaded in cgi processing [14:50:29]execute_cgi json_proto POST (null) [14:50:29]execute_cgi path=json_proto method=POST [14:50:29]POST find Content-Length [14:50:29]Host: 172.17.56.4:8080 [14:50:29]Content-Length: 678 [14:50:29]Content-Type: application/json [14:50:29] [14:50:29]POST finish read [14:50:29]Found Content-Length = 678 [14:50:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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:50:29]execute_script... [14:50: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)458341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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:50:29]POST & json_proto [14:50:29]process_json_proto [14:50:29]json parsed OK: [14:50:29]protocol is kg_v1.0 [14:50:29]action value=close_receipt [14:50:29]process_action close_receipt [14:50:29]cmd_close_receipt [14:50:29]MH_GetDate [14:50:29]Write to MH i2c: F0 00 00 64 28 7B [14:50:29]Write i2c OK [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: F0 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: F0 09 00 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: F0 09 00 64 28 00 B7 42 91 66 C9 DC B2 64 2F [14:50:29]GetLastDocTimeStamp 1720795642 [14:50:29]current date 1720795831 [14:50:29]FM_GetShiftState [14:50:29]SAM_PROTO_GetShiftState [14:50:29]wFMCommunicate request_size=4 [14:50:29]MH_SAM_APDU [14:50:29]CAPDU: 80 13 01 00 [14:50:29]Write to MH i2c: E2 08 00 65 28 80 13 01 00 00 00 00 00 0A [14:50:29]Write i2c OK [14:50:29]MH_I2C_Read... [14:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:29]Read from MH i2c: E2 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: E2 0E 00 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: E2 0E 00 65 28 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 54 [14:50:29]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:50:29]wFMCommunicate OK [14:50:29]SAM_PROTO_GetShiftState done [14:50:29]FM_GetShiftState done [14:50:29]opened in 1720744654 [14:50:29]opened+sec_in_day 1720831054 [14:50:29]quantity*price = 80012 [14:50:29]sum+1 = 80014 [14:50:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 179 12.07.2024 14:50 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164258 ФПД: 254577926445641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145031&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164258&fm=254577926445641&tin=02508201610067®Number=0000000000090829&sum=80000 [14:50:30]StoreToDocumentArchive [14:50:30]shift 445 fd 164258 [14:50:30]save to /storage/0445/doc_00164258 [14:50:30]save last doc name /storage/0445/doc_00164258 to /storage/kkm_last_doc_name [14:50:30]save OK [14:50:30]Clear old archive folders... [14:50:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:30]tlvbuf is B6E8FA70 [14:50:30]SAM_PROTO_ClearQueue [14:50:30]wFMCommunicate request_size=4 [14:50:30]MH_SAM_APDU [14:50:30]CAPDU: 80 09 00 00 [14:50:30]Write to MH i2c: E2 08 00 72 28 80 09 00 00 00 00 00 00 0C [14:50:30]Write i2c OK [14:50:30]MH_I2C_Read... [14:50:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:31]Read from MH i2c: E2 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 03 00 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 03 00 72 28 00 90 00 0E [14:50:31]RAPDU: 90 00 [14:50:31]wFMCommunicate OK [14:50:31]SAM_PROTO_ClearQueue done [14:50:31]KKMCreateOFDPacket [14:50:31]OFDProtocolAddRootSTLVToBuf [14:50:31]FM_MakeSignedData [14:50:31]FM_MakeSignedData [14:50:31]SAM_PROTO_SignData [14:50:31]wFMCommunicate request_size=4 [14:50:31]MH_SAM_APDU [14:50:31]CAPDU: 80 0D 01 02 [14:50:31]Write to MH i2c: E2 08 00 73 28 80 0D 01 02 00 00 00 00 14 [14:50:31]Write i2c OK [14:50:31]MH_I2C_Read... [14:50:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:31]Read from MH i2c: E2 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 03 00 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 03 00 73 28 00 90 00 0F [14:50:31]RAPDU: 90 00 [14:50:31]wFMCommunicate OK [14:50:31]wFMCommunicate request_size=255 [14:50:31]MH_SAM_APDU [14:50: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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 B3 00 00 00 F4 03 04 00 B7 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 81 02 00 35 04 06 00 E7 [14:50:31]Write to MH i2c: E2 02 01 74 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 B3 00 00 00 F4 03 04 00 B7 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 81 02 00 35 04 06 00 E7 00 00 5D [14:50:31]Write i2c OK [14:50:31]MH_I2C_Read... [14:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:31]Read from MH i2c: E2 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 03 00 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 03 00 74 28 00 90 00 10 [14:50:31]RAPDU: 90 00 [14:50:31]wFMCommunicate OK [14:50:31]wFMCommunicate request_size=10 [14:50:31]MH_SAM_APDU [14:50:31]CAPDU: 80 0D 02 02 05 89 8A DF 9A 49 [14:50:31]Write to MH i2c: E2 0D 00 75 28 80 0D 02 02 05 00 89 8A DF 9A 49 00 00 F6 [14:50:31]Write i2c OK [14:50:31]MH_I2C_Read... [14:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:31]Read from MH i2c: E2 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 03 00 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 03 00 75 28 00 90 00 11 [14:50:31]RAPDU: 90 00 [14:50:31]wFMCommunicate OK [14:50:31]wFMCommunicate request_size=4 [14:50:31]MH_SAM_APDU [14:50:31]CAPDU: 80 0D 03 02 [14:50:31]Write to MH i2c: E2 08 00 76 28 80 0D 03 02 00 00 00 00 19 [14:50:31]Write i2c OK [14:50:31]MH_I2C_Read... [14:50:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:31]Read from MH i2c: E2 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 0B 00 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 0B 00 76 28 00 A1 A5 AF B7 4C C7 09 CC 90 00 AE [14:50:31]RAPDU: A1 A5 AF B7 4C C7 09 CC 90 00 [14:50:31]wFMCommunicate OK [14:50:31]SAM_PROTO_SignData done [14:50:31]FM_MakeSignedData done [14:50:31]CreateOFDProtocolMessage [14:50:31]wFMCommunicate request_size=4 [14:50:31]MH_SAM_APDU [14:50:31]CAPDU: 80 11 00 00 [14:50:31]Write to MH i2c: E2 08 00 77 28 80 11 00 00 00 00 00 00 19 [14:50:31]Write i2c OK [14:50:31]MH_I2C_Read... [14:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:31]Read from MH i2c: E2 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 17 00 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: E2 17 00 77 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [14:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:50:31]wFMCommunicate OK [14:50:31]CreateOFDProtocolMessage done [14:50:31]OFDSenderStorePacket 164258 [14:50:31]StoreOFDPacket docnum=164258 [14:50:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B2 B2 07 01 85 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 B3 00 00 00 F4 03 04 00 B7 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 81 02 00 35 04 06 00 E7 89 8A DF 9A 49 A1 A5 AF B7 4C C7 09 CC [14:50:31]CheckFolder [14:50:31]dirname=/storage/ofd_packets [14:50:31]CheckFolder done [14:50:31]ProducePacketName [14:50:31]name=ofd_packets/00164258 [14:50:31]NVStorageSaveData ofd_packets/00164258 [14:50:31]File name is /storage/ofd_packets/00164258 [14:50:31]Write 301 bytes [14:50:31]NVStorageSaveData done [14:50:31]OFDSenderStorePacket done [14:50:31]KKMCreateOFDPacket done [14:50:31]NVStorageSaveData kkm_last_timestamp [14:50:31]File name is /storage/kkm_last_timestamp [14:50:31]Write 4 bytes [14:50:31]NVStorageSaveData done [14:50:31]ExternCall_PrintAddStr [14:50:31]wPrintStart [14:50:31]Write to MH i2c: 01 00 00 78 28 A0 [14:50:31]Write i2c OK [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: 01 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: 01 07 00 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: 01 07 00 78 28 00 00 00 00 00 FF 0F B5 [14:50:31]RasterBufferAndPrint [14:50:31]line Счет N : (1)458341 [14:50:31]line ИНН: 02508201610067 [14:50:31]line Контрольно-Кассовый Чек [14:50:31]line ПРОДАЖА [14:50:31]line ТРК (МРК, ГНК) : 12 [14:50:31]line Товар: 2710124130 [14:50:31]line Аи-92-К-5 [14:50:31]line 12.160 * 65.80 [14:50:31]line = 800.13 [14:50:31]line НДС 12% НСП 1% [14:50:31]line > о реализуемом товаре [14:50:31]line ОКРУГЛЕНИЕ: -0.13 [14:50:31]line ИТОГО: 800.00 [14:50:31]line Внесено: 800.00 [14:50:31]line СДАЧА: 0.00 [14:50:31]line НСП 1% : 7.08 [14:50:31]line НДС 12% : 84.97 [14:50:31]line Наличными: 800.00 [14:50:31]line Безнал.: 0.00 [14:50:31]line Место: АЗС № 72 "Партнер Нефть" [14:50:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:50:31]line СНО: Общий режим [14:50:31]line Чек 179 12.07.2024 14:50 [14:50:31]line Смена: 445 ФФД: 1.0 [14:50:31]line ЗНМ: 0300000160 [14:50:31]line РНМ: 0000000000090829 [14:50:31]line Версия ККМ: 001 [14:50:31]line ФМ: 0000000000874718 [14:50:31]line ФД: 164258 [14:50:31]line ФПД: 254577926445641 [14:50:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145031&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164258&fm=254577926445641&tin=02508201610067®Number=0000000000090829&sum=80000 [14:50:31]written 0, free lines is 4095 [14:50:31]OFD Sender: Processing packet 164258 [packets to send 104, broken 103] [14:50:31]ProducePacketName [14:50:31]name=ofd_packets/00164258 [14:50:31]OFD Sender: To server: pG, [14:50:31]CommunicateWithHost lk.salyk.kg:30040 [14:50:31]ConnectInit lk.salyk.kg [14:50:31]Connected sock=10 [14:50:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B2 B2 07 01 85 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 B3 00 00 00 F4 03 04 00 B7 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 81 02 00 35 04 06 00 E7 89 8A DF 9A 49 A1 A5 AF B7 4C C7 09 CC [14:50:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 47 47 00 79 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 34 37 31 38 10 04 04 00 A2 81 02 00 F4 03 04 00 4B E9 90 66 B6 04 01 00 00 AF E2 BE D4 04 61 E2 48 [14:50:32]CommunicateWithHost err = 0 [14:50:32]CheckOFDResponse [14:50:32]1017 (14) - 77093643461234 [14:50:32]1041 (16) - 0000000000874718 [14:50:32]1040 (4) - 164258 [14:50:32]1012 (4) - 12.07.2024 08:28 [14:50:32]1206 (1) - 0 [14:50:32]OFD Sender: Remove packet 164258 [14:50:32]ProducePacketName [14:50:32]name=ofd_packets/00164258 [14:50:32]NVStorageDeleteData [14:50:32]Write to MH i2c: 01 00 00 A2 28 CA [14:50:32]Write i2c OK [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: 01 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: 01 07 00 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: 01 07 00 A2 28 00 00 00 00 00 F3 0C D0 [14:50:32]RasterBufferAndPrint [14:50:32]line [14:50:32]line [14:50:32]line [14:50:32]line [14:50:32]line [14:50:32]written 0, free lines is 3321 [14:50:32]MH_Cut [14:50:32]Write to MH i2c: D1 01 00 A9 28 01 A3 [14:50:32]Write i2c OK [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: D1 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: D1 01 00 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: D1 01 00 A9 28 00 A2 [14:50:32]Write to MH i2c: 01 00 00 AA 28 D2 [14:50:32]Write i2c OK [14:50:32]MH_I2C_Read... [14:50:32]OFD Sender: No OFD packet to send [14:50:32]*** Cut start [14:50:32]*** Partial cut [14:50:32]*** CUTSNS_PIN = 1 [14:50:32]*** CUTSNS_PIN = 0 [14:50:33]*** Brake cut motor [14:50:33]Read from MH i2c: 01 [14:50:33]MH_I2C_Read... [14:50:33]*** Stop cut motor [14:50:33]*** Cut end [14:50:33]Read from MH i2c: 01 07 00 [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: 01 07 00 AA 28 00 00 00 00 00 FF 0F E7 [14:50:33]process_action close_receipt done [14:50:33]requested_data is exist [14:50:33]produce_requested_data [14:50:33]requested_item fm.sn is exist - process it [14:50:33]wFMCommunicate request_size=4 [14:50:33]MH_SAM_APDU [14:50:33]CAPDU: 80 11 00 00 [14:50:33]Write to MH i2c: E2 08 00 AB 28 80 11 00 00 00 00 00 00 4D [14:50:33]Write i2c OK [14:50:33]MH_I2C_Read... [14:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:33]Read from MH i2c: E2 [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: E2 17 00 [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: E2 17 00 AB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [14:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:50:33]wFMCommunicate OK [14:50:33]requested_item fd.num is exist - process it [14:50:33]SAM_PROTO_GetFieldsCounters [14:50:33]wFMCommunicate request_size=4 [14:50:33]MH_SAM_APDU [14:50:33]CAPDU: 80 13 00 00 [14:50:33]Write to MH i2c: E2 08 00 AC 28 80 13 00 00 00 00 00 00 50 [14:50:33]Write i2c OK [14:50:33]MH_I2C_Read... [14:50:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:33]Read from MH i2c: E2 [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: E2 62 00 [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: E2 62 00 AC 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [14:50: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:33]wFMCommunicate OK [14:50:33]SAM_PROTO_GetFieldsCounters done [14:50:33]requested_item shift.num is exist - process it [14:50:33]requested_item shift.opened is exist - process it [14:50:33]req_shift_opened [14:50:33]FM_GetShiftState [14:50:33]SAM_PROTO_GetShiftState [14:50:33]wFMCommunicate request_size=4 [14:50:33]MH_SAM_APDU [14:50:33]CAPDU: 80 13 01 00 [14:50:33]Write to MH i2c: E2 08 00 AD 28 80 13 01 00 00 00 00 00 52 [14:50:33]Write i2c OK [14:50:33]MH_I2C_Read... [14:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:33]Read from MH i2c: E2 [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: E2 0E 00 [14:50:33]MH_I2C_Read... [14:50:33]Read from MH i2c: E2 0E 00 AD 28 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9C [14:50:33]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:50:33]wFMCommunicate OK [14:50:33]SAM_PROTO_GetShiftState done [14:50:33]FM_GetShiftState done [14:50:33]req_shift_opened done [14:50:33]requested_item shift.open_date is exist - process it [14:50:33]req_shift_open_date [14:50:33]req_shift_open_date done [14:50:33]produce_requested_data done [14:50:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164258,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:50:33]process_action_free close_receipt [14:50:33]json_value_free [14:50:33]json_value_free done [14:50:33]process_json_proto returns [14:50:33]Send response to host [14:50:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164258,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:50:33]free response buf [14:50:33]execute_script done [14:50:33]execute_script returns [14:50:33]free content buf [14:50:33]Sock 7.Close socket [14:50:33]Sock 7.Thread stoped [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:50:57]accept exits with 9 [14:50:57]New connection [14:50:57]New thread 3066850660 created [14:50:57]Thread 3066707300 joined [14:50:57]Waiting for new connection... [14:50:57] Sock 9.Parse request [14:50:57]Sock 9.Check first char [14:50:57]Sock 9.First char is OK [14:50:57]request: POST /json_proto HTTP/1.0 [14:50:57]Method: POST [14:50:57]URL: /json_proto [14:50:57]Method is POST - this is cgi request [14:50:57]url: /json_proto [14:50:57]query_string will be loaded in cgi processing [14:50:57]execute_cgi json_proto POST (null) [14:50:57]execute_cgi path=json_proto method=POST [14:50:57]POST find Content-Length [14:50:57]Host: 172.17.56.4:8080 [14:50:57]Content-Length: 677 [14:50:57]Content-Type: application/json [14:50:57] [14:50:57]POST finish read [14:50:57]Found Content-Length = 677 [14:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [14:50:57]execute_script... [14:50: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)458343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [14:50:57]POST & json_proto [14:50:57]process_json_proto [14:50:57]json parsed OK: [14:50:57]protocol is kg_v1.0 [14:50:57]action value=close_receipt [14:50:57]process_action close_receipt [14:50:57]cmd_close_receipt [14:50:57]MH_GetDate [14:50:57]Write to MH i2c: F0 00 00 AE 28 C5 [14:50:57]Write i2c OK [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: F0 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: F0 09 00 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: F0 09 00 AE 28 00 D3 42 91 66 C9 DC B2 64 95 [14:50:57]GetLastDocTimeStamp 1720795831 [14:50:57]current date 1720795859 [14:50:57]FM_GetShiftState [14:50:57]SAM_PROTO_GetShiftState [14:50:57]wFMCommunicate request_size=4 [14:50:57]MH_SAM_APDU [14:50:57]CAPDU: 80 13 01 00 [14:50:57]Write to MH i2c: E2 08 00 AF 28 80 13 01 00 00 00 00 00 54 [14:50:57]Write i2c OK [14:50:57]MH_I2C_Read... [14:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:57]Read from MH i2c: E2 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: E2 0E 00 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: E2 0E 00 AF 28 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9E [14:50:57]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:50:57]wFMCommunicate OK [14:50:57]SAM_PROTO_GetShiftState done [14:50:57]FM_GetShiftState done [14:50:57]opened in 1720744654 [14:50:57]opened+sec_in_day 1720831054 [14:50:57]quantity*price = 10001 [14:50:57]sum+1 = 10003 [14:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 180 12.07.2024 14:50 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164259 ФПД: 277437207185316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164259&fm=277437207185316&tin=02508201610067®Number=0000000000090829&sum=10000 [14:50:58]StoreToDocumentArchive [14:50:58]shift 445 fd 164259 [14:50:58]save to /storage/0445/doc_00164259 [14:50:58]save last doc name /storage/0445/doc_00164259 to /storage/kkm_last_doc_name [14:50:58]save OK [14:50:58]Clear old archive folders... [14:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:58]tlvbuf is 00AB34D0 [14:50:58]SAM_PROTO_ClearQueue [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 09 00 00 [14:50:58]Write to MH i2c: E2 08 00 BC 28 80 09 00 00 00 00 00 00 56 [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 BC 28 00 90 00 58 [14:50:58]RAPDU: 90 00 [14:50:58]wFMCommunicate OK [14:50:58]SAM_PROTO_ClearQueue done [14:50:58]KKMCreateOFDPacket [14:50:58]OFDProtocolAddRootSTLVToBuf [14:50:58]FM_MakeSignedData [14:50:58]FM_MakeSignedData [14:50:58]SAM_PROTO_SignData [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 0D 01 02 [14:50:58]Write to MH i2c: E2 08 00 BD 28 80 0D 01 02 00 00 00 00 5E [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 BD 28 00 90 00 59 [14:50:58]RAPDU: 90 00 [14:50:59]wFMCommunicate OK [14:50:59]wFMCommunicate request_size=255 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D3 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 81 02 00 35 04 06 00 FC [14:50:59]Write to MH i2c: E2 02 01 BE 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D3 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 81 02 00 35 04 06 00 FC 00 00 F9 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 BE 28 00 90 00 5A [14:50:59]RAPDU: 90 00 [14:50:59]wFMCommunicate OK [14:50:59]wFMCommunicate request_size=10 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 0D 02 02 05 53 E2 2E 87 A4 [14:50:59]Write to MH i2c: E2 0D 00 BF 28 80 0D 02 02 05 00 53 E2 2E 87 A4 00 00 F9 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 BF 28 00 90 00 5B [14:50:59]RAPDU: 90 00 [14:50:59]wFMCommunicate OK [14:50:59]wFMCommunicate request_size=4 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 0D 03 02 [14:50:59]Write to MH i2c: E2 08 00 C0 28 80 0D 03 02 00 00 00 00 63 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 0B 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 0B 00 C0 28 00 26 29 54 A2 EF 04 83 53 90 00 72 [14:50:59]RAPDU: 26 29 54 A2 EF 04 83 53 90 00 [14:50:59]wFMCommunicate OK [14:50:59]SAM_PROTO_SignData done [14:50:59]FM_MakeSignedData done [14:50:59]CreateOFDProtocolMessage [14:50:59]wFMCommunicate request_size=4 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 11 00 00 [14:50:59]Write to MH i2c: E2 08 00 C1 28 80 11 00 00 00 00 00 00 63 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 17 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 17 00 C1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [14:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:50:59]wFMCommunicate OK [14:50:59]CreateOFDProtocolMessage done [14:50:59]OFDSenderStorePacket 164259 [14:50:59]StoreOFDPacket docnum=164259 [14:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC 32 07 01 EB 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D3 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 81 02 00 35 04 06 00 FC 53 E2 2E 87 A4 26 29 54 A2 EF 04 83 53 [14:50:59]CheckFolder [14:50:59]dirname=/storage/ofd_packets [14:50:59]CheckFolder done [14:50:59]ProducePacketName [14:50:59]name=ofd_packets/00164259 [14:50:59]NVStorageSaveData ofd_packets/00164259 [14:50:59]File name is /storage/ofd_packets/00164259 [14:50:59]Write 301 bytes [14:50:59]NVStorageSaveData done [14:50:59]OFDSenderStorePacket done [14:50:59]KKMCreateOFDPacket done [14:50:59]NVStorageSaveData kkm_last_timestamp [14:50:59]File name is /storage/kkm_last_timestamp [14:50:59]Write 4 bytes [14:50:59]NVStorageSaveData done [14:50:59]ExternCall_PrintAddStr [14:50:59]wPrintStart [14:50:59]Write to MH i2c: 01 00 00 C2 28 EA [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 07 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 07 00 C2 28 00 00 00 00 00 FF 0F FF [14:50:59]RasterBufferAndPrint [14:50:59]line Счет N : (1)458343 [14:50:59]line ИНН: 02508201610067 [14:50:59]line Контрольно-Кассовый Чек [14:50:59]line ПРОДАЖА [14:50:59]line ТРК (МРК, ГНК) : 12 [14:50:59]line Товар: 2710124130 [14:50:59]line Аи-92-К-5 [14:50:59]line 1.520 * 65.80 [14:50:59]line = 100.02 [14:50:59]line НДС 12% НСП 1% [14:50:59]line > о реализуемом товаре [14:50:59]line ОКРУГЛЕНИЕ: -0.02 [14:50:59]line ИТОГО: 100.00 [14:50:59]line Внесено: 100.00 [14:50:59]line СДАЧА: 0.00 [14:50:59]line НСП 1% : 0.88 [14:50:59]line НДС 12% : 10.62 [14:50:59]line Наличными: 100.00 [14:50:59]line Безнал.: 0.00 [14:50:59]line Место: АЗС № 72 "Партнер Нефть" [14:50:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:50:59]line СНО: Общий режим [14:50:59]line Чек 180 12.07.2024 14:50 [14:50:59]line Смена: 445 ФФД: 1.0 [14:50:59]line ЗНМ: 0300000160 [14:50:59]line РНМ: 0000000000090829 [14:50:59]line Версия ККМ: 001 [14:50:59]line ФМ: 0000000000874718 [14:50:59]line ФД: 164259 [14:50:59]line ФПД: 277437207185316 [14:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164259&fm=277437207185316&tin=02508201610067®Number=0000000000090829&sum=10000 [14:50:59]written 0, free lines is 4095 [14:50:59]OFD Sender: Processing packet 164259 [packets to send 104, broken 103] [14:50:59]ProducePacketName [14:50:59]name=ofd_packets/00164259 [14:50:59]OFD Sender: To server: pG, [14:50:59]CommunicateWithHost lk.salyk.kg:30040 [14:50:59]ConnectInit lk.salyk.kg [14:50:59]Connected sock=10 [14:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC 32 07 01 EB 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D3 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 81 02 00 35 04 06 00 FC 53 E2 2E 87 A4 26 29 54 A2 EF 04 83 53 [14:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B7 C9 47 00 CE 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 34 37 31 38 10 04 04 00 A3 81 02 00 F4 03 04 00 67 E9 90 66 B6 04 01 00 00 6D 5F 49 95 02 85 4F 13 [14:51:00]CommunicateWithHost err = 0 [14:51:00]CheckOFDResponse [14:51:00]1017 (14) - 77093643461234 [14:51:00]1041 (16) - 0000000000874718 [14:51:00]1040 (4) - 164259 [14:51:00]1012 (4) - 12.07.2024 08:29 [14:51:00]1206 (1) - 0 [14:51:00]OFD Sender: Remove packet 164259 [14:51:00]ProducePacketName [14:51:00]name=ofd_packets/00164259 [14:51:00]NVStorageDeleteData [14:51:00]Write to MH i2c: 01 00 00 EC 28 14 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: 01 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: 01 07 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: 01 07 00 EC 28 00 00 00 00 00 ED 0C 14 [14:51:00]RasterBufferAndPrint [14:51:00]line [14:51:00]line [14:51:00]line [14:51:00]line [14:51:00]line [14:51:00]written 0, free lines is 3315 [14:51:00]MH_Cut [14:51:00]Write to MH i2c: D1 01 00 F3 28 01 ED [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: D1 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: D1 01 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: D1 01 00 F3 28 00 EC [14:51:00]Write to MH i2c: 01 00 00 F4 28 1C [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]OFD Sender: No OFD packet to send [14:51:00]*** Cut start [14:51:00]*** Partial cut [14:51:00]*** CUTSNS_PIN = 1 [14:51:00]*** CUTSNS_PIN = 0 [14:51:01]*** Brake cut motor [14:51:01]Read from MH i2c: 01 [14:51:01]MH_I2C_Read... [14:51:01]*** Stop cut motor [14:51:01]*** Cut end [14:51:01]Read from MH i2c: 01 07 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: 01 07 00 F4 28 00 00 00 00 00 FF 0F 31 [14:51:01]process_action close_receipt done [14:51:01]requested_data is exist [14:51:01]produce_requested_data [14:51:01]requested_item fm.sn is exist - process it [14:51:01]wFMCommunicate request_size=4 [14:51:01]MH_SAM_APDU [14:51:01]CAPDU: 80 11 00 00 [14:51:01]Write to MH i2c: E2 08 00 F5 28 80 11 00 00 00 00 00 00 97 [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:01]Read from MH i2c: E2 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 17 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 17 00 F5 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [14:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:51:01]wFMCommunicate OK [14:51:01]requested_item fd.num is exist - process it [14:51:01]SAM_PROTO_GetFieldsCounters [14:51:01]wFMCommunicate request_size=4 [14:51:01]MH_SAM_APDU [14:51:01]CAPDU: 80 13 00 00 [14:51:01]Write to MH i2c: E2 08 00 F6 28 80 13 00 00 00 00 00 00 9A [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:01]Read from MH i2c: E2 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 62 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 62 00 F6 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [14:51: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:01]wFMCommunicate OK [14:51:01]SAM_PROTO_GetFieldsCounters done [14:51:01]requested_item shift.num is exist - process it [14:51:01]requested_item shift.opened is exist - process it [14:51:01]req_shift_opened [14:51:01]FM_GetShiftState [14:51:01]SAM_PROTO_GetShiftState [14:51:01]wFMCommunicate request_size=4 [14:51:01]MH_SAM_APDU [14:51:01]CAPDU: 80 13 01 00 [14:51:01]Write to MH i2c: E2 08 00 F7 28 80 13 01 00 00 00 00 00 9C [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:01]Read from MH i2c: E2 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 0E 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 0E 00 F7 28 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E6 [14:51:01]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:51:01]wFMCommunicate OK [14:51:01]SAM_PROTO_GetShiftState done [14:51:01]FM_GetShiftState done [14:51:01]req_shift_opened done [14:51:01]requested_item shift.open_date is exist - process it [14:51:01]req_shift_open_date [14:51:01]req_shift_open_date done [14:51:01]produce_requested_data done [14:51:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164259,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:51:01]process_action_free close_receipt [14:51:01]json_value_free [14:51:01]json_value_free done [14:51:01]process_json_proto returns [14:51:01]Send response to host [14:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164259,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:51:01]free response buf [14:51:01]execute_script done [14:51:01]execute_script returns [14:51:01]free content buf [14:51:01]Sock 9.Close socket [14:51:01]Sock 9.Thread stoped [14:51:03]accept exits with 7 [14:51:03]New connection [14:51:03]New thread 3066707300 created [14:51:03]Thread 3066850660 joined [14:51:03]Waiting for new connection... [14:51:03] Sock 7.Parse request [14:51:03]Sock 7.Check first char [14:51:03]Sock 7.First char is OK [14:51:03]request: POST /json_proto HTTP/1.0 [14:51:03]Method: POST [14:51:03]URL: /json_proto [14:51:03]Method is POST - this is cgi request [14:51:03]url: /json_proto [14:51:03]query_string will be loaded in cgi processing [14:51:03]execute_cgi json_proto POST (null) [14:51:03]execute_cgi path=json_proto method=POST [14:51:03]POST find Content-Length [14:51:03]Host: 172.17.56.4:8080 [14:51:03]Content-Length: 682 [14:51:03]Content-Type: application/json [14:51:03] [14:51:03]POST finish read [14:51:03]Found Content-Length = 682 [14:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:51:03]execute_script... [14:51: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)458342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:51:03]POST & json_proto [14:51:03]process_json_proto [14:51:03]json parsed OK: [14:51:03]protocol is kg_v1.0 [14:51:03]action value=close_receipt [14:51:03]process_action close_receipt [14:51:03]cmd_close_receipt [14:51:03]MH_GetDate [14:51:03]Write to MH i2c: F0 00 00 F8 28 0F [14:51:03]Write i2c OK [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: F0 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: F0 09 00 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: F0 09 00 F8 28 00 D9 42 91 66 C9 DC B2 64 E5 [14:51:03]GetLastDocTimeStamp 1720795859 [14:51:03]current date 1720795865 [14:51:03]FM_GetShiftState [14:51:03]SAM_PROTO_GetShiftState [14:51:03]wFMCommunicate request_size=4 [14:51:03]MH_SAM_APDU [14:51:03]CAPDU: 80 13 01 00 [14:51:03]Write to MH i2c: E2 08 00 F9 28 80 13 01 00 00 00 00 00 9E [14:51:03]Write i2c OK [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 [14:51:03]MH_I2C_Read... [14:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:03]Read from MH i2c: E2 0E 00 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 0E 00 F9 28 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E8 [14:51:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:51:03]wFMCommunicate OK [14:51:03]SAM_PROTO_GetShiftState done [14:51:03]FM_GetShiftState done [14:51:03]opened in 1720744654 [14:51:03]opened+sec_in_day 1720831054 [14:51:03]quantity*price = 100016 [14:51:03]sum+1 = 100017 [14:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 181 12.07.2024 14:51 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164260 ФПД: 226520930935644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145105&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164260&fm=226520930935644&tin=02508201610067®Number=0000000000090829&sum=100000 [14:51:04]StoreToDocumentArchive [14:51:04]shift 445 fd 164260 [14:51:04]save to /storage/0445/doc_00164260 [14:51:04]save last doc name /storage/0445/doc_00164260 to /storage/kkm_last_doc_name [14:51:04]save OK [14:51:04]Clear old archive folders... [14:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:04]tlvbuf is 00A44EB0 [14:51:04]SAM_PROTO_ClearQueue [14:51:04]wFMCommunicate request_size=4 [14:51:04]MH_SAM_APDU [14:51:04]CAPDU: 80 09 00 00 [14:51:04]Write to MH i2c: E2 08 00 06 29 80 09 00 00 00 00 00 00 A1 [14:51:04]Write i2c OK [14:51:04]MH_I2C_Read... [14:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:04]Read from MH i2c: E2 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 06 29 00 90 00 A3 [14:51:04]RAPDU: 90 00 [14:51:04]wFMCommunicate OK [14:51:04]SAM_PROTO_ClearQueue done [14:51:04]KKMCreateOFDPacket [14:51:04]OFDProtocolAddRootSTLVToBuf [14:51:04]FM_MakeSignedData [14:51:04]FM_MakeSignedData [14:51:04]SAM_PROTO_SignData [14:51:04]wFMCommunicate request_size=4 [14:51:04]MH_SAM_APDU [14:51:04]CAPDU: 80 0D 01 02 [14:51:04]Write to MH i2c: E2 08 00 07 29 80 0D 01 02 00 00 00 00 A9 [14:51:04]Write i2c OK [14:51:04]MH_I2C_Read... [14:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:04]Read from MH i2c: E2 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 07 29 00 90 00 A4 [14:51:04]RAPDU: 90 00 [14:51:04]wFMCommunicate OK [14:51:04]wFMCommunicate request_size=255 [14:51:04]MH_SAM_APDU [14:51: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D9 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 81 02 00 35 04 06 00 CE [14:51:04]Write to MH i2c: E2 02 01 08 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D9 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 81 02 00 35 04 06 00 CE 00 00 3E [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:05]Read from MH i2c: E2 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: E2 03 00 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: E2 03 00 08 29 00 90 00 A5 [14:51:05]RAPDU: 90 00 [14:51:05]wFMCommunicate OK [14:51:05]wFMCommunicate request_size=10 [14:51:05]MH_SAM_APDU [14:51:05]CAPDU: 80 0D 02 02 05 05 03 9F 63 5C [14:51:05]Write to MH i2c: E2 0D 00 09 29 80 0D 02 02 05 00 05 03 9F 63 5C 00 00 1C [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:05]Read from MH i2c: E2 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: E2 03 00 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: E2 03 00 09 29 00 90 00 A6 [14:51:05]RAPDU: 90 00 [14:51:05]wFMCommunicate OK [14:51:05]wFMCommunicate request_size=4 [14:51:05]MH_SAM_APDU [14:51:05]CAPDU: 80 0D 03 02 [14:51:05]Write to MH i2c: E2 08 00 0A 29 80 0D 03 02 00 00 00 00 AE [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:05]Read from MH i2c: E2 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: E2 0B 00 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: E2 0B 00 0A 29 00 45 E4 2B AB 4B 75 A3 2A 90 00 3B [14:51:05]RAPDU: 45 E4 2B AB 4B 75 A3 2A 90 00 [14:51:05]wFMCommunicate OK [14:51:05]SAM_PROTO_SignData done [14:51:05]FM_MakeSignedData done [14:51:05]CreateOFDProtocolMessage [14:51:05]wFMCommunicate request_size=4 [14:51:05]MH_SAM_APDU [14:51:05]CAPDU: 80 11 00 00 [14:51:05]Write to MH i2c: E2 08 00 0B 29 80 11 00 00 00 00 00 00 AE [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:05]Read from MH i2c: E2 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: E2 17 00 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: E2 17 00 0B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [14:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:51:05]wFMCommunicate OK [14:51:05]CreateOFDProtocolMessage done [14:51:05]OFDSenderStorePacket 164260 [14:51:05]StoreOFDPacket docnum=164260 [14:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0F 5F 07 01 45 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D9 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 81 02 00 35 04 06 00 CE 05 03 9F 63 5C 45 E4 2B AB 4B 75 A3 2A [14:51:05]CheckFolder [14:51:05]dirname=/storage/ofd_packets [14:51:05]CheckFolder done [14:51:05]ProducePacketName [14:51:05]name=ofd_packets/00164260 [14:51:05]NVStorageSaveData ofd_packets/00164260 [14:51:05]File name is /storage/ofd_packets/00164260 [14:51:05]Write 301 bytes [14:51:05]NVStorageSaveData done [14:51:05]OFDSenderStorePacket done [14:51:05]KKMCreateOFDPacket done [14:51:05]NVStorageSaveData kkm_last_timestamp [14:51:05]File name is /storage/kkm_last_timestamp [14:51:05]Write 4 bytes [14:51:05]NVStorageSaveData done [14:51:05]ExternCall_PrintAddStr [14:51:05]wPrintStart [14:51:05]Write to MH i2c: 01 00 00 0C 29 35 [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: 01 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: 01 07 00 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: 01 07 00 0C 29 00 00 00 00 00 FF 0F 4A [14:51:05]RasterBufferAndPrint [14:51:05]line Счет N : (1)458342 [14:51:05]line ИНН: 02508201610067 [14:51:05]line Контрольно-Кассовый Чек [14:51:05]line ПРОДАЖА [14:51:05]line ТРК (МРК, ГНК) : 22 [14:51:05]line Товар: 2710124130 [14:51:05]line Аи-92-К-5 [14:51:05]line 15.200 * 65.80 [14:51:05]line = 1000.16 [14:51:05]line НДС 12% НСП 1% [14:51:05]line > о реализуемом товаре [14:51:05]line ОКРУГЛЕНИЕ: -0.16 [14:51:05]line ИТОГО: 1000.00 [14:51:05]line Внесено: 1000.00 [14:51:05]line СДАЧА: 0.00 [14:51:05]line НСП 1% : 8.85 [14:51:05]line НДС 12% : 106.21 [14:51:05]line Наличными: 1000.00 [14:51:05]line Безнал.: 0.00 [14:51:05]line Место: АЗС № 72 "Партнер Нефть" [14:51:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:51:05]line СНО: Общий режим [14:51:05]line Чек 181 12.07.2024 14:51 [14:51:05]line Смена: 445 ФФД: 1.0 [14:51:05]line ЗНМ: 0300000160 [14:51:05]line РНМ: 0000000000090829 [14:51:05]line Версия ККМ: 001 [14:51:05]line ФМ: 0000000000874718 [14:51:05]line ФД: 164260 [14:51:05]line ФПД: 226520930935644 [14:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145105&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164260&fm=226520930935644&tin=02508201610067®Number=0000000000090829&sum=100000 [14:51:05]written 0, free lines is 4095 [14:51:05]OFD Sender: Processing packet 164260 [packets to send 104, broken 103] [14:51:05]ProducePacketName [14:51:05]name=ofd_packets/00164260 [14:51:05]OFD Sender: To server: pG, [14:51:05]CommunicateWithHost lk.salyk.kg:30040 [14:51:05]ConnectInit lk.salyk.kg [14:51:05]Connected sock=10 [14:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0F 5F 07 01 45 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D9 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 81 02 00 35 04 06 00 CE 05 03 9F 63 5C 45 E4 2B AB 4B 75 A3 2A [14:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7F F8 47 00 94 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 81 02 00 F4 03 04 00 6D E9 90 66 B6 04 01 00 00 5C BB 35 75 93 67 EC 1E [14:51:05]CommunicateWithHost err = 0 [14:51:05]CheckOFDResponse [14:51:05]1017 (14) - 77093643461234 [14:51:05]1041 (16) - 0000000000874718 [14:51:05]1040 (4) - 164260 [14:51:05]1012 (4) - 12.07.2024 08:29 [14:51:05]1206 (1) - 0 [14:51:05]OFD Sender: Remove packet 164260 [14:51:05]ProducePacketName [14:51:05]name=ofd_packets/00164260 [14:51:05]NVStorageDeleteData [14:51:05]Write to MH i2c: 01 00 00 36 29 5F [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: 01 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: 01 07 00 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: 01 07 00 36 29 00 00 00 00 00 0A 0D 7D [14:51:05]RasterBufferAndPrint [14:51:05]line [14:51:05]line [14:51:05]line [14:51:05]line [14:51:05]line [14:51:05]written 0, free lines is 3350 [14:51:05]MH_Cut [14:51:05]Write to MH i2c: D1 01 00 3D 29 01 38 [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: D1 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: D1 01 00 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: D1 01 00 3D 29 00 37 [14:51:05]Write to MH i2c: 01 00 00 3E 29 67 [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:06]OFD Sender: No OFD packet to send [14:51:06]*** Cut start [14:51:06]*** Partial cut [14:51:06]*** CUTSNS_PIN = 1 [14:51:06]*** CUTSNS_PIN = 0 [14:51:06]*** Brake cut motor [14:51:07]Read from MH i2c: 01 [14:51:07]MH_I2C_Read... [14:51:07]*** Stop cut motor [14:51:07]*** Cut end [14:51:07]Read from MH i2c: 01 07 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: 01 07 00 3E 29 00 00 00 00 00 FF 0F 7C [14:51:07]process_action close_receipt done [14:51:07]requested_data is exist [14:51:07]produce_requested_data [14:51:07]requested_item fm.sn is exist - process it [14:51:07]wFMCommunicate request_size=4 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 11 00 00 [14:51:07]Write to MH i2c: E2 08 00 3F 29 80 11 00 00 00 00 00 00 E2 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 17 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 17 00 3F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 38 [14:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:51:07]wFMCommunicate OK [14:51:07]requested_item fd.num is exist - process it [14:51:07]SAM_PROTO_GetFieldsCounters [14:51:07]wFMCommunicate request_size=4 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 13 00 00 [14:51:07]Write to MH i2c: E2 08 00 40 29 80 13 00 00 00 00 00 00 E5 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 62 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 62 00 40 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [14:51: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:07]wFMCommunicate OK [14:51:07]SAM_PROTO_GetFieldsCounters done [14:51:07]requested_item shift.num is exist - process it [14:51:07]requested_item shift.opened is exist - process it [14:51:07]req_shift_opened [14:51:07]FM_GetShiftState [14:51:07]SAM_PROTO_GetShiftState [14:51:07]wFMCommunicate request_size=4 [14:51:07]MH_SAM_APDU [14:51:07]CAPDU: 80 13 01 00 [14:51:07]Write to MH i2c: E2 08 00 41 29 80 13 01 00 00 00 00 00 E7 [14:51:07]Write i2c OK [14:51:07]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 0E 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 0E 00 41 29 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 31 [14:51:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:51:07]wFMCommunicate OK [14:51:07]SAM_PROTO_GetShiftState done [14:51:07]FM_GetShiftState done [14:51:07]req_shift_opened done [14:51:07]requested_item shift.open_date is exist - process it [14:51:07]req_shift_open_date [14:51:07]req_shift_open_date done [14:51:07]produce_requested_data done [14:51:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164260,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:51:07]process_action_free close_receipt [14:51:07]json_value_free [14:51:07]json_value_free done [14:51:07]process_json_proto returns [14:51:07]Send response to host [14:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164260,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:51:07]free response buf [14:51:07]execute_script done [14:51:07]execute_script returns [14:51:07]free content buf [14:51:07]Sock 7.Close socket [14:51:07]Sock 7.Thread stoped [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:38]accept exits with 9 [14:51:38]New connection [14:51:38]New thread 3066850660 created [14:51:38]Thread 3066707300 joined [14:51:38]Waiting for new connection... [14:51:38] Sock 9.Parse request [14:51:38]Sock 9.Check first char [14:51:38]Sock 9.First char is OK [14:51:38]request: POST /json_proto HTTP/1.0 [14:51:38]Method: POST [14:51:38]URL: /json_proto [14:51:38]Method is POST - this is cgi request [14:51:38]url: /json_proto [14:51:38]query_string will be loaded in cgi processing [14:51:38]execute_cgi json_proto POST (null) [14:51:38]execute_cgi path=json_proto method=POST [14:51:38]POST find Content-Length [14:51:38]Host: 172.17.56.4:8080 [14:51:38]Content-Length: 677 [14:51:38]Content-Type: application/json [14:51:38] [14:51:38]POST finish read [14:51:38]Found Content-Length = 677 [14:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:38]execute_script... [14:51:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:38]POST & json_proto [14:51:38]process_json_proto [14:51:38]json parsed OK: [14:51:38]protocol is kg_v1.0 [14:51:38]action value=close_receipt [14:51:38]process_action close_receipt [14:51:38]cmd_close_receipt [14:51:38]MH_GetDate [14:51:38]Write to MH i2c: F0 00 00 42 29 5A [14:51:38]Write i2c OK [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: F0 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: F0 09 00 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: F0 09 00 42 29 00 FC 42 91 66 C9 DC B2 64 53 [14:51:38]GetLastDocTimeStamp 1720795865 [14:51:38]current date 1720795900 [14:51:38]FM_GetShiftState [14:51:38]SAM_PROTO_GetShiftState [14:51:38]wFMCommunicate request_size=4 [14:51:38]MH_SAM_APDU [14:51:38]CAPDU: 80 13 01 00 [14:51:38]Write to MH i2c: E2 08 00 43 29 80 13 01 00 00 00 00 00 E9 [14:51:38]Write i2c OK [14:51:38]MH_I2C_Read... [14:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:38]Read from MH i2c: E2 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 0E 00 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 0E 00 43 29 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 33 [14:51:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:51:38]wFMCommunicate OK [14:51:38]SAM_PROTO_GetShiftState done [14:51:38]FM_GetShiftState done [14:51:38]opened in 1720744654 [14:51:38]opened+sec_in_day 1720831054 [14:51:38]quantity*price = 30004 [14:51:38]sum+1 = 30006 [14:51:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 182 12.07.2024 14:51 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164261 ФПД: 217482278487610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164261&fm=217482278487610&tin=02508201610067®Number=0000000000090829&sum=30000 [14:51:39]StoreToDocumentArchive [14:51:39]shift 445 fd 164261 [14:51:39]save to /storage/0445/doc_00164261 [14:51:39]save last doc name /storage/0445/doc_00164261 to /storage/kkm_last_doc_name [14:51:39]save OK [14:51:39]Clear old archive folders... [14:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:39]tlvbuf is B6F3C060 [14:51:39]SAM_PROTO_ClearQueue [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 09 00 00 [14:51:39]Write to MH i2c: E2 08 00 50 29 80 09 00 00 00 00 00 00 EB [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 50 29 00 90 00 ED [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]SAM_PROTO_ClearQueue done [14:51:39]KKMCreateOFDPacket [14:51:39]OFDProtocolAddRootSTLVToBuf [14:51:39]FM_MakeSignedData [14:51:39]FM_MakeSignedData [14:51:39]SAM_PROTO_SignData [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 01 02 [14:51:39]Write to MH i2c: E2 08 00 51 29 80 0D 01 02 00 00 00 00 F3 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 51 29 00 90 00 EE [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=255 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 FC 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 81 02 00 35 04 06 00 C5 [14:51:39]Write to MH i2c: E2 02 01 52 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 FC 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 81 02 00 35 04 06 00 C5 00 00 C3 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 52 29 00 90 00 EF [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=10 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 02 02 05 CC 89 F4 46 3A [14:51:39]Write to MH i2c: E2 0D 00 53 29 80 0D 02 02 05 00 CC 89 F4 46 3A 00 00 C9 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 53 29 00 90 00 F0 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 03 02 [14:51:39]Write to MH i2c: E2 08 00 54 29 80 0D 03 02 00 00 00 00 F8 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 0B 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 0B 00 54 29 00 56 5F DA 4B D2 61 A2 F4 90 00 9C [14:51:39]RAPDU: 56 5F DA 4B D2 61 A2 F4 90 00 [14:51:39]wFMCommunicate OK [14:51:39]SAM_PROTO_SignData done [14:51:39]FM_MakeSignedData done [14:51:39]CreateOFDProtocolMessage [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 11 00 00 [14:51:39]Write to MH i2c: E2 08 00 55 29 80 11 00 00 00 00 00 00 F8 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 17 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 17 00 55 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [14:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:51:39]wFMCommunicate OK [14:51:39]CreateOFDProtocolMessage done [14:51:39]OFDSenderStorePacket 164261 [14:51:39]StoreOFDPacket docnum=164261 [14:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 32 07 01 D4 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 FC 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 81 02 00 35 04 06 00 C5 CC 89 F4 46 3A 56 5F DA 4B D2 61 A2 F4 [14:51:39]CheckFolder [14:51:39]dirname=/storage/ofd_packets [14:51:39]CheckFolder done [14:51:39]ProducePacketName [14:51:39]name=ofd_packets/00164261 [14:51:39]NVStorageSaveData ofd_packets/00164261 [14:51:39]File name is /storage/ofd_packets/00164261 [14:51:39]Write 301 bytes [14:51:39]NVStorageSaveData done [14:51:39]OFDSenderStorePacket done [14:51:39]KKMCreateOFDPacket done [14:51:39]NVStorageSaveData kkm_last_timestamp [14:51:39]File name is /storage/kkm_last_timestamp [14:51:39]Write 4 bytes [14:51:39]NVStorageSaveData done [14:51:39]ExternCall_PrintAddStr [14:51:39]wPrintStart [14:51:39]Write to MH i2c: 01 00 00 56 29 7F [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 07 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 07 00 56 29 00 00 00 00 00 FF 0F 94 [14:51:39]RasterBufferAndPrint [14:51:39]line Счет N : (1)458344 [14:51:39]line ИНН: 02508201610067 [14:51:39]line Контрольно-Кассовый Чек [14:51:39]line ПРОДАЖА [14:51:39]line ТРК (МРК, ГНК) : 22 [14:51:39]line Товар: 2710124130 [14:51:39]line Аи-92-К-5 [14:51:39]line 4.560 * 65.80 [14:51:39]line = 300.05 [14:51:39]line НДС 12% НСП 1% [14:51:39]line > о реализуемом товаре [14:51:39]line ОКРУГЛЕНИЕ: -0.05 [14:51:39]line ИТОГО: 300.00 [14:51:39]line Внесено: 300.00 [14:51:39]line СДАЧА: 0.00 [14:51:39]line НСП 1% : 2.65 [14:51:39]line НДС 12% : 31.86 [14:51:39]line Наличными: 300.00 [14:51:39]line Безнал.: 0.00 [14:51:39]line Место: АЗС № 72 "Партнер Нефть" [14:51:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:51:39]line СНО: Общий режим [14:51:39]line Чек 182 12.07.2024 14:51 [14:51:39]line Смена: 445 ФФД: 1.0 [14:51:39]line ЗНМ: 0300000160 [14:51:39]line РНМ: 0000000000090829 [14:51:39]line Версия ККМ: 001 [14:51:39]line ФМ: 0000000000874718 [14:51:39]line ФД: 164261 [14:51:39]line ФПД: 217482278487610 [14:51:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164261&fm=217482278487610&tin=02508201610067®Number=0000000000090829&sum=30000 [14:51:40]OFD Sender: Processing packet 164261 [packets to send 104, broken 103] [14:51:40]ProducePacketName [14:51:40]name=ofd_packets/00164261 [14:51:40]OFD Sender: To server: pG, [14:51:40]CommunicateWithHost lk.salyk.kg:30040 [14:51:40]ConnectInit lk.salyk.kg [14:51:40]written 0, free lines is 4095 [14:51:40]Connected sock=10 [14:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 32 07 01 D4 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 FC 42 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 81 02 00 35 04 06 00 C5 CC 89 F4 46 3A 56 5F DA 4B D2 61 A2 F4 [14:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 69 AF 47 00 62 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 34 37 31 38 10 04 04 00 A5 81 02 00 F4 03 04 00 90 E9 90 66 B6 04 01 00 00 15 77 CC 44 F6 D2 93 54 [14:51:40]CommunicateWithHost err = 0 [14:51:40]CheckOFDResponse [14:51:40]1017 (14) - 77093643461234 [14:51:40]1041 (16) - 0000000000874718 [14:51:40]1040 (4) - 164261 [14:51:40]1012 (4) - 12.07.2024 08:30 [14:51:40]1206 (1) - 0 [14:51:40]OFD Sender: Remove packet 164261 [14:51:40]ProducePacketName [14:51:40]name=ofd_packets/00164261 [14:51:40]NVStorageDeleteData [14:51:40]Write to MH i2c: 01 00 00 80 29 A9 [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 07 00 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 07 00 80 29 00 00 00 00 00 F7 0C B3 [14:51:40]RasterBufferAndPrint [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]written 0, free lines is 3326 [14:51:40]MH_Cut [14:51:40]Write to MH i2c: D1 01 00 87 29 01 82 [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 01 00 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 01 00 87 29 00 81 [14:51:40]Write to MH i2c: 01 00 00 88 29 B1 [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:41]OFD Sender: No OFD packet to send [14:51:41]*** Cut start [14:51:41]*** Partial cut [14:51:41]*** CUTSNS_PIN = 1 [14:51:41]*** CUTSNS_PIN = 0 [14:51:41]*** Brake cut motor [14:51:41]Read from MH i2c: 01 [14:51:41]MH_I2C_Read... [14:51:41]*** Stop cut motor [14:51:41]*** Cut end [14:51:41]Read from MH i2c: 01 07 00 [14:51:41]MH_I2C_Read... [14:51:42]Read from MH i2c: 01 07 00 88 29 00 00 00 00 00 FF 0F C6 [14:51:42]process_action close_receipt done [14:51:42]requested_data is exist [14:51:42]produce_requested_data [14:51:42]requested_item fm.sn is exist - process it [14:51:42]wFMCommunicate request_size=4 [14:51:42]MH_SAM_APDU [14:51:42]CAPDU: 80 11 00 00 [14:51:42]Write to MH i2c: E2 08 00 89 29 80 11 00 00 00 00 00 00 2C [14:51:42]Write i2c OK [14:51:42]MH_I2C_Read... [14:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:42]Read from MH i2c: E2 [14:51:42]MH_I2C_Read... [14:51:42]Read from MH i2c: E2 17 00 [14:51:42]MH_I2C_Read... [14:51:42]Read from MH i2c: E2 17 00 89 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [14:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:51:42]wFMCommunicate OK [14:51:42]requested_item fd.num is exist - process it [14:51:42]SAM_PROTO_GetFieldsCounters [14:51:42]wFMCommunicate request_size=4 [14:51:42]MH_SAM_APDU [14:51:42]CAPDU: 80 13 00 00 [14:51:42]Write to MH i2c: E2 08 00 8A 29 80 13 00 00 00 00 00 00 2F [14:51:42]Write i2c OK [14:51:42]MH_I2C_Read... [14:51:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:42]Read from MH i2c: E2 [14:51:42]MH_I2C_Read... [14:51:42]Read from MH i2c: E2 62 00 [14:51:42]MH_I2C_Read... [14:51:42]Read from MH i2c: E2 62 00 8A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [14:51:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:42]wFMCommunicate OK [14:51:42]SAM_PROTO_GetFieldsCounters done [14:51:42]requested_item shift.num is exist - process it [14:51:42]requested_item shift.opened is exist - process it [14:51:42]req_shift_opened [14:51:42]FM_GetShiftState [14:51:42]SAM_PROTO_GetShiftState [14:51:42]wFMCommunicate request_size=4 [14:51:42]MH_SAM_APDU [14:51:42]CAPDU: 80 13 01 00 [14:51:42]Write to MH i2c: E2 08 00 8B 29 80 13 01 00 00 00 00 00 31 [14:51:42]Write i2c OK [14:51:42]MH_I2C_Read... [14:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:42]Read from MH i2c: E2 [14:51:42]MH_I2C_Read... [14:51:42]Read from MH i2c: E2 0E 00 [14:51:42]MH_I2C_Read... [14:51:42]Read from MH i2c: E2 0E 00 8B 29 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7B [14:51:42]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:51:42]wFMCommunicate OK [14:51:42]SAM_PROTO_GetShiftState done [14:51:42]FM_GetShiftState done [14:51:42]req_shift_opened done [14:51:42]requested_item shift.open_date is exist - process it [14:51:42]req_shift_open_date [14:51:42]req_shift_open_date done [14:51:42]produce_requested_data done [14:51:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164261,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:51:42]process_action_free close_receipt [14:51:42]json_value_free [14:51:42]json_value_free done [14:51:42]process_json_proto returns [14:51:42]Send response to host [14:51:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164261,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:51:42]free response buf [14:51:42]execute_script done [14:51:42]execute_script returns [14:51:42]free content buf [14:51:42]Sock 9.Close socket [14:51:42]Sock 9.Thread stoped [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:03]accept exits with 7 [14:53:03]New connection [14:53:03]New thread 3066707300 created [14:53:03]Thread 3066850660 joined [14:53:03]Waiting for new connection... [14:53:03] Sock 7.Parse request [14:53:03]Sock 7.Check first char [14:53:03]Sock 7.First char is OK [14:53:03]request: POST /json_proto HTTP/1.0 [14:53:03]Method: POST [14:53:03]URL: /json_proto [14:53:03]Method is POST - this is cgi request [14:53:03]url: /json_proto [14:53:03]query_string will be loaded in cgi processing [14:53:03]execute_cgi json_proto POST (null) [14:53:03]execute_cgi path=json_proto method=POST [14:53:03]POST find Content-Length [14:53:03]Host: 172.17.56.4:8080 [14:53:03]Content-Length: 677 [14:53:03]Content-Type: application/json [14:53:03] [14:53:03]POST finish read [14:53:03]Found Content-Length = 677 [14:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:03]execute_script... [14:53: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)458345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:03]POST & json_proto [14:53:03]process_json_proto [14:53:03]json parsed OK: [14:53:03]protocol is kg_v1.0 [14:53:03]action value=close_receipt [14:53:03]process_action close_receipt [14:53:03]cmd_close_receipt [14:53:03]MH_GetDate [14:53:03]Write to MH i2c: F0 00 00 8C 29 A4 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: F0 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: F0 09 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: F0 09 00 8C 29 00 51 43 91 66 C9 DC B2 64 F3 [14:53:03]GetLastDocTimeStamp 1720795900 [14:53:03]current date 1720795985 [14:53:03]FM_GetShiftState [14:53:03]SAM_PROTO_GetShiftState [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 13 01 00 [14:53:03]Write to MH i2c: E2 08 00 8D 29 80 13 01 00 00 00 00 00 33 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 8D 29 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7D [14:53:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:53:03]wFMCommunicate OK [14:53:03]SAM_PROTO_GetShiftState done [14:53:03]FM_GetShiftState done [14:53:03]opened in 1720744654 [14:53:03]opened+sec_in_day 1720831054 [14:53:03]quantity*price = 35005 [14:53:03]sum+1 = 35007 [14:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 183 12.07.2024 14:53 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164262 ФПД: 4562984393980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164262&fm=4562984393980&tin=02508201610067®Number=0000000000090829&sum=35000 [14:53:04]StoreToDocumentArchive [14:53:04]shift 445 fd 164262 [14:53:04]save to /storage/0445/doc_00164262 [14:53:04]save last doc name /storage/0445/doc_00164262 to /storage/kkm_last_doc_name [14:53:04]save OK [14:53:04]Clear old archive folders... [14:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:04]tlvbuf is 00A68B80 [14:53:04]SAM_PROTO_ClearQueue [14:53:04]wFMCommunicate request_size=4 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 09 00 00 [14:53:04]Write to MH i2c: E2 08 00 9A 29 80 09 00 00 00 00 00 00 35 [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 9A 29 00 90 00 37 [14:53:04]RAPDU: 90 00 [14:53:04]wFMCommunicate OK [14:53:04]SAM_PROTO_ClearQueue done [14:53:04]KKMCreateOFDPacket [14:53:04]OFDProtocolAddRootSTLVToBuf [14:53:04]FM_MakeSignedData [14:53:04]FM_MakeSignedData [14:53:04]SAM_PROTO_SignData [14:53:04]wFMCommunicate request_size=4 [14:53:04]MH_SAM_APDU [14:53:04]CAPDU: 80 0D 01 02 [14:53:04]Write to MH i2c: E2 08 00 9B 29 80 0D 01 02 00 00 00 00 3D [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:04]Read from MH i2c: E2 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 [14:53:04]MH_I2C_Read... [14:53:04]Read from MH i2c: E2 03 00 9B 29 00 90 00 38 [14:53:04]RAPDU: 90 00 [14:53:04]wFMCommunicate OK [14:53:04]wFMCommunicate request_size=255 [14:53:04]MH_SAM_APDU [14:53: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 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 B7 00 00 00 F4 03 04 00 51 43 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 81 02 00 35 04 06 00 04 [14:53:04]Write to MH i2c: E2 02 01 9C 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 B7 00 00 00 F4 03 04 00 51 43 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 81 02 00 35 04 06 00 04 00 00 B3 [14:53:04]Write i2c OK [14:53:04]MH_I2C_Read... [14:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:05]Read from MH i2c: E2 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 9C 29 00 90 00 39 [14:53:05]RAPDU: 90 00 [14:53:05]wFMCommunicate OK [14:53:05]wFMCommunicate request_size=10 [14:53:05]MH_SAM_APDU [14:53:05]CAPDU: 80 0D 02 02 05 26 67 10 5C FC [14:53:05]Write to MH i2c: E2 0D 00 9D 29 80 0D 02 02 05 00 26 67 10 5C FC 00 00 3F [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:05]Read from MH i2c: E2 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 03 00 9D 29 00 90 00 3A [14:53:05]RAPDU: 90 00 [14:53:05]wFMCommunicate OK [14:53:05]wFMCommunicate request_size=4 [14:53:05]MH_SAM_APDU [14:53:05]CAPDU: 80 0D 03 02 [14:53:05]Write to MH i2c: E2 08 00 9E 29 80 0D 03 02 00 00 00 00 42 [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:05]Read from MH i2c: E2 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 0B 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 0B 00 9E 29 00 BF A9 9A D3 31 00 0C 41 90 00 96 [14:53:05]RAPDU: BF A9 9A D3 31 00 0C 41 90 00 [14:53:05]wFMCommunicate OK [14:53:05]SAM_PROTO_SignData done [14:53:05]FM_MakeSignedData done [14:53:05]CreateOFDProtocolMessage [14:53:05]wFMCommunicate request_size=4 [14:53:05]MH_SAM_APDU [14:53:05]CAPDU: 80 11 00 00 [14:53:05]Write to MH i2c: E2 08 00 9F 29 80 11 00 00 00 00 00 00 42 [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:05]Read from MH i2c: E2 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 17 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: E2 17 00 9F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [14:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:53:05]wFMCommunicate OK [14:53:05]CreateOFDProtocolMessage done [14:53:05]OFDSenderStorePacket 164262 [14:53:05]StoreOFDPacket docnum=164262 [14:53:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 D8 07 01 F4 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 B7 00 00 00 F4 03 04 00 51 43 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 81 02 00 35 04 06 00 04 26 67 10 5C FC BF A9 9A D3 31 00 0C 41 [14:53:05]CheckFolder [14:53:05]dirname=/storage/ofd_packets [14:53:05]CheckFolder done [14:53:05]ProducePacketName [14:53:05]name=ofd_packets/00164262 [14:53:05]NVStorageSaveData ofd_packets/00164262 [14:53:05]File name is /storage/ofd_packets/00164262 [14:53:05]Write 301 bytes [14:53:05]NVStorageSaveData done [14:53:05]OFDSenderStorePacket done [14:53:05]KKMCreateOFDPacket done [14:53:05]NVStorageSaveData kkm_last_timestamp [14:53:05]File name is /storage/kkm_last_timestamp [14:53:05]Write 4 bytes [14:53:05]NVStorageSaveData done [14:53:05]ExternCall_PrintAddStr [14:53:05]wPrintStart [14:53:05]Write to MH i2c: 01 00 00 A0 29 C9 [14:53:05]Write i2c OK [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: 01 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: 01 07 00 [14:53:05]MH_I2C_Read... [14:53:05]Read from MH i2c: 01 07 00 A0 29 00 00 00 00 00 FF 0F DE [14:53:05]RasterBufferAndPrint [14:53:05]line Счет N : (1)458345 [14:53:05]line ИНН: 02508201610067 [14:53:05]line Контрольно-Кассовый Чек [14:53:05]line ПРОДАЖА [14:53:05]line ТРК (МРК, ГНК) : 22 [14:53:05]line Товар: 2710124130 [14:53:05]line Аи-92-К-5 [14:53:05]line 5.320 * 65.80 [14:53:05]line = 350.06 [14:53:05]line НДС 12% НСП 1% [14:53:05]line > о реализуемом товаре [14:53:05]line ОКРУГЛЕНИЕ: -0.06 [14:53:05]line ИТОГО: 350.00 [14:53:05]line Внесено: 350.00 [14:53:05]line СДАЧА: 0.00 [14:53:05]line НСП 1% : 3.10 [14:53:05]line НДС 12% : 37.17 [14:53:05]line Наличными: 350.00 [14:53:05]line Безнал.: 0.00 [14:53:05]line Место: АЗС № 72 "Партнер Нефть" [14:53:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:53:05]line СНО: Общий режим [14:53:05]line Чек 183 12.07.2024 14:53 [14:53:05]line Смена: 445 ФФД: 1.0 [14:53:05]line ЗНМ: 0300000160 [14:53:05]line РНМ: 0000000000090829 [14:53:05]line Версия ККМ: 001 [14:53:05]line ФМ: 0000000000874718 [14:53:05]line ФД: 164262 [14:53:05]line ФПД: 4562984393980 [14:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164262&fm=4562984393980&tin=02508201610067®Number=0000000000090829&sum=35000 [14:53:05]OFD Sender: Processing packet 164262 [packets to send 104, broken 103] [14:53:05]ProducePacketName [14:53:05]name=ofd_packets/00164262 [14:53:05]OFD Sender: To server: pG, [14:53:05]CommunicateWithHost lk.salyk.kg:30040 [14:53:05]ConnectInit lk.salyk.kg [14:53:05]written 0, free lines is 4095 [14:53:05]Connected sock=10 [14:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 D8 07 01 F4 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 B7 00 00 00 F4 03 04 00 51 43 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 81 02 00 35 04 06 00 04 26 67 10 5C FC BF A9 9A D3 31 00 0C 41 [14:53:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5D AD 47 00 71 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 34 37 31 38 10 04 04 00 A6 81 02 00 F4 03 04 00 E5 E9 90 66 B6 04 01 00 00 CB D6 EC 3B D0 0F CE 2D [14:53:06]CommunicateWithHost err = 0 [14:53:06]CheckOFDResponse [14:53:06]1017 (14) - 77093643461234 [14:53:06]1041 (16) - 0000000000874718 [14:53:06]1040 (4) - 164262 [14:53:06]1012 (4) - 12.07.2024 08:31 [14:53:06]1206 (1) - 0 [14:53:06]OFD Sender: Remove packet 164262 [14:53:06]ProducePacketName [14:53:06]name=ofd_packets/00164262 [14:53:06]NVStorageDeleteData [14:53:06]Write to MH i2c: 01 00 00 CA 29 F3 [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: 01 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: 01 07 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: 01 07 00 CA 29 00 00 00 00 00 F6 0C FC [14:53:06]RasterBufferAndPrint [14:53:06]line [14:53:06]line [14:53:06]line [14:53:06]line [14:53:06]line [14:53:06]written 0, free lines is 3324 [14:53:06]MH_Cut [14:53:06]Write to MH i2c: D1 01 00 D1 29 01 CC [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: D1 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: D1 01 00 [14:53:06]MH_I2C_Read... [14:53:06]Read from MH i2c: D1 01 00 D1 29 00 CB [14:53:06]Write to MH i2c: 01 00 00 D2 29 FB [14:53:06]Write i2c OK [14:53:06]MH_I2C_Read... [14:53:06]OFD Sender: No OFD packet to send [14:53:06]*** Cut start [14:53:06]*** Partial cut [14:53:06]*** CUTSNS_PIN = 1 [14:53:06]*** CUTSNS_PIN = 0 [14:53:07]*** Brake cut motor [14:53:07]Read from MH i2c: 01 [14:53:07]MH_I2C_Read... [14:53:07]*** Stop cut motor [14:53:07]*** Cut end [14:53:07]Read from MH i2c: 01 07 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 D2 29 00 00 00 00 00 FF 0F 10 [14:53:07]process_action close_receipt done [14:53:07]requested_data is exist [14:53:07]produce_requested_data [14:53:07]requested_item fm.sn is exist - process it [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 11 00 00 [14:53:07]Write to MH i2c: E2 08 00 D3 29 80 11 00 00 00 00 00 00 76 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:07]Read from MH i2c: E2 17 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 17 00 D3 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [14:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:53:07]wFMCommunicate OK [14:53:07]requested_item fd.num is exist - process it [14:53:07]SAM_PROTO_GetFieldsCounters [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 13 00 00 [14:53:07]Write to MH i2c: E2 08 00 D4 29 80 13 00 00 00 00 00 00 79 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 62 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 62 00 D4 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [14:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:07]wFMCommunicate OK [14:53:07]SAM_PROTO_GetFieldsCounters done [14:53:07]requested_item shift.num is exist - process it [14:53:07]requested_item shift.opened is exist - process it [14:53:07]req_shift_opened [14:53:07]FM_GetShiftState [14:53:07]SAM_PROTO_GetShiftState [14:53:07]wFMCommunicate request_size=4 [14:53:07]MH_SAM_APDU [14:53:07]CAPDU: 80 13 01 00 [14:53:07]Write to MH i2c: E2 08 00 D5 29 80 13 01 00 00 00 00 00 7B [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:07]Read from MH i2c: E2 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 0E 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: E2 0E 00 D5 29 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C5 [14:53:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:53:07]wFMCommunicate OK [14:53:07]SAM_PROTO_GetShiftState done [14:53:07]FM_GetShiftState done [14:53:07]req_shift_opened done [14:53:07]requested_item shift.open_date is exist - process it [14:53:07]req_shift_open_date [14:53:07]req_shift_open_date done [14:53:07]produce_requested_data done [14:53:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164262,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:53:07]process_action_free close_receipt [14:53:07]json_value_free [14:53:07]json_value_free done [14:53:07]process_json_proto returns [14:53:07]Send response to host [14:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164262,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:53:07]free response buf [14:53:07]execute_script done [14:53:07]execute_script returns [14:53:07]free content buf [14:53:07]Sock 7.Close socket [14:53:07]Sock 7.Thread stoped [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:27]accept exits with 9 [14:54:27]New connection [14:54:27]New thread 3066850660 created [14:54:27]Thread 3066707300 joined [14:54:27]Waiting for new connection... [14:54:27] Sock 9.Parse request [14:54:27]Sock 9.Check first char [14:54:27]Sock 9.First char is OK [14:54:27]request: POST /json_proto HTTP/1.0 [14:54:27]Method: POST [14:54:27]URL: /json_proto [14:54:27]Method is POST - this is cgi request [14:54:27]url: /json_proto [14:54:27]query_string will be loaded in cgi processing [14:54:27]execute_cgi json_proto POST (null) [14:54:27]execute_cgi path=json_proto method=POST [14:54:27]POST find Content-Length [14:54:27]Host: 172.17.56.4:8080 [14:54:27]Content-Length: 677 [14:54:27]Content-Type: application/json [14:54:27] [14:54:27]POST finish read [14:54:27]Found Content-Length = 677 [14:54:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:27]execute_script... [14:54: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)458346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:27]POST & json_proto [14:54:27]process_json_proto [14:54:27]json parsed OK: [14:54:27]protocol is kg_v1.0 [14:54:27]action value=close_receipt [14:54:27]process_action close_receipt [14:54:27]cmd_close_receipt [14:54:27]MH_GetDate [14:54:27]Write to MH i2c: F0 00 00 D6 29 EE [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: F0 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: F0 09 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: F0 09 00 D6 29 00 A5 43 91 66 C9 DC B2 64 91 [14:54:27]GetLastDocTimeStamp 1720795985 [14:54:27]current date 1720796069 [14:54:27]FM_GetShiftState [14:54:27]SAM_PROTO_GetShiftState [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 13 01 00 [14:54:27]Write to MH i2c: E2 08 00 D7 29 80 13 01 00 00 00 00 00 7D [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 0E 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 0E 00 D7 29 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C7 [14:54:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:54:27]wFMCommunicate OK [14:54:27]SAM_PROTO_GetShiftState done [14:54:27]FM_GetShiftState done [14:54:27]opened in 1720744654 [14:54:27]opened+sec_in_day 1720831054 [14:54:27]quantity*price = 35005 [14:54:27]sum+1 = 35007 [14:54:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 184 12.07.2024 14:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164263 ФПД: 196567569437172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164263&fm=196567569437172&tin=02508201610067®Number=0000000000090829&sum=35000 [14:54:28]StoreToDocumentArchive [14:54:28]shift 445 fd 164263 [14:54:28]save to /storage/0445/doc_00164263 [14:54:28]save last doc name /storage/0445/doc_00164263 to /storage/kkm_last_doc_name [14:54:28]save OK [14:54:28]Clear old archive folders... [14:54:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:28]tlvbuf is 00A77150 [14:54:28]SAM_PROTO_ClearQueue [14:54:28]wFMCommunicate request_size=4 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 09 00 00 [14:54:28]Write to MH i2c: E2 08 00 E4 29 80 09 00 00 00 00 00 00 7F [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 E4 29 00 90 00 81 [14:54:28]RAPDU: 90 00 [14:54:28]wFMCommunicate OK [14:54:28]SAM_PROTO_ClearQueue done [14:54:28]KKMCreateOFDPacket [14:54:28]OFDProtocolAddRootSTLVToBuf [14:54:28]FM_MakeSignedData [14:54:28]FM_MakeSignedData [14:54:28]SAM_PROTO_SignData [14:54:28]wFMCommunicate request_size=4 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 0D 01 02 [14:54:28]Write to MH i2c: E2 08 00 E5 29 80 0D 01 02 00 00 00 00 87 [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 E5 29 00 90 00 82 [14:54:28]RAPDU: 90 00 [14:54:28]wFMCommunicate OK [14:54:28]wFMCommunicate request_size=255 [14:54:28]MH_SAM_APDU [14:54: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 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 B8 00 00 00 F4 03 04 00 A5 43 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 81 02 00 35 04 06 00 B2 [14:54:28]Write to MH i2c: E2 02 01 E6 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 B8 00 00 00 F4 03 04 00 A5 43 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 81 02 00 35 04 06 00 B2 00 00 01 [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 E6 29 00 90 00 83 [14:54:28]RAPDU: 90 00 [14:54:28]wFMCommunicate OK [14:54:28]wFMCommunicate request_size=10 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 0D 02 02 05 C6 F4 26 91 F4 [14:54:28]Write to MH i2c: E2 0D 00 E7 29 80 0D 02 02 05 00 C6 F4 26 91 F4 00 00 F9 [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 E7 29 00 90 00 84 [14:54:28]RAPDU: 90 00 [14:54:28]wFMCommunicate OK [14:54:28]wFMCommunicate request_size=4 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 0D 03 02 [14:54:28]Write to MH i2c: E2 08 00 E8 29 80 0D 03 02 00 00 00 00 8C [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 0B 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 0B 00 E8 29 00 B6 AC 0F FD F3 EF 50 6D 90 00 9A [14:54:28]RAPDU: B6 AC 0F FD F3 EF 50 6D 90 00 [14:54:28]wFMCommunicate OK [14:54:28]SAM_PROTO_SignData done [14:54:28]FM_MakeSignedData done [14:54:28]CreateOFDProtocolMessage [14:54:28]wFMCommunicate request_size=4 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 11 00 00 [14:54:28]Write to MH i2c: E2 08 00 E9 29 80 11 00 00 00 00 00 00 8C [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 17 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 17 00 E9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E2 [14:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:54:29]wFMCommunicate OK [14:54:29]CreateOFDProtocolMessage done [14:54:29]OFDSenderStorePacket 164263 [14:54:29]StoreOFDPacket docnum=164263 [14:54:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 BA 07 01 2F 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 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 B8 00 00 00 F4 03 04 00 A5 43 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 81 02 00 35 04 06 00 B2 C6 F4 26 91 F4 B6 AC 0F FD F3 EF 50 6D [14:54:29]CheckFolder [14:54:29]dirname=/storage/ofd_packets [14:54:29]CheckFolder done [14:54:29]ProducePacketName [14:54:29]name=ofd_packets/00164263 [14:54:29]NVStorageSaveData ofd_packets/00164263 [14:54:29]File name is /storage/ofd_packets/00164263 [14:54:29]Write 301 bytes [14:54:29]NVStorageSaveData done [14:54:29]OFDSenderStorePacket done [14:54:29]KKMCreateOFDPacket done [14:54:29]NVStorageSaveData kkm_last_timestamp [14:54:29]File name is /storage/kkm_last_timestamp [14:54:29]Write 4 bytes [14:54:29]NVStorageSaveData done [14:54:29]OFD Sender: Processing packet 164263 [packets to send 104, broken 103] [14:54:29]ProducePacketName [14:54:29]name=ofd_packets/00164263 [14:54:29]OFD Sender: To server: pG, [14:54:29]CommunicateWithHost lk.salyk.kg:30040 [14:54:29]ConnectInit lk.salyk.kg [14:54:29]ExternCall_PrintAddStr [14:54:29]wPrintStart [14:54:29]Write to MH i2c: 01 00 00 EA 29 13 [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 07 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 07 00 EA 29 00 00 00 00 00 FF 0F 28 [14:54:29]RasterBufferAndPrint [14:54:29]line Счет N : (1)458346 [14:54:29]line ИНН: 02508201610067 [14:54:29]line Контрольно-Кассовый Чек [14:54:29]line ПРОДАЖА [14:54:29]line ТРК (МРК, ГНК) : 12 [14:54:29]line Товар: 2710124130 [14:54:29]line Аи-92-К-5 [14:54:29]line 5.320 * 65.80 [14:54:29]line = 350.06 [14:54:29]line НДС 12% НСП 1% [14:54:29]line > о реализуемом товаре [14:54:29]line ОКРУГЛЕНИЕ: -0.06 [14:54:29]line ИТОГО: 350.00 [14:54:29]line Внесено: 350.00 [14:54:29]line СДАЧА: 0.00 [14:54:29]line НСП 1% : 3.10 [14:54:29]line НДС 12% : 37.17 [14:54:29]line Наличными: 350.00 [14:54:29]line Безнал.: 0.00 [14:54:29]line Место: АЗС № 72 "Партнер Нефть" [14:54:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:54:29]line СНО: Общий режим [14:54:29]line Чек 184 12.07.2024 14:54 [14:54:29]line Смена: 445 ФФД: 1.0 [14:54:29]line ЗНМ: 0300000160 [14:54:29]line РНМ: 0000000000090829 [14:54:29]line Версия ККМ: 001 [14:54:29]line ФМ: 0000000000874718 [14:54:29]line ФД: 164263 [14:54:29]line ФПД: 196567569437172 [14:54:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164263&fm=196567569437172&tin=02508201610067®Number=0000000000090829&sum=35000 [14:54:29]Connected sock=11 [14:54:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 BA 07 01 2F 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 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 B8 00 00 00 F4 03 04 00 A5 43 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 81 02 00 35 04 06 00 B2 C6 F4 26 91 F4 B6 AC 0F FD F3 EF 50 6D [14:54:29]written 0, free lines is 4095 [14:54:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0B BC 47 00 8E 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 34 37 31 38 10 04 04 00 A7 81 02 00 F4 03 04 00 39 EA 90 66 B6 04 01 00 00 32 A1 D7 04 34 83 30 6C [14:54:29]CommunicateWithHost err = 0 [14:54:29]CheckOFDResponse [14:54:29]1017 (14) - 77093643461234 [14:54:29]1041 (16) - 0000000000874718 [14:54:29]1040 (4) - 164263 [14:54:29]1012 (4) - 12.07.2024 08:32 [14:54:29]1206 (1) - 0 [14:54:29]OFD Sender: Remove packet 164263 [14:54:29]ProducePacketName [14:54:29]name=ofd_packets/00164263 [14:54:29]NVStorageDeleteData [14:54:29]Write to MH i2c: 01 00 00 14 2A 3E [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 07 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 07 00 14 2A 00 00 00 00 00 FA 0C 4B [14:54:29]RasterBufferAndPrint [14:54:29]line [14:54:29]line [14:54:29]line [14:54:29]line [14:54:29]line [14:54:29]written 0, free lines is 3328 [14:54:29]MH_Cut [14:54:29]Write to MH i2c: D1 01 00 1B 2A 01 17 [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: D1 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: D1 01 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: D1 01 00 1B 2A 00 16 [14:54:29]Write to MH i2c: 01 00 00 1C 2A 46 [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:30]OFD Sender: No OFD packet to send [14:54:30]*** Cut start [14:54:30]*** Partial cut [14:54:30]*** CUTSNS_PIN = 1 [14:54:30]*** CUTSNS_PIN = 0 [14:54:30]*** Brake cut motor [14:54:31]Read from MH i2c: 01 [14:54:31]MH_I2C_Read... [14:54:31]*** Stop cut motor [14:54:31]*** Cut end [14:54:31]Read from MH i2c: 01 07 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: 01 07 00 1C 2A 00 00 00 00 00 FF 0F 5B [14:54:31]process_action close_receipt done [14:54:31]requested_data is exist [14:54:31]produce_requested_data [14:54:31]requested_item fm.sn is exist - process it [14:54:31]wFMCommunicate request_size=4 [14:54:31]MH_SAM_APDU [14:54:31]CAPDU: 80 11 00 00 [14:54:31]Write to MH i2c: E2 08 00 1D 2A 80 11 00 00 00 00 00 00 C1 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:31]Read from MH i2c: E2 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 17 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 17 00 1D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [14:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:54:31]wFMCommunicate OK [14:54:31]requested_item fd.num is exist - process it [14:54:31]SAM_PROTO_GetFieldsCounters [14:54:31]wFMCommunicate request_size=4 [14:54:31]MH_SAM_APDU [14:54:31]CAPDU: 80 13 00 00 [14:54:31]Write to MH i2c: E2 08 00 1E 2A 80 13 00 00 00 00 00 00 C4 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:31]Read from MH i2c: E2 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 62 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 62 00 1E 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [14:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:31]wFMCommunicate OK [14:54:31]SAM_PROTO_GetFieldsCounters done [14:54:31]requested_item shift.num is exist - process it [14:54:31]requested_item shift.opened is exist - process it [14:54:31]req_shift_opened [14:54:31]FM_GetShiftState [14:54:31]SAM_PROTO_GetShiftState [14:54:31]wFMCommunicate request_size=4 [14:54:31]MH_SAM_APDU [14:54:31]CAPDU: 80 13 01 00 [14:54:31]Write to MH i2c: E2 08 00 1F 2A 80 13 01 00 00 00 00 00 C6 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:31]Read from MH i2c: E2 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 0E 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 0E 00 1F 2A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 10 [14:54:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:54:31]wFMCommunicate OK [14:54:31]SAM_PROTO_GetShiftState done [14:54:31]FM_GetShiftState done [14:54:31]req_shift_opened done [14:54:31]requested_item shift.open_date is exist - process it [14:54:31]req_shift_open_date [14:54:31]req_shift_open_date done [14:54:31]produce_requested_data done [14:54:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164263,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:54:31]process_action_free close_receipt [14:54:31]json_value_free [14:54:31]json_value_free done [14:54:31]process_json_proto returns [14:54:31]Send response to host [14:54:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164263,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:54:31]free response buf [14:54:31]execute_script done [14:54:31]execute_script returns [14:54:31]free content buf [14:54:31]Sock 9.Close socket [14:54:31]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:05]accept exits with 7 [14:57:05]New connection [14:57:05]New thread 3066707300 created [14:57:05]Thread 3066850660 joined [14:57:05]Waiting for new connection... [14:57:05] Sock 7.Parse request [14:57:05]Sock 7.Check first char [14:57:05]Sock 7.First char is OK [14:57:05]request: POST /json_proto HTTP/1.0 [14:57:05]Method: POST [14:57:05]URL: /json_proto [14:57:05]Method is POST - this is cgi request [14:57:05]url: /json_proto [14:57:05]query_string will be loaded in cgi processing [14:57:05]execute_cgi json_proto POST (null) [14:57:05]execute_cgi path=json_proto method=POST [14:57:05]POST find Content-Length [14:57:05]Host: 172.17.56.4:8080 [14:57:05]Content-Length: 677 [14:57:05]Content-Type: application/json [14:57:05] [14:57:05]POST finish read [14:57:05]Found Content-Length = 677 [14:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:57:05]execute_script... [14:57: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)458348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:57:05]POST & json_proto [14:57:05]process_json_proto [14:57:05]json parsed OK: [14:57:05]protocol is kg_v1.0 [14:57:05]action value=close_receipt [14:57:05]process_action close_receipt [14:57:05]cmd_close_receipt [14:57:05]MH_GetDate [14:57:05]Write to MH i2c: F0 00 00 20 2A 39 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: F0 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: F0 09 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: F0 09 00 20 2A 00 43 44 91 66 C9 DC B2 64 7B [14:57:05]GetLastDocTimeStamp 1720796069 [14:57:05]current date 1720796227 [14:57:05]FM_GetShiftState [14:57:05]SAM_PROTO_GetShiftState [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 13 01 00 [14:57:05]Write to MH i2c: E2 08 00 21 2A 80 13 01 00 00 00 00 00 C8 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0E 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0E 00 21 2A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 12 [14:57:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:57:05]wFMCommunicate OK [14:57:05]SAM_PROTO_GetShiftState done [14:57:05]FM_GetShiftState done [14:57:05]opened in 1720744654 [14:57:05]opened+sec_in_day 1720831054 [14:57:05]quantity*price = 20003 [14:57:05]sum+1 = 20004 [14:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 185 12.07.2024 14:57 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164264 ФПД: 222322863600240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164264&fm=222322863600240&tin=02508201610067®Number=0000000000090829&sum=20000 [14:57:06]StoreToDocumentArchive [14:57:06]shift 445 fd 164264 [14:57:06]save to /storage/0445/doc_00164264 [14:57:06]save last doc name /storage/0445/doc_00164264 to /storage/kkm_last_doc_name [14:57:06]save OK [14:57:06]Clear old archive folders... [14:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:07]tlvbuf is B6F3C170 [14:57:07]SAM_PROTO_ClearQueue [14:57:07]wFMCommunicate request_size=4 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 09 00 00 [14:57:07]Write to MH i2c: E2 08 00 2E 2A 80 09 00 00 00 00 00 00 CA [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 03 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 03 00 2E 2A 00 90 00 CC [14:57:07]RAPDU: 90 00 [14:57:07]wFMCommunicate OK [14:57:07]SAM_PROTO_ClearQueue done [14:57:07]KKMCreateOFDPacket [14:57:07]OFDProtocolAddRootSTLVToBuf [14:57:07]FM_MakeSignedData [14:57:07]FM_MakeSignedData [14:57:07]SAM_PROTO_SignData [14:57:07]wFMCommunicate request_size=4 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 0D 01 02 [14:57:07]Write to MH i2c: E2 08 00 2F 2A 80 0D 01 02 00 00 00 00 D2 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 03 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 03 00 2F 2A 00 90 00 CD [14:57:07]RAPDU: 90 00 [14:57:07]wFMCommunicate OK [14:57:07]wFMCommunicate request_size=255 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B9 00 00 00 F4 03 04 00 43 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 81 02 00 35 04 06 00 CA [14:57:07]Write to MH i2c: E2 02 01 30 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B9 00 00 00 F4 03 04 00 43 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 81 02 00 35 04 06 00 CA 00 00 D6 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 03 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 03 00 30 2A 00 90 00 CE [14:57:07]RAPDU: 90 00 [14:57:07]wFMCommunicate OK [14:57:07]wFMCommunicate request_size=10 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 0D 02 02 05 33 93 4F 72 70 [14:57:07]Write to MH i2c: E2 0D 00 31 2A 80 0D 02 02 05 00 33 93 4F 72 70 00 00 D6 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 03 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 03 00 31 2A 00 90 00 CF [14:57:07]RAPDU: 90 00 [14:57:07]wFMCommunicate OK [14:57:07]wFMCommunicate request_size=4 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 0D 03 02 [14:57:07]Write to MH i2c: E2 08 00 32 2A 80 0D 03 02 00 00 00 00 D7 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 0B 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 0B 00 32 2A 00 F8 0C CB ED 71 37 B6 35 90 00 27 [14:57:07]RAPDU: F8 0C CB ED 71 37 B6 35 90 00 [14:57:07]wFMCommunicate OK [14:57:07]SAM_PROTO_SignData done [14:57:07]FM_MakeSignedData done [14:57:07]CreateOFDProtocolMessage [14:57:07]wFMCommunicate request_size=4 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 11 00 00 [14:57:07]Write to MH i2c: E2 08 00 33 2A 80 11 00 00 00 00 00 00 D7 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:07]Read from MH i2c: E2 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 17 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: E2 17 00 33 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [14:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:57:07]wFMCommunicate OK [14:57:07]CreateOFDProtocolMessage done [14:57:07]OFDSenderStorePacket 164264 [14:57:07]StoreOFDPacket docnum=164264 [14:57:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 10 07 01 12 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B9 00 00 00 F4 03 04 00 43 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 81 02 00 35 04 06 00 CA 33 93 4F 72 70 F8 0C CB ED 71 37 B6 35 [14:57:07]CheckFolder [14:57:07]dirname=/storage/ofd_packets [14:57:07]CheckFolder done [14:57:07]ProducePacketName [14:57:07]name=ofd_packets/00164264 [14:57:07]NVStorageSaveData ofd_packets/00164264 [14:57:07]File name is /storage/ofd_packets/00164264 [14:57:07]Write 301 bytes [14:57:07]NVStorageSaveData done [14:57:07]OFDSenderStorePacket done [14:57:07]KKMCreateOFDPacket done [14:57:07]NVStorageSaveData kkm_last_timestamp [14:57:07]File name is /storage/kkm_last_timestamp [14:57:07]Write 4 bytes [14:57:07]NVStorageSaveData done [14:57:07]ExternCall_PrintAddStr [14:57:07]wPrintStart [14:57:07]Write to MH i2c: 01 00 00 34 2A 5E [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 07 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 07 00 34 2A 00 00 00 00 00 FF 0F 73 [14:57:07]RasterBufferAndPrint [14:57:07]line Счет N : (1)458348 [14:57:07]line ИНН: 02508201610067 [14:57:07]line Контрольно-Кассовый Чек [14:57:07]line ПРОДАЖА [14:57:07]line ТРК (МРК, ГНК) : 22 [14:57:07]line Товар: 2710124130 [14:57:07]line Аи-92-К-5 [14:57:07]line 3.040 * 65.80 [14:57:07]line = 200.03 [14:57:07]line НДС 12% НСП 1% [14:57:07]line > о реализуемом товаре [14:57:07]line ОКРУГЛЕНИЕ: -0.03 [14:57:07]line ИТОГО: 200.00 [14:57:07]line Внесено: 200.00 [14:57:07]line СДАЧА: 0.00 [14:57:07]line НСП 1% : 1.77 [14:57:07]line НДС 12% : 21.24 [14:57:07]line Наличными: 200.00 [14:57:07]line Безнал.: 0.00 [14:57:07]line Место: АЗС № 72 "Партнер Нефть" [14:57:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:57:07]line СНО: Общий режим [14:57:07]line Чек 185 12.07.2024 14:57 [14:57:07]line Смена: 445 ФФД: 1.0 [14:57:07]line ЗНМ: 0300000160 [14:57:07]line РНМ: 0000000000090829 [14:57:07]line Версия ККМ: 001 [14:57:07]line ФМ: 0000000000874718 [14:57:07]line ФД: 164264 [14:57:07]line ФПД: 222322863600240 [14:57:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164264&fm=222322863600240&tin=02508201610067®Number=0000000000090829&sum=20000 [14:57:07]OFD Sender: Processing packet 164264 [packets to send 104, broken 103] [14:57:07]ProducePacketName [14:57:07]name=ofd_packets/00164264 [14:57:07]OFD Sender: To server: pG, [14:57:07]CommunicateWithHost lk.salyk.kg:30040 [14:57:07]ConnectInit lk.salyk.kg [14:57:07]written 0, free lines is 4095 [14:57:07]Connected sock=10 [14:57:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 10 07 01 12 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B9 00 00 00 F4 03 04 00 43 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 81 02 00 35 04 06 00 CA 33 93 4F 72 70 F8 0C CB ED 71 37 B6 35 [14:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 12 24 47 00 12 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 34 37 31 38 10 04 04 00 A8 81 02 00 F4 03 04 00 D7 EA 90 66 B6 04 01 00 00 A9 AC 59 96 73 27 CE 57 [14:57:08]CommunicateWithHost err = 0 [14:57:08]CheckOFDResponse [14:57:08]1017 (14) - 77093643461234 [14:57:08]1041 (16) - 0000000000874718 [14:57:08]1040 (4) - 164264 [14:57:08]1012 (4) - 12.07.2024 08:35 [14:57:08]1206 (1) - 0 [14:57:08]OFD Sender: Remove packet 164264 [14:57:08]ProducePacketName [14:57:08]name=ofd_packets/00164264 [14:57:08]NVStorageDeleteData [14:57:08]Write to MH i2c: 01 00 00 5E 2A 88 [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: 01 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: 01 07 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: 01 07 00 5E 2A 00 00 00 00 00 16 0D B2 [14:57:08]RasterBufferAndPrint [14:57:08]line [14:57:08]line [14:57:08]line [14:57:08]line [14:57:08]line [14:57:08]written 0, free lines is 3357 [14:57:08]MH_Cut [14:57:08]Write to MH i2c: D1 01 00 65 2A 01 61 [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: D1 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: D1 01 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: D1 01 00 65 2A 00 60 [14:57:08]Write to MH i2c: 01 00 00 66 2A 90 [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]OFD Sender: No OFD packet to send [14:57:09]*** Cut start [14:57:09]*** Partial cut [14:57:09]*** CUTSNS_PIN = 1 [14:57:09]*** CUTSNS_PIN = 0 [14:57:09]*** Brake cut motor [14:57:09]Read from MH i2c: 01 [14:57:09]MH_I2C_Read... [14:57:09]*** Stop cut motor [14:57:09]*** Cut end [14:57:09]Read from MH i2c: 01 07 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: 01 07 00 66 2A 00 00 00 00 00 FF 0F A5 [14:57:09]process_action close_receipt done [14:57:09]requested_data is exist [14:57:09]produce_requested_data [14:57:09]requested_item fm.sn is exist - process it [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 11 00 00 [14:57:09]Write to MH i2c: E2 08 00 67 2A 80 11 00 00 00 00 00 00 0B [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 17 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 17 00 67 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [14:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:57:09]wFMCommunicate OK [14:57:09]requested_item fd.num is exist - process it [14:57:09]SAM_PROTO_GetFieldsCounters [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 13 00 00 [14:57:09]Write to MH i2c: E2 08 00 68 2A 80 13 00 00 00 00 00 00 0E [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 62 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 62 00 68 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [14:57: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:09]wFMCommunicate OK [14:57:09]SAM_PROTO_GetFieldsCounters done [14:57:09]requested_item shift.num is exist - process it [14:57:09]requested_item shift.opened is exist - process it [14:57:09]req_shift_opened [14:57:09]FM_GetShiftState [14:57:09]SAM_PROTO_GetShiftState [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 13 01 00 [14:57:09]Write to MH i2c: E2 08 00 69 2A 80 13 01 00 00 00 00 00 10 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0E 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0E 00 69 2A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5A [14:57:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:57:09]wFMCommunicate OK [14:57:09]SAM_PROTO_GetShiftState done [14:57:09]FM_GetShiftState done [14:57:09]req_shift_opened done [14:57:09]requested_item shift.open_date is exist - process it [14:57:09]req_shift_open_date [14:57:09]req_shift_open_date done [14:57:09]produce_requested_data done [14:57:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164264,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:57:09]process_action_free close_receipt [14:57:09]json_value_free [14:57:09]json_value_free done [14:57:09]process_json_proto returns [14:57:09]Send response to host [14:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164264,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:57:09]free response buf [14:57:09]execute_script done [14:57:09]execute_script returns [14:57:09]free content buf [14:57:09]Sock 7.Close socket [14:57:09]Sock 7.Thread stoped [14:57:12]accept exits with 9 [14:57:12]New connection [14:57:12]New thread 3066850660 created [14:57:12]Thread 3066707300 joined [14:57:12]Waiting for new connection... [14:57:12] Sock 9.Parse request [14:57:12]Sock 9.Check first char [14:57:12]Sock 9.First char is OK [14:57:12]request: POST /json_proto HTTP/1.0 [14:57:12]Method: POST [14:57:12]URL: /json_proto [14:57:12]Method is POST - this is cgi request [14:57:12]url: /json_proto [14:57:12]query_string will be loaded in cgi processing [14:57:12]execute_cgi json_proto POST (null) [14:57:12]execute_cgi path=json_proto method=POST [14:57:12]POST find Content-Length [14:57:12]Host: 172.17.56.4:8080 [14:57:12]Content-Length: 678 [14:57:12]Content-Type: application/json [14:57:12] [14:57:12]POST finish read [14:57:12]Found Content-Length = 678 [14:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:57:12]execute_script... [14:57: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)458347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:57:12]POST & json_proto [14:57:12]process_json_proto [14:57:12]json parsed OK: [14:57:12]protocol is kg_v1.0 [14:57:12]action value=close_receipt [14:57:12]process_action close_receipt [14:57:12]cmd_close_receipt [14:57:12]MH_GetDate [14:57:12]Write to MH i2c: F0 00 00 6A 2A 83 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: F0 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: F0 09 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: F0 09 00 6A 2A 00 4A 44 91 66 C9 DC B2 64 CC [14:57:12]GetLastDocTimeStamp 1720796227 [14:57:12]current date 1720796234 [14:57:12]FM_GetShiftState [14:57:12]SAM_PROTO_GetShiftState [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 13 01 00 [14:57:12]Write to MH i2c: E2 08 00 6B 2A 80 13 01 00 00 00 00 00 12 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 0E 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 0E 00 6B 2A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5C [14:57:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:57:12]wFMCommunicate OK [14:57:12]SAM_PROTO_GetShiftState done [14:57:12]FM_GetShiftState done [14:57:12]opened in 1720744654 [14:57:12]opened+sec_in_day 1720831054 [14:57:12]quantity*price = 70011 [14:57:12]sum+1 = 70012 [14:57:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 186 12.07.2024 14:57 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164265 ФПД: 73446089780725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145714&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164265&fm=73446089780725&tin=02508201610067®Number=0000000000090829&sum=70000 [14:57:13]StoreToDocumentArchive [14:57:13]shift 445 fd 164265 [14:57:13]save to /storage/0445/doc_00164265 [14:57:13]save last doc name /storage/0445/doc_00164265 to /storage/kkm_last_doc_name [14:57:13]save OK [14:57:13]Clear old archive folders... [14:57:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:13]tlvbuf is 00A29A10 [14:57:13]SAM_PROTO_ClearQueue [14:57:13]wFMCommunicate request_size=4 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 09 00 00 [14:57:13]Write to MH i2c: E2 08 00 78 2A 80 09 00 00 00 00 00 00 14 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 03 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 03 00 78 2A 00 90 00 16 [14:57:13]RAPDU: 90 00 [14:57:13]wFMCommunicate OK [14:57:13]SAM_PROTO_ClearQueue done [14:57:13]KKMCreateOFDPacket [14:57:13]OFDProtocolAddRootSTLVToBuf [14:57:13]FM_MakeSignedData [14:57:13]FM_MakeSignedData [14:57:13]SAM_PROTO_SignData [14:57:13]wFMCommunicate request_size=4 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 0D 01 02 [14:57:13]Write to MH i2c: E2 08 00 79 2A 80 0D 01 02 00 00 00 00 1C [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 03 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 03 00 79 2A 00 90 00 17 [14:57:13]RAPDU: 90 00 [14:57:13]wFMCommunicate OK [14:57:13]wFMCommunicate request_size=255 [14:57:13]MH_SAM_APDU [14:57: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 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 4A 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 81 02 00 35 04 06 00 42 [14:57:13]Write to MH i2c: E2 02 01 7A 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 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 4A 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 81 02 00 35 04 06 00 42 00 00 44 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 03 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 03 00 7A 2A 00 90 00 18 [14:57:14]RAPDU: 90 00 [14:57:14]wFMCommunicate OK [14:57:14]wFMCommunicate request_size=10 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 0D 02 02 05 CC 80 17 6D F5 [14:57:14]Write to MH i2c: E2 0D 00 7B 2A 80 0D 02 02 05 00 CC 80 17 6D F5 00 00 EE [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 03 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 03 00 7B 2A 00 90 00 19 [14:57:14]RAPDU: 90 00 [14:57:14]wFMCommunicate OK [14:57:14]wFMCommunicate request_size=4 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 0D 03 02 [14:57:14]Write to MH i2c: E2 08 00 7C 2A 80 0D 03 02 00 00 00 00 21 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 0B 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 0B 00 7C 2A 00 34 BA 36 CA 08 52 0D 1C 90 00 93 [14:57:14]RAPDU: 34 BA 36 CA 08 52 0D 1C 90 00 [14:57:14]wFMCommunicate OK [14:57:14]SAM_PROTO_SignData done [14:57:14]FM_MakeSignedData done [14:57:14]CreateOFDProtocolMessage [14:57:14]wFMCommunicate request_size=4 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 11 00 00 [14:57:14]Write to MH i2c: E2 08 00 7D 2A 80 11 00 00 00 00 00 00 21 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 17 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 17 00 7D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [14:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:57:14]wFMCommunicate OK [14:57:14]CreateOFDProtocolMessage done [14:57:14]OFDSenderStorePacket 164265 [14:57:14]StoreOFDPacket docnum=164265 [14:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 2C 07 01 8B 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 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 4A 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 81 02 00 35 04 06 00 42 CC 80 17 6D F5 34 BA 36 CA 08 52 0D 1C [14:57:14]CheckFolder [14:57:14]dirname=/storage/ofd_packets [14:57:14]CheckFolder done [14:57:14]ProducePacketName [14:57:14]name=ofd_packets/00164265 [14:57:14]NVStorageSaveData ofd_packets/00164265 [14:57:14]File name is /storage/ofd_packets/00164265 [14:57:14]Write 301 bytes [14:57:14]NVStorageSaveData done [14:57:14]OFDSenderStorePacket done [14:57:14]KKMCreateOFDPacket done [14:57:14]NVStorageSaveData kkm_last_timestamp [14:57:14]File name is /storage/kkm_last_timestamp [14:57:14]Write 4 bytes [14:57:14]NVStorageSaveData done [14:57:14]ExternCall_PrintAddStr [14:57:14]wPrintStart [14:57:14]Write to MH i2c: 01 00 00 7E 2A A8 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 07 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 07 00 7E 2A 00 00 00 00 00 FF 0F BD [14:57:14]RasterBufferAndPrint [14:57:14]line Счет N : (1)458347 [14:57:14]line ИНН: 02508201610067 [14:57:14]line Контрольно-Кассовый Чек [14:57:14]line ПРОДАЖА [14:57:14]line ТРК (МРК, ГНК) : 12 [14:57:14]line Товар: 2710124130 [14:57:14]line Аи-92-К-5 [14:57:14]line 10.640 * 65.80 [14:57:14]line = 700.11 [14:57:14]line НДС 12% НСП 1% [14:57:14]line > о реализуемом товаре [14:57:14]line ОКРУГЛЕНИЕ: -0.11 [14:57:14]line ИТОГО: 700.00 [14:57:14]line Внесено: 700.00 [14:57:14]line СДАЧА: 0.00 [14:57:14]line НСП 1% : 6.20 [14:57:14]line НДС 12% : 74.35 [14:57:14]line Наличными: 700.00 [14:57:14]line Безнал.: 0.00 [14:57:14]line Место: АЗС № 72 "Партнер Нефть" [14:57:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:57:14]line СНО: Общий режим [14:57:14]line Чек 186 12.07.2024 14:57 [14:57:14]line Смена: 445 ФФД: 1.0 [14:57:14]line ЗНМ: 0300000160 [14:57:14]line РНМ: 0000000000090829 [14:57:14]line Версия ККМ: 001 [14:57:14]line ФМ: 0000000000874718 [14:57:14]line ФД: 164265 [14:57:14]line ФПД: 73446089780725 [14:57:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145714&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164265&fm=73446089780725&tin=02508201610067®Number=0000000000090829&sum=70000 [14:57:14]written 0, free lines is 4095 [14:57:14]OFD Sender: Processing packet 164265 [packets to send 104, broken 103] [14:57:14]ProducePacketName [14:57:14]name=ofd_packets/00164265 [14:57:14]OFD Sender: To server: pG, [14:57:14]CommunicateWithHost lk.salyk.kg:30040 [14:57:14]ConnectInit lk.salyk.kg [14:57:14]Connected sock=10 [14:57:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 2C 07 01 8B 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 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 4A 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 81 02 00 35 04 06 00 42 CC 80 17 6D F5 34 BA 36 CA 08 52 0D 1C [14:57:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EC 45 47 00 AC 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 34 37 31 38 10 04 04 00 A9 81 02 00 F4 03 04 00 DE EA 90 66 B6 04 01 00 00 43 2F 23 C7 68 8D 9F 02 [14:57:14]CommunicateWithHost err = 0 [14:57:14]CheckOFDResponse [14:57:14]1017 (14) - 77093643461234 [14:57:14]1041 (16) - 0000000000874718 [14:57:14]1040 (4) - 164265 [14:57:14]1012 (4) - 12.07.2024 08:35 [14:57:14]1206 (1) - 0 [14:57:14]OFD Sender: Remove packet 164265 [14:57:14]ProducePacketName [14:57:14]name=ofd_packets/00164265 [14:57:14]NVStorageDeleteData [14:57:14]Write to MH i2c: 01 00 00 A8 2A D2 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 07 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 07 00 A8 2A 00 00 00 00 00 03 0D E9 [14:57:14]RasterBufferAndPrint [14:57:14]line [14:57:14]line [14:57:14]line [14:57:14]line [14:57:14]line [14:57:14]written 0, free lines is 3346 [14:57:14]MH_Cut [14:57:14]Write to MH i2c: D1 01 00 AF 2A 01 AB [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: D1 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: D1 01 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: D1 01 00 AF 2A 00 AA [14:57:14]Write to MH i2c: 01 00 00 B0 2A DA [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:15]OFD Sender: No OFD packet to send [14:57:15]*** Cut start [14:57:15]*** Partial cut [14:57:15]*** CUTSNS_PIN = 1 [14:57:15]*** CUTSNS_PIN = 0 [14:57:15]*** Brake cut motor [14:57:16]Read from MH i2c: 01 [14:57:16]MH_I2C_Read... [14:57:16]*** Stop cut motor [14:57:16]*** Cut end [14:57:16]Read from MH i2c: 01 07 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: 01 07 00 B0 2A 00 00 00 00 00 FF 0F EF [14:57:16]process_action close_receipt done [14:57:16]requested_data is exist [14:57:16]produce_requested_data [14:57:16]requested_item fm.sn is exist - process it [14:57:16]wFMCommunicate request_size=4 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 11 00 00 [14:57:16]Write to MH i2c: E2 08 00 B1 2A 80 11 00 00 00 00 00 00 55 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 17 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 17 00 B1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [14:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:57:16]wFMCommunicate OK [14:57:16]requested_item fd.num is exist - process it [14:57:16]SAM_PROTO_GetFieldsCounters [14:57:16]wFMCommunicate request_size=4 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 13 00 00 [14:57:16]Write to MH i2c: E2 08 00 B2 2A 80 13 00 00 00 00 00 00 58 [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 62 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 62 00 B2 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [14:57: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:16]wFMCommunicate OK [14:57:16]SAM_PROTO_GetFieldsCounters done [14:57:16]requested_item shift.num is exist - process it [14:57:16]requested_item shift.opened is exist - process it [14:57:16]req_shift_opened [14:57:16]FM_GetShiftState [14:57:16]SAM_PROTO_GetShiftState [14:57:16]wFMCommunicate request_size=4 [14:57:16]MH_SAM_APDU [14:57:16]CAPDU: 80 13 01 00 [14:57:16]Write to MH i2c: E2 08 00 B3 2A 80 13 01 00 00 00 00 00 5A [14:57:16]Write i2c OK [14:57:16]MH_I2C_Read... [14:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:16]Read from MH i2c: E2 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 0E 00 [14:57:16]MH_I2C_Read... [14:57:16]Read from MH i2c: E2 0E 00 B3 2A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A4 [14:57:16]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:57:16]wFMCommunicate OK [14:57:16]SAM_PROTO_GetShiftState done [14:57:16]FM_GetShiftState done [14:57:16]req_shift_opened done [14:57:16]requested_item shift.open_date is exist - process it [14:57:16]req_shift_open_date [14:57:16]req_shift_open_date done [14:57:16]produce_requested_data done [14:57:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164265,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:57:16]process_action_free close_receipt [14:57:16]json_value_free [14:57:16]json_value_free done [14:57:16]process_json_proto returns [14:57:16]Send response to host [14:57:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164265,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:57:16]free response buf [14:57:16]execute_script done [14:57:16]execute_script returns [14:57:16]free content buf [14:57:16]Sock 9.Close socket [14:57:16]Sock 9.Thread stoped [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:22]accept exits with 7 [14:59:22]New connection [14:59:22]New thread 3066707300 created [14:59:22]Thread 3066850660 joined [14:59:22]Waiting for new connection... [14:59:22] Sock 7.Parse request [14:59:22]Sock 7.Check first char [14:59:22]Sock 7.First char is OK [14:59:22]request: POST /json_proto HTTP/1.0 [14:59:22]Method: POST [14:59:22]URL: /json_proto [14:59:22]Method is POST - this is cgi request [14:59:22]url: /json_proto [14:59:22]query_string will be loaded in cgi processing [14:59:22]execute_cgi json_proto POST (null) [14:59:22]execute_cgi path=json_proto method=POST [14:59:22]POST find Content-Length [14:59:22]Host: 172.17.56.4:8080 [14:59:22]Content-Length: 679 [14:59:22]Content-Type: application/json [14:59:22] [14:59:22]POST finish read [14:59:22]Found Content-Length = 679 [14:59:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458349", "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" : 71.90, "quantity" : 15.300, "sum" : 1100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:22]execute_script... [14:59:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458349", "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" : 71.90, "quantity" : 15.300, "sum" : 1100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:22]POST & json_proto [14:59:22]process_json_proto [14:59:22]json parsed OK: [14:59:22]protocol is kg_v1.0 [14:59:22]action value=close_receipt [14:59:22]process_action close_receipt [14:59:22]cmd_close_receipt [14:59:22]MH_GetDate [14:59:22]Write to MH i2c: F0 00 00 B4 2A CD [14:59:22]Write i2c OK [14:59:22]MH_I2C_Read... [14:59:22]Read from MH i2c: F0 [14:59:22]MH_I2C_Read... [14:59:22]Read from MH i2c: F0 09 00 [14:59:22]MH_I2C_Read... [14:59:22]Read from MH i2c: F0 09 00 B4 2A 00 CC 44 91 66 C9 DC B2 64 98 [14:59:22]GetLastDocTimeStamp 1720796234 [14:59:22]current date 1720796364 [14:59:22]FM_GetShiftState [14:59:22]SAM_PROTO_GetShiftState [14:59:22]wFMCommunicate request_size=4 [14:59:22]MH_SAM_APDU [14:59:22]CAPDU: 80 13 01 00 [14:59:22]Write to MH i2c: E2 08 00 B5 2A 80 13 01 00 00 00 00 00 5C [14:59:22]Write i2c OK [14:59:22]MH_I2C_Read... [14:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:22]Read from MH i2c: E2 [14:59:22]MH_I2C_Read... [14:59:22]Read from MH i2c: E2 0E 00 [14:59:22]MH_I2C_Read... [14:59:22]Read from MH i2c: E2 0E 00 B5 2A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A6 [14:59:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:59:22]wFMCommunicate OK [14:59:22]SAM_PROTO_GetShiftState done [14:59:22]FM_GetShiftState done [14:59:22]opened in 1720744654 [14:59:22]opened+sec_in_day 1720831054 [14:59:22]quantity*price = 110007 [14:59:22]sum+1 = 110008 [14:59:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 187 12.07.2024 14:59 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164266 ФПД: 4938009033538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145924&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164266&fm=4938009033538&tin=02508201610067®Number=0000000000090829&sum=110000 [14:59:23]StoreToDocumentArchive [14:59:23]shift 445 fd 164266 [14:59:23]save to /storage/0445/doc_00164266 [14:59:23]save last doc name /storage/0445/doc_00164266 to /storage/kkm_last_doc_name [14:59:23]save OK [14:59:23]Clear old archive folders... [14:59:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:23]tlvbuf is 009E1B60 [14:59:23]SAM_PROTO_ClearQueue [14:59:23]wFMCommunicate request_size=4 [14:59:23]MH_SAM_APDU [14:59:23]CAPDU: 80 09 00 00 [14:59:23]Write to MH i2c: E2 08 00 C2 2A 80 09 00 00 00 00 00 00 5E [14:59:23]Write i2c OK [14:59:23]MH_I2C_Read... [14:59:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:23]Read from MH i2c: E2 [14:59:23]MH_I2C_Read... [14:59:23]Read from MH i2c: E2 03 00 [14:59:23]MH_I2C_Read... [14:59:23]Read from MH i2c: E2 03 00 C2 2A 00 90 00 60 [14:59:23]RAPDU: 90 00 [14:59:23]wFMCommunicate OK [14:59:23]SAM_PROTO_ClearQueue done [14:59:23]KKMCreateOFDPacket [14:59:23]OFDProtocolAddRootSTLVToBuf [14:59:23]FM_MakeSignedData [14:59:23]FM_MakeSignedData [14:59:23]SAM_PROTO_SignData [14:59:23]wFMCommunicate request_size=4 [14:59:23]MH_SAM_APDU [14:59:23]CAPDU: 80 0D 01 02 [14:59:23]Write to MH i2c: E2 08 00 C3 2A 80 0D 01 02 00 00 00 00 66 [14:59:23]Write i2c OK [14:59:23]MH_I2C_Read... [14:59:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:23]Read from MH i2c: E2 [14:59:23]MH_I2C_Read... [14:59:23]Read from MH i2c: E2 03 00 [14:59:23]MH_I2C_Read... [14:59:23]Read from MH i2c: E2 03 00 C3 2A 00 90 00 61 [14:59:23]RAPDU: 90 00 [14:59:23]wFMCommunicate OK [14:59:23]wFMCommunicate request_size=255 [14:59:23]MH_SAM_APDU [14:59: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 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 CC 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 81 02 00 35 04 06 00 04 7D B8 46 [14:59:23]Write to MH i2c: E2 02 01 C4 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 CC 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 81 02 00 35 04 06 00 04 7D B8 46 00 00 E6 [14:59:24]Write i2c OK [14:59:24]MH_I2C_Read... [14:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:24]Read from MH i2c: E2 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: E2 03 00 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: E2 03 00 C4 2A 00 90 00 62 [14:59:24]RAPDU: 90 00 [14:59:24]wFMCommunicate OK [14:59:24]wFMCommunicate request_size=7 [14:59:24]MH_SAM_APDU [14:59:24]CAPDU: 80 0D 02 02 02 3B 42 [14:59:24]Write to MH i2c: E2 0A 00 C5 2A 80 0D 02 02 02 00 3B 42 00 00 EA [14:59:24]Write i2c OK [14:59:24]MH_I2C_Read... [14:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:24]Read from MH i2c: E2 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: E2 03 00 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: E2 03 00 C5 2A 00 90 00 63 [14:59:24]RAPDU: 90 00 [14:59:24]wFMCommunicate OK [14:59:24]wFMCommunicate request_size=4 [14:59:24]MH_SAM_APDU [14:59:24]CAPDU: 80 0D 03 02 [14:59:24]Write to MH i2c: E2 08 00 C6 2A 80 0D 03 02 00 00 00 00 6B [14:59:24]Write i2c OK [14:59:24]MH_I2C_Read... [14:59:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:24]Read from MH i2c: E2 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: E2 0B 00 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: E2 0B 00 C6 2A 00 46 44 E9 78 F2 29 0A 45 90 00 C1 [14:59:24]RAPDU: 46 44 E9 78 F2 29 0A 45 90 00 [14:59:24]wFMCommunicate OK [14:59:24]SAM_PROTO_SignData done [14:59:24]FM_MakeSignedData done [14:59:24]CreateOFDProtocolMessage [14:59:24]wFMCommunicate request_size=4 [14:59:24]MH_SAM_APDU [14:59:24]CAPDU: 80 11 00 00 [14:59:24]Write to MH i2c: E2 08 00 C7 2A 80 11 00 00 00 00 00 00 6B [14:59:24]Write i2c OK [14:59:24]MH_I2C_Read... [14:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:24]Read from MH i2c: E2 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: E2 17 00 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: E2 17 00 C7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [14:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:59:24]wFMCommunicate OK [14:59:24]CreateOFDProtocolMessage done [14:59:24]OFDSenderStorePacket 164266 [14:59:24]StoreOFDPacket docnum=164266 [14:59:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 BB 56 04 01 ED 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 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 CC 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 81 02 00 35 04 06 00 04 7D B8 46 3B 42 46 44 E9 78 F2 29 0A 45 [14:59:24]CheckFolder [14:59:24]dirname=/storage/ofd_packets [14:59:24]CheckFolder done [14:59:24]ProducePacketName [14:59:24]name=ofd_packets/00164266 [14:59:24]NVStorageSaveData ofd_packets/00164266 [14:59:24]File name is /storage/ofd_packets/00164266 [14:59:24]Write 298 bytes [14:59:24]NVStorageSaveData done [14:59:24]OFDSenderStorePacket done [14:59:24]KKMCreateOFDPacket done [14:59:24]NVStorageSaveData kkm_last_timestamp [14:59:24]File name is /storage/kkm_last_timestamp [14:59:24]Write 4 bytes [14:59:24]NVStorageSaveData done [14:59:24]ExternCall_PrintAddStr [14:59:24]wPrintStart [14:59:24]Write to MH i2c: 01 00 00 C8 2A F2 [14:59:24]Write i2c OK [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: 01 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: 01 07 00 [14:59:24]MH_I2C_Read... [14:59:24]Read from MH i2c: 01 07 00 C8 2A 00 00 00 00 00 FF 0F 07 [14:59:24]RasterBufferAndPrint [14:59:24]line Счет N : (1)458349 [14:59:24]line ИНН: 02508201610067 [14:59:24]line Контрольно-Кассовый Чек [14:59:24]line ПРОДАЖА [14:59:24]line ТРК (МРК, ГНК) : 21 [14:59:24]line Товар: 2710194210 [14:59:24]line ДТ-К-5 [14:59:24]line 15.300 * 71.90 [14:59:24]line = 1100.07 [14:59:24]line НДС 12% НСП 1% [14:59:24]line > о реализуемом товаре [14:59:24]line ОКРУГЛЕНИЕ: -0.07 [14:59:24]line ИТОГО: 1100.00 [14:59:24]line Внесено: 1100.00 [14:59:24]line СДАЧА: 0.00 [14:59:24]line НСП 1% : 9.73 [14:59:24]line НДС 12% : 116.82 [14:59:24]line Наличными: 1100.00 [14:59:24]line Безнал.: 0.00 [14:59:24]line Место: АЗС № 72 "Партнер Нефть" [14:59:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:59:24]line СНО: Общий режим [14:59:24]line Чек 187 12.07.2024 14:59 [14:59:24]line Смена: 445 ФФД: 1.0 [14:59:24]line ЗНМ: 0300000160 [14:59:24]line РНМ: 0000000000090829 [14:59:24]line Версия ККМ: 001 [14:59:24]line ФМ: 0000000000874718 [14:59:24]line ФД: 164266 [14:59:24]line ФПД: 4938009033538 [14:59:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T145924&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164266&fm=4938009033538&tin=02508201610067®Number=0000000000090829&sum=110000 [14:59:24]OFD Sender: Processing packet 164266 [packets to send 104, broken 103] [14:59:24]ProducePacketName [14:59:24]name=ofd_packets/00164266 [14:59:24]OFD Sender: To server: pG, [14:59:24]CommunicateWithHost lk.salyk.kg:30040 [14:59:24]ConnectInit lk.salyk.kg [14:59:24]written 0, free lines is 4095 [14:59:24]Connected sock=10 [14:59:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 BB 56 04 01 ED 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 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 CC 44 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 81 02 00 35 04 06 00 04 7D B8 46 3B 42 46 44 E9 78 F2 29 0A 45 [14:59:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 37 46 47 00 6E 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 34 37 31 38 10 04 04 00 AA 81 02 00 F4 03 04 00 60 EB 90 66 B6 04 01 00 00 DF EC 30 B6 04 18 F8 B6 [14:59:25]CommunicateWithHost err = 0 [14:59:25]CheckOFDResponse [14:59:25]1017 (14) - 77093643461234 [14:59:25]1041 (16) - 0000000000874718 [14:59:25]1040 (4) - 164266 [14:59:25]1012 (4) - 12.07.2024 08:37 [14:59:25]1206 (1) - 0 [14:59:25]OFD Sender: Remove packet 164266 [14:59:25]ProducePacketName [14:59:25]name=ofd_packets/00164266 [14:59:25]NVStorageDeleteData [14:59:25]Write to MH i2c: 01 00 00 F2 2A 1C [14:59:25]Write i2c OK [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: 01 [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: 01 07 00 [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: 01 07 00 F2 2A 00 00 00 00 00 02 0D 32 [14:59:25]RasterBufferAndPrint [14:59:25]line [14:59:25]line [14:59:25]line [14:59:25]line [14:59:25]line [14:59:25]written 0, free lines is 3336 [14:59:25]MH_Cut [14:59:25]Write to MH i2c: D1 01 00 F9 2A 01 F5 [14:59:25]Write i2c OK [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: D1 [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: D1 01 00 [14:59:25]MH_I2C_Read... [14:59:25]Read from MH i2c: D1 01 00 F9 2A 00 F4 [14:59:25]Write to MH i2c: 01 00 00 FA 2A 24 [14:59:25]Write i2c OK [14:59:25]MH_I2C_Read... [14:59:25]OFD Sender: No OFD packet to send [14:59:25]*** Cut start [14:59:25]*** Partial cut [14:59:25]*** CUTSNS_PIN = 1 [14:59:25]*** CUTSNS_PIN = 0 [14:59:26]*** Brake cut motor [14:59:26]Read from MH i2c: 01 [14:59:26]MH_I2C_Read... [14:59:26]*** Stop cut motor [14:59:26]*** Cut end [14:59:26]Read from MH i2c: 01 07 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: 01 07 00 FA 2A 00 00 00 00 00 FF 0F 39 [14:59:26]process_action close_receipt done [14:59:26]requested_data is exist [14:59:26]produce_requested_data [14:59:26]requested_item fm.sn is exist - process it [14:59:26]wFMCommunicate request_size=4 [14:59:26]MH_SAM_APDU [14:59:26]CAPDU: 80 11 00 00 [14:59:26]Write to MH i2c: E2 08 00 FB 2A 80 11 00 00 00 00 00 00 9F [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:26]Read from MH i2c: E2 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 17 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 17 00 FB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [14:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:59:26]wFMCommunicate OK [14:59:26]requested_item fd.num is exist - process it [14:59:26]SAM_PROTO_GetFieldsCounters [14:59:26]wFMCommunicate request_size=4 [14:59:26]MH_SAM_APDU [14:59:26]CAPDU: 80 13 00 00 [14:59:26]Write to MH i2c: E2 08 00 FC 2A 80 13 00 00 00 00 00 00 A2 [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:26]Read from MH i2c: E2 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 62 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 62 00 FC 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [14:59:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:26]wFMCommunicate OK [14:59:26]SAM_PROTO_GetFieldsCounters done [14:59:26]requested_item shift.num is exist - process it [14:59:26]requested_item shift.opened is exist - process it [14:59:26]req_shift_opened [14:59:26]FM_GetShiftState [14:59:26]SAM_PROTO_GetShiftState [14:59:26]wFMCommunicate request_size=4 [14:59:26]MH_SAM_APDU [14:59:26]CAPDU: 80 13 01 00 [14:59:26]Write to MH i2c: E2 08 00 FD 2A 80 13 01 00 00 00 00 00 A4 [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:26]Read from MH i2c: E2 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 0E 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 0E 00 FD 2A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EE [14:59:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [14:59:26]wFMCommunicate OK [14:59:26]SAM_PROTO_GetShiftState done [14:59:26]FM_GetShiftState done [14:59:26]req_shift_opened done [14:59:26]requested_item shift.open_date is exist - process it [14:59:26]req_shift_open_date [14:59:26]req_shift_open_date done [14:59:26]produce_requested_data done [14:59:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164266,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [14:59:26]process_action_free close_receipt [14:59:26]json_value_free [14:59:26]json_value_free done [14:59:26]process_json_proto returns [14:59:26]Send response to host [14:59:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164266,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [14:59:26]free response buf [14:59:26]execute_script done [14:59:26]execute_script returns [14:59:26]free content buf [14:59:26]Sock 7.Close socket [14:59:26]Sock 7.Thread stoped [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]accept exits with 9 [15:03:40]New connection [15:03:40]New thread 3066850660 created [15:03:40]Thread 3066707300 joined [15:03:40]Waiting for new connection... [15:03:40] Sock 9.Parse request [15:03:40]Sock 9.Check first char [15:03:40]Sock 9.First char is OK [15:03:40]request: POST /json_proto HTTP/1.0 [15:03:40]Method: POST [15:03:40]URL: /json_proto [15:03:40]Method is POST - this is cgi request [15:03:40]url: /json_proto [15:03:40]query_string will be loaded in cgi processing [15:03:40]execute_cgi json_proto POST (null) [15:03:40]execute_cgi path=json_proto method=POST [15:03:40]POST find Content-Length [15:03:40]Host: 172.17.56.4:8080 [15:03:40]Content-Length: 793 [15:03:40]Content-Type: application/json [15:03:40] [15:03:40]POST finish read [15:03:40]Found Content-Length = 793 [15:03:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:40]execute_script... [15:03:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:40]POST & json_proto [15:03:40]process_json_proto [15:03:40]json parsed OK: [15:03:40]protocol is kg_v1.0 [15:03:40]action value=close_receipt [15:03:40]process_action close_receipt [15:03:40]cmd_close_receipt [15:03:40]MH_GetDate [15:03:40]Write to MH i2c: F0 00 00 FE 2A 17 [15:03:40]Write i2c OK [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: F0 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: F0 09 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: F0 09 00 FE 2A 00 CE 45 91 66 C9 DC B2 64 E5 [15:03:40]GetLastDocTimeStamp 1720796364 [15:03:40]current date 1720796622 [15:03:40]FM_GetShiftState [15:03:40]SAM_PROTO_GetShiftState [15:03:40]wFMCommunicate request_size=4 [15:03:40]MH_SAM_APDU [15:03:40]CAPDU: 80 13 01 00 [15:03:40]Write to MH i2c: E2 08 00 FF 2A 80 13 01 00 00 00 00 00 A6 [15:03:40]Write i2c OK [15:03:40]MH_I2C_Read... [15:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:40]OFD Sender: No OFD packet to send [15:03:40]Read from MH i2c: E2 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 0E 00 [15:03:40]MH_I2C_Read... [15:03:40]Read from MH i2c: E2 0E 00 FF 2A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F0 [15:03:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:03:40]wFMCommunicate OK [15:03:40]SAM_PROTO_GetShiftState done [15:03:40]FM_GetShiftState done [15:03:40]opened in 1720744654 [15:03:40]opened+sec_in_day 1720831054 [15:03:40]quantity*price = 100047 [15:03:40]sum+1 = 100048 [15:03:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 188 12.07.2024 15:03 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164267 ФПД: 86358545854189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T150342&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164267&fm=86358545854189&tin=02508201610067®Number=0000000000090829&sum=100047 [15:03:41]StoreToDocumentArchive [15:03:41]shift 445 fd 164267 [15:03:41]save to /storage/0445/doc_00164267 [15:03:41]save last doc name /storage/0445/doc_00164267 to /storage/kkm_last_doc_name [15:03:41]save OK [15:03:41]Clear old archive folders... [15:03:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:41]tlvbuf is B6EC13D0 [15:03:41]SAM_PROTO_ClearQueue [15:03:41]wFMCommunicate request_size=4 [15:03:41]MH_SAM_APDU [15:03:41]CAPDU: 80 09 00 00 [15:03:41]Write to MH i2c: E2 08 00 0C 2B 80 09 00 00 00 00 00 00 A9 [15:03:41]Write i2c OK [15:03:41]MH_I2C_Read... [15:03:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:42]Read from MH i2c: E2 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 03 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 03 00 0C 2B 00 90 00 AB [15:03:42]RAPDU: 90 00 [15:03:42]wFMCommunicate OK [15:03:42]SAM_PROTO_ClearQueue done [15:03:42]KKMCreateOFDPacket [15:03:42]OFDProtocolAddRootSTLVToBuf [15:03:42]FM_MakeSignedData [15:03:42]FM_MakeSignedData [15:03:42]SAM_PROTO_SignData [15:03:42]wFMCommunicate request_size=4 [15:03:42]MH_SAM_APDU [15:03:42]CAPDU: 80 0D 01 02 [15:03:42]Write to MH i2c: E2 08 00 0D 2B 80 0D 01 02 00 00 00 00 B1 [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:42]Read from MH i2c: E2 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 03 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 03 00 0D 2B 00 90 00 AC [15:03:42]RAPDU: 90 00 [15:03:42]wFMCommunicate OK [15:03:42]wFMCommunicate request_size=255 [15:03:42]MH_SAM_APDU [15: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 CE 45 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 81 02 00 35 04 06 00 4E [15:03:42]Write to MH i2c: E2 02 01 0E 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 CE 45 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 81 02 00 35 04 06 00 4E 00 00 9E [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:42]Read from MH i2c: E2 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 03 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 03 00 0E 2B 00 90 00 AD [15:03:42]RAPDU: 90 00 [15:03:42]wFMCommunicate OK [15:03:42]wFMCommunicate request_size=10 [15:03:42]MH_SAM_APDU [15:03:42]CAPDU: 80 0D 02 02 05 8A EA 72 EE ED [15:03:42]Write to MH i2c: E2 0D 00 0F 2B 80 0D 02 02 05 00 8A EA 72 EE ED 00 00 7F [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:42]Read from MH i2c: E2 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 03 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 03 00 0F 2B 00 90 00 AE [15:03:42]RAPDU: 90 00 [15:03:42]wFMCommunicate OK [15:03:42]wFMCommunicate request_size=4 [15:03:42]MH_SAM_APDU [15:03:42]CAPDU: 80 0D 03 02 [15:03:42]Write to MH i2c: E2 08 00 10 2B 80 0D 03 02 00 00 00 00 B6 [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:42]Read from MH i2c: E2 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 0B 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 0B 00 10 2B 00 BF BF 38 1E FA 5F F4 80 90 00 58 [15:03:42]RAPDU: BF BF 38 1E FA 5F F4 80 90 00 [15:03:42]wFMCommunicate OK [15:03:42]SAM_PROTO_SignData done [15:03:42]FM_MakeSignedData done [15:03:42]CreateOFDProtocolMessage [15:03:42]wFMCommunicate request_size=4 [15:03:42]MH_SAM_APDU [15:03:42]CAPDU: 80 11 00 00 [15:03:42]Write to MH i2c: E2 08 00 11 2B 80 11 00 00 00 00 00 00 B6 [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:42]Read from MH i2c: E2 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 17 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: E2 17 00 11 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [15:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:03:42]wFMCommunicate OK [15:03:42]CreateOFDProtocolMessage done [15:03:42]OFDSenderStorePacket 164267 [15:03:42]StoreOFDPacket docnum=164267 [15:03:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 91 07 01 6C 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 CE 45 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 81 02 00 35 04 06 00 4E 8A EA 72 EE ED BF BF 38 1E FA 5F F4 80 [15:03:42]CheckFolder [15:03:42]dirname=/storage/ofd_packets [15:03:42]CheckFolder done [15:03:42]ProducePacketName [15:03:42]name=ofd_packets/00164267 [15:03:42]NVStorageSaveData ofd_packets/00164267 [15:03:42]File name is /storage/ofd_packets/00164267 [15:03:42]Write 301 bytes [15:03:42]NVStorageSaveData done [15:03:42]OFDSenderStorePacket done [15:03:42]KKMCreateOFDPacket done [15:03:42]NVStorageSaveData kkm_last_timestamp [15:03:42]File name is /storage/kkm_last_timestamp [15:03:42]Write 4 bytes [15:03:42]NVStorageSaveData done [15:03:42]ExternCall_PrintAddStr [15:03:42]wPrintStart [15:03:42]Write to MH i2c: 01 00 00 12 2B 3D [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 07 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 07 00 12 2B 00 00 00 00 00 FF 0F 52 [15:03:42]RasterBufferAndPrint [15:03:42]line Счет N : (1)458350 [15:03:42]line ИНН: 02508201610067 [15:03:42]line Контрольно-Кассовый Чек [15:03:42]line ПРОДАЖА [15:03:42]line ТРК (МРК, ГНК) : 12 [15:03:42]line Товар: 2710124130 [15:03:42]line Аи-92-К-5 [15:03:42]line 15.340 * 65.22 [15:03:42]line = 1000.47 [15:03:42]line НДС 12% НСП 1% [15:03:42]line > о реализуемом товаре [15:03:42]line ИТОГО: 1000.47 [15:03:42]line НСП 1% : 8.85 [15:03:42]line НДС 12% : 106.24 [15:03:42]line Наличными: 0.00 [15:03:42]line Безнал.: 1000.47 [15:03:42]line Место: АЗС № 72 "Партнер Нефть" [15:03:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:03:42]line СНО: Общий режим [15:03:42]line Чек 188 12.07.2024 15:03 [15:03:42]line Смена: 445 ФФД: 1.0 [15:03:42]line ЗНМ: 0300000160 [15:03:42]line РНМ: 0000000000090829 [15:03:42]line Версия ККМ: 001 [15:03:42]line Платежная система: KICB Банк [15:03:42]line ФМ: 0000000000874718 [15:03:42]line ФД: 164267 [15:03:42]line ФПД: 86358545854189 [15:03:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T150342&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164267&fm=86358545854189&tin=02508201610067®Number=0000000000090829&sum=100047 [15:03:42]written 0, free lines is 4095 [15:03:42]OFD Sender: Processing packet 164267 [packets to send 104, broken 103] [15:03:42]ProducePacketName [15:03:42]name=ofd_packets/00164267 [15:03:42]OFD Sender: To server: pG, [15:03:42]CommunicateWithHost lk.salyk.kg:30040 [15:03:42]ConnectInit lk.salyk.kg [15:03:42]Connected sock=10 [15:03:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 91 07 01 6C 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 CE 45 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 81 02 00 35 04 06 00 4E 8A EA 72 EE ED BF BF 38 1E FA 5F F4 80 [15:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7B 39 47 00 BE 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 34 37 31 38 10 04 04 00 AB 81 02 00 F4 03 04 00 62 EC 90 66 B6 04 01 00 00 BE CF CA 93 9F DE 44 34 [15:03:42]CommunicateWithHost err = 0 [15:03:42]CheckOFDResponse [15:03:42]1017 (14) - 77093643461234 [15:03:42]1041 (16) - 0000000000874718 [15:03:42]1040 (4) - 164267 [15:03:42]1012 (4) - 12.07.2024 08:42 [15:03:42]1206 (1) - 0 [15:03:42]OFD Sender: Remove packet 164267 [15:03:42]ProducePacketName [15:03:42]name=ofd_packets/00164267 [15:03:42]NVStorageDeleteData [15:03:42]Write to MH i2c: 01 00 00 3B 2B 66 [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 07 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 07 00 3B 2B 00 00 00 00 00 1D 0D 97 [15:03:42]RasterBufferAndPrint [15:03:42]line [15:03:42]line [15:03:42]line [15:03:42]line [15:03:42]line [15:03:42]written 0, free lines is 3365 [15:03:42]MH_Cut [15:03:42]Write to MH i2c: D1 01 00 42 2B 01 3F [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: D1 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: D1 01 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: D1 01 00 42 2B 00 3E [15:03:42]Write to MH i2c: 01 00 00 43 2B 6E [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:43]OFD Sender: No OFD packet to send [15:03:43]*** Cut start [15:03:43]*** Partial cut [15:03:43]*** CUTSNS_PIN = 1 [15:03:43]*** CUTSNS_PIN = 0 [15:03:43]*** Brake cut motor [15:03:44]Read from MH i2c: 01 [15:03:44]MH_I2C_Read... [15:03:44]*** Stop cut motor [15:03:44]*** Cut end [15:03:44]Read from MH i2c: 01 07 00 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: 01 07 00 43 2B 00 00 00 00 00 FF 0F 83 [15:03:44]process_action close_receipt done [15:03:44]requested_data is exist [15:03:44]produce_requested_data [15:03:44]requested_item fm.sn is exist - process it [15:03:44]wFMCommunicate request_size=4 [15:03:44]MH_SAM_APDU [15:03:44]CAPDU: 80 11 00 00 [15:03:44]Write to MH i2c: E2 08 00 44 2B 80 11 00 00 00 00 00 00 E9 [15:03:44]Write i2c OK [15:03:44]MH_I2C_Read... [15:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:44]Read from MH i2c: E2 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: E2 17 00 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: E2 17 00 44 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [15:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:03:44]wFMCommunicate OK [15:03:44]requested_item fd.num is exist - process it [15:03:44]SAM_PROTO_GetFieldsCounters [15:03:44]wFMCommunicate request_size=4 [15:03:44]MH_SAM_APDU [15:03:44]CAPDU: 80 13 00 00 [15:03:44]Write to MH i2c: E2 08 00 45 2B 80 13 00 00 00 00 00 00 EC [15:03:44]Write i2c OK [15:03:44]MH_I2C_Read... [15:03:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:44]Read from MH i2c: E2 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: E2 62 00 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: E2 62 00 45 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [15:03:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:44]wFMCommunicate OK [15:03:44]SAM_PROTO_GetFieldsCounters done [15:03:44]requested_item shift.num is exist - process it [15:03:44]requested_item shift.opened is exist - process it [15:03:44]req_shift_opened [15:03:44]FM_GetShiftState [15:03:44]SAM_PROTO_GetShiftState [15:03:44]wFMCommunicate request_size=4 [15:03:44]MH_SAM_APDU [15:03:44]CAPDU: 80 13 01 00 [15:03:44]Write to MH i2c: E2 08 00 46 2B 80 13 01 00 00 00 00 00 EE [15:03:44]Write i2c OK [15:03:44]MH_I2C_Read... [15:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:44]Read from MH i2c: E2 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: E2 0E 00 [15:03:44]MH_I2C_Read... [15:03:44]Read from MH i2c: E2 0E 00 46 2B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 38 [15:03:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:03:44]wFMCommunicate OK [15:03:44]SAM_PROTO_GetShiftState done [15:03:44]FM_GetShiftState done [15:03:44]req_shift_opened done [15:03:44]requested_item shift.open_date is exist - process it [15:03:44]req_shift_open_date [15:03:44]req_shift_open_date done [15:03:44]produce_requested_data done [15:03:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164267,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:03:44]process_action_free close_receipt [15:03:44]json_value_free [15:03:44]json_value_free done [15:03:44]process_json_proto returns [15:03:44]Send response to host [15:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164267,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:03:44]free response buf [15:03:44]execute_script done [15:03:44]execute_script returns [15:03:44]free content buf [15:03:44]Sock 9.Close socket [15:03:44]Sock 9.Thread stoped [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]accept exits with 7 [15:07:03]New connection [15:07:03]New thread 3066707300 created [15:07:03]Thread 3066850660 joined [15:07:03]Waiting for new connection... [15:07:03] Sock 7.Parse request [15:07:03]Sock 7.Check first char [15:07:03]Sock 7.First char is OK [15:07:03]request: POST /json_proto HTTP/1.0 [15:07:03]Method: POST [15:07:03]URL: /json_proto [15:07:03]Method is POST - this is cgi request [15:07:03]url: /json_proto [15:07:03]query_string will be loaded in cgi processing [15:07:03]execute_cgi json_proto POST (null) [15:07:03]execute_cgi path=json_proto method=POST [15:07:03]POST find Content-Length [15:07:03]Host: 172.17.56.4:8080 [15:07:03]Content-Length: 677 [15:07:03]Content-Type: application/json [15:07:03] [15:07:03]POST finish read [15:07:03]Found Content-Length = 677 [15:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:07:03]execute_script... [15:07: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)458351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:07:03]POST & json_proto [15:07:03]process_json_proto [15:07:03]json parsed OK: [15:07:03]protocol is kg_v1.0 [15:07:03]action value=close_receipt [15:07:03]process_action close_receipt [15:07:03]cmd_close_receipt [15:07:03]MH_GetDate [15:07:03]Write to MH i2c: F0 00 00 47 2B 61 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: F0 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: F0 09 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: F0 09 00 47 2B 00 99 46 91 66 C9 DC B2 64 FB [15:07:03]GetLastDocTimeStamp 1720796622 [15:07:03]current date 1720796825 [15:07:03]FM_GetShiftState [15:07:03]SAM_PROTO_GetShiftState [15:07:03]wFMCommunicate request_size=4 [15:07:03]MH_SAM_APDU [15:07:03]CAPDU: 80 13 01 00 [15:07:03]Write to MH i2c: E2 08 00 48 2B 80 13 01 00 00 00 00 00 F0 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:03]Read from MH i2c: E2 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 0E 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 0E 00 48 2B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3A [15:07:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:07:03]wFMCommunicate OK [15:07:03]SAM_PROTO_GetShiftState done [15:07:03]FM_GetShiftState done [15:07:03]opened in 1720744654 [15:07:03]opened+sec_in_day 1720831054 [15:07:03]quantity*price = 20003 [15:07:03]sum+1 = 20004 [15:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 189 12.07.2024 15:07 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164268 ФПД: 112180656540433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T150705&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164268&fm=112180656540433&tin=02508201610067®Number=0000000000090829&sum=20000 [15:07:04]StoreToDocumentArchive [15:07:04]shift 445 fd 164268 [15:07:04]save to /storage/0445/doc_00164268 [15:07:04]save last doc name /storage/0445/doc_00164268 to /storage/kkm_last_doc_name [15:07:04]save OK [15:07:04]Clear old archive folders... [15:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:04]tlvbuf is 00A775C0 [15:07:04]SAM_PROTO_ClearQueue [15:07:04]wFMCommunicate request_size=4 [15:07:04]MH_SAM_APDU [15:07:04]CAPDU: 80 09 00 00 [15:07:04]Write to MH i2c: E2 08 00 55 2B 80 09 00 00 00 00 00 00 F2 [15:07:04]Write i2c OK [15:07:04]MH_I2C_Read... [15:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:04]Read from MH i2c: E2 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: E2 03 00 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: E2 03 00 55 2B 00 90 00 F4 [15:07:04]RAPDU: 90 00 [15:07:04]wFMCommunicate OK [15:07:04]SAM_PROTO_ClearQueue done [15:07:04]KKMCreateOFDPacket [15:07:04]OFDProtocolAddRootSTLVToBuf [15:07:04]FM_MakeSignedData [15:07:04]FM_MakeSignedData [15:07:04]SAM_PROTO_SignData [15:07:04]wFMCommunicate request_size=4 [15:07:04]MH_SAM_APDU [15:07:04]CAPDU: 80 0D 01 02 [15:07:04]Write to MH i2c: E2 08 00 56 2B 80 0D 01 02 00 00 00 00 FA [15:07:04]Write i2c OK [15:07:04]MH_I2C_Read... [15:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:04]Read from MH i2c: E2 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: E2 03 00 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: E2 03 00 56 2B 00 90 00 F5 [15:07:04]RAPDU: 90 00 [15:07:04]wFMCommunicate OK [15:07:04]wFMCommunicate request_size=255 [15:07:04]MH_SAM_APDU [15:07: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 BD 00 00 00 F4 03 04 00 99 46 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 81 02 00 35 04 06 00 66 [15:07:04]Write to MH i2c: E2 02 01 57 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 BD 00 00 00 F4 03 04 00 99 46 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 81 02 00 35 04 06 00 66 00 00 FA [15:07:04]Write i2c OK [15:07:04]MH_I2C_Read... [15:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:04]Read from MH i2c: E2 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: E2 03 00 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: E2 03 00 57 2B 00 90 00 F6 [15:07:04]RAPDU: 90 00 [15:07:04]wFMCommunicate OK [15:07:04]wFMCommunicate request_size=10 [15:07:04]MH_SAM_APDU [15:07:04]CAPDU: 80 0D 02 02 05 07 18 2F 0B 11 [15:07:04]Write to MH i2c: E2 0D 00 58 2B 80 0D 02 02 05 00 07 18 2F 0B 11 00 00 71 [15:07:04]Write i2c OK [15:07:04]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 03 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 03 00 58 2B 00 90 00 F7 [15:07:05]RAPDU: 90 00 [15:07:05]wFMCommunicate OK [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 0D 03 02 [15:07:05]Write to MH i2c: E2 08 00 59 2B 80 0D 03 02 00 00 00 00 FF [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 0B 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 0B 00 59 2B 00 E9 99 84 04 0A 83 56 F9 90 00 E6 [15:07:05]RAPDU: E9 99 84 04 0A 83 56 F9 90 00 [15:07:05]wFMCommunicate OK [15:07:05]SAM_PROTO_SignData done [15:07:05]FM_MakeSignedData done [15:07:05]CreateOFDProtocolMessage [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 11 00 00 [15:07:05]Write to MH i2c: E2 08 00 5A 2B 80 11 00 00 00 00 00 00 FF [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 17 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 17 00 5A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [15:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:07:05]wFMCommunicate OK [15:07:05]CreateOFDProtocolMessage done [15:07:05]OFDSenderStorePacket 164268 [15:07:05]StoreOFDPacket docnum=164268 [15:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F1 23 07 01 2B 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 BD 00 00 00 F4 03 04 00 99 46 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 81 02 00 35 04 06 00 66 07 18 2F 0B 11 E9 99 84 04 0A 83 56 F9 [15:07:05]CheckFolder [15:07:05]dirname=/storage/ofd_packets [15:07:05]CheckFolder done [15:07:05]ProducePacketName [15:07:05]name=ofd_packets/00164268 [15:07:05]NVStorageSaveData ofd_packets/00164268 [15:07:05]File name is /storage/ofd_packets/00164268 [15:07:05]Write 301 bytes [15:07:05]NVStorageSaveData done [15:07:05]OFDSenderStorePacket done [15:07:05]KKMCreateOFDPacket done [15:07:05]NVStorageSaveData kkm_last_timestamp [15:07:05]File name is /storage/kkm_last_timestamp [15:07:05]Write 4 bytes [15:07:05]NVStorageSaveData done [15:07:05]ExternCall_PrintAddStr [15:07:05]wPrintStart [15:07:05]Write to MH i2c: 01 00 00 5B 2B 86 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: 01 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: 01 07 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: 01 07 00 5B 2B 00 00 00 00 00 FF 0F 9B [15:07:05]RasterBufferAndPrint [15:07:05]line Счет N : (1)458351 [15:07:05]line ИНН: 02508201610067 [15:07:05]line Контрольно-Кассовый Чек [15:07:05]line ПРОДАЖА [15:07:05]line ТРК (МРК, ГНК) : 12 [15:07:05]line Товар: 2710124130 [15:07:05]line Аи-92-К-5 [15:07:05]line 3.040 * 65.80 [15:07:05]line = 200.03 [15:07:05]line НДС 12% НСП 1% [15:07:05]line > о реализуемом товаре [15:07:05]line ОКРУГЛЕНИЕ: -0.03 [15:07:05]line ИТОГО: 200.00 [15:07:05]line Внесено: 200.00 [15:07:05]line СДАЧА: 0.00 [15:07:05]line НСП 1% : 1.77 [15:07:05]line НДС 12% : 21.24 [15:07:05]line Наличными: 200.00 [15:07:05]line Безнал.: 0.00 [15:07:05]line Место: АЗС № 72 "Партнер Нефть" [15:07:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:07:05]line СНО: Общий режим [15:07:05]line Чек 189 12.07.2024 15:07 [15:07:05]line Смена: 445 ФФД: 1.0 [15:07:05]line ЗНМ: 0300000160 [15:07:05]line РНМ: 0000000000090829 [15:07:05]line Версия ККМ: 001 [15:07:05]line ФМ: 0000000000874718 [15:07:05]line ФД: 164268 [15:07:05]line ФПД: 112180656540433 [15:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T150705&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164268&fm=112180656540433&tin=02508201610067®Number=0000000000090829&sum=20000 [15:07:05]written 0, free lines is 4095 [15:07:05]OFD Sender: Processing packet 164268 [packets to send 104, broken 103] [15:07:05]ProducePacketName [15:07:05]name=ofd_packets/00164268 [15:07:05]OFD Sender: To server: pG, [15:07:05]CommunicateWithHost lk.salyk.kg:30040 [15:07:05]ConnectInit lk.salyk.kg [15:07:05]Connected sock=11 [15:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F1 23 07 01 2B 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 BD 00 00 00 F4 03 04 00 99 46 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 81 02 00 35 04 06 00 66 07 18 2F 0B 11 E9 99 84 04 0A 83 56 F9 [15:07:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 92 52 47 00 69 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 34 37 31 38 10 04 04 00 AC 81 02 00 F4 03 04 00 2D ED 90 66 B6 04 01 00 00 C9 FB 09 32 01 03 54 39 [15:07:05]CommunicateWithHost err = 0 [15:07:05]CheckOFDResponse [15:07:05]1017 (14) - 77093643461234 [15:07:05]1041 (16) - 0000000000874718 [15:07:05]1040 (4) - 164268 [15:07:05]1012 (4) - 12.07.2024 08:45 [15:07:05]1206 (1) - 0 [15:07:05]OFD Sender: Remove packet 164268 [15:07:05]ProducePacketName [15:07:05]name=ofd_packets/00164268 [15:07:05]NVStorageDeleteData [15:07:05]Write to MH i2c: 01 00 00 85 2B B0 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: 01 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: 01 07 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: 01 07 00 85 2B 00 00 00 00 00 F7 0C BA [15:07:05]RasterBufferAndPrint [15:07:05]line [15:07:05]line [15:07:05]line [15:07:05]line [15:07:05]line [15:07:05]written 0, free lines is 3326 [15:07:05]MH_Cut [15:07:05]Write to MH i2c: D1 01 00 8C 2B 01 89 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: D1 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: D1 01 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: D1 01 00 8C 2B 00 88 [15:07:05]Write to MH i2c: 01 00 00 8D 2B B8 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:06]OFD Sender: No OFD packet to send [15:07:06]*** Cut start [15:07:06]*** Partial cut [15:07:06]*** CUTSNS_PIN = 1 [15:07:06]*** CUTSNS_PIN = 0 [15:07:06]*** Brake cut motor [15:07:07]Read from MH i2c: 01 [15:07:07]MH_I2C_Read... [15:07:07]*** Stop cut motor [15:07:07]*** Cut end [15:07:07]Read from MH i2c: 01 07 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 07 00 8D 2B 00 00 00 00 00 FF 0F CD [15:07:07]process_action close_receipt done [15:07:07]requested_data is exist [15:07:07]produce_requested_data [15:07:07]requested_item fm.sn is exist - process it [15:07:07]wFMCommunicate request_size=4 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 11 00 00 [15:07:07]Write to MH i2c: E2 08 00 8E 2B 80 11 00 00 00 00 00 00 33 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 17 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 17 00 8E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [15:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:07:07]wFMCommunicate OK [15:07:07]requested_item fd.num is exist - process it [15:07:07]SAM_PROTO_GetFieldsCounters [15:07:07]wFMCommunicate request_size=4 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 13 00 00 [15:07:07]Write to MH i2c: E2 08 00 8F 2B 80 13 00 00 00 00 00 00 36 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 62 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 62 00 8F 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [15:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:07]wFMCommunicate OK [15:07:07]SAM_PROTO_GetFieldsCounters done [15:07:07]requested_item shift.num is exist - process it [15:07:07]requested_item shift.opened is exist - process it [15:07:07]req_shift_opened [15:07:07]FM_GetShiftState [15:07:07]SAM_PROTO_GetShiftState [15:07:07]wFMCommunicate request_size=4 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 13 01 00 [15:07:07]Write to MH i2c: E2 08 00 90 2B 80 13 01 00 00 00 00 00 38 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 0E 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 0E 00 90 2B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 82 [15:07:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:07:07]wFMCommunicate OK [15:07:07]SAM_PROTO_GetShiftState done [15:07:07]FM_GetShiftState done [15:07:07]req_shift_opened done [15:07:07]requested_item shift.open_date is exist - process it [15:07:07]req_shift_open_date [15:07:07]req_shift_open_date done [15:07:07]produce_requested_data done [15:07:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164268,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:07:07]process_action_free close_receipt [15:07:07]json_value_free [15:07:07]json_value_free done [15:07:07]process_json_proto returns [15:07:07]Send response to host [15:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164268,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:07:07]free response buf [15:07:07]execute_script done [15:07:07]execute_script returns [15:07:07]free content buf [15:07:07]Sock 7.Close socket [15:07:07]Sock 7.Thread stoped [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:03]accept exits with 9 [15:08:03]New connection [15:08:03]New thread 3066850660 created [15:08:03]Thread 3066707300 joined [15:08:03]Waiting for new connection... [15:08:03] Sock 9.Parse request [15:08:03]Sock 9.Check first char [15:08:03]Sock 9.First char is OK [15:08:03]request: POST /json_proto HTTP/1.0 [15:08:03]Method: POST [15:08:03]URL: /json_proto [15:08:03]Method is POST - this is cgi request [15:08:03]url: /json_proto [15:08:03]query_string will be loaded in cgi processing [15:08:03]execute_cgi json_proto POST (null) [15:08:03]execute_cgi path=json_proto method=POST [15:08:03]POST find Content-Length [15:08:03]Host: 172.17.56.4:8080 [15:08:03]Content-Length: 675 [15:08:03]Content-Type: application/json [15:08:03] [15:08:03]POST finish read [15:08:03]Found Content-Length = 675 [15:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458352", "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" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:03]execute_script... [15:08: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)458352", "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" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:03]POST & json_proto [15:08:03]process_json_proto [15:08:03]json parsed OK: [15:08:03]protocol is kg_v1.0 [15:08:03]action value=close_receipt [15:08:03]process_action close_receipt [15:08:03]cmd_close_receipt [15:08:03]MH_GetDate [15:08:03]Write to MH i2c: F0 00 00 91 2B AB [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: F0 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: F0 09 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: F0 09 00 91 2B 00 D4 46 91 66 C9 DC B2 64 80 [15:08:03]GetLastDocTimeStamp 1720796825 [15:08:03]current date 1720796884 [15:08:03]FM_GetShiftState [15:08:03]SAM_PROTO_GetShiftState [15:08:03]wFMCommunicate request_size=4 [15:08:03]MH_SAM_APDU [15:08:03]CAPDU: 80 13 01 00 [15:08:03]Write to MH i2c: E2 08 00 92 2B 80 13 01 00 00 00 00 00 3A [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:03]Read from MH i2c: E2 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 0E 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 0E 00 92 2B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 84 [15:08:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:08:03]wFMCommunicate OK [15:08:03]SAM_PROTO_GetShiftState done [15:08:03]FM_GetShiftState done [15:08:03]opened in 1720744654 [15:08:03]opened+sec_in_day 1720831054 [15:08:03]quantity*price = 80024 [15:08:03]sum+1 = 80026 [15:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 190 12.07.2024 15:08 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164269 ФПД: 272041308009390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T150804&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164269&fm=272041308009390&tin=02508201610067®Number=0000000000090829&sum=80000 [15:08:04]StoreToDocumentArchive [15:08:04]shift 445 fd 164269 [15:08:04]save to /storage/0445/doc_00164269 [15:08:04]save last doc name /storage/0445/doc_00164269 to /storage/kkm_last_doc_name [15:08:04]save OK [15:08:04]Clear old archive folders... [15:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:08:04]tlvbuf is 00A23600 [15:08:04]SAM_PROTO_ClearQueue [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 09 00 00 [15:08:04]Write to MH i2c: E2 08 00 9F 2B 80 09 00 00 00 00 00 00 3C [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 03 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 03 00 9F 2B 00 90 00 3E [15:08:04]RAPDU: 90 00 [15:08:04]wFMCommunicate OK [15:08:04]SAM_PROTO_ClearQueue done [15:08:04]KKMCreateOFDPacket [15:08:04]OFDProtocolAddRootSTLVToBuf [15:08:04]FM_MakeSignedData [15:08:04]FM_MakeSignedData [15:08:04]SAM_PROTO_SignData [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 0D 01 02 [15:08:04]Write to MH i2c: E2 08 00 A0 2B 80 0D 01 02 00 00 00 00 44 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 03 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 03 00 A0 2B 00 90 00 3F [15:08:04]RAPDU: 90 00 [15:08:04]wFMCommunicate OK [15:08:04]wFMCommunicate request_size=255 [15:08:04]MH_SAM_APDU [15:08: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 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 BE 00 00 00 F4 03 04 00 D4 46 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 81 02 00 35 04 06 00 F7 6B 8D 87 [15:08:04]Write to MH i2c: E2 02 01 A1 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 BE 00 00 00 F4 03 04 00 D4 46 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 81 02 00 35 04 06 00 F7 6B 8D 87 00 00 0E [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 03 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 03 00 A1 2B 00 90 00 40 [15:08:04]RAPDU: 90 00 [15:08:04]wFMCommunicate OK [15:08:04]wFMCommunicate request_size=7 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 0D 02 02 02 33 AE [15:08:04]Write to MH i2c: E2 0A 00 A2 2B 80 0D 02 02 02 00 33 AE 00 00 2C [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 03 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 03 00 A2 2B 00 90 00 41 [15:08:04]RAPDU: 90 00 [15:08:04]wFMCommunicate OK [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 0D 03 02 [15:08:04]Write to MH i2c: E2 08 00 A3 2B 80 0D 03 02 00 00 00 00 49 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 0B 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 0B 00 A3 2B 00 A0 0E CF 49 87 A6 D5 14 90 00 26 [15:08:04]RAPDU: A0 0E CF 49 87 A6 D5 14 90 00 [15:08:04]wFMCommunicate OK [15:08:04]SAM_PROTO_SignData done [15:08:04]FM_MakeSignedData done [15:08:04]CreateOFDProtocolMessage [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 11 00 00 [15:08:04]Write to MH i2c: E2 08 00 A4 2B 80 11 00 00 00 00 00 00 49 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 17 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 17 00 A4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [15:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:08:04]wFMCommunicate OK [15:08:04]CreateOFDProtocolMessage done [15:08:04]OFDSenderStorePacket 164269 [15:08:04]StoreOFDPacket docnum=164269 [15:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B2 A3 04 01 92 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 BE 00 00 00 F4 03 04 00 D4 46 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 81 02 00 35 04 06 00 F7 6B 8D 87 33 AE A0 0E CF 49 87 A6 D5 14 [15:08:04]CheckFolder [15:08:04]dirname=/storage/ofd_packets [15:08:04]CheckFolder done [15:08:04]ProducePacketName [15:08:04]name=ofd_packets/00164269 [15:08:04]NVStorageSaveData ofd_packets/00164269 [15:08:04]File name is /storage/ofd_packets/00164269 [15:08:04]Write 298 bytes [15:08:04]NVStorageSaveData done [15:08:04]OFDSenderStorePacket done [15:08:04]KKMCreateOFDPacket done [15:08:04]NVStorageSaveData kkm_last_timestamp [15:08:04]File name is /storage/kkm_last_timestamp [15:08:04]Write 4 bytes [15:08:04]NVStorageSaveData done [15:08:04]ExternCall_PrintAddStr [15:08:04]wPrintStart [15:08:04]Write to MH i2c: 01 00 00 A5 2B D0 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: 01 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: 01 07 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: 01 07 00 A5 2B 00 00 00 00 00 FF 0F E5 [15:08:04]RasterBufferAndPrint [15:08:04]line Счет N : (1)458352 [15:08:04]line ИНН: 02508201610067 [15:08:04]line Контрольно-Кассовый Чек [15:08:04]line ПРОДАЖА [15:08:04]line ТРК (МРК, ГНК) : 21 [15:08:04]line Товар: 2710194210 [15:08:04]line ДТ-К-5 [15:08:04]line 11.130 * 71.90 [15:08:04]line = 800.25 [15:08:04]line НДС 12% НСП 1% [15:08:04]line > о реализуемом товаре [15:08:04]line ОКРУГЛЕНИЕ: -0.25 [15:08:04]line ИТОГО: 800.00 [15:08:04]line Внесено: 800.00 [15:08:04]line СДАЧА: 0.00 [15:08:04]line НСП 1% : 7.08 [15:08:04]line НДС 12% : 84.98 [15:08:04]line Наличными: 800.00 [15:08:04]line Безнал.: 0.00 [15:08:04]line Место: АЗС № 72 "Партнер Нефть" [15:08:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:08:04]line СНО: Общий режим [15:08:04]line Чек 190 12.07.2024 15:08 [15:08:04]line Смена: 445 ФФД: 1.0 [15:08:04]line ЗНМ: 0300000160 [15:08:04]line РНМ: 0000000000090829 [15:08:04]line Версия ККМ: 001 [15:08:04]line ФМ: 0000000000874718 [15:08:04]line ФД: 164269 [15:08:04]line ФПД: 272041308009390 [15:08:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T150804&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164269&fm=272041308009390&tin=02508201610067®Number=0000000000090829&sum=80000 [15:08:05]OFD Sender: Processing packet 164269 [packets to send 104, broken 103] [15:08:05]ProducePacketName [15:08:05]name=ofd_packets/00164269 [15:08:05]OFD Sender: To server: pG, [15:08:05]CommunicateWithHost lk.salyk.kg:30040 [15:08:05]ConnectInit lk.salyk.kg [15:08:05]written 0, free lines is 4095 [15:08:05]Connected sock=10 [15:08:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B2 A3 04 01 92 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 BE 00 00 00 F4 03 04 00 D4 46 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 81 02 00 35 04 06 00 F7 6B 8D 87 33 AE A0 0E CF 49 87 A6 D5 14 [15:08:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 19 5D 47 00 70 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 34 37 31 38 10 04 04 00 AD 81 02 00 F4 03 04 00 68 ED 90 66 B6 04 01 00 00 3A CB 9F 0F C6 D5 67 AC [15:08:05]CommunicateWithHost err = 0 [15:08:05]CheckOFDResponse [15:08:05]1017 (14) - 77093643461234 [15:08:05]1041 (16) - 0000000000874718 [15:08:05]1040 (4) - 164269 [15:08:05]1012 (4) - 12.07.2024 08:46 [15:08:05]1206 (1) - 0 [15:08:05]OFD Sender: Remove packet 164269 [15:08:05]ProducePacketName [15:08:05]name=ofd_packets/00164269 [15:08:05]NVStorageDeleteData [15:08:05]Write to MH i2c: 01 00 00 CF 2B FA [15:08:05]Write i2c OK [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: 01 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: 01 07 00 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: 01 07 00 CF 2B 00 00 00 00 00 0A 0D 18 [15:08:05]RasterBufferAndPrint [15:08:05]line [15:08:05]line [15:08:05]line [15:08:05]line [15:08:05]line [15:08:05]written 0, free lines is 3344 [15:08:05]MH_Cut [15:08:05]Write to MH i2c: D1 01 00 D6 2B 01 D3 [15:08:05]Write i2c OK [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: D1 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: D1 01 00 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: D1 01 00 D6 2B 00 D2 [15:08:05]Write to MH i2c: 01 00 00 D7 2B 02 [15:08:05]Write i2c OK [15:08:05]MH_I2C_Read... [15:08:05]OFD Sender: No OFD packet to send [15:08:06]*** Cut start [15:08:06]*** Partial cut [15:08:06]*** CUTSNS_PIN = 1 [15:08:06]*** CUTSNS_PIN = 0 [15:08:06]*** Brake cut motor [15:08:06]Read from MH i2c: 01 [15:08:06]MH_I2C_Read... [15:08:06]*** Stop cut motor [15:08:06]*** Cut end [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 D7 2B 00 00 00 00 00 FF 0F 17 [15:08:06]process_action close_receipt done [15:08:06]requested_data is exist [15:08:06]produce_requested_data [15:08:06]requested_item fm.sn is exist - process it [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 D8 2B 80 11 00 00 00 00 00 00 7D [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 D8 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [15:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:08:06]wFMCommunicate OK [15:08:06]requested_item fd.num is exist - process it [15:08:06]SAM_PROTO_GetFieldsCounters [15:08:06]wFMCommunicate request_size=4 [15:08:06]MH_SAM_APDU [15:08:06]CAPDU: 80 13 00 00 [15:08:06]Write to MH i2c: E2 08 00 D9 2B 80 13 00 00 00 00 00 00 80 [15:08:06]Write i2c OK [15:08:06]MH_I2C_Read... [15:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:06]Read from MH i2c: E2 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: E2 62 00 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: E2 62 00 D9 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:06]wFMCommunicate OK [15:08:06]SAM_PROTO_GetFieldsCounters done [15:08:06]requested_item shift.num is exist - process it [15:08:06]requested_item shift.opened is exist - process it [15:08:06]req_shift_opened [15:08:06]FM_GetShiftState [15:08:06]SAM_PROTO_GetShiftState [15:08:06]wFMCommunicate request_size=4 [15:08:06]MH_SAM_APDU [15:08:06]CAPDU: 80 13 01 00 [15:08:06]Write to MH i2c: E2 08 00 DA 2B 80 13 01 00 00 00 00 00 82 [15:08:06]Write i2c OK [15:08:06]MH_I2C_Read... [15:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:07]Read from MH i2c: E2 [15:08:07]MH_I2C_Read... [15:08:07]Read from MH i2c: E2 0E 00 [15:08:07]MH_I2C_Read... [15:08:07]Read from MH i2c: E2 0E 00 DA 2B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CC [15:08:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:08:07]wFMCommunicate OK [15:08:07]SAM_PROTO_GetShiftState done [15:08:07]FM_GetShiftState done [15:08:07]req_shift_opened done [15:08:07]requested_item shift.open_date is exist - process it [15:08:07]req_shift_open_date [15:08:07]req_shift_open_date done [15:08:07]produce_requested_data done [15:08:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164269,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:08:07]process_action_free close_receipt [15:08:07]json_value_free [15:08:07]json_value_free done [15:08:07]process_json_proto returns [15:08:07]Send response to host [15:08:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164269,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:08:07]free response buf [15:08:07]execute_script done [15:08:07]execute_script returns [15:08:07]free content buf [15:08:07]Sock 9.Close socket [15:08:07]Sock 9.Thread stoped [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:32]accept exits with 7 [15:15:32]New connection [15:15:32]New thread 3066707300 created [15:15:32]Thread 3066850660 joined [15:15:32]Waiting for new connection... [15:15:32] Sock 7.Parse request [15:15:32]Sock 7.Check first char [15:15:32]Sock 7.First char is OK [15:15:32]request: POST /json_proto HTTP/1.0 [15:15:32]Method: POST [15:15:32]URL: /json_proto [15:15:32]Method is POST - this is cgi request [15:15:32]url: /json_proto [15:15:32]query_string will be loaded in cgi processing [15:15:32]execute_cgi json_proto POST (null) [15:15:32]execute_cgi path=json_proto method=POST [15:15:32]POST find Content-Length [15:15:32]Host: 172.17.56.4:8080 [15:15:32]Content-Length: 677 [15:15:32]Content-Type: application/json [15:15:32] [15:15:32]POST finish read [15:15:32]Found Content-Length = 677 [15:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.260, "sum" : 346.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 346.00, "total" : 346.00, "payments": [ { "type": 0, "sum" : 346.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:32]execute_script... [15:15: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)458353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.260, "sum" : 346.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 346.00, "total" : 346.00, "payments": [ { "type": 0, "sum" : 346.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:32]POST & json_proto [15:15:32]process_json_proto [15:15:32]json parsed OK: [15:15:32]protocol is kg_v1.0 [15:15:32]action value=close_receipt [15:15:32]process_action close_receipt [15:15:32]cmd_close_receipt [15:15:32]MH_GetDate [15:15:32]Write to MH i2c: F0 00 00 DB 2B F5 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: F0 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: F0 09 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: F0 09 00 DB 2B 00 96 48 91 66 C9 DC B2 64 8E [15:15:32]GetLastDocTimeStamp 1720796884 [15:15:32]current date 1720797334 [15:15:32]FM_GetShiftState [15:15:32]SAM_PROTO_GetShiftState [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 13 01 00 [15:15:32]Write to MH i2c: E2 08 00 DC 2B 80 13 01 00 00 00 00 00 84 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0E 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0E 00 DC 2B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CE [15:15:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:15:32]wFMCommunicate OK [15:15:32]SAM_PROTO_GetShiftState done [15:15:32]FM_GetShiftState done [15:15:32]opened in 1720744654 [15:15:32]opened+sec_in_day 1720831054 [15:15:32]quantity*price = 34610 [15:15:32]sum+1 = 34612 [15:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 346.00 Внесено: 346.00 СДАЧА: 0.00 НСП 1% : 3.06 НДС 12% : 36.75 Наличными: 346.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 191 12.07.2024 15:15 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164270 ФПД: 66604081490252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T151534&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164270&fm=66604081490252&tin=02508201610067®Number=0000000000090829&sum=34600 [15:15:33]StoreToDocumentArchive [15:15:33]shift 445 fd 164270 [15:15:33]save to /storage/0445/doc_00164270 [15:15:33]save last doc name /storage/0445/doc_00164270 to /storage/kkm_last_doc_name [15:15:33]save OK [15:15:33]Clear old archive folders... [15:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:33]tlvbuf is B6F3F850 [15:15:33]SAM_PROTO_ClearQueue [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 09 00 00 [15:15:33]Write to MH i2c: E2 08 00 E9 2B 80 09 00 00 00 00 00 00 86 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 E9 2B 00 90 00 88 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]SAM_PROTO_ClearQueue done [15:15:33]KKMCreateOFDPacket [15:15:33]OFDProtocolAddRootSTLVToBuf [15:15:33]FM_MakeSignedData [15:15:33]FM_MakeSignedData [15:15:33]SAM_PROTO_SignData [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 01 02 [15:15:33]Write to MH i2c: E2 08 00 EA 2B 80 0D 01 02 00 00 00 00 8E [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 EA 2B 00 90 00 89 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]wFMCommunicate request_size=255 [15:15:33]MH_SAM_APDU [15:15: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 8C 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 33 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0E 00 00 00 00 07 04 06 00 28 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 96 48 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 81 02 00 35 04 06 00 3C [15:15:33]Write to MH i2c: E2 02 01 EB 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 8C 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 33 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0E 00 00 00 00 07 04 06 00 28 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 96 48 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 81 02 00 35 04 06 00 3C 00 00 7E [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 EB 2B 00 90 00 8A [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]wFMCommunicate request_size=10 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 02 02 05 93 78 9E 29 4C [15:15:33]Write to MH i2c: E2 0D 00 EC 2B 80 0D 02 02 05 00 93 78 9E 29 4C 00 00 B9 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 EC 2B 00 90 00 8B [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 03 02 [15:15:33]Write to MH i2c: E2 08 00 ED 2B 80 0D 03 02 00 00 00 00 93 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 0B 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 0B 00 ED 2B 00 C8 48 D4 1E C0 FC 1B 2F 90 00 9C [15:15:33]RAPDU: C8 48 D4 1E C0 FC 1B 2F 90 00 [15:15:33]wFMCommunicate OK [15:15:33]SAM_PROTO_SignData done [15:15:33]FM_MakeSignedData done [15:15:33]CreateOFDProtocolMessage [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 11 00 00 [15:15:33]Write to MH i2c: E2 08 00 EE 2B 80 11 00 00 00 00 00 00 93 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 17 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 17 00 EE 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E9 [15:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:15:33]wFMCommunicate OK [15:15:33]CreateOFDProtocolMessage done [15:15:33]OFDSenderStorePacket 164270 [15:15:33]StoreOFDPacket docnum=164270 [15:15:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7D E4 07 01 D3 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 33 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0E 00 00 00 00 07 04 06 00 28 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 96 48 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 81 02 00 35 04 06 00 3C 93 78 9E 29 4C C8 48 D4 1E C0 FC 1B 2F [15:15:33]CheckFolder [15:15:33]dirname=/storage/ofd_packets [15:15:33]CheckFolder done [15:15:33]ProducePacketName [15:15:33]name=ofd_packets/00164270 [15:15:33]NVStorageSaveData ofd_packets/00164270 [15:15:33]File name is /storage/ofd_packets/00164270 [15:15:33]Write 301 bytes [15:15:33]NVStorageSaveData done [15:15:33]OFDSenderStorePacket done [15:15:33]KKMCreateOFDPacket done [15:15:33]NVStorageSaveData kkm_last_timestamp [15:15:33]File name is /storage/kkm_last_timestamp [15:15:33]Write 4 bytes [15:15:33]NVStorageSaveData done [15:15:33]ExternCall_PrintAddStr [15:15:33]wPrintStart [15:15:33]Write to MH i2c: 01 00 00 EF 2B 1A [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 07 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 07 00 EF 2B 00 00 00 00 00 FF 0F 2F [15:15:33]RasterBufferAndPrint [15:15:33]line Счет N : (1)458353 [15:15:33]line ИНН: 02508201610067 [15:15:33]line Контрольно-Кассовый Чек [15:15:33]line ПРОДАЖА [15:15:33]line ТРК (МРК, ГНК) : 22 [15:15:33]line Товар: 2710124130 [15:15:33]line Аи-92-К-5 [15:15:33]line 5.260 * 65.80 [15:15:33]line = 346.11 [15:15:33]line НДС 12% НСП 1% [15:15:33]line > о реализуемом товаре [15:15:33]line ОКРУГЛЕНИЕ: -0.11 [15:15:33]line ИТОГО: 346.00 [15:15:33]line Внесено: 346.00 [15:15:33]line СДАЧА: 0.00 [15:15:33]line НСП 1% : 3.06 [15:15:33]line НДС 12% : 36.75 [15:15:33]line Наличными: 346.00 [15:15:33]line Безнал.: 0.00 [15:15:33]line Место: АЗС № 72 "Партнер Нефть" [15:15:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:15:33]line СНО: Общий режим [15:15:33]line Чек 191 12.07.2024 15:15 [15:15:33]line Смена: 445 ФФД: 1.0 [15:15:33]line ЗНМ: 0300000160 [15:15:33]line РНМ: 0000000000090829 [15:15:33]line Версия ККМ: 001 [15:15:33]line ФМ: 0000000000874718 [15:15:33]line ФД: 164270 [15:15:33]line ФПД: 66604081490252 [15:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T151534&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164270&fm=66604081490252&tin=02508201610067®Number=0000000000090829&sum=34600 [15:15:33]written 0, free lines is 4095 [15:15:33]OFD Sender: Processing packet 164270 [packets to send 104, broken 103] [15:15:33]ProducePacketName [15:15:33]name=ofd_packets/00164270 [15:15:33]OFD Sender: To server: pG, [15:15:33]CommunicateWithHost lk.salyk.kg:30040 [15:15:33]ConnectInit lk.salyk.kg [15:15:34]Connected sock=10 [15:15:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7D E4 07 01 D3 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 33 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0E 00 00 00 00 07 04 06 00 28 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 96 48 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 81 02 00 35 04 06 00 3C 93 78 9E 29 4C C8 48 D4 1E C0 FC 1B 2F [15:15:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 56 4E 47 00 E4 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 81 02 00 F4 03 04 00 29 EF 90 66 B6 04 01 00 00 A7 AA 77 FE B7 D8 8B 90 [15:15:34]CommunicateWithHost err = 0 [15:15:34]CheckOFDResponse [15:15:34]1017 (14) - 77093643461234 [15:15:34]1041 (16) - 0000000000874718 [15:15:34]1040 (4) - 164270 [15:15:34]1012 (4) - 12.07.2024 08:54 [15:15:34]1206 (1) - 0 [15:15:34]OFD Sender: Remove packet 164270 [15:15:34]ProducePacketName [15:15:34]name=ofd_packets/00164270 [15:15:34]NVStorageDeleteData [15:15:34]Write to MH i2c: 01 00 00 19 2C 45 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 07 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 07 00 19 2C 00 00 00 00 00 09 0D 62 [15:15:34]RasterBufferAndPrint [15:15:34]line [15:15:34]line [15:15:34]line [15:15:34]line [15:15:34]line [15:15:34]written 0, free lines is 3343 [15:15:34]MH_Cut [15:15:34]Write to MH i2c: D1 01 00 20 2C 01 1E [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: D1 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: D1 01 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: D1 01 00 20 2C 00 1D [15:15:34]Write to MH i2c: 01 00 00 21 2C 4D [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]OFD Sender: No OFD packet to send [15:15:35]*** Cut start [15:15:35]*** Partial cut [15:15:35]*** CUTSNS_PIN = 1 [15:15:35]*** CUTSNS_PIN = 0 [15:15:35]*** Brake cut motor [15:15:35]Read from MH i2c: 01 [15:15:35]MH_I2C_Read... [15:15:35]*** Stop cut motor [15:15:35]*** Cut end [15:15:35]Read from MH i2c: 01 07 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 07 00 21 2C 00 00 00 00 00 FF 0F 62 [15:15:35]process_action close_receipt done [15:15:35]requested_data is exist [15:15:35]produce_requested_data [15:15:35]requested_item fm.sn is exist - process it [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 11 00 00 [15:15:35]Write to MH i2c: E2 08 00 22 2C 80 11 00 00 00 00 00 00 C8 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 17 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 17 00 22 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [15:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:15:35]wFMCommunicate OK [15:15:35]requested_item fd.num is exist - process it [15:15:35]SAM_PROTO_GetFieldsCounters [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 13 00 00 [15:15:35]Write to MH i2c: E2 08 00 23 2C 80 13 00 00 00 00 00 00 CB [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 62 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 62 00 23 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [15:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_GetFieldsCounters done [15:15:35]requested_item shift.num is exist - process it [15:15:35]requested_item shift.opened is exist - process it [15:15:35]req_shift_opened [15:15:35]FM_GetShiftState [15:15:35]SAM_PROTO_GetShiftState [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 13 01 00 [15:15:35]Write to MH i2c: E2 08 00 24 2C 80 13 01 00 00 00 00 00 CD [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 24 2C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 17 [15:15:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_GetShiftState done [15:15:35]FM_GetShiftState done [15:15:35]req_shift_opened done [15:15:35]requested_item shift.open_date is exist - process it [15:15:35]req_shift_open_date [15:15:35]req_shift_open_date done [15:15:35]produce_requested_data done [15:15:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164270,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:15:35]process_action_free close_receipt [15:15:35]json_value_free [15:15:35]json_value_free done [15:15:35]process_json_proto returns [15:15:35]Send response to host [15:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164270,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:15:35]free response buf [15:15:35]execute_script done [15:15:35]execute_script returns [15:15:35]free content buf [15:15:35]Sock 7.Close socket [15:15:35]Sock 7.Thread stoped [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:15]accept exits with 9 [15:18:15]New connection [15:18:15]New thread 3066850660 created [15:18:15]Thread 3066707300 joined [15:18:15]Waiting for new connection... [15:18:15] Sock 9.Parse request [15:18:15]Sock 9.Check first char [15:18:15]Sock 9.First char is OK [15:18:15]request: POST /json_proto HTTP/1.0 [15:18:15]Method: POST [15:18:15]URL: /json_proto [15:18:15]Method is POST - this is cgi request [15:18:15]url: /json_proto [15:18:15]query_string will be loaded in cgi processing [15:18:15]execute_cgi json_proto POST (null) [15:18:15]execute_cgi path=json_proto method=POST [15:18:15]POST find Content-Length [15:18:15]Host: 172.17.56.4:8080 [15:18:15]Content-Length: 677 [15:18:15]Content-Type: application/json [15:18:15] [15:18:15]POST finish read [15:18:15]Found Content-Length = 677 [15:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:18:15]execute_script... [15:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:18:15]POST & json_proto [15:18:15]process_json_proto [15:18:15]json parsed OK: [15:18:15]protocol is kg_v1.0 [15:18:15]action value=close_receipt [15:18:15]process_action close_receipt [15:18:15]cmd_close_receipt [15:18:15]MH_GetDate [15:18:15]Write to MH i2c: F0 00 00 25 2C 40 [15:18:15]Write i2c OK [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: F0 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: F0 09 00 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: F0 09 00 25 2C 00 39 49 91 66 C9 DC B2 64 7D [15:18:15]GetLastDocTimeStamp 1720797334 [15:18:15]current date 1720797497 [15:18:15]FM_GetShiftState [15:18:15]SAM_PROTO_GetShiftState [15:18:15]wFMCommunicate request_size=4 [15:18:15]MH_SAM_APDU [15:18:15]CAPDU: 80 13 01 00 [15:18:15]Write to MH i2c: E2 08 00 26 2C 80 13 01 00 00 00 00 00 CF [15:18:15]Write i2c OK [15:18:15]MH_I2C_Read... [15:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:15]Read from MH i2c: E2 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: E2 0E 00 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: E2 0E 00 26 2C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 19 [15:18:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:18:15]wFMCommunicate OK [15:18:15]SAM_PROTO_GetShiftState done [15:18:15]FM_GetShiftState done [15:18:15]opened in 1720744654 [15:18:15]opened+sec_in_day 1720831054 [15:18:15]quantity*price = 20003 [15:18:15]sum+1 = 20004 [15:18: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 192 12.07.2024 15:18 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164271 ФПД: 172722987972771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T151817&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164271&fm=172722987972771&tin=02508201610067®Number=0000000000090829&sum=20000 [15:18:16]StoreToDocumentArchive [15:18:16]shift 445 fd 164271 [15:18:16]save to /storage/0445/doc_00164271 [15:18:16]save last doc name /storage/0445/doc_00164271 to /storage/kkm_last_doc_name [15:18:16]save OK [15:18:16]Clear old archive folders... [15:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:16]tlvbuf is 00AF18C0 [15:18:16]SAM_PROTO_ClearQueue [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 09 00 00 [15:18:16]Write to MH i2c: E2 08 00 33 2C 80 09 00 00 00 00 00 00 D1 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 33 2C 00 90 00 D3 [15:18:16]RAPDU: 90 00 [15:18:16]wFMCommunicate OK [15:18:16]SAM_PROTO_ClearQueue done [15:18:16]KKMCreateOFDPacket [15:18:16]OFDProtocolAddRootSTLVToBuf [15:18:16]FM_MakeSignedData [15:18:16]FM_MakeSignedData [15:18:16]SAM_PROTO_SignData [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 0D 01 02 [15:18:16]Write to MH i2c: E2 08 00 34 2C 80 0D 01 02 00 00 00 00 D9 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 34 2C 00 90 00 D4 [15:18:16]RAPDU: 90 00 [15:18:16]wFMCommunicate OK [15:18:16]wFMCommunicate request_size=255 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C0 00 00 00 F4 03 04 00 39 49 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 81 02 00 35 04 06 00 9D [15:18:16]Write to MH i2c: E2 02 01 35 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C0 00 00 00 F4 03 04 00 39 49 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 81 02 00 35 04 06 00 9D 00 00 B9 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 35 2C 00 90 00 D5 [15:18:16]RAPDU: 90 00 [15:18:16]wFMCommunicate OK [15:18:16]wFMCommunicate request_size=10 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 0D 02 02 05 17 34 57 B8 A3 [15:18:16]Write to MH i2c: E2 0D 00 36 2C 80 0D 02 02 05 00 17 34 57 B8 A3 00 00 E3 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 36 2C 00 90 00 D6 [15:18:16]RAPDU: 90 00 [15:18:16]wFMCommunicate OK [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 0D 03 02 [15:18:16]Write to MH i2c: E2 08 00 37 2C 80 0D 03 02 00 00 00 00 DE [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 0B 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 0B 00 37 2C 00 00 5E D0 5A 78 88 64 C9 90 00 94 [15:18:16]RAPDU: 00 5E D0 5A 78 88 64 C9 90 00 [15:18:16]wFMCommunicate OK [15:18:16]SAM_PROTO_SignData done [15:18:16]FM_MakeSignedData done [15:18:16]CreateOFDProtocolMessage [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 11 00 00 [15:18:16]Write to MH i2c: E2 08 00 38 2C 80 11 00 00 00 00 00 00 DE [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 17 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 17 00 38 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [15:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:18:16]wFMCommunicate OK [15:18:16]CreateOFDProtocolMessage done [15:18:16]OFDSenderStorePacket 164271 [15:18:16]StoreOFDPacket docnum=164271 [15:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 63 4D 07 01 D5 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C0 00 00 00 F4 03 04 00 39 49 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 81 02 00 35 04 06 00 9D 17 34 57 B8 A3 00 5E D0 5A 78 88 64 C9 [15:18:16]CheckFolder [15:18:16]dirname=/storage/ofd_packets [15:18:16]CheckFolder done [15:18:16]ProducePacketName [15:18:16]name=ofd_packets/00164271 [15:18:16]NVStorageSaveData ofd_packets/00164271 [15:18:16]File name is /storage/ofd_packets/00164271 [15:18:16]Write 301 bytes [15:18:16]NVStorageSaveData done [15:18:16]OFDSenderStorePacket done [15:18:16]KKMCreateOFDPacket done [15:18:16]NVStorageSaveData kkm_last_timestamp [15:18:16]File name is /storage/kkm_last_timestamp [15:18:16]Write 4 bytes [15:18:16]NVStorageSaveData done [15:18:16]ExternCall_PrintAddStr [15:18:16]wPrintStart [15:18:16]Write to MH i2c: 01 00 00 39 2C 65 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: 01 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: 01 07 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: 01 07 00 39 2C 00 00 00 00 00 FF 0F 7A [15:18:16]RasterBufferAndPrint [15:18:16]line Счет N : (1)458354 [15:18:16]line ИНН: 02508201610067 [15:18:16]line Контрольно-Кассовый Чек [15:18:16]line ПРОДАЖА [15:18:16]line ТРК (МРК, ГНК) : 22 [15:18:16]line Товар: 2710124130 [15:18:16]line Аи-92-К-5 [15:18:16]line 3.040 * 65.80 [15:18:16]line = 200.03 [15:18:16]line НДС 12% НСП 1% [15:18:16]line > о реализуемом товаре [15:18:16]line ОКРУГЛЕНИЕ: -0.03 [15:18:16]line ИТОГО: 200.00 [15:18:16]line Внесено: 200.00 [15:18:16]line СДАЧА: 0.00 [15:18:16]line НСП 1% : 1.77 [15:18:16]line НДС 12% : 21.24 [15:18:16]line Наличными: 200.00 [15:18:16]line Безнал.: 0.00 [15:18:16]line Место: АЗС № 72 "Партнер Нефть" [15:18:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:18:16]line СНО: Общий режим [15:18:16]line Чек 192 12.07.2024 15:18 [15:18:16]line Смена: 445 ФФД: 1.0 [15:18:16]line ЗНМ: 0300000160 [15:18:16]line РНМ: 0000000000090829 [15:18:16]line Версия ККМ: 001 [15:18:16]line ФМ: 0000000000874718 [15:18:16]line ФД: 164271 [15:18:16]line ФПД: 172722987972771 [15:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T151817&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164271&fm=172722987972771&tin=02508201610067®Number=0000000000090829&sum=20000 [15:18:16]written 0, free lines is 4095 [15:18:16]OFD Sender: Processing packet 164271 [packets to send 104, broken 103] [15:18:16]ProducePacketName [15:18:16]name=ofd_packets/00164271 [15:18:16]OFD Sender: To server: pG, [15:18:16]CommunicateWithHost lk.salyk.kg:30040 [15:18:16]ConnectInit lk.salyk.kg [15:18:16]Connected sock=10 [15:18:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 63 4D 07 01 D5 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C0 00 00 00 F4 03 04 00 39 49 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 81 02 00 35 04 06 00 9D 17 34 57 B8 A3 00 5E D0 5A 78 88 64 C9 [15:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D4 A3 47 00 DF 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 34 37 31 38 10 04 04 00 AF 81 02 00 F4 03 04 00 CC EF 90 66 B6 04 01 00 00 B5 FB 3F A5 D0 1A 1E B4 [15:18:17]CommunicateWithHost err = 0 [15:18:17]CheckOFDResponse [15:18:17]1017 (14) - 77093643461234 [15:18:17]1041 (16) - 0000000000874718 [15:18:17]1040 (4) - 164271 [15:18:17]1012 (4) - 12.07.2024 08:56 [15:18:17]1206 (1) - 0 [15:18:17]OFD Sender: Remove packet 164271 [15:18:17]ProducePacketName [15:18:17]name=ofd_packets/00164271 [15:18:17]NVStorageDeleteData [15:18:17]Write to MH i2c: 01 00 00 63 2C 8F [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 63 2C 00 00 00 00 00 02 0D A5 [15:18:17]RasterBufferAndPrint [15:18:17]line [15:18:17]line [15:18:17]line [15:18:17]line [15:18:17]line [15:18:17]written 0, free lines is 3336 [15:18:17]MH_Cut [15:18:17]Write to MH i2c: D1 01 00 6A 2C 01 68 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: D1 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: D1 01 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: D1 01 00 6A 2C 00 67 [15:18:17]Write to MH i2c: 01 00 00 6B 2C 97 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]OFD Sender: No OFD packet to send [15:18:17]*** Cut start [15:18:17]*** Partial cut [15:18:17]*** CUTSNS_PIN = 1 [15:18:18]*** CUTSNS_PIN = 0 [15:18:18]*** Brake cut motor [15:18:18]Read from MH i2c: 01 [15:18:18]MH_I2C_Read... [15:18:18]*** Stop cut motor [15:18:18]*** Cut end [15:18:18]Read from MH i2c: 01 07 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: 01 07 00 6B 2C 00 00 00 00 00 FF 0F AC [15:18:18]process_action close_receipt done [15:18:18]requested_data is exist [15:18:18]produce_requested_data [15:18:18]requested_item fm.sn is exist - process it [15:18:18]wFMCommunicate request_size=4 [15:18:18]MH_SAM_APDU [15:18:18]CAPDU: 80 11 00 00 [15:18:18]Write to MH i2c: E2 08 00 6C 2C 80 11 00 00 00 00 00 00 12 [15:18:18]Write i2c OK [15:18:18]MH_I2C_Read... [15:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:18]Read from MH i2c: E2 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 17 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 17 00 6C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [15:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:18:18]wFMCommunicate OK [15:18:18]requested_item fd.num is exist - process it [15:18:18]SAM_PROTO_GetFieldsCounters [15:18:18]wFMCommunicate request_size=4 [15:18:18]MH_SAM_APDU [15:18:18]CAPDU: 80 13 00 00 [15:18:18]Write to MH i2c: E2 08 00 6D 2C 80 13 00 00 00 00 00 00 15 [15:18:18]Write i2c OK [15:18:18]MH_I2C_Read... [15:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:18]Read from MH i2c: E2 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 62 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 62 00 6D 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [15:18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:18]wFMCommunicate OK [15:18:18]SAM_PROTO_GetFieldsCounters done [15:18:18]requested_item shift.num is exist - process it [15:18:18]requested_item shift.opened is exist - process it [15:18:18]req_shift_opened [15:18:18]FM_GetShiftState [15:18:18]SAM_PROTO_GetShiftState [15:18:18]wFMCommunicate request_size=4 [15:18:18]MH_SAM_APDU [15:18:18]CAPDU: 80 13 01 00 [15:18:18]Write to MH i2c: E2 08 00 6E 2C 80 13 01 00 00 00 00 00 17 [15:18:18]Write i2c OK [15:18:18]MH_I2C_Read... [15:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:18]Read from MH i2c: E2 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 0E 00 [15:18:18]MH_I2C_Read... [15:18:18]Read from MH i2c: E2 0E 00 6E 2C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 61 [15:18:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:18:18]wFMCommunicate OK [15:18:18]SAM_PROTO_GetShiftState done [15:18:18]FM_GetShiftState done [15:18:18]req_shift_opened done [15:18:18]requested_item shift.open_date is exist - process it [15:18:18]req_shift_open_date [15:18:18]req_shift_open_date done [15:18:18]produce_requested_data done [15:18:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164271,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:18:18]process_action_free close_receipt [15:18:18]json_value_free [15:18:18]json_value_free done [15:18:18]process_json_proto returns [15:18:18]Send response to host [15:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164271,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:18:18]free response buf [15:18:18]execute_script done [15:18:18]execute_script returns [15:18:18]free content buf [15:18:18]Sock 9.Close socket [15:18:18]Sock 9.Thread stoped [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:11]accept exits with 7 [15:22:11]New connection [15:22:11]New thread 3066707300 created [15:22:11]Thread 3066850660 joined [15:22:11]Waiting for new connection... [15:22:11] Sock 7.Parse request [15:22:11]Sock 7.Check first char [15:22:11]Sock 7.First char is OK [15:22:11]request: POST /json_proto HTTP/1.0 [15:22:11]Method: POST [15:22:11]URL: /json_proto [15:22:11]Method is POST - this is cgi request [15:22:11]url: /json_proto [15:22:11]query_string will be loaded in cgi processing [15:22:11]execute_cgi json_proto POST (null) [15:22:11]execute_cgi path=json_proto method=POST [15:22:11]POST find Content-Length [15:22:11]Host: 172.17.56.4:8080 [15:22:11]Content-Length: 674 [15:22:11]Content-Type: application/json [15:22:11] [15:22:11]POST finish read [15:22:11]Found Content-Length = 674 [15:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:11]execute_script... [15:22: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)458355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:11]POST & json_proto [15:22:11]process_json_proto [15:22:11]json parsed OK: [15:22:11]protocol is kg_v1.0 [15:22:11]action value=close_receipt [15:22:11]process_action close_receipt [15:22:11]cmd_close_receipt [15:22:11]MH_GetDate [15:22:11]Write to MH i2c: F0 00 00 6F 2C 8A [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: F0 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: F0 09 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: F0 09 00 6F 2C 00 25 4A 91 66 C9 DC B2 64 B4 [15:22:11]GetLastDocTimeStamp 1720797497 [15:22:11]current date 1720797733 [15:22:11]FM_GetShiftState [15:22:11]SAM_PROTO_GetShiftState [15:22:11]wFMCommunicate request_size=4 [15:22:11]MH_SAM_APDU [15:22:11]CAPDU: 80 13 01 00 [15:22:11]Write to MH i2c: E2 08 00 70 2C 80 13 01 00 00 00 00 00 19 [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:11]Read from MH i2c: E2 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 0E 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 0E 00 70 2C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 63 [15:22:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:22:11]wFMCommunicate OK [15:22:11]SAM_PROTO_GetShiftState done [15:22:11]FM_GetShiftState done [15:22:11]opened in 1720744654 [15:22:11]opened+sec_in_day 1720831054 [15:22:11]quantity*price = 30054 [15:22:11]sum+1 = 30055 [15:22:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 193 12.07.2024 15:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164272 ФПД: 161724316676154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T152213&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164272&fm=161724316676154&tin=02508201610067®Number=0000000000090829&sum=30000 [15:22:12]StoreToDocumentArchive [15:22:12]shift 445 fd 164272 [15:22:12]save to /storage/0445/doc_00164272 [15:22:12]save last doc name /storage/0445/doc_00164272 to /storage/kkm_last_doc_name [15:22:12]save OK [15:22:12]Clear old archive folders... [15:22:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:12]tlvbuf is 00A68E80 [15:22:12]SAM_PROTO_ClearQueue [15:22:12]wFMCommunicate request_size=4 [15:22:12]MH_SAM_APDU [15:22:12]CAPDU: 80 09 00 00 [15:22:12]Write to MH i2c: E2 08 00 7D 2C 80 09 00 00 00 00 00 00 1B [15:22:12]Write i2c OK [15:22:12]MH_I2C_Read... [15:22:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:12]Read from MH i2c: E2 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 03 00 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 03 00 7D 2C 00 90 00 1D [15:22:12]RAPDU: 90 00 [15:22:12]wFMCommunicate OK [15:22:12]SAM_PROTO_ClearQueue done [15:22:12]KKMCreateOFDPacket [15:22:12]OFDProtocolAddRootSTLVToBuf [15:22:12]FM_MakeSignedData [15:22:12]FM_MakeSignedData [15:22:12]SAM_PROTO_SignData [15:22:12]wFMCommunicate request_size=4 [15:22:12]MH_SAM_APDU [15:22:12]CAPDU: 80 0D 01 02 [15:22:12]Write to MH i2c: E2 08 00 7E 2C 80 0D 01 02 00 00 00 00 23 [15:22:12]Write i2c OK [15:22:12]MH_I2C_Read... [15:22:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:12]Read from MH i2c: E2 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 03 00 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 03 00 7E 2C 00 90 00 1E [15:22:12]RAPDU: 90 00 [15:22:12]wFMCommunicate OK [15:22:12]wFMCommunicate request_size=255 [15:22:12]MH_SAM_APDU [15:22: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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 25 4A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 81 02 00 35 04 06 00 93 16 60 72 [15:22:12]Write to MH i2c: E2 02 01 7F 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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 25 4A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 81 02 00 35 04 06 00 93 16 60 72 00 00 63 [15:22:12]Write i2c OK [15:22:12]MH_I2C_Read... [15:22:13]OFD Sender: No OFD packet to send [15:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:13]Read from MH i2c: E2 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 03 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 03 00 7F 2C 00 90 00 1F [15:22:13]RAPDU: 90 00 [15:22:13]wFMCommunicate OK [15:22:13]wFMCommunicate request_size=7 [15:22:13]MH_SAM_APDU [15:22:13]CAPDU: 80 0D 02 02 02 70 3A [15:22:13]Write to MH i2c: E2 0A 00 80 2C 80 0D 02 02 02 00 70 3A 00 00 D4 [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:13]Read from MH i2c: E2 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 03 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 03 00 80 2C 00 90 00 20 [15:22:13]RAPDU: 90 00 [15:22:13]wFMCommunicate OK [15:22:13]wFMCommunicate request_size=4 [15:22:13]MH_SAM_APDU [15:22:13]CAPDU: 80 0D 03 02 [15:22:13]Write to MH i2c: E2 08 00 81 2C 80 0D 03 02 00 00 00 00 28 [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:13]Read from MH i2c: E2 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 0B 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 0B 00 81 2C 00 1A C8 EC A5 A6 A8 40 40 90 00 6A [15:22:13]RAPDU: 1A C8 EC A5 A6 A8 40 40 90 00 [15:22:13]wFMCommunicate OK [15:22:13]SAM_PROTO_SignData done [15:22:13]FM_MakeSignedData done [15:22:13]CreateOFDProtocolMessage [15:22:13]wFMCommunicate request_size=4 [15:22:13]MH_SAM_APDU [15:22:13]CAPDU: 80 11 00 00 [15:22:13]Write to MH i2c: E2 08 00 82 2C 80 11 00 00 00 00 00 00 28 [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:13]Read from MH i2c: E2 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 17 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 17 00 82 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [15:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:22:13]wFMCommunicate OK [15:22:13]CreateOFDProtocolMessage done [15:22:13]OFDSenderStorePacket 164272 [15:22:13]StoreOFDPacket docnum=164272 [15:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3C 41 04 01 43 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 25 4A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 81 02 00 35 04 06 00 93 16 60 72 70 3A 1A C8 EC A5 A6 A8 40 40 [15:22:13]CheckFolder [15:22:13]dirname=/storage/ofd_packets [15:22:13]CheckFolder done [15:22:13]ProducePacketName [15:22:13]name=ofd_packets/00164272 [15:22:13]NVStorageSaveData ofd_packets/00164272 [15:22:13]File name is /storage/ofd_packets/00164272 [15:22:13]Write 298 bytes [15:22:13]NVStorageSaveData done [15:22:13]OFDSenderStorePacket done [15:22:13]KKMCreateOFDPacket done [15:22:13]NVStorageSaveData kkm_last_timestamp [15:22:13]File name is /storage/kkm_last_timestamp [15:22:13]Write 4 bytes [15:22:13]NVStorageSaveData done [15:22:13]ExternCall_PrintAddStr [15:22:13]wPrintStart [15:22:13]Write to MH i2c: 01 00 00 83 2C AF [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: 01 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: 01 07 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: 01 07 00 83 2C 00 00 00 00 00 FF 0F C4 [15:22:13]RasterBufferAndPrint [15:22:13]line Счет N : (1)458355 [15:22:13]line ИНН: 02508201610067 [15:22:13]line Контрольно-Кассовый Чек [15:22:13]line ПРОДАЖА [15:22:13]line ТРК (МРК, ГНК) : 11 [15:22:13]line Товар: 2710194210 [15:22:13]line ДТ-К-5 [15:22:13]line 4.180 * 71.90 [15:22:13]line = 300.54 [15:22:13]line НДС 12% НСП 1% [15:22:13]line > о реализуемом товаре [15:22:13]line ОКРУГЛЕНИЕ: -0.54 [15:22:13]line ИТОГО: 300.00 [15:22:13]line Внесено: 300.00 [15:22:13]line СДАЧА: 0.00 [15:22:13]line НСП 1% : 2.66 [15:22:13]line НДС 12% : 31.92 [15:22:13]line Наличными: 300.00 [15:22:13]line Безнал.: 0.00 [15:22:13]line Место: АЗС № 72 "Партнер Нефть" [15:22:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:22:13]line СНО: Общий режим [15:22:13]line Чек 193 12.07.2024 15:22 [15:22:13]line Смена: 445 ФФД: 1.0 [15:22:13]line ЗНМ: 0300000160 [15:22:13]line РНМ: 0000000000090829 [15:22:13]line Версия ККМ: 001 [15:22:13]line ФМ: 0000000000874718 [15:22:13]line ФД: 164272 [15:22:13]line ФПД: 161724316676154 [15:22:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T152213&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164272&fm=161724316676154&tin=02508201610067®Number=0000000000090829&sum=30000 [15:22:13]OFD Sender: Processing packet 164272 [packets to send 104, broken 103] [15:22:13]ProducePacketName [15:22:13]name=ofd_packets/00164272 [15:22:13]OFD Sender: To server: pG, [15:22:13]CommunicateWithHost lk.salyk.kg:30040 [15:22:13]ConnectInit lk.salyk.kg [15:22:13]written 0, free lines is 4095 [15:22:13]Connected sock=9 [15:22:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3C 41 04 01 43 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 25 4A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 81 02 00 35 04 06 00 93 16 60 72 70 3A 1A C8 EC A5 A6 A8 40 40 [15:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5F 84 47 00 9C 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 34 37 31 38 10 04 04 00 B0 81 02 00 F4 03 04 00 B9 F0 90 66 B6 04 01 00 00 2F 81 46 67 A6 9F F4 BD [15:22:13]CommunicateWithHost err = 0 [15:22:13]CheckOFDResponse [15:22:13]1017 (14) - 77093643461234 [15:22:13]1041 (16) - 0000000000874718 [15:22:13]1040 (4) - 164272 [15:22:13]1012 (4) - 12.07.2024 09:00 [15:22:13]1206 (1) - 0 [15:22:13]OFD Sender: Remove packet 164272 [15:22:13]ProducePacketName [15:22:13]name=ofd_packets/00164272 [15:22:13]NVStorageDeleteData [15:22:14]Write to MH i2c: 01 00 00 AD 2C D9 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: 01 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: 01 07 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: 01 07 00 AD 2C 00 00 00 00 00 F2 0C DE [15:22:14]RasterBufferAndPrint [15:22:14]line [15:22:14]line [15:22:14]line [15:22:14]line [15:22:14]line [15:22:14]written 0, free lines is 3320 [15:22:14]MH_Cut [15:22:14]Write to MH i2c: D1 01 00 B4 2C 01 B2 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: D1 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: D1 01 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: D1 01 00 B4 2C 00 B1 [15:22:14]Write to MH i2c: 01 00 00 B5 2C E1 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]OFD Sender: No OFD packet to send [15:22:14]*** Cut start [15:22:14]*** Partial cut [15:22:14]*** CUTSNS_PIN = 1 [15:22:14]*** CUTSNS_PIN = 0 [15:22:14]*** Brake cut motor [15:22:15]Read from MH i2c: 01 [15:22:15]MH_I2C_Read... [15:22:15]*** Stop cut motor [15:22:15]*** Cut end [15:22:15]Read from MH i2c: 01 07 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 07 00 B5 2C 00 00 00 00 00 FF 0F F6 [15:22:15]process_action close_receipt done [15:22:15]requested_data is exist [15:22:15]produce_requested_data [15:22:15]requested_item fm.sn is exist - process it [15:22:15]wFMCommunicate request_size=4 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 11 00 00 [15:22:15]Write to MH i2c: E2 08 00 B6 2C 80 11 00 00 00 00 00 00 5C [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 17 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 17 00 B6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [15:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:22:15]wFMCommunicate OK [15:22:15]requested_item fd.num is exist - process it [15:22:15]SAM_PROTO_GetFieldsCounters [15:22:15]wFMCommunicate request_size=4 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 13 00 00 [15:22:15]Write to MH i2c: E2 08 00 B7 2C 80 13 00 00 00 00 00 00 5F [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 62 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 62 00 B7 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [15:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:15]wFMCommunicate OK [15:22:15]SAM_PROTO_GetFieldsCounters done [15:22:15]requested_item shift.num is exist - process it [15:22:15]requested_item shift.opened is exist - process it [15:22:15]req_shift_opened [15:22:15]FM_GetShiftState [15:22:15]SAM_PROTO_GetShiftState [15:22:15]wFMCommunicate request_size=4 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 13 01 00 [15:22:15]Write to MH i2c: E2 08 00 B8 2C 80 13 01 00 00 00 00 00 61 [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 0E 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 0E 00 B8 2C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AB [15:22:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:22:15]wFMCommunicate OK [15:22:15]SAM_PROTO_GetShiftState done [15:22:15]FM_GetShiftState done [15:22:15]req_shift_opened done [15:22:15]requested_item shift.open_date is exist - process it [15:22:15]req_shift_open_date [15:22:15]req_shift_open_date done [15:22:15]produce_requested_data done [15:22:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164272,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:22:15]process_action_free close_receipt [15:22:15]json_value_free [15:22:15]json_value_free done [15:22:15]process_json_proto returns [15:22:15]Send response to host [15:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164272,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:22:15]free response buf [15:22:15]execute_script done [15:22:15]execute_script returns [15:22:15]free content buf [15:22:15]Sock 7.Close socket [15:22:15]Sock 7.Thread stoped [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:55]accept exits with 10 [15:24:55]New connection [15:24:55]New thread 3066850660 created [15:24:55]Thread 3066707300 joined [15:24:55]Waiting for new connection... [15:24:55] Sock 10.Parse request [15:24:55]Sock 10.Check first char [15:24:55]Sock 10.First char is OK [15:24:55]request: POST /json_proto HTTP/1.0 [15:24:55]Method: POST [15:24:55]URL: /json_proto [15:24:55]Method is POST - this is cgi request [15:24:55]url: /json_proto [15:24:55]query_string will be loaded in cgi processing [15:24:55]execute_cgi json_proto POST (null) [15:24:55]execute_cgi path=json_proto method=POST [15:24:55]POST find Content-Length [15:24:55]Host: 172.17.56.4:8080 [15:24:55]Content-Length: 677 [15:24:55]Content-Type: application/json [15:24:55] [15:24:55]POST finish read [15:24:55]Found Content-Length = 677 [15:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:55]execute_script... [15:24: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)458356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:55]POST & json_proto [15:24:55]process_json_proto [15:24:55]json parsed OK: [15:24:55]protocol is kg_v1.0 [15:24:55]action value=close_receipt [15:24:55]process_action close_receipt [15:24:55]cmd_close_receipt [15:24:55]MH_GetDate [15:24:55]Write to MH i2c: F0 00 00 B9 2C D4 [15:24:55]Write i2c OK [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: F0 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: F0 09 00 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: F0 09 00 B9 2C 00 C9 4A 91 66 C9 DC B2 64 A2 [15:24:55]GetLastDocTimeStamp 1720797733 [15:24:55]current date 1720797897 [15:24:55]FM_GetShiftState [15:24:55]SAM_PROTO_GetShiftState [15:24:55]wFMCommunicate request_size=4 [15:24:55]MH_SAM_APDU [15:24:55]CAPDU: 80 13 01 00 [15:24:55]Write to MH i2c: E2 08 00 BA 2C 80 13 01 00 00 00 00 00 63 [15:24:55]Write i2c OK [15:24:55]MH_I2C_Read... [15:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:55]Read from MH i2c: E2 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 0E 00 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 0E 00 BA 2C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AD [15:24:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:24:55]wFMCommunicate OK [15:24:55]SAM_PROTO_GetShiftState done [15:24:55]FM_GetShiftState done [15:24:55]opened in 1720744654 [15:24:55]opened+sec_in_day 1720831054 [15:24:55]quantity*price = 30004 [15:24:55]sum+1 = 30006 [15:24:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 194 12.07.2024 15:24 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164273 ФПД: 231813588054108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T152457&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164273&fm=231813588054108&tin=02508201610067®Number=0000000000090829&sum=30000 [15:24:56]StoreToDocumentArchive [15:24:56]shift 445 fd 164273 [15:24:56]save to /storage/0445/doc_00164273 [15:24:56]save last doc name /storage/0445/doc_00164273 to /storage/kkm_last_doc_name [15:24:56]save OK [15:24:56]Clear old archive folders... [15:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:56]tlvbuf is 00A68B90 [15:24:56]SAM_PROTO_ClearQueue [15:24:56]wFMCommunicate request_size=4 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 09 00 00 [15:24:56]Write to MH i2c: E2 08 00 C7 2C 80 09 00 00 00 00 00 00 65 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 C7 2C 00 90 00 67 [15:24:56]RAPDU: 90 00 [15:24:56]wFMCommunicate OK [15:24:56]SAM_PROTO_ClearQueue done [15:24:56]KKMCreateOFDPacket [15:24:56]OFDProtocolAddRootSTLVToBuf [15:24:56]FM_MakeSignedData [15:24:56]FM_MakeSignedData [15:24:56]SAM_PROTO_SignData [15:24:56]wFMCommunicate request_size=4 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 0D 01 02 [15:24:56]Write to MH i2c: E2 08 00 C8 2C 80 0D 01 02 00 00 00 00 6D [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 C8 2C 00 90 00 68 [15:24:56]RAPDU: 90 00 [15:24:56]wFMCommunicate OK [15:24:56]wFMCommunicate request_size=255 [15:24:56]MH_SAM_APDU [15:24: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 C9 4A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 81 02 00 35 04 06 00 D2 [15:24:56]Write to MH i2c: E2 02 01 C9 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 C9 4A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 81 02 00 35 04 06 00 D2 00 00 37 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 C9 2C 00 90 00 69 [15:24:56]RAPDU: 90 00 [15:24:56]wFMCommunicate OK [15:24:56]wFMCommunicate request_size=10 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 0D 02 02 05 D5 4E 91 F0 5C [15:24:56]Write to MH i2c: E2 0D 00 CA 2C 80 0D 02 02 05 00 D5 4E 91 F0 5C 00 00 7A [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 CA 2C 00 90 00 6A [15:24:56]RAPDU: 90 00 [15:24:56]wFMCommunicate OK [15:24:56]wFMCommunicate request_size=4 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 0D 03 02 [15:24:56]Write to MH i2c: E2 08 00 CB 2C 80 0D 03 02 00 00 00 00 72 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 0B 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 0B 00 CB 2C 00 5E B2 99 17 A8 55 77 D0 90 00 77 [15:24:56]RAPDU: 5E B2 99 17 A8 55 77 D0 90 00 [15:24:56]wFMCommunicate OK [15:24:56]SAM_PROTO_SignData done [15:24:56]FM_MakeSignedData done [15:24:56]CreateOFDProtocolMessage [15:24:56]wFMCommunicate request_size=4 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 11 00 00 [15:24:56]Write to MH i2c: E2 08 00 CC 2C 80 11 00 00 00 00 00 00 72 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 17 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 17 00 CC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [15:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:24:56]wFMCommunicate OK [15:24:56]CreateOFDProtocolMessage done [15:24:56]OFDSenderStorePacket 164273 [15:24:56]StoreOFDPacket docnum=164273 [15:24:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 CA 07 01 CB 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 C9 4A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 81 02 00 35 04 06 00 D2 D5 4E 91 F0 5C 5E B2 99 17 A8 55 77 D0 [15:24:56]CheckFolder [15:24:56]dirname=/storage/ofd_packets [15:24:56]CheckFolder done [15:24:56]ProducePacketName [15:24:56]name=ofd_packets/00164273 [15:24:56]NVStorageSaveData ofd_packets/00164273 [15:24:56]File name is /storage/ofd_packets/00164273 [15:24:56]Write 301 bytes [15:24:56]NVStorageSaveData done [15:24:56]OFDSenderStorePacket done [15:24:56]KKMCreateOFDPacket done [15:24:56]NVStorageSaveData kkm_last_timestamp [15:24:56]File name is /storage/kkm_last_timestamp [15:24:56]Write 4 bytes [15:24:56]NVStorageSaveData done [15:24:56]ExternCall_PrintAddStr [15:24:56]wPrintStart [15:24:56]Write to MH i2c: 01 00 00 CD 2C F9 [15:24:56]OFD Sender: Processing packet 164273 [packets to send 104, broken 103] [15:24:56]ProducePacketName [15:24:56]name=ofd_packets/00164273 [15:24:56]OFD Sender: To server: pG, [15:24:56]CommunicateWithHost lk.salyk.kg:30040 [15:24:56]ConnectInit lk.salyk.kg [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: 01 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: 01 07 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: 01 07 00 CD 2C 00 00 00 00 00 FF 0F 0E [15:24:56]RasterBufferAndPrint [15:24:56]line Счет N : (1)458356 [15:24:56]line ИНН: 02508201610067 [15:24:56]line Контрольно-Кассовый Чек [15:24:56]line ПРОДАЖА [15:24:56]line ТРК (МРК, ГНК) : 22 [15:24:56]line Товар: 2710124130 [15:24:56]line Аи-92-К-5 [15:24:56]line 4.560 * 65.80 [15:24:56]line = 300.05 [15:24:56]line НДС 12% НСП 1% [15:24:56]line > о реализуемом товаре [15:24:56]line ОКРУГЛЕНИЕ: -0.05 [15:24:56]line ИТОГО: 300.00 [15:24:56]line Внесено: 300.00 [15:24:56]line СДАЧА: 0.00 [15:24:56]line НСП 1% : 2.65 [15:24:56]line НДС 12% : 31.86 [15:24:56]line Наличными: 300.00 [15:24:56]line Безнал.: 0.00 [15:24:56]line Место: АЗС № 72 "Партнер Нефть" [15:24:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:24:56]line СНО: Общий режим [15:24:56]line Чек 194 12.07.2024 15:24 [15:24:56]line Смена: 445 ФФД: 1.0 [15:24:56]line ЗНМ: 0300000160 [15:24:56]line РНМ: 0000000000090829 [15:24:56]line Версия ККМ: 001 [15:24:56]line ФМ: 0000000000874718 [15:24:56]line ФД: 164273 [15:24:56]line ФПД: 231813588054108 [15:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T152457&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164273&fm=231813588054108&tin=02508201610067®Number=0000000000090829&sum=30000 [15:24:57]Connected sock=7 [15:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 CA 07 01 CB 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 C9 4A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 81 02 00 35 04 06 00 D2 D5 4E 91 F0 5C 5E B2 99 17 A8 55 77 D0 [15:24:57]written 0, free lines is 4095 [15:24:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 78 D4 47 00 89 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 34 37 31 38 10 04 04 00 B1 81 02 00 F4 03 04 00 5D F1 90 66 B6 04 01 00 00 01 7B D2 81 39 00 21 58 [15:24:57]CommunicateWithHost err = 0 [15:24:57]CheckOFDResponse [15:24:57]1017 (14) - 77093643461234 [15:24:57]1041 (16) - 0000000000874718 [15:24:57]1040 (4) - 164273 [15:24:57]1012 (4) - 12.07.2024 09:03 [15:24:57]1206 (1) - 0 [15:24:57]OFD Sender: Remove packet 164273 [15:24:57]ProducePacketName [15:24:57]name=ofd_packets/00164273 [15:24:57]NVStorageDeleteData [15:24:57]Write to MH i2c: 01 00 00 F7 2C 23 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: 01 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: 01 07 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: 01 07 00 F7 2C 00 00 00 00 00 FD 0C 33 [15:24:57]RasterBufferAndPrint [15:24:57]line [15:24:57]line [15:24:57]line [15:24:57]line [15:24:57]line [15:24:57]written 0, free lines is 3331 [15:24:57]MH_Cut [15:24:57]Write to MH i2c: D1 01 00 FE 2C 01 FC [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: D1 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: D1 01 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: D1 01 00 FE 2C 00 FB [15:24:57]Write to MH i2c: 01 00 00 FF 2C 2B [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]OFD Sender: No OFD packet to send [15:24:58]*** Cut start [15:24:58]*** Partial cut [15:24:58]*** CUTSNS_PIN = 1 [15:24:58]*** CUTSNS_PIN = 0 [15:24:58]*** Brake cut motor [15:24:58]Read from MH i2c: 01 [15:24:58]MH_I2C_Read... [15:24:58]*** Stop cut motor [15:24:58]*** Cut end [15:24:58]Read from MH i2c: 01 07 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 FF 2C 00 00 00 00 00 FF 0F 40 [15:24:58]process_action close_receipt done [15:24:58]requested_data is exist [15:24:58]produce_requested_data [15:24:58]requested_item fm.sn is exist - process it [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 11 00 00 [15:24:58]Write to MH i2c: E2 08 00 00 2D 80 11 00 00 00 00 00 00 A7 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 17 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 17 00 00 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [15:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:24:59]wFMCommunicate OK [15:24:59]requested_item fd.num is exist - process it [15:24:59]SAM_PROTO_GetFieldsCounters [15:24:59]wFMCommunicate request_size=4 [15:24:59]MH_SAM_APDU [15:24:59]CAPDU: 80 13 00 00 [15:24:59]Write to MH i2c: E2 08 00 01 2D 80 13 00 00 00 00 00 00 AA [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 62 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 62 00 01 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [15:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:59]wFMCommunicate OK [15:24:59]SAM_PROTO_GetFieldsCounters done [15:24:59]requested_item shift.num is exist - process it [15:24:59]requested_item shift.opened is exist - process it [15:24:59]req_shift_opened [15:24:59]FM_GetShiftState [15:24:59]SAM_PROTO_GetShiftState [15:24:59]wFMCommunicate request_size=4 [15:24:59]MH_SAM_APDU [15:24:59]CAPDU: 80 13 01 00 [15:24:59]Write to MH i2c: E2 08 00 02 2D 80 13 01 00 00 00 00 00 AC [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 0E 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 0E 00 02 2D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F6 [15:24:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:24:59]wFMCommunicate OK [15:24:59]SAM_PROTO_GetShiftState done [15:24:59]FM_GetShiftState done [15:24:59]req_shift_opened done [15:24:59]requested_item shift.open_date is exist - process it [15:24:59]req_shift_open_date [15:24:59]req_shift_open_date done [15:24:59]produce_requested_data done [15:24:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164273,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:24:59]process_action_free close_receipt [15:24:59]json_value_free [15:24:59]json_value_free done [15:24:59]process_json_proto returns [15:24:59]Send response to host [15:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164273,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:24:59]free response buf [15:24:59]execute_script done [15:24:59]execute_script returns [15:24:59]free content buf [15:24:59]Sock 10.Close socket [15:24:59]Sock 10.Thread stoped [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:51]accept exits with 9 [15:26:51]New connection [15:26:51]New thread 3066707300 created [15:26:51]Thread 3066850660 joined [15:26:51]Waiting for new connection... [15:26:51] Sock 9.Parse request [15:26:51]Sock 9.Check first char [15:26:51]Sock 9.First char is OK [15:26:51]request: POST /json_proto HTTP/1.0 [15:26:51]Method: POST [15:26:51]URL: /json_proto [15:26:51]Method is POST - this is cgi request [15:26:51]url: /json_proto [15:26:51]query_string will be loaded in cgi processing [15:26:51]execute_cgi json_proto POST (null) [15:26:51]execute_cgi path=json_proto method=POST [15:26:51]POST find Content-Length [15:26:51]Host: 172.17.56.4:8080 [15:26:51]Content-Length: 674 [15:26:51]Content-Type: application/json [15:26:51] [15:26:51]POST finish read [15:26:51]Found Content-Length = 674 [15:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:51]execute_script... [15:26: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)458357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:51]POST & json_proto [15:26:51]process_json_proto [15:26:51]json parsed OK: [15:26:51]protocol is kg_v1.0 [15:26:51]action value=close_receipt [15:26:51]process_action close_receipt [15:26:51]cmd_close_receipt [15:26:51]MH_GetDate [15:26:51]Write to MH i2c: F0 00 00 03 2D 1F [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: F0 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: F0 09 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: F0 09 00 03 2D 00 3C 4B 91 66 C9 DC B2 64 61 [15:26:51]GetLastDocTimeStamp 1720797897 [15:26:51]current date 1720798012 [15:26:51]FM_GetShiftState [15:26:51]SAM_PROTO_GetShiftState [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 13 01 00 [15:26:51]Write to MH i2c: E2 08 00 04 2D 80 13 01 00 00 00 00 00 AE [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 0E 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 0E 00 04 2D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F8 [15:26:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:26:51]wFMCommunicate OK [15:26:51]SAM_PROTO_GetShiftState done [15:26:51]FM_GetShiftState done [15:26:51]opened in 1720744654 [15:26:51]opened+sec_in_day 1720831054 [15:26:51]quantity*price = 50042 [15:26:51]sum+1 = 50043 [15:26:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 195 12.07.2024 15:26 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164274 ФПД: 66947200208170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T152653&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164274&fm=66947200208170&tin=02508201610067®Number=0000000000090829&sum=50000 [15:26:52]StoreToDocumentArchive [15:26:52]shift 445 fd 164274 [15:26:52]save to /storage/0445/doc_00164274 [15:26:52]save last doc name /storage/0445/doc_00164274 to /storage/kkm_last_doc_name [15:26:52]save OK [15:26:52]Clear old archive folders... [15:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:26:52]tlvbuf is 00A68FB0 [15:26:52]SAM_PROTO_ClearQueue [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 09 00 00 [15:26:52]Write to MH i2c: E2 08 00 11 2D 80 09 00 00 00 00 00 00 B0 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 11 2D 00 90 00 B2 [15:26:52]RAPDU: 90 00 [15:26:52]wFMCommunicate OK [15:26:52]SAM_PROTO_ClearQueue done [15:26:52]KKMCreateOFDPacket [15:26:52]OFDProtocolAddRootSTLVToBuf [15:26:52]FM_MakeSignedData [15:26:52]FM_MakeSignedData [15:26:52]SAM_PROTO_SignData [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 0D 01 02 [15:26:52]Write to MH i2c: E2 08 00 12 2D 80 0D 01 02 00 00 00 00 B8 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 12 2D 00 90 00 B3 [15:26:52]RAPDU: 90 00 [15:26:52]wFMCommunicate OK [15:26:52]wFMCommunicate request_size=255 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3D 4B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 81 02 00 35 04 06 00 3C E3 5C 16 [15:26:52]Write to MH i2c: E2 02 01 13 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3D 4B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 81 02 00 35 04 06 00 3C E3 5C 16 00 00 53 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 13 2D 00 90 00 B4 [15:26:52]RAPDU: 90 00 [15:26:52]wFMCommunicate OK [15:26:52]wFMCommunicate request_size=7 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 0D 02 02 02 4D 2A [15:26:52]Write to MH i2c: E2 0A 00 14 2D 80 0D 02 02 02 00 4D 2A 00 00 36 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 14 2D 00 90 00 B5 [15:26:52]RAPDU: 90 00 [15:26:52]wFMCommunicate OK [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 0D 03 02 [15:26:52]Write to MH i2c: E2 08 00 15 2D 80 0D 03 02 00 00 00 00 BD [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 0B 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 0B 00 15 2D 00 E5 90 2E 9A 34 5C 05 D8 90 00 68 [15:26:52]RAPDU: E5 90 2E 9A 34 5C 05 D8 90 00 [15:26:52]wFMCommunicate OK [15:26:52]SAM_PROTO_SignData done [15:26:52]FM_MakeSignedData done [15:26:52]CreateOFDProtocolMessage [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 11 00 00 [15:26:52]Write to MH i2c: E2 08 00 16 2D 80 11 00 00 00 00 00 00 BD [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 17 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 17 00 16 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [15:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:26:52]wFMCommunicate OK [15:26:52]CreateOFDProtocolMessage done [15:26:52]OFDSenderStorePacket 164274 [15:26:52]StoreOFDPacket docnum=164274 [15:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 14 84 04 01 3A 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3D 4B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 81 02 00 35 04 06 00 3C E3 5C 16 4D 2A E5 90 2E 9A 34 5C 05 D8 [15:26:52]CheckFolder [15:26:52]dirname=/storage/ofd_packets [15:26:52]CheckFolder done [15:26:52]ProducePacketName [15:26:52]name=ofd_packets/00164274 [15:26:52]NVStorageSaveData ofd_packets/00164274 [15:26:52]File name is /storage/ofd_packets/00164274 [15:26:52]Write 298 bytes [15:26:52]NVStorageSaveData done [15:26:52]OFDSenderStorePacket done [15:26:52]KKMCreateOFDPacket done [15:26:52]NVStorageSaveData kkm_last_timestamp [15:26:52]File name is /storage/kkm_last_timestamp [15:26:52]Write 4 bytes [15:26:52]NVStorageSaveData done [15:26:52]ExternCall_PrintAddStr [15:26:52]wPrintStart [15:26:52]Write to MH i2c: 01 00 00 17 2D 44 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 17 2D 00 00 00 00 00 FF 0F 59 [15:26:52]RasterBufferAndPrint [15:26:52]line Счет N : (1)458357 [15:26:52]line ИНН: 02508201610067 [15:26:52]line Контрольно-Кассовый Чек [15:26:52]line ПРОДАЖА [15:26:52]line ТРК (МРК, ГНК) : 11 [15:26:52]line Товар: 2710194210 [15:26:52]line ДТ-К-5 [15:26:52]line 6.960 * 71.90 [15:26:52]line = 500.42 [15:26:52]line НДС 12% НСП 1% [15:26:52]line > о реализуемом товаре [15:26:52]line ОКРУГЛЕНИЕ: -0.42 [15:26:52]line ИТОГО: 500.00 [15:26:52]line Внесено: 500.00 [15:26:52]line СДАЧА: 0.00 [15:26:52]line НСП 1% : 4.43 [15:26:52]line НДС 12% : 53.14 [15:26:52]line Наличными: 500.00 [15:26:52]line Безнал.: 0.00 [15:26:52]line Место: АЗС № 72 "Партнер Нефть" [15:26:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:26:52]line СНО: Общий режим [15:26:52]line Чек 195 12.07.2024 15:26 [15:26:52]line Смена: 445 ФФД: 1.0 [15:26:52]line ЗНМ: 0300000160 [15:26:52]line РНМ: 0000000000090829 [15:26:52]line Версия ККМ: 001 [15:26:52]line ФМ: 0000000000874718 [15:26:52]line ФД: 164274 [15:26:52]line ФПД: 66947200208170 [15:26:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T152653&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164274&fm=66947200208170&tin=02508201610067®Number=0000000000090829&sum=50000 [15:26:53]OFD Sender: Processing packet 164274 [packets to send 104, broken 103] [15:26:53]ProducePacketName [15:26:53]name=ofd_packets/00164274 [15:26:53]OFD Sender: To server: pG, [15:26:53]CommunicateWithHost lk.salyk.kg:30040 [15:26:53]ConnectInit lk.salyk.kg [15:26:53]written 0, free lines is 4095 [15:26:53]Connected sock=7 [15:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 14 84 04 01 3A 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3D 4B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 81 02 00 35 04 06 00 3C E3 5C 16 4D 2A E5 90 2E 9A 34 5C 05 D8 [15:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7A FD 47 00 01 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 34 37 31 38 10 04 04 00 B2 81 02 00 F4 03 04 00 D1 F1 90 66 B6 04 01 00 00 7C 0E 71 DE 0A E4 2D 94 [15:26:53]CommunicateWithHost err = 0 [15:26:53]CheckOFDResponse [15:26:53]1017 (14) - 77093643461234 [15:26:53]1041 (16) - 0000000000874718 [15:26:53]1040 (4) - 164274 [15:26:53]1012 (4) - 12.07.2024 09:05 [15:26:53]1206 (1) - 0 [15:26:53]OFD Sender: Remove packet 164274 [15:26:53]ProducePacketName [15:26:53]name=ofd_packets/00164274 [15:26:53]NVStorageDeleteData [15:26:53]Write to MH i2c: 01 00 00 41 2D 6E [15:26:53]Write i2c OK [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: 01 [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: 01 07 00 [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: 01 07 00 41 2D 00 00 00 00 00 09 0D 8B [15:26:53]RasterBufferAndPrint [15:26:53]line [15:26:53]line [15:26:53]line [15:26:53]line [15:26:53]line [15:26:53]written 0, free lines is 3343 [15:26:53]MH_Cut [15:26:53]Write to MH i2c: D1 01 00 48 2D 01 47 [15:26:53]Write i2c OK [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: D1 [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: D1 01 00 [15:26:53]MH_I2C_Read... [15:26:53]Read from MH i2c: D1 01 00 48 2D 00 46 [15:26:53]Write to MH i2c: 01 00 00 49 2D 76 [15:26:53]Write i2c OK [15:26:53]MH_I2C_Read... [15:26:53]OFD Sender: No OFD packet to send [15:26:54]*** Cut start [15:26:54]*** Partial cut [15:26:54]*** CUTSNS_PIN = 1 [15:26:54]*** CUTSNS_PIN = 0 [15:26:54]*** Brake cut motor [15:26:54]Read from MH i2c: 01 [15:26:54]MH_I2C_Read... [15:26:54]*** Stop cut motor [15:26:54]*** Cut end [15:26:54]Read from MH i2c: 01 07 00 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: 01 07 00 49 2D 00 00 00 00 00 FF 0F 8B [15:26:54]process_action close_receipt done [15:26:54]requested_data is exist [15:26:54]produce_requested_data [15:26:54]requested_item fm.sn is exist - process it [15:26:54]wFMCommunicate request_size=4 [15:26:54]MH_SAM_APDU [15:26:54]CAPDU: 80 11 00 00 [15:26:54]Write to MH i2c: E2 08 00 4A 2D 80 11 00 00 00 00 00 00 F1 [15:26:54]Write i2c OK [15:26:54]MH_I2C_Read... [15:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:54]Read from MH i2c: E2 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: E2 17 00 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: E2 17 00 4A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [15:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:26:54]wFMCommunicate OK [15:26:54]requested_item fd.num is exist - process it [15:26:54]SAM_PROTO_GetFieldsCounters [15:26:54]wFMCommunicate request_size=4 [15:26:54]MH_SAM_APDU [15:26:54]CAPDU: 80 13 00 00 [15:26:54]Write to MH i2c: E2 08 00 4B 2D 80 13 00 00 00 00 00 00 F4 [15:26:54]Write i2c OK [15:26:54]MH_I2C_Read... [15:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:54]Read from MH i2c: E2 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: E2 62 00 [15:26:54]MH_I2C_Read... [15:26:54]Read from MH i2c: E2 62 00 4B 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:26: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:55]wFMCommunicate OK [15:26:55]SAM_PROTO_GetFieldsCounters done [15:26:55]requested_item shift.num is exist - process it [15:26:55]requested_item shift.opened is exist - process it [15:26:55]req_shift_opened [15:26:55]FM_GetShiftState [15:26:55]SAM_PROTO_GetShiftState [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 13 01 00 [15:26:55]Write to MH i2c: E2 08 00 4C 2D 80 13 01 00 00 00 00 00 F6 [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 0E 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 0E 00 4C 2D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 40 [15:26:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:26:55]wFMCommunicate OK [15:26:55]SAM_PROTO_GetShiftState done [15:26:55]FM_GetShiftState done [15:26:55]req_shift_opened done [15:26:55]requested_item shift.open_date is exist - process it [15:26:55]req_shift_open_date [15:26:55]req_shift_open_date done [15:26:55]produce_requested_data done [15:26:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164274,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:26:55]process_action_free close_receipt [15:26:55]json_value_free [15:26:55]json_value_free done [15:26:55]process_json_proto returns [15:26:55]Send response to host [15:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164274,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:26:55]free response buf [15:26:55]execute_script done [15:26:55]execute_script returns [15:26:55]free content buf [15:26:55]Sock 9.Close socket [15:26:55]Sock 9.Thread stoped [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31: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:24]accept exits with 10 [15:32:24]New connection [15:32:24]New thread 3066850660 created [15:32:24]Thread 3066707300 joined [15:32:24]Waiting for new connection... [15:32:24] Sock 10.Parse request [15:32:24]Sock 10.Check first char [15:32:24]Sock 10.First char is OK [15:32:24]request: POST /json_proto HTTP/1.0 [15:32:24]Method: POST [15:32:24]URL: /json_proto [15:32:24]Method is POST - this is cgi request [15:32:24]url: /json_proto [15:32:24]query_string will be loaded in cgi processing [15:32:24]execute_cgi json_proto POST (null) [15:32:24]execute_cgi path=json_proto method=POST [15:32:24]POST find Content-Length [15:32:24]Host: 172.17.56.4:8080 [15:32:24]Content-Length: 642 [15:32:24]Content-Type: application/json [15:32:24] [15:32:24]POST finish read [15:32:24]Found Content-Length = 642 [15:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.000, "sum" : 1316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:24]execute_script... [15:32: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)458358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.000, "sum" : 1316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:24]POST & json_proto [15:32:24]process_json_proto [15:32:24]json parsed OK: [15:32:24]protocol is kg_v1.0 [15:32:24]action value=close_receipt [15:32:24]process_action close_receipt [15:32:24]cmd_close_receipt [15:32:24]MH_GetDate [15:32:24]Write to MH i2c: F0 00 00 4D 2D 69 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: F0 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: F0 09 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: F0 09 00 4D 2D 00 8A 4C 91 66 C9 DC B2 64 FA [15:32:24]GetLastDocTimeStamp 1720798013 [15:32:24]current date 1720798346 [15:32:24]FM_GetShiftState [15:32:24]SAM_PROTO_GetShiftState [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 13 01 00 [15:32:24]Write to MH i2c: E2 08 00 4E 2D 80 13 01 00 00 00 00 00 F8 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 0E 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 0E 00 4E 2D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 42 [15:32:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:32:24]wFMCommunicate OK [15:32:24]SAM_PROTO_GetShiftState done [15:32:24]FM_GetShiftState done [15:32:24]opened in 1720744654 [15:32:24]opened+sec_in_day 1720831054 [15:32:24]quantity*price = 131600 [15:32:24]sum+1 = 131601 [15:32:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1316.00 НСП 1% : 11.65 НДС 12% : 139.75 Наличными: 1316.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 196 12.07.2024 15:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164275 ФПД: 26061331593051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T153226&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164275&fm=26061331593051&tin=02508201610067®Number=0000000000090829&sum=131600 [15:32:26]StoreToDocumentArchive [15:32:26]shift 445 fd 164275 [15:32:26]save to /storage/0445/doc_00164275 [15:32:26]save last doc name /storage/0445/doc_00164275 to /storage/kkm_last_doc_name [15:32:26]save OK [15:32:26]Clear old archive folders... [15:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:26]tlvbuf is 00A730A0 [15:32:26]SAM_PROTO_ClearQueue [15:32:26]wFMCommunicate request_size=4 [15:32:26]MH_SAM_APDU [15:32:26]CAPDU: 80 09 00 00 [15:32:26]Write to MH i2c: E2 08 00 5B 2D 80 09 00 00 00 00 00 00 FA [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:26]Read from MH i2c: E2 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 5B 2D 00 90 00 FC [15:32:26]RAPDU: 90 00 [15:32:26]wFMCommunicate OK [15:32:26]SAM_PROTO_ClearQueue done [15:32:26]KKMCreateOFDPacket [15:32:26]OFDProtocolAddRootSTLVToBuf [15:32:26]FM_MakeSignedData [15:32:26]FM_MakeSignedData [15:32:26]SAM_PROTO_SignData [15:32:26]wFMCommunicate request_size=4 [15:32:26]MH_SAM_APDU [15:32:26]CAPDU: 80 0D 01 02 [15:32:26]Write to MH i2c: E2 08 00 5C 2D 80 0D 01 02 00 00 00 00 02 [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:26]Read from MH i2c: E2 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 5C 2D 00 90 00 FD [15:32:26]RAPDU: 90 00 [15:32:26]wFMCommunicate OK [15:32:26]wFMCommunicate request_size=255 [15:32:26]MH_SAM_APDU [15:32:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 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 8A 4C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 81 02 00 35 04 06 00 17 [15:32:26]Write to MH i2c: E2 02 01 5D 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 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 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 8A 4C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 81 02 00 35 04 06 00 17 00 00 83 [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:26]Read from MH i2c: E2 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 5D 2D 00 90 00 FE [15:32:26]RAPDU: 90 00 [15:32:26]wFMCommunicate OK [15:32:26]wFMCommunicate request_size=10 [15:32:26]MH_SAM_APDU [15:32:26]CAPDU: 80 0D 02 02 05 B3 E0 69 77 5B [15:32:26]Write to MH i2c: E2 0D 00 5E 2D 80 0D 02 02 05 00 B3 E0 69 77 5B 00 00 DD [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:26]Read from MH i2c: E2 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 5E 2D 00 90 00 FF [15:32:26]RAPDU: 90 00 [15:32:26]wFMCommunicate OK [15:32:26]wFMCommunicate request_size=4 [15:32:26]MH_SAM_APDU [15:32:26]CAPDU: 80 0D 03 02 [15:32:26]Write to MH i2c: E2 08 00 5F 2D 80 0D 03 02 00 00 00 00 07 [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:26]Read from MH i2c: E2 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 0B 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 0B 00 5F 2D 00 9D B9 5B 11 34 F9 73 A7 90 00 11 [15:32:26]RAPDU: 9D B9 5B 11 34 F9 73 A7 90 00 [15:32:26]wFMCommunicate OK [15:32:26]SAM_PROTO_SignData done [15:32:26]FM_MakeSignedData done [15:32:26]CreateOFDProtocolMessage [15:32:26]wFMCommunicate request_size=4 [15:32:26]MH_SAM_APDU [15:32:26]CAPDU: 80 11 00 00 [15:32:26]Write to MH i2c: E2 08 00 60 2D 80 11 00 00 00 00 00 00 07 [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:26]Read from MH i2c: E2 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 17 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 17 00 60 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [15:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:32:26]wFMCommunicate OK [15:32:26]CreateOFDProtocolMessage done [15:32:26]OFDSenderStorePacket 164275 [15:32:26]StoreOFDPacket docnum=164275 [15:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 73 07 01 92 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 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 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 8A 4C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 81 02 00 35 04 06 00 17 B3 E0 69 77 5B 9D B9 5B 11 34 F9 73 A7 [15:32:26]CheckFolder [15:32:26]dirname=/storage/ofd_packets [15:32:26]CheckFolder done [15:32:26]ProducePacketName [15:32:26]name=ofd_packets/00164275 [15:32:26]NVStorageSaveData ofd_packets/00164275 [15:32:26]File name is /storage/ofd_packets/00164275 [15:32:26]Write 301 bytes [15:32:26]NVStorageSaveData done [15:32:26]OFDSenderStorePacket done [15:32:26]KKMCreateOFDPacket done [15:32:26]NVStorageSaveData kkm_last_timestamp [15:32:26]File name is /storage/kkm_last_timestamp [15:32:26]Write 4 bytes [15:32:26]NVStorageSaveData done [15:32:26]ExternCall_PrintAddStr [15:32:26]wPrintStart [15:32:26]Write to MH i2c: 01 00 00 61 2D 8E [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 07 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 07 00 61 2D 00 00 00 00 00 FF 0F A3 [15:32:26]RasterBufferAndPrint [15:32:26]line Счет N : (1)458358 [15:32:26]line ИНН: 02508201610067 [15:32:26]line Контрольно-Кассовый Чек [15:32:26]line ПРОДАЖА [15:32:26]line ТРК (МРК, ГНК) : 22 [15:32:26]line Товар: 2710124130 [15:32:26]line Аи-92-К-5 [15:32:26]line 20.000 * 65.80 [15:32:26]line = 1316.00 [15:32:26]line НДС 12% НСП 1% [15:32:26]line > о реализуемом товаре [15:32:26]line ИТОГО: 1316.00 [15:32:26]line НСП 1% : 11.65 [15:32:26]line НДС 12% : 139.75 [15:32:26]line Наличными: 1316.00 [15:32:26]line Безнал.: 0.00 [15:32:26]line Место: АЗС № 72 "Партнер Нефть" [15:32:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:32:26]line СНО: Общий режим [15:32:26]line Чек 196 12.07.2024 15:32 [15:32:26]line Смена: 445 ФФД: 1.0 [15:32:26]line ЗНМ: 0300000160 [15:32:26]line РНМ: 0000000000090829 [15:32:26]line Версия ККМ: 001 [15:32:26]line ФМ: 0000000000874718 [15:32:26]line ФД: 164275 [15:32:26]line ФПД: 26061331593051 [15:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T153226&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164275&fm=26061331593051&tin=02508201610067®Number=0000000000090829&sum=131600 [15:32:26]written 0, free lines is 4095 [15:32:26]OFD Sender: Processing packet 164275 [packets to send 104, broken 103] [15:32:26]ProducePacketName [15:32:26]name=ofd_packets/00164275 [15:32:26]OFD Sender: To server: pG, [15:32:26]CommunicateWithHost lk.salyk.kg:30040 [15:32:26]ConnectInit lk.salyk.kg [15:32:27]Connected sock=9 [15:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 73 07 01 92 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 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 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 8A 4C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 81 02 00 35 04 06 00 17 B3 E0 69 77 5B 9D B9 5B 11 34 F9 73 A7 [15:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8E 6A 47 00 37 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 34 37 31 38 10 04 04 00 B3 81 02 00 F4 03 04 00 1E F3 90 66 B6 04 01 00 00 19 1A 13 AE 1B D0 87 8A [15:32:27]CommunicateWithHost err = 0 [15:32:27]CheckOFDResponse [15:32:27]1017 (14) - 77093643461234 [15:32:27]1041 (16) - 0000000000874718 [15:32:27]1040 (4) - 164275 [15:32:27]1012 (4) - 12.07.2024 09:10 [15:32:27]1206 (1) - 0 [15:32:27]OFD Sender: Remove packet 164275 [15:32:27]ProducePacketName [15:32:27]name=ofd_packets/00164275 [15:32:27]NVStorageDeleteData [15:32:27]Write to MH i2c: 01 00 00 88 2D B5 [15:32:27]Write i2c OK [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: 01 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: 01 07 00 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: 01 07 00 88 2D 00 00 00 00 00 33 0D FC [15:32:27]RasterBufferAndPrint [15:32:27]line [15:32:27]line [15:32:27]line [15:32:27]line [15:32:27]line [15:32:27]written 0, free lines is 3389 [15:32:27]MH_Cut [15:32:27]Write to MH i2c: D1 01 00 8F 2D 01 8E [15:32:27]Write i2c OK [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: D1 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: D1 01 00 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: D1 01 00 8F 2D 00 8D [15:32:27]Write to MH i2c: 01 00 00 90 2D BD [15:32:27]Write i2c OK [15:32:27]MH_I2C_Read... [15:32:27]OFD Sender: No OFD packet to send [15:32:28]*** Cut start [15:32:28]*** Partial cut [15:32:28]*** CUTSNS_PIN = 1 [15:32:28]*** CUTSNS_PIN = 0 [15:32:28]*** Brake cut motor [15:32:28]Read from MH i2c: 01 [15:32:28]MH_I2C_Read... [15:32:28]*** Stop cut motor [15:32:28]*** Cut end [15:32:28]Read from MH i2c: 01 07 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: 01 07 00 90 2D 00 00 00 00 00 FF 0F D2 [15:32:28]process_action close_receipt done [15:32:28]requested_data is exist [15:32:28]produce_requested_data [15:32:28]requested_item fm.sn is exist - process it [15:32:28]wFMCommunicate request_size=4 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 11 00 00 [15:32:28]Write to MH i2c: E2 08 00 91 2D 80 11 00 00 00 00 00 00 38 [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:28]Read from MH i2c: E2 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 17 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 17 00 91 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8E [15:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:32:28]wFMCommunicate OK [15:32:28]requested_item fd.num is exist - process it [15:32:28]SAM_PROTO_GetFieldsCounters [15:32:28]wFMCommunicate request_size=4 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 13 00 00 [15:32:28]Write to MH i2c: E2 08 00 92 2D 80 13 00 00 00 00 00 00 3B [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:28]Read from MH i2c: E2 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 62 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 62 00 92 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [15:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:28]wFMCommunicate OK [15:32:28]SAM_PROTO_GetFieldsCounters done [15:32:28]requested_item shift.num is exist - process it [15:32:28]requested_item shift.opened is exist - process it [15:32:28]req_shift_opened [15:32:28]FM_GetShiftState [15:32:28]SAM_PROTO_GetShiftState [15:32:28]wFMCommunicate request_size=4 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 13 01 00 [15:32:28]Write to MH i2c: E2 08 00 93 2D 80 13 01 00 00 00 00 00 3D [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:28]Read from MH i2c: E2 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 0E 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 0E 00 93 2D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 87 [15:32:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:32:28]wFMCommunicate OK [15:32:28]SAM_PROTO_GetShiftState done [15:32:28]FM_GetShiftState done [15:32:28]req_shift_opened done [15:32:28]requested_item shift.open_date is exist - process it [15:32:28]req_shift_open_date [15:32:28]req_shift_open_date done [15:32:28]produce_requested_data done [15:32:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164275,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:32:28]process_action_free close_receipt [15:32:28]json_value_free [15:32:28]json_value_free done [15:32:28]process_json_proto returns [15:32:28]Send response to host [15:32:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164275,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:32:28]free response buf [15:32:28]execute_script done [15:32:28]execute_script returns [15:32:28]free content buf [15:32:28]Sock 10.Close socket [15:32:28]Sock 10.Thread stoped [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:34]accept exits with 7 [15:33:34]New connection [15:33:34]New thread 3066707300 created [15:33:34]Thread 3066850660 joined [15:33:34]Waiting for new connection... [15:33:34] Sock 7.Parse request [15:33:34]Sock 7.Check first char [15:33:34]Sock 7.First char is OK [15:33:34]request: POST /json_proto HTTP/1.0 [15:33:34]Method: POST [15:33:34]URL: /json_proto [15:33:34]Method is POST - this is cgi request [15:33:34]url: /json_proto [15:33:34]query_string will be loaded in cgi processing [15:33:34]execute_cgi json_proto POST (null) [15:33:34]execute_cgi path=json_proto method=POST [15:33:34]POST find Content-Length [15:33:34]Host: 172.17.56.4:8080 [15:33:34]Content-Length: 790 [15:33:34]Content-Type: application/json [15:33:34] [15:33:34]POST finish read [15:33:34]Found Content-Length = 790 [15:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:34]execute_script... [15:33: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)458359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:34]POST & json_proto [15:33:34]process_json_proto [15:33:34]json parsed OK: [15:33:34]protocol is kg_v1.0 [15:33:34]action value=close_receipt [15:33:34]process_action close_receipt [15:33:34]cmd_close_receipt [15:33:34]MH_GetDate [15:33:34]Write to MH i2c: F0 00 00 94 2D B0 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: F0 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: F0 09 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: F0 09 00 94 2D 00 D0 4C 91 66 C9 DC B2 64 87 [15:33:34]GetLastDocTimeStamp 1720798346 [15:33:34]current date 1720798416 [15:33:34]FM_GetShiftState [15:33:34]SAM_PROTO_GetShiftState [15:33:34]wFMCommunicate request_size=4 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 13 01 00 [15:33:34]Write to MH i2c: E2 08 00 95 2D 80 13 01 00 00 00 00 00 3F [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0E 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0E 00 95 2D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 89 [15:33:34]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:33:34]wFMCommunicate OK [15:33:34]SAM_PROTO_GetShiftState done [15:33:34]FM_GetShiftState done [15:33:34]opened in 1720744654 [15:33:34]opened+sec_in_day 1720831054 [15:33:34]quantity*price = 50023 [15:33:34]sum+1 = 50025 [15:33:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 197 12.07.2024 15:33 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164276 ФПД: 182016457291081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T153336&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164276&fm=182016457291081&tin=02508201610067®Number=0000000000090829&sum=50024 [15:33:35]StoreToDocumentArchive [15:33:35]shift 445 fd 164276 [15:33:35]save to /storage/0445/doc_00164276 [15:33:35]save last doc name /storage/0445/doc_00164276 to /storage/kkm_last_doc_name [15:33:35]save OK [15:33:35]Clear old archive folders... [15:33:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:35]tlvbuf is 00AF0F80 [15:33:35]SAM_PROTO_ClearQueue [15:33:35]wFMCommunicate request_size=4 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 09 00 00 [15:33:35]Write to MH i2c: E2 08 00 A2 2D 80 09 00 00 00 00 00 00 41 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 A2 2D 00 90 00 43 [15:33:35]RAPDU: 90 00 [15:33:35]wFMCommunicate OK [15:33:35]SAM_PROTO_ClearQueue done [15:33:35]KKMCreateOFDPacket [15:33:35]OFDProtocolAddRootSTLVToBuf [15:33:35]FM_MakeSignedData [15:33:35]FM_MakeSignedData [15:33:35]SAM_PROTO_SignData [15:33:35]wFMCommunicate request_size=4 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 0D 01 02 [15:33:35]Write to MH i2c: E2 08 00 A3 2D 80 0D 01 02 00 00 00 00 49 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 A3 2D 00 90 00 44 [15:33:35]RAPDU: 90 00 [15:33:35]wFMCommunicate OK [15:33:35]wFMCommunicate request_size=255 [15:33:35]MH_SAM_APDU [15:33: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 D0 4C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 81 02 00 35 04 06 00 A5 [15:33:35]Write to MH i2c: E2 02 01 A4 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 D0 4C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 81 02 00 35 04 06 00 A5 00 00 82 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 03 00 A4 2D 00 90 00 45 [15:33:35]RAPDU: 90 00 [15:33:35]wFMCommunicate OK [15:33:35]wFMCommunicate request_size=10 [15:33:35]MH_SAM_APDU [15:33:35]CAPDU: 80 0D 02 02 05 8B 02 47 B5 49 [15:33:35]Write to MH i2c: E2 0D 00 A5 2D 80 0D 02 02 05 00 8B 02 47 B5 49 00 00 28 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 03 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 03 00 A5 2D 00 90 00 46 [15:33:36]RAPDU: 90 00 [15:33:36]wFMCommunicate OK [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 0D 03 02 [15:33:36]Write to MH i2c: E2 08 00 A6 2D 80 0D 03 02 00 00 00 00 4E [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 0B 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 0B 00 A6 2D 00 95 4A 92 57 7A FF EC AA 90 00 26 [15:33:36]RAPDU: 95 4A 92 57 7A FF EC AA 90 00 [15:33:36]wFMCommunicate OK [15:33:36]SAM_PROTO_SignData done [15:33:36]FM_MakeSignedData done [15:33:36]CreateOFDProtocolMessage [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 11 00 00 [15:33:36]Write to MH i2c: E2 08 00 A7 2D 80 11 00 00 00 00 00 00 4E [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 17 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 17 00 A7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A4 [15:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:33:36]wFMCommunicate OK [15:33:36]CreateOFDProtocolMessage done [15:33:36]OFDSenderStorePacket 164276 [15:33:36]StoreOFDPacket docnum=164276 [15:33:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5C D2 07 01 54 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 D0 4C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 81 02 00 35 04 06 00 A5 8B 02 47 B5 49 95 4A 92 57 7A FF EC AA [15:33:36]CheckFolder [15:33:36]dirname=/storage/ofd_packets [15:33:36]CheckFolder done [15:33:36]ProducePacketName [15:33:36]name=ofd_packets/00164276 [15:33:36]NVStorageSaveData ofd_packets/00164276 [15:33:36]File name is /storage/ofd_packets/00164276 [15:33:36]Write 301 bytes [15:33:36]NVStorageSaveData done [15:33:36]OFDSenderStorePacket done [15:33:36]KKMCreateOFDPacket done [15:33:36]NVStorageSaveData kkm_last_timestamp [15:33:36]File name is /storage/kkm_last_timestamp [15:33:36]Write 4 bytes [15:33:36]NVStorageSaveData done [15:33:36]ExternCall_PrintAddStr [15:33:36]wPrintStart [15:33:36]Write to MH i2c: 01 00 00 A8 2D D5 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 07 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 07 00 A8 2D 00 00 00 00 00 FF 0F EA [15:33:36]RasterBufferAndPrint [15:33:36]line Счет N : (1)458359 [15:33:36]line ИНН: 02508201610067 [15:33:36]line Контрольно-Кассовый Чек [15:33:36]line ПРОДАЖА [15:33:36]line ТРК (МРК, ГНК) : 12 [15:33:36]line Товар: 2710124130 [15:33:36]line Аи-92-К-5 [15:33:36]line 7.670 * 65.22 [15:33:36]line = 500.24 [15:33:36]line НДС 12% НСП 1% [15:33:36]line > о реализуемом товаре [15:33:36]line ИТОГО: 500.24 [15:33:36]line НСП 1% : 4.43 [15:33:36]line НДС 12% : 53.12 [15:33:36]line Наличными: 0.00 [15:33:36]line Безнал.: 500.24 [15:33:36]line Место: АЗС № 72 "Партнер Нефть" [15:33:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:33:36]line СНО: Общий режим [15:33:36]line Чек 197 12.07.2024 15:33 [15:33:36]line Смена: 445 ФФД: 1.0 [15:33:36]line ЗНМ: 0300000160 [15:33:36]line РНМ: 0000000000090829 [15:33:36]line Версия ККМ: 001 [15:33:36]line Платежная система: KICB Банк [15:33:36]line ФМ: 0000000000874718 [15:33:36]line ФД: 164276 [15:33:36]line ФПД: 182016457291081 [15:33:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T153336&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164276&fm=182016457291081&tin=02508201610067®Number=0000000000090829&sum=50024 [15:33:36]written 0, free lines is 4095 [15:33:36]OFD Sender: Processing packet 164276 [packets to send 104, broken 103] [15:33:36]ProducePacketName [15:33:36]name=ofd_packets/00164276 [15:33:36]OFD Sender: To server: pG, [15:33:36]CommunicateWithHost lk.salyk.kg:30040 [15:33:36]ConnectInit lk.salyk.kg [15:33:36]Connected sock=10 [15:33:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5C D2 07 01 54 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 D0 4C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 81 02 00 35 04 06 00 A5 8B 02 47 B5 49 95 4A 92 57 7A FF EC AA [15:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 90 F5 47 00 18 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 34 37 31 38 10 04 04 00 B4 81 02 00 F4 03 04 00 64 F3 90 66 B6 04 01 00 00 79 53 87 52 3E 51 AE 6A [15:33:36]CommunicateWithHost err = 0 [15:33:36]CheckOFDResponse [15:33:36]1017 (14) - 77093643461234 [15:33:36]1041 (16) - 0000000000874718 [15:33:36]1040 (4) - 164276 [15:33:36]1012 (4) - 12.07.2024 09:12 [15:33:36]1206 (1) - 0 [15:33:36]OFD Sender: Remove packet 164276 [15:33:36]ProducePacketName [15:33:36]name=ofd_packets/00164276 [15:33:36]NVStorageDeleteData [15:33:36]Write to MH i2c: 01 00 00 D1 2D FE [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 07 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: 01 07 00 D1 2D 00 00 00 00 00 0B 0D 1D [15:33:36]RasterBufferAndPrint [15:33:36]line [15:33:36]line [15:33:36]line [15:33:36]line [15:33:36]line [15:33:36]written 0, free lines is 3345 [15:33:36]MH_Cut [15:33:36]Write to MH i2c: D1 01 00 D8 2D 01 D7 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: D1 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: D1 01 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: D1 01 00 D8 2D 00 D6 [15:33:36]Write to MH i2c: 01 00 00 D9 2D 06 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:37]OFD Sender: No OFD packet to send [15:33:37]*** Cut start [15:33:37]*** Partial cut [15:33:37]*** CUTSNS_PIN = 1 [15:33:37]*** CUTSNS_PIN = 0 [15:33:37]*** Brake cut motor [15:33:37]Read from MH i2c: 01 [15:33:37]MH_I2C_Read... [15:33:37]*** Stop cut motor [15:33:37]*** Cut end [15:33:37]Read from MH i2c: 01 07 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: 01 07 00 D9 2D 00 00 00 00 00 FF 0F 1B [15:33:37]process_action close_receipt done [15:33:37]requested_data is exist [15:33:37]produce_requested_data [15:33:37]requested_item fm.sn is exist - process it [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 11 00 00 [15:33:37]Write to MH i2c: E2 08 00 DA 2D 80 11 00 00 00 00 00 00 81 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 17 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 17 00 DA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [15:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:33:37]wFMCommunicate OK [15:33:37]requested_item fd.num is exist - process it [15:33:37]SAM_PROTO_GetFieldsCounters [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 13 00 00 [15:33:37]Write to MH i2c: E2 08 00 DB 2D 80 13 00 00 00 00 00 00 84 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:38]Read from MH i2c: E2 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 62 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 62 00 DB 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [15:33: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:38]wFMCommunicate OK [15:33:38]SAM_PROTO_GetFieldsCounters done [15:33:38]requested_item shift.num is exist - process it [15:33:38]requested_item shift.opened is exist - process it [15:33:38]req_shift_opened [15:33:38]FM_GetShiftState [15:33:38]SAM_PROTO_GetShiftState [15:33:38]wFMCommunicate request_size=4 [15:33:38]MH_SAM_APDU [15:33:38]CAPDU: 80 13 01 00 [15:33:38]Write to MH i2c: E2 08 00 DC 2D 80 13 01 00 00 00 00 00 86 [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:38]Read from MH i2c: E2 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 0E 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 0E 00 DC 2D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D0 [15:33:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:33:38]wFMCommunicate OK [15:33:38]SAM_PROTO_GetShiftState done [15:33:38]FM_GetShiftState done [15:33:38]req_shift_opened done [15:33:38]requested_item shift.open_date is exist - process it [15:33:38]req_shift_open_date [15:33:38]req_shift_open_date done [15:33:38]produce_requested_data done [15:33:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164276,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:33:38]process_action_free close_receipt [15:33:38]json_value_free [15:33:38]json_value_free done [15:33:38]process_json_proto returns [15:33:38]Send response to host [15:33:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164276,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:33:38]free response buf [15:33:38]execute_script done [15:33:38]execute_script returns [15:33:38]free content buf [15:33:38]Sock 7.Close socket [15:33:38]Sock 7.Thread stoped [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:35:58]accept exits with 9 [15:35:58]New connection [15:35:58]New thread 3066850660 created [15:35:58]Thread 3066707300 joined [15:35:58]Waiting for new connection... [15:35:58] Sock 9.Parse request [15:35:58]Sock 9.Check first char [15:35:58]Sock 9.First char is OK [15:35:58]request: POST /json_proto HTTP/1.0 [15:35:58]Method: POST [15:35:58]URL: /json_proto [15:35:58]Method is POST - this is cgi request [15:35:58]url: /json_proto [15:35:58]query_string will be loaded in cgi processing [15:35:58]execute_cgi json_proto POST (null) [15:35:58]execute_cgi path=json_proto method=POST [15:35:58]POST find Content-Length [15:35:58]Host: 172.17.56.4:8080 [15:35:58]Content-Length: 679 [15:35:58]Content-Type: application/json [15:35:58] [15:35:58]POST finish read [15:35:58]Found Content-Length = 679 [15:35:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458360", "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" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:58]execute_script... [15:35: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)458360", "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" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:58]POST & json_proto [15:35:58]process_json_proto [15:35:58]json parsed OK: [15:35:58]protocol is kg_v1.0 [15:35:58]action value=close_receipt [15:35:58]process_action close_receipt [15:35:58]cmd_close_receipt [15:35:58]MH_GetDate [15:35:58]Write to MH i2c: F0 00 00 DD 2D F9 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: F0 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: F0 09 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: F0 09 00 DD 2D 00 60 4D 91 66 C9 DC B2 64 61 [15:35:58]GetLastDocTimeStamp 1720798416 [15:35:58]current date 1720798560 [15:35:58]FM_GetShiftState [15:35:58]SAM_PROTO_GetShiftState [15:35:58]wFMCommunicate request_size=4 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 13 01 00 [15:35:58]Write to MH i2c: E2 08 00 DE 2D 80 13 01 00 00 00 00 00 88 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 0E 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 0E 00 DE 2D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D2 [15:35:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:35:58]wFMCommunicate OK [15:35:58]SAM_PROTO_GetShiftState done [15:35:58]FM_GetShiftState done [15:35:58]opened in 1720744654 [15:35:58]opened+sec_in_day 1720831054 [15:35:58]quantity*price = 100012 [15:35:58]sum+1 = 100014 [15:35:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 198 12.07.2024 15:36 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164277 ФПД: 50378644572717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T153600&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164277&fm=50378644572717&tin=02508201610067®Number=0000000000090829&sum=100000 [15:35:59]StoreToDocumentArchive [15:35:59]shift 445 fd 164277 [15:35:59]save to /storage/0445/doc_00164277 [15:35:59]save last doc name /storage/0445/doc_00164277 to /storage/kkm_last_doc_name [15:35:59]save OK [15:35:59]Clear old archive folders... [15:35:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:35:59]tlvbuf is 00AB2F20 [15:35:59]SAM_PROTO_ClearQueue [15:35:59]wFMCommunicate request_size=4 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 09 00 00 [15:35:59]Write to MH i2c: E2 08 00 EB 2D 80 09 00 00 00 00 00 00 8A [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 EB 2D 00 90 00 8C [15:35:59]RAPDU: 90 00 [15:35:59]wFMCommunicate OK [15:35:59]SAM_PROTO_ClearQueue done [15:35:59]KKMCreateOFDPacket [15:35:59]OFDProtocolAddRootSTLVToBuf [15:35:59]FM_MakeSignedData [15:35:59]FM_MakeSignedData [15:35:59]SAM_PROTO_SignData [15:35:59]wFMCommunicate request_size=4 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 0D 01 02 [15:35:59]Write to MH i2c: E2 08 00 EC 2D 80 0D 01 02 00 00 00 00 92 [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 EC 2D 00 90 00 8D [15:35:59]RAPDU: 90 00 [15:35:59]wFMCommunicate OK [15:35:59]wFMCommunicate request_size=255 [15:35:59]MH_SAM_APDU [15:35: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 60 4D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 81 02 00 35 04 06 00 2D D1 B1 36 [15:35:59]Write to MH i2c: E2 02 01 ED 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 60 4D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 81 02 00 35 04 06 00 2D D1 B1 36 00 00 98 [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 [15:36:00]MH_I2C_Read... [15:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:00]Read from MH i2c: E2 03 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 03 00 ED 2D 00 90 00 8E [15:36:00]RAPDU: 90 00 [15:36:00]wFMCommunicate OK [15:36:00]wFMCommunicate request_size=7 [15:36:00]MH_SAM_APDU [15:36:00]CAPDU: 80 0D 02 02 02 CA 2D [15:36:00]Write to MH i2c: E2 0A 00 EE 2D 80 0D 02 02 02 00 CA 2D 00 00 90 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:00]Read from MH i2c: E2 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 03 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 03 00 EE 2D 00 90 00 8F [15:36:00]RAPDU: 90 00 [15:36:00]wFMCommunicate OK [15:36:00]wFMCommunicate request_size=4 [15:36:00]MH_SAM_APDU [15:36:00]CAPDU: 80 0D 03 02 [15:36:00]Write to MH i2c: E2 08 00 EF 2D 80 0D 03 02 00 00 00 00 97 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:00]Read from MH i2c: E2 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 0B 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 0B 00 EF 2D 00 FE 52 8B FC DB 58 32 0C 90 00 E0 [15:36:00]RAPDU: FE 52 8B FC DB 58 32 0C 90 00 [15:36:00]wFMCommunicate OK [15:36:00]SAM_PROTO_SignData done [15:36:00]FM_MakeSignedData done [15:36:00]CreateOFDProtocolMessage [15:36:00]wFMCommunicate request_size=4 [15:36:00]MH_SAM_APDU [15:36:00]CAPDU: 80 11 00 00 [15:36:00]Write to MH i2c: E2 08 00 F0 2D 80 11 00 00 00 00 00 00 97 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:00]Read from MH i2c: E2 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 17 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 17 00 F0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [15:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:36:00]wFMCommunicate OK [15:36:00]CreateOFDProtocolMessage done [15:36:00]OFDSenderStorePacket 164277 [15:36:00]StoreOFDPacket docnum=164277 [15:36:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D0 75 04 01 B2 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 60 4D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 81 02 00 35 04 06 00 2D D1 B1 36 CA 2D FE 52 8B FC DB 58 32 0C [15:36:00]CheckFolder [15:36:00]dirname=/storage/ofd_packets [15:36:00]CheckFolder done [15:36:00]ProducePacketName [15:36:00]name=ofd_packets/00164277 [15:36:00]NVStorageSaveData ofd_packets/00164277 [15:36:00]File name is /storage/ofd_packets/00164277 [15:36:00]Write 298 bytes [15:36:00]NVStorageSaveData done [15:36:00]OFDSenderStorePacket done [15:36:00]KKMCreateOFDPacket done [15:36:00]NVStorageSaveData kkm_last_timestamp [15:36:00]File name is /storage/kkm_last_timestamp [15:36:00]Write 4 bytes [15:36:00]NVStorageSaveData done [15:36:00]ExternCall_PrintAddStr [15:36:00]wPrintStart [15:36:00]Write to MH i2c: 01 00 00 F1 2D 1E [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 07 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 07 00 F1 2D 00 00 00 00 00 FF 0F 33 [15:36:00]RasterBufferAndPrint [15:36:00]line Счет N : (1)458360 [15:36:00]line ИНН: 02508201610067 [15:36:00]line Контрольно-Кассовый Чек [15:36:00]line ПРОДАЖА [15:36:00]line ТРК (МРК, ГНК) : 21 [15:36:00]line Товар: 2710194210 [15:36:00]line ДТ-К-5 [15:36:00]line 13.910 * 71.90 [15:36:00]line = 1000.13 [15:36:00]line НДС 12% НСП 1% [15:36:00]line > о реализуемом товаре [15:36:00]line ОКРУГЛЕНИЕ: -0.13 [15:36:00]line ИТОГО: 1000.00 [15:36:00]line Внесено: 1000.00 [15:36:00]line СДАЧА: 0.00 [15:36:00]line НСП 1% : 8.85 [15:36:00]line НДС 12% : 106.21 [15:36:00]line Наличными: 1000.00 [15:36:00]line Безнал.: 0.00 [15:36:00]line Место: АЗС № 72 "Партнер Нефть" [15:36:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:36:00]line СНО: Общий режим [15:36:00]line Чек 198 12.07.2024 15:36 [15:36:00]line Смена: 445 ФФД: 1.0 [15:36:00]line ЗНМ: 0300000160 [15:36:00]line РНМ: 0000000000090829 [15:36:00]line Версия ККМ: 001 [15:36:00]line ФМ: 0000000000874718 [15:36:00]line ФД: 164277 [15:36:00]line ФПД: 50378644572717 [15:36:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T153600&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164277&fm=50378644572717&tin=02508201610067®Number=0000000000090829&sum=100000 [15:36:00]OFD Sender: Processing packet 164277 [packets to send 104, broken 103] [15:36:00]ProducePacketName [15:36:00]name=ofd_packets/00164277 [15:36:00]OFD Sender: To server: pG, [15:36:00]CommunicateWithHost lk.salyk.kg:30040 [15:36:00]ConnectInit lk.salyk.kg [15:36:00]written 0, free lines is 4095 [15:36:00]Connected sock=10 [15:36:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D0 75 04 01 B2 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 60 4D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 81 02 00 35 04 06 00 2D D1 B1 36 CA 2D FE 52 8B FC DB 58 32 0C [15:36:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 92 EF 47 00 2B 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 34 37 31 38 10 04 04 00 B5 81 02 00 F4 03 04 00 F4 F3 90 66 B6 04 01 00 00 9E ED AB 61 95 18 E6 5D [15:36:00]CommunicateWithHost err = 0 [15:36:00]CheckOFDResponse [15:36:00]1017 (14) - 77093643461234 [15:36:00]1041 (16) - 0000000000874718 [15:36:00]1040 (4) - 164277 [15:36:00]1012 (4) - 12.07.2024 09:14 [15:36:00]1206 (1) - 0 [15:36:00]OFD Sender: Remove packet 164277 [15:36:00]ProducePacketName [15:36:00]name=ofd_packets/00164277 [15:36:00]NVStorageDeleteData [15:36:00]Write to MH i2c: 01 00 00 1B 2E 49 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 07 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 07 00 1B 2E 00 00 00 00 00 FB 0C 57 [15:36:00]RasterBufferAndPrint [15:36:00]line [15:36:00]line [15:36:00]line [15:36:00]line [15:36:00]line [15:36:00]written 0, free lines is 3329 [15:36:00]MH_Cut [15:36:00]Write to MH i2c: D1 01 00 22 2E 01 22 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: D1 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: D1 01 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: D1 01 00 22 2E 00 21 [15:36:00]Write to MH i2c: 01 00 00 23 2E 51 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:01]OFD Sender: No OFD packet to send [15:36:01]*** Cut start [15:36:01]*** Partial cut [15:36:01]*** CUTSNS_PIN = 1 [15:36:01]*** CUTSNS_PIN = 0 [15:36:01]*** Brake cut motor [15:36:02]Read from MH i2c: 01 [15:36:02]MH_I2C_Read... [15:36:02]*** Stop cut motor [15:36:02]*** Cut end [15:36:02]Read from MH i2c: 01 07 00 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: 01 07 00 23 2E 00 00 00 00 00 FF 0F 66 [15:36:02]process_action close_receipt done [15:36:02]requested_data is exist [15:36:02]produce_requested_data [15:36:02]requested_item fm.sn is exist - process it [15:36:02]wFMCommunicate request_size=4 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 11 00 00 [15:36:02]Write to MH i2c: E2 08 00 24 2E 80 11 00 00 00 00 00 00 CC [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:02]Read from MH i2c: E2 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 17 00 [15:36:02]MH_I2C_Read... [15:36:02]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 34 37 31 38 90 00 22 [15:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:36:02]wFMCommunicate OK [15:36:02]requested_item fd.num is exist - process it [15:36:02]SAM_PROTO_GetFieldsCounters [15:36:02]wFMCommunicate request_size=4 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 13 00 00 [15:36:02]Write to MH i2c: E2 08 00 25 2E 80 13 00 00 00 00 00 00 CF [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:02]Read from MH i2c: E2 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 62 00 [15:36:02]MH_I2C_Read... [15:36:02]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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:02]wFMCommunicate OK [15:36:02]SAM_PROTO_GetFieldsCounters done [15:36:02]requested_item shift.num is exist - process it [15:36:02]requested_item shift.opened is exist - process it [15:36:02]req_shift_opened [15:36:02]FM_GetShiftState [15:36:02]SAM_PROTO_GetShiftState [15:36:02]wFMCommunicate request_size=4 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 13 01 00 [15:36:02]Write to MH i2c: E2 08 00 26 2E 80 13 01 00 00 00 00 00 D1 [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:02]Read from MH i2c: E2 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 0E 00 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 0E 00 26 2E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1B [15:36:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:36:02]wFMCommunicate OK [15:36:02]SAM_PROTO_GetShiftState done [15:36:02]FM_GetShiftState done [15:36:02]req_shift_opened done [15:36:02]requested_item shift.open_date is exist - process it [15:36:02]req_shift_open_date [15:36:02]req_shift_open_date done [15:36:02]produce_requested_data done [15:36:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164277,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:36:02]process_action_free close_receipt [15:36:02]json_value_free [15:36:02]json_value_free done [15:36:02]process_json_proto returns [15:36:02]Send response to host [15:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164277,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:36:02]free response buf [15:36:02]execute_script done [15:36:02]execute_script returns [15:36:02]free content buf [15:36:02]Sock 9.Close socket [15:36:02]Sock 9.Thread stoped [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]accept exits with 7 [15:42:06]New connection [15:42:06]New thread 3066707300 created [15:42:06]Thread 3066850660 joined [15:42:06]Waiting for new connection... [15:42:06] Sock 7.Parse request [15:42:06]Sock 7.Check first char [15:42:06]Sock 7.First char is OK [15:42:06]request: POST /json_proto HTTP/1.0 [15:42:06]Method: POST [15:42:06]URL: /json_proto [15:42:06]Method is POST - this is cgi request [15:42:06]url: /json_proto [15:42:06]query_string will be loaded in cgi processing [15:42:06]execute_cgi json_proto POST (null) [15:42:06]execute_cgi path=json_proto method=POST [15:42:06]POST find Content-Length [15:42:06]Host: 172.17.56.4:8080 [15:42:06]Content-Length: 679 [15:42:06]Content-Type: application/json [15:42:06] [15:42:06]POST finish read [15:42:06]Found Content-Length = 679 [15:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:06]execute_script... [15: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)458361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:06]POST & json_proto [15:42:06]process_json_proto [15:42:06]json parsed OK: [15:42:06]protocol is kg_v1.0 [15:42:06]action value=close_receipt [15:42:06]process_action close_receipt [15:42:06]cmd_close_receipt [15:42:06]MH_GetDate [15:42:06]Write to MH i2c: F0 00 00 27 2E 44 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: F0 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: F0 09 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: F0 09 00 27 2E 00 D0 4E 91 66 C9 DC B2 64 1D [15:42:06]GetLastDocTimeStamp 1720798560 [15:42:06]current date 1720798928 [15:42:06]FM_GetShiftState [15:42:06]SAM_PROTO_GetShiftState [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 13 01 00 [15:42:06]Write to MH i2c: E2 08 00 28 2E 80 13 01 00 00 00 00 00 D3 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0E 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0E 00 28 2E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1D [15:42:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:42:06]wFMCommunicate OK [15:42:06]SAM_PROTO_GetShiftState done [15:42:06]FM_GetShiftState done [15:42:06]opened in 1720744654 [15:42:06]opened+sec_in_day 1720831054 [15:42:06]quantity*price = 100012 [15:42:06]sum+1 = 100014 [15:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 199 12.07.2024 15:42 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164278 ФПД: 68057182924830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T154208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164278&fm=68057182924830&tin=02508201610067®Number=0000000000090829&sum=100000 [15:42:07]StoreToDocumentArchive [15:42:07]shift 445 fd 164278 [15:42:07]save to /storage/0445/doc_00164278 [15:42:07]save last doc name /storage/0445/doc_00164278 to /storage/kkm_last_doc_name [15:42:07]save OK [15:42:07]Clear old archive folders... [15:42:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:42:07]tlvbuf is B6EC1930 [15:42:07]SAM_PROTO_ClearQueue [15:42:07]wFMCommunicate request_size=4 [15:42:07]MH_SAM_APDU [15:42:07]CAPDU: 80 09 00 00 [15:42:07]Write to MH i2c: E2 08 00 35 2E 80 09 00 00 00 00 00 00 D5 [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:07]Read from MH i2c: E2 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 03 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 03 00 35 2E 00 90 00 D7 [15:42:07]RAPDU: 90 00 [15:42:07]wFMCommunicate OK [15:42:07]SAM_PROTO_ClearQueue done [15:42:07]KKMCreateOFDPacket [15:42:07]OFDProtocolAddRootSTLVToBuf [15:42:07]FM_MakeSignedData [15:42:07]FM_MakeSignedData [15:42:07]SAM_PROTO_SignData [15:42:07]wFMCommunicate request_size=4 [15:42:07]MH_SAM_APDU [15:42:07]CAPDU: 80 0D 01 02 [15:42:07]Write to MH i2c: E2 08 00 36 2E 80 0D 01 02 00 00 00 00 DD [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:07]Read from MH i2c: E2 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 03 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 03 00 36 2E 00 90 00 D8 [15:42:07]RAPDU: 90 00 [15:42:07]wFMCommunicate OK [15:42:07]wFMCommunicate request_size=255 [15:42:07]MH_SAM_APDU [15:42: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 D0 4E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 81 02 00 35 04 06 00 3D E5 CC 36 [15:42:07]Write to MH i2c: E2 02 01 37 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 D0 4E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 81 02 00 35 04 06 00 3D E5 CC 36 00 00 95 [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:07]Read from MH i2c: E2 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 03 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 03 00 37 2E 00 90 00 D9 [15:42:07]RAPDU: 90 00 [15:42:07]wFMCommunicate OK [15:42:07]wFMCommunicate request_size=7 [15:42:07]MH_SAM_APDU [15:42:07]CAPDU: 80 0D 02 02 02 70 1E [15:42:07]Write to MH i2c: E2 0A 00 38 2E 80 0D 02 02 02 00 70 1E 00 00 72 [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:07]Read from MH i2c: E2 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 03 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 03 00 38 2E 00 90 00 DA [15:42:07]RAPDU: 90 00 [15:42:07]wFMCommunicate OK [15:42:07]wFMCommunicate request_size=4 [15:42:07]MH_SAM_APDU [15:42:07]CAPDU: 80 0D 03 02 [15:42:07]Write to MH i2c: E2 08 00 39 2E 80 0D 03 02 00 00 00 00 E2 [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:07]Read from MH i2c: E2 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 0B 00 [15:42:07]MH_I2C_Read... [15:42:08]Read from MH i2c: E2 0B 00 39 2E 00 CC BF AE 56 0C 81 25 34 90 00 58 [15:42:08]RAPDU: CC BF AE 56 0C 81 25 34 90 00 [15:42:08]wFMCommunicate OK [15:42:08]SAM_PROTO_SignData done [15:42:08]FM_MakeSignedData done [15:42:08]CreateOFDProtocolMessage [15:42:08]wFMCommunicate request_size=4 [15:42:08]MH_SAM_APDU [15:42:08]CAPDU: 80 11 00 00 [15:42:08]Write to MH i2c: E2 08 00 3A 2E 80 11 00 00 00 00 00 00 E2 [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:08]Read from MH i2c: E2 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: E2 17 00 [15:42:08]MH_I2C_Read... [15:42:08]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 34 37 31 38 90 00 38 [15:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:42:08]wFMCommunicate OK [15:42:08]CreateOFDProtocolMessage done [15:42:08]OFDSenderStorePacket 164278 [15:42:08]StoreOFDPacket docnum=164278 [15:42:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F6 6C 04 01 3E 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 D0 4E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 81 02 00 35 04 06 00 3D E5 CC 36 70 1E CC BF AE 56 0C 81 25 34 [15:42:08]CheckFolder [15:42:08]dirname=/storage/ofd_packets [15:42:08]CheckFolder done [15:42:08]ProducePacketName [15:42:08]name=ofd_packets/00164278 [15:42:08]NVStorageSaveData ofd_packets/00164278 [15:42:08]File name is /storage/ofd_packets/00164278 [15:42:08]Write 298 bytes [15:42:08]NVStorageSaveData done [15:42:08]OFDSenderStorePacket done [15:42:08]KKMCreateOFDPacket done [15:42:08]NVStorageSaveData kkm_last_timestamp [15:42:08]File name is /storage/kkm_last_timestamp [15:42:08]Write 4 bytes [15:42:08]NVStorageSaveData done [15:42:08]ExternCall_PrintAddStr [15:42:08]wPrintStart [15:42:08]Write to MH i2c: 01 00 00 3B 2E 69 [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 3B 2E 00 00 00 00 00 FF 0F 7E [15:42:08]RasterBufferAndPrint [15:42:08]line Счет N : (1)458361 [15:42:08]line ИНН: 02508201610067 [15:42:08]line Контрольно-Кассовый Чек [15:42:08]line ПРОДАЖА [15:42:08]line ТРК (МРК, ГНК) : 11 [15:42:08]line Товар: 2710194210 [15:42:08]line ДТ-К-5 [15:42:08]line 13.910 * 71.90 [15:42:08]line = 1000.13 [15:42:08]line НДС 12% НСП 1% [15:42:08]line > о реализуемом товаре [15:42:08]line ОКРУГЛЕНИЕ: -0.13 [15:42:08]line ИТОГО: 1000.00 [15:42:08]line Внесено: 1000.00 [15:42:08]line СДАЧА: 0.00 [15:42:08]line НСП 1% : 8.85 [15:42:08]line НДС 12% : 106.21 [15:42:08]line Наличными: 1000.00 [15:42:08]line Безнал.: 0.00 [15:42:08]line Место: АЗС № 72 "Партнер Нефть" [15:42:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:42:08]line СНО: Общий режим [15:42:08]line Чек 199 12.07.2024 15:42 [15:42:08]line Смена: 445 ФФД: 1.0 [15:42:08]line ЗНМ: 0300000160 [15:42:08]line РНМ: 0000000000090829 [15:42:08]line Версия ККМ: 001 [15:42:08]line ФМ: 0000000000874718 [15:42:08]line ФД: 164278 [15:42:08]line ФПД: 68057182924830 [15:42:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T154208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164278&fm=68057182924830&tin=02508201610067®Number=0000000000090829&sum=100000 [15:42:08]OFD Sender: Processing packet 164278 [packets to send 104, broken 103] [15:42:08]ProducePacketName [15:42:08]name=ofd_packets/00164278 [15:42:08]OFD Sender: To server: pG, [15:42:08]CommunicateWithHost lk.salyk.kg:30040 [15:42:08]ConnectInit lk.salyk.kg [15:42:08]written 0, free lines is 4095 [15:42:08]Connected sock=10 [15: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 34 37 31 38 0C 01 00 00 F6 6C 04 01 3E 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 D0 4E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 81 02 00 35 04 06 00 3D E5 CC 36 70 1E CC BF AE 56 0C 81 25 34 [15:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1C D9 47 00 B5 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 34 37 31 38 10 04 04 00 B6 81 02 00 F4 03 04 00 64 F5 90 66 B6 04 01 00 00 3D 87 18 E5 BC 7E 6E 18 [15:42:08]CommunicateWithHost err = 0 [15:42:08]CheckOFDResponse [15:42:08]1017 (14) - 77093643461234 [15:42:08]1041 (16) - 0000000000874718 [15:42:08]1040 (4) - 164278 [15:42:08]1012 (4) - 12.07.2024 09:20 [15:42:08]1206 (1) - 0 [15:42:08]OFD Sender: Remove packet 164278 [15:42:08]ProducePacketName [15:42:08]name=ofd_packets/00164278 [15:42:08]NVStorageDeleteData [15:42:08]Write to MH i2c: 01 00 00 65 2E 93 [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 65 2E 00 00 00 00 00 FE 0C A4 [15:42:08]RasterBufferAndPrint [15:42:08]line [15:42:08]line [15:42:08]line [15:42:08]line [15:42:08]line [15:42:08]written 0, free lines is 3332 [15:42:08]MH_Cut [15:42:08]Write to MH i2c: D1 01 00 6C 2E 01 6C [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: D1 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: D1 01 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: D1 01 00 6C 2E 00 6B [15:42:08]Write to MH i2c: 01 00 00 6D 2E 9B [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:09]OFD Sender: No OFD packet to send [15:42:09]*** Cut start [15:42:09]*** Partial cut [15:42:09]*** CUTSNS_PIN = 1 [15:42:09]*** CUTSNS_PIN = 0 [15:42:09]*** Brake cut motor [15:42:10]Read from MH i2c: 01 [15:42:10]MH_I2C_Read... [15:42:10]*** Stop cut motor [15:42:10]*** Cut end [15:42:10]Read from MH i2c: 01 07 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: 01 07 00 6D 2E 00 00 00 00 00 FF 0F B0 [15:42:10]process_action close_receipt done [15:42:10]requested_data is exist [15:42:10]produce_requested_data [15:42:10]requested_item fm.sn is exist - process it [15:42:10]wFMCommunicate request_size=4 [15:42:10]MH_SAM_APDU [15:42:10]CAPDU: 80 11 00 00 [15:42:10]Write to MH i2c: E2 08 00 6E 2E 80 11 00 00 00 00 00 00 16 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:10]Read from MH i2c: E2 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 17 00 [15:42:10]MH_I2C_Read... [15:42:10]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 34 37 31 38 90 00 6C [15:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:42:10]wFMCommunicate OK [15:42:10]requested_item fd.num is exist - process it [15:42:10]SAM_PROTO_GetFieldsCounters [15:42:10]wFMCommunicate request_size=4 [15:42:10]MH_SAM_APDU [15:42:10]CAPDU: 80 13 00 00 [15:42:10]Write to MH i2c: E2 08 00 6F 2E 80 13 00 00 00 00 00 00 19 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:10]Read from MH i2c: E2 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 62 00 [15:42:10]MH_I2C_Read... [15:42:10]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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:10]wFMCommunicate OK [15:42:10]SAM_PROTO_GetFieldsCounters done [15:42:10]requested_item shift.num is exist - process it [15:42:10]requested_item shift.opened is exist - process it [15:42:10]req_shift_opened [15:42:10]FM_GetShiftState [15:42:10]SAM_PROTO_GetShiftState [15:42:10]wFMCommunicate request_size=4 [15:42:10]MH_SAM_APDU [15:42:10]CAPDU: 80 13 01 00 [15:42:10]Write to MH i2c: E2 08 00 70 2E 80 13 01 00 00 00 00 00 1B [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:10]Read from MH i2c: E2 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 0E 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 0E 00 70 2E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 65 [15:42:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:42:10]wFMCommunicate OK [15:42:10]SAM_PROTO_GetShiftState done [15:42:10]FM_GetShiftState done [15:42:10]req_shift_opened done [15:42:10]requested_item shift.open_date is exist - process it [15:42:10]req_shift_open_date [15:42:10]req_shift_open_date done [15:42:10]produce_requested_data done [15:42:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164278,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:42:10]process_action_free close_receipt [15:42:10]json_value_free [15:42:10]json_value_free done [15:42:10]process_json_proto returns [15:42:10]Send response to host [15:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164278,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:42:10]free response buf [15:42:10]execute_script done [15:42:10]execute_script returns [15:42:10]free content buf [15:42:10]Sock 7.Close socket [15:42:10]Sock 7.Thread stoped [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:12]accept exits with 9 [15:44:12]New connection [15:44:12]New thread 3066850660 created [15:44:12]Thread 3066707300 joined [15:44:12]Waiting for new connection... [15:44:12] Sock 9.Parse request [15:44:12]Sock 9.Check first char [15:44:12]Sock 9.First char is OK [15:44:12]request: POST /json_proto HTTP/1.0 [15:44:12]Method: POST [15:44:12]URL: /json_proto [15:44:12]Method is POST - this is cgi request [15:44:12]url: /json_proto [15:44:12]query_string will be loaded in cgi processing [15:44:12]execute_cgi json_proto POST (null) [15:44:12]execute_cgi path=json_proto method=POST [15:44:12]POST find Content-Length [15:44:12]Host: 172.17.56.4:8080 [15:44:12]Content-Length: 677 [15:44:12]Content-Type: application/json [15:44:12] [15:44:12]POST finish read [15:44:12]Found Content-Length = 677 [15:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.780, "sum" : 380.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:12]execute_script... [15:44: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)458362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.780, "sum" : 380.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:12]POST & json_proto [15:44:12]process_json_proto [15:44:12]json parsed OK: [15:44:12]protocol is kg_v1.0 [15:44:12]action value=close_receipt [15:44:12]process_action close_receipt [15:44:12]cmd_close_receipt [15:44:12]MH_GetDate [15:44:12]Write to MH i2c: F0 00 00 71 2E 8E [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: F0 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: F0 09 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: F0 09 00 71 2E 00 4E 4F 91 66 C9 DC B2 64 E6 [15:44:12]GetLastDocTimeStamp 1720798928 [15:44:12]current date 1720799054 [15:44:12]FM_GetShiftState [15:44:12]SAM_PROTO_GetShiftState [15:44:12]wFMCommunicate request_size=4 [15:44:12]MH_SAM_APDU [15:44:12]CAPDU: 80 13 01 00 [15:44:12]Write to MH i2c: E2 08 00 72 2E 80 13 01 00 00 00 00 00 1D [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:12]Read from MH i2c: E2 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 0E 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 0E 00 72 2E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 67 [15:44:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:44:12]wFMCommunicate OK [15:44:12]SAM_PROTO_GetShiftState done [15:44:12]FM_GetShiftState done [15:44:12]opened in 1720744654 [15:44:12]opened+sec_in_day 1720831054 [15:44:12]quantity*price = 38032 [15:44:12]sum+1 = 38033 [15:44:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.39 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 200 12.07.2024 15:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164279 ФПД: 190990702074782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T154414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164279&fm=190990702074782&tin=02508201610067®Number=0000000000090829&sum=38000 [15:44:13]StoreToDocumentArchive [15:44:13]shift 445 fd 164279 [15:44:13]save to /storage/0445/doc_00164279 [15:44:13]save last doc name /storage/0445/doc_00164279 to /storage/kkm_last_doc_name [15:44:13]save OK [15:44:13]Clear old archive folders... [15:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:13]tlvbuf is 00A172A0 [15:44:13]SAM_PROTO_ClearQueue [15:44:13]wFMCommunicate request_size=4 [15:44:13]MH_SAM_APDU [15:44:13]CAPDU: 80 09 00 00 [15:44:13]Write to MH i2c: E2 08 00 7F 2E 80 09 00 00 00 00 00 00 1F [15:44:13]Write i2c OK [15:44:13]MH_I2C_Read... [15:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:13]Read from MH i2c: E2 [15:44:13]MH_I2C_Read... [15:44:13]Read from MH i2c: E2 03 00 [15:44:13]MH_I2C_Read... [15:44:13]Read from MH i2c: E2 03 00 7F 2E 00 90 00 21 [15:44:13]RAPDU: 90 00 [15:44:13]wFMCommunicate OK [15:44:13]SAM_PROTO_ClearQueue done [15:44:13]KKMCreateOFDPacket [15:44:13]OFDProtocolAddRootSTLVToBuf [15:44:13]FM_MakeSignedData [15:44:13]FM_MakeSignedData [15:44:13]SAM_PROTO_SignData [15:44:13]wFMCommunicate request_size=4 [15:44:13]MH_SAM_APDU [15:44:13]CAPDU: 80 0D 01 02 [15:44:13]Write to MH i2c: E2 08 00 80 2E 80 0D 01 02 00 00 00 00 27 [15:44:13]Write i2c OK [15:44:13]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 80 2E 00 90 00 22 [15:44:14]RAPDU: 90 00 [15:44:14]wFMCommunicate OK [15:44:14]wFMCommunicate request_size=255 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 90 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 4E 4F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 81 02 00 35 04 06 00 AD [15:44:14]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 94 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 90 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 4E 4F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 81 02 00 35 04 06 00 AD 00 00 03 [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 81 2E 00 90 00 23 [15:44:14]RAPDU: 90 00 [15:44:14]wFMCommunicate OK [15:44:14]wFMCommunicate request_size=10 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 0D 02 02 05 B4 7C F3 DB 9E [15:44:14]Write to MH i2c: E2 0D 00 82 2E 80 0D 02 02 05 00 B4 7C F3 DB 9E 00 00 D0 [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 82 2E 00 90 00 24 [15:44:14]RAPDU: 90 00 [15:44:14]wFMCommunicate OK [15:44:14]wFMCommunicate request_size=4 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 0D 03 02 [15:44:14]Write to MH i2c: E2 08 00 83 2E 80 0D 03 02 00 00 00 00 2C [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]OFD Sender: No OFD packet to send [15:44:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 0B 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 0B 00 83 2E 00 DA 52 81 0C 19 4E DE C6 90 00 F1 [15:44:14]RAPDU: DA 52 81 0C 19 4E DE C6 90 00 [15:44:14]wFMCommunicate OK [15:44:14]SAM_PROTO_SignData done [15:44:14]FM_MakeSignedData done [15:44:14]CreateOFDProtocolMessage [15:44:14]wFMCommunicate request_size=4 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 11 00 00 [15:44:14]Write to MH i2c: E2 08 00 84 2E 80 11 00 00 00 00 00 00 2C [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 17 00 [15:44:14]MH_I2C_Read... [15:44:14]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 34 37 31 38 90 00 82 [15:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:44:14]wFMCommunicate OK [15:44:14]CreateOFDProtocolMessage done [15:44:14]OFDSenderStorePacket 164279 [15:44:14]StoreOFDPacket docnum=164279 [15:44:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC AE 07 01 58 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 94 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 90 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 4E 4F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 81 02 00 35 04 06 00 AD B4 7C F3 DB 9E DA 52 81 0C 19 4E DE C6 [15:44:14]CheckFolder [15:44:14]dirname=/storage/ofd_packets [15:44:14]CheckFolder done [15:44:14]ProducePacketName [15:44:14]name=ofd_packets/00164279 [15:44:14]NVStorageSaveData ofd_packets/00164279 [15:44:14]File name is /storage/ofd_packets/00164279 [15:44:14]Write 301 bytes [15:44:14]NVStorageSaveData done [15:44:14]OFDSenderStorePacket done [15:44:14]KKMCreateOFDPacket done [15:44:14]NVStorageSaveData kkm_last_timestamp [15:44:14]File name is /storage/kkm_last_timestamp [15:44:14]Write 4 bytes [15:44:14]NVStorageSaveData done [15:44:14]ExternCall_PrintAddStr [15:44:14]wPrintStart [15:44:14]Write to MH i2c: 01 00 00 85 2E B3 [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 07 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 07 00 85 2E 00 00 00 00 00 FF 0F C8 [15:44:14]RasterBufferAndPrint [15:44:14]line Счет N : (1)458362 [15:44:14]line ИНН: 02508201610067 [15:44:14]line Контрольно-Кассовый Чек [15:44:14]line ПРОДАЖА [15:44:14]line ТРК (МРК, ГНК) : 12 [15:44:14]line Товар: 2710124130 [15:44:14]line Аи-92-К-5 [15:44:14]line 5.780 * 65.80 [15:44:14]line = 380.32 [15:44:14]line НДС 12% НСП 1% [15:44:14]line > о реализуемом товаре [15:44:14]line ОКРУГЛЕНИЕ: -0.32 [15:44:14]line ИТОГО: 380.00 [15:44:14]line Внесено: 380.00 [15:44:14]line СДАЧА: 0.00 [15:44:14]line НСП 1% : 3.37 [15:44:14]line НДС 12% : 40.39 [15:44:14]line Наличными: 380.00 [15:44:14]line Безнал.: 0.00 [15:44:14]line Место: АЗС № 72 "Партнер Нефть" [15:44:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:44:14]line СНО: Общий режим [15:44:14]line Чек 200 12.07.2024 15:44 [15:44:14]line Смена: 445 ФФД: 1.0 [15:44:14]line ЗНМ: 0300000160 [15:44:14]line РНМ: 0000000000090829 [15:44:14]line Версия ККМ: 001 [15:44:14]line ФМ: 0000000000874718 [15:44:14]line ФД: 164279 [15:44:14]line ФПД: 190990702074782 [15:44:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T154414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164279&fm=190990702074782&tin=02508201610067®Number=0000000000090829&sum=38000 [15:44:14]OFD Sender: Processing packet 164279 [packets to send 104, broken 103] [15:44:14]ProducePacketName [15:44:14]name=ofd_packets/00164279 [15:44:14]OFD Sender: To server: pG, [15:44:14]CommunicateWithHost lk.salyk.kg:30040 [15:44:14]ConnectInit lk.salyk.kg [15:44:14]written 0, free lines is 4095 [15:44:14]Write to MH i2c: 01 00 00 AF 2E DD [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 07 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 07 00 AF 2E 00 00 00 00 00 F8 0C E8 [15:44:14]RasterBufferAndPrint [15:44:14]line [15:44:14]line [15:44:14]line [15:44:14]line [15:44:14]line [15:44:14]written 0, free lines is 3327 [15:44:14]MH_Cut [15:44:14]Write to MH i2c: D1 01 00 B6 2E 01 B6 [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: D1 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: D1 01 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: D1 01 00 B6 2E 00 B5 [15:44:14]Write to MH i2c: 01 00 00 B7 2E E5 [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:15]*** Cut start [15:44:15]*** Partial cut [15:44:15]*** CUTSNS_PIN = 1 [15:44:15]*** CUTSNS_PIN = 0 [15:44:15]*** Brake cut motor [15:44:16]Read from MH i2c: 01 [15:44:16]MH_I2C_Read... [15:44:16]*** Stop cut motor [15:44:16]*** Cut end [15:44:16]Read from MH i2c: 01 07 00 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: 01 07 00 B7 2E 00 00 00 00 00 FF 0F FA [15:44:16]process_action close_receipt done [15:44:16]requested_data is exist [15:44:16]produce_requested_data [15:44:16]requested_item fm.sn is exist - process it [15:44:16]wFMCommunicate request_size=4 [15:44:16]MH_SAM_APDU [15:44:16]CAPDU: 80 11 00 00 [15:44:16]Write to MH i2c: E2 08 00 B8 2E 80 11 00 00 00 00 00 00 60 [15:44:16]Write i2c OK [15:44:16]MH_I2C_Read... [15:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:16]Read from MH i2c: E2 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 17 00 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 17 00 B8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [15:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:44:16]wFMCommunicate OK [15:44:16]requested_item fd.num is exist - process it [15:44:16]SAM_PROTO_GetFieldsCounters [15:44:16]wFMCommunicate request_size=4 [15:44:16]MH_SAM_APDU [15:44:16]CAPDU: 80 13 00 00 [15:44:16]Write to MH i2c: E2 08 00 B9 2E 80 13 00 00 00 00 00 00 63 [15:44:16]Write i2c OK [15:44:16]MH_I2C_Read... [15:44:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:16]Read from MH i2c: E2 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 62 00 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 62 00 B9 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [15:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:16]wFMCommunicate OK [15:44:16]SAM_PROTO_GetFieldsCounters done [15:44:16]requested_item shift.num is exist - process it [15:44:16]requested_item shift.opened is exist - process it [15:44:16]req_shift_opened [15:44:16]FM_GetShiftState [15:44:16]SAM_PROTO_GetShiftState [15:44:16]wFMCommunicate request_size=4 [15:44:16]MH_SAM_APDU [15:44:16]CAPDU: 80 13 01 00 [15:44:16]Write to MH i2c: E2 08 00 BA 2E 80 13 01 00 00 00 00 00 65 [15:44:16]Write i2c OK [15:44:16]MH_I2C_Read... [15:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:16]Read from MH i2c: E2 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 0E 00 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 0E 00 BA 2E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AF [15:44:16]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:44:16]wFMCommunicate OK [15:44:16]SAM_PROTO_GetShiftState done [15:44:16]FM_GetShiftState done [15:44:16]req_shift_opened done [15:44:16]requested_item shift.open_date is exist - process it [15:44:16]req_shift_open_date [15:44:16]req_shift_open_date done [15:44:16]produce_requested_data done [15:44:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164279,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:44:16]process_action_free close_receipt [15:44:16]json_value_free [15:44:16]json_value_free done [15:44:16]process_json_proto returns [15:44:16]Send response to host [15:44:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164279,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:44:16]free response buf [15:44:16]execute_script done [15:44:16]execute_script returns [15:44:16]free content buf [15:44:16]Sock 9.Close socket [15:44:16]Sock 9.Thread stoped [15:46:26]ConnectInit Can't connect to host [15:46:26]CommunicateWithHost connect error [15:46:26]CommunicateWithHost err = -1 [15:46:26]OFD Sender: Server communicate error [15:46:31]OFD Sender: Processing packet 164279 [packets to send 104, broken 103] [15:46:31]ProducePacketName [15:46:31]name=ofd_packets/00164279 [15:46:31]OFD Sender: To server: pG, [15:46:31]CommunicateWithHost lk.salyk.kg:30040 [15:46:31]ConnectInit lk.salyk.kg [15:46:31]Connected sock=9 [15:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC AE 07 01 58 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 94 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 90 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 4E 4F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 81 02 00 35 04 06 00 AD B4 7C F3 DB 9E DA 52 81 0C 19 4E DE C6 [15:46:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 ED 6C 47 00 C6 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 81 02 00 F4 03 04 00 6B F6 90 66 B6 04 01 00 00 38 AA 94 7E EC 5D 88 44 [15:46:31]CommunicateWithHost err = 0 [15:46:31]CheckOFDResponse [15:46:31]1017 (14) - 77093643461234 [15:46:31]1041 (16) - 0000000000874718 [15:46:31]1040 (4) - 164279 [15:46:31]1012 (4) - 12.07.2024 09:24 [15:46:31]1206 (1) - 0 [15:46:31]OFD Sender: Remove packet 164279 [15:46:31]ProducePacketName [15:46:31]name=ofd_packets/00164279 [15:46:31]NVStorageDeleteData [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]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:52]accept exits with 7 [15:51:52]New connection [15:51:52]New thread 3066707300 created [15:51:52]Thread 3066850660 joined [15:51:52]Waiting for new connection... [15:51:52] Sock 7.Parse request [15:51:52]Sock 7.Check first char [15:51:52]Sock 7.First char is OK [15:51:52]request: POST /json_proto HTTP/1.0 [15:51:52]Method: POST [15:51:52]URL: /json_proto [15:51:52]Method is POST - this is cgi request [15:51:52]url: /json_proto [15:51:52]query_string will be loaded in cgi processing [15:51:52]execute_cgi json_proto POST (null) [15:51:52]execute_cgi path=json_proto method=POST [15:51:52]POST find Content-Length [15:51:52]Host: 172.17.56.4:8080 [15:51:52]Content-Length: 682 [15:51:52]Content-Type: application/json [15:51:52] [15:51:52]POST finish read [15:51:52]Found Content-Length = 682 [15:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:51:52]execute_script... [15:51: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)458363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:51:52]POST & json_proto [15:51:52]process_json_proto [15:51:52]json parsed OK: [15:51:52]protocol is kg_v1.0 [15:51:52]action value=close_receipt [15:51:52]process_action close_receipt [15:51:52]cmd_close_receipt [15:51:52]MH_GetDate [15:51:52]Write to MH i2c: F0 00 00 BB 2E D8 [15:51:52]Write i2c OK [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: F0 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: F0 09 00 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: F0 09 00 BB 2E 00 1A 51 91 66 C9 DC B2 64 FE [15:51:52]GetLastDocTimeStamp 1720799054 [15:51:52]current date 1720799514 [15:51:52]FM_GetShiftState [15:51:52]SAM_PROTO_GetShiftState [15:51:52]wFMCommunicate request_size=4 [15:51:52]MH_SAM_APDU [15:51:52]CAPDU: 80 13 01 00 [15:51:52]Write to MH i2c: E2 08 00 BC 2E 80 13 01 00 00 00 00 00 67 [15:51:52]Write i2c OK [15:51:52]MH_I2C_Read... [15:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:52]Read from MH i2c: E2 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: E2 0E 00 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: E2 0E 00 BC 2E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B1 [15:51:52]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:51:52]wFMCommunicate OK [15:51:52]SAM_PROTO_GetShiftState done [15:51:52]FM_GetShiftState done [15:51:52]opened in 1720744654 [15:51:52]opened+sec_in_day 1720831054 [15:51:52]quantity*price = 100016 [15:51:52]sum+1 = 100017 [15:51:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 201 12.07.2024 15:51 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164280 ФПД: 54393070801181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T155154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164280&fm=54393070801181&tin=02508201610067®Number=0000000000090829&sum=100000 [15:51:53]StoreToDocumentArchive [15:51:53]shift 445 fd 164280 [15:51:53]save to /storage/0445/doc_00164280 [15:51:53]save last doc name /storage/0445/doc_00164280 to /storage/kkm_last_doc_name [15:51:53]save OK [15:51:53]Clear old archive folders... [15:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:53]tlvbuf is B6F3C800 [15:51:53]SAM_PROTO_ClearQueue [15:51:53]wFMCommunicate request_size=4 [15:51:53]MH_SAM_APDU [15:51:53]CAPDU: 80 09 00 00 [15:51:53]Write to MH i2c: E2 08 00 C9 2E 80 09 00 00 00 00 00 00 69 [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:53]Read from MH i2c: E2 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 03 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 03 00 C9 2E 00 90 00 6B [15:51:53]RAPDU: 90 00 [15:51:53]wFMCommunicate OK [15:51:53]SAM_PROTO_ClearQueue done [15:51:53]KKMCreateOFDPacket [15:51:53]OFDProtocolAddRootSTLVToBuf [15:51:53]FM_MakeSignedData [15:51:53]FM_MakeSignedData [15:51:53]SAM_PROTO_SignData [15:51:53]wFMCommunicate request_size=4 [15:51:53]MH_SAM_APDU [15:51:53]CAPDU: 80 0D 01 02 [15:51:53]Write to MH i2c: E2 08 00 CA 2E 80 0D 01 02 00 00 00 00 71 [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:53]Read from MH i2c: E2 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 03 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 03 00 CA 2E 00 90 00 6C [15:51:53]RAPDU: 90 00 [15:51:53]wFMCommunicate OK [15:51:53]wFMCommunicate request_size=255 [15:51:53]MH_SAM_APDU [15:51: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 1A 51 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 81 02 00 35 04 06 00 31 [15:51:53]Write to MH i2c: E2 02 01 CB 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 1A 51 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 81 02 00 35 04 06 00 31 00 00 E1 [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 CB 2E 00 90 00 6D [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]wFMCommunicate request_size=10 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 0D 02 02 05 78 5F A9 D1 1D [15:51:54]Write to MH i2c: E2 0D 00 CC 2E 80 0D 02 02 05 00 78 5F A9 D1 1D 00 00 EC [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 CC 2E 00 90 00 6E [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 0D 03 02 [15:51:54]Write to MH i2c: E2 08 00 CD 2E 80 0D 03 02 00 00 00 00 76 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 0B 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 0B 00 CD 2E 00 E6 DE 26 92 F1 EC D0 C0 90 00 60 [15:51:54]RAPDU: E6 DE 26 92 F1 EC D0 C0 90 00 [15:51:54]wFMCommunicate OK [15:51:54]SAM_PROTO_SignData done [15:51:54]FM_MakeSignedData done [15:51:54]CreateOFDProtocolMessage [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 11 00 00 [15:51:54]Write to MH i2c: E2 08 00 CE 2E 80 11 00 00 00 00 00 00 76 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 17 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 17 00 CE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [15:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:51:54]wFMCommunicate OK [15:51:54]CreateOFDProtocolMessage done [15:51:54]OFDSenderStorePacket 164280 [15:51:54]StoreOFDPacket docnum=164280 [15:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 34 07 01 0F 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 1A 51 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 81 02 00 35 04 06 00 31 78 5F A9 D1 1D E6 DE 26 92 F1 EC D0 C0 [15:51:54]CheckFolder [15:51:54]dirname=/storage/ofd_packets [15:51:54]CheckFolder done [15:51:54]ProducePacketName [15:51:54]name=ofd_packets/00164280 [15:51:54]NVStorageSaveData ofd_packets/00164280 [15:51:54]File name is /storage/ofd_packets/00164280 [15:51:54]Write 301 bytes [15:51:54]NVStorageSaveData done [15:51:54]OFDSenderStorePacket done [15:51:54]KKMCreateOFDPacket done [15:51:54]NVStorageSaveData kkm_last_timestamp [15:51:54]File name is /storage/kkm_last_timestamp [15:51:54]Write 4 bytes [15:51:54]OFD Sender: Processing packet 164280 [packets to send 104, broken 103] [15:51:54]ProducePacketName [15:51:54]name=ofd_packets/00164280 [15:51:54]OFD Sender: To server: pG, [15:51:54]CommunicateWithHost lk.salyk.kg:30040 [15:51:54]ConnectInit lk.salyk.kg [15:51:54]NVStorageSaveData done [15:51:54]ExternCall_PrintAddStr [15:51:54]wPrintStart [15:51:54]Write to MH i2c: 01 00 00 CF 2E FD [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: 01 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: 01 07 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: 01 07 00 CF 2E 00 00 00 00 00 FF 0F 12 [15:51:54]RasterBufferAndPrint [15:51:54]line Счет N : (1)458363 [15:51:54]line ИНН: 02508201610067 [15:51:54]line Контрольно-Кассовый Чек [15:51:54]line ПРОДАЖА [15:51:54]line ТРК (МРК, ГНК) : 12 [15:51:54]line Товар: 2710124130 [15:51:54]line Аи-92-К-5 [15:51:54]line 15.200 * 65.80 [15:51:54]line = 1000.16 [15:51:54]line НДС 12% НСП 1% [15:51:54]line > о реализуемом товаре [15:51:54]line ОКРУГЛЕНИЕ: -0.16 [15:51:54]line ИТОГО: 1000.00 [15:51:54]line Внесено: 1000.00 [15:51:54]line СДАЧА: 0.00 [15:51:54]line НСП 1% : 8.85 [15:51:54]line НДС 12% : 106.21 [15:51:54]line Наличными: 1000.00 [15:51:54]line Безнал.: 0.00 [15:51:54]line Место: АЗС № 72 "Партнер Нефть" [15:51:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:51:54]line СНО: Общий режим [15:51:54]line Чек 201 12.07.2024 15:51 [15:51:54]line Смена: 445 ФФД: 1.0 [15:51:54]line ЗНМ: 0300000160 [15:51:54]line РНМ: 0000000000090829 [15:51:54]line Версия ККМ: 001 [15:51:54]line ФМ: 0000000000874718 [15:51:54]line ФД: 164280 [15:51:54]line ФПД: 54393070801181 [15:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T155154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164280&fm=54393070801181&tin=02508201610067®Number=0000000000090829&sum=100000 [15:51:54]written 0, free lines is 4095 [15:51:54]Connected sock=11 [15:51:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 34 07 01 0F 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 1A 51 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 81 02 00 35 04 06 00 31 78 5F A9 D1 1D E6 DE 26 92 F1 EC D0 C0 [15:51:54]Write to MH i2c: 01 00 00 F9 2E 27 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: 01 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: 01 07 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: 01 07 00 F9 2E 00 00 00 00 00 FC 0C 36 [15:51:54]RasterBufferAndPrint [15:51:54]line [15:51:54]line [15:51:54]line [15:51:54]line [15:51:54]line [15:51:54]written 0, free lines is 3330 [15:51:54]MH_Cut [15:51:54]Write to MH i2c: D1 01 00 00 2F 01 01 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: D1 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: D1 01 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: D1 01 00 00 2F 00 00 [15:51:54]Write to MH i2c: 01 00 00 01 2F 30 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB EB 47 00 36 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 81 02 00 F4 03 04 00 AE F7 90 66 B6 04 01 00 00 13 01 AD 35 08 A0 31 68 [15:51:54]CommunicateWithHost err = 0 [15:51:54]CheckOFDResponse [15:51:54]1017 (14) - 77093643461234 [15:51:54]1041 (16) - 0000000000874718 [15:51:54]1040 (4) - 164280 [15:51:54]1012 (4) - 12.07.2024 09:30 [15:51:54]1206 (1) - 0 [15:51:54]OFD Sender: Remove packet 164280 [15:51:54]ProducePacketName [15:51:54]name=ofd_packets/00164280 [15:51:54]NVStorageDeleteData [15:51:55]OFD Sender: No OFD packet to send [15:51:55]*** Cut start [15:51:55]*** Partial cut [15:51:55]*** CUTSNS_PIN = 1 [15:51:55]*** CUTSNS_PIN = 0 [15:51:55]*** Brake cut motor [15:51:56]Read from MH i2c: 01 [15:51:56]MH_I2C_Read... [15:51:56]*** Stop cut motor [15:51:56]*** Cut end [15:51:56]Read from MH i2c: 01 07 00 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: 01 07 00 01 2F 00 00 00 00 00 FF 0F 45 [15:51:56]process_action close_receipt done [15:51:56]requested_data is exist [15:51:56]produce_requested_data [15:51:56]requested_item fm.sn is exist - process it [15:51:56]wFMCommunicate request_size=4 [15:51:56]MH_SAM_APDU [15:51:56]CAPDU: 80 11 00 00 [15:51:56]Write to MH i2c: E2 08 00 02 2F 80 11 00 00 00 00 00 00 AB [15:51:56]Write i2c OK [15:51:56]MH_I2C_Read... [15:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:56]Read from MH i2c: E2 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 17 00 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 17 00 02 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 01 [15:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:51:56]wFMCommunicate OK [15:51:56]requested_item fd.num is exist - process it [15:51:56]SAM_PROTO_GetFieldsCounters [15:51:56]wFMCommunicate request_size=4 [15:51:56]MH_SAM_APDU [15:51:56]CAPDU: 80 13 00 00 [15:51:56]Write to MH i2c: E2 08 00 03 2F 80 13 00 00 00 00 00 00 AE [15:51:56]Write i2c OK [15:51:56]MH_I2C_Read... [15:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:56]Read from MH i2c: E2 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 62 00 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 62 00 03 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [15:51: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:56]wFMCommunicate OK [15:51:56]SAM_PROTO_GetFieldsCounters done [15:51:56]requested_item shift.num is exist - process it [15:51:56]requested_item shift.opened is exist - process it [15:51:56]req_shift_opened [15:51:56]FM_GetShiftState [15:51:56]SAM_PROTO_GetShiftState [15:51:56]wFMCommunicate request_size=4 [15:51:56]MH_SAM_APDU [15:51:56]CAPDU: 80 13 01 00 [15:51:56]Write to MH i2c: E2 08 00 04 2F 80 13 01 00 00 00 00 00 B0 [15:51:56]Write i2c OK [15:51:56]MH_I2C_Read... [15:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:56]Read from MH i2c: E2 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 0E 00 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 0E 00 04 2F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FA [15:51:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:51:56]wFMCommunicate OK [15:51:56]SAM_PROTO_GetShiftState done [15:51:56]FM_GetShiftState done [15:51:56]req_shift_opened done [15:51:56]requested_item shift.open_date is exist - process it [15:51:56]req_shift_open_date [15:51:56]req_shift_open_date done [15:51:56]produce_requested_data done [15:51:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164280,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:51:56]process_action_free close_receipt [15:51:56]json_value_free [15:51:56]json_value_free done [15:51:56]process_json_proto returns [15:51:56]Send response to host [15:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164280,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:51:56]free response buf [15:51:56]execute_script done [15:51:56]execute_script returns [15:51:56]free content buf [15:51:56]Sock 7.Close socket [15:51:56]Sock 7.Thread stoped [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:46]accept exits with 9 [15:52:46]New connection [15:52:46]New thread 3066850660 created [15:52:46]Thread 3066707300 joined [15:52:46]Waiting for new connection... [15:52:46] Sock 9.Parse request [15:52:46]Sock 9.Check first char [15:52:46]Sock 9.First char is OK [15:52:46]request: POST /json_proto HTTP/1.0 [15:52:46]Method: POST [15:52:46]URL: /json_proto [15:52:46]Method is POST - this is cgi request [15:52:46]url: /json_proto [15:52:46]query_string will be loaded in cgi processing [15:52:46]execute_cgi json_proto POST (null) [15:52:46]execute_cgi path=json_proto method=POST [15:52:46]POST find Content-Length [15:52:46]Host: 172.17.56.4:8080 [15:52:46]Content-Length: 682 [15:52:46]Content-Type: application/json [15:52:46] [15:52:46]POST finish read [15:52:46]Found Content-Length = 682 [15:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:52:46]execute_script... [15:52:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:52:46]POST & json_proto [15:52:46]process_json_proto [15:52:46]json parsed OK: [15:52:46]protocol is kg_v1.0 [15:52:46]action value=close_receipt [15:52:46]process_action close_receipt [15:52:46]cmd_close_receipt [15:52:46]MH_GetDate [15:52:46]Write to MH i2c: F0 00 00 05 2F 23 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: F0 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: F0 09 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: F0 09 00 05 2F 00 50 51 91 66 C9 DC B2 64 7F [15:52:46]GetLastDocTimeStamp 1720799514 [15:52:46]current date 1720799568 [15:52:46]FM_GetShiftState [15:52:46]SAM_PROTO_GetShiftState [15:52:46]wFMCommunicate request_size=4 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 13 01 00 [15:52:46]Write to MH i2c: E2 08 00 06 2F 80 13 01 00 00 00 00 00 B2 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 0E 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 0E 00 06 2F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FC [15:52:46]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:52:46]wFMCommunicate OK [15:52:46]SAM_PROTO_GetShiftState done [15:52:46]FM_GetShiftState done [15:52:46]opened in 1720744654 [15:52:46]opened+sec_in_day 1720831054 [15:52:46]quantity*price = 100016 [15:52:46]sum+1 = 100017 [15:52:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 202 12.07.2024 15:52 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164281 ФПД: 51055140594716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T155248&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164281&fm=51055140594716&tin=02508201610067®Number=0000000000090829&sum=100000 [15:52:47]StoreToDocumentArchive [15:52:47]shift 445 fd 164281 [15:52:47]save to /storage/0445/doc_00164281 [15:52:47]save last doc name /storage/0445/doc_00164281 to /storage/kkm_last_doc_name [15:52:47]save OK [15:52:47]Clear old archive folders... [15:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:47]tlvbuf is 00AB3220 [15:52:47]SAM_PROTO_ClearQueue [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 09 00 00 [15:52:47]Write to MH i2c: E2 08 00 13 2F 80 09 00 00 00 00 00 00 B4 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 13 2F 00 90 00 B6 [15:52:47]RAPDU: 90 00 [15:52:47]wFMCommunicate OK [15:52:47]SAM_PROTO_ClearQueue done [15:52:47]KKMCreateOFDPacket [15:52:47]OFDProtocolAddRootSTLVToBuf [15:52:47]FM_MakeSignedData [15:52:47]FM_MakeSignedData [15:52:47]SAM_PROTO_SignData [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 0D 01 02 [15:52:47]Write to MH i2c: E2 08 00 14 2F 80 0D 01 02 00 00 00 00 BC [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 14 2F 00 90 00 B7 [15:52:47]RAPDU: 90 00 [15:52:47]wFMCommunicate OK [15:52:47]wFMCommunicate request_size=255 [15:52:47]MH_SAM_APDU [15:52: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 50 51 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 81 02 00 35 04 06 00 2E [15:52:47]Write to MH i2c: E2 02 01 15 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 50 51 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 81 02 00 35 04 06 00 2E 00 00 61 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 15 2F 00 90 00 B8 [15:52:47]RAPDU: 90 00 [15:52:47]wFMCommunicate OK [15:52:47]wFMCommunicate request_size=10 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 0D 02 02 05 6F 33 84 E4 1C [15:52:47]Write to MH i2c: E2 0D 00 16 2F 80 0D 02 02 05 00 6F 33 84 E4 1C 00 00 EF [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 16 2F 00 90 00 B9 [15:52:47]RAPDU: 90 00 [15:52:47]wFMCommunicate OK [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 0D 03 02 [15:52:47]Write to MH i2c: E2 08 00 17 2F 80 0D 03 02 00 00 00 00 C1 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 0B 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 0B 00 17 2F 00 32 1C 7D 9D F7 C6 E2 E1 90 00 AA [15:52:47]RAPDU: 32 1C 7D 9D F7 C6 E2 E1 90 00 [15:52:47]wFMCommunicate OK [15:52:47]SAM_PROTO_SignData done [15:52:47]FM_MakeSignedData done [15:52:47]CreateOFDProtocolMessage [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 11 00 00 [15:52:47]Write to MH i2c: E2 08 00 18 2F 80 11 00 00 00 00 00 00 C1 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 17 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 17 00 18 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [15:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:52:47]wFMCommunicate OK [15:52:47]CreateOFDProtocolMessage done [15:52:47]OFDSenderStorePacket 164281 [15:52:47]StoreOFDPacket docnum=164281 [15:52:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9A 95 07 01 A6 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 50 51 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 81 02 00 35 04 06 00 2E 6F 33 84 E4 1C 32 1C 7D 9D F7 C6 E2 E1 [15:52:47]CheckFolder [15:52:47]dirname=/storage/ofd_packets [15:52:47]CheckFolder done [15:52:47]ProducePacketName [15:52:47]name=ofd_packets/00164281 [15:52:47]NVStorageSaveData ofd_packets/00164281 [15:52:47]File name is /storage/ofd_packets/00164281 [15:52:47]Write 301 bytes [15:52:47]NVStorageSaveData done [15:52:47]OFDSenderStorePacket done [15:52:47]KKMCreateOFDPacket done [15:52:47]NVStorageSaveData kkm_last_timestamp [15:52:47]File name is /storage/kkm_last_timestamp [15:52:47]Write 4 bytes [15:52:47]NVStorageSaveData done [15:52:47]ExternCall_PrintAddStr [15:52:47]wPrintStart [15:52:47]Write to MH i2c: 01 00 00 19 2F 48 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 19 2F 00 00 00 00 00 FF 0F 5D [15:52:47]RasterBufferAndPrint [15:52:47]line Счет N : (1)458364 [15:52:47]line ИНН: 02508201610067 [15:52:47]line Контрольно-Кассовый Чек [15:52:47]line ПРОДАЖА [15:52:47]line ТРК (МРК, ГНК) : 22 [15:52:47]line Товар: 2710124130 [15:52:47]line Аи-92-К-5 [15:52:47]line 15.200 * 65.80 [15:52:47]line = 1000.16 [15:52:47]line НДС 12% НСП 1% [15:52:47]line > о реализуемом товаре [15:52:47]line ОКРУГЛЕНИЕ: -0.16 [15:52:47]line ИТОГО: 1000.00 [15:52:47]line Внесено: 1000.00 [15:52:47]line СДАЧА: 0.00 [15:52:47]line НСП 1% : 8.85 [15:52:47]line НДС 12% : 106.21 [15:52:47]line Наличными: 1000.00 [15:52:47]line Безнал.: 0.00 [15:52:47]line Место: АЗС № 72 "Партнер Нефть" [15:52:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:52:47]line СНО: Общий режим [15:52:47]line Чек 202 12.07.2024 15:52 [15:52:47]line Смена: 445 ФФД: 1.0 [15:52:47]line ЗНМ: 0300000160 [15:52:47]line РНМ: 0000000000090829 [15:52:47]line Версия ККМ: 001 [15:52:47]line ФМ: 0000000000874718 [15:52:47]line ФД: 164281 [15:52:47]line ФПД: 51055140594716 [15:52:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T155248&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164281&fm=51055140594716&tin=02508201610067®Number=0000000000090829&sum=100000 [15:52:48]OFD Sender: Processing packet 164281 [packets to send 104, broken 103] [15:52:48]ProducePacketName [15:52:48]name=ofd_packets/00164281 [15:52:48]OFD Sender: To server: pG, [15:52:48]CommunicateWithHost lk.salyk.kg:30040 [15:52:48]ConnectInit lk.salyk.kg [15:52:48]written 0, free lines is 4095 [15:52:48]Connected sock=10 [15:52:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9A 95 07 01 A6 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 50 51 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 81 02 00 35 04 06 00 2E 6F 33 84 E4 1C 32 1C 7D 9D F7 C6 E2 E1 [15:52:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 07 54 47 00 B3 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 34 37 31 38 10 04 04 00 B9 81 02 00 F4 03 04 00 E4 F7 90 66 B6 04 01 00 00 A6 EB FB 5A E2 19 AF D7 [15:52:48]CommunicateWithHost err = 0 [15:52:48]CheckOFDResponse [15:52:48]1017 (14) - 77093643461234 [15:52:48]1041 (16) - 0000000000874718 [15:52:48]1040 (4) - 164281 [15:52:48]1012 (4) - 12.07.2024 09:31 [15:52:48]1206 (1) - 0 [15:52:48]OFD Sender: Remove packet 164281 [15:52:48]ProducePacketName [15:52:48]name=ofd_packets/00164281 [15:52:48]NVStorageDeleteData [15:52:48]Write to MH i2c: 01 00 00 43 2F 72 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: 01 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: 01 07 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: 01 07 00 43 2F 00 00 00 00 00 05 0D 8B [15:52:48]RasterBufferAndPrint [15:52:48]line [15:52:48]line [15:52:48]line [15:52:48]line [15:52:48]line [15:52:48]written 0, free lines is 3339 [15:52:48]MH_Cut [15:52:48]Write to MH i2c: D1 01 00 4A 2F 01 4B [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: D1 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: D1 01 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: D1 01 00 4A 2F 00 4A [15:52:48]Write to MH i2c: 01 00 00 4B 2F 7A [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:49]OFD Sender: No OFD packet to send [15:52:49]*** Cut start [15:52:49]*** Partial cut [15:52:49]*** CUTSNS_PIN = 1 [15:52:49]*** CUTSNS_PIN = 0 [15:52:49]*** Brake cut motor [15:52:49]Read from MH i2c: 01 [15:52:49]MH_I2C_Read... [15:52:49]*** Stop cut motor [15:52:49]*** Cut end [15:52:49]Read from MH i2c: 01 07 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: 01 07 00 4B 2F 00 00 00 00 00 FF 0F 8F [15:52:49]process_action close_receipt done [15:52:49]requested_data is exist [15:52:49]produce_requested_data [15:52:49]requested_item fm.sn is exist - process it [15:52:49]wFMCommunicate request_size=4 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 11 00 00 [15:52:49]Write to MH i2c: E2 08 00 4C 2F 80 11 00 00 00 00 00 00 F5 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 17 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 17 00 4C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4B [15:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:52:49]wFMCommunicate OK [15:52:49]requested_item fd.num is exist - process it [15:52:49]SAM_PROTO_GetFieldsCounters [15:52:49]wFMCommunicate request_size=4 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 13 00 00 [15:52:49]Write to MH i2c: E2 08 00 4D 2F 80 13 00 00 00 00 00 00 F8 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:50]Read from MH i2c: E2 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 62 00 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 62 00 4D 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [15:52: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:50]wFMCommunicate OK [15:52:50]SAM_PROTO_GetFieldsCounters done [15:52:50]requested_item shift.num is exist - process it [15:52:50]requested_item shift.opened is exist - process it [15:52:50]req_shift_opened [15:52:50]FM_GetShiftState [15:52:50]SAM_PROTO_GetShiftState [15:52:50]wFMCommunicate request_size=4 [15:52:50]MH_SAM_APDU [15:52:50]CAPDU: 80 13 01 00 [15:52:50]Write to MH i2c: E2 08 00 4E 2F 80 13 01 00 00 00 00 00 FA [15:52:50]Write i2c OK [15:52:50]MH_I2C_Read... [15:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:50]Read from MH i2c: E2 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 0E 00 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 0E 00 4E 2F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 44 [15:52:50]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:52:50]wFMCommunicate OK [15:52:50]SAM_PROTO_GetShiftState done [15:52:50]FM_GetShiftState done [15:52:50]req_shift_opened done [15:52:50]requested_item shift.open_date is exist - process it [15:52:50]req_shift_open_date [15:52:50]req_shift_open_date done [15:52:50]produce_requested_data done [15:52:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164281,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:52:50]process_action_free close_receipt [15:52:50]json_value_free [15:52:50]json_value_free done [15:52:50]process_json_proto returns [15:52:50]Send response to host [15:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164281,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:52:50]free response buf [15:52:50]execute_script done [15:52:50]execute_script returns [15:52:50]free content buf [15:52:50]Sock 9.Close socket [15:52:50]Sock 9.Thread stoped [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:55]accept exits with 7 [15:55:55]New connection [15:55:55]New thread 3066707300 created [15:55:55]Thread 3066850660 joined [15:55:55]Waiting for new connection... [15:55:55] Sock 7.Parse request [15:55:55]Sock 7.Check first char [15:55:55]Sock 7.First char is OK [15:55:55]request: POST /json_proto HTTP/1.0 [15:55:55]Method: POST [15:55:55]URL: /json_proto [15:55:55]Method is POST - this is cgi request [15:55:55]url: /json_proto [15:55:55]query_string will be loaded in cgi processing [15:55:55]execute_cgi json_proto POST (null) [15:55:55]execute_cgi path=json_proto method=POST [15:55:55]POST find Content-Length [15:55:55]Host: 172.17.56.4:8080 [15:55:55]Content-Length: 677 [15:55:55]Content-Type: application/json [15:55:55] [15:55:55]POST finish read [15:55:55]Found Content-Length = 677 [15:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:55]execute_script... [15:55:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:55]POST & json_proto [15:55:55]process_json_proto [15:55:55]json parsed OK: [15:55:55]protocol is kg_v1.0 [15:55:55]action value=close_receipt [15:55:55]process_action close_receipt [15:55:55]cmd_close_receipt [15:55:55]MH_GetDate [15:55:55]Write to MH i2c: F0 00 00 4F 2F 6D [15:55:55]Write i2c OK [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: F0 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: F0 09 00 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: F0 09 00 4F 2F 00 0D 52 91 66 C9 DC B2 64 87 [15:55:55]GetLastDocTimeStamp 1720799568 [15:55:55]current date 1720799757 [15:55:55]FM_GetShiftState [15:55:55]SAM_PROTO_GetShiftState [15:55:55]wFMCommunicate request_size=4 [15:55:55]MH_SAM_APDU [15:55:55]CAPDU: 80 13 01 00 [15:55:55]Write to MH i2c: E2 08 00 50 2F 80 13 01 00 00 00 00 00 FC [15:55:55]Write i2c OK [15:55:55]MH_I2C_Read... [15:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:55]Read from MH i2c: E2 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: E2 0E 00 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: E2 0E 00 50 2F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 46 [15:55:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:55:55]wFMCommunicate OK [15:55:55]SAM_PROTO_GetShiftState done [15:55:55]FM_GetShiftState done [15:55:55]opened in 1720744654 [15:55:55]opened+sec_in_day 1720831054 [15:55:55]quantity*price = 50008 [15:55:55]sum+1 = 50009 [15:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 203 12.07.2024 15:55 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164282 ФПД: 164379460215085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T155557&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164282&fm=164379460215085&tin=02508201610067®Number=0000000000090829&sum=50000 [15:55:56]StoreToDocumentArchive [15:55:56]shift 445 fd 164282 [15:55:56]save to /storage/0445/doc_00164282 [15:55:56]save last doc name /storage/0445/doc_00164282 to /storage/kkm_last_doc_name [15:55:56]save OK [15:55:56]Clear old archive folders... [15:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:56]tlvbuf is B6F3C570 [15:55:56]SAM_PROTO_ClearQueue [15:55:56]wFMCommunicate request_size=4 [15:55:56]MH_SAM_APDU [15:55:56]CAPDU: 80 09 00 00 [15:55:56]Write to MH i2c: E2 08 00 5D 2F 80 09 00 00 00 00 00 00 FE [15:55:56]Write i2c OK [15:55:56]MH_I2C_Read... [15:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:57]Read from MH i2c: E2 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 03 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 03 00 5D 2F 00 90 00 00 [15:55:57]RAPDU: 90 00 [15:55:57]wFMCommunicate OK [15:55:57]SAM_PROTO_ClearQueue done [15:55:57]KKMCreateOFDPacket [15:55:57]OFDProtocolAddRootSTLVToBuf [15:55:57]FM_MakeSignedData [15:55:57]FM_MakeSignedData [15:55:57]SAM_PROTO_SignData [15:55:57]wFMCommunicate request_size=4 [15:55:57]MH_SAM_APDU [15:55:57]CAPDU: 80 0D 01 02 [15:55:57]Write to MH i2c: E2 08 00 5E 2F 80 0D 01 02 00 00 00 00 06 [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:57]Read from MH i2c: E2 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 03 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 03 00 5E 2F 00 90 00 01 [15:55:57]RAPDU: 90 00 [15:55:57]wFMCommunicate OK [15:55:57]wFMCommunicate request_size=255 [15:55:57]MH_SAM_APDU [15:55: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CB 00 00 00 F4 03 04 00 0D 52 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 81 02 00 35 04 06 00 95 [15:55:57]Write to MH i2c: E2 02 01 5F 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CB 00 00 00 F4 03 04 00 0D 52 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 81 02 00 35 04 06 00 95 00 00 30 [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:57]Read from MH i2c: E2 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 03 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 03 00 5F 2F 00 90 00 02 [15:55:57]RAPDU: 90 00 [15:55:57]wFMCommunicate OK [15:55:57]wFMCommunicate request_size=10 [15:55:57]MH_SAM_APDU [15:55:57]CAPDU: 80 0D 02 02 05 80 93 55 A1 2D [15:55:57]Write to MH i2c: E2 0D 00 60 2F 80 0D 02 02 05 00 80 93 55 A1 2D 00 00 49 [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:57]Read from MH i2c: E2 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 03 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 03 00 60 2F 00 90 00 03 [15:55:57]RAPDU: 90 00 [15:55:57]wFMCommunicate OK [15:55:57]wFMCommunicate request_size=4 [15:55:57]MH_SAM_APDU [15:55:57]CAPDU: 80 0D 03 02 [15:55:57]Write to MH i2c: E2 08 00 61 2F 80 0D 03 02 00 00 00 00 0B [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:57]Read from MH i2c: E2 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 0B 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 0B 00 61 2F 00 4C 16 C8 15 C9 F3 5B D7 90 00 39 [15:55:57]RAPDU: 4C 16 C8 15 C9 F3 5B D7 90 00 [15:55:57]wFMCommunicate OK [15:55:57]SAM_PROTO_SignData done [15:55:57]FM_MakeSignedData done [15:55:57]CreateOFDProtocolMessage [15:55:57]wFMCommunicate request_size=4 [15:55:57]MH_SAM_APDU [15:55:57]CAPDU: 80 11 00 00 [15:55:57]Write to MH i2c: E2 08 00 62 2F 80 11 00 00 00 00 00 00 0B [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:57]Read from MH i2c: E2 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 17 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 17 00 62 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [15:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:55:57]wFMCommunicate OK [15:55:57]CreateOFDProtocolMessage done [15:55:57]OFDSenderStorePacket 164282 [15:55:57]StoreOFDPacket docnum=164282 [15:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3F 44 07 01 35 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CB 00 00 00 F4 03 04 00 0D 52 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 81 02 00 35 04 06 00 95 80 93 55 A1 2D 4C 16 C8 15 C9 F3 5B D7 [15:55:57]CheckFolder [15:55:57]dirname=/storage/ofd_packets [15:55:57]CheckFolder done [15:55:57]ProducePacketName [15:55:57]name=ofd_packets/00164282 [15:55:57]NVStorageSaveData ofd_packets/00164282 [15:55:57]File name is /storage/ofd_packets/00164282 [15:55:57]Write 301 bytes [15:55:57]NVStorageSaveData done [15:55:57]OFDSenderStorePacket done [15:55:57]KKMCreateOFDPacket done [15:55:57]NVStorageSaveData kkm_last_timestamp [15:55:57]File name is /storage/kkm_last_timestamp [15:55:57]Write 4 bytes [15:55:57]NVStorageSaveData done [15:55:57]ExternCall_PrintAddStr [15:55:57]wPrintStart [15:55:57]Write to MH i2c: 01 00 00 63 2F 92 [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 07 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 07 00 63 2F 00 00 00 00 00 FF 0F A7 [15:55:57]RasterBufferAndPrint [15:55:57]line Счет N : (1)458365 [15:55:57]line ИНН: 02508201610067 [15:55:57]line Контрольно-Кассовый Чек [15:55:57]line ПРОДАЖА [15:55:57]line ТРК (МРК, ГНК) : 22 [15:55:57]line Товар: 2710124130 [15:55:57]line Аи-92-К-5 [15:55:57]line 7.600 * 65.80 [15:55:57]line = 500.08 [15:55:57]line НДС 12% НСП 1% [15:55:57]line > о реализуемом товаре [15:55:57]line ОКРУГЛЕНИЕ: -0.08 [15:55:57]line ИТОГО: 500.00 [15:55:57]line Внесено: 500.00 [15:55:57]line СДАЧА: 0.00 [15:55:57]line НСП 1% : 4.42 [15:55:57]line НДС 12% : 53.11 [15:55:57]line Наличными: 500.00 [15:55:57]line Безнал.: 0.00 [15:55:57]line Место: АЗС № 72 "Партнер Нефть" [15:55:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:55:57]line СНО: Общий режим [15:55:57]line Чек 203 12.07.2024 15:55 [15:55:57]line Смена: 445 ФФД: 1.0 [15:55:57]line ЗНМ: 0300000160 [15:55:57]line РНМ: 0000000000090829 [15:55:57]line Версия ККМ: 001 [15:55:57]line ФМ: 0000000000874718 [15:55:57]line ФД: 164282 [15:55:57]line ФПД: 164379460215085 [15:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T155557&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164282&fm=164379460215085&tin=02508201610067®Number=0000000000090829&sum=50000 [15:55:57]written 0, free lines is 4095 [15:55:57]OFD Sender: Processing packet 164282 [packets to send 104, broken 103] [15:55:57]ProducePacketName [15:55:57]name=ofd_packets/00164282 [15:55:57]OFD Sender: To server: pG, [15:55:57]CommunicateWithHost lk.salyk.kg:30040 [15:55:57]ConnectInit lk.salyk.kg [15:55:57]Connected sock=5 [15:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3F 44 07 01 35 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CB 00 00 00 F4 03 04 00 0D 52 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 81 02 00 35 04 06 00 95 80 93 55 A1 2D 4C 16 C8 15 C9 F3 5B D7 [15:55:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 48 5C 47 00 80 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 34 37 31 38 10 04 04 00 BA 81 02 00 F4 03 04 00 A1 F8 90 66 B6 04 01 00 00 EC 11 D9 41 78 C3 4E FB [15:55:58]CommunicateWithHost err = 0 [15:55:58]CheckOFDResponse [15:55:58]1017 (14) - 77093643461234 [15:55:58]1041 (16) - 0000000000874718 [15:55:58]1040 (4) - 164282 [15:55:58]1012 (4) - 12.07.2024 09:34 [15:55:58]1206 (1) - 0 [15:55:58]OFD Sender: Remove packet 164282 [15:55:58]ProducePacketName [15:55:58]name=ofd_packets/00164282 [15:55:58]NVStorageDeleteData [15:55:58]Write to MH i2c: 01 00 00 8D 2F BC [15:55:58]Write i2c OK [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: 01 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: 01 07 00 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: 01 07 00 8D 2F 00 00 00 00 00 FA 0C C9 [15:55:58]RasterBufferAndPrint [15:55:58]line [15:55:58]line [15:55:58]line [15:55:58]line [15:55:58]line [15:55:58]written 0, free lines is 3332 [15:55:58]MH_Cut [15:55:58]Write to MH i2c: D1 01 00 94 2F 01 95 [15:55:58]Write i2c OK [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: D1 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: D1 01 00 [15:55:58]MH_I2C_Read... [15:55:58]Read from MH i2c: D1 01 00 94 2F 00 94 [15:55:58]Write to MH i2c: 01 00 00 95 2F C4 [15:55:58]Write i2c OK [15:55:58]MH_I2C_Read... [15:55:58]OFD Sender: No OFD packet to send [15:55:58]*** Cut start [15:55:58]*** Partial cut [15:55:58]*** CUTSNS_PIN = 1 [15:55:58]*** CUTSNS_PIN = 0 [15:55:59]*** Brake cut motor [15:55:59]Read from MH i2c: 01 [15:55:59]MH_I2C_Read... [15:55:59]*** Stop cut motor [15:55:59]*** Cut end [15:55:59]Read from MH i2c: 01 07 00 [15:55:59]MH_I2C_Read... [15:55:59]Read from MH i2c: 01 07 00 95 2F 00 00 00 00 00 FF 0F D9 [15:55:59]process_action close_receipt done [15:55:59]requested_data is exist [15:55:59]produce_requested_data [15:55:59]requested_item fm.sn is exist - process it [15:55:59]wFMCommunicate request_size=4 [15:55:59]MH_SAM_APDU [15:55:59]CAPDU: 80 11 00 00 [15:55:59]Write to MH i2c: E2 08 00 96 2F 80 11 00 00 00 00 00 00 3F [15:55:59]Write i2c OK [15:55:59]MH_I2C_Read... [15:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:59]Read from MH i2c: E2 [15:55:59]MH_I2C_Read... [15:55:59]Read from MH i2c: E2 17 00 [15:55:59]MH_I2C_Read... [15:55:59]Read from MH i2c: E2 17 00 96 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 95 [15:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:55:59]wFMCommunicate OK [15:55:59]requested_item fd.num is exist - process it [15:55:59]SAM_PROTO_GetFieldsCounters [15:55:59]wFMCommunicate request_size=4 [15:55:59]MH_SAM_APDU [15:55:59]CAPDU: 80 13 00 00 [15:55:59]Write to MH i2c: E2 08 00 97 2F 80 13 00 00 00 00 00 00 42 [15:55:59]Write i2c OK [15:55:59]MH_I2C_Read... [15:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:59]Read from MH i2c: E2 [15:55:59]MH_I2C_Read... [15:55:59]Read from MH i2c: E2 62 00 [15:55:59]MH_I2C_Read... [15:55:59]Read from MH i2c: E2 62 00 97 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [15:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:59]wFMCommunicate OK [15:55:59]SAM_PROTO_GetFieldsCounters done [15:55:59]requested_item shift.num is exist - process it [15:55:59]requested_item shift.opened is exist - process it [15:55:59]req_shift_opened [15:55:59]FM_GetShiftState [15:55:59]SAM_PROTO_GetShiftState [15:55:59]wFMCommunicate request_size=4 [15:55:59]MH_SAM_APDU [15:55:59]CAPDU: 80 13 01 00 [15:55:59]Write to MH i2c: E2 08 00 98 2F 80 13 01 00 00 00 00 00 44 [15:55:59]Write i2c OK [15:55:59]MH_I2C_Read... [15:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:59]Read from MH i2c: E2 [15:55:59]MH_I2C_Read... [15:55:59]Read from MH i2c: E2 0E 00 [15:55:59]MH_I2C_Read... [15:55:59]Read from MH i2c: E2 0E 00 98 2F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8E [15:55:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:55:59]wFMCommunicate OK [15:55:59]SAM_PROTO_GetShiftState done [15:55:59]FM_GetShiftState done [15:55:59]req_shift_opened done [15:55:59]requested_item shift.open_date is exist - process it [15:55:59]req_shift_open_date [15:55:59]req_shift_open_date done [15:55:59]produce_requested_data done [15:55:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164282,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:55:59]process_action_free close_receipt [15:55:59]json_value_free [15:55:59]json_value_free done [15:55:59]process_json_proto returns [15:55:59]Send response to host [15:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164282,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:55:59]free response buf [15:55:59]execute_script done [15:55:59]execute_script returns [15:55:59]free content buf [15:55:59]Sock 7.Close socket [15:55:59]Sock 7.Thread stoped [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:32]accept exits with 9 [15:58:32]New connection [15:58:32]New thread 3066850660 created [15:58:32]Thread 3066707300 joined [15:58:32]Waiting for new connection... [15:58:32] Sock 9.Parse request [15:58:32]Sock 9.Check first char [15:58:32]Sock 9.First char is OK [15:58:32]request: POST /json_proto HTTP/1.0 [15:58:32]Method: POST [15:58:32]URL: /json_proto [15:58:32]Method is POST - this is cgi request [15:58:32]url: /json_proto [15:58:32]query_string will be loaded in cgi processing [15:58:32]execute_cgi json_proto POST (null) [15:58:32]execute_cgi path=json_proto method=POST [15:58:32]POST find Content-Length [15:58:32]Host: 172.17.56.4:8080 [15:58:32]Content-Length: 674 [15:58:32]Content-Type: application/json [15:58:32] [15:58:32]POST finish read [15:58:32]Found Content-Length = 674 [15:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458366", "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" : 71.90, "quantity" : 5.570, "sum" : 400.48, "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:58:32]execute_script... [15:58: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)458366", "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" : 71.90, "quantity" : 5.570, "sum" : 400.48, "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:58:32]POST & json_proto [15:58:32]process_json_proto [15:58:32]json parsed OK: [15:58:32]protocol is kg_v1.0 [15:58:32]action value=close_receipt [15:58:32]process_action close_receipt [15:58:32]cmd_close_receipt [15:58:32]MH_GetDate [15:58:32]Write to MH i2c: F0 00 00 99 2F B7 [15:58:32]Write i2c OK [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: F0 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: F0 09 00 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: F0 09 00 99 2F 00 AA 52 91 66 C9 DC B2 64 6E [15:58:32]GetLastDocTimeStamp 1720799757 [15:58:32]current date 1720799914 [15:58:32]FM_GetShiftState [15:58:32]SAM_PROTO_GetShiftState [15:58:32]wFMCommunicate request_size=4 [15:58:32]MH_SAM_APDU [15:58:32]CAPDU: 80 13 01 00 [15:58:32]Write to MH i2c: E2 08 00 9A 2F 80 13 01 00 00 00 00 00 46 [15:58:32]Write i2c OK [15:58:32]MH_I2C_Read... [15:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:32]Read from MH i2c: E2 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: E2 0E 00 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: E2 0E 00 9A 2F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 90 [15:58:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:58:32]wFMCommunicate OK [15:58:32]SAM_PROTO_GetShiftState done [15:58:32]FM_GetShiftState done [15:58:32]opened in 1720744654 [15:58:32]opened+sec_in_day 1720831054 [15:58:32]quantity*price = 40048 [15:58:32]sum+1 = 40049 [15:58:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 204 12.07.2024 15:58 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164283 ФПД: 41753386788407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T155834&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164283&fm=41753386788407&tin=02508201610067®Number=0000000000090829&sum=40000 [15:58:33]StoreToDocumentArchive [15:58:33]shift 445 fd 164283 [15:58:33]save to /storage/0445/doc_00164283 [15:58:33]save last doc name /storage/0445/doc_00164283 to /storage/kkm_last_doc_name [15:58:33]save OK [15:58:33]Clear old archive folders... [15:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:58:33]tlvbuf is 00AAD370 [15:58:33]SAM_PROTO_ClearQueue [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 09 00 00 [15:58:33]Write to MH i2c: E2 08 00 A7 2F 80 09 00 00 00 00 00 00 48 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 A7 2F 00 90 00 4A [15:58:33]RAPDU: 90 00 [15:58:33]wFMCommunicate OK [15:58:33]SAM_PROTO_ClearQueue done [15:58:33]KKMCreateOFDPacket [15:58:33]OFDProtocolAddRootSTLVToBuf [15:58:33]FM_MakeSignedData [15:58:33]FM_MakeSignedData [15:58:33]SAM_PROTO_SignData [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 0D 01 02 [15:58:33]Write to MH i2c: E2 08 00 A8 2F 80 0D 01 02 00 00 00 00 50 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 A8 2F 00 90 00 4B [15:58:33]RAPDU: 90 00 [15:58:33]wFMCommunicate OK [15:58:33]wFMCommunicate request_size=255 [15:58:33]MH_SAM_APDU [15:58: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 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 AA 52 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 81 02 00 35 04 06 00 25 F9 77 C9 [15:58:33]Write to MH i2c: E2 02 01 A9 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 AA 52 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 81 02 00 35 04 06 00 25 F9 77 C9 00 00 A9 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]OFD Sender: No OFD packet to send [15:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 A9 2F 00 90 00 4C [15:58:33]RAPDU: 90 00 [15:58:33]wFMCommunicate OK [15:58:33]wFMCommunicate request_size=7 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 0D 02 02 02 A6 37 [15:58:33]Write to MH i2c: E2 0A 00 AA 2F 80 0D 02 02 02 00 A6 37 00 00 34 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 AA 2F 00 90 00 4D [15:58:34]RAPDU: 90 00 [15:58:34]wFMCommunicate OK [15:58:34]wFMCommunicate request_size=4 [15:58:34]MH_SAM_APDU [15:58:34]CAPDU: 80 0D 03 02 [15:58:34]Write to MH i2c: E2 08 00 AB 2F 80 0D 03 02 00 00 00 00 55 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 0B 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 0B 00 AB 2F 00 8D 5D B6 0D E4 F6 A6 9F 90 00 22 [15:58:34]RAPDU: 8D 5D B6 0D E4 F6 A6 9F 90 00 [15:58:34]wFMCommunicate OK [15:58:34]SAM_PROTO_SignData done [15:58:34]FM_MakeSignedData done [15:58:34]CreateOFDProtocolMessage [15:58:34]wFMCommunicate request_size=4 [15:58:34]MH_SAM_APDU [15:58:34]CAPDU: 80 11 00 00 [15:58:34]Write to MH i2c: E2 08 00 AC 2F 80 11 00 00 00 00 00 00 55 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 17 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 17 00 AC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [15:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:58:34]wFMCommunicate OK [15:58:34]CreateOFDProtocolMessage done [15:58:34]OFDSenderStorePacket 164283 [15:58:34]StoreOFDPacket docnum=164283 [15:58:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 07 98 04 01 64 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 AA 52 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 81 02 00 35 04 06 00 25 F9 77 C9 A6 37 8D 5D B6 0D E4 F6 A6 9F [15:58:34]CheckFolder [15:58:34]dirname=/storage/ofd_packets [15:58:34]CheckFolder done [15:58:34]ProducePacketName [15:58:34]name=ofd_packets/00164283 [15:58:34]NVStorageSaveData ofd_packets/00164283 [15:58:34]File name is /storage/ofd_packets/00164283 [15:58:34]Write 298 bytes [15:58:34]NVStorageSaveData done [15:58:34]OFDSenderStorePacket done [15:58:34]KKMCreateOFDPacket done [15:58:34]NVStorageSaveData kkm_last_timestamp [15:58:34]File name is /storage/kkm_last_timestamp [15:58:34]Write 4 bytes [15:58:34]NVStorageSaveData done [15:58:34]ExternCall_PrintAddStr [15:58:34]wPrintStart [15:58:34]Write to MH i2c: 01 00 00 AD 2F DC [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 AD 2F 00 00 00 00 00 FF 0F F1 [15:58:34]RasterBufferAndPrint [15:58:34]line Счет N : (1)458366 [15:58:34]line ИНН: 02508201610067 [15:58:34]line Контрольно-Кассовый Чек [15:58:34]line ПРОДАЖА [15:58:34]line ТРК (МРК, ГНК) : 21 [15:58:34]line Товар: 2710194210 [15:58:34]line ДТ-К-5 [15:58:34]line 5.570 * 71.90 [15:58:34]line = 400.48 [15:58:34]line НДС 12% НСП 1% [15:58:34]line > о реализуемом товаре [15:58:34]line ОКРУГЛЕНИЕ: -0.48 [15:58:34]line ИТОГО: 400.00 [15:58:34]line Внесено: 400.00 [15:58:34]line СДАЧА: 0.00 [15:58:34]line НСП 1% : 3.54 [15:58:34]line НДС 12% : 42.53 [15:58:34]line Наличными: 400.00 [15:58:34]line Безнал.: 0.00 [15:58:34]line Место: АЗС № 72 "Партнер Нефть" [15:58:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:58:34]line СНО: Общий режим [15:58:34]line Чек 204 12.07.2024 15:58 [15:58:34]line Смена: 445 ФФД: 1.0 [15:58:34]line ЗНМ: 0300000160 [15:58:34]line РНМ: 0000000000090829 [15:58:34]line Версия ККМ: 001 [15:58:34]line ФМ: 0000000000874718 [15:58:34]line ФД: 164283 [15:58:34]line ФПД: 41753386788407 [15:58:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T155834&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164283&fm=41753386788407&tin=02508201610067®Number=0000000000090829&sum=40000 [15:58:34]written 0, free lines is 4095 [15:58:34]OFD Sender: Processing packet 164283 [packets to send 104, broken 103] [15:58:34]ProducePacketName [15:58:34]name=ofd_packets/00164283 [15:58:34]OFD Sender: To server: pG, [15:58:34]CommunicateWithHost lk.salyk.kg:30040 [15:58:34]ConnectInit lk.salyk.kg [15:58:34]Connected sock=10 [15:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 07 98 04 01 64 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 AA 52 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 81 02 00 35 04 06 00 25 F9 77 C9 A6 37 8D 5D B6 0D E4 F6 A6 9F [15:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CE 13 47 00 9E 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 34 37 31 38 10 04 04 00 BB 81 02 00 F4 03 04 00 3E F9 90 66 B6 04 01 00 00 BA 35 8A FB 53 B5 1B 27 [15:58:34]CommunicateWithHost err = 0 [15:58:34]CheckOFDResponse [15:58:34]1017 (14) - 77093643461234 [15:58:34]1041 (16) - 0000000000874718 [15:58:34]1040 (4) - 164283 [15:58:34]1012 (4) - 12.07.2024 09:37 [15:58:34]1206 (1) - 0 [15:58:34]OFD Sender: Remove packet 164283 [15:58:34]ProducePacketName [15:58:34]name=ofd_packets/00164283 [15:58:34]NVStorageDeleteData [15:58:34]Write to MH i2c: 01 00 00 D7 2F 06 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 D7 2F 00 00 00 00 00 F7 0C 10 [15:58:34]RasterBufferAndPrint [15:58:34]line [15:58:34]line [15:58:34]line [15:58:34]line [15:58:34]line [15:58:34]written 0, free lines is 3326 [15:58:34]MH_Cut [15:58:34]Write to MH i2c: D1 01 00 DE 2F 01 DF [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: D1 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: D1 01 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: D1 01 00 DE 2F 00 DE [15:58:34]Write to MH i2c: 01 00 00 DF 2F 0E [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:35]OFD Sender: No OFD packet to send [15:58:35]*** Cut start [15:58:35]*** Partial cut [15:58:35]*** CUTSNS_PIN = 1 [15:58:35]*** CUTSNS_PIN = 0 [15:58:35]*** Brake cut motor [15:58:36]Read from MH i2c: 01 [15:58:36]MH_I2C_Read... [15:58:36]*** Stop cut motor [15:58:36]*** Cut end [15:58:36]Read from MH i2c: 01 07 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: 01 07 00 DF 2F 00 00 00 00 00 FF 0F 23 [15:58:36]process_action close_receipt done [15:58:36]requested_data is exist [15:58:36]produce_requested_data [15:58:36]requested_item fm.sn is exist - process it [15:58:36]wFMCommunicate request_size=4 [15:58:36]MH_SAM_APDU [15:58:36]CAPDU: 80 11 00 00 [15:58:36]Write to MH i2c: E2 08 00 E0 2F 80 11 00 00 00 00 00 00 89 [15:58:36]Write i2c OK [15:58:36]MH_I2C_Read... [15:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:36]Read from MH i2c: E2 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 17 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 17 00 E0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [15:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:58:36]wFMCommunicate OK [15:58:36]requested_item fd.num is exist - process it [15:58:36]SAM_PROTO_GetFieldsCounters [15:58:36]wFMCommunicate request_size=4 [15:58:36]MH_SAM_APDU [15:58:36]CAPDU: 80 13 00 00 [15:58:36]Write to MH i2c: E2 08 00 E1 2F 80 13 00 00 00 00 00 00 8C [15:58:36]Write i2c OK [15:58:36]MH_I2C_Read... [15:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:36]Read from MH i2c: E2 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 62 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 62 00 E1 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [15:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:36]wFMCommunicate OK [15:58:36]SAM_PROTO_GetFieldsCounters done [15:58:36]requested_item shift.num is exist - process it [15:58:36]requested_item shift.opened is exist - process it [15:58:36]req_shift_opened [15:58:36]FM_GetShiftState [15:58:36]SAM_PROTO_GetShiftState [15:58:36]wFMCommunicate request_size=4 [15:58:36]MH_SAM_APDU [15:58:36]CAPDU: 80 13 01 00 [15:58:36]Write to MH i2c: E2 08 00 E2 2F 80 13 01 00 00 00 00 00 8E [15:58:36]Write i2c OK [15:58:36]MH_I2C_Read... [15:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:36]Read from MH i2c: E2 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 0E 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 0E 00 E2 2F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D8 [15:58:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [15:58:36]wFMCommunicate OK [15:58:36]SAM_PROTO_GetShiftState done [15:58:36]FM_GetShiftState done [15:58:36]req_shift_opened done [15:58:36]requested_item shift.open_date is exist - process it [15:58:36]req_shift_open_date [15:58:36]req_shift_open_date done [15:58:36]produce_requested_data done [15:58:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164283,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [15:58:36]process_action_free close_receipt [15:58:36]json_value_free [15:58:36]json_value_free done [15:58:36]process_json_proto returns [15:58:36]Send response to host [15:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164283,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [15:58:36]free response buf [15:58:36]execute_script done [15:58:36]execute_script returns [15:58:36]free content buf [15:58:36]Sock 9.Close socket [15:58:36]Sock 9.Thread stoped [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:06]accept exits with 7 [16:02:06]New connection [16:02:06]New thread 3066707300 created [16:02:06]Thread 3066850660 joined [16:02:06]Waiting for new connection... [16:02:06] Sock 7.Parse request [16:02:06]Sock 7.Check first char [16:02:06]Sock 7.First char is OK [16:02:06]request: POST /json_proto HTTP/1.0 [16:02:06]Method: POST [16:02:06]URL: /json_proto [16:02:06]Method is POST - this is cgi request [16:02:06]url: /json_proto [16:02:06]query_string will be loaded in cgi processing [16:02:06]execute_cgi json_proto POST (null) [16:02:06]execute_cgi path=json_proto method=POST [16:02:06]POST find Content-Length [16:02:06]Host: 172.17.56.4:8080 [16:02:06]Content-Length: 682 [16:02:06]Content-Type: application/json [16:02:06] [16:02:06]POST finish read [16:02:06]Found Content-Length = 682 [16:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:02:06]execute_script... [16: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)458367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:02:06]POST & json_proto [16:02:06]process_json_proto [16:02:06]json parsed OK: [16:02:06]protocol is kg_v1.0 [16:02:06]action value=close_receipt [16:02:06]process_action close_receipt [16:02:06]cmd_close_receipt [16:02:06]MH_GetDate [16:02:06]Write to MH i2c: F0 00 00 E3 2F 01 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: F0 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: F0 09 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: F0 09 00 E3 2F 00 80 53 91 66 C9 DC B2 64 8F [16:02:06]GetLastDocTimeStamp 1720799914 [16:02:06]current date 1720800128 [16:02:06]FM_GetShiftState [16:02:06]SAM_PROTO_GetShiftState [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 13 01 00 [16:02:06]Write to MH i2c: E2 08 00 E4 2F 80 13 01 00 00 00 00 00 90 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 0E 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 0E 00 E4 2F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DA [16:02:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:02:06]wFMCommunicate OK [16:02:06]SAM_PROTO_GetShiftState done [16:02:06]FM_GetShiftState done [16:02:06]opened in 1720744654 [16:02:06]opened+sec_in_day 1720831054 [16:02:06]quantity*price = 100016 [16:02:06]sum+1 = 100017 [16:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 205 12.07.2024 16:02 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164284 ФПД: 237639647197265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T160208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164284&fm=237639647197265&tin=02508201610067®Number=0000000000090829&sum=100000 [16:02:07]StoreToDocumentArchive [16:02:07]shift 445 fd 164284 [16:02:07]save to /storage/0445/doc_00164284 [16:02:07]save last doc name /storage/0445/doc_00164284 to /storage/kkm_last_doc_name [16:02:07]save OK [16:02:07]Clear old archive folders... [16:02:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:07]tlvbuf is 00A170A0 [16:02:07]SAM_PROTO_ClearQueue [16:02:07]wFMCommunicate request_size=4 [16:02:07]MH_SAM_APDU [16:02:07]CAPDU: 80 09 00 00 [16:02:07]Write to MH i2c: E2 08 00 F1 2F 80 09 00 00 00 00 00 00 92 [16:02:07]Write i2c OK [16:02:07]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 F1 2F 00 90 00 94 [16:02:08]RAPDU: 90 00 [16:02:08]wFMCommunicate OK [16:02:08]SAM_PROTO_ClearQueue done [16:02:08]KKMCreateOFDPacket [16:02:08]OFDProtocolAddRootSTLVToBuf [16:02:08]FM_MakeSignedData [16:02:08]FM_MakeSignedData [16:02:08]SAM_PROTO_SignData [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 0D 01 02 [16:02:08]Write to MH i2c: E2 08 00 F2 2F 80 0D 01 02 00 00 00 00 9A [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 F2 2F 00 90 00 95 [16:02:08]RAPDU: 90 00 [16:02:08]wFMCommunicate OK [16:02:08]wFMCommunicate request_size=255 [16:02:08]MH_SAM_APDU [16: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 80 53 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 81 02 00 35 04 06 00 D8 [16:02:08]Write to MH i2c: E2 02 01 F3 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 80 53 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 81 02 00 35 04 06 00 D8 00 00 21 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 F3 2F 00 90 00 96 [16:02:08]RAPDU: 90 00 [16:02:08]wFMCommunicate OK [16:02:08]wFMCommunicate request_size=10 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 0D 02 02 05 21 CA C1 78 51 [16:02:08]Write to MH i2c: E2 0D 00 F4 2F 80 0D 02 02 05 00 21 CA C1 78 51 00 00 1C [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 F4 2F 00 90 00 97 [16:02:08]RAPDU: 90 00 [16:02:08]wFMCommunicate OK [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 0D 03 02 [16:02:08]Write to MH i2c: E2 08 00 F5 2F 80 0D 03 02 00 00 00 00 9F [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 0B 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 0B 00 F5 2F 00 B2 4A BA 25 21 7F 46 2F 90 00 90 [16:02:08]RAPDU: B2 4A BA 25 21 7F 46 2F 90 00 [16:02:08]wFMCommunicate OK [16:02:08]SAM_PROTO_SignData done [16:02:08]FM_MakeSignedData done [16:02:08]CreateOFDProtocolMessage [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 11 00 00 [16:02:08]Write to MH i2c: E2 08 00 F6 2F 80 11 00 00 00 00 00 00 9F [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 17 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 17 00 F6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [16:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:02:08]wFMCommunicate OK [16:02:08]CreateOFDProtocolMessage done [16:02:08]OFDSenderStorePacket 164284 [16:02:08]StoreOFDPacket docnum=164284 [16:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5C 00 07 01 26 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 80 53 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 81 02 00 35 04 06 00 D8 21 CA C1 78 51 B2 4A BA 25 21 7F 46 2F [16:02:08]CheckFolder [16:02:08]dirname=/storage/ofd_packets [16:02:08]CheckFolder done [16:02:08]ProducePacketName [16:02:08]name=ofd_packets/00164284 [16:02:08]NVStorageSaveData ofd_packets/00164284 [16:02:08]File name is /storage/ofd_packets/00164284 [16:02:08]Write 301 bytes [16:02:08]NVStorageSaveData done [16:02:08]OFDSenderStorePacket done [16:02:08]KKMCreateOFDPacket done [16:02:08]NVStorageSaveData kkm_last_timestamp [16:02:08]File name is /storage/kkm_last_timestamp [16:02:08]Write 4 bytes [16:02:08]NVStorageSaveData done [16:02:08]ExternCall_PrintAddStr [16:02:08]wPrintStart [16:02:08]Write to MH i2c: 01 00 00 F7 2F 26 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: 01 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: 01 07 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: 01 07 00 F7 2F 00 00 00 00 00 FF 0F 3B [16:02:08]RasterBufferAndPrint [16:02:08]line Счет N : (1)458367 [16:02:08]line ИНН: 02508201610067 [16:02:08]line Контрольно-Кассовый Чек [16:02:08]line ПРОДАЖА [16:02:08]line ТРК (МРК, ГНК) : 22 [16:02:08]line Товар: 2710124130 [16:02:08]line Аи-92-К-5 [16:02:08]line 15.200 * 65.80 [16:02:08]line = 1000.16 [16:02:08]line НДС 12% НСП 1% [16:02:08]line > о реализуемом товаре [16:02:08]line ОКРУГЛЕНИЕ: -0.16 [16:02:08]line ИТОГО: 1000.00 [16:02:08]line Внесено: 1000.00 [16:02:08]line СДАЧА: 0.00 [16:02:08]line НСП 1% : 8.85 [16:02:08]line НДС 12% : 106.21 [16:02:08]line Наличными: 1000.00 [16:02:08]line Безнал.: 0.00 [16:02:08]line Место: АЗС № 72 "Партнер Нефть" [16:02:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:02:08]line СНО: Общий режим [16:02:08]line Чек 205 12.07.2024 16:02 [16:02:08]line Смена: 445 ФФД: 1.0 [16:02:08]line ЗНМ: 0300000160 [16:02:08]line РНМ: 0000000000090829 [16:02:08]line Версия ККМ: 001 [16:02:08]line ФМ: 0000000000874718 [16:02:08]line ФД: 164284 [16:02:08]line ФПД: 237639647197265 [16:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T160208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164284&fm=237639647197265&tin=02508201610067®Number=0000000000090829&sum=100000 [16:02:08]OFD Sender: Processing packet 164284 [packets to send 104, broken 103] [16:02:08]ProducePacketName [16:02:08]name=ofd_packets/00164284 [16:02:08]OFD Sender: To server: pG, [16:02:08]CommunicateWithHost lk.salyk.kg:30040 [16:02:08]ConnectInit lk.salyk.kg [16:02:08]written 0, free lines is 4095 [16:02:08]Connected sock=10 [16:02:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5C 00 07 01 26 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 80 53 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 81 02 00 35 04 06 00 D8 21 CA C1 78 51 B2 4A BA 25 21 7F 46 2F [16:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 ED F9 47 00 DE 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 34 37 31 38 10 04 04 00 BC 81 02 00 F4 03 04 00 14 FA 90 66 B6 04 01 00 00 0D FA 98 06 7F A4 34 72 [16:02:09]CommunicateWithHost err = 0 [16:02:09]CheckOFDResponse [16:02:09]1017 (14) - 77093643461234 [16:02:09]1041 (16) - 0000000000874718 [16:02:09]1040 (4) - 164284 [16:02:09]1012 (4) - 12.07.2024 09:40 [16:02:09]1206 (1) - 0 [16:02:09]OFD Sender: Remove packet 164284 [16:02:09]ProducePacketName [16:02:09]name=ofd_packets/00164284 [16:02:09]NVStorageDeleteData [16:02:09]Write to MH i2c: 01 00 00 21 30 51 [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: 01 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: 01 07 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: 01 07 00 21 30 00 00 00 00 00 01 0D 66 [16:02:09]RasterBufferAndPrint [16:02:09]line [16:02:09]line [16:02:09]line [16:02:09]line [16:02:09]line [16:02:09]written 0, free lines is 3335 [16:02:09]MH_Cut [16:02:09]Write to MH i2c: D1 01 00 28 30 01 2A [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: D1 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: D1 01 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: D1 01 00 28 30 00 29 [16:02:09]Write to MH i2c: 01 00 00 29 30 59 [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]OFD Sender: No OFD packet to send [16:02:09]*** Cut start [16:02:09]*** Partial cut [16:02:09]*** CUTSNS_PIN = 1 [16:02:10]*** CUTSNS_PIN = 0 [16:02:10]*** Brake cut motor [16:02:10]Read from MH i2c: 01 [16:02:10]MH_I2C_Read... [16:02:10]*** Stop cut motor [16:02:10]*** Cut end [16:02:10]Read from MH i2c: 01 07 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: 01 07 00 29 30 00 00 00 00 00 FF 0F 6E [16:02:10]process_action close_receipt done [16:02:10]requested_data is exist [16:02:10]produce_requested_data [16:02:10]requested_item fm.sn is exist - process it [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 11 00 00 [16:02:10]Write to MH i2c: E2 08 00 2A 30 80 11 00 00 00 00 00 00 D4 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 17 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 17 00 2A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2A [16:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:02:10]wFMCommunicate OK [16:02:10]requested_item fd.num is exist - process it [16:02:10]SAM_PROTO_GetFieldsCounters [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 13 00 00 [16:02:10]Write to MH i2c: E2 08 00 2B 30 80 13 00 00 00 00 00 00 D7 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 62 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 62 00 2B 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [16:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:10]wFMCommunicate OK [16:02:10]SAM_PROTO_GetFieldsCounters done [16:02:10]requested_item shift.num is exist - process it [16:02:10]requested_item shift.opened is exist - process it [16:02:10]req_shift_opened [16:02:10]FM_GetShiftState [16:02:10]SAM_PROTO_GetShiftState [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 13 01 00 [16:02:10]Write to MH i2c: E2 08 00 2C 30 80 13 01 00 00 00 00 00 D9 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 2C 30 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 23 [16:02:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:02:10]wFMCommunicate OK [16:02:10]SAM_PROTO_GetShiftState done [16:02:10]FM_GetShiftState done [16:02:10]req_shift_opened done [16:02:10]requested_item shift.open_date is exist - process it [16:02:10]req_shift_open_date [16:02:10]req_shift_open_date done [16:02:10]produce_requested_data done [16:02:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164284,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:02:10]process_action_free close_receipt [16:02:10]json_value_free [16:02:10]json_value_free done [16:02:10]process_json_proto returns [16:02:10]Send response to host [16:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164284,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:02:10]free response buf [16:02:10]execute_script done [16:02:10]execute_script returns [16:02:10]free content buf [16:02:10]Sock 7.Close socket [16:02:10]Sock 7.Thread stoped [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:42]accept exits with 9 [16:02:42]New connection [16:02:42]New thread 3066850660 created [16:02:42]Thread 3066707300 joined [16:02:42]Waiting for new connection... [16:02:42] Sock 9.Parse request [16:02:42]Sock 9.Check first char [16:02:42]Sock 9.First char is OK [16:02:42]request: POST /json_proto HTTP/1.0 [16:02:42]Method: POST [16:02:42]URL: /json_proto [16:02:42]Method is POST - this is cgi request [16:02:42]url: /json_proto [16:02:42]query_string will be loaded in cgi processing [16:02:42]execute_cgi json_proto POST (null) [16:02:42]execute_cgi path=json_proto method=POST [16:02:42]POST find Content-Length [16:02:42]Host: 172.17.56.4:8080 [16:02:42]Content-Length: 677 [16:02:42]Content-Type: application/json [16:02:42] [16:02:42]POST finish read [16:02:42]Found Content-Length = 677 [16:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:42]execute_script... [16:02:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:42]POST & json_proto [16:02:42]process_json_proto [16:02:42]json parsed OK: [16:02:42]protocol is kg_v1.0 [16:02:42]action value=close_receipt [16:02:42]process_action close_receipt [16:02:42]cmd_close_receipt [16:02:42]MH_GetDate [16:02:42]Write to MH i2c: F0 00 00 2D 30 4C [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: F0 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: F0 09 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: F0 09 00 2D 30 00 A4 53 91 66 C9 DC B2 64 FE [16:02:42]GetLastDocTimeStamp 1720800128 [16:02:42]current date 1720800164 [16:02:42]FM_GetShiftState [16:02:42]SAM_PROTO_GetShiftState [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 13 01 00 [16:02:42]Write to MH i2c: E2 08 00 2E 30 80 13 01 00 00 00 00 00 DB [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0E 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0E 00 2E 30 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 25 [16:02:42]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:02:42]wFMCommunicate OK [16:02:42]SAM_PROTO_GetShiftState done [16:02:42]FM_GetShiftState done [16:02:42]opened in 1720744654 [16:02:42]opened+sec_in_day 1720831054 [16:02:42]quantity*price = 30004 [16:02:42]sum+1 = 30006 [16:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 206 12.07.2024 16:02 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164285 ФПД: 274996739020586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T160244&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164285&fm=274996739020586&tin=02508201610067®Number=0000000000090829&sum=30000 [16:02:43]StoreToDocumentArchive [16:02:43]shift 445 fd 164285 [16:02:43]save to /storage/0445/doc_00164285 [16:02:43]save last doc name /storage/0445/doc_00164285 to /storage/kkm_last_doc_name [16:02:43]save OK [16:02:43]Clear old archive folders... [16:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:43]tlvbuf is 00AF18C0 [16:02:43]SAM_PROTO_ClearQueue [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 09 00 00 [16:02:43]Write to MH i2c: E2 08 00 3B 30 80 09 00 00 00 00 00 00 DD [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 3B 30 00 90 00 DF [16:02:43]RAPDU: 90 00 [16:02:43]wFMCommunicate OK [16:02:43]SAM_PROTO_ClearQueue done [16:02:43]KKMCreateOFDPacket [16:02:43]OFDProtocolAddRootSTLVToBuf [16:02:43]FM_MakeSignedData [16:02:43]FM_MakeSignedData [16:02:43]SAM_PROTO_SignData [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 0D 01 02 [16:02:43]Write to MH i2c: E2 08 00 3C 30 80 0D 01 02 00 00 00 00 E5 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 3C 30 00 90 00 E0 [16:02:43]RAPDU: 90 00 [16:02:43]wFMCommunicate OK [16:02:43]wFMCommunicate request_size=255 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 A4 53 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 81 02 00 35 04 06 00 FA [16:02:43]Write to MH i2c: E2 02 01 3D 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 A4 53 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 81 02 00 35 04 06 00 FA 00 00 D3 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 3D 30 00 90 00 E1 [16:02:43]RAPDU: 90 00 [16:02:43]wFMCommunicate OK [16:02:43]wFMCommunicate request_size=10 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 0D 02 02 05 1B AA F1 97 2A [16:02:43]Write to MH i2c: E2 0D 00 3E 30 80 0D 02 02 05 00 1B AA F1 97 2A 00 00 69 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 03 00 3E 30 00 90 00 E2 [16:02:43]RAPDU: 90 00 [16:02:43]wFMCommunicate OK [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 0D 03 02 [16:02:43]Write to MH i2c: E2 08 00 3F 30 80 0D 03 02 00 00 00 00 EA [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 0B 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 0B 00 3F 30 00 DC 53 A5 6F 68 EC C0 0C 90 00 4E [16:02:43]RAPDU: DC 53 A5 6F 68 EC C0 0C 90 00 [16:02:43]wFMCommunicate OK [16:02:43]SAM_PROTO_SignData done [16:02:43]FM_MakeSignedData done [16:02:43]CreateOFDProtocolMessage [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 11 00 00 [16:02:43]Write to MH i2c: E2 08 00 40 30 80 11 00 00 00 00 00 00 EA [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 17 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 17 00 40 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [16:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:02:43]wFMCommunicate OK [16:02:43]CreateOFDProtocolMessage done [16:02:43]OFDSenderStorePacket 164285 [16:02:43]StoreOFDPacket docnum=164285 [16:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 79 07 01 9A 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 A4 53 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 81 02 00 35 04 06 00 FA 1B AA F1 97 2A DC 53 A5 6F 68 EC C0 0C [16:02:43]CheckFolder [16:02:43]dirname=/storage/ofd_packets [16:02:43]CheckFolder done [16:02:43]ProducePacketName [16:02:43]name=ofd_packets/00164285 [16:02:43]NVStorageSaveData ofd_packets/00164285 [16:02:43]File name is /storage/ofd_packets/00164285 [16:02:43]Write 301 bytes [16:02:43]NVStorageSaveData done [16:02:43]OFDSenderStorePacket done [16:02:43]KKMCreateOFDPacket done [16:02:43]NVStorageSaveData kkm_last_timestamp [16:02:43]File name is /storage/kkm_last_timestamp [16:02:43]Write 4 bytes [16:02:43]NVStorageSaveData done [16:02:43]ExternCall_PrintAddStr [16:02:43]wPrintStart [16:02:43]Write to MH i2c: 01 00 00 41 30 71 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 07 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 07 00 41 30 00 00 00 00 00 FF 0F 86 [16:02:43]RasterBufferAndPrint [16:02:43]line Счет N : (1)458368 [16:02:43]line ИНН: 02508201610067 [16:02:43]line Контрольно-Кассовый Чек [16:02:43]line ПРОДАЖА [16:02:43]line ТРК (МРК, ГНК) : 12 [16:02:43]line Товар: 2710124130 [16:02:43]line Аи-92-К-5 [16:02:43]line 4.560 * 65.80 [16:02:43]line = 300.05 [16:02:43]line НДС 12% НСП 1% [16:02:43]line > о реализуемом товаре [16:02:43]line ОКРУГЛЕНИЕ: -0.05 [16:02:43]line ИТОГО: 300.00 [16:02:43]line Внесено: 300.00 [16:02:43]line СДАЧА: 0.00 [16:02:43]line НСП 1% : 2.65 [16:02:43]line НДС 12% : 31.86 [16:02:43]line Наличными: 300.00 [16:02:43]line Безнал.: 0.00 [16:02:43]line Место: АЗС № 72 "Партнер Нефть" [16:02:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:02:43]line СНО: Общий режим [16:02:43]line Чек 206 12.07.2024 16:02 [16:02:43]line Смена: 445 ФФД: 1.0 [16:02:43]line ЗНМ: 0300000160 [16:02:43]line РНМ: 0000000000090829 [16:02:43]line Версия ККМ: 001 [16:02:43]line ФМ: 0000000000874718 [16:02:43]line ФД: 164285 [16:02:43]line ФПД: 274996739020586 [16:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T160244&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164285&fm=274996739020586&tin=02508201610067®Number=0000000000090829&sum=30000 [16:02:44]written 0, free lines is 4095 [16:02:44]OFD Sender: Processing packet 164285 [packets to send 104, broken 103] [16:02:44]ProducePacketName [16:02:44]name=ofd_packets/00164285 [16:02:44]OFD Sender: To server: pG, [16:02:44]CommunicateWithHost lk.salyk.kg:30040 [16:02:44]ConnectInit lk.salyk.kg [16:02:44]Connected sock=10 [16:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 79 07 01 9A 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 A4 53 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 81 02 00 35 04 06 00 FA 1B AA F1 97 2A DC 53 A5 6F 68 EC C0 0C [16:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 09 BD 47 00 5C 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 34 37 31 38 10 04 04 00 BD 81 02 00 F4 03 04 00 38 FA 90 66 B6 04 01 00 00 FC AE 1E C7 73 1E 21 51 [16:02:44]CommunicateWithHost err = 0 [16:02:44]CheckOFDResponse [16:02:44]1017 (14) - 77093643461234 [16:02:44]1041 (16) - 0000000000874718 [16:02:44]1040 (4) - 164285 [16:02:44]1012 (4) - 12.07.2024 09:41 [16:02:44]1206 (1) - 0 [16:02:44]OFD Sender: Remove packet 164285 [16:02:44]ProducePacketName [16:02:44]name=ofd_packets/00164285 [16:02:44]NVStorageDeleteData [16:02:44]Write to MH i2c: 01 00 00 6B 30 9B [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: 01 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: 01 07 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: 01 07 00 6B 30 00 00 00 00 00 02 0D B1 [16:02:44]RasterBufferAndPrint [16:02:44]line [16:02:44]line [16:02:44]line [16:02:44]line [16:02:44]line [16:02:44]written 0, free lines is 3336 [16:02:44]MH_Cut [16:02:44]Write to MH i2c: D1 01 00 72 30 01 74 [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: D1 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: D1 01 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: D1 01 00 72 30 00 73 [16:02:44]Write to MH i2c: 01 00 00 73 30 A3 [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]OFD Sender: No OFD packet to send [16:02:45]*** Cut start [16:02:45]*** Partial cut [16:02:45]*** CUTSNS_PIN = 1 [16:02:45]*** CUTSNS_PIN = 0 [16:02:45]*** Brake cut motor [16:02:45]Read from MH i2c: 01 [16:02:45]MH_I2C_Read... [16:02:45]*** Stop cut motor [16:02:45]*** Cut end [16:02:45]Read from MH i2c: 01 07 00 [16:02:45]MH_I2C_Read... [16:02:45]Read from MH i2c: 01 07 00 73 30 00 00 00 00 00 FF 0F B8 [16:02:45]process_action close_receipt done [16:02:45]requested_data is exist [16:02:45]produce_requested_data [16:02:45]requested_item fm.sn is exist - process it [16:02:45]wFMCommunicate request_size=4 [16:02:45]MH_SAM_APDU [16:02:45]CAPDU: 80 11 00 00 [16:02:45]Write to MH i2c: E2 08 00 74 30 80 11 00 00 00 00 00 00 1E [16:02:45]Write i2c OK [16:02:45]MH_I2C_Read... [16:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:45]Read from MH i2c: E2 [16:02:45]MH_I2C_Read... [16:02:45]Read from MH i2c: E2 17 00 [16:02:45]MH_I2C_Read... [16:02:45]Read from MH i2c: E2 17 00 74 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 74 [16:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:02:45]wFMCommunicate OK [16:02:45]requested_item fd.num is exist - process it [16:02:45]SAM_PROTO_GetFieldsCounters [16:02:45]wFMCommunicate request_size=4 [16:02:45]MH_SAM_APDU [16:02:45]CAPDU: 80 13 00 00 [16:02:45]Write to MH i2c: E2 08 00 75 30 80 13 00 00 00 00 00 00 21 [16:02:45]Write i2c OK [16:02:45]MH_I2C_Read... [16:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:46]Read from MH i2c: E2 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 62 00 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 62 00 75 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [16:02:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:46]wFMCommunicate OK [16:02:46]SAM_PROTO_GetFieldsCounters done [16:02:46]requested_item shift.num is exist - process it [16:02:46]requested_item shift.opened is exist - process it [16:02:46]req_shift_opened [16:02:46]FM_GetShiftState [16:02:46]SAM_PROTO_GetShiftState [16:02:46]wFMCommunicate request_size=4 [16:02:46]MH_SAM_APDU [16:02:46]CAPDU: 80 13 01 00 [16:02:46]Write to MH i2c: E2 08 00 76 30 80 13 01 00 00 00 00 00 23 [16:02:46]Write i2c OK [16:02:46]MH_I2C_Read... [16:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:46]Read from MH i2c: E2 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 0E 00 [16:02:46]MH_I2C_Read... [16:02:46]Read from MH i2c: E2 0E 00 76 30 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6D [16:02:46]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:02:46]wFMCommunicate OK [16:02:46]SAM_PROTO_GetShiftState done [16:02:46]FM_GetShiftState done [16:02:46]req_shift_opened done [16:02:46]requested_item shift.open_date is exist - process it [16:02:46]req_shift_open_date [16:02:46]req_shift_open_date done [16:02:46]produce_requested_data done [16:02:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164285,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:02:46]process_action_free close_receipt [16:02:46]json_value_free [16:02:46]json_value_free done [16:02:46]process_json_proto returns [16:02:46]Send response to host [16:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164285,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:02:46]free response buf [16:02:46]execute_script done [16:02:46]execute_script returns [16:02:46]free content buf [16:02:46]Sock 9.Close socket [16:02:46]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [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:32]accept exits with 7 [16:05:32]New connection [16:05:32]New thread 3066707300 created [16:05:32]Thread 3066850660 joined [16:05:32]Waiting for new connection... [16:05:32] Sock 7.Parse request [16:05:32]Sock 7.Check first char [16:05:32]Sock 7.First char is OK [16:05:32]request: POST /json_proto HTTP/1.0 [16:05:32]Method: POST [16:05:32]URL: /json_proto [16:05:32]Method is POST - this is cgi request [16:05:32]url: /json_proto [16:05:32]query_string will be loaded in cgi processing [16:05:32]execute_cgi json_proto POST (null) [16:05:32]execute_cgi path=json_proto method=POST [16:05:32]POST find Content-Length [16:05:32]Host: 172.17.56.4:8080 [16:05:32]Content-Length: 679 [16:05:32]Content-Type: application/json [16:05:32] [16:05:32]POST finish read [16:05:32]Found Content-Length = 679 [16:05:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:32]execute_script... [16:05: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)458369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:32]POST & json_proto [16:05:32]process_json_proto [16:05:32]json parsed OK: [16:05:32]protocol is kg_v1.0 [16:05:32]action value=close_receipt [16:05:32]process_action close_receipt [16:05:32]cmd_close_receipt [16:05:32]MH_GetDate [16:05:32]Write to MH i2c: F0 00 00 77 30 96 [16:05:32]Write i2c OK [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: F0 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: F0 09 00 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: F0 09 00 77 30 00 4E 54 91 66 C9 DC B2 64 F3 [16:05:32]GetLastDocTimeStamp 1720800164 [16:05:32]current date 1720800334 [16:05:32]FM_GetShiftState [16:05:32]SAM_PROTO_GetShiftState [16:05:32]wFMCommunicate request_size=4 [16:05:32]MH_SAM_APDU [16:05:32]CAPDU: 80 13 01 00 [16:05:32]Write to MH i2c: E2 08 00 78 30 80 13 01 00 00 00 00 00 25 [16:05:32]Write i2c OK [16:05:32]MH_I2C_Read... [16:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:32]Read from MH i2c: E2 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: E2 0E 00 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: E2 0E 00 78 30 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6F [16:05:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:05:32]wFMCommunicate OK [16:05:32]SAM_PROTO_GetShiftState done [16:05:32]FM_GetShiftState done [16:05:32]opened in 1720744654 [16:05:32]opened+sec_in_day 1720831054 [16:05:32]quantity*price = 150055 [16:05:32]sum+1 = 150056 [16:05:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 207 12.07.2024 16:05 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164286 ФПД: 59133093539650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T160534&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164286&fm=59133093539650&tin=02508201610067®Number=0000000000090829&sum=150000 [16:05:33]StoreToDocumentArchive [16:05:33]shift 445 fd 164286 [16:05:33]save to /storage/0445/doc_00164286 [16:05:33]save last doc name /storage/0445/doc_00164286 to /storage/kkm_last_doc_name [16:05:33]save OK [16:05:33]Clear old archive folders... [16:05:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:05:33]tlvbuf is 00A59240 [16:05:33]SAM_PROTO_ClearQueue [16:05:33]wFMCommunicate request_size=4 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 09 00 00 [16:05:33]Write to MH i2c: E2 08 00 85 30 80 09 00 00 00 00 00 00 27 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 85 30 00 90 00 29 [16:05:33]RAPDU: 90 00 [16:05:33]wFMCommunicate OK [16:05:33]SAM_PROTO_ClearQueue done [16:05:33]KKMCreateOFDPacket [16:05:33]OFDProtocolAddRootSTLVToBuf [16:05:33]FM_MakeSignedData [16:05:33]FM_MakeSignedData [16:05:33]SAM_PROTO_SignData [16:05:33]wFMCommunicate request_size=4 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 0D 01 02 [16:05:33]Write to MH i2c: E2 08 00 86 30 80 0D 01 02 00 00 00 00 2F [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 86 30 00 90 00 2A [16:05:33]RAPDU: 90 00 [16:05:33]wFMCommunicate OK [16:05:33]wFMCommunicate request_size=255 [16:05:33]MH_SAM_APDU [16:05: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 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 4E 54 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 81 02 00 35 04 06 00 35 C7 FF 08 [16:05:33]Write to MH i2c: E2 02 01 87 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 4E 54 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 81 02 00 35 04 06 00 35 C7 FF 08 00 00 A0 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 87 30 00 90 00 2B [16:05:33]RAPDU: 90 00 [16:05:33]wFMCommunicate OK [16:05:33]wFMCommunicate request_size=7 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 0D 02 02 02 EF 42 [16:05:33]Write to MH i2c: E2 0A 00 88 30 80 0D 02 02 02 00 EF 42 00 00 67 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 88 30 00 90 00 2C [16:05:33]RAPDU: 90 00 [16:05:33]wFMCommunicate OK [16:05:33]wFMCommunicate request_size=4 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 0D 03 02 [16:05:33]Write to MH i2c: E2 08 00 89 30 80 0D 03 02 00 00 00 00 34 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 0B 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 0B 00 89 30 00 C1 71 F7 01 B0 76 28 AF 90 00 5C [16:05:33]RAPDU: C1 71 F7 01 B0 76 28 AF 90 00 [16:05:33]wFMCommunicate OK [16:05:33]SAM_PROTO_SignData done [16:05:33]FM_MakeSignedData done [16:05:33]CreateOFDProtocolMessage [16:05:33]wFMCommunicate request_size=4 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 11 00 00 [16:05:33]Write to MH i2c: E2 08 00 8A 30 80 11 00 00 00 00 00 00 34 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 17 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 17 00 8A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [16:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:05:33]wFMCommunicate OK [16:05:33]CreateOFDProtocolMessage done [16:05:33]OFDSenderStorePacket 164286 [16:05:33]StoreOFDPacket docnum=164286 [16:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 45 45 04 01 29 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 4E 54 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 81 02 00 35 04 06 00 35 C7 FF 08 EF 42 C1 71 F7 01 B0 76 28 AF [16:05:33]CheckFolder [16:05:33]dirname=/storage/ofd_packets [16:05:33]CheckFolder done [16:05:33]ProducePacketName [16:05:33]name=ofd_packets/00164286 [16:05:33]NVStorageSaveData ofd_packets/00164286 [16:05:33]File name is /storage/ofd_packets/00164286 [16:05:33]Write 298 bytes [16:05:33]NVStorageSaveData done [16:05:33]OFDSenderStorePacket done [16:05:33]KKMCreateOFDPacket done [16:05:33]NVStorageSaveData kkm_last_timestamp [16:05:33]File name is /storage/kkm_last_timestamp [16:05:33]Write 4 bytes [16:05:33]NVStorageSaveData done [16:05:33]ExternCall_PrintAddStr [16:05:33]wPrintStart [16:05:33]Write to MH i2c: 01 00 00 8B 30 BB [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: 01 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: 01 07 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: 01 07 00 8B 30 00 00 00 00 00 FF 0F D0 [16:05:33]RasterBufferAndPrint [16:05:33]line Счет N : (1)458369 [16:05:33]line ИНН: 02508201610067 [16:05:33]line Контрольно-Кассовый Чек [16:05:33]line ПРОДАЖА [16:05:33]line ТРК (МРК, ГНК) : 11 [16:05:33]line Товар: 2710194210 [16:05:33]line ДТ-К-5 [16:05:33]line 20.870 * 71.90 [16:05:33]line = 1500.55 [16:05:33]line НДС 12% НСП 1% [16:05:33]line > о реализуемом товаре [16:05:33]line ОКРУГЛЕНИЕ: -0.55 [16:05:33]line ИТОГО: 1500.00 [16:05:33]line Внесено: 1500.00 [16:05:33]line СДАЧА: 0.00 [16:05:33]line НСП 1% : 13.28 [16:05:33]line НДС 12% : 159.35 [16:05:33]line Наличными: 1500.00 [16:05:33]line Безнал.: 0.00 [16:05:33]line Место: АЗС № 72 "Партнер Нефть" [16:05:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:05:33]line СНО: Общий режим [16:05:33]line Чек 207 12.07.2024 16:05 [16:05:33]line Смена: 445 ФФД: 1.0 [16:05:33]line ЗНМ: 0300000160 [16:05:33]line РНМ: 0000000000090829 [16:05:33]line Версия ККМ: 001 [16:05:33]line ФМ: 0000000000874718 [16:05:33]line ФД: 164286 [16:05:33]line ФПД: 59133093539650 [16:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T160534&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164286&fm=59133093539650&tin=02508201610067®Number=0000000000090829&sum=150000 [16:05:34]OFD Sender: Processing packet 164286 [packets to send 104, broken 103] [16:05:34]ProducePacketName [16:05:34]name=ofd_packets/00164286 [16:05:34]OFD Sender: To server: pG, [16:05:34]CommunicateWithHost lk.salyk.kg:30040 [16:05:34]ConnectInit lk.salyk.kg [16:05:34]written 0, free lines is 4095 [16:05:34]Write to MH i2c: 01 00 00 B5 30 E5 [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: 01 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: 01 07 00 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: 01 07 00 B5 30 00 00 00 00 00 F7 0C EF [16:05:34]RasterBufferAndPrint [16:05:34]line [16:05:34]line [16:05:34]line [16:05:34]line [16:05:34]line [16:05:34]written 0, free lines is 3323 [16:05:34]MH_Cut [16:05:34]Write to MH i2c: D1 01 00 BC 30 01 BE [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: D1 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: D1 01 00 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: D1 01 00 BC 30 00 BD [16:05:34]Write to MH i2c: 01 00 00 BD 30 ED [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:35]*** Cut start [16:05:35]*** Partial cut [16:05:35]*** CUTSNS_PIN = 1 [16:05:35]*** CUTSNS_PIN = 0 [16:05:35]*** Brake cut motor [16:05:35]Read from MH i2c: 01 [16:05:35]MH_I2C_Read... [16:05:35]*** Stop cut motor [16:05:35]*** Cut end [16:05:35]Read from MH i2c: 01 07 00 [16:05:35]MH_I2C_Read... [16:05:35]Read from MH i2c: 01 07 00 BD 30 00 00 00 00 00 FF 0F 02 [16:05:35]process_action close_receipt done [16:05:35]requested_data is exist [16:05:35]produce_requested_data [16:05:35]requested_item fm.sn is exist - process it [16:05:35]wFMCommunicate request_size=4 [16:05:35]MH_SAM_APDU [16:05:35]CAPDU: 80 11 00 00 [16:05:35]Write to MH i2c: E2 08 00 BE 30 80 11 00 00 00 00 00 00 68 [16:05:35]Write i2c OK [16:05:35]MH_I2C_Read... [16:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:35]Read from MH i2c: E2 [16:05:35]MH_I2C_Read... [16:05:35]Read from MH i2c: E2 17 00 [16:05:35]MH_I2C_Read... [16:05:35]Read from MH i2c: E2 17 00 BE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [16:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:05:35]wFMCommunicate OK [16:05:35]requested_item fd.num is exist - process it [16:05:35]SAM_PROTO_GetFieldsCounters [16:05:35]wFMCommunicate request_size=4 [16:05:35]MH_SAM_APDU [16:05:35]CAPDU: 80 13 00 00 [16:05:35]Write to MH i2c: E2 08 00 BF 30 80 13 00 00 00 00 00 00 6B [16:05:35]Write i2c OK [16:05:35]MH_I2C_Read... [16:05:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:36]Read from MH i2c: E2 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 62 00 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 62 00 BF 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [16:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:36]wFMCommunicate OK [16:05:36]SAM_PROTO_GetFieldsCounters done [16:05:36]requested_item shift.num is exist - process it [16:05:36]requested_item shift.opened is exist - process it [16:05:36]req_shift_opened [16:05:36]FM_GetShiftState [16:05:36]SAM_PROTO_GetShiftState [16:05:36]wFMCommunicate request_size=4 [16:05:36]MH_SAM_APDU [16:05:36]CAPDU: 80 13 01 00 [16:05:36]Write to MH i2c: E2 08 00 C0 30 80 13 01 00 00 00 00 00 6D [16:05:36]Write i2c OK [16:05:36]MH_I2C_Read... [16:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:36]Read from MH i2c: E2 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 0E 00 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 0E 00 C0 30 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B7 [16:05:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:05:36]wFMCommunicate OK [16:05:36]SAM_PROTO_GetShiftState done [16:05:36]FM_GetShiftState done [16:05:36]req_shift_opened done [16:05:36]requested_item shift.open_date is exist - process it [16:05:36]req_shift_open_date [16:05:36]req_shift_open_date done [16:05:36]produce_requested_data done [16:05:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164286,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:05:36]process_action_free close_receipt [16:05:36]json_value_free [16:05:36]json_value_free done [16:05:36]process_json_proto returns [16:05:36]Send response to host [16:05:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164286,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:05:36]free response buf [16:05:36]execute_script done [16:05:36]execute_script returns [16:05:36]free content buf [16:05:36]Sock 7.Close socket [16:05:36]Sock 7.Thread stoped [16:07:46]ConnectInit Can't connect to host [16:07:46]CommunicateWithHost connect error [16:07:46]CommunicateWithHost err = -1 [16:07:46]OFD Sender: Server communicate error [16:07:51]OFD Sender: Processing packet 164286 [packets to send 104, broken 103] [16:07:51]ProducePacketName [16:07:51]name=ofd_packets/00164286 [16:07:51]OFD Sender: To server: pG, [16:07:51]CommunicateWithHost lk.salyk.kg:30040 [16:07:51]ConnectInit lk.salyk.kg [16:07:51]Connected sock=7 [16:07:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 45 45 04 01 29 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 4E 54 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 81 02 00 35 04 06 00 35 C7 FF 08 EF 42 C1 71 F7 01 B0 76 28 AF [16:07:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A8 1C 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 34 37 31 38 10 04 04 00 BE 81 02 00 F4 03 04 00 6B FB 90 66 B6 04 01 00 00 CE 9D 14 55 93 00 5F D9 [16:07:51]CommunicateWithHost err = 0 [16:07:51]CheckOFDResponse [16:07:51]1017 (14) - 77093643461234 [16:07:51]1041 (16) - 0000000000874718 [16:07:51]1040 (4) - 164286 [16:07:51]1012 (4) - 12.07.2024 09:46 [16:07:51]1206 (1) - 0 [16:07:51]OFD Sender: Remove packet 164286 [16:07:51]ProducePacketName [16:07:51]name=ofd_packets/00164286 [16:07:51]NVStorageDeleteData [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:31]accept exits with 9 [16:09:31]New connection [16:09:31]New thread 3066850660 created [16:09:31]Thread 3066707300 joined [16:09:31]Waiting for new connection... [16:09:31] Sock 9.Parse request [16:09:31]Sock 9.Check first char [16:09:31]Sock 9.First char is OK [16:09:31]request: POST /json_proto HTTP/1.0 [16:09:31]Method: POST [16:09:31]URL: /json_proto [16:09:31]Method is POST - this is cgi request [16:09:31]url: /json_proto [16:09:31]query_string will be loaded in cgi processing [16:09:31]execute_cgi json_proto POST (null) [16:09:31]execute_cgi path=json_proto method=POST [16:09:31]POST find Content-Length [16:09:31]Host: 172.17.56.4:8080 [16:09:31]Content-Length: 677 [16:09:31]Content-Type: application/json [16:09:31] [16:09:31]POST finish read [16:09:31]Found Content-Length = 677 [16:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:31]execute_script... [16: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)458370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:31]POST & json_proto [16:09:31]process_json_proto [16:09:31]json parsed OK: [16:09:31]protocol is kg_v1.0 [16:09:31]action value=close_receipt [16:09:31]process_action close_receipt [16:09:31]cmd_close_receipt [16:09:31]MH_GetDate [16:09:31]Write to MH i2c: F0 00 00 C1 30 E0 [16:09:31]Write i2c OK [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: F0 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: F0 09 00 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: F0 09 00 C1 30 00 3D 55 91 66 C9 DC B2 64 2D [16:09:31]GetLastDocTimeStamp 1720800334 [16:09:31]current date 1720800573 [16:09:31]FM_GetShiftState [16:09:31]SAM_PROTO_GetShiftState [16:09:31]wFMCommunicate request_size=4 [16:09:31]MH_SAM_APDU [16:09:31]CAPDU: 80 13 01 00 [16:09:31]Write to MH i2c: E2 08 00 C2 30 80 13 01 00 00 00 00 00 6F [16:09:31]Write i2c OK [16:09:31]MH_I2C_Read... [16:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:31]Read from MH i2c: E2 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 0E 00 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 0E 00 C2 30 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B9 [16:09:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:09:31]wFMCommunicate OK [16:09:31]SAM_PROTO_GetShiftState done [16:09:31]FM_GetShiftState done [16:09:31]opened in 1720744654 [16:09:31]opened+sec_in_day 1720831054 [16:09:31]quantity*price = 32044 [16:09:31]sum+1 = 32046 [16:09:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 208 12.07.2024 16:09 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164287 ФПД: 70038283002878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T160933&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164287&fm=70038283002878&tin=02508201610067®Number=0000000000090829&sum=32000 [16:09:32]StoreToDocumentArchive [16:09:32]shift 445 fd 164287 [16:09:32]save to /storage/0445/doc_00164287 [16:09:32]save last doc name /storage/0445/doc_00164287 to /storage/kkm_last_doc_name [16:09:32]save OK [16:09:32]Clear old archive folders... [16:09:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:32]tlvbuf is B6F3F830 [16:09:32]SAM_PROTO_ClearQueue [16:09:32]wFMCommunicate request_size=4 [16:09:32]MH_SAM_APDU [16:09:32]CAPDU: 80 09 00 00 [16:09:32]Write to MH i2c: E2 08 00 CF 30 80 09 00 00 00 00 00 00 71 [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 03 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 03 00 CF 30 00 90 00 73 [16:09:32]RAPDU: 90 00 [16:09:32]wFMCommunicate OK [16:09:32]SAM_PROTO_ClearQueue done [16:09:32]KKMCreateOFDPacket [16:09:32]OFDProtocolAddRootSTLVToBuf [16:09:32]FM_MakeSignedData [16:09:32]FM_MakeSignedData [16:09:32]SAM_PROTO_SignData [16:09:32]wFMCommunicate request_size=4 [16:09:32]MH_SAM_APDU [16:09:32]CAPDU: 80 0D 01 02 [16:09:32]Write to MH i2c: E2 08 00 D0 30 80 0D 01 02 00 00 00 00 79 [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 03 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 03 00 D0 30 00 90 00 74 [16:09:32]RAPDU: 90 00 [16:09:32]wFMCommunicate OK [16:09:32]wFMCommunicate request_size=255 [16:09:32]MH_SAM_APDU [16: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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 3D 55 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 81 02 00 35 04 06 00 3F [16:09:32]Write to MH i2c: E2 02 01 D1 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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 3D 55 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 81 02 00 35 04 06 00 3F 00 00 20 [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 03 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 03 00 D1 30 00 90 00 75 [16:09:32]RAPDU: 90 00 [16:09:32]wFMCommunicate OK [16:09:32]wFMCommunicate request_size=10 [16:09:32]MH_SAM_APDU [16:09:32]CAPDU: 80 0D 02 02 05 B3 0E FA A3 FE [16:09:32]Write to MH i2c: E2 0D 00 D2 30 80 0D 02 02 05 00 B3 0E FA A3 FE 00 00 E2 [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 03 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 03 00 D2 30 00 90 00 76 [16:09:32]RAPDU: 90 00 [16:09:32]wFMCommunicate OK [16:09:32]wFMCommunicate request_size=4 [16:09:32]MH_SAM_APDU [16:09:32]CAPDU: 80 0D 03 02 [16:09:32]Write to MH i2c: E2 08 00 D3 30 80 0D 03 02 00 00 00 00 7E [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 0B 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 0B 00 D3 30 00 D2 CB 8A E0 9B E9 C5 92 90 00 61 [16:09:32]RAPDU: D2 CB 8A E0 9B E9 C5 92 90 00 [16:09:32]wFMCommunicate OK [16:09:32]SAM_PROTO_SignData done [16:09:32]FM_MakeSignedData done [16:09:32]CreateOFDProtocolMessage [16:09:32]wFMCommunicate request_size=4 [16:09:32]MH_SAM_APDU [16:09:32]CAPDU: 80 11 00 00 [16:09:32]Write to MH i2c: E2 08 00 D4 30 80 11 00 00 00 00 00 00 7E [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:32]Read from MH i2c: E2 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 17 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: E2 17 00 D4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [16:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:09:32]wFMCommunicate OK [16:09:32]CreateOFDProtocolMessage done [16:09:32]OFDSenderStorePacket 164287 [16:09:32]StoreOFDPacket docnum=164287 [16:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B7 0F 07 01 F1 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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 3D 55 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 81 02 00 35 04 06 00 3F B3 0E FA A3 FE D2 CB 8A E0 9B E9 C5 92 [16:09:32]CheckFolder [16:09:32]dirname=/storage/ofd_packets [16:09:32]CheckFolder done [16:09:32]ProducePacketName [16:09:32]name=ofd_packets/00164287 [16:09:32]NVStorageSaveData ofd_packets/00164287 [16:09:32]File name is /storage/ofd_packets/00164287 [16:09:32]Write 301 bytes [16:09:32]NVStorageSaveData done [16:09:32]OFDSenderStorePacket done [16:09:32]KKMCreateOFDPacket done [16:09:32]NVStorageSaveData kkm_last_timestamp [16:09:32]File name is /storage/kkm_last_timestamp [16:09:32]Write 4 bytes [16:09:32]NVStorageSaveData done [16:09:32]ExternCall_PrintAddStr [16:09:32]wPrintStart [16:09:32]Write to MH i2c: 01 00 00 D5 30 05 [16:09:32]Write i2c OK [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: 01 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: 01 07 00 [16:09:32]MH_I2C_Read... [16:09:32]Read from MH i2c: 01 07 00 D5 30 00 00 00 00 00 FF 0F 1A [16:09:32]RasterBufferAndPrint [16:09:32]line Счет N : (1)458370 [16:09:32]line ИНН: 02508201610067 [16:09:32]line Контрольно-Кассовый Чек [16:09:32]line ПРОДАЖА [16:09:32]line ТРК (МРК, ГНК) : 12 [16:09:32]line Товар: 2710124130 [16:09:32]line Аи-92-К-5 [16:09:32]line 4.870 * 65.80 [16:09:32]line = 320.45 [16:09:32]line НДС 12% НСП 1% [16:09:32]line > о реализуемом товаре [16:09:32]line ОКРУГЛЕНИЕ: -0.45 [16:09:32]line ИТОГО: 320.00 [16:09:32]line Внесено: 320.00 [16:09:32]line СДАЧА: 0.00 [16:09:32]line НСП 1% : 2.84 [16:09:32]line НДС 12% : 34.03 [16:09:32]line Наличными: 320.00 [16:09:32]line Безнал.: 0.00 [16:09:32]line Место: АЗС № 72 "Партнер Нефть" [16:09:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:09:32]line СНО: Общий режим [16:09:32]line Чек 208 12.07.2024 16:09 [16:09:32]line Смена: 445 ФФД: 1.0 [16:09:32]line ЗНМ: 0300000160 [16:09:32]line РНМ: 0000000000090829 [16:09:32]line Версия ККМ: 001 [16:09:32]line ФМ: 0000000000874718 [16:09:32]line ФД: 164287 [16:09:32]line ФПД: 70038283002878 [16:09:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T160933&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164287&fm=70038283002878&tin=02508201610067®Number=0000000000090829&sum=32000 [16:09:33]OFD Sender: Processing packet 164287 [packets to send 104, broken 103] [16:09:33]ProducePacketName [16:09:33]name=ofd_packets/00164287 [16:09:33]OFD Sender: To server: pG, [16:09:33]CommunicateWithHost lk.salyk.kg:30040 [16:09:33]ConnectInit lk.salyk.kg [16:09:33]written 0, free lines is 4095 [16:09:33]Connected sock=10 [16: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 34 37 31 38 0F 01 00 00 B7 0F 07 01 F1 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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 3D 55 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 81 02 00 35 04 06 00 3F B3 0E FA A3 FE D2 CB 8A E0 9B E9 C5 92 [16:09:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D8 3C 47 00 86 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 81 02 00 F4 03 04 00 D1 FB 90 66 B6 04 01 00 00 6B A9 3C 85 8F 67 7E 74 [16:09:33]CommunicateWithHost err = 0 [16:09:33]CheckOFDResponse [16:09:33]1017 (14) - 77093643461234 [16:09:33]1041 (16) - 0000000000874718 [16:09:33]1040 (4) - 164287 [16:09:33]1012 (4) - 12.07.2024 09:48 [16:09:33]1206 (1) - 0 [16:09:33]OFD Sender: Remove packet 164287 [16:09:33]ProducePacketName [16:09:33]name=ofd_packets/00164287 [16:09:33]NVStorageDeleteData [16:09:33]Write to MH i2c: 01 00 00 FF 30 2F [16:09:33]Write i2c OK [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: 01 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: 01 07 00 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: 01 07 00 FF 30 00 00 00 00 00 04 0D 47 [16:09:33]RasterBufferAndPrint [16:09:33]line [16:09:33]line [16:09:33]line [16:09:33]line [16:09:33]line [16:09:33]written 0, free lines is 3338 [16:09:33]MH_Cut [16:09:33]Write to MH i2c: D1 01 00 06 31 01 09 [16:09:33]Write i2c OK [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: D1 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: D1 01 00 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: D1 01 00 06 31 00 08 [16:09:33]Write to MH i2c: 01 00 00 07 31 38 [16:09:33]Write i2c OK [16:09:33]MH_I2C_Read... [16:09:33]OFD Sender: No OFD packet to send [16:09:34]*** Cut start [16:09:34]*** Partial cut [16:09:34]*** CUTSNS_PIN = 1 [16:09:34]*** CUTSNS_PIN = 0 [16:09:34]*** Brake cut motor [16:09:34]Read from MH i2c: 01 [16:09:34]MH_I2C_Read... [16:09:34]*** Stop cut motor [16:09:34]*** Cut end [16:09:34]Read from MH i2c: 01 07 00 [16:09:34]MH_I2C_Read... [16:09:34]Read from MH i2c: 01 07 00 07 31 00 00 00 00 00 FF 0F 4D [16:09:34]process_action close_receipt done [16:09:34]requested_data is exist [16:09:34]produce_requested_data [16:09:34]requested_item fm.sn is exist - process it [16:09:34]wFMCommunicate request_size=4 [16:09:34]MH_SAM_APDU [16:09:34]CAPDU: 80 11 00 00 [16:09:34]Write to MH i2c: E2 08 00 08 31 80 11 00 00 00 00 00 00 B3 [16:09:34]Write i2c OK [16:09:34]MH_I2C_Read... [16:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:34]Read from MH i2c: E2 [16:09:34]MH_I2C_Read... [16:09:34]Read from MH i2c: E2 17 00 [16:09:34]MH_I2C_Read... [16:09:34]Read from MH i2c: E2 17 00 08 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [16:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:09:34]wFMCommunicate OK [16:09:34]requested_item fd.num is exist - process it [16:09:34]SAM_PROTO_GetFieldsCounters [16:09:34]wFMCommunicate request_size=4 [16:09:34]MH_SAM_APDU [16:09:34]CAPDU: 80 13 00 00 [16:09:34]Write to MH i2c: E2 08 00 09 31 80 13 00 00 00 00 00 00 B6 [16:09:34]Write i2c OK [16:09:34]MH_I2C_Read... [16:09:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:35]Read from MH i2c: E2 [16:09:35]MH_I2C_Read... [16:09:35]Read from MH i2c: E2 62 00 [16:09:35]MH_I2C_Read... [16:09:35]Read from MH i2c: E2 62 00 09 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:35]wFMCommunicate OK [16:09:35]SAM_PROTO_GetFieldsCounters done [16:09:35]requested_item shift.num is exist - process it [16:09:35]requested_item shift.opened is exist - process it [16:09:35]req_shift_opened [16:09:35]FM_GetShiftState [16:09:35]SAM_PROTO_GetShiftState [16:09:35]wFMCommunicate request_size=4 [16:09:35]MH_SAM_APDU [16:09:35]CAPDU: 80 13 01 00 [16:09:35]Write to MH i2c: E2 08 00 0A 31 80 13 01 00 00 00 00 00 B8 [16:09:35]Write i2c OK [16:09:35]MH_I2C_Read... [16:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:35]Read from MH i2c: E2 [16:09:35]MH_I2C_Read... [16:09:35]Read from MH i2c: E2 0E 00 [16:09:35]MH_I2C_Read... [16:09:35]Read from MH i2c: E2 0E 00 0A 31 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 02 [16:09:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:09:35]wFMCommunicate OK [16:09:35]SAM_PROTO_GetShiftState done [16:09:35]FM_GetShiftState done [16:09:35]req_shift_opened done [16:09:35]requested_item shift.open_date is exist - process it [16:09:35]req_shift_open_date [16:09:35]req_shift_open_date done [16:09:35]produce_requested_data done [16:09:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164287,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:09:35]process_action_free close_receipt [16:09:35]json_value_free [16:09:35]json_value_free done [16:09:35]process_json_proto returns [16:09:35]Send response to host [16:09:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164287,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:09:35]free response buf [16:09:35]execute_script done [16:09:35]execute_script returns [16:09:35]free content buf [16:09:35]Sock 9.Close socket [16:09:35]Sock 9.Thread stoped [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:43]accept exits with 7 [16:12:43]New connection [16:12:43]New thread 3066707300 created [16:12:43]Thread 3066850660 joined [16:12:43]Waiting for new connection... [16:12:43] Sock 7.Parse request [16:12:43]Sock 7.Check first char [16:12:43]Sock 7.First char is OK [16:12:43]request: POST /json_proto HTTP/1.0 [16:12:43]Method: POST [16:12:43]URL: /json_proto [16:12:43]Method is POST - this is cgi request [16:12:43]url: /json_proto [16:12:43]query_string will be loaded in cgi processing [16:12:43]execute_cgi json_proto POST (null) [16:12:43]execute_cgi path=json_proto method=POST [16:12:43]POST find Content-Length [16:12:43]Host: 172.17.56.4:8080 [16:12:43]Content-Length: 790 [16:12:43]Content-Type: application/json [16:12:43] [16:12:43]POST finish read [16:12:43]Found Content-Length = 790 [16:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 14.040, "sum" : 1000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:43]execute_script... [16:12:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 14.040, "sum" : 1000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:43]POST & json_proto [16:12:43]process_json_proto [16:12:43]json parsed OK: [16:12:43]protocol is kg_v1.0 [16:12:43]action value=close_receipt [16:12:43]process_action close_receipt [16:12:43]cmd_close_receipt [16:12:43]MH_GetDate [16:12:43]Write to MH i2c: F0 00 00 0B 31 2B [16:12:43]Write i2c OK [16:12:43]MH_I2C_Read... [16:12:43]Read from MH i2c: F0 [16:12:43]MH_I2C_Read... [16:12:43]Read from MH i2c: F0 09 00 [16:12:43]MH_I2C_Read... [16:12:43]Read from MH i2c: F0 09 00 0B 31 00 FD 55 91 66 C9 DC B2 64 38 [16:12:43]GetLastDocTimeStamp 1720800573 [16:12:43]current date 1720800765 [16:12:43]FM_GetShiftState [16:12:43]SAM_PROTO_GetShiftState [16:12:43]wFMCommunicate request_size=4 [16:12:43]MH_SAM_APDU [16:12:43]CAPDU: 80 13 01 00 [16:12:43]Write to MH i2c: E2 08 00 0C 31 80 13 01 00 00 00 00 00 BA [16:12:43]Write i2c OK [16:12:43]MH_I2C_Read... [16:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:43]Read from MH i2c: E2 [16:12:43]MH_I2C_Read... [16:12:43]Read from MH i2c: E2 0E 00 [16:12:43]MH_I2C_Read... [16:12:43]Read from MH i2c: E2 0E 00 0C 31 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 04 [16:12:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:12:43]wFMCommunicate OK [16:12:43]SAM_PROTO_GetShiftState done [16:12:43]FM_GetShiftState done [16:12:43]opened in 1720744654 [16:12:43]opened+sec_in_day 1720831054 [16:12:43]quantity*price = 100049 [16:12:43]sum+1 = 100050 [16:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.49 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.49 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 209 12.07.2024 16:12 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164288 ФПД: 208419127864908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T161245&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164288&fm=208419127864908&tin=02508201610067®Number=0000000000090829&sum=100049 [16:12:44]StoreToDocumentArchive [16:12:44]shift 445 fd 164288 [16:12:44]save to /storage/0445/doc_00164288 [16:12:44]save last doc name /storage/0445/doc_00164288 to /storage/kkm_last_doc_name [16:12:44]save OK [16:12:44]Clear old archive folders... [16:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:12:44]tlvbuf is 00A2E520 [16:12:44]SAM_PROTO_ClearQueue [16:12:44]wFMCommunicate request_size=4 [16:12:44]MH_SAM_APDU [16:12:44]CAPDU: 80 09 00 00 [16:12:44]Write to MH i2c: E2 08 00 19 31 80 09 00 00 00 00 00 00 BC [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:44]Read from MH i2c: E2 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 03 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 03 00 19 31 00 90 00 BE [16:12:44]RAPDU: 90 00 [16:12:44]wFMCommunicate OK [16:12:44]SAM_PROTO_ClearQueue done [16:12:44]KKMCreateOFDPacket [16:12:44]OFDProtocolAddRootSTLVToBuf [16:12:44]FM_MakeSignedData [16:12:44]FM_MakeSignedData [16:12:44]SAM_PROTO_SignData [16:12:44]wFMCommunicate request_size=4 [16:12:44]MH_SAM_APDU [16:12:44]CAPDU: 80 0D 01 02 [16:12:44]Write to MH i2c: E2 08 00 1A 31 80 0D 01 02 00 00 00 00 C4 [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:44]Read from MH i2c: E2 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 03 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 03 00 1A 31 00 90 00 BF [16:12:44]RAPDU: 90 00 [16:12:44]wFMCommunicate OK [16:12:44]wFMCommunicate request_size=255 [16:12:44]MH_SAM_APDU [16:12: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 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 FD 55 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 81 02 00 35 04 06 00 BD 8E 5C 14 [16:12:44]Write to MH i2c: E2 02 01 1B 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 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 FD 55 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 81 02 00 35 04 06 00 BD 8E 5C 14 00 00 26 [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:44]Read from MH i2c: E2 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 03 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 03 00 1B 31 00 90 00 C0 [16:12:44]RAPDU: 90 00 [16:12:44]wFMCommunicate OK [16:12:44]wFMCommunicate request_size=7 [16:12:44]MH_SAM_APDU [16:12:44]CAPDU: 80 0D 02 02 02 AE 4C [16:12:44]Write to MH i2c: E2 0A 00 1C 31 80 0D 02 02 02 00 AE 4C 00 00 C5 [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:44]Read from MH i2c: E2 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 03 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 03 00 1C 31 00 90 00 C1 [16:12:44]RAPDU: 90 00 [16:12:44]wFMCommunicate OK [16:12:44]wFMCommunicate request_size=4 [16:12:44]MH_SAM_APDU [16:12:44]CAPDU: 80 0D 03 02 [16:12:44]Write to MH i2c: E2 08 00 1D 31 80 0D 03 02 00 00 00 00 C9 [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:44]Read from MH i2c: E2 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 0B 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 0B 00 1D 31 00 8C 47 99 1B 08 00 BF 03 90 00 1B [16:12:44]RAPDU: 8C 47 99 1B 08 00 BF 03 90 00 [16:12:44]wFMCommunicate OK [16:12:44]SAM_PROTO_SignData done [16:12:44]FM_MakeSignedData done [16:12:44]CreateOFDProtocolMessage [16:12:44]wFMCommunicate request_size=4 [16:12:44]MH_SAM_APDU [16:12:44]CAPDU: 80 11 00 00 [16:12:44]Write to MH i2c: E2 08 00 1E 31 80 11 00 00 00 00 00 00 C9 [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:44]Read from MH i2c: E2 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 17 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: E2 17 00 1E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [16:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:12:44]wFMCommunicate OK [16:12:44]CreateOFDProtocolMessage done [16:12:44]OFDSenderStorePacket 164288 [16:12:44]StoreOFDPacket docnum=164288 [16:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 07 E6 04 01 97 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 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 FD 55 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 81 02 00 35 04 06 00 BD 8E 5C 14 AE 4C 8C 47 99 1B 08 00 BF 03 [16:12:44]CheckFolder [16:12:44]dirname=/storage/ofd_packets [16:12:44]CheckFolder done [16:12:44]ProducePacketName [16:12:44]name=ofd_packets/00164288 [16:12:44]NVStorageSaveData ofd_packets/00164288 [16:12:44]File name is /storage/ofd_packets/00164288 [16:12:44]Write 298 bytes [16:12:44]NVStorageSaveData done [16:12:44]OFDSenderStorePacket done [16:12:44]KKMCreateOFDPacket done [16:12:44]NVStorageSaveData kkm_last_timestamp [16:12:44]File name is /storage/kkm_last_timestamp [16:12:44]Write 4 bytes [16:12:44]NVStorageSaveData done [16:12:44]ExternCall_PrintAddStr [16:12:44]wPrintStart [16:12:44]Write to MH i2c: 01 00 00 1F 31 50 [16:12:44]Write i2c OK [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: 01 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: 01 07 00 [16:12:44]MH_I2C_Read... [16:12:44]Read from MH i2c: 01 07 00 1F 31 00 00 00 00 00 FF 0F 65 [16:12:44]RasterBufferAndPrint [16:12:44]line Счет N : (1)458372 [16:12:44]line ИНН: 02508201610067 [16:12:44]line Контрольно-Кассовый Чек [16:12:44]line ПРОДАЖА [16:12:44]line ТРК (МРК, ГНК) : 11 [16:12:44]line Товар: 2710194210 [16:12:44]line ДТ-К-5 [16:12:44]line 14.040 * 71.26 [16:12:45]line = 1000.49 [16:12:45]line НДС 12% НСП 1% [16:12:45]line > о реализуемом товаре [16:12:45]line ИТОГО: 1000.49 [16:12:45]line НСП 1% : 8.85 [16:12:45]line НДС 12% : 106.25 [16:12:45]line Наличными: 0.00 [16:12:45]line Безнал.: 1000.49 [16:12:45]line Место: АЗС № 72 "Партнер Нефть" [16:12:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:12:45]line СНО: Общий режим [16:12:45]line Чек 209 12.07.2024 16:12 [16:12:45]line Смена: 445 ФФД: 1.0 [16:12:45]line ЗНМ: 0300000160 [16:12:45]line РНМ: 0000000000090829 [16:12:45]line Версия ККМ: 001 [16:12:45]line Платежная система: KICB Банк [16:12:45]line ФМ: 0000000000874718 [16:12:45]line ФД: 164288 [16:12:45]line ФПД: 208419127864908 [16:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T161245&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164288&fm=208419127864908&tin=02508201610067®Number=0000000000090829&sum=100049 [16:12:45]OFD Sender: Processing packet 164288 [packets to send 104, broken 103] [16:12:45]ProducePacketName [16:12:45]name=ofd_packets/00164288 [16:12:45]OFD Sender: To server: pG, [16:12:45]CommunicateWithHost lk.salyk.kg:30040 [16:12:45]ConnectInit lk.salyk.kg [16:12:45]written 0, free lines is 4095 [16:12:45]Connected sock=11 [16:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 07 E6 04 01 97 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 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 FD 55 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 81 02 00 35 04 06 00 BD 8E 5C 14 AE 4C 8C 47 99 1B 08 00 BF 03 [16:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 28 8B 47 00 77 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 34 37 31 38 10 04 04 00 C0 81 02 00 F4 03 04 00 91 FC 90 66 B6 04 01 00 00 7C F6 3A 13 9C 0B 02 FC [16:12:45]CommunicateWithHost err = 0 [16:12:45]CheckOFDResponse [16:12:45]1017 (14) - 77093643461234 [16:12:45]1041 (16) - 0000000000874718 [16:12:45]1040 (4) - 164288 [16:12:45]1012 (4) - 12.07.2024 09:51 [16:12:45]1206 (1) - 0 [16:12:45]OFD Sender: Remove packet 164288 [16:12:45]ProducePacketName [16:12:45]name=ofd_packets/00164288 [16:12:45]NVStorageDeleteData [16:12:45]Write to MH i2c: 01 00 00 48 31 79 [16:12:45]Write i2c OK [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: 01 [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: 01 07 00 [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: 01 07 00 48 31 00 00 00 00 00 05 0D 92 [16:12:45]RasterBufferAndPrint [16:12:45]line [16:12:45]line [16:12:45]line [16:12:45]line [16:12:45]line [16:12:45]written 0, free lines is 3340 [16:12:45]MH_Cut [16:12:45]Write to MH i2c: D1 01 00 4F 31 01 52 [16:12:45]Write i2c OK [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: D1 [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: D1 01 00 [16:12:45]MH_I2C_Read... [16:12:45]Read from MH i2c: D1 01 00 4F 31 00 51 [16:12:45]Write to MH i2c: 01 00 00 50 31 81 [16:12:45]Write i2c OK [16:12:45]MH_I2C_Read... [16:12:46]OFD Sender: No OFD packet to send [16:12:46]*** Cut start [16:12:46]*** Partial cut [16:12:46]*** CUTSNS_PIN = 1 [16:12:46]*** CUTSNS_PIN = 0 [16:12:46]*** Brake cut motor [16:12:47]Read from MH i2c: 01 [16:12:47]MH_I2C_Read... [16:12:47]*** Stop cut motor [16:12:47]*** Cut end [16:12:47]Read from MH i2c: 01 07 00 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: 01 07 00 50 31 00 00 00 00 00 FF 0F 96 [16:12:47]process_action close_receipt done [16:12:47]requested_data is exist [16:12:47]produce_requested_data [16:12:47]requested_item fm.sn is exist - process it [16:12:47]wFMCommunicate request_size=4 [16:12:47]MH_SAM_APDU [16:12:47]CAPDU: 80 11 00 00 [16:12:47]Write to MH i2c: E2 08 00 51 31 80 11 00 00 00 00 00 00 FC [16:12:47]Write i2c OK [16:12:47]MH_I2C_Read... [16:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:47]Read from MH i2c: E2 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: E2 17 00 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: E2 17 00 51 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [16:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:12:47]wFMCommunicate OK [16:12:47]requested_item fd.num is exist - process it [16:12:47]SAM_PROTO_GetFieldsCounters [16:12:47]wFMCommunicate request_size=4 [16:12:47]MH_SAM_APDU [16:12:47]CAPDU: 80 13 00 00 [16:12:47]Write to MH i2c: E2 08 00 52 31 80 13 00 00 00 00 00 00 FF [16:12:47]Write i2c OK [16:12:47]MH_I2C_Read... [16:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:47]Read from MH i2c: E2 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: E2 62 00 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: E2 62 00 52 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [16:12:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:47]wFMCommunicate OK [16:12:47]SAM_PROTO_GetFieldsCounters done [16:12:47]requested_item shift.num is exist - process it [16:12:47]requested_item shift.opened is exist - process it [16:12:47]req_shift_opened [16:12:47]FM_GetShiftState [16:12:47]SAM_PROTO_GetShiftState [16:12:47]wFMCommunicate request_size=4 [16:12:47]MH_SAM_APDU [16:12:47]CAPDU: 80 13 01 00 [16:12:47]Write to MH i2c: E2 08 00 53 31 80 13 01 00 00 00 00 00 01 [16:12:47]Write i2c OK [16:12:47]MH_I2C_Read... [16:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:47]Read from MH i2c: E2 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: E2 0E 00 [16:12:47]MH_I2C_Read... [16:12:47]Read from MH i2c: E2 0E 00 53 31 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4B [16:12:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:12:47]wFMCommunicate OK [16:12:47]SAM_PROTO_GetShiftState done [16:12:47]FM_GetShiftState done [16:12:47]req_shift_opened done [16:12:47]requested_item shift.open_date is exist - process it [16:12:47]req_shift_open_date [16:12:47]req_shift_open_date done [16:12:47]produce_requested_data done [16:12:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164288,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:12:47]process_action_free close_receipt [16:12:47]json_value_free [16:12:47]json_value_free done [16:12:47]process_json_proto returns [16:12:47]Send response to host [16:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164288,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:12:47]free response buf [16:12:47]execute_script done [16:12:47]execute_script returns [16:12:47]free content buf [16:12:47]Sock 7.Close socket [16:12:47]Sock 7.Thread stoped [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:07]accept exits with 9 [16:13:07]New connection [16:13:07]New thread 3066850660 created [16:13:07]Thread 3066707300 joined [16:13:07]Waiting for new connection... [16:13:07] Sock 9.Parse request [16:13:07]Sock 9.Check first char [16:13:07]Sock 9.First char is OK [16:13:07]request: POST /json_proto HTTP/1.0 [16:13:07]Method: POST [16:13:07]URL: /json_proto [16:13:07]Method is POST - this is cgi request [16:13:07]url: /json_proto [16:13:07]query_string will be loaded in cgi processing [16:13:07]execute_cgi json_proto POST (null) [16:13:07]execute_cgi path=json_proto method=POST [16:13:07]POST find Content-Length [16:13:07]Host: 172.17.56.4:8080 [16:13:07]Content-Length: 793 [16:13:07]Content-Type: application/json [16:13:07] [16:13:07]POST finish read [16:13:07]Found Content-Length = 793 [16:13:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 33.000, "sum" : 2152.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2152.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:07]execute_script... [16:13: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)458371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 33.000, "sum" : 2152.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2152.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:07]POST & json_proto [16:13:07]process_json_proto [16:13:07]json parsed OK: [16:13:07]protocol is kg_v1.0 [16:13:07]action value=close_receipt [16:13:07]process_action close_receipt [16:13:07]cmd_close_receipt [16:13:07]MH_GetDate [16:13:07]Write to MH i2c: F0 00 00 54 31 74 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: F0 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: F0 09 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: F0 09 00 54 31 00 15 56 91 66 C9 DC B2 64 9A [16:13:07]GetLastDocTimeStamp 1720800765 [16:13:07]current date 1720800789 [16:13:07]FM_GetShiftState [16:13:07]SAM_PROTO_GetShiftState [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 13 01 00 [16:13:07]Write to MH i2c: E2 08 00 55 31 80 13 01 00 00 00 00 00 03 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 0E 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 0E 00 55 31 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4D [16:13:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_GetShiftState done [16:13:07]FM_GetShiftState done [16:13:07]opened in 1720744654 [16:13:07]opened+sec_in_day 1720831054 [16:13:07]quantity*price = 215226 [16:13:07]sum+1 = 215227 [16:13:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2152.26 НСП 1% : 19.05 НДС 12% : 228.56 Наличными: 0.00 Безнал.: 2152.26 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 210 12.07.2024 16:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164289 ФПД: 125033858131188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T161309&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164289&fm=125033858131188&tin=02508201610067®Number=0000000000090829&sum=215226 [16:13:08]StoreToDocumentArchive [16:13:08]shift 445 fd 164289 [16:13:08]save to /storage/0445/doc_00164289 [16:13:08]save last doc name /storage/0445/doc_00164289 to /storage/kkm_last_doc_name [16:13:08]save OK [16:13:08]Clear old archive folders... [16:13:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:08]tlvbuf is B6EC1940 [16:13:08]SAM_PROTO_ClearQueue [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 09 00 00 [16:13:08]Write to MH i2c: E2 08 00 62 31 80 09 00 00 00 00 00 00 05 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 62 31 00 90 00 07 [16:13:08]RAPDU: 90 00 [16:13:08]wFMCommunicate OK [16:13:08]SAM_PROTO_ClearQueue done [16:13:08]KKMCreateOFDPacket [16:13:08]OFDProtocolAddRootSTLVToBuf [16:13:08]FM_MakeSignedData [16:13:08]FM_MakeSignedData [16:13:08]SAM_PROTO_SignData [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 0D 01 02 [16:13:08]Write to MH i2c: E2 08 00 63 31 80 0D 01 02 00 00 00 00 0D [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 63 31 00 90 00 08 [16:13:08]RAPDU: 90 00 [16:13:08]wFMCommunicate OK [16:13:08]wFMCommunicate request_size=255 [16:13:08]MH_SAM_APDU [16:13: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 E8 80 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 BA 48 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 48 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 59 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 48 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 15 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 81 02 00 35 04 06 00 71 [16:13:08]Write to MH i2c: E2 02 01 64 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 E8 80 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 BA 48 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 48 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 59 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 48 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 15 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 81 02 00 35 04 06 00 71 00 00 E7 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 64 31 00 90 00 09 [16:13:08]RAPDU: 90 00 [16:13:08]wFMCommunicate OK [16:13:08]wFMCommunicate request_size=10 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 0D 02 02 05 B7 B6 B2 E4 F4 [16:13:08]Write to MH i2c: E2 0D 00 65 31 80 0D 02 02 05 00 B7 B6 B2 E4 F4 00 00 11 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 03 00 65 31 00 90 00 0A [16:13:08]RAPDU: 90 00 [16:13:08]wFMCommunicate OK [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 0D 03 02 [16:13:08]Write to MH i2c: E2 08 00 66 31 80 0D 03 02 00 00 00 00 12 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0B 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0B 00 66 31 00 1A 5D 90 54 31 8A 68 0B 90 00 9C [16:13:08]RAPDU: 1A 5D 90 54 31 8A 68 0B 90 00 [16:13:08]wFMCommunicate OK [16:13:08]SAM_PROTO_SignData done [16:13:08]FM_MakeSignedData done [16:13:08]CreateOFDProtocolMessage [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 11 00 00 [16:13:08]Write to MH i2c: E2 08 00 67 31 80 11 00 00 00 00 00 00 12 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 17 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 17 00 67 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [16:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:08]wFMCommunicate OK [16:13:08]CreateOFDProtocolMessage done [16:13:08]OFDSenderStorePacket 164289 [16:13:08]StoreOFDPacket docnum=164289 [16:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 67 29 07 01 06 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 E8 80 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 BA 48 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 48 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 59 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 48 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 15 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 81 02 00 35 04 06 00 71 B7 B6 B2 E4 F4 1A 5D 90 54 31 8A 68 0B [16:13:08]CheckFolder [16:13:08]dirname=/storage/ofd_packets [16:13:08]CheckFolder done [16:13:08]ProducePacketName [16:13:08]name=ofd_packets/00164289 [16:13:08]NVStorageSaveData ofd_packets/00164289 [16:13:08]File name is /storage/ofd_packets/00164289 [16:13:08]Write 301 bytes [16:13:08]NVStorageSaveData done [16:13:08]OFDSenderStorePacket done [16:13:08]KKMCreateOFDPacket done [16:13:08]NVStorageSaveData kkm_last_timestamp [16:13:08]File name is /storage/kkm_last_timestamp [16:13:08]Write 4 bytes [16:13:08]NVStorageSaveData done [16:13:08]ExternCall_PrintAddStr [16:13:08]wPrintStart [16:13:08]Write to MH i2c: 01 00 00 68 31 99 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 07 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 07 00 68 31 00 00 00 00 00 FF 0F AE [16:13:08]RasterBufferAndPrint [16:13:08]line Счет N : (1)458371 [16:13:08]line ИНН: 02508201610067 [16:13:08]line Контрольно-Кассовый Чек [16:13:08]line ПРОДАЖА [16:13:08]line ТРК (МРК, ГНК) : 22 [16:13:08]line Товар: 2710124130 [16:13:08]line Аи-92-К-5 [16:13:08]line 33.000 * 65.22 [16:13:08]line = 2152.26 [16:13:08]line НДС 12% НСП 1% [16:13:08]line > о реализуемом товаре [16:13:08]line ИТОГО: 2152.26 [16:13:08]line НСП 1% : 19.05 [16:13:08]line НДС 12% : 228.56 [16:13:08]line Наличными: 0.00 [16:13:08]line Безнал.: 2152.26 [16:13:08]line Место: АЗС № 72 "Партнер Нефть" [16:13:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:13:08]line СНО: Общий режим [16:13:08]line Чек 210 12.07.2024 16:13 [16:13:08]line Смена: 445 ФФД: 1.0 [16:13:08]line ЗНМ: 0300000160 [16:13:08]line РНМ: 0000000000090829 [16:13:08]line Версия ККМ: 001 [16:13:08]line Платежная система: KICB Банк [16:13:08]line ФМ: 0000000000874718 [16:13:08]line ФД: 164289 [16:13:08]line ФПД: 125033858131188 [16:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T161309&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164289&fm=125033858131188&tin=02508201610067®Number=0000000000090829&sum=215226 [16:13:08]written 0, free lines is 4095 [16:13:08]OFD Sender: Processing packet 164289 [packets to send 104, broken 103] [16:13:08]ProducePacketName [16:13:08]name=ofd_packets/00164289 [16:13:08]OFD Sender: To server: pG, [16:13:08]CommunicateWithHost lk.salyk.kg:30040 [16:13:08]ConnectInit lk.salyk.kg [16:13:09]Connected sock=10 [16:13:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 67 29 07 01 06 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 E8 80 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 BA 48 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 48 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 59 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 48 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 15 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 81 02 00 35 04 06 00 71 B7 B6 B2 E4 F4 1A 5D 90 54 31 8A 68 0B [16:13:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 29 CE 47 00 BB 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 34 37 31 38 10 04 04 00 C1 81 02 00 F4 03 04 00 A8 FC 90 66 B6 04 01 00 00 D5 56 0F 9F 0A 86 C0 B3 [16:13:09]CommunicateWithHost err = 0 [16:13:09]CheckOFDResponse [16:13:09]1017 (14) - 77093643461234 [16:13:09]1041 (16) - 0000000000874718 [16:13:09]1040 (4) - 164289 [16:13:09]1012 (4) - 12.07.2024 09:51 [16:13:09]1206 (1) - 0 [16:13:09]OFD Sender: Remove packet 164289 [16:13:09]ProducePacketName [16:13:09]name=ofd_packets/00164289 [16:13:09]NVStorageDeleteData [16:13:09]Write to MH i2c: 01 00 00 91 31 C2 [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: 01 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: 01 07 00 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: 01 07 00 91 31 00 00 00 00 00 21 0D F7 [16:13:09]RasterBufferAndPrint [16:13:09]line [16:13:09]line [16:13:09]line [16:13:09]line [16:13:09]line [16:13:09]written 0, free lines is 3367 [16:13:09]MH_Cut [16:13:09]Write to MH i2c: D1 01 00 98 31 01 9B [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: D1 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: D1 01 00 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: D1 01 00 98 31 00 9A [16:13:09]Write to MH i2c: 01 00 00 99 31 CA [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]OFD Sender: No OFD packet to send [16:13:10]*** Cut start [16:13:10]*** Partial cut [16:13:10]*** CUTSNS_PIN = 1 [16:13:10]*** CUTSNS_PIN = 0 [16:13:10]*** Brake cut motor [16:13:10]Read from MH i2c: 01 [16:13:10]MH_I2C_Read... [16:13:10]*** Stop cut motor [16:13:10]*** Cut end [16:13:10]Read from MH i2c: 01 07 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 99 31 00 00 00 00 00 FF 0F DF [16:13:10]process_action close_receipt done [16:13:10]requested_data is exist [16:13:10]produce_requested_data [16:13:10]requested_item fm.sn is exist - process it [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 11 00 00 [16:13:10]Write to MH i2c: E2 08 00 9A 31 80 11 00 00 00 00 00 00 45 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:10]Read from MH i2c: E2 17 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 9A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [16:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:10]wFMCommunicate OK [16:13:10]requested_item fd.num is exist - process it [16:13:10]SAM_PROTO_GetFieldsCounters [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 13 00 00 [16:13:10]Write to MH i2c: E2 08 00 9B 31 80 13 00 00 00 00 00 00 48 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 62 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 62 00 9B 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [16:13:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_GetFieldsCounters done [16:13:10]requested_item shift.num is exist - process it [16:13:10]requested_item shift.opened is exist - process it [16:13:10]req_shift_opened [16:13:10]FM_GetShiftState [16:13:10]SAM_PROTO_GetShiftState [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 13 01 00 [16:13:10]Write to MH i2c: E2 08 00 9C 31 80 13 01 00 00 00 00 00 4A [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0E 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0E 00 9C 31 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 94 [16:13:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_GetShiftState done [16:13:10]FM_GetShiftState done [16:13:10]req_shift_opened done [16:13:10]requested_item shift.open_date is exist - process it [16:13:10]req_shift_open_date [16:13:10]req_shift_open_date done [16:13:10]produce_requested_data done [16:13:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164289,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:13:10]process_action_free close_receipt [16:13:10]json_value_free [16:13:10]json_value_free done [16:13:10]process_json_proto returns [16:13:10]Send response to host [16:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164289,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:13:10]free response buf [16:13:10]execute_script done [16:13:10]execute_script returns [16:13:10]free content buf [16:13:10]Sock 9.Close socket [16:13:10]Sock 9.Thread stoped [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:56]accept exits with 7 [16:15:56]New connection [16:15:56]New thread 3066707300 created [16:15:56]Thread 3066850660 joined [16:15:56]Waiting for new connection... [16:15:56] Sock 7.Parse request [16:15:56]Sock 7.Check first char [16:15:56]Sock 7.First char is OK [16:15:56]request: POST /json_proto HTTP/1.0 [16:15:56]Method: POST [16:15:56]URL: /json_proto [16:15:56]Method is POST - this is cgi request [16:15:56]url: /json_proto [16:15:56]query_string will be loaded in cgi processing [16:15:56]execute_cgi json_proto POST (null) [16:15:56]execute_cgi path=json_proto method=POST [16:15:56]POST find Content-Length [16:15:56]Host: 172.17.56.4:8080 [16:15:56]Content-Length: 679 [16:15:56]Content-Type: application/json [16:15:56] [16:15:56]POST finish read [16:15:56]Found Content-Length = 679 [16:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:15:56]execute_script... [16:15: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)458373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:15:56]POST & json_proto [16:15:56]process_json_proto [16:15:56]json parsed OK: [16:15:56]protocol is kg_v1.0 [16:15:56]action value=close_receipt [16:15:56]process_action close_receipt [16:15:56]cmd_close_receipt [16:15:56]MH_GetDate [16:15:56]Write to MH i2c: F0 00 00 9D 31 BD [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: F0 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: F0 09 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: F0 09 00 9D 31 00 BE 56 91 66 C9 DC B2 64 8C [16:15:56]GetLastDocTimeStamp 1720800789 [16:15:56]current date 1720800958 [16:15:56]FM_GetShiftState [16:15:56]SAM_PROTO_GetShiftState [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 13 01 00 [16:15:56]Write to MH i2c: E2 08 00 9E 31 80 13 01 00 00 00 00 00 4C [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 0E 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 0E 00 9E 31 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 96 [16:15:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:15:56]wFMCommunicate OK [16:15:56]SAM_PROTO_GetShiftState done [16:15:56]FM_GetShiftState done [16:15:56]opened in 1720744654 [16:15:56]opened+sec_in_day 1720831054 [16:15:56]quantity*price = 200025 [16:15:56]sum+1 = 200027 [16:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 211 12.07.2024 16:15 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164290 ФПД: 96199137162304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T161558&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164290&fm=96199137162304&tin=02508201610067®Number=0000000000090829&sum=200000 [16:15:57]StoreToDocumentArchive [16:15:57]shift 445 fd 164290 [16:15:57]save to /storage/0445/doc_00164290 [16:15:57]save last doc name /storage/0445/doc_00164290 to /storage/kkm_last_doc_name [16:15:57]save OK [16:15:57]Clear old archive folders... [16:15:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:15:57]tlvbuf is 00A8A390 [16:15:57]SAM_PROTO_ClearQueue [16:15:57]wFMCommunicate request_size=4 [16:15:57]MH_SAM_APDU [16:15:57]CAPDU: 80 09 00 00 [16:15:57]Write to MH i2c: E2 08 00 AB 31 80 09 00 00 00 00 00 00 4E [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:57]Read from MH i2c: E2 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 03 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 03 00 AB 31 00 90 00 50 [16:15:57]RAPDU: 90 00 [16:15:57]wFMCommunicate OK [16:15:57]SAM_PROTO_ClearQueue done [16:15:57]KKMCreateOFDPacket [16:15:57]OFDProtocolAddRootSTLVToBuf [16:15:57]FM_MakeSignedData [16:15:57]FM_MakeSignedData [16:15:57]SAM_PROTO_SignData [16:15:57]wFMCommunicate request_size=4 [16:15:57]MH_SAM_APDU [16:15:57]CAPDU: 80 0D 01 02 [16:15:57]Write to MH i2c: E2 08 00 AC 31 80 0D 01 02 00 00 00 00 56 [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:57]Read from MH i2c: E2 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 03 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 03 00 AC 31 00 90 00 51 [16:15:57]RAPDU: 90 00 [16:15:57]wFMCommunicate OK [16:15:57]wFMCommunicate request_size=255 [16:15:57]MH_SAM_APDU [16:15:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 D3 00 00 00 F4 03 04 00 BE 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 81 02 00 35 04 06 00 57 7E 1B 65 [16:15:57]Write to MH i2c: E2 02 01 AD 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 D3 00 00 00 F4 03 04 00 BE 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 81 02 00 35 04 06 00 57 7E 1B 65 00 00 7F [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:57]Read from MH i2c: E2 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 03 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 03 00 AD 31 00 90 00 52 [16:15:57]RAPDU: 90 00 [16:15:57]wFMCommunicate OK [16:15:57]wFMCommunicate request_size=7 [16:15:57]MH_SAM_APDU [16:15:57]CAPDU: 80 0D 02 02 02 F4 40 [16:15:57]Write to MH i2c: E2 0A 00 AE 31 80 0D 02 02 02 00 F4 40 00 00 91 [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:57]Read from MH i2c: E2 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 03 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 03 00 AE 31 00 90 00 53 [16:15:57]RAPDU: 90 00 [16:15:57]wFMCommunicate OK [16:15:57]wFMCommunicate request_size=4 [16:15:57]MH_SAM_APDU [16:15:57]CAPDU: 80 0D 03 02 [16:15:57]Write to MH i2c: E2 08 00 AF 31 80 0D 03 02 00 00 00 00 5B [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:57]Read from MH i2c: E2 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 0B 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 0B 00 AF 31 00 E1 4E 14 11 2A A5 3D 29 90 00 E5 [16:15:57]RAPDU: E1 4E 14 11 2A A5 3D 29 90 00 [16:15:57]wFMCommunicate OK [16:15:57]SAM_PROTO_SignData done [16:15:57]FM_MakeSignedData done [16:15:57]CreateOFDProtocolMessage [16:15:57]wFMCommunicate request_size=4 [16:15:57]MH_SAM_APDU [16:15:57]CAPDU: 80 11 00 00 [16:15:57]Write to MH i2c: E2 08 00 B0 31 80 11 00 00 00 00 00 00 5B [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:57]Read from MH i2c: E2 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 17 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 17 00 B0 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [16:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:15:57]wFMCommunicate OK [16:15:57]CreateOFDProtocolMessage done [16:15:57]OFDSenderStorePacket 164290 [16:15:57]StoreOFDPacket docnum=164290 [16:15:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E3 5E 04 01 E4 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 D3 00 00 00 F4 03 04 00 BE 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 81 02 00 35 04 06 00 57 7E 1B 65 F4 40 E1 4E 14 11 2A A5 3D 29 [16:15:57]CheckFolder [16:15:57]dirname=/storage/ofd_packets [16:15:57]CheckFolder done [16:15:57]ProducePacketName [16:15:57]name=ofd_packets/00164290 [16:15:57]NVStorageSaveData ofd_packets/00164290 [16:15:57]File name is /storage/ofd_packets/00164290 [16:15:57]Write 298 bytes [16:15:57]NVStorageSaveData done [16:15:57]OFDSenderStorePacket done [16:15:57]KKMCreateOFDPacket done [16:15:57]NVStorageSaveData kkm_last_timestamp [16:15:57]File name is /storage/kkm_last_timestamp [16:15:57]Write 4 bytes [16:15:57]NVStorageSaveData done [16:15:57]ExternCall_PrintAddStr [16:15:57]wPrintStart [16:15:57]Write to MH i2c: 01 00 00 B1 31 E2 [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 B1 31 00 00 00 00 00 FF 0F F7 [16:15:57]RasterBufferAndPrint [16:15:57]line Счет N : (1)458373 [16:15:57]line ИНН: 02508201610067 [16:15:57]line Контрольно-Кассовый Чек [16:15:57]line ПРОДАЖА [16:15:57]line ТРК (МРК, ГНК) : 11 [16:15:57]line Товар: 2710194210 [16:15:57]line ДТ-К-5 [16:15:57]line 27.820 * 71.90 [16:15:57]line = 2000.26 [16:15:57]line НДС 12% НСП 1% [16:15:57]line > о реализуемом товаре [16:15:57]line ОКРУГЛЕНИЕ: -0.26 [16:15:57]line ИТОГО: 2000.00 [16:15:57]line Внесено: 2000.00 [16:15:57]line СДАЧА: 0.00 [16:15:57]line НСП 1% : 17.70 [16:15:57]line НДС 12% : 212.42 [16:15:57]line Наличными: 2000.00 [16:15:57]line Безнал.: 0.00 [16:15:57]line Место: АЗС № 72 "Партнер Нефть" [16:15:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:15:57]line СНО: Общий режим [16:15:57]line Чек 211 12.07.2024 16:15 [16:15:57]line Смена: 445 ФФД: 1.0 [16:15:57]line ЗНМ: 0300000160 [16:15:57]line РНМ: 0000000000090829 [16:15:57]line Версия ККМ: 001 [16:15:57]line ФМ: 0000000000874718 [16:15:57]line ФД: 164290 [16:15:57]line ФПД: 96199137162304 [16:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T161558&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164290&fm=96199137162304&tin=02508201610067®Number=0000000000090829&sum=200000 [16:15:58]OFD Sender: Processing packet 164290 [packets to send 104, broken 103] [16:15:58]ProducePacketName [16:15:58]name=ofd_packets/00164290 [16:15:58]OFD Sender: To server: pG, [16:15:58]CommunicateWithHost lk.salyk.kg:30040 [16:15:58]ConnectInit lk.salyk.kg [16:15:58]written 0, free lines is 4095 [16:15:58]Connected sock=10 [16:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E3 5E 04 01 E4 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 D3 00 00 00 F4 03 04 00 BE 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 81 02 00 35 04 06 00 57 7E 1B 65 F4 40 E1 4E 14 11 2A A5 3D 29 [16:15:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB 6A 47 00 66 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 34 37 31 38 10 04 04 00 C2 81 02 00 F4 03 04 00 52 FD 90 66 B6 04 01 00 00 71 8F 90 98 0B FE 7D B4 [16:15:58]CommunicateWithHost err = 0 [16:15:58]CheckOFDResponse [16:15:58]1017 (14) - 77093643461234 [16:15:58]1041 (16) - 0000000000874718 [16:15:58]1040 (4) - 164290 [16:15:58]1012 (4) - 12.07.2024 09:54 [16:15:58]1206 (1) - 0 [16:15:58]OFD Sender: Remove packet 164290 [16:15:58]ProducePacketName [16:15:58]name=ofd_packets/00164290 [16:15:58]NVStorageDeleteData [16:15:58]Write to MH i2c: 01 00 00 DB 31 0C [16:15:58]Write i2c OK [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: 01 [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: 01 07 00 [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: 01 07 00 DB 31 00 00 00 00 00 01 0D 21 [16:15:58]RasterBufferAndPrint [16:15:58]line [16:15:58]line [16:15:58]line [16:15:58]line [16:15:58]line [16:15:58]written 0, free lines is 3335 [16:15:58]MH_Cut [16:15:58]Write to MH i2c: D1 01 00 E2 31 01 E5 [16:15:58]Write i2c OK [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: D1 [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: D1 01 00 [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: D1 01 00 E2 31 00 E4 [16:15:58]Write to MH i2c: 01 00 00 E3 31 14 [16:15:58]Write i2c OK [16:15:58]MH_I2C_Read... [16:15:59]OFD Sender: No OFD packet to send [16:15:59]*** Cut start [16:15:59]*** Partial cut [16:15:59]*** CUTSNS_PIN = 1 [16:15:59]*** CUTSNS_PIN = 0 [16:15:59]*** Brake cut motor [16:15:59]Read from MH i2c: 01 [16:15:59]MH_I2C_Read... [16:15:59]*** Stop cut motor [16:15:59]*** Cut end [16:15:59]Read from MH i2c: 01 07 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: 01 07 00 E3 31 00 00 00 00 00 FF 0F 29 [16:15:59]process_action close_receipt done [16:15:59]requested_data is exist [16:15:59]produce_requested_data [16:15:59]requested_item fm.sn is exist - process it [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 11 00 00 [16:15:59]Write to MH i2c: E2 08 00 E4 31 80 11 00 00 00 00 00 00 8F [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:00]Read from MH i2c: E2 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: E2 17 00 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: E2 17 00 E4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [16:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:16:00]wFMCommunicate OK [16:16:00]requested_item fd.num is exist - process it [16:16:00]SAM_PROTO_GetFieldsCounters [16:16:00]wFMCommunicate request_size=4 [16:16:00]MH_SAM_APDU [16:16:00]CAPDU: 80 13 00 00 [16:16:00]Write to MH i2c: E2 08 00 E5 31 80 13 00 00 00 00 00 00 92 [16:16:00]Write i2c OK [16:16:00]MH_I2C_Read... [16:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:00]Read from MH i2c: E2 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: E2 62 00 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: E2 62 00 E5 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [16:16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:00]wFMCommunicate OK [16:16:00]SAM_PROTO_GetFieldsCounters done [16:16:00]requested_item shift.num is exist - process it [16:16:00]requested_item shift.opened is exist - process it [16:16:00]req_shift_opened [16:16:00]FM_GetShiftState [16:16:00]SAM_PROTO_GetShiftState [16:16:00]wFMCommunicate request_size=4 [16:16:00]MH_SAM_APDU [16:16:00]CAPDU: 80 13 01 00 [16:16:00]Write to MH i2c: E2 08 00 E6 31 80 13 01 00 00 00 00 00 94 [16:16:00]Write i2c OK [16:16:00]MH_I2C_Read... [16:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:00]Read from MH i2c: E2 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: E2 0E 00 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: E2 0E 00 E6 31 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DE [16:16:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:16:00]wFMCommunicate OK [16:16:00]SAM_PROTO_GetShiftState done [16:16:00]FM_GetShiftState done [16:16:00]req_shift_opened done [16:16:00]requested_item shift.open_date is exist - process it [16:16:00]req_shift_open_date [16:16:00]req_shift_open_date done [16:16:00]produce_requested_data done [16:16:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164290,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:16:00]process_action_free close_receipt [16:16:00]json_value_free [16:16:00]json_value_free done [16:16:00]process_json_proto returns [16:16:00]Send response to host [16:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164290,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:16:00]free response buf [16:16:00]execute_script done [16:16:00]execute_script returns [16:16:00]free content buf [16:16:00]Sock 7.Close socket [16:16:00]Sock 7.Thread stoped [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:35]accept exits with 9 [16:16:35]New connection [16:16:35]New thread 3066850660 created [16:16:35]Thread 3066707300 joined [16:16:35]Waiting for new connection... [16:16:35] Sock 9.Parse request [16:16:35]Sock 9.Check first char [16:16:35]Sock 9.First char is OK [16:16:35]request: POST /json_proto HTTP/1.0 [16:16:35]Method: POST [16:16:35]URL: /json_proto [16:16:35]Method is POST - this is cgi request [16:16:35]url: /json_proto [16:16:35]query_string will be loaded in cgi processing [16:16:35]execute_cgi json_proto POST (null) [16:16:35]execute_cgi path=json_proto method=POST [16:16:35]POST find Content-Length [16:16:35]Host: 172.17.56.4:8080 [16:16:35]Content-Length: 678 [16:16:35]Content-Type: application/json [16:16:35] [16:16:35]POST finish read [16:16:35]Found Content-Length = 678 [16:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:35]execute_script... [16:16:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:35]POST & json_proto [16:16:35]process_json_proto [16:16:35]json parsed OK: [16:16:35]protocol is kg_v1.0 [16:16:35]action value=close_receipt [16:16:35]process_action close_receipt [16:16:35]cmd_close_receipt [16:16:35]MH_GetDate [16:16:35]Write to MH i2c: F0 00 00 E7 31 07 [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: F0 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: F0 09 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: F0 09 00 E7 31 00 E6 56 91 66 C9 DC B2 64 FE [16:16:35]GetLastDocTimeStamp 1720800958 [16:16:35]current date 1720800998 [16:16:35]FM_GetShiftState [16:16:35]SAM_PROTO_GetShiftState [16:16:35]wFMCommunicate request_size=4 [16:16:35]MH_SAM_APDU [16:16:35]CAPDU: 80 13 01 00 [16:16:35]Write to MH i2c: E2 08 00 E8 31 80 13 01 00 00 00 00 00 96 [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:35]Read from MH i2c: E2 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 0E 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 0E 00 E8 31 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E0 [16:16:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:16:35]wFMCommunicate OK [16:16:35]SAM_PROTO_GetShiftState done [16:16:35]FM_GetShiftState done [16:16:35]opened in 1720744654 [16:16:35]opened+sec_in_day 1720831054 [16:16:35]quantity*price = 80012 [16:16:35]sum+1 = 80014 [16:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 212 12.07.2024 16:16 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164291 ФПД: 104808445803822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T161638&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164291&fm=104808445803822&tin=02508201610067®Number=0000000000090829&sum=80000 [16:16:37]StoreToDocumentArchive [16:16:37]shift 445 fd 164291 [16:16:37]save to /storage/0445/doc_00164291 [16:16:37]save last doc name /storage/0445/doc_00164291 to /storage/kkm_last_doc_name [16:16:37]save OK [16:16:37]Clear old archive folders... [16:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:37]tlvbuf is 009EC040 [16:16:37]SAM_PROTO_ClearQueue [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 09 00 00 [16:16:37]Write to MH i2c: E2 08 00 F5 31 80 09 00 00 00 00 00 00 98 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 F5 31 00 90 00 9A [16:16:37]RAPDU: 90 00 [16:16:37]wFMCommunicate OK [16:16:37]SAM_PROTO_ClearQueue done [16:16:37]KKMCreateOFDPacket [16:16:37]OFDProtocolAddRootSTLVToBuf [16:16:37]FM_MakeSignedData [16:16:37]FM_MakeSignedData [16:16:37]SAM_PROTO_SignData [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 0D 01 02 [16:16:37]Write to MH i2c: E2 08 00 F6 31 80 0D 01 02 00 00 00 00 A0 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 F6 31 00 90 00 9B [16:16:37]RAPDU: 90 00 [16:16:37]wFMCommunicate OK [16:16:37]wFMCommunicate request_size=255 [16:16:37]MH_SAM_APDU [16:16: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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 D4 00 00 00 F4 03 04 00 E6 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 81 02 00 35 04 06 00 5F [16:16:37]Write to MH i2c: E2 02 01 F7 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 D4 00 00 00 F4 03 04 00 E6 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 81 02 00 35 04 06 00 5F 00 00 E6 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 F7 31 00 90 00 9C [16:16:37]RAPDU: 90 00 [16:16:37]wFMCommunicate OK [16:16:37]wFMCommunicate request_size=10 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 0D 02 02 05 52 9E 2E 7D 2E [16:16:37]Write to MH i2c: E2 0D 00 F8 31 80 0D 02 02 05 00 52 9E 2E 7D 2E 00 00 76 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 F8 31 00 90 00 9D [16:16:37]RAPDU: 90 00 [16:16:37]wFMCommunicate OK [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 0D 03 02 [16:16:37]Write to MH i2c: E2 08 00 F9 31 80 0D 03 02 00 00 00 00 A5 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 0B 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 0B 00 F9 31 00 45 50 BB DD 4D 5C 93 45 90 00 54 [16:16:37]RAPDU: 45 50 BB DD 4D 5C 93 45 90 00 [16:16:37]wFMCommunicate OK [16:16:37]SAM_PROTO_SignData done [16:16:37]FM_MakeSignedData done [16:16:37]CreateOFDProtocolMessage [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 11 00 00 [16:16:37]Write to MH i2c: E2 08 00 FA 31 80 11 00 00 00 00 00 00 A5 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 17 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 17 00 FA 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [16:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:16:37]wFMCommunicate OK [16:16:37]CreateOFDProtocolMessage done [16:16:37]OFDSenderStorePacket 164291 [16:16:37]StoreOFDPacket docnum=164291 [16:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 B5 07 01 4D 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 D4 00 00 00 F4 03 04 00 E6 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 81 02 00 35 04 06 00 5F 52 9E 2E 7D 2E 45 50 BB DD 4D 5C 93 45 [16:16:37]CheckFolder [16:16:37]dirname=/storage/ofd_packets [16:16:37]CheckFolder done [16:16:37]ProducePacketName [16:16:37]name=ofd_packets/00164291 [16:16:37]NVStorageSaveData ofd_packets/00164291 [16:16:37]File name is /storage/ofd_packets/00164291 [16:16:37]Write 301 bytes [16:16:37]NVStorageSaveData done [16:16:37]OFDSenderStorePacket done [16:16:37]KKMCreateOFDPacket done [16:16:37]NVStorageSaveData kkm_last_timestamp [16:16:37]File name is /storage/kkm_last_timestamp [16:16:37]Write 4 bytes [16:16:37]NVStorageSaveData done [16:16:37]ExternCall_PrintAddStr [16:16:37]wPrintStart [16:16:37]Write to MH i2c: 01 00 00 FB 31 2C [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 07 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 07 00 FB 31 00 00 00 00 00 FF 0F 41 [16:16:37]RasterBufferAndPrint [16:16:37]line Счет N : (1)458374 [16:16:37]line ИНН: 02508201610067 [16:16:37]line Контрольно-Кассовый Чек [16:16:37]line ПРОДАЖА [16:16:37]line ТРК (МРК, ГНК) : 22 [16:16:37]line Товар: 2710124130 [16:16:37]line Аи-92-К-5 [16:16:37]line 12.160 * 65.80 [16:16:37]line = 800.13 [16:16:37]line НДС 12% НСП 1% [16:16:37]line > о реализуемом товаре [16:16:37]line ОКРУГЛЕНИЕ: -0.13 [16:16:37]line ИТОГО: 800.00 [16:16:37]line Внесено: 800.00 [16:16:37]line СДАЧА: 0.00 [16:16:37]line НСП 1% : 7.08 [16:16:37]line НДС 12% : 84.97 [16:16:37]line Наличными: 800.00 [16:16:37]line Безнал.: 0.00 [16:16:37]line Место: АЗС № 72 "Партнер Нефть" [16:16:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:16:37]line СНО: Общий режим [16:16:37]line Чек 212 12.07.2024 16:16 [16:16:37]line Смена: 445 ФФД: 1.0 [16:16:37]line ЗНМ: 0300000160 [16:16:37]line РНМ: 0000000000090829 [16:16:37]line Версия ККМ: 001 [16:16:37]line ФМ: 0000000000874718 [16:16:37]line ФД: 164291 [16:16:37]line ФПД: 104808445803822 [16:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T161638&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164291&fm=104808445803822&tin=02508201610067®Number=0000000000090829&sum=80000 [16:16:37]OFD Sender: Processing packet 164291 [packets to send 104, broken 103] [16:16:37]ProducePacketName [16:16:37]name=ofd_packets/00164291 [16:16:37]OFD Sender: To server: pG, [16:16:37]CommunicateWithHost lk.salyk.kg:30040 [16:16:37]ConnectInit lk.salyk.kg [16:16:37]written 0, free lines is 4095 [16:16:38]Connected sock=10 [16:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 B5 07 01 4D 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 D4 00 00 00 F4 03 04 00 E6 56 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 81 02 00 35 04 06 00 5F 52 9E 2E 7D 2E 45 50 BB DD 4D 5C 93 45 [16:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 55 1D 47 00 65 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 34 37 31 38 10 04 04 00 C3 81 02 00 F4 03 04 00 79 FD 90 66 B6 04 01 00 00 AD 3C E3 F7 0B 74 0A FB [16:16:38]CommunicateWithHost err = 0 [16:16:38]CheckOFDResponse [16:16:38]1017 (14) - 77093643461234 [16:16:38]1041 (16) - 0000000000874718 [16:16:38]1040 (4) - 164291 [16:16:38]1012 (4) - 12.07.2024 09:55 [16:16:38]1206 (1) - 0 [16:16:38]OFD Sender: Remove packet 164291 [16:16:38]ProducePacketName [16:16:38]name=ofd_packets/00164291 [16:16:38]NVStorageDeleteData [16:16:38]Write to MH i2c: 01 00 00 25 32 57 [16:16:38]Write i2c OK [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: 01 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: 01 07 00 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: 01 07 00 25 32 00 00 00 00 00 F8 0C 62 [16:16:38]RasterBufferAndPrint [16:16:38]line [16:16:38]line [16:16:38]line [16:16:38]line [16:16:38]line [16:16:38]written 0, free lines is 3327 [16:16:38]MH_Cut [16:16:38]Write to MH i2c: D1 01 00 2C 32 01 30 [16:16:38]Write i2c OK [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: D1 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: D1 01 00 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: D1 01 00 2C 32 00 2F [16:16:38]Write to MH i2c: 01 00 00 2D 32 5F [16:16:38]Write i2c OK [16:16:38]MH_I2C_Read... [16:16:38]OFD Sender: No OFD packet to send [16:16:39]*** Cut start [16:16:39]*** Partial cut [16:16:39]*** CUTSNS_PIN = 1 [16:16:39]*** CUTSNS_PIN = 0 [16:16:39]*** Brake cut motor [16:16:39]Read from MH i2c: 01 [16:16:39]MH_I2C_Read... [16:16:39]*** Stop cut motor [16:16:39]*** Cut end [16:16:39]Read from MH i2c: 01 07 00 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: 01 07 00 2D 32 00 00 00 00 00 FF 0F 74 [16:16:39]process_action close_receipt done [16:16:39]requested_data is exist [16:16:39]produce_requested_data [16:16:39]requested_item fm.sn is exist - process it [16:16:39]wFMCommunicate request_size=4 [16:16:39]MH_SAM_APDU [16:16:39]CAPDU: 80 11 00 00 [16:16:39]Write to MH i2c: E2 08 00 2E 32 80 11 00 00 00 00 00 00 DA [16:16:39]Write i2c OK [16:16:39]MH_I2C_Read... [16:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:39]Read from MH i2c: E2 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 17 00 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 17 00 2E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [16:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:16:39]wFMCommunicate OK [16:16:39]requested_item fd.num is exist - process it [16:16:39]SAM_PROTO_GetFieldsCounters [16:16:39]wFMCommunicate request_size=4 [16:16:39]MH_SAM_APDU [16:16:39]CAPDU: 80 13 00 00 [16:16:39]Write to MH i2c: E2 08 00 2F 32 80 13 00 00 00 00 00 00 DD [16:16:39]Write i2c OK [16:16:39]MH_I2C_Read... [16:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:39]Read from MH i2c: E2 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 62 00 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 62 00 2F 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [16:16:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:39]wFMCommunicate OK [16:16:39]SAM_PROTO_GetFieldsCounters done [16:16:39]requested_item shift.num is exist - process it [16:16:39]requested_item shift.opened is exist - process it [16:16:39]req_shift_opened [16:16:39]FM_GetShiftState [16:16:39]SAM_PROTO_GetShiftState [16:16:39]wFMCommunicate request_size=4 [16:16:39]MH_SAM_APDU [16:16:39]CAPDU: 80 13 01 00 [16:16:39]Write to MH i2c: E2 08 00 30 32 80 13 01 00 00 00 00 00 DF [16:16:39]Write i2c OK [16:16:39]MH_I2C_Read... [16:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:39]Read from MH i2c: E2 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 0E 00 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 0E 00 30 32 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 29 [16:16:39]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:16:39]wFMCommunicate OK [16:16:39]SAM_PROTO_GetShiftState done [16:16:39]FM_GetShiftState done [16:16:39]req_shift_opened done [16:16:39]requested_item shift.open_date is exist - process it [16:16:39]req_shift_open_date [16:16:39]req_shift_open_date done [16:16:39]produce_requested_data done [16:16:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164291,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:16:39]process_action_free close_receipt [16:16:39]json_value_free [16:16:39]json_value_free done [16:16:39]process_json_proto returns [16:16:39]Send response to host [16:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164291,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:16:39]free response buf [16:16:39]execute_script done [16:16:39]execute_script returns [16:16:39]free content buf [16:16:39]Sock 9.Close socket [16:16:39]Sock 9.Thread stoped [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20: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:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:33]accept exits with 7 [16:24:33]New connection [16:24:33]New thread 3066707300 created [16:24:33]Thread 3066850660 joined [16:24:33]Waiting for new connection... [16:24:33] Sock 7.Parse request [16:24:33]Sock 7.Check first char [16:24:33]Sock 7.First char is OK [16:24:33]request: POST /json_proto HTTP/1.0 [16:24:33]Method: POST [16:24:33]URL: /json_proto [16:24:33]Method is POST - this is cgi request [16:24:33]url: /json_proto [16:24:33]query_string will be loaded in cgi processing [16:24:33]execute_cgi json_proto POST (null) [16:24:33]execute_cgi path=json_proto method=POST [16:24:33]POST find Content-Length [16:24:33]Host: 172.17.56.4:8080 [16:24:33]Content-Length: 678 [16:24:33]Content-Type: application/json [16:24:33] [16:24:33]POST finish read [16:24:33]Found Content-Length = 678 [16:24:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:33]execute_script... [16:24:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:33]POST & json_proto [16:24:33]process_json_proto [16:24:33]json parsed OK: [16:24:33]protocol is kg_v1.0 [16:24:33]action value=close_receipt [16:24:33]process_action close_receipt [16:24:33]cmd_close_receipt [16:24:33]MH_GetDate [16:24:33]Write to MH i2c: F0 00 00 31 32 52 [16:24:33]Write i2c OK [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: F0 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: F0 09 00 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: F0 09 00 31 32 00 C4 58 91 66 C9 DC B2 64 29 [16:24:33]GetLastDocTimeStamp 1720800998 [16:24:33]current date 1720801476 [16:24:33]FM_GetShiftState [16:24:33]SAM_PROTO_GetShiftState [16:24:33]wFMCommunicate request_size=4 [16:24:33]MH_SAM_APDU [16:24:33]CAPDU: 80 13 01 00 [16:24:33]Write to MH i2c: E2 08 00 32 32 80 13 01 00 00 00 00 00 E1 [16:24:33]Write i2c OK [16:24:33]MH_I2C_Read... [16:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:33]Read from MH i2c: E2 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 0E 00 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 0E 00 32 32 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2B [16:24:33]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:24:33]wFMCommunicate OK [16:24:33]SAM_PROTO_GetShiftState done [16:24:33]FM_GetShiftState done [16:24:33]opened in 1720744654 [16:24:33]opened+sec_in_day 1720831054 [16:24:33]quantity*price = 66063 [16:24:33]sum+1 = 66064 [16:24:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 213 12.07.2024 16:24 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164292 ФПД: 91642690147629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T162436&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164292&fm=91642690147629&tin=02508201610067®Number=0000000000090829&sum=66000 [16:24:34]StoreToDocumentArchive [16:24:34]shift 445 fd 164292 [16:24:34]save to /storage/0445/doc_00164292 [16:24:34]save last doc name /storage/0445/doc_00164292 to /storage/kkm_last_doc_name [16:24:34]save OK [16:24:34]Clear old archive folders... [16:24:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:35]tlvbuf is 00A23B40 [16:24:35]SAM_PROTO_ClearQueue [16:24:35]wFMCommunicate request_size=4 [16:24:35]MH_SAM_APDU [16:24:35]CAPDU: 80 09 00 00 [16:24:35]Write to MH i2c: E2 08 00 3F 32 80 09 00 00 00 00 00 00 E3 [16:24:35]Write i2c OK [16:24:35]MH_I2C_Read... [16:24:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:35]Read from MH i2c: E2 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 03 00 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 03 00 3F 32 00 90 00 E5 [16:24:35]RAPDU: 90 00 [16:24:35]wFMCommunicate OK [16:24:35]SAM_PROTO_ClearQueue done [16:24:35]KKMCreateOFDPacket [16:24:35]OFDProtocolAddRootSTLVToBuf [16:24:35]FM_MakeSignedData [16:24:35]FM_MakeSignedData [16:24:35]SAM_PROTO_SignData [16:24:35]wFMCommunicate request_size=4 [16:24:35]MH_SAM_APDU [16:24:35]CAPDU: 80 0D 01 02 [16:24:35]Write to MH i2c: E2 08 00 40 32 80 0D 01 02 00 00 00 00 EB [16:24:35]Write i2c OK [16:24:35]MH_I2C_Read... [16:24:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:35]Read from MH i2c: E2 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 03 00 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 03 00 40 32 00 90 00 E6 [16:24:35]RAPDU: 90 00 [16:24:35]wFMCommunicate OK [16:24:35]wFMCommunicate request_size=255 [16:24:35]MH_SAM_APDU [16:24:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C4 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 81 02 00 35 04 06 00 53 [16:24:35]Write to MH i2c: E2 02 01 41 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 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C4 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 81 02 00 35 04 06 00 53 00 00 EA [16:24:35]Write i2c OK [16:24:35]MH_I2C_Read... [16:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:35]Read from MH i2c: E2 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 03 00 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 03 00 41 32 00 90 00 E7 [16:24:35]RAPDU: 90 00 [16:24:35]wFMCommunicate OK [16:24:35]wFMCommunicate request_size=10 [16:24:35]MH_SAM_APDU [16:24:35]CAPDU: 80 0D 02 02 05 59 39 FE 15 2D [16:24:35]Write to MH i2c: E2 0D 00 42 32 80 0D 02 02 05 00 59 39 FE 15 2D 00 00 CA [16:24:35]Write i2c OK [16:24:35]MH_I2C_Read... [16:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:35]Read from MH i2c: E2 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 03 00 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 03 00 42 32 00 90 00 E8 [16:24:35]RAPDU: 90 00 [16:24:35]wFMCommunicate OK [16:24:35]wFMCommunicate request_size=4 [16:24:35]MH_SAM_APDU [16:24:35]CAPDU: 80 0D 03 02 [16:24:35]Write to MH i2c: E2 08 00 43 32 80 0D 03 02 00 00 00 00 F0 [16:24:35]Write i2c OK [16:24:35]MH_I2C_Read... [16:24:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:35]Read from MH i2c: E2 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 0B 00 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 0B 00 43 32 00 24 06 51 40 7A BA F2 38 90 00 0A [16:24:35]RAPDU: 24 06 51 40 7A BA F2 38 90 00 [16:24:35]wFMCommunicate OK [16:24:35]SAM_PROTO_SignData done [16:24:35]FM_MakeSignedData done [16:24:35]CreateOFDProtocolMessage [16:24:35]wFMCommunicate request_size=4 [16:24:35]MH_SAM_APDU [16:24:35]CAPDU: 80 11 00 00 [16:24:35]Write to MH i2c: E2 08 00 44 32 80 11 00 00 00 00 00 00 F0 [16:24:35]Write i2c OK [16:24:35]MH_I2C_Read... [16:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:35]Read from MH i2c: E2 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 17 00 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: E2 17 00 44 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 46 [16:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:35]wFMCommunicate OK [16:24:35]CreateOFDProtocolMessage done [16:24:35]OFDSenderStorePacket 164292 [16:24:35]StoreOFDPacket docnum=164292 [16:24:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 53 07 01 5A 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C4 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 81 02 00 35 04 06 00 53 59 39 FE 15 2D 24 06 51 40 7A BA F2 38 [16:24:35]CheckFolder [16:24:35]dirname=/storage/ofd_packets [16:24:35]CheckFolder done [16:24:35]ProducePacketName [16:24:35]name=ofd_packets/00164292 [16:24:35]NVStorageSaveData ofd_packets/00164292 [16:24:35]File name is /storage/ofd_packets/00164292 [16:24:35]Write 301 bytes [16:24:35]NVStorageSaveData done [16:24:35]OFDSenderStorePacket done [16:24:35]KKMCreateOFDPacket done [16:24:35]NVStorageSaveData kkm_last_timestamp [16:24:35]File name is /storage/kkm_last_timestamp [16:24:35]Write 4 bytes [16:24:35]NVStorageSaveData done [16:24:35]ExternCall_PrintAddStr [16:24:35]wPrintStart [16:24:35]Write to MH i2c: 01 00 00 45 32 77 [16:24:35]Write i2c OK [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: 01 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: 01 07 00 [16:24:35]MH_I2C_Read... [16:24:35]Read from MH i2c: 01 07 00 45 32 00 00 00 00 00 FF 0F 8C [16:24:35]RasterBufferAndPrint [16:24:35]line Счет N : (1)458375 [16:24:35]line ИНН: 02508201610067 [16:24:35]line Контрольно-Кассовый Чек [16:24:35]line ПРОДАЖА [16:24:35]line ТРК (МРК, ГНК) : 12 [16:24:35]line Товар: 2710124130 [16:24:35]line Аи-92-К-5 [16:24:35]line 10.040 * 65.80 [16:24:35]line = 660.63 [16:24:35]line НДС 12% НСП 1% [16:24:35]line > о реализуемом товаре [16:24:35]line ОКРУГЛЕНИЕ: -0.63 [16:24:35]line ИТОГО: 660.00 [16:24:35]line Внесено: 660.00 [16:24:35]line СДАЧА: 0.00 [16:24:35]line НСП 1% : 5.85 [16:24:35]line НДС 12% : 70.15 [16:24:35]line Наличными: 660.00 [16:24:35]line Безнал.: 0.00 [16:24:35]line Место: АЗС № 72 "Партнер Нефть" [16:24:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:24:35]line СНО: Общий режим [16:24:35]line Чек 213 12.07.2024 16:24 [16:24:35]line Смена: 445 ФФД: 1.0 [16:24:35]line ЗНМ: 0300000160 [16:24:35]line РНМ: 0000000000090829 [16:24:35]line Версия ККМ: 001 [16:24:35]line ФМ: 0000000000874718 [16:24:35]line ФД: 164292 [16:24:35]line ФПД: 91642690147629 [16:24:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T162436&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164292&fm=91642690147629&tin=02508201610067®Number=0000000000090829&sum=66000 [16:24:35]OFD Sender: Processing packet 164292 [packets to send 104, broken 103] [16:24:35]ProducePacketName [16:24:35]name=ofd_packets/00164292 [16:24:35]OFD Sender: To server: pG, [16:24:35]CommunicateWithHost lk.salyk.kg:30040 [16:24:35]ConnectInit lk.salyk.kg [16:24:35]written 0, free lines is 4095 [16:24:35]Connected sock=10 [16:24:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 53 07 01 5A 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C4 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 81 02 00 35 04 06 00 53 59 39 FE 15 2D 24 06 51 40 7A BA F2 38 [16:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9C 84 47 00 05 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 34 37 31 38 10 04 04 00 C4 81 02 00 F4 03 04 00 57 FF 90 66 B6 04 01 00 00 D3 E0 59 0F 2A 70 73 3B [16:24:36]CommunicateWithHost err = 0 [16:24:36]CheckOFDResponse [16:24:36]1017 (14) - 77093643461234 [16:24:36]1041 (16) - 0000000000874718 [16:24:36]1040 (4) - 164292 [16:24:36]1012 (4) - 12.07.2024 10:03 [16:24:36]1206 (1) - 0 [16:24:36]OFD Sender: Remove packet 164292 [16:24:36]ProducePacketName [16:24:36]name=ofd_packets/00164292 [16:24:36]NVStorageDeleteData [16:24:36]Write to MH i2c: 01 00 00 6F 32 A1 [16:24:36]Write i2c OK [16:24:36]MH_I2C_Read... [16:24:36]Read from MH i2c: 01 [16:24:36]MH_I2C_Read... [16:24:36]Read from MH i2c: 01 07 00 [16:24:36]MH_I2C_Read... [16:24:36]Read from MH i2c: 01 07 00 6F 32 00 00 00 00 00 FE 0C B2 [16:24:36]RasterBufferAndPrint [16:24:36]line [16:24:36]line [16:24:36]line [16:24:36]line [16:24:36]line [16:24:36]written 0, free lines is 3335 [16:24:36]MH_Cut [16:24:36]Write to MH i2c: D1 01 00 76 32 01 7A [16:24:36]Write i2c OK [16:24:36]MH_I2C_Read... [16:24:36]Read from MH i2c: D1 [16:24:36]MH_I2C_Read... [16:24:36]Read from MH i2c: D1 01 00 [16:24:36]MH_I2C_Read... [16:24:36]Read from MH i2c: D1 01 00 76 32 00 79 [16:24:36]Write to MH i2c: 01 00 00 77 32 A9 [16:24:36]Write i2c OK [16:24:36]MH_I2C_Read... [16:24:36]OFD Sender: No OFD packet to send [16:24:37]*** Cut start [16:24:37]*** Partial cut [16:24:37]*** CUTSNS_PIN = 1 [16:24:37]*** CUTSNS_PIN = 0 [16:24:37]*** Brake cut motor [16:24:37]Read from MH i2c: 01 [16:24:37]MH_I2C_Read... [16:24:37]*** Stop cut motor [16:24:37]*** Cut end [16:24:37]Read from MH i2c: 01 07 00 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: 01 07 00 77 32 00 00 00 00 00 FF 0F BE [16:24:37]process_action close_receipt done [16:24:37]requested_data is exist [16:24:37]produce_requested_data [16:24:37]requested_item fm.sn is exist - process it [16:24:37]wFMCommunicate request_size=4 [16:24:37]MH_SAM_APDU [16:24:37]CAPDU: 80 11 00 00 [16:24:37]Write to MH i2c: E2 08 00 78 32 80 11 00 00 00 00 00 00 24 [16:24:37]Write i2c OK [16:24:37]MH_I2C_Read... [16:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:37]Read from MH i2c: E2 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: E2 17 00 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: E2 17 00 78 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [16:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:37]wFMCommunicate OK [16:24:37]requested_item fd.num is exist - process it [16:24:37]SAM_PROTO_GetFieldsCounters [16:24:37]wFMCommunicate request_size=4 [16:24:37]MH_SAM_APDU [16:24:37]CAPDU: 80 13 00 00 [16:24:37]Write to MH i2c: E2 08 00 79 32 80 13 00 00 00 00 00 00 27 [16:24:37]Write i2c OK [16:24:37]MH_I2C_Read... [16:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:37]Read from MH i2c: E2 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: E2 62 00 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: E2 62 00 79 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [16:24:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:37]wFMCommunicate OK [16:24:37]SAM_PROTO_GetFieldsCounters done [16:24:37]requested_item shift.num is exist - process it [16:24:37]requested_item shift.opened is exist - process it [16:24:37]req_shift_opened [16:24:37]FM_GetShiftState [16:24:37]SAM_PROTO_GetShiftState [16:24:37]wFMCommunicate request_size=4 [16:24:37]MH_SAM_APDU [16:24:37]CAPDU: 80 13 01 00 [16:24:37]Write to MH i2c: E2 08 00 7A 32 80 13 01 00 00 00 00 00 29 [16:24:37]Write i2c OK [16:24:37]MH_I2C_Read... [16:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:37]Read from MH i2c: E2 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: E2 0E 00 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: E2 0E 00 7A 32 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 73 [16:24:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:24:37]wFMCommunicate OK [16:24:37]SAM_PROTO_GetShiftState done [16:24:37]FM_GetShiftState done [16:24:37]req_shift_opened done [16:24:37]requested_item shift.open_date is exist - process it [16:24:37]req_shift_open_date [16:24:37]req_shift_open_date done [16:24:37]produce_requested_data done [16:24:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164292,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:24:37]process_action_free close_receipt [16:24:37]json_value_free [16:24:37]json_value_free done [16:24:37]process_json_proto returns [16:24:37]Send response to host [16:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164292,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:24:37]free response buf [16:24:37]execute_script done [16:24:37]execute_script returns [16:24:37]free content buf [16:24:37]Sock 7.Close socket [16:24:37]Sock 7.Thread stoped [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:47]accept exits with 9 [16:24:47]New connection [16:24:47]New thread 3066850660 created [16:24:47]Thread 3066707300 joined [16:24:47]Waiting for new connection... [16:24:47] Sock 9.Parse request [16:24:47]Sock 9.Check first char [16:24:47]Sock 9.First char is OK [16:24:47]request: POST /json_proto HTTP/1.0 [16:24:47]Method: POST [16:24:47]URL: /json_proto [16:24:47]Method is POST - this is cgi request [16:24:47]url: /json_proto [16:24:47]query_string will be loaded in cgi processing [16:24:47]execute_cgi json_proto POST (null) [16:24:47]execute_cgi path=json_proto method=POST [16:24:47]POST find Content-Length [16:24:47]Host: 172.17.56.4:8080 [16:24:47]Content-Length: 674 [16:24:47]Content-Type: application/json [16:24:47] [16:24:47]POST finish read [16:24:47]Found Content-Length = 674 [16:24:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458376", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:47]execute_script... [16:24: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)458376", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:47]POST & json_proto [16:24:47]process_json_proto [16:24:47]json parsed OK: [16:24:47]protocol is kg_v1.0 [16:24:47]action value=close_receipt [16:24:47]process_action close_receipt [16:24:47]cmd_close_receipt [16:24:47]MH_GetDate [16:24:47]Write to MH i2c: F0 00 00 7B 32 9C [16:24:47]Write i2c OK [16:24:47]MH_I2C_Read... [16:24:47]Read from MH i2c: F0 [16:24:47]MH_I2C_Read... [16:24:47]Read from MH i2c: F0 09 00 [16:24:47]MH_I2C_Read... [16:24:47]Read from MH i2c: F0 09 00 7B 32 00 D1 58 91 66 C9 DC B2 64 80 [16:24:47]GetLastDocTimeStamp 1720801476 [16:24:47]current date 1720801489 [16:24:47]FM_GetShiftState [16:24:47]SAM_PROTO_GetShiftState [16:24:47]wFMCommunicate request_size=4 [16:24:47]MH_SAM_APDU [16:24:47]CAPDU: 80 13 01 00 [16:24:47]Write to MH i2c: E2 08 00 7C 32 80 13 01 00 00 00 00 00 2B [16:24:47]Write i2c OK [16:24:47]MH_I2C_Read... [16:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:47]Read from MH i2c: E2 [16:24:47]MH_I2C_Read... [16:24:47]Read from MH i2c: E2 0E 00 [16:24:47]MH_I2C_Read... [16:24:47]Read from MH i2c: E2 0E 00 7C 32 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 75 [16:24:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:24:47]wFMCommunicate OK [16:24:47]SAM_PROTO_GetShiftState done [16:24:47]FM_GetShiftState done [16:24:47]opened in 1720744654 [16:24:47]opened+sec_in_day 1720831054 [16:24:47]quantity*price = 50042 [16:24:47]sum+1 = 50043 [16:24:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 214 12.07.2024 16:24 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164293 ФПД: 211382597336003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T162449&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164293&fm=211382597336003&tin=02508201610067®Number=0000000000090829&sum=50000 [16:24:48]StoreToDocumentArchive [16:24:48]shift 445 fd 164293 [16:24:48]save to /storage/0445/doc_00164293 [16:24:48]save last doc name /storage/0445/doc_00164293 to /storage/kkm_last_doc_name [16:24:48]save OK [16:24:48]Clear old archive folders... [16:24:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:24:48]tlvbuf is 00A7BA20 [16:24:48]SAM_PROTO_ClearQueue [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 09 00 00 [16:24:48]Write to MH i2c: E2 08 00 89 32 80 09 00 00 00 00 00 00 2D [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 89 32 00 90 00 2F [16:24:48]RAPDU: 90 00 [16:24:48]wFMCommunicate OK [16:24:48]SAM_PROTO_ClearQueue done [16:24:48]KKMCreateOFDPacket [16:24:48]OFDProtocolAddRootSTLVToBuf [16:24:48]FM_MakeSignedData [16:24:48]FM_MakeSignedData [16:24:48]SAM_PROTO_SignData [16:24:48]wFMCommunicate request_size=4 [16:24:48]MH_SAM_APDU [16:24:48]CAPDU: 80 0D 01 02 [16:24:48]Write to MH i2c: E2 08 00 8A 32 80 0D 01 02 00 00 00 00 35 [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:48]Read from MH i2c: E2 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 [16:24:48]MH_I2C_Read... [16:24:48]Read from MH i2c: E2 03 00 8A 32 00 90 00 30 [16:24:48]RAPDU: 90 00 [16:24:48]wFMCommunicate OK [16:24:48]wFMCommunicate request_size=255 [16:24:48]MH_SAM_APDU [16:24: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D1 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 81 02 00 35 04 06 00 C0 40 58 A0 [16:24:48]Write to MH i2c: E2 02 01 8B 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D1 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 81 02 00 35 04 06 00 C0 40 58 A0 00 00 FE [16:24:48]Write i2c OK [16:24:48]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 8B 32 00 90 00 31 [16:24:49]RAPDU: 90 00 [16:24:49]wFMCommunicate OK [16:24:49]wFMCommunicate request_size=7 [16:24:49]MH_SAM_APDU [16:24:49]CAPDU: 80 0D 02 02 02 3B C3 [16:24:49]Write to MH i2c: E2 0A 00 8C 32 80 0D 02 02 02 00 3B C3 00 00 3A [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 03 00 8C 32 00 90 00 32 [16:24:49]RAPDU: 90 00 [16:24:49]wFMCommunicate OK [16:24:49]wFMCommunicate request_size=4 [16:24:49]MH_SAM_APDU [16:24:49]CAPDU: 80 0D 03 02 [16:24:49]Write to MH i2c: E2 08 00 8D 32 80 0D 03 02 00 00 00 00 3A [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 0B 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 0B 00 8D 32 00 13 B9 E7 73 3D B8 C2 5E 90 00 76 [16:24:49]RAPDU: 13 B9 E7 73 3D B8 C2 5E 90 00 [16:24:49]wFMCommunicate OK [16:24:49]SAM_PROTO_SignData done [16:24:49]FM_MakeSignedData done [16:24:49]CreateOFDProtocolMessage [16:24:49]wFMCommunicate request_size=4 [16:24:49]MH_SAM_APDU [16:24:49]CAPDU: 80 11 00 00 [16:24:49]Write to MH i2c: E2 08 00 8E 32 80 11 00 00 00 00 00 00 3A [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:49]Read from MH i2c: E2 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 17 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: E2 17 00 8E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [16:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:49]wFMCommunicate OK [16:24:49]CreateOFDProtocolMessage done [16:24:49]OFDSenderStorePacket 164293 [16:24:49]StoreOFDPacket docnum=164293 [16:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 18 00 04 01 A3 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D1 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 81 02 00 35 04 06 00 C0 40 58 A0 3B C3 13 B9 E7 73 3D B8 C2 5E [16:24:49]CheckFolder [16:24:49]dirname=/storage/ofd_packets [16:24:49]CheckFolder done [16:24:49]ProducePacketName [16:24:49]name=ofd_packets/00164293 [16:24:49]NVStorageSaveData ofd_packets/00164293 [16:24:49]File name is /storage/ofd_packets/00164293 [16:24:49]Write 298 bytes [16:24:49]NVStorageSaveData done [16:24:49]OFDSenderStorePacket done [16:24:49]KKMCreateOFDPacket done [16:24:49]NVStorageSaveData kkm_last_timestamp [16:24:49]File name is /storage/kkm_last_timestamp [16:24:49]Write 4 bytes [16:24:49]NVStorageSaveData done [16:24:49]ExternCall_PrintAddStr [16:24:49]wPrintStart [16:24:49]Write to MH i2c: 01 00 00 8F 32 C1 [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 07 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 07 00 8F 32 00 00 00 00 00 FF 0F D6 [16:24:49]RasterBufferAndPrint [16:24:49]line Счет N : (1)458376 [16:24:49]line ИНН: 02508201610067 [16:24:49]line Контрольно-Кассовый Чек [16:24:49]line ПРОДАЖА [16:24:49]line ТРК (МРК, ГНК) : 21 [16:24:49]line Товар: 2710194210 [16:24:49]line ДТ-К-5 [16:24:49]line 6.960 * 71.90 [16:24:49]line = 500.42 [16:24:49]line НДС 12% НСП 1% [16:24:49]line > о реализуемом товаре [16:24:49]line ОКРУГЛЕНИЕ: -0.42 [16:24:49]line ИТОГО: 500.00 [16:24:49]line Внесено: 500.00 [16:24:49]line СДАЧА: 0.00 [16:24:49]line НСП 1% : 4.43 [16:24:49]line НДС 12% : 53.14 [16:24:49]line Наличными: 500.00 [16:24:49]line Безнал.: 0.00 [16:24:49]line Место: АЗС № 72 "Партнер Нефть" [16:24:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:24:49]line СНО: Общий режим [16:24:49]line Чек 214 12.07.2024 16:24 [16:24:49]line Смена: 445 ФФД: 1.0 [16:24:49]line ЗНМ: 0300000160 [16:24:49]line РНМ: 0000000000090829 [16:24:49]line Версия ККМ: 001 [16:24:49]line ФМ: 0000000000874718 [16:24:49]line ФД: 164293 [16:24:49]line ФПД: 211382597336003 [16:24:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T162449&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164293&fm=211382597336003&tin=02508201610067®Number=0000000000090829&sum=50000 [16:24:49]written 0, free lines is 4095 [16:24:49]OFD Sender: Processing packet 164293 [packets to send 104, broken 103] [16:24:49]ProducePacketName [16:24:49]name=ofd_packets/00164293 [16:24:49]OFD Sender: To server: pG, [16:24:49]CommunicateWithHost lk.salyk.kg:30040 [16:24:49]ConnectInit lk.salyk.kg [16:24:49]Connected sock=10 [16:24:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 18 00 04 01 A3 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D1 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 81 02 00 35 04 06 00 C0 40 58 A0 3B C3 13 B9 E7 73 3D B8 C2 5E [16:24:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9A 3C 47 00 30 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 34 37 31 38 10 04 04 00 C5 81 02 00 F4 03 04 00 65 FF 90 66 B6 04 01 00 00 D1 5F A3 B6 80 28 33 25 [16:24:49]CommunicateWithHost err = 0 [16:24:49]CheckOFDResponse [16:24:49]1017 (14) - 77093643461234 [16:24:49]1041 (16) - 0000000000874718 [16:24:49]1040 (4) - 164293 [16:24:49]1012 (4) - 12.07.2024 10:03 [16:24:49]1206 (1) - 0 [16:24:49]OFD Sender: Remove packet 164293 [16:24:49]ProducePacketName [16:24:49]name=ofd_packets/00164293 [16:24:49]NVStorageDeleteData [16:24:49]Write to MH i2c: 01 00 00 B9 32 EB [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 07 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: 01 07 00 B9 32 00 00 00 00 00 02 0D 01 [16:24:49]RasterBufferAndPrint [16:24:49]line [16:24:49]line [16:24:49]line [16:24:49]line [16:24:49]line [16:24:49]written 0, free lines is 3336 [16:24:49]MH_Cut [16:24:49]Write to MH i2c: D1 01 00 C0 32 01 C4 [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: D1 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: D1 01 00 [16:24:49]MH_I2C_Read... [16:24:49]Read from MH i2c: D1 01 00 C0 32 00 C3 [16:24:49]Write to MH i2c: 01 00 00 C1 32 F3 [16:24:49]Write i2c OK [16:24:49]MH_I2C_Read... [16:24:50]OFD Sender: No OFD packet to send [16:24:50]*** Cut start [16:24:50]*** Partial cut [16:24:50]*** CUTSNS_PIN = 1 [16:24:50]*** CUTSNS_PIN = 0 [16:24:50]*** Brake cut motor [16:24:50]Read from MH i2c: 01 [16:24:50]MH_I2C_Read... [16:24:50]*** Stop cut motor [16:24:50]*** Cut end [16:24:50]Read from MH i2c: 01 07 00 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: 01 07 00 C1 32 00 00 00 00 00 FF 0F 08 [16:24:50]process_action close_receipt done [16:24:50]requested_data is exist [16:24:50]produce_requested_data [16:24:50]requested_item fm.sn is exist - process it [16:24:50]wFMCommunicate request_size=4 [16:24:50]MH_SAM_APDU [16:24:50]CAPDU: 80 11 00 00 [16:24:50]Write to MH i2c: E2 08 00 C2 32 80 11 00 00 00 00 00 00 6E [16:24:50]Write i2c OK [16:24:50]MH_I2C_Read... [16:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:50]Read from MH i2c: E2 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: E2 17 00 [16:24:50]MH_I2C_Read... [16:24:50]Read from MH i2c: E2 17 00 C2 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [16:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:50]wFMCommunicate OK [16:24:50]requested_item fd.num is exist - process it [16:24:50]SAM_PROTO_GetFieldsCounters [16:24:50]wFMCommunicate request_size=4 [16:24:50]MH_SAM_APDU [16:24:50]CAPDU: 80 13 00 00 [16:24:50]Write to MH i2c: E2 08 00 C3 32 80 13 00 00 00 00 00 00 71 [16:24:50]Write i2c OK [16:24:50]MH_I2C_Read... [16:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:51]Read from MH i2c: E2 [16:24:51]MH_I2C_Read... [16:24:51]Read from MH i2c: E2 62 00 [16:24:51]MH_I2C_Read... [16:24:51]Read from MH i2c: E2 62 00 C3 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [16:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:51]wFMCommunicate OK [16:24:51]SAM_PROTO_GetFieldsCounters done [16:24:51]requested_item shift.num is exist - process it [16:24:51]requested_item shift.opened is exist - process it [16:24:51]req_shift_opened [16:24:51]FM_GetShiftState [16:24:51]SAM_PROTO_GetShiftState [16:24:51]wFMCommunicate request_size=4 [16:24:51]MH_SAM_APDU [16:24:51]CAPDU: 80 13 01 00 [16:24:51]Write to MH i2c: E2 08 00 C4 32 80 13 01 00 00 00 00 00 73 [16:24:51]Write i2c OK [16:24:51]MH_I2C_Read... [16:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:51]Read from MH i2c: E2 [16:24:51]MH_I2C_Read... [16:24:51]Read from MH i2c: E2 0E 00 [16:24:51]MH_I2C_Read... [16:24:51]Read from MH i2c: E2 0E 00 C4 32 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BD [16:24:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:24:51]wFMCommunicate OK [16:24:51]SAM_PROTO_GetShiftState done [16:24:51]FM_GetShiftState done [16:24:51]req_shift_opened done [16:24:51]requested_item shift.open_date is exist - process it [16:24:51]req_shift_open_date [16:24:51]req_shift_open_date done [16:24:51]produce_requested_data done [16:24:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164293,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:24:51]process_action_free close_receipt [16:24:51]json_value_free [16:24:51]json_value_free done [16:24:51]process_json_proto returns [16:24:51]Send response to host [16:24:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164293,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:24:51]free response buf [16:24:51]execute_script done [16:24:51]execute_script returns [16:24:51]free content buf [16:24:51]Sock 9.Close socket [16:24:51]Sock 9.Thread stoped [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:08]accept exits with 7 [16:25:08]New connection [16:25:08]New thread 3066707300 created [16:25:08]Thread 3066850660 joined [16:25:08]Waiting for new connection... [16:25:08] Sock 7.Parse request [16:25:08]Sock 7.Check first char [16:25:08]Sock 7.First char is OK [16:25:08]request: POST /json_proto HTTP/1.0 [16:25:08]Method: POST [16:25:08]URL: /json_proto [16:25:08]Method is POST - this is cgi request [16:25:08]url: /json_proto [16:25:08]query_string will be loaded in cgi processing [16:25:08]execute_cgi json_proto POST (null) [16:25:08]execute_cgi path=json_proto method=POST [16:25:08]POST find Content-Length [16:25:08]Host: 172.17.56.4:8080 [16:25:08]Content-Length: 677 [16:25:08]Content-Type: application/json [16:25:08] [16:25:08]POST finish read [16:25:08]Found Content-Length = 677 [16:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:25:08]execute_script... [16:25: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)458377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:25:08]POST & json_proto [16:25:08]process_json_proto [16:25:08]json parsed OK: [16:25:08]protocol is kg_v1.0 [16:25:08]action value=close_receipt [16:25:08]process_action close_receipt [16:25:08]cmd_close_receipt [16:25:08]MH_GetDate [16:25:08]Write to MH i2c: F0 00 00 C5 32 E6 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: F0 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: F0 09 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: F0 09 00 C5 32 00 E6 58 91 66 C9 DC B2 64 DF [16:25:08]GetLastDocTimeStamp 1720801489 [16:25:08]current date 1720801510 [16:25:08]FM_GetShiftState [16:25:08]SAM_PROTO_GetShiftState [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 13 01 00 [16:25:08]Write to MH i2c: E2 08 00 C6 32 80 13 01 00 00 00 00 00 75 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 0E 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 0E 00 C6 32 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BF [16:25:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:25:08]wFMCommunicate OK [16:25:08]SAM_PROTO_GetShiftState done [16:25:08]FM_GetShiftState done [16:25:08]opened in 1720744654 [16:25:08]opened+sec_in_day 1720831054 [16:25:08]quantity*price = 20003 [16:25:08]sum+1 = 20004 [16:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 215 12.07.2024 16:25 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164294 ФПД: 169328001388370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T162510&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164294&fm=169328001388370&tin=02508201610067®Number=0000000000090829&sum=20000 [16:25:09]StoreToDocumentArchive [16:25:09]shift 445 fd 164294 [16:25:09]save to /storage/0445/doc_00164294 [16:25:09]save last doc name /storage/0445/doc_00164294 to /storage/kkm_last_doc_name [16:25:09]save OK [16:25:09]Clear old archive folders... [16:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:09]tlvbuf is 00A2E990 [16:25:09]SAM_PROTO_ClearQueue [16:25:09]wFMCommunicate request_size=4 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 09 00 00 [16:25:09]Write to MH i2c: E2 08 00 D3 32 80 09 00 00 00 00 00 00 77 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 D3 32 00 90 00 79 [16:25:09]RAPDU: 90 00 [16:25:09]wFMCommunicate OK [16:25:09]SAM_PROTO_ClearQueue done [16:25:09]KKMCreateOFDPacket [16:25:09]OFDProtocolAddRootSTLVToBuf [16:25:09]FM_MakeSignedData [16:25:09]FM_MakeSignedData [16:25:09]SAM_PROTO_SignData [16:25:09]wFMCommunicate request_size=4 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 0D 01 02 [16:25:09]Write to MH i2c: E2 08 00 D4 32 80 0D 01 02 00 00 00 00 7F [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 D4 32 00 90 00 7A [16:25:09]RAPDU: 90 00 [16:25:09]wFMCommunicate OK [16:25:09]wFMCommunicate request_size=255 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 D7 00 00 00 F4 03 04 00 E6 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 81 02 00 35 04 06 00 9A [16:25:09]Write to MH i2c: E2 02 01 D5 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 D7 00 00 00 F4 03 04 00 E6 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 81 02 00 35 04 06 00 9A 00 00 46 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:10]OFD Sender: No OFD packet to send [16:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 D5 32 00 90 00 7B [16:25:10]RAPDU: 90 00 [16:25:10]wFMCommunicate OK [16:25:10]wFMCommunicate request_size=10 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 0D 02 02 05 00 BF 5F 8F 52 [16:25:10]Write to MH i2c: E2 0D 00 D6 32 80 0D 02 02 05 00 00 BF 5F 8F 52 00 00 8B [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 03 00 D6 32 00 90 00 7C [16:25:10]RAPDU: 90 00 [16:25:10]wFMCommunicate OK [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 0D 03 02 [16:25:10]Write to MH i2c: E2 08 00 D7 32 80 0D 03 02 00 00 00 00 84 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 0B 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 0B 00 D7 32 00 0A 80 63 A9 F9 07 74 A2 90 00 31 [16:25:10]RAPDU: 0A 80 63 A9 F9 07 74 A2 90 00 [16:25:10]wFMCommunicate OK [16:25:10]SAM_PROTO_SignData done [16:25:10]FM_MakeSignedData done [16:25:10]CreateOFDProtocolMessage [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 11 00 00 [16:25:10]Write to MH i2c: E2 08 00 D8 32 80 11 00 00 00 00 00 00 84 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 17 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 17 00 D8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [16:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:25:10]wFMCommunicate OK [16:25:10]CreateOFDProtocolMessage done [16:25:10]OFDSenderStorePacket 164294 [16:25:10]StoreOFDPacket docnum=164294 [16:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 35 8D 07 01 F7 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 D7 00 00 00 F4 03 04 00 E6 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 81 02 00 35 04 06 00 9A 00 BF 5F 8F 52 0A 80 63 A9 F9 07 74 A2 [16:25:10]CheckFolder [16:25:10]dirname=/storage/ofd_packets [16:25:10]CheckFolder done [16:25:10]ProducePacketName [16:25:10]name=ofd_packets/00164294 [16:25:10]NVStorageSaveData ofd_packets/00164294 [16:25:10]File name is /storage/ofd_packets/00164294 [16:25:10]Write 301 bytes [16:25:10]NVStorageSaveData done [16:25:10]OFDSenderStorePacket done [16:25:10]KKMCreateOFDPacket done [16:25:10]NVStorageSaveData kkm_last_timestamp [16:25:10]File name is /storage/kkm_last_timestamp [16:25:10]Write 4 bytes [16:25:10]NVStorageSaveData done [16:25:10]ExternCall_PrintAddStr [16:25:10]wPrintStart [16:25:10]Write to MH i2c: 01 00 00 D9 32 0B [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 07 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 07 00 D9 32 00 00 00 00 00 FF 0F 20 [16:25:10]RasterBufferAndPrint [16:25:10]line Счет N : (1)458377 [16:25:10]line ИНН: 02508201610067 [16:25:10]line Контрольно-Кассовый Чек [16:25:10]line ПРОДАЖА [16:25:10]line ТРК (МРК, ГНК) : 12 [16:25:10]line Товар: 2710124130 [16:25:10]line Аи-92-К-5 [16:25:10]line 3.040 * 65.80 [16:25:10]line = 200.03 [16:25:10]line НДС 12% НСП 1% [16:25:10]line > о реализуемом товаре [16:25:10]line ОКРУГЛЕНИЕ: -0.03 [16:25:10]line ИТОГО: 200.00 [16:25:10]line Внесено: 200.00 [16:25:10]line СДАЧА: 0.00 [16:25:10]line НСП 1% : 1.77 [16:25:10]line НДС 12% : 21.24 [16:25:10]line Наличными: 200.00 [16:25:10]line Безнал.: 0.00 [16:25:10]line Место: АЗС № 72 "Партнер Нефть" [16:25:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:25:10]line СНО: Общий режим [16:25:10]line Чек 215 12.07.2024 16:25 [16:25:10]line Смена: 445 ФФД: 1.0 [16:25:10]line ЗНМ: 0300000160 [16:25:10]line РНМ: 0000000000090829 [16:25:10]line Версия ККМ: 001 [16:25:10]line ФМ: 0000000000874718 [16:25:10]line ФД: 164294 [16:25:10]line ФПД: 169328001388370 [16:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T162510&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164294&fm=169328001388370&tin=02508201610067®Number=0000000000090829&sum=20000 [16:25:10]OFD Sender: Processing packet 164294 [packets to send 104, broken 103] [16:25:10]ProducePacketName [16:25:10]name=ofd_packets/00164294 [16:25:10]OFD Sender: To server: pG, [16:25:10]CommunicateWithHost lk.salyk.kg:30040 [16:25:10]ConnectInit lk.salyk.kg [16:25:10]written 0, free lines is 4095 [16:25:10]Connected sock=10 [16:25:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 35 8D 07 01 F7 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 D7 00 00 00 F4 03 04 00 E6 58 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 81 02 00 35 04 06 00 9A 00 BF 5F 8F 52 0A 80 63 A9 F9 07 74 A2 [16:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 66 3C 47 00 84 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 34 37 31 38 10 04 04 00 C6 81 02 00 F4 03 04 00 7A FF 90 66 B6 04 01 00 00 D0 EE F9 39 35 73 FD B2 [16:25:11]CommunicateWithHost err = 0 [16:25:11]CheckOFDResponse [16:25:11]1017 (14) - 77093643461234 [16:25:11]1041 (16) - 0000000000874718 [16:25:11]1040 (4) - 164294 [16:25:11]1012 (4) - 12.07.2024 10:03 [16:25:11]1206 (1) - 0 [16:25:11]OFD Sender: Remove packet 164294 [16:25:11]ProducePacketName [16:25:11]name=ofd_packets/00164294 [16:25:11]NVStorageDeleteData [16:25:11]Write to MH i2c: 01 00 00 03 33 36 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: 01 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: 01 07 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: 01 07 00 03 33 00 00 00 00 00 0B 0D 55 [16:25:11]RasterBufferAndPrint [16:25:11]line [16:25:11]line [16:25:11]line [16:25:11]line [16:25:11]line [16:25:11]written 0, free lines is 3345 [16:25:11]MH_Cut [16:25:11]Write to MH i2c: D1 01 00 0A 33 01 0F [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: D1 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: D1 01 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: D1 01 00 0A 33 00 0E [16:25:11]Write to MH i2c: 01 00 00 0B 33 3E [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]OFD Sender: No OFD packet to send [16:25:11]*** Cut start [16:25:11]*** Partial cut [16:25:11]*** CUTSNS_PIN = 1 [16:25:11]*** CUTSNS_PIN = 0 [16:25:12]*** Brake cut motor [16:25:12]Read from MH i2c: 01 [16:25:12]MH_I2C_Read... [16:25:12]*** Stop cut motor [16:25:12]*** Cut end [16:25:12]Read from MH i2c: 01 07 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: 01 07 00 0B 33 00 00 00 00 00 FF 0F 53 [16:25:12]process_action close_receipt done [16:25:12]requested_data is exist [16:25:12]produce_requested_data [16:25:12]requested_item fm.sn is exist - process it [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 11 00 00 [16:25:12]Write to MH i2c: E2 08 00 0C 33 80 11 00 00 00 00 00 00 B9 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 17 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 17 00 0C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [16:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:25:12]wFMCommunicate OK [16:25:12]requested_item fd.num is exist - process it [16:25:12]SAM_PROTO_GetFieldsCounters [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 13 00 00 [16:25:12]Write to MH i2c: E2 08 00 0D 33 80 13 00 00 00 00 00 00 BC [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 62 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 62 00 0D 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [16:25:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:12]wFMCommunicate OK [16:25:12]SAM_PROTO_GetFieldsCounters done [16:25:12]requested_item shift.num is exist - process it [16:25:12]requested_item shift.opened is exist - process it [16:25:12]req_shift_opened [16:25:12]FM_GetShiftState [16:25:12]SAM_PROTO_GetShiftState [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 13 01 00 [16:25:12]Write to MH i2c: E2 08 00 0E 33 80 13 01 00 00 00 00 00 BE [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 0E 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 0E 00 0E 33 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 08 [16:25:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:25:12]wFMCommunicate OK [16:25:12]SAM_PROTO_GetShiftState done [16:25:12]FM_GetShiftState done [16:25:12]req_shift_opened done [16:25:12]requested_item shift.open_date is exist - process it [16:25:12]req_shift_open_date [16:25:12]req_shift_open_date done [16:25:12]produce_requested_data done [16:25:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164294,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:25:12]process_action_free close_receipt [16:25:12]json_value_free [16:25:12]json_value_free done [16:25:12]process_json_proto returns [16:25:12]Send response to host [16:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164294,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:25:12]free response buf [16:25:12]execute_script done [16:25:12]execute_script returns [16:25:12]free content buf [16:25:12]Sock 7.Close socket [16:25:12]Sock 7.Thread stoped [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:54]accept exits with 9 [16:27:54]New connection [16:27:54]New thread 3066850660 created [16:27:54]Thread 3066707300 joined [16:27:54]Waiting for new connection... [16:27:54] Sock 9.Parse request [16:27:54]Sock 9.Check first char [16:27:54]Sock 9.First char is OK [16:27:54]request: POST /json_proto HTTP/1.0 [16:27:54]Method: POST [16:27:54]URL: /json_proto [16:27:54]Method is POST - this is cgi request [16:27:54]url: /json_proto [16:27:54]query_string will be loaded in cgi processing [16:27:54]execute_cgi json_proto POST (null) [16:27:54]execute_cgi path=json_proto method=POST [16:27:54]POST find Content-Length [16:27:54]Host: 172.17.56.4:8080 [16:27:54]Content-Length: 677 [16:27:54]Content-Type: application/json [16:27:54] [16:27:54]POST finish read [16:27:54]Found Content-Length = 677 [16:27:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:54]execute_script... [16:27: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)458378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:54]POST & json_proto [16:27:54]process_json_proto [16:27:54]json parsed OK: [16:27:54]protocol is kg_v1.0 [16:27:54]action value=close_receipt [16:27:54]process_action close_receipt [16:27:54]cmd_close_receipt [16:27:54]MH_GetDate [16:27:54]Write to MH i2c: F0 00 00 0F 33 31 [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: F0 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: F0 09 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: F0 09 00 0F 33 00 8C 59 91 66 C9 DC B2 64 D1 [16:27:54]GetLastDocTimeStamp 1720801510 [16:27:54]current date 1720801676 [16:27:54]FM_GetShiftState [16:27:54]SAM_PROTO_GetShiftState [16:27:54]wFMCommunicate request_size=4 [16:27:54]MH_SAM_APDU [16:27:54]CAPDU: 80 13 01 00 [16:27:54]Write to MH i2c: E2 08 00 10 33 80 13 01 00 00 00 00 00 C0 [16:27:54]Write i2c OK [16:27:54]MH_I2C_Read... [16:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:54]Read from MH i2c: E2 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 0E 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 0E 00 10 33 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0A [16:27:54]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:27:54]wFMCommunicate OK [16:27:54]SAM_PROTO_GetShiftState done [16:27:54]FM_GetShiftState done [16:27:54]opened in 1720744654 [16:27:54]opened+sec_in_day 1720831054 [16:27:54]quantity*price = 50008 [16:27:54]sum+1 = 50009 [16:27:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 216 12.07.2024 16:27 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164295 ФПД: 33093962170587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T162756&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164295&fm=33093962170587&tin=02508201610067®Number=0000000000090829&sum=50000 [16:27:55]StoreToDocumentArchive [16:27:55]shift 445 fd 164295 [16:27:55]save to /storage/0445/doc_00164295 [16:27:55]save last doc name /storage/0445/doc_00164295 to /storage/kkm_last_doc_name [16:27:55]save OK [16:27:55]Clear old archive folders... [16:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:55]tlvbuf is 00A8A340 [16:27:55]SAM_PROTO_ClearQueue [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 09 00 00 [16:27:55]Write to MH i2c: E2 08 00 1D 33 80 09 00 00 00 00 00 00 C2 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 1D 33 00 90 00 C4 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]SAM_PROTO_ClearQueue done [16:27:55]KKMCreateOFDPacket [16:27:55]OFDProtocolAddRootSTLVToBuf [16:27:55]FM_MakeSignedData [16:27:55]FM_MakeSignedData [16:27:55]SAM_PROTO_SignData [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 01 02 [16:27:55]Write to MH i2c: E2 08 00 1E 33 80 0D 01 02 00 00 00 00 CA [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 1E 33 00 90 00 C5 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=255 [16:27:55]MH_SAM_APDU [16:27: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D8 00 00 00 F4 03 04 00 8C 59 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 81 02 00 35 04 06 00 1E [16:27:55]Write to MH i2c: E2 02 01 1F 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D8 00 00 00 F4 03 04 00 8C 59 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 81 02 00 35 04 06 00 1E 00 00 1D [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 1F 33 00 90 00 C6 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=10 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 02 02 05 19 49 DC 00 DB [16:27:55]Write to MH i2c: E2 0D 00 20 33 80 0D 02 02 05 00 19 49 DC 00 DB 00 00 F0 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:56]Read from MH i2c: E2 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 03 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 03 00 20 33 00 90 00 C7 [16:27:56]RAPDU: 90 00 [16:27:56]wFMCommunicate OK [16:27:56]wFMCommunicate request_size=4 [16:27:56]MH_SAM_APDU [16:27:56]CAPDU: 80 0D 03 02 [16:27:56]Write to MH i2c: E2 08 00 21 33 80 0D 03 02 00 00 00 00 CF [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:56]Read from MH i2c: E2 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 0B 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 0B 00 21 33 00 FE D5 81 A0 18 EC F7 C3 90 00 82 [16:27:56]RAPDU: FE D5 81 A0 18 EC F7 C3 90 00 [16:27:56]wFMCommunicate OK [16:27:56]SAM_PROTO_SignData done [16:27:56]FM_MakeSignedData done [16:27:56]CreateOFDProtocolMessage [16:27:56]wFMCommunicate request_size=4 [16:27:56]MH_SAM_APDU [16:27:56]CAPDU: 80 11 00 00 [16:27:56]Write to MH i2c: E2 08 00 22 33 80 11 00 00 00 00 00 00 CF [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:56]Read from MH i2c: E2 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 17 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: E2 17 00 22 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [16:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:27:56]wFMCommunicate OK [16:27:56]CreateOFDProtocolMessage done [16:27:56]OFDSenderStorePacket 164295 [16:27:56]StoreOFDPacket docnum=164295 [16:27:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B9 6E 07 01 06 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D8 00 00 00 F4 03 04 00 8C 59 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 81 02 00 35 04 06 00 1E 19 49 DC 00 DB FE D5 81 A0 18 EC F7 C3 [16:27:56]CheckFolder [16:27:56]dirname=/storage/ofd_packets [16:27:56]CheckFolder done [16:27:56]ProducePacketName [16:27:56]name=ofd_packets/00164295 [16:27:56]NVStorageSaveData ofd_packets/00164295 [16:27:56]File name is /storage/ofd_packets/00164295 [16:27:56]Write 301 bytes [16:27:56]NVStorageSaveData done [16:27:56]OFDSenderStorePacket done [16:27:56]KKMCreateOFDPacket done [16:27:56]NVStorageSaveData kkm_last_timestamp [16:27:56]File name is /storage/kkm_last_timestamp [16:27:56]Write 4 bytes [16:27:56]NVStorageSaveData done [16:27:56]ExternCall_PrintAddStr [16:27:56]wPrintStart [16:27:56]Write to MH i2c: 01 00 00 23 33 56 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 23 33 00 00 00 00 00 FF 0F 6B [16:27:56]RasterBufferAndPrint [16:27:56]line Счет N : (1)458378 [16:27:56]line ИНН: 02508201610067 [16:27:56]line Контрольно-Кассовый Чек [16:27:56]line ПРОДАЖА [16:27:56]line ТРК (МРК, ГНК) : 12 [16:27:56]line Товар: 2710124130 [16:27:56]line Аи-92-К-5 [16:27:56]line 7.600 * 65.80 [16:27:56]line = 500.08 [16:27:56]line НДС 12% НСП 1% [16:27:56]line > о реализуемом товаре [16:27:56]line ОКРУГЛЕНИЕ: -0.08 [16:27:56]line ИТОГО: 500.00 [16:27:56]line Внесено: 500.00 [16:27:56]line СДАЧА: 0.00 [16:27:56]line НСП 1% : 4.42 [16:27:56]line НДС 12% : 53.11 [16:27:56]line Наличными: 500.00 [16:27:56]line Безнал.: 0.00 [16:27:56]line Место: АЗС № 72 "Партнер Нефть" [16:27:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:27:56]line СНО: Общий режим [16:27:56]line Чек 216 12.07.2024 16:27 [16:27:56]line Смена: 445 ФФД: 1.0 [16:27:56]line ЗНМ: 0300000160 [16:27:56]line РНМ: 0000000000090829 [16:27:56]line Версия ККМ: 001 [16:27:56]line ФМ: 0000000000874718 [16:27:56]line ФД: 164295 [16:27:56]line ФПД: 33093962170587 [16:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T162756&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164295&fm=33093962170587&tin=02508201610067®Number=0000000000090829&sum=50000 [16:27:56]OFD Sender: Processing packet 164295 [packets to send 104, broken 103] [16:27:56]ProducePacketName [16:27:56]name=ofd_packets/00164295 [16:27:56]OFD Sender: To server: pG, [16:27:56]CommunicateWithHost lk.salyk.kg:30040 [16:27:56]ConnectInit lk.salyk.kg [16:27:56]written 0, free lines is 4095 [16:27:56]Connected sock=10 [16:27:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B9 6E 07 01 06 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D8 00 00 00 F4 03 04 00 8C 59 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 81 02 00 35 04 06 00 1E 19 49 DC 00 DB FE D5 81 A0 18 EC F7 C3 [16:27:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D2 44 47 00 B1 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 34 37 31 38 10 04 04 00 C7 81 02 00 F4 03 04 00 20 00 91 66 B6 04 01 00 00 43 30 35 66 B8 87 23 9B [16:27:56]CommunicateWithHost err = 0 [16:27:56]CheckOFDResponse [16:27:56]1017 (14) - 77093643461234 [16:27:56]1041 (16) - 0000000000874718 [16:27:56]1040 (4) - 164295 [16:27:56]1012 (4) - 12.07.2024 10:06 [16:27:56]1206 (1) - 0 [16:27:56]OFD Sender: Remove packet 164295 [16:27:56]ProducePacketName [16:27:56]name=ofd_packets/00164295 [16:27:56]NVStorageDeleteData [16:27:56]Write to MH i2c: 01 00 00 4D 33 80 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 4D 33 00 00 00 00 00 0A 0D 9E [16:27:56]RasterBufferAndPrint [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]written 0, free lines is 3344 [16:27:56]MH_Cut [16:27:56]Write to MH i2c: D1 01 00 54 33 01 59 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: D1 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: D1 01 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: D1 01 00 54 33 00 58 [16:27:56]Write to MH i2c: 01 00 00 55 33 88 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:57]OFD Sender: No OFD packet to send [16:27:57]*** Cut start [16:27:57]*** Partial cut [16:27:57]*** CUTSNS_PIN = 1 [16:27:57]*** CUTSNS_PIN = 0 [16:27:57]*** Brake cut motor [16:27:58]Read from MH i2c: 01 [16:27:58]MH_I2C_Read... [16:27:58]*** Stop cut motor [16:27:58]*** Cut end [16:27:58]Read from MH i2c: 01 07 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: 01 07 00 55 33 00 00 00 00 00 FF 0F 9D [16:27:58]process_action close_receipt done [16:27:58]requested_data is exist [16:27:58]produce_requested_data [16:27:58]requested_item fm.sn is exist - process it [16:27:58]wFMCommunicate request_size=4 [16:27:58]MH_SAM_APDU [16:27:58]CAPDU: 80 11 00 00 [16:27:58]Write to MH i2c: E2 08 00 56 33 80 11 00 00 00 00 00 00 03 [16:27:58]Write i2c OK [16:27:58]MH_I2C_Read... [16:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:58]Read from MH i2c: E2 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 17 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 17 00 56 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [16:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:27:58]wFMCommunicate OK [16:27:58]requested_item fd.num is exist - process it [16:27:58]SAM_PROTO_GetFieldsCounters [16:27:58]wFMCommunicate request_size=4 [16:27:58]MH_SAM_APDU [16:27:58]CAPDU: 80 13 00 00 [16:27:58]Write to MH i2c: E2 08 00 57 33 80 13 00 00 00 00 00 00 06 [16:27:58]Write i2c OK [16:27:58]MH_I2C_Read... [16:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:58]Read from MH i2c: E2 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 62 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 62 00 57 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [16:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:58]wFMCommunicate OK [16:27:58]SAM_PROTO_GetFieldsCounters done [16:27:58]requested_item shift.num is exist - process it [16:27:58]requested_item shift.opened is exist - process it [16:27:58]req_shift_opened [16:27:58]FM_GetShiftState [16:27:58]SAM_PROTO_GetShiftState [16:27:58]wFMCommunicate request_size=4 [16:27:58]MH_SAM_APDU [16:27:58]CAPDU: 80 13 01 00 [16:27:58]Write to MH i2c: E2 08 00 58 33 80 13 01 00 00 00 00 00 08 [16:27:58]Write i2c OK [16:27:58]MH_I2C_Read... [16:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:58]Read from MH i2c: E2 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 0E 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 0E 00 58 33 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 52 [16:27:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:27:58]wFMCommunicate OK [16:27:58]SAM_PROTO_GetShiftState done [16:27:58]FM_GetShiftState done [16:27:58]req_shift_opened done [16:27:58]requested_item shift.open_date is exist - process it [16:27:58]req_shift_open_date [16:27:58]req_shift_open_date done [16:27:58]produce_requested_data done [16:27:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164295,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:27:58]process_action_free close_receipt [16:27:58]json_value_free [16:27:58]json_value_free done [16:27:58]process_json_proto returns [16:27:58]Send response to host [16:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164295,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:27:58]free response buf [16:27:58]execute_script done [16:27:58]execute_script returns [16:27:58]free content buf [16:27:58]Sock 9.Close socket [16:27:58]Sock 9.Thread stoped [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:08]accept exits with 7 [16:32:08]New connection [16:32:08]New thread 3066707300 created [16:32:08]Thread 3066850660 joined [16:32:08]Waiting for new connection... [16:32:08] Sock 7.Parse request [16:32:08]Sock 7.Check first char [16:32:08]Sock 7.First char is OK [16:32:08]request: POST /json_proto HTTP/1.0 [16:32:08]Method: POST [16:32:08]URL: /json_proto [16:32:08]Method is POST - this is cgi request [16:32:08]url: /json_proto [16:32:08]query_string will be loaded in cgi processing [16:32:08]execute_cgi json_proto POST (null) [16:32:08]execute_cgi path=json_proto method=POST [16:32:08]POST find Content-Length [16:32:08]Host: 172.17.56.4:8080 [16:32:08]Content-Length: 677 [16:32:08]Content-Type: application/json [16:32:08] [16:32:08]POST finish read [16:32:08]Found Content-Length = 677 [16:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:32:08]execute_script... [16:32: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)458379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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:32:08]POST & json_proto [16:32:08]process_json_proto [16:32:08]json parsed OK: [16:32:08]protocol is kg_v1.0 [16:32:08]action value=close_receipt [16:32:08]process_action close_receipt [16:32:08]cmd_close_receipt [16:32:08]MH_GetDate [16:32:08]Write to MH i2c: F0 00 00 59 33 7B [16:32:08]Write i2c OK [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: F0 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: F0 09 00 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: F0 09 00 59 33 00 8A 5A 91 66 C9 DC B2 64 1A [16:32:08]GetLastDocTimeStamp 1720801676 [16:32:08]current date 1720801930 [16:32:08]FM_GetShiftState [16:32:08]SAM_PROTO_GetShiftState [16:32:08]wFMCommunicate request_size=4 [16:32:08]MH_SAM_APDU [16:32:08]CAPDU: 80 13 01 00 [16:32:08]Write to MH i2c: E2 08 00 5A 33 80 13 01 00 00 00 00 00 0A [16:32:08]Write i2c OK [16:32:08]MH_I2C_Read... [16:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:08]Read from MH i2c: E2 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 0E 00 [16:32:08]MH_I2C_Read... [16:32:08]Read from MH i2c: E2 0E 00 5A 33 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 54 [16:32:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:32:08]wFMCommunicate OK [16:32:08]SAM_PROTO_GetShiftState done [16:32:08]FM_GetShiftState done [16:32:08]opened in 1720744654 [16:32:08]opened+sec_in_day 1720831054 [16:32:08]quantity*price = 40006 [16:32:08]sum+1 = 40007 [16:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 217 12.07.2024 16:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164296 ФПД: 40434235087279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163210&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164296&fm=40434235087279&tin=02508201610067®Number=0000000000090829&sum=40000 [16:32:09]StoreToDocumentArchive [16:32:09]shift 445 fd 164296 [16:32:09]save to /storage/0445/doc_00164296 [16:32:09]save last doc name /storage/0445/doc_00164296 to /storage/kkm_last_doc_name [16:32:09]save OK [16:32:09]Clear old archive folders... [16:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:09]tlvbuf is B6F3F940 [16:32:09]SAM_PROTO_ClearQueue [16:32:09]wFMCommunicate request_size=4 [16:32:09]MH_SAM_APDU [16:32:09]CAPDU: 80 09 00 00 [16:32:09]Write to MH i2c: E2 08 00 67 33 80 09 00 00 00 00 00 00 0C [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:09]Read from MH i2c: E2 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 03 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 03 00 67 33 00 90 00 0E [16:32:09]RAPDU: 90 00 [16:32:09]wFMCommunicate OK [16:32:09]SAM_PROTO_ClearQueue done [16:32:09]KKMCreateOFDPacket [16:32:09]OFDProtocolAddRootSTLVToBuf [16:32:09]FM_MakeSignedData [16:32:09]FM_MakeSignedData [16:32:09]SAM_PROTO_SignData [16:32:09]wFMCommunicate request_size=4 [16:32:09]MH_SAM_APDU [16:32:09]CAPDU: 80 0D 01 02 [16:32:09]Write to MH i2c: E2 08 00 68 33 80 0D 01 02 00 00 00 00 14 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:09]Read from MH i2c: E2 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 03 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 03 00 68 33 00 90 00 0F [16:32:09]RAPDU: 90 00 [16:32:09]wFMCommunicate OK [16:32:09]wFMCommunicate request_size=255 [16:32:09]MH_SAM_APDU [16:32: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 D9 00 00 00 F4 03 04 00 8A 5A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 81 02 00 35 04 06 00 24 [16:32:09]Write to MH i2c: E2 02 01 69 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 D9 00 00 00 F4 03 04 00 8A 5A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 81 02 00 35 04 06 00 24 00 00 4E [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:09]Read from MH i2c: E2 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 03 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 03 00 69 33 00 90 00 10 [16:32:09]RAPDU: 90 00 [16:32:09]wFMCommunicate OK [16:32:09]wFMCommunicate request_size=10 [16:32:09]MH_SAM_APDU [16:32:09]CAPDU: 80 0D 02 02 05 C6 54 38 19 AF [16:32:09]Write to MH i2c: E2 0D 00 6A 33 80 0D 02 02 05 00 C6 54 38 19 AF 00 00 3B [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:09]Read from MH i2c: E2 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 03 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 03 00 6A 33 00 90 00 11 [16:32:09]RAPDU: 90 00 [16:32:09]wFMCommunicate OK [16:32:09]wFMCommunicate request_size=4 [16:32:09]MH_SAM_APDU [16:32:09]CAPDU: 80 0D 03 02 [16:32:09]Write to MH i2c: E2 08 00 6B 33 80 0D 03 02 00 00 00 00 19 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:09]Read from MH i2c: E2 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 0B 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 0B 00 6B 33 00 9D 40 C2 16 36 64 28 E1 90 00 72 [16:32:09]RAPDU: 9D 40 C2 16 36 64 28 E1 90 00 [16:32:09]wFMCommunicate OK [16:32:09]SAM_PROTO_SignData done [16:32:09]FM_MakeSignedData done [16:32:09]CreateOFDProtocolMessage [16:32:09]wFMCommunicate request_size=4 [16:32:09]MH_SAM_APDU [16:32:09]CAPDU: 80 11 00 00 [16:32:09]Write to MH i2c: E2 08 00 6C 33 80 11 00 00 00 00 00 00 19 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:09]Read from MH i2c: E2 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 17 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: E2 17 00 6C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [16:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:32:09]wFMCommunicate OK [16:32:09]CreateOFDProtocolMessage done [16:32:09]OFDSenderStorePacket 164296 [16:32:09]StoreOFDPacket docnum=164296 [16:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5C 55 07 01 39 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 D9 00 00 00 F4 03 04 00 8A 5A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 81 02 00 35 04 06 00 24 C6 54 38 19 AF 9D 40 C2 16 36 64 28 E1 [16:32:09]CheckFolder [16:32:09]dirname=/storage/ofd_packets [16:32:09]CheckFolder done [16:32:09]ProducePacketName [16:32:09]name=ofd_packets/00164296 [16:32:09]NVStorageSaveData ofd_packets/00164296 [16:32:09]File name is /storage/ofd_packets/00164296 [16:32:09]Write 301 bytes [16:32:09]NVStorageSaveData done [16:32:09]OFDSenderStorePacket done [16:32:09]KKMCreateOFDPacket done [16:32:09]NVStorageSaveData kkm_last_timestamp [16:32:09]File name is /storage/kkm_last_timestamp [16:32:09]Write 4 bytes [16:32:09]NVStorageSaveData done [16:32:09]ExternCall_PrintAddStr [16:32:09]wPrintStart [16:32:09]Write to MH i2c: 01 00 00 6D 33 A0 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 07 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 07 00 6D 33 00 00 00 00 00 FF 0F B5 [16:32:09]RasterBufferAndPrint [16:32:09]line Счет N : (1)458379 [16:32:09]line ИНН: 02508201610067 [16:32:09]line Контрольно-Кассовый Чек [16:32:09]line ПРОДАЖА [16:32:09]line ТРК (МРК, ГНК) : 12 [16:32:09]line Товар: 2710124130 [16:32:09]line Аи-92-К-5 [16:32:09]line 6.080 * 65.80 [16:32:09]line = 400.06 [16:32:09]line НДС 12% НСП 1% [16:32:09]line > о реализуемом товаре [16:32:09]line ОКРУГЛЕНИЕ: -0.06 [16:32:09]line ИТОГО: 400.00 [16:32:09]line Внесено: 400.00 [16:32:09]line СДАЧА: 0.00 [16:32:09]line НСП 1% : 3.54 [16:32:09]line НДС 12% : 42.48 [16:32:09]line Наличными: 400.00 [16:32:09]line Безнал.: 0.00 [16:32:09]line Место: АЗС № 72 "Партнер Нефть" [16:32:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:32:09]line СНО: Общий режим [16:32:09]line Чек 217 12.07.2024 16:32 [16:32:09]line Смена: 445 ФФД: 1.0 [16:32:09]line ЗНМ: 0300000160 [16:32:09]line РНМ: 0000000000090829 [16:32:09]line Версия ККМ: 001 [16:32:09]line ФМ: 0000000000874718 [16:32:09]line ФД: 164296 [16:32:09]line ФПД: 40434235087279 [16:32:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163210&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164296&fm=40434235087279&tin=02508201610067®Number=0000000000090829&sum=40000 [16:32:10]written 0, free lines is 4095 [16:32:10]OFD Sender: Processing packet 164296 [packets to send 104, broken 103] [16:32:10]ProducePacketName [16:32:10]name=ofd_packets/00164296 [16:32:10]OFD Sender: To server: pG, [16:32:10]CommunicateWithHost lk.salyk.kg:30040 [16:32:10]ConnectInit lk.salyk.kg [16:32:10]Connected sock=10 [16:32:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5C 55 07 01 39 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 D9 00 00 00 F4 03 04 00 8A 5A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 81 02 00 35 04 06 00 24 C6 54 38 19 AF 9D 40 C2 16 36 64 28 E1 [16:32:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 97 70 47 00 6A 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 34 37 31 38 10 04 04 00 C8 81 02 00 F4 03 04 00 1E 01 91 66 B6 04 01 00 00 1C 9E C6 2A A2 82 34 F4 [16:32:10]CommunicateWithHost err = 0 [16:32:10]CheckOFDResponse [16:32:10]1017 (14) - 77093643461234 [16:32:10]1041 (16) - 0000000000874718 [16:32:10]1040 (4) - 164296 [16:32:10]1012 (4) - 12.07.2024 10:10 [16:32:10]1206 (1) - 0 [16:32:10]OFD Sender: Remove packet 164296 [16:32:10]ProducePacketName [16:32:10]name=ofd_packets/00164296 [16:32:10]NVStorageDeleteData [16:32:10]Write to MH i2c: 01 00 00 97 33 CA [16:32:10]Write i2c OK [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: 01 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: 01 07 00 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: 01 07 00 97 33 00 00 00 00 00 05 0D E3 [16:32:10]RasterBufferAndPrint [16:32:10]line [16:32:10]line [16:32:10]line [16:32:10]line [16:32:10]line [16:32:10]written 0, free lines is 3339 [16:32:10]MH_Cut [16:32:10]Write to MH i2c: D1 01 00 9E 33 01 A3 [16:32:10]Write i2c OK [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: D1 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: D1 01 00 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: D1 01 00 9E 33 00 A2 [16:32:10]Write to MH i2c: 01 00 00 9F 33 D2 [16:32:10]Write i2c OK [16:32:10]MH_I2C_Read... [16:32:11]OFD Sender: No OFD packet to send [16:32:11]*** Cut start [16:32:11]*** Partial cut [16:32:11]*** CUTSNS_PIN = 1 [16:32:11]*** CUTSNS_PIN = 0 [16:32:11]*** Brake cut motor [16:32:11]Read from MH i2c: 01 [16:32:11]MH_I2C_Read... [16:32:11]*** Stop cut motor [16:32:11]*** Cut end [16:32:11]Read from MH i2c: 01 07 00 [16:32:11]MH_I2C_Read... [16:32:11]Read from MH i2c: 01 07 00 9F 33 00 00 00 00 00 FF 0F E7 [16:32:11]process_action close_receipt done [16:32:11]requested_data is exist [16:32:11]produce_requested_data [16:32:11]requested_item fm.sn is exist - process it [16:32:11]wFMCommunicate request_size=4 [16:32:11]MH_SAM_APDU [16:32:11]CAPDU: 80 11 00 00 [16:32:11]Write to MH i2c: E2 08 00 A0 33 80 11 00 00 00 00 00 00 4D [16:32:11]Write i2c OK [16:32:11]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 17 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 17 00 A0 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [16:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:32:12]wFMCommunicate OK [16:32:12]requested_item fd.num is exist - process it [16:32:12]SAM_PROTO_GetFieldsCounters [16:32:12]wFMCommunicate request_size=4 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 13 00 00 [16:32:12]Write to MH i2c: E2 08 00 A1 33 80 13 00 00 00 00 00 00 50 [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 62 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 62 00 A1 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [16:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:12]wFMCommunicate OK [16:32:12]SAM_PROTO_GetFieldsCounters done [16:32:12]requested_item shift.num is exist - process it [16:32:12]requested_item shift.opened is exist - process it [16:32:12]req_shift_opened [16:32:12]FM_GetShiftState [16:32:12]SAM_PROTO_GetShiftState [16:32:12]wFMCommunicate request_size=4 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 13 01 00 [16:32:12]Write to MH i2c: E2 08 00 A2 33 80 13 01 00 00 00 00 00 52 [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 0E 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 0E 00 A2 33 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9C [16:32:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:32:12]wFMCommunicate OK [16:32:12]SAM_PROTO_GetShiftState done [16:32:12]FM_GetShiftState done [16:32:12]req_shift_opened done [16:32:12]requested_item shift.open_date is exist - process it [16:32:12]req_shift_open_date [16:32:12]req_shift_open_date done [16:32:12]produce_requested_data done [16:32:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164296,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:32:12]process_action_free close_receipt [16:32:12]json_value_free [16:32:12]json_value_free done [16:32:12]process_json_proto returns [16:32:12]Send response to host [16:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164296,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:32:12]free response buf [16:32:12]execute_script done [16:32:12]execute_script returns [16:32:12]free content buf [16:32:12]Sock 7.Close socket [16:32:12]Sock 7.Thread stoped [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:53]accept exits with 9 [16:33:53]New connection [16:33:53]New thread 3066850660 created [16:33:53]Thread 3066707300 joined [16:33:53]Waiting for new connection... [16:33:53] Sock 9.Parse request [16:33:53]Sock 9.Check first char [16:33:53]Sock 9.First char is OK [16:33:53]request: POST /json_proto HTTP/1.0 [16:33:53]Method: POST [16:33:53]URL: /json_proto [16:33:53]Method is POST - this is cgi request [16:33:53]url: /json_proto [16:33:53]query_string will be loaded in cgi processing [16:33:53]execute_cgi json_proto POST (null) [16:33:53]execute_cgi path=json_proto method=POST [16:33:53]POST find Content-Length [16:33:53]Host: 172.17.56.4:8080 [16:33:53]Content-Length: 791 [16:33:53]Content-Type: application/json [16:33:53] [16:33:53]POST finish read [16:33:53]Found Content-Length = 791 [16:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:53]execute_script... [16:33: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)458381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:53]POST & json_proto [16:33:53]process_json_proto [16:33:53]json parsed OK: [16:33:53]protocol is kg_v1.0 [16:33:53]action value=close_receipt [16:33:53]process_action close_receipt [16:33:53]cmd_close_receipt [16:33:53]MH_GetDate [16:33:53]Write to MH i2c: F0 00 00 A3 33 C5 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: F0 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: F0 09 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: F0 09 00 A3 33 00 F3 5A 91 66 C9 DC B2 64 CD [16:33:53]GetLastDocTimeStamp 1720801930 [16:33:53]current date 1720802035 [16:33:53]FM_GetShiftState [16:33:53]SAM_PROTO_GetShiftState [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 13 01 00 [16:33:53]Write to MH i2c: E2 08 00 A4 33 80 13 01 00 00 00 00 00 54 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0E 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0E 00 A4 33 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9E [16:33:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:33:53]wFMCommunicate OK [16:33:53]SAM_PROTO_GetShiftState done [16:33:53]FM_GetShiftState done [16:33:53]opened in 1720744654 [16:33:53]opened+sec_in_day 1720831054 [16:33:53]quantity*price = 65220 [16:33:53]sum+1 = 65221 [16:33:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 218 12.07.2024 16:33 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164297 ФПД: 79309401101543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163355&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164297&fm=79309401101543&tin=02508201610067®Number=0000000000090829&sum=65220 [16:33:54]StoreToDocumentArchive [16:33:54]shift 445 fd 164297 [16:33:54]save to /storage/0445/doc_00164297 [16:33:54]save last doc name /storage/0445/doc_00164297 to /storage/kkm_last_doc_name [16:33:54]save OK [16:33:54]Clear old archive folders... [16:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:54]tlvbuf is 00A2E5C0 [16:33:54]SAM_PROTO_ClearQueue [16:33:54]wFMCommunicate request_size=4 [16:33:54]MH_SAM_APDU [16:33:54]CAPDU: 80 09 00 00 [16:33:54]Write to MH i2c: E2 08 00 B1 33 80 09 00 00 00 00 00 00 56 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 B1 33 00 90 00 58 [16:33:54]RAPDU: 90 00 [16:33:54]wFMCommunicate OK [16:33:54]SAM_PROTO_ClearQueue done [16:33:54]KKMCreateOFDPacket [16:33:54]OFDProtocolAddRootSTLVToBuf [16:33:54]FM_MakeSignedData [16:33:54]FM_MakeSignedData [16:33:54]SAM_PROTO_SignData [16:33:54]wFMCommunicate request_size=4 [16:33:54]MH_SAM_APDU [16:33:54]CAPDU: 80 0D 01 02 [16:33:54]Write to MH i2c: E2 08 00 B2 33 80 0D 01 02 00 00 00 00 5E [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 B2 33 00 90 00 59 [16:33:54]RAPDU: 90 00 [16:33:54]wFMCommunicate OK [16:33:54]wFMCommunicate request_size=255 [16:33:54]MH_SAM_APDU [16:33: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 F3 5A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 81 02 00 35 04 06 00 48 [16:33:54]Write to MH i2c: E2 02 01 B3 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 F3 5A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 81 02 00 35 04 06 00 48 00 00 5A [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 03 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 03 00 B3 33 00 90 00 5A [16:33:55]RAPDU: 90 00 [16:33:55]wFMCommunicate OK [16:33:55]wFMCommunicate request_size=10 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 0D 02 02 05 21 A8 AE 14 E7 [16:33:55]Write to MH i2c: E2 0D 00 B4 33 80 0D 02 02 05 00 21 A8 AE 14 E7 00 00 DD [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 03 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 03 00 B4 33 00 90 00 5B [16:33:55]RAPDU: 90 00 [16:33:55]wFMCommunicate OK [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 0D 03 02 [16:33:55]Write to MH i2c: E2 08 00 B5 33 80 0D 03 02 00 00 00 00 63 [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0B 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0B 00 B5 33 00 CA 74 FA 5F 16 13 9C E7 90 00 A7 [16:33:55]RAPDU: CA 74 FA 5F 16 13 9C E7 90 00 [16:33:55]wFMCommunicate OK [16:33:55]SAM_PROTO_SignData done [16:33:55]FM_MakeSignedData done [16:33:55]CreateOFDProtocolMessage [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 11 00 00 [16:33:55]Write to MH i2c: E2 08 00 B6 33 80 11 00 00 00 00 00 00 63 [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 17 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 17 00 B6 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [16:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:33:55]wFMCommunicate OK [16:33:55]CreateOFDProtocolMessage done [16:33:55]OFDSenderStorePacket 164297 [16:33:55]StoreOFDPacket docnum=164297 [16:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E9 FD 07 01 78 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 F3 5A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 81 02 00 35 04 06 00 48 21 A8 AE 14 E7 CA 74 FA 5F 16 13 9C E7 [16:33:55]CheckFolder [16:33:55]dirname=/storage/ofd_packets [16:33:55]CheckFolder done [16:33:55]ProducePacketName [16:33:55]name=ofd_packets/00164297 [16:33:55]NVStorageSaveData ofd_packets/00164297 [16:33:55]File name is /storage/ofd_packets/00164297 [16:33:55]Write 301 bytes [16:33:55]NVStorageSaveData done [16:33:55]OFDSenderStorePacket done [16:33:55]KKMCreateOFDPacket done [16:33:55]NVStorageSaveData kkm_last_timestamp [16:33:55]File name is /storage/kkm_last_timestamp [16:33:55]Write 4 bytes [16:33:55]NVStorageSaveData done [16:33:55]ExternCall_PrintAddStr [16:33:55]wPrintStart [16:33:55]Write to MH i2c: 01 00 00 B7 33 EA [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 07 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 07 00 B7 33 00 00 00 00 00 FF 0F FF [16:33:55]RasterBufferAndPrint [16:33:55]line Счет N : (1)458381 [16:33:55]line ИНН: 02508201610067 [16:33:55]line Контрольно-Кассовый Чек [16:33:55]line ПРОДАЖА [16:33:55]line ТРК (МРК, ГНК) : 22 [16:33:55]line Товар: 2710124130 [16:33:55]line Аи-92-К-5 [16:33:55]line 10.000 * 65.22 [16:33:55]line = 652.20 [16:33:55]line НДС 12% НСП 1% [16:33:55]line > о реализуемом товаре [16:33:55]line ИТОГО: 652.20 [16:33:55]line НСП 1% : 5.77 [16:33:55]line НДС 12% : 69.26 [16:33:55]line Наличными: 0.00 [16:33:55]line Безнал.: 652.20 [16:33:55]line Место: АЗС № 72 "Партнер Нефть" [16:33:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:33:55]line СНО: Общий режим [16:33:55]line Чек 218 12.07.2024 16:33 [16:33:55]line Смена: 445 ФФД: 1.0 [16:33:55]line ЗНМ: 0300000160 [16:33:55]line РНМ: 0000000000090829 [16:33:55]line Версия ККМ: 001 [16:33:55]line Платежная система: KICB Банк [16:33:55]line ФМ: 0000000000874718 [16:33:55]line ФД: 164297 [16:33:55]line ФПД: 79309401101543 [16:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163355&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164297&fm=79309401101543&tin=02508201610067®Number=0000000000090829&sum=65220 [16:33:55]written 0, free lines is 4095 [16:33:55]OFD Sender: Processing packet 164297 [packets to send 104, broken 103] [16:33:55]ProducePacketName [16:33:55]name=ofd_packets/00164297 [16:33:55]OFD Sender: To server: pG, [16:33:55]CommunicateWithHost lk.salyk.kg:30040 [16:33:55]ConnectInit lk.salyk.kg [16:33:55]Connected sock=10 [16:33:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E9 FD 07 01 78 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 F3 5A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 81 02 00 35 04 06 00 48 21 A8 AE 14 E7 CA 74 FA 5F 16 13 9C E7 [16:33:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AE 25 47 00 84 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 34 37 31 38 10 04 04 00 C9 81 02 00 F4 03 04 00 87 01 91 66 B6 04 01 00 00 37 F8 E2 BB CE 39 C7 48 [16:33:55]CommunicateWithHost err = 0 [16:33:55]CheckOFDResponse [16:33:55]1017 (14) - 77093643461234 [16:33:55]1041 (16) - 0000000000874718 [16:33:55]1040 (4) - 164297 [16:33:55]1012 (4) - 12.07.2024 10:12 [16:33:55]1206 (1) - 0 [16:33:55]OFD Sender: Remove packet 164297 [16:33:55]ProducePacketName [16:33:55]name=ofd_packets/00164297 [16:33:55]NVStorageDeleteData [16:33:55]Write to MH i2c: 01 00 00 E0 33 13 [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 07 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 07 00 E0 33 00 00 00 00 00 1C 0D 43 [16:33:55]RasterBufferAndPrint [16:33:55]line [16:33:55]line [16:33:55]line [16:33:55]line [16:33:55]line [16:33:55]written 0, free lines is 3362 [16:33:55]MH_Cut [16:33:55]Write to MH i2c: D1 01 00 E7 33 01 EC [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: D1 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: D1 01 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: D1 01 00 E7 33 00 EB [16:33:55]Write to MH i2c: 01 00 00 E8 33 1B [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:56]OFD Sender: No OFD packet to send [16:33:56]*** Cut start [16:33:56]*** Partial cut [16:33:56]*** CUTSNS_PIN = 1 [16:33:56]*** CUTSNS_PIN = 0 [16:33:56]*** Brake cut motor [16:33:57]Read from MH i2c: 01 [16:33:57]MH_I2C_Read... [16:33:57]*** Stop cut motor [16:33:57]*** Cut end [16:33:57]Read from MH i2c: 01 07 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 07 00 E8 33 00 00 00 00 00 FF 0F 30 [16:33:57]process_action close_receipt done [16:33:57]requested_data is exist [16:33:57]produce_requested_data [16:33:57]requested_item fm.sn is exist - process it [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 11 00 00 [16:33:57]Write to MH i2c: E2 08 00 E9 33 80 11 00 00 00 00 00 00 96 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 17 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 17 00 E9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [16:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:33:57]wFMCommunicate OK [16:33:57]requested_item fd.num is exist - process it [16:33:57]SAM_PROTO_GetFieldsCounters [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 13 00 00 [16:33:57]Write to MH i2c: E2 08 00 EA 33 80 13 00 00 00 00 00 00 99 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 62 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 62 00 EA 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [16:33: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:57]wFMCommunicate OK [16:33:57]SAM_PROTO_GetFieldsCounters done [16:33:57]requested_item shift.num is exist - process it [16:33:57]requested_item shift.opened is exist - process it [16:33:57]req_shift_opened [16:33:57]FM_GetShiftState [16:33:57]SAM_PROTO_GetShiftState [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 13 01 00 [16:33:57]Write to MH i2c: E2 08 00 EB 33 80 13 01 00 00 00 00 00 9B [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 0E 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 0E 00 EB 33 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E5 [16:33:57]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:33:57]wFMCommunicate OK [16:33:57]SAM_PROTO_GetShiftState done [16:33:57]FM_GetShiftState done [16:33:57]req_shift_opened done [16:33:57]requested_item shift.open_date is exist - process it [16:33:57]req_shift_open_date [16:33:57]req_shift_open_date done [16:33:57]produce_requested_data done [16:33:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164297,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:33:57]process_action_free close_receipt [16:33:57]json_value_free [16:33:57]json_value_free done [16:33:57]process_json_proto returns [16:33:57]Send response to host [16:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164297,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:33:57]free response buf [16:33:57]execute_script done [16:33:57]execute_script returns [16:33:57]free content buf [16:33:57]Sock 9.Close socket [16:33:57]Sock 9.Thread stoped [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:43]accept exits with 7 [16:34:43]New connection [16:34:43]New thread 3066707300 created [16:34:43]Thread 3066850660 joined [16:34:43]Waiting for new connection... [16:34:43] Sock 7.Parse request [16:34:43]Sock 7.Check first char [16:34:43]Sock 7.First char is OK [16:34:43]request: POST /json_proto HTTP/1.0 [16:34:43]Method: POST [16:34:43]URL: /json_proto [16:34:43]Method is POST - this is cgi request [16:34:43]url: /json_proto [16:34:43]query_string will be loaded in cgi processing [16:34:43]execute_cgi json_proto POST (null) [16:34:43]execute_cgi path=json_proto method=POST [16:34:43]POST find Content-Length [16:34:43]Host: 172.17.56.4:8080 [16:34:43]Content-Length: 679 [16:34:43]Content-Type: application/json [16:34:43] [16:34:43]POST finish read [16:34:43]Found Content-Length = 679 [16:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]execute_script... [16:34: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)458380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]POST & json_proto [16:34:43]process_json_proto [16:34:43]json parsed OK: [16:34:43]protocol is kg_v1.0 [16:34:43]action value=close_receipt [16:34:43]process_action close_receipt [16:34:43]cmd_close_receipt [16:34:43]MH_GetDate [16:34:43]Write to MH i2c: F0 00 00 EC 33 0E [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 EC 33 00 26 5B 91 66 C9 DC B2 64 4A [16:34:43]GetLastDocTimeStamp 1720802035 [16:34:43]current date 1720802086 [16:34:43]FM_GetShiftState [16:34:43]SAM_PROTO_GetShiftState [16:34:43]wFMCommunicate request_size=4 [16:34:43]MH_SAM_APDU [16:34:43]CAPDU: 80 13 01 00 [16:34:43]Write to MH i2c: E2 08 00 ED 33 80 13 01 00 00 00 00 00 9D [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:43]Read from MH i2c: E2 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 ED 33 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E7 [16:34:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:34:43]wFMCommunicate OK [16:34:43]SAM_PROTO_GetShiftState done [16:34:43]FM_GetShiftState done [16:34:43]opened in 1720744654 [16:34:43]opened+sec_in_day 1720831054 [16:34:43]quantity*price = 500064 [16:34:43]sum+1 = 500066 [16:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 219 12.07.2024 16:34 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164298 ФПД: 23225017923235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163446&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164298&fm=23225017923235&tin=02508201610067®Number=0000000000090829&sum=500000 [16:34:45]StoreToDocumentArchive [16:34:45]shift 445 fd 164298 [16:34:45]save to /storage/0445/doc_00164298 [16:34:45]save last doc name /storage/0445/doc_00164298 to /storage/kkm_last_doc_name [16:34:45]save OK [16:34:45]Clear old archive folders... [16:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:34:45]tlvbuf is B6F3F730 [16:34:45]SAM_PROTO_ClearQueue [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 09 00 00 [16:34:45]Write to MH i2c: E2 08 00 FA 33 80 09 00 00 00 00 00 00 9F [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 FA 33 00 90 00 A1 [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]SAM_PROTO_ClearQueue done [16:34:45]KKMCreateOFDPacket [16:34:45]OFDProtocolAddRootSTLVToBuf [16:34:45]FM_MakeSignedData [16:34:45]FM_MakeSignedData [16:34:45]SAM_PROTO_SignData [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 0D 01 02 [16:34:45]Write to MH i2c: E2 08 00 FB 33 80 0D 01 02 00 00 00 00 A7 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 FB 33 00 90 00 A2 [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]wFMCommunicate request_size=255 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 26 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 81 02 00 35 04 06 00 15 1F 7E F1 [16:34:45]Write to MH i2c: E2 02 01 FC 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 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 26 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 81 02 00 35 04 06 00 15 1F 7E F1 00 00 2D [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 FC 33 00 90 00 A3 [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]wFMCommunicate request_size=7 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 0D 02 02 02 76 A3 [16:34:45]Write to MH i2c: E2 0A 00 FD 33 80 0D 02 02 02 00 76 A3 00 00 C7 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 03 00 FD 33 00 90 00 A4 [16:34:45]RAPDU: 90 00 [16:34:45]wFMCommunicate OK [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 0D 03 02 [16:34:45]Write to MH i2c: E2 08 00 FE 33 80 0D 03 02 00 00 00 00 AC [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 0B 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 0B 00 FE 33 00 66 8F E7 65 DB 72 6D 78 90 00 20 [16:34:45]RAPDU: 66 8F E7 65 DB 72 6D 78 90 00 [16:34:45]wFMCommunicate OK [16:34:45]SAM_PROTO_SignData done [16:34:45]FM_MakeSignedData done [16:34:45]CreateOFDProtocolMessage [16:34:45]wFMCommunicate request_size=4 [16:34:45]MH_SAM_APDU [16:34:45]CAPDU: 80 11 00 00 [16:34:45]Write to MH i2c: E2 08 00 FF 33 80 11 00 00 00 00 00 00 AC [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:45]Read from MH i2c: E2 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 17 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: E2 17 00 FF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [16:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:34:45]wFMCommunicate OK [16:34:45]CreateOFDProtocolMessage done [16:34:45]OFDSenderStorePacket 164298 [16:34:45]StoreOFDPacket docnum=164298 [16:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 67 38 04 01 92 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 26 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 81 02 00 35 04 06 00 15 1F 7E F1 76 A3 66 8F E7 65 DB 72 6D 78 [16:34:45]CheckFolder [16:34:45]dirname=/storage/ofd_packets [16:34:45]CheckFolder done [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00164298 [16:34:45]NVStorageSaveData ofd_packets/00164298 [16:34:45]File name is /storage/ofd_packets/00164298 [16:34:45]Write 298 bytes [16:34:45]NVStorageSaveData done [16:34:45]OFDSenderStorePacket done [16:34:45]KKMCreateOFDPacket done [16:34:45]NVStorageSaveData kkm_last_timestamp [16:34:45]File name is /storage/kkm_last_timestamp [16:34:45]Write 4 bytes [16:34:45]NVStorageSaveData done [16:34:45]ExternCall_PrintAddStr [16:34:45]wPrintStart [16:34:45]Write to MH i2c: 01 00 00 00 34 34 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 00 34 00 00 00 00 00 FF 0F 49 [16:34:45]RasterBufferAndPrint [16:34:45]line Счет N : (1)458380 [16:34:45]line ИНН: 02508201610067 [16:34:45]line Контрольно-Кассовый Чек [16:34:45]line ПРОДАЖА [16:34:45]line ТРК (МРК, ГНК) : 11 [16:34:45]line Товар: 2710194210 [16:34:45]line ДТ-К-5 [16:34:45]line 69.550 * 71.90 [16:34:45]line = 5000.65 [16:34:45]line НДС 12% НСП 1% [16:34:45]line > о реализуемом товаре [16:34:45]line ОКРУГЛЕНИЕ: -0.65 [16:34:45]line ИТОГО: 5000.00 [16:34:45]line Внесено: 5000.00 [16:34:45]line СДАЧА: 0.00 [16:34:45]line НСП 1% : 44.25 [16:34:45]line НДС 12% : 531.04 [16:34:45]line Наличными: 5000.00 [16:34:45]line Безнал.: 0.00 [16:34:45]line Место: АЗС № 72 "Партнер Нефть" [16:34:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:34:45]line СНО: Общий режим [16:34:45]line Чек 219 12.07.2024 16:34 [16:34:45]line Смена: 445 ФФД: 1.0 [16:34:45]line ЗНМ: 0300000160 [16:34:45]line РНМ: 0000000000090829 [16:34:45]line Версия ККМ: 001 [16:34:45]line ФМ: 0000000000874718 [16:34:45]line ФД: 164298 [16:34:45]line ФПД: 23225017923235 [16:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163446&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164298&fm=23225017923235&tin=02508201610067®Number=0000000000090829&sum=500000 [16:34:45]OFD Sender: Processing packet 164298 [packets to send 104, broken 103] [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00164298 [16:34:45]OFD Sender: To server: pG, [16:34:45]CommunicateWithHost lk.salyk.kg:30040 [16:34:45]ConnectInit lk.salyk.kg [16:34:45]written 0, free lines is 4095 [16:34:45]Connected sock=10 [16:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 67 38 04 01 92 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 26 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 81 02 00 35 04 06 00 15 1F 7E F1 76 A3 66 8F E7 65 DB 72 6D 78 [16:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0F FF 47 00 00 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 34 37 31 38 10 04 04 00 CA 81 02 00 F4 03 04 00 B9 01 91 66 B6 04 01 00 00 CF 49 F8 2D 7B 7A 6E 69 [16:34:46]CommunicateWithHost err = 0 [16:34:46]CheckOFDResponse [16:34:46]1017 (14) - 77093643461234 [16:34:46]1041 (16) - 0000000000874718 [16:34:46]1040 (4) - 164298 [16:34:46]1012 (4) - 12.07.2024 10:13 [16:34:46]1206 (1) - 0 [16:34:46]OFD Sender: Remove packet 164298 [16:34:46]ProducePacketName [16:34:46]name=ofd_packets/00164298 [16:34:46]NVStorageDeleteData [16:34:46]Write to MH i2c: 01 00 00 2A 34 5E [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 07 00 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: 01 07 00 2A 34 00 00 00 00 00 02 0D 74 [16:34:46]RasterBufferAndPrint [16:34:46]line [16:34:46]line [16:34:46]line [16:34:46]line [16:34:46]line [16:34:46]written 0, free lines is 3336 [16:34:46]MH_Cut [16:34:46]Write to MH i2c: D1 01 00 31 34 01 37 [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: D1 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: D1 01 00 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: D1 01 00 31 34 00 36 [16:34:46]Write to MH i2c: 01 00 00 32 34 66 [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]OFD Sender: No OFD packet to send [16:34:46]*** Cut start [16:34:46]*** Partial cut [16:34:46]*** CUTSNS_PIN = 1 [16:34:47]*** CUTSNS_PIN = 0 [16:34:47]*** Brake cut motor [16:34:47]Read from MH i2c: 01 [16:34:47]MH_I2C_Read... [16:34:47]*** Stop cut motor [16:34:47]*** Cut end [16:34:47]Read from MH i2c: 01 07 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: 01 07 00 32 34 00 00 00 00 00 FF 0F 7B [16:34:47]process_action close_receipt done [16:34:47]requested_data is exist [16:34:47]produce_requested_data [16:34:47]requested_item fm.sn is exist - process it [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 11 00 00 [16:34:47]Write to MH i2c: E2 08 00 33 34 80 11 00 00 00 00 00 00 E1 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 33 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [16:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:34:47]wFMCommunicate OK [16:34:47]requested_item fd.num is exist - process it [16:34:47]SAM_PROTO_GetFieldsCounters [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 00 00 [16:34:47]Write to MH i2c: E2 08 00 34 34 80 13 00 00 00 00 00 00 E4 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 34 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [16:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetFieldsCounters done [16:34:47]requested_item shift.num is exist - process it [16:34:47]requested_item shift.opened is exist - process it [16:34:47]req_shift_opened [16:34:47]FM_GetShiftState [16:34:47]SAM_PROTO_GetShiftState [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 01 00 [16:34:47]Write to MH i2c: E2 08 00 35 34 80 13 01 00 00 00 00 00 E6 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 35 34 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 30 [16:34:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetShiftState done [16:34:47]FM_GetShiftState done [16:34:47]req_shift_opened done [16:34:47]requested_item shift.open_date is exist - process it [16:34:47]req_shift_open_date [16:34:47]req_shift_open_date done [16:34:47]produce_requested_data done [16:34:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164298,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:34:47]process_action_free close_receipt [16:34:47]json_value_free [16:34:47]json_value_free done [16:34:47]process_json_proto returns [16:34:47]Send response to host [16:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164298,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:34:47]free response buf [16:34:47]execute_script done [16:34:47]execute_script returns [16:34:47]free content buf [16:34:47]Sock 7.Close socket [16:34:47]Sock 7.Thread stoped [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:28]accept exits with 9 [16:35:28]New connection [16:35:28]New thread 3066850660 created [16:35:28]Thread 3066707300 joined [16:35:28]Waiting for new connection... [16:35:28] Sock 9.Parse request [16:35:28]Sock 9.Check first char [16:35:28]Sock 9.First char is OK [16:35:28]request: POST /json_proto HTTP/1.0 [16:35:28]Method: POST [16:35:28]URL: /json_proto [16:35:28]Method is POST - this is cgi request [16:35:28]url: /json_proto [16:35:28]query_string will be loaded in cgi processing [16:35:28]execute_cgi json_proto POST (null) [16:35:28]execute_cgi path=json_proto method=POST [16:35:28]POST find Content-Length [16:35:28]Host: 172.17.56.4:8080 [16:35:28]Content-Length: 677 [16:35:28]Content-Type: application/json [16:35:28] [16:35:28]POST finish read [16:35:28]Found Content-Length = 677 [16:35:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:28]execute_script... [16:35: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)458382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:28]POST & json_proto [16:35:28]process_json_proto [16:35:28]json parsed OK: [16:35:28]protocol is kg_v1.0 [16:35:28]action value=close_receipt [16:35:28]process_action close_receipt [16:35:28]cmd_close_receipt [16:35:28]MH_GetDate [16:35:28]Write to MH i2c: F0 00 00 36 34 59 [16:35:28]Write i2c OK [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: F0 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: F0 09 00 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: F0 09 00 36 34 00 52 5B 91 66 C9 DC B2 64 C1 [16:35:28]GetLastDocTimeStamp 1720802086 [16:35:28]current date 1720802130 [16:35:28]FM_GetShiftState [16:35:28]SAM_PROTO_GetShiftState [16:35:28]wFMCommunicate request_size=4 [16:35:28]MH_SAM_APDU [16:35:28]CAPDU: 80 13 01 00 [16:35:28]Write to MH i2c: E2 08 00 37 34 80 13 01 00 00 00 00 00 E8 [16:35:28]Write i2c OK [16:35:28]MH_I2C_Read... [16:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:28]Read from MH i2c: E2 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: E2 0E 00 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: E2 0E 00 37 34 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 32 [16:35:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:35:28]wFMCommunicate OK [16:35:28]SAM_PROTO_GetShiftState done [16:35:28]FM_GetShiftState done [16:35:28]opened in 1720744654 [16:35:28]opened+sec_in_day 1720831054 [16:35:28]quantity*price = 60009 [16:35:28]sum+1 = 60011 [16:35:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 220 12.07.2024 16:35 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164299 ФПД: 192446759031505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163530&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164299&fm=192446759031505&tin=02508201610067®Number=0000000000090829&sum=60000 [16:35:29]StoreToDocumentArchive [16:35:29]shift 445 fd 164299 [16:35:29]save to /storage/0445/doc_00164299 [16:35:29]save last doc name /storage/0445/doc_00164299 to /storage/kkm_last_doc_name [16:35:29]save OK [16:35:29]Clear old archive folders... [16:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:29]tlvbuf is 00A172E0 [16:35:29]SAM_PROTO_ClearQueue [16:35:29]wFMCommunicate request_size=4 [16:35:29]MH_SAM_APDU [16:35:29]CAPDU: 80 09 00 00 [16:35:29]Write to MH i2c: E2 08 00 44 34 80 09 00 00 00 00 00 00 EA [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:29]Read from MH i2c: E2 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 03 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 03 00 44 34 00 90 00 EC [16:35:29]RAPDU: 90 00 [16:35:29]wFMCommunicate OK [16:35:29]SAM_PROTO_ClearQueue done [16:35:29]KKMCreateOFDPacket [16:35:29]OFDProtocolAddRootSTLVToBuf [16:35:29]FM_MakeSignedData [16:35:29]FM_MakeSignedData [16:35:29]SAM_PROTO_SignData [16:35:29]wFMCommunicate request_size=4 [16:35:29]MH_SAM_APDU [16:35:29]CAPDU: 80 0D 01 02 [16:35:29]Write to MH i2c: E2 08 00 45 34 80 0D 01 02 00 00 00 00 F2 [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:29]Read from MH i2c: E2 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 03 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 03 00 45 34 00 90 00 ED [16:35:29]RAPDU: 90 00 [16:35:29]wFMCommunicate OK [16:35:29]wFMCommunicate request_size=255 [16:35:29]MH_SAM_APDU [16:35: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DC 00 00 00 F4 03 04 00 52 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 81 02 00 35 04 06 00 AF [16:35:29]Write to MH i2c: E2 02 01 46 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DC 00 00 00 F4 03 04 00 52 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 81 02 00 35 04 06 00 AF 00 00 C7 [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:30]Read from MH i2c: E2 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 03 00 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 03 00 46 34 00 90 00 EE [16:35:30]RAPDU: 90 00 [16:35:30]wFMCommunicate OK [16:35:30]wFMCommunicate request_size=10 [16:35:30]MH_SAM_APDU [16:35:30]CAPDU: 80 0D 02 02 05 07 80 B5 D2 D1 [16:35:30]Write to MH i2c: E2 0D 00 47 34 80 0D 02 02 05 00 07 80 B5 D2 D1 00 00 DE [16:35:30]Write i2c OK [16:35:30]MH_I2C_Read... [16:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:30]Read from MH i2c: E2 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 03 00 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 03 00 47 34 00 90 00 EF [16:35:30]RAPDU: 90 00 [16:35:30]wFMCommunicate OK [16:35:30]wFMCommunicate request_size=4 [16:35:30]MH_SAM_APDU [16:35:30]CAPDU: 80 0D 03 02 [16:35:30]Write to MH i2c: E2 08 00 48 34 80 0D 03 02 00 00 00 00 F7 [16:35:30]Write i2c OK [16:35:30]MH_I2C_Read... [16:35:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:30]Read from MH i2c: E2 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 0B 00 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 0B 00 48 34 00 30 57 49 5A 57 5A C8 D5 90 00 70 [16:35:30]RAPDU: 30 57 49 5A 57 5A C8 D5 90 00 [16:35:30]wFMCommunicate OK [16:35:30]SAM_PROTO_SignData done [16:35:30]FM_MakeSignedData done [16:35:30]CreateOFDProtocolMessage [16:35:30]wFMCommunicate request_size=4 [16:35:30]MH_SAM_APDU [16:35:30]CAPDU: 80 11 00 00 [16:35:30]Write to MH i2c: E2 08 00 49 34 80 11 00 00 00 00 00 00 F7 [16:35:30]Write i2c OK [16:35:30]MH_I2C_Read... [16:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:30]Read from MH i2c: E2 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 17 00 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 17 00 49 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [16:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:35:30]wFMCommunicate OK [16:35:30]CreateOFDProtocolMessage done [16:35:30]OFDSenderStorePacket 164299 [16:35:30]StoreOFDPacket docnum=164299 [16:35:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 64 07 01 1C 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DC 00 00 00 F4 03 04 00 52 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 81 02 00 35 04 06 00 AF 07 80 B5 D2 D1 30 57 49 5A 57 5A C8 D5 [16:35:30]CheckFolder [16:35:30]dirname=/storage/ofd_packets [16:35:30]CheckFolder done [16:35:30]ProducePacketName [16:35:30]name=ofd_packets/00164299 [16:35:30]NVStorageSaveData ofd_packets/00164299 [16:35:30]File name is /storage/ofd_packets/00164299 [16:35:30]Write 301 bytes [16:35:30]NVStorageSaveData done [16:35:30]OFDSenderStorePacket done [16:35:30]KKMCreateOFDPacket done [16:35:30]NVStorageSaveData kkm_last_timestamp [16:35:30]File name is /storage/kkm_last_timestamp [16:35:30]Write 4 bytes [16:35:30]NVStorageSaveData done [16:35:30]ExternCall_PrintAddStr [16:35:30]wPrintStart [16:35:30]Write to MH i2c: 01 00 00 4A 34 7E [16:35:30]OFD Sender: Processing packet 164299 [packets to send 104, broken 103] [16:35:30]ProducePacketName [16:35:30]name=ofd_packets/00164299 [16:35:30]OFD Sender: To server: pG, [16:35:30]CommunicateWithHost lk.salyk.kg:30040 [16:35:30]ConnectInit lk.salyk.kg [16:35:30]Write i2c OK [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: 01 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: 01 07 00 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: 01 07 00 4A 34 00 00 00 00 00 FF 0F 93 [16:35:30]RasterBufferAndPrint [16:35:30]line Счет N : (1)458382 [16:35:30]line ИНН: 02508201610067 [16:35:30]line Контрольно-Кассовый Чек [16:35:30]line ПРОДАЖА [16:35:30]line ТРК (МРК, ГНК) : 12 [16:35:30]line Товар: 2710124130 [16:35:30]line Аи-92-К-5 [16:35:30]line 9.120 * 65.80 [16:35:30]line = 600.10 [16:35:30]line НДС 12% НСП 1% [16:35:30]line > о реализуемом товаре [16:35:30]line ОКРУГЛЕНИЕ: -0.10 [16:35:30]line ИТОГО: 600.00 [16:35:30]line Внесено: 600.00 [16:35:30]line СДАЧА: 0.00 [16:35:30]line НСП 1% : 5.31 [16:35:30]line НДС 12% : 63.73 [16:35:30]line Наличными: 600.00 [16:35:30]line Безнал.: 0.00 [16:35:30]line Место: АЗС № 72 "Партнер Нефть" [16:35:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:35:30]line СНО: Общий режим [16:35:30]line Чек 220 12.07.2024 16:35 [16:35:30]line Смена: 445 ФФД: 1.0 [16:35:30]line ЗНМ: 0300000160 [16:35:30]line РНМ: 0000000000090829 [16:35:30]line Версия ККМ: 001 [16:35:30]line ФМ: 0000000000874718 [16:35:30]line ФД: 164299 [16:35:30]line ФПД: 192446759031505 [16:35:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163530&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164299&fm=192446759031505&tin=02508201610067®Number=0000000000090829&sum=60000 [16:35:30]Connected sock=10 [16:35:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 64 07 01 1C 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DC 00 00 00 F4 03 04 00 52 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 81 02 00 35 04 06 00 AF 07 80 B5 D2 D1 30 57 49 5A 57 5A C8 D5 [16:35:30]written 0, free lines is 4095 [16:35:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 53 0F 47 00 CB 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 34 37 31 38 10 04 04 00 CB 81 02 00 F4 03 04 00 E6 01 91 66 B6 04 01 00 00 F7 E9 85 65 28 AC E3 2D [16:35:30]CommunicateWithHost err = 0 [16:35:30]CheckOFDResponse [16:35:30]1017 (14) - 77093643461234 [16:35:30]1041 (16) - 0000000000874718 [16:35:30]1040 (4) - 164299 [16:35:30]1012 (4) - 12.07.2024 10:13 [16:35:30]1206 (1) - 0 [16:35:30]OFD Sender: Remove packet 164299 [16:35:30]ProducePacketName [16:35:30]name=ofd_packets/00164299 [16:35:30]NVStorageDeleteData [16:35:31]Write to MH i2c: 01 00 00 74 34 A8 [16:35:31]Write i2c OK [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: 01 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: 01 07 00 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: 01 07 00 74 34 00 00 00 00 00 06 0D C2 [16:35:31]RasterBufferAndPrint [16:35:31]line [16:35:31]line [16:35:31]line [16:35:31]line [16:35:31]line [16:35:31]written 0, free lines is 3340 [16:35:31]MH_Cut [16:35:31]Write to MH i2c: D1 01 00 7B 34 01 81 [16:35:31]Write i2c OK [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: D1 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: D1 01 00 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: D1 01 00 7B 34 00 80 [16:35:31]Write to MH i2c: 01 00 00 7C 34 B0 [16:35:31]Write i2c OK [16:35:31]MH_I2C_Read... [16:35:31]OFD Sender: No OFD packet to send [16:35:31]*** Cut start [16:35:31]*** Partial cut [16:35:31]*** CUTSNS_PIN = 1 [16:35:31]*** CUTSNS_PIN = 0 [16:35:32]*** Brake cut motor [16:35:32]Read from MH i2c: 01 [16:35:32]MH_I2C_Read... [16:35:32]*** Stop cut motor [16:35:32]*** Cut end [16:35:32]Read from MH i2c: 01 07 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: 01 07 00 7C 34 00 00 00 00 00 FF 0F C5 [16:35:32]process_action close_receipt done [16:35:32]requested_data is exist [16:35:32]produce_requested_data [16:35:32]requested_item fm.sn is exist - process it [16:35:32]wFMCommunicate request_size=4 [16:35:32]MH_SAM_APDU [16:35:32]CAPDU: 80 11 00 00 [16:35:32]Write to MH i2c: E2 08 00 7D 34 80 11 00 00 00 00 00 00 2B [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 17 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 17 00 7D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [16:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:35:32]wFMCommunicate OK [16:35:32]requested_item fd.num is exist - process it [16:35:32]SAM_PROTO_GetFieldsCounters [16:35:32]wFMCommunicate request_size=4 [16:35:32]MH_SAM_APDU [16:35:32]CAPDU: 80 13 00 00 [16:35:32]Write to MH i2c: E2 08 00 7E 34 80 13 00 00 00 00 00 00 2E [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 62 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 62 00 7E 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16:35: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:32]wFMCommunicate OK [16:35:32]SAM_PROTO_GetFieldsCounters done [16:35:32]requested_item shift.num is exist - process it [16:35:32]requested_item shift.opened is exist - process it [16:35:32]req_shift_opened [16:35:32]FM_GetShiftState [16:35:32]SAM_PROTO_GetShiftState [16:35:32]wFMCommunicate request_size=4 [16:35:32]MH_SAM_APDU [16:35:32]CAPDU: 80 13 01 00 [16:35:32]Write to MH i2c: E2 08 00 7F 34 80 13 01 00 00 00 00 00 30 [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 0E 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 0E 00 7F 34 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7A [16:35:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:35:32]wFMCommunicate OK [16:35:32]SAM_PROTO_GetShiftState done [16:35:32]FM_GetShiftState done [16:35:32]req_shift_opened done [16:35:32]requested_item shift.open_date is exist - process it [16:35:32]req_shift_open_date [16:35:32]req_shift_open_date done [16:35:32]produce_requested_data done [16:35:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164299,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:35:32]process_action_free close_receipt [16:35:32]json_value_free [16:35:32]json_value_free done [16:35:32]process_json_proto returns [16:35:32]Send response to host [16:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164299,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:35:32]free response buf [16:35:32]execute_script done [16:35:32]execute_script returns [16:35:32]free content buf [16:35:32]Sock 9.Close socket [16:35:32]Sock 9.Thread stoped [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:02]accept exits with 7 [16:36:02]New connection [16:36:02]New thread 3066707300 created [16:36:02]Thread 3066850660 joined [16:36:02]Waiting for new connection... [16:36:02] Sock 7.Parse request [16:36:02]Sock 7.Check first char [16:36:02]Sock 7.First char is OK [16:36:02]request: POST /json_proto HTTP/1.0 [16:36:02]Method: POST [16:36:02]URL: /json_proto [16:36:02]Method is POST - this is cgi request [16:36:02]url: /json_proto [16:36:02]query_string will be loaded in cgi processing [16:36:02]execute_cgi json_proto POST (null) [16:36:02]execute_cgi path=json_proto method=POST [16:36:02]POST find Content-Length [16:36:02]Host: 172.17.56.4:8080 [16:36:02]Content-Length: 679 [16:36:02]Content-Type: application/json [16:36:02] [16:36:02]POST finish read [16:36:02]Found Content-Length = 679 [16:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458383", "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" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:02]execute_script... [16:36: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)458383", "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" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:02]POST & json_proto [16:36:02]process_json_proto [16:36:02]json parsed OK: [16:36:02]protocol is kg_v1.0 [16:36:02]action value=close_receipt [16:36:02]process_action close_receipt [16:36:02]cmd_close_receipt [16:36:02]MH_GetDate [16:36:02]Write to MH i2c: F0 00 00 80 34 A3 [16:36:02]Write i2c OK [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: F0 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: F0 09 00 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: F0 09 00 80 34 00 74 5B 91 66 C9 DC B2 64 2D [16:36:02]GetLastDocTimeStamp 1720802130 [16:36:02]current date 1720802164 [16:36:02]FM_GetShiftState [16:36:02]SAM_PROTO_GetShiftState [16:36:02]wFMCommunicate request_size=4 [16:36:02]MH_SAM_APDU [16:36:02]CAPDU: 80 13 01 00 [16:36:02]Write to MH i2c: E2 08 00 81 34 80 13 01 00 00 00 00 00 32 [16:36:02]Write i2c OK [16:36:02]MH_I2C_Read... [16:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:02]Read from MH i2c: E2 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: E2 0E 00 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: E2 0E 00 81 34 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7C [16:36:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:36:02]wFMCommunicate OK [16:36:02]SAM_PROTO_GetShiftState done [16:36:02]FM_GetShiftState done [16:36:02]opened in 1720744654 [16:36:02]opened+sec_in_day 1720831054 [16:36:02]quantity*price = 100012 [16:36:02]sum+1 = 100014 [16:36:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 221 12.07.2024 16:36 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164300 ФПД: 67854673198285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163604&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164300&fm=67854673198285&tin=02508201610067®Number=0000000000090829&sum=100000 [16:36:03]StoreToDocumentArchive [16:36:03]shift 445 fd 164300 [16:36:03]save to /storage/0445/doc_00164300 [16:36:03]save last doc name /storage/0445/doc_00164300 to /storage/kkm_last_doc_name [16:36:03]save OK [16:36:03]Clear old archive folders... [16:36:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:36:03]tlvbuf is 00A8A3F0 [16:36:03]SAM_PROTO_ClearQueue [16:36:03]wFMCommunicate request_size=4 [16:36:03]MH_SAM_APDU [16:36:03]CAPDU: 80 09 00 00 [16:36:03]Write to MH i2c: E2 08 00 8E 34 80 09 00 00 00 00 00 00 34 [16:36:03]Write i2c OK [16:36:03]MH_I2C_Read... [16:36:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:03]Read from MH i2c: E2 [16:36:03]MH_I2C_Read... [16:36:03]Read from MH i2c: E2 03 00 [16:36:03]MH_I2C_Read... [16:36:03]Read from MH i2c: E2 03 00 8E 34 00 90 00 36 [16:36:03]RAPDU: 90 00 [16:36:03]wFMCommunicate OK [16:36:03]SAM_PROTO_ClearQueue done [16:36:03]KKMCreateOFDPacket [16:36:03]OFDProtocolAddRootSTLVToBuf [16:36:03]FM_MakeSignedData [16:36:03]FM_MakeSignedData [16:36:03]SAM_PROTO_SignData [16:36:03]wFMCommunicate request_size=4 [16:36:03]MH_SAM_APDU [16:36:03]CAPDU: 80 0D 01 02 [16:36:03]Write to MH i2c: E2 08 00 8F 34 80 0D 01 02 00 00 00 00 3C [16:36:03]Write i2c OK [16:36:03]MH_I2C_Read... [16:36:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:03]Read from MH i2c: E2 [16:36:03]MH_I2C_Read... [16:36:03]Read from MH i2c: E2 03 00 [16:36:03]MH_I2C_Read... [16:36:03]Read from MH i2c: E2 03 00 8F 34 00 90 00 37 [16:36:03]RAPDU: 90 00 [16:36:03]wFMCommunicate OK [16:36:03]wFMCommunicate request_size=255 [16:36:03]MH_SAM_APDU [16:36: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 74 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 81 02 00 35 04 06 00 3D B6 A5 B1 [16:36:03]Write to MH i2c: E2 02 01 90 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 74 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 81 02 00 35 04 06 00 3D B6 A5 B1 00 00 F6 [16:36:03]Write i2c OK [16:36:03]MH_I2C_Read... [16:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:04]Read from MH i2c: E2 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 03 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 03 00 90 34 00 90 00 38 [16:36:04]RAPDU: 90 00 [16:36:04]wFMCommunicate OK [16:36:04]wFMCommunicate request_size=7 [16:36:04]MH_SAM_APDU [16:36:04]CAPDU: 80 0D 02 02 02 3C CD [16:36:04]Write to MH i2c: E2 0A 00 91 34 80 0D 02 02 02 00 3C CD 00 00 4C [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:04]Read from MH i2c: E2 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 03 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 03 00 91 34 00 90 00 39 [16:36:04]RAPDU: 90 00 [16:36:04]wFMCommunicate OK [16:36:04]wFMCommunicate request_size=4 [16:36:04]MH_SAM_APDU [16:36:04]CAPDU: 80 0D 03 02 [16:36:04]Write to MH i2c: E2 08 00 92 34 80 0D 03 02 00 00 00 00 41 [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:04]Read from MH i2c: E2 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 0B 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 0B 00 92 34 00 B4 39 4C A1 02 A2 AE F2 90 00 60 [16:36:04]RAPDU: B4 39 4C A1 02 A2 AE F2 90 00 [16:36:04]wFMCommunicate OK [16:36:04]SAM_PROTO_SignData done [16:36:04]FM_MakeSignedData done [16:36:04]CreateOFDProtocolMessage [16:36:04]wFMCommunicate request_size=4 [16:36:04]MH_SAM_APDU [16:36:04]CAPDU: 80 11 00 00 [16:36:04]Write to MH i2c: E2 08 00 93 34 80 11 00 00 00 00 00 00 41 [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:04]Read from MH i2c: E2 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 17 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 17 00 93 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [16:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:36:04]wFMCommunicate OK [16:36:04]CreateOFDProtocolMessage done [16:36:04]OFDSenderStorePacket 164300 [16:36:04]StoreOFDPacket docnum=164300 [16:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 13 E9 04 01 1F 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 74 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 81 02 00 35 04 06 00 3D B6 A5 B1 3C CD B4 39 4C A1 02 A2 AE F2 [16:36:04]CheckFolder [16:36:04]dirname=/storage/ofd_packets [16:36:04]CheckFolder done [16:36:04]ProducePacketName [16:36:04]name=ofd_packets/00164300 [16:36:04]NVStorageSaveData ofd_packets/00164300 [16:36:04]File name is /storage/ofd_packets/00164300 [16:36:04]Write 298 bytes [16:36:04]NVStorageSaveData done [16:36:04]OFDSenderStorePacket done [16:36:04]KKMCreateOFDPacket done [16:36:04]NVStorageSaveData kkm_last_timestamp [16:36:04]File name is /storage/kkm_last_timestamp [16:36:04]Write 4 bytes [16:36:04]NVStorageSaveData done [16:36:04]ExternCall_PrintAddStr [16:36:04]wPrintStart [16:36:04]Write to MH i2c: 01 00 00 94 34 C8 [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: 01 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: 01 07 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: 01 07 00 94 34 00 00 00 00 00 FF 0F DD [16:36:04]RasterBufferAndPrint [16:36:04]line Счет N : (1)458383 [16:36:04]line ИНН: 02508201610067 [16:36:04]line Контрольно-Кассовый Чек [16:36:04]line ПРОДАЖА [16:36:04]line ТРК (МРК, ГНК) : 21 [16:36:04]line Товар: 2710194210 [16:36:04]line ДТ-К-5 [16:36:04]line 13.910 * 71.90 [16:36:04]line = 1000.13 [16:36:04]line НДС 12% НСП 1% [16:36:04]line > о реализуемом товаре [16:36:04]line ОКРУГЛЕНИЕ: -0.13 [16:36:04]line ИТОГО: 1000.00 [16:36:04]line Внесено: 1000.00 [16:36:04]line СДАЧА: 0.00 [16:36:04]line НСП 1% : 8.85 [16:36:04]line НДС 12% : 106.21 [16:36:04]line Наличными: 1000.00 [16:36:04]line Безнал.: 0.00 [16:36:04]line Место: АЗС № 72 "Партнер Нефть" [16:36:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:36:04]line СНО: Общий режим [16:36:04]line Чек 221 12.07.2024 16:36 [16:36:04]line Смена: 445 ФФД: 1.0 [16:36:04]line ЗНМ: 0300000160 [16:36:04]line РНМ: 0000000000090829 [16:36:04]line Версия ККМ: 001 [16:36:04]line ФМ: 0000000000874718 [16:36:04]line ФД: 164300 [16:36:04]line ФПД: 67854673198285 [16:36:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163604&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164300&fm=67854673198285&tin=02508201610067®Number=0000000000090829&sum=100000 [16:36:04]written 0, free lines is 4095 [16:36:04]OFD Sender: Processing packet 164300 [packets to send 104, broken 103] [16:36:04]ProducePacketName [16:36:04]name=ofd_packets/00164300 [16:36:04]OFD Sender: To server: pG, [16:36:04]CommunicateWithHost lk.salyk.kg:30040 [16:36:04]ConnectInit lk.salyk.kg [16:36:04]Connected sock=9 [16:36:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 13 E9 04 01 1F 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 74 5B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 81 02 00 35 04 06 00 3D B6 A5 B1 3C CD B4 39 4C A1 02 A2 AE F2 [16:36:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 61 38 47 00 85 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 81 02 00 F4 03 04 00 08 02 91 66 B6 04 01 00 00 6A FD 32 9F 4B 1E B3 EA [16:36:04]CommunicateWithHost err = 0 [16:36:04]CheckOFDResponse [16:36:04]1017 (14) - 77093643461234 [16:36:04]1041 (16) - 0000000000874718 [16:36:04]1040 (4) - 164300 [16:36:04]1012 (4) - 12.07.2024 10:14 [16:36:04]1206 (1) - 0 [16:36:04]OFD Sender: Remove packet 164300 [16:36:04]ProducePacketName [16:36:04]name=ofd_packets/00164300 [16:36:04]NVStorageDeleteData [16:36:04]Write to MH i2c: 01 00 00 BE 34 F2 [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: 01 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: 01 07 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: 01 07 00 BE 34 00 00 00 00 00 0A 0D 10 [16:36:04]RasterBufferAndPrint [16:36:04]line [16:36:04]line [16:36:04]line [16:36:04]line [16:36:04]line [16:36:04]written 0, free lines is 3347 [16:36:04]MH_Cut [16:36:04]Write to MH i2c: D1 01 00 C5 34 01 CB [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: D1 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: D1 01 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: D1 01 00 C5 34 00 CA [16:36:04]Write to MH i2c: 01 00 00 C6 34 FA [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:05]OFD Sender: No OFD packet to send [16:36:05]*** Cut start [16:36:05]*** Partial cut [16:36:05]*** CUTSNS_PIN = 1 [16:36:05]*** CUTSNS_PIN = 0 [16:36:05]*** Brake cut motor [16:36:06]Read from MH i2c: 01 [16:36:06]MH_I2C_Read... [16:36:06]*** Stop cut motor [16:36:06]*** Cut end [16:36:06]Read from MH i2c: 01 07 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: 01 07 00 C6 34 00 00 00 00 00 FF 0F 0F [16:36:06]process_action close_receipt done [16:36:06]requested_data is exist [16:36:06]produce_requested_data [16:36:06]requested_item fm.sn is exist - process it [16:36:06]wFMCommunicate request_size=4 [16:36:06]MH_SAM_APDU [16:36:06]CAPDU: 80 11 00 00 [16:36:06]Write to MH i2c: E2 08 00 C7 34 80 11 00 00 00 00 00 00 75 [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:06]Read from MH i2c: E2 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 17 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 17 00 C7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [16:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:36:06]wFMCommunicate OK [16:36:06]requested_item fd.num is exist - process it [16:36:06]SAM_PROTO_GetFieldsCounters [16:36:06]wFMCommunicate request_size=4 [16:36:06]MH_SAM_APDU [16:36:06]CAPDU: 80 13 00 00 [16:36:06]Write to MH i2c: E2 08 00 C8 34 80 13 00 00 00 00 00 00 78 [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:06]Read from MH i2c: E2 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 62 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 62 00 C8 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [16:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:06]wFMCommunicate OK [16:36:06]SAM_PROTO_GetFieldsCounters done [16:36:06]requested_item shift.num is exist - process it [16:36:06]requested_item shift.opened is exist - process it [16:36:06]req_shift_opened [16:36:06]FM_GetShiftState [16:36:06]SAM_PROTO_GetShiftState [16:36:06]wFMCommunicate request_size=4 [16:36:06]MH_SAM_APDU [16:36:06]CAPDU: 80 13 01 00 [16:36:06]Write to MH i2c: E2 08 00 C9 34 80 13 01 00 00 00 00 00 7A [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:06]Read from MH i2c: E2 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 0E 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: E2 0E 00 C9 34 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C4 [16:36:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:36:06]wFMCommunicate OK [16:36:06]SAM_PROTO_GetShiftState done [16:36:06]FM_GetShiftState done [16:36:06]req_shift_opened done [16:36:06]requested_item shift.open_date is exist - process it [16:36:06]req_shift_open_date [16:36:06]req_shift_open_date done [16:36:06]produce_requested_data done [16:36:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164300,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:36:06]process_action_free close_receipt [16:36:06]json_value_free [16:36:06]json_value_free done [16:36:06]process_json_proto returns [16:36:06]Send response to host [16:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164300,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:36:06]free response buf [16:36:06]execute_script done [16:36:06]execute_script returns [16:36:06]free content buf [16:36:06]Sock 7.Close socket [16:36:06]Sock 7.Thread stoped [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:23]accept exits with 10 [16:38:23]New connection [16:38:23]New thread 3066850660 created [16:38:23]Thread 3066707300 joined [16:38:23]Waiting for new connection... [16:38:23] Sock 10.Parse request [16:38:23]Sock 10.Check first char [16:38:23]Sock 10.First char is OK [16:38:23]request: POST /json_proto HTTP/1.0 [16:38:23]Method: POST [16:38:23]URL: /json_proto [16:38:23]Method is POST - this is cgi request [16:38:23]url: /json_proto [16:38:23]query_string will be loaded in cgi processing [16:38:23]execute_cgi json_proto POST (null) [16:38:23]execute_cgi path=json_proto method=POST [16:38:23]POST find Content-Length [16:38:23]Host: 172.17.56.4:8080 [16:38:23]Content-Length: 677 [16:38:23]Content-Type: application/json [16:38:23] [16:38:23]POST finish read [16:38:23]Found Content-Length = 677 [16:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:38:23]execute_script... [16:38: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)458384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:38:23]POST & json_proto [16:38:23]process_json_proto [16:38:23]json parsed OK: [16:38:23]protocol is kg_v1.0 [16:38:23]action value=close_receipt [16:38:23]process_action close_receipt [16:38:23]cmd_close_receipt [16:38:23]MH_GetDate [16:38:23]Write to MH i2c: F0 00 00 CA 34 ED [16:38:23]Write i2c OK [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: F0 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: F0 09 00 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: F0 09 00 CA 34 00 01 5C 91 66 C9 DC B2 64 05 [16:38:23]GetLastDocTimeStamp 1720802164 [16:38:23]current date 1720802305 [16:38:23]FM_GetShiftState [16:38:23]SAM_PROTO_GetShiftState [16:38:23]wFMCommunicate request_size=4 [16:38:23]MH_SAM_APDU [16:38:23]CAPDU: 80 13 01 00 [16:38:23]Write to MH i2c: E2 08 00 CB 34 80 13 01 00 00 00 00 00 7C [16:38:23]Write i2c OK [16:38:23]MH_I2C_Read... [16:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:23]Read from MH i2c: E2 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: E2 0E 00 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: E2 0E 00 CB 34 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C6 [16:38:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:38:23]wFMCommunicate OK [16:38:23]SAM_PROTO_GetShiftState done [16:38:23]FM_GetShiftState done [16:38:23]opened in 1720744654 [16:38:23]opened+sec_in_day 1720831054 [16:38:23]quantity*price = 20003 [16:38:23]sum+1 = 20004 [16:38: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 222 12.07.2024 16:38 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164301 ФПД: 132186685891019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163825&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164301&fm=132186685891019&tin=02508201610067®Number=0000000000090829&sum=20000 [16:38:24]StoreToDocumentArchive [16:38:24]shift 445 fd 164301 [16:38:24]save to /storage/0445/doc_00164301 [16:38:24]save last doc name /storage/0445/doc_00164301 to /storage/kkm_last_doc_name [16:38:24]save OK [16:38:24]Clear old archive folders... [16:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:24]tlvbuf is 00A8A2A0 [16:38:24]SAM_PROTO_ClearQueue [16:38:24]wFMCommunicate request_size=4 [16:38:24]MH_SAM_APDU [16:38:24]CAPDU: 80 09 00 00 [16:38:24]Write to MH i2c: E2 08 00 D8 34 80 09 00 00 00 00 00 00 7E [16:38:24]Write i2c OK [16:38:24]MH_I2C_Read... [16:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:24]Read from MH i2c: E2 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 D8 34 00 90 00 80 [16:38:24]RAPDU: 90 00 [16:38:24]wFMCommunicate OK [16:38:24]SAM_PROTO_ClearQueue done [16:38:24]KKMCreateOFDPacket [16:38:24]OFDProtocolAddRootSTLVToBuf [16:38:24]FM_MakeSignedData [16:38:24]FM_MakeSignedData [16:38:24]SAM_PROTO_SignData [16:38:24]wFMCommunicate request_size=4 [16:38:24]MH_SAM_APDU [16:38:24]CAPDU: 80 0D 01 02 [16:38:24]Write to MH i2c: E2 08 00 D9 34 80 0D 01 02 00 00 00 00 86 [16:38:24]Write i2c OK [16:38:24]MH_I2C_Read... [16:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:24]Read from MH i2c: E2 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 D9 34 00 90 00 81 [16:38:24]RAPDU: 90 00 [16:38:24]wFMCommunicate OK [16:38:24]wFMCommunicate request_size=255 [16:38:24]MH_SAM_APDU [16:38: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 81 02 00 35 04 06 00 78 [16:38:24]Write to MH i2c: E2 02 01 DA 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 81 02 00 35 04 06 00 78 00 00 58 [16:38:24]Write i2c OK [16:38:24]MH_I2C_Read... [16:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:25]Read from MH i2c: E2 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 03 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 03 00 DA 34 00 90 00 82 [16:38:25]RAPDU: 90 00 [16:38:25]wFMCommunicate OK [16:38:25]wFMCommunicate request_size=10 [16:38:25]MH_SAM_APDU [16:38:25]CAPDU: 80 0D 02 02 05 39 1C 74 E1 CB [16:38:25]Write to MH i2c: E2 0D 00 DB 34 80 0D 02 02 05 00 39 1C 74 E1 CB 00 00 08 [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:25]Read from MH i2c: E2 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 03 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 03 00 DB 34 00 90 00 83 [16:38:25]RAPDU: 90 00 [16:38:25]wFMCommunicate OK [16:38:25]wFMCommunicate request_size=4 [16:38:25]MH_SAM_APDU [16:38:25]CAPDU: 80 0D 03 02 [16:38:25]Write to MH i2c: E2 08 00 DC 34 80 0D 03 02 00 00 00 00 8B [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:25]Read from MH i2c: E2 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 0B 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 0B 00 DC 34 00 06 8A 8C B7 4D 07 11 99 90 00 5D [16:38:25]RAPDU: 06 8A 8C B7 4D 07 11 99 90 00 [16:38:25]wFMCommunicate OK [16:38:25]SAM_PROTO_SignData done [16:38:25]FM_MakeSignedData done [16:38:25]CreateOFDProtocolMessage [16:38:25]wFMCommunicate request_size=4 [16:38:25]MH_SAM_APDU [16:38:25]CAPDU: 80 11 00 00 [16:38:25]Write to MH i2c: E2 08 00 DD 34 80 11 00 00 00 00 00 00 8B [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:25]Read from MH i2c: E2 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 17 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 17 00 DD 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [16:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:38:25]wFMCommunicate OK [16:38:25]CreateOFDProtocolMessage done [16:38:25]OFDSenderStorePacket 164301 [16:38:25]StoreOFDPacket docnum=164301 [16:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 34 31 07 01 BA 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 81 02 00 35 04 06 00 78 39 1C 74 E1 CB 06 8A 8C B7 4D 07 11 99 [16:38:25]CheckFolder [16:38:25]dirname=/storage/ofd_packets [16:38:25]CheckFolder done [16:38:25]ProducePacketName [16:38:25]name=ofd_packets/00164301 [16:38:25]NVStorageSaveData ofd_packets/00164301 [16:38:25]File name is /storage/ofd_packets/00164301 [16:38:25]Write 301 bytes [16:38:25]NVStorageSaveData done [16:38:25]OFDSenderStorePacket done [16:38:25]KKMCreateOFDPacket done [16:38:25]NVStorageSaveData kkm_last_timestamp [16:38:25]File name is /storage/kkm_last_timestamp [16:38:25]Write 4 bytes [16:38:25]NVStorageSaveData done [16:38:25]ExternCall_PrintAddStr [16:38:25]wPrintStart [16:38:25]Write to MH i2c: 01 00 00 DE 34 12 [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 07 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 07 00 DE 34 00 00 00 00 00 FF 0F 27 [16:38:25]RasterBufferAndPrint [16:38:25]line Счет N : (1)458384 [16:38:25]line ИНН: 02508201610067 [16:38:25]line Контрольно-Кассовый Чек [16:38:25]line ПРОДАЖА [16:38:25]line ТРК (МРК, ГНК) : 12 [16:38:25]line Товар: 2710124130 [16:38:25]line Аи-92-К-5 [16:38:25]line 3.040 * 65.80 [16:38:25]line = 200.03 [16:38:25]line НДС 12% НСП 1% [16:38:25]line > о реализуемом товаре [16:38:25]line ОКРУГЛЕНИЕ: -0.03 [16:38:25]line ИТОГО: 200.00 [16:38:25]line Внесено: 200.00 [16:38:25]line СДАЧА: 0.00 [16:38:25]line НСП 1% : 1.77 [16:38:25]line НДС 12% : 21.24 [16:38:25]line Наличными: 200.00 [16:38:25]line Безнал.: 0.00 [16:38:25]line Место: АЗС № 72 "Партнер Нефть" [16:38:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:38:25]line СНО: Общий режим [16:38:25]line Чек 222 12.07.2024 16:38 [16:38:25]line Смена: 445 ФФД: 1.0 [16:38:25]line ЗНМ: 0300000160 [16:38:25]line РНМ: 0000000000090829 [16:38:25]line Версия ККМ: 001 [16:38:25]line ФМ: 0000000000874718 [16:38:25]line ФД: 164301 [16:38:25]line ФПД: 132186685891019 [16:38:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163825&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164301&fm=132186685891019&tin=02508201610067®Number=0000000000090829&sum=20000 [16:38:25]written 0, free lines is 4095 [16:38:25]OFD Sender: Processing packet 164301 [packets to send 104, broken 103] [16:38:25]ProducePacketName [16:38:25]name=ofd_packets/00164301 [16:38:25]OFD Sender: To server: pG, [16:38:25]CommunicateWithHost lk.salyk.kg:30040 [16:38:25]ConnectInit lk.salyk.kg [16:38:25]Connected sock=9 [16:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 34 31 07 01 BA 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 81 02 00 35 04 06 00 78 39 1C 74 E1 CB 06 8A 8C B7 4D 07 11 99 [16:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 91 32 47 00 15 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 34 37 31 38 10 04 04 00 CD 81 02 00 F4 03 04 00 95 02 91 66 B6 04 01 00 00 50 37 DB 21 47 92 38 0F [16:38:25]CommunicateWithHost err = 0 [16:38:25]CheckOFDResponse [16:38:25]1017 (14) - 77093643461234 [16:38:25]1041 (16) - 0000000000874718 [16:38:25]1040 (4) - 164301 [16:38:25]1012 (4) - 12.07.2024 10:16 [16:38:25]1206 (1) - 0 [16:38:25]OFD Sender: Remove packet 164301 [16:38:25]ProducePacketName [16:38:25]name=ofd_packets/00164301 [16:38:25]NVStorageDeleteData [16:38:25]Write to MH i2c: 01 00 00 08 35 3D [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 07 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 07 00 08 35 00 00 00 00 00 02 0D 53 [16:38:25]RasterBufferAndPrint [16:38:25]line [16:38:25]line [16:38:25]line [16:38:25]line [16:38:25]line [16:38:25]written 0, free lines is 3336 [16:38:26]MH_Cut [16:38:26]Write to MH i2c: D1 01 00 0F 35 01 16 [16:38:26]Write i2c OK [16:38:26]MH_I2C_Read... [16:38:26]Read from MH i2c: D1 [16:38:26]MH_I2C_Read... [16:38:26]Read from MH i2c: D1 01 00 [16:38:26]MH_I2C_Read... [16:38:26]Read from MH i2c: D1 01 00 0F 35 00 15 [16:38:26]Write to MH i2c: 01 00 00 10 35 45 [16:38:26]Write i2c OK [16:38:26]MH_I2C_Read... [16:38:26]OFD Sender: No OFD packet to send [16:38:26]*** Cut start [16:38:26]*** Partial cut [16:38:26]*** CUTSNS_PIN = 1 [16:38:26]*** CUTSNS_PIN = 0 [16:38:26]*** Brake cut motor [16:38:27]Read from MH i2c: 01 [16:38:27]MH_I2C_Read... [16:38:27]*** Stop cut motor [16:38:27]*** Cut end [16:38:27]Read from MH i2c: 01 07 00 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: 01 07 00 10 35 00 00 00 00 00 FF 0F 5A [16:38:27]process_action close_receipt done [16:38:27]requested_data is exist [16:38:27]produce_requested_data [16:38:27]requested_item fm.sn is exist - process it [16:38:27]wFMCommunicate request_size=4 [16:38:27]MH_SAM_APDU [16:38:27]CAPDU: 80 11 00 00 [16:38:27]Write to MH i2c: E2 08 00 11 35 80 11 00 00 00 00 00 00 C0 [16:38:27]Write i2c OK [16:38:27]MH_I2C_Read... [16:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:27]Read from MH i2c: E2 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 17 00 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 17 00 11 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [16:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:38:27]wFMCommunicate OK [16:38:27]requested_item fd.num is exist - process it [16:38:27]SAM_PROTO_GetFieldsCounters [16:38:27]wFMCommunicate request_size=4 [16:38:27]MH_SAM_APDU [16:38:27]CAPDU: 80 13 00 00 [16:38:27]Write to MH i2c: E2 08 00 12 35 80 13 00 00 00 00 00 00 C3 [16:38:27]Write i2c OK [16:38:27]MH_I2C_Read... [16:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:27]Read from MH i2c: E2 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 62 00 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 62 00 12 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [16:38: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:27]wFMCommunicate OK [16:38:27]SAM_PROTO_GetFieldsCounters done [16:38:27]requested_item shift.num is exist - process it [16:38:27]requested_item shift.opened is exist - process it [16:38:27]req_shift_opened [16:38:27]FM_GetShiftState [16:38:27]SAM_PROTO_GetShiftState [16:38:27]wFMCommunicate request_size=4 [16:38:27]MH_SAM_APDU [16:38:27]CAPDU: 80 13 01 00 [16:38:27]Write to MH i2c: E2 08 00 13 35 80 13 01 00 00 00 00 00 C5 [16:38:27]Write i2c OK [16:38:27]MH_I2C_Read... [16:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:27]Read from MH i2c: E2 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 0E 00 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 0E 00 13 35 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0F [16:38:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:38:27]wFMCommunicate OK [16:38:27]SAM_PROTO_GetShiftState done [16:38:27]FM_GetShiftState done [16:38:27]req_shift_opened done [16:38:27]requested_item shift.open_date is exist - process it [16:38:27]req_shift_open_date [16:38:27]req_shift_open_date done [16:38:27]produce_requested_data done [16:38:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164301,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:38:27]process_action_free close_receipt [16:38:27]json_value_free [16:38:27]json_value_free done [16:38:27]process_json_proto returns [16:38:27]Send response to host [16:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164301,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:38:27]free response buf [16:38:27]execute_script done [16:38:27]execute_script returns [16:38:27]free content buf [16:38:27]Sock 10.Close socket [16:38:27]Sock 10.Thread stoped [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:20]accept exits with 7 [16:39:20]New connection [16:39:20]New thread 3066707300 created [16:39:20]Thread 3066850660 joined [16:39:20]Waiting for new connection... [16:39:20] Sock 7.Parse request [16:39:20]Sock 7.Check first char [16:39:20]Sock 7.First char is OK [16:39:20]request: POST /json_proto HTTP/1.0 [16:39:20]Method: POST [16:39:20]URL: /json_proto [16:39:20]Method is POST - this is cgi request [16:39:20]url: /json_proto [16:39:20]query_string will be loaded in cgi processing [16:39:20]execute_cgi json_proto POST (null) [16:39:20]execute_cgi path=json_proto method=POST [16:39:20]POST find Content-Length [16:39:20]Host: 172.17.56.4:8080 [16:39:20]Content-Length: 679 [16:39:20]Content-Type: application/json [16:39:20] [16:39:20]POST finish read [16:39:20]Found Content-Length = 679 [16:39:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458385", "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" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:39:20]execute_script... [16:39: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)458385", "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" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:39:20]POST & json_proto [16:39:20]process_json_proto [16:39:20]json parsed OK: [16:39:20]protocol is kg_v1.0 [16:39:20]action value=close_receipt [16:39:20]process_action close_receipt [16:39:20]cmd_close_receipt [16:39:20]MH_GetDate [16:39:20]Write to MH i2c: F0 00 00 14 35 38 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: F0 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: F0 09 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: F0 09 00 14 35 00 3A 5C 91 66 C9 DC B2 64 89 [16:39:20]GetLastDocTimeStamp 1720802305 [16:39:20]current date 1720802362 [16:39:20]FM_GetShiftState [16:39:20]SAM_PROTO_GetShiftState [16:39:20]wFMCommunicate request_size=4 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 13 01 00 [16:39:20]Write to MH i2c: E2 08 00 15 35 80 13 01 00 00 00 00 00 C7 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 0E 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 0E 00 15 35 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 11 [16:39:20]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:39:20]wFMCommunicate OK [16:39:20]SAM_PROTO_GetShiftState done [16:39:20]FM_GetShiftState done [16:39:20]opened in 1720744654 [16:39:20]opened+sec_in_day 1720831054 [16:39:20]quantity*price = 200025 [16:39:20]sum+1 = 200027 [16:39:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 223 12.07.2024 16:39 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164302 ФПД: 153136253833699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163922&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164302&fm=153136253833699&tin=02508201610067®Number=0000000000090829&sum=200000 [16:39:21]StoreToDocumentArchive [16:39:21]shift 445 fd 164302 [16:39:21]save to /storage/0445/doc_00164302 [16:39:21]save last doc name /storage/0445/doc_00164302 to /storage/kkm_last_doc_name [16:39:21]save OK [16:39:21]Clear old archive folders... [16:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:39:21]tlvbuf is 00A68BD0 [16:39:21]SAM_PROTO_ClearQueue [16:39:21]wFMCommunicate request_size=4 [16:39:21]MH_SAM_APDU [16:39:21]CAPDU: 80 09 00 00 [16:39:21]Write to MH i2c: E2 08 00 22 35 80 09 00 00 00 00 00 00 C9 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 22 35 00 90 00 CB [16:39:21]RAPDU: 90 00 [16:39:21]wFMCommunicate OK [16:39:21]SAM_PROTO_ClearQueue done [16:39:21]KKMCreateOFDPacket [16:39:21]OFDProtocolAddRootSTLVToBuf [16:39:21]FM_MakeSignedData [16:39:21]FM_MakeSignedData [16:39:21]SAM_PROTO_SignData [16:39:21]wFMCommunicate request_size=4 [16:39:21]MH_SAM_APDU [16:39:21]CAPDU: 80 0D 01 02 [16:39:21]Write to MH i2c: E2 08 00 23 35 80 0D 01 02 00 00 00 00 D1 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:21]Read from MH i2c: E2 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: E2 03 00 23 35 00 90 00 CC [16:39:21]RAPDU: 90 00 [16:39:21]wFMCommunicate OK [16:39:21]wFMCommunicate request_size=255 [16:39:21]MH_SAM_APDU [16:39:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 3A 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 81 02 00 35 04 06 00 8B 46 D0 03 [16:39:21]Write to MH i2c: E2 02 01 24 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 3A 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 81 02 00 35 04 06 00 8B 46 D0 03 00 00 E3 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:22]Read from MH i2c: E2 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: E2 03 00 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: E2 03 00 24 35 00 90 00 CD [16:39:22]RAPDU: 90 00 [16:39:22]wFMCommunicate OK [16:39:22]wFMCommunicate request_size=7 [16:39:22]MH_SAM_APDU [16:39:22]CAPDU: 80 0D 02 02 02 11 E3 [16:39:22]Write to MH i2c: E2 0A 00 25 35 80 0D 02 02 02 00 11 E3 00 00 CC [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:22]Read from MH i2c: E2 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: E2 03 00 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: E2 03 00 25 35 00 90 00 CE [16:39:22]RAPDU: 90 00 [16:39:22]wFMCommunicate OK [16:39:22]wFMCommunicate request_size=4 [16:39:22]MH_SAM_APDU [16:39:22]CAPDU: 80 0D 03 02 [16:39:22]Write to MH i2c: E2 08 00 26 35 80 0D 03 02 00 00 00 00 D6 [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:22]Read from MH i2c: E2 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: E2 0B 00 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: E2 0B 00 26 35 00 06 81 94 98 41 B2 4C 8F 90 00 58 [16:39:22]RAPDU: 06 81 94 98 41 B2 4C 8F 90 00 [16:39:22]wFMCommunicate OK [16:39:22]SAM_PROTO_SignData done [16:39:22]FM_MakeSignedData done [16:39:22]CreateOFDProtocolMessage [16:39:22]wFMCommunicate request_size=4 [16:39:22]MH_SAM_APDU [16:39:22]CAPDU: 80 11 00 00 [16:39:22]Write to MH i2c: E2 08 00 27 35 80 11 00 00 00 00 00 00 D6 [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:22]Read from MH i2c: E2 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: E2 17 00 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: E2 17 00 27 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [16:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:39:22]wFMCommunicate OK [16:39:22]CreateOFDProtocolMessage done [16:39:22]OFDSenderStorePacket 164302 [16:39:22]StoreOFDPacket docnum=164302 [16:39:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 44 C5 04 01 79 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 3A 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 81 02 00 35 04 06 00 8B 46 D0 03 11 E3 06 81 94 98 41 B2 4C 8F [16:39:22]CheckFolder [16:39:22]dirname=/storage/ofd_packets [16:39:22]CheckFolder done [16:39:22]ProducePacketName [16:39:22]name=ofd_packets/00164302 [16:39:22]NVStorageSaveData ofd_packets/00164302 [16:39:22]File name is /storage/ofd_packets/00164302 [16:39:22]Write 298 bytes [16:39:22]NVStorageSaveData done [16:39:22]OFDSenderStorePacket done [16:39:22]KKMCreateOFDPacket done [16:39:22]NVStorageSaveData kkm_last_timestamp [16:39:22]File name is /storage/kkm_last_timestamp [16:39:22]Write 4 bytes [16:39:22]NVStorageSaveData done [16:39:22]ExternCall_PrintAddStr [16:39:22]wPrintStart [16:39:22]Write to MH i2c: 01 00 00 28 35 5D [16:39:22]Write i2c OK [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: 01 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: 01 07 00 [16:39:22]MH_I2C_Read... [16:39:22]Read from MH i2c: 01 07 00 28 35 00 00 00 00 00 FF 0F 72 [16:39:22]RasterBufferAndPrint [16:39:22]line Счет N : (1)458385 [16:39:22]line ИНН: 02508201610067 [16:39:22]line Контрольно-Кассовый Чек [16:39:22]line ПРОДАЖА [16:39:22]line ТРК (МРК, ГНК) : 21 [16:39:22]line Товар: 2710194210 [16:39:22]line ДТ-К-5 [16:39:22]line 27.820 * 71.90 [16:39:22]line = 2000.26 [16:39:22]line НДС 12% НСП 1% [16:39:22]line > о реализуемом товаре [16:39:22]line ОКРУГЛЕНИЕ: -0.26 [16:39:22]line ИТОГО: 2000.00 [16:39:22]line Внесено: 2000.00 [16:39:22]line СДАЧА: 0.00 [16:39:22]line НСП 1% : 17.70 [16:39:22]line НДС 12% : 212.42 [16:39:22]line Наличными: 2000.00 [16:39:22]line Безнал.: 0.00 [16:39:22]line Место: АЗС № 72 "Партнер Нефть" [16:39:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:39:22]line СНО: Общий режим [16:39:22]line Чек 223 12.07.2024 16:39 [16:39:22]line Смена: 445 ФФД: 1.0 [16:39:22]line ЗНМ: 0300000160 [16:39:22]line РНМ: 0000000000090829 [16:39:22]line Версия ККМ: 001 [16:39:22]line ФМ: 0000000000874718 [16:39:22]line ФД: 164302 [16:39:22]line ФПД: 153136253833699 [16:39:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T163922&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164302&fm=153136253833699&tin=02508201610067®Number=0000000000090829&sum=200000 [16:39:22]OFD Sender: Processing packet 164302 [packets to send 104, broken 103] [16:39:22]ProducePacketName [16:39:22]name=ofd_packets/00164302 [16:39:22]OFD Sender: To server: pG, [16:39:22]CommunicateWithHost lk.salyk.kg:30040 [16:39:22]ConnectInit lk.salyk.kg [16:39:22]written 0, free lines is 4095 [16:39:22]Connected sock=10 [16:39:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 44 C5 04 01 79 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 3A 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 81 02 00 35 04 06 00 8B 46 D0 03 11 E3 06 81 94 98 41 B2 4C 8F [16:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 96 05 47 00 E9 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 34 37 31 38 10 04 04 00 CE 81 02 00 F4 03 04 00 CE 02 91 66 B6 04 01 00 00 36 83 8E 1D 63 0A 48 74 [16:39:22]CommunicateWithHost err = 0 [16:39:22]CheckOFDResponse [16:39:22]1017 (14) - 77093643461234 [16:39:22]1041 (16) - 0000000000874718 [16:39:22]1040 (4) - 164302 [16:39:22]1012 (4) - 12.07.2024 10:17 [16:39:22]1206 (1) - 0 [16:39:22]OFD Sender: Remove packet 164302 [16:39:22]ProducePacketName [16:39:22]name=ofd_packets/00164302 [16:39:22]NVStorageDeleteData [16:39:23]Write to MH i2c: 01 00 00 52 35 87 [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: 01 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: 01 07 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: 01 07 00 52 35 00 00 00 00 00 02 0D 9D [16:39:23]RasterBufferAndPrint [16:39:23]line [16:39:23]line [16:39:23]line [16:39:23]line [16:39:23]line [16:39:23]written 0, free lines is 3336 [16:39:23]MH_Cut [16:39:23]Write to MH i2c: D1 01 00 59 35 01 60 [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: D1 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: D1 01 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: D1 01 00 59 35 00 5F [16:39:23]Write to MH i2c: 01 00 00 5A 35 8F [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]OFD Sender: No OFD packet to send [16:39:23]*** Cut start [16:39:23]*** Partial cut [16:39:23]*** CUTSNS_PIN = 1 [16:39:23]*** CUTSNS_PIN = 0 [16:39:23]*** Brake cut motor [16:39:24]Read from MH i2c: 01 [16:39:24]MH_I2C_Read... [16:39:24]*** Stop cut motor [16:39:24]*** Cut end [16:39:24]Read from MH i2c: 01 07 00 [16:39:24]MH_I2C_Read... [16:39:24]Read from MH i2c: 01 07 00 5A 35 00 00 00 00 00 FF 0F A4 [16:39:24]process_action close_receipt done [16:39:24]requested_data is exist [16:39:24]produce_requested_data [16:39:24]requested_item fm.sn is exist - process it [16:39:24]wFMCommunicate request_size=4 [16:39:24]MH_SAM_APDU [16:39:24]CAPDU: 80 11 00 00 [16:39:24]Write to MH i2c: E2 08 00 5B 35 80 11 00 00 00 00 00 00 0A [16:39:24]Write i2c OK [16:39:24]MH_I2C_Read... [16:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:24]Read from MH i2c: E2 [16:39:24]MH_I2C_Read... [16:39:24]Read from MH i2c: E2 17 00 [16:39:24]MH_I2C_Read... [16:39:24]Read from MH i2c: E2 17 00 5B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [16:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:39:24]wFMCommunicate OK [16:39:24]requested_item fd.num is exist - process it [16:39:24]SAM_PROTO_GetFieldsCounters [16:39:24]wFMCommunicate request_size=4 [16:39:24]MH_SAM_APDU [16:39:24]CAPDU: 80 13 00 00 [16:39:24]Write to MH i2c: E2 08 00 5C 35 80 13 00 00 00 00 00 00 0D [16:39:24]Write i2c OK [16:39:24]MH_I2C_Read... [16:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:24]Read from MH i2c: E2 [16:39:24]MH_I2C_Read... [16:39:24]Read from MH i2c: E2 62 00 [16:39:24]MH_I2C_Read... [16:39:24]Read from MH i2c: E2 62 00 5C 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [16:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:24]wFMCommunicate OK [16:39:24]SAM_PROTO_GetFieldsCounters done [16:39:24]requested_item shift.num is exist - process it [16:39:24]requested_item shift.opened is exist - process it [16:39:24]req_shift_opened [16:39:24]FM_GetShiftState [16:39:24]SAM_PROTO_GetShiftState [16:39:24]wFMCommunicate request_size=4 [16:39:24]MH_SAM_APDU [16:39:24]CAPDU: 80 13 01 00 [16:39:24]Write to MH i2c: E2 08 00 5D 35 80 13 01 00 00 00 00 00 0F [16:39:24]Write i2c OK [16:39:24]MH_I2C_Read... [16:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:24]Read from MH i2c: E2 [16:39:24]MH_I2C_Read... [16:39:24]Read from MH i2c: E2 0E 00 [16:39:24]MH_I2C_Read... [16:39:24]Read from MH i2c: E2 0E 00 5D 35 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 59 [16:39:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:39:24]wFMCommunicate OK [16:39:24]SAM_PROTO_GetShiftState done [16:39:24]FM_GetShiftState done [16:39:24]req_shift_opened done [16:39:24]requested_item shift.open_date is exist - process it [16:39:24]req_shift_open_date [16:39:24]req_shift_open_date done [16:39:24]produce_requested_data done [16:39:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164302,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:39:24]process_action_free close_receipt [16:39:24]json_value_free [16:39:24]json_value_free done [16:39:24]process_json_proto returns [16:39:24]Send response to host [16:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164302,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:39:24]free response buf [16:39:24]execute_script done [16:39:24]execute_script returns [16:39:24]free content buf [16:39:24]Sock 7.Close socket [16:39:24]Sock 7.Thread stoped [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:32]accept exits with 9 [16:42:32]New connection [16:42:32]New thread 3066850660 created [16:42:32]Thread 3066707300 joined [16:42:32]Waiting for new connection... [16:42:32] Sock 9.Parse request [16:42:32]Sock 9.Check first char [16:42:32]Sock 9.First char is OK [16:42:32]request: POST /json_proto HTTP/1.0 [16:42:32]Method: POST [16:42:32]URL: /json_proto [16:42:32]Method is POST - this is cgi request [16:42:32]url: /json_proto [16:42:32]query_string will be loaded in cgi processing [16:42:32]execute_cgi json_proto POST (null) [16:42:32]execute_cgi path=json_proto method=POST [16:42:32]POST find Content-Length [16:42:32]Host: 172.17.56.4:8080 [16:42:32]Content-Length: 677 [16:42:32]Content-Type: application/json [16:42:32] [16:42:32]POST finish read [16:42:32]Found Content-Length = 677 [16:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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:42:32]execute_script... [16: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)458386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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:42:32]POST & json_proto [16:42:32]process_json_proto [16:42:32]json parsed OK: [16:42:32]protocol is kg_v1.0 [16:42:32]action value=close_receipt [16:42:32]process_action close_receipt [16:42:32]cmd_close_receipt [16:42:32]MH_GetDate [16:42:32]Write to MH i2c: F0 00 00 5E 35 82 [16:42:32]Write i2c OK [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: F0 [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: F0 09 00 [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: F0 09 00 5E 35 00 FA 5C 91 66 C9 DC B2 64 93 [16:42:32]GetLastDocTimeStamp 1720802362 [16:42:32]current date 1720802554 [16:42:32]FM_GetShiftState [16:42:32]SAM_PROTO_GetShiftState [16:42:32]wFMCommunicate request_size=4 [16:42:32]MH_SAM_APDU [16:42:32]CAPDU: 80 13 01 00 [16:42:32]Write to MH i2c: E2 08 00 5F 35 80 13 01 00 00 00 00 00 11 [16:42:32]Write i2c OK [16:42:32]MH_I2C_Read... [16:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:32]Read from MH i2c: E2 [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: E2 0E 00 [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: E2 0E 00 5F 35 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5B [16:42:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:42:32]wFMCommunicate OK [16:42:32]SAM_PROTO_GetShiftState done [16:42:32]FM_GetShiftState done [16:42:32]opened in 1720744654 [16:42:32]opened+sec_in_day 1720831054 [16:42:32]quantity*price = 15002 [16:42:32]sum+1 = 15003 [16:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 224 12.07.2024 16:42 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164303 ФПД: 205521344147638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T164234&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164303&fm=205521344147638&tin=02508201610067®Number=0000000000090829&sum=15000 [16:42:33]StoreToDocumentArchive [16:42:33]shift 445 fd 164303 [16:42:33]save to /storage/0445/doc_00164303 [16:42:33]save last doc name /storage/0445/doc_00164303 to /storage/kkm_last_doc_name [16:42:33]save OK [16:42:33]Clear old archive folders... [16:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:33]tlvbuf is 00AB3470 [16:42:33]SAM_PROTO_ClearQueue [16:42:33]wFMCommunicate request_size=4 [16:42:33]MH_SAM_APDU [16:42:33]CAPDU: 80 09 00 00 [16:42:33]Write to MH i2c: E2 08 00 6C 35 80 09 00 00 00 00 00 00 13 [16:42:33]Write i2c OK [16:42:33]MH_I2C_Read... [16:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:33]Read from MH i2c: E2 [16:42:33]MH_I2C_Read... [16:42:33]Read from MH i2c: E2 03 00 [16:42:33]MH_I2C_Read... [16:42:33]Read from MH i2c: E2 03 00 6C 35 00 90 00 15 [16:42:33]RAPDU: 90 00 [16:42:33]wFMCommunicate OK [16:42:33]SAM_PROTO_ClearQueue done [16:42:33]KKMCreateOFDPacket [16:42:33]OFDProtocolAddRootSTLVToBuf [16:42:33]FM_MakeSignedData [16:42:33]FM_MakeSignedData [16:42:33]SAM_PROTO_SignData [16:42:33]wFMCommunicate request_size=4 [16:42:33]MH_SAM_APDU [16:42:33]CAPDU: 80 0D 01 02 [16:42:33]Write to MH i2c: E2 08 00 6D 35 80 0D 01 02 00 00 00 00 1B [16:42:33]Write i2c OK [16:42:33]MH_I2C_Read... [16:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:33]Read from MH i2c: E2 [16:42:33]MH_I2C_Read... [16:42:33]Read from MH i2c: E2 03 00 [16:42:33]MH_I2C_Read... [16:42:33]Read from MH i2c: E2 03 00 6D 35 00 90 00 16 [16:42:33]RAPDU: 90 00 [16:42:33]wFMCommunicate OK [16:42:33]wFMCommunicate request_size=255 [16:42:33]MH_SAM_APDU [16: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 FA 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 81 02 00 35 04 06 00 BA [16:42:33]Write to MH i2c: E2 02 01 6E 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 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 FA 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 81 02 00 35 04 06 00 BA 00 00 1B [16:42:33]Write i2c OK [16:42:33]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 6E 35 00 90 00 17 [16:42:34]RAPDU: 90 00 [16:42:34]wFMCommunicate OK [16:42:34]wFMCommunicate request_size=10 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 0D 02 02 05 EB AA B6 30 B6 [16:42:34]Write to MH i2c: E2 0D 00 6F 35 80 0D 02 02 05 00 EB AA B6 30 B6 00 00 59 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 6F 35 00 90 00 18 [16:42:34]RAPDU: 90 00 [16:42:34]wFMCommunicate OK [16:42:34]wFMCommunicate request_size=4 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 0D 03 02 [16:42:34]Write to MH i2c: E2 08 00 70 35 80 0D 03 02 00 00 00 00 20 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 0B 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 0B 00 70 35 00 DD A1 02 18 82 A7 F3 02 90 00 D7 [16:42:34]RAPDU: DD A1 02 18 82 A7 F3 02 90 00 [16:42:34]wFMCommunicate OK [16:42:34]SAM_PROTO_SignData done [16:42:34]FM_MakeSignedData done [16:42:34]CreateOFDProtocolMessage [16:42:34]wFMCommunicate request_size=4 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 11 00 00 [16:42:34]Write to MH i2c: E2 08 00 71 35 80 11 00 00 00 00 00 00 20 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 17 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 17 00 71 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [16:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:42:34]wFMCommunicate OK [16:42:34]CreateOFDProtocolMessage done [16:42:34]OFDSenderStorePacket 164303 [16:42:34]StoreOFDPacket docnum=164303 [16:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE B7 07 01 70 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 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 FA 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 81 02 00 35 04 06 00 BA EB AA B6 30 B6 DD A1 02 18 82 A7 F3 02 [16:42:34]CheckFolder [16:42:34]dirname=/storage/ofd_packets [16:42:34]CheckFolder done [16:42:34]ProducePacketName [16:42:34]name=ofd_packets/00164303 [16:42:34]NVStorageSaveData ofd_packets/00164303 [16:42:34]File name is /storage/ofd_packets/00164303 [16:42:34]Write 301 bytes [16:42:34]NVStorageSaveData done [16:42:34]OFDSenderStorePacket done [16:42:34]KKMCreateOFDPacket done [16:42:34]NVStorageSaveData kkm_last_timestamp [16:42:34]File name is /storage/kkm_last_timestamp [16:42:34]Write 4 bytes [16:42:34]NVStorageSaveData done [16:42:34]ExternCall_PrintAddStr [16:42:34]wPrintStart [16:42:34]Write to MH i2c: 01 00 00 72 35 A7 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: 01 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: 01 07 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: 01 07 00 72 35 00 00 00 00 00 FF 0F BC [16:42:34]RasterBufferAndPrint [16:42:34]line Счет N : (1)458386 [16:42:34]line ИНН: 02508201610067 [16:42:34]line Контрольно-Кассовый Чек [16:42:34]line ПРОДАЖА [16:42:34]line ТРК (МРК, ГНК) : 12 [16:42:34]line Товар: 2710124130 [16:42:34]line Аи-92-К-5 [16:42:34]line 2.280 * 65.80 [16:42:34]line = 150.02 [16:42:34]line НДС 12% НСП 1% [16:42:34]line > о реализуемом товаре [16:42:34]line ОКРУГЛЕНИЕ: -0.02 [16:42:34]line ИТОГО: 150.00 [16:42:34]line Внесено: 150.00 [16:42:34]line СДАЧА: 0.00 [16:42:34]line НСП 1% : 1.33 [16:42:34]line НДС 12% : 15.93 [16:42:34]line Наличными: 150.00 [16:42:34]line Безнал.: 0.00 [16:42:34]line Место: АЗС № 72 "Партнер Нефть" [16:42:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:42:34]line СНО: Общий режим [16:42:34]line Чек 224 12.07.2024 16:42 [16:42:34]line Смена: 445 ФФД: 1.0 [16:42:34]line ЗНМ: 0300000160 [16:42:34]line РНМ: 0000000000090829 [16:42:34]line Версия ККМ: 001 [16:42:34]line ФМ: 0000000000874718 [16:42:34]line ФД: 164303 [16:42:34]line ФПД: 205521344147638 [16:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T164234&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164303&fm=205521344147638&tin=02508201610067®Number=0000000000090829&sum=15000 [16:42:34]OFD Sender: Processing packet 164303 [packets to send 104, broken 103] [16:42:34]ProducePacketName [16:42:34]name=ofd_packets/00164303 [16:42:34]OFD Sender: To server: pG, [16:42:34]CommunicateWithHost lk.salyk.kg:30040 [16:42:34]ConnectInit lk.salyk.kg [16:42:34]written 0, free lines is 4095 [16:42:34]Connected sock=7 [16: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 34 37 31 38 0F 01 00 00 DE B7 07 01 70 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 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 FA 5C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 81 02 00 35 04 06 00 BA EB AA B6 30 B6 DD A1 02 18 82 A7 F3 02 [16:42:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D8 30 47 00 F8 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 34 37 31 38 10 04 04 00 CF 81 02 00 F4 03 04 00 8E 03 91 66 B6 04 01 00 00 5D 77 59 89 86 CC 4F E7 [16:42:34]CommunicateWithHost err = 0 [16:42:34]CheckOFDResponse [16:42:34]1017 (14) - 77093643461234 [16:42:34]1041 (16) - 0000000000874718 [16:42:34]1040 (4) - 164303 [16:42:34]1012 (4) - 12.07.2024 10:21 [16:42:34]1206 (1) - 0 [16:42:34]OFD Sender: Remove packet 164303 [16:42:34]ProducePacketName [16:42:34]name=ofd_packets/00164303 [16:42:34]NVStorageDeleteData [16:42:35]Write to MH i2c: 01 00 00 9C 35 D1 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 07 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 07 00 9C 35 00 00 00 00 00 05 0D EA [16:42:35]RasterBufferAndPrint [16:42:35]line [16:42:35]line [16:42:35]line [16:42:35]line [16:42:35]line [16:42:35]written 0, free lines is 3343 [16:42:35]MH_Cut [16:42:35]Write to MH i2c: D1 01 00 A3 35 01 AA [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: D1 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: D1 01 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: D1 01 00 A3 35 00 A9 [16:42:35]Write to MH i2c: 01 00 00 A4 35 D9 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]OFD Sender: No OFD packet to send [16:42:35]*** Cut start [16:42:35]*** Partial cut [16:42:35]*** CUTSNS_PIN = 1 [16:42:35]*** CUTSNS_PIN = 0 [16:42:35]*** Brake cut motor [16:42:36]Read from MH i2c: 01 [16:42:36]MH_I2C_Read... [16:42:36]*** Stop cut motor [16:42:36]*** Cut end [16:42:36]Read from MH i2c: 01 07 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 07 00 A4 35 00 00 00 00 00 FF 0F EE [16:42:36]process_action close_receipt done [16:42:36]requested_data is exist [16:42:36]produce_requested_data [16:42:36]requested_item fm.sn is exist - process it [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 11 00 00 [16:42:36]Write to MH i2c: E2 08 00 A5 35 80 11 00 00 00 00 00 00 54 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 17 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 17 00 A5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [16:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:42:36]wFMCommunicate OK [16:42:36]requested_item fd.num is exist - process it [16:42:36]SAM_PROTO_GetFieldsCounters [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 13 00 00 [16:42:36]Write to MH i2c: E2 08 00 A6 35 80 13 00 00 00 00 00 00 57 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 62 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 62 00 A6 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:36]wFMCommunicate OK [16:42:36]SAM_PROTO_GetFieldsCounters done [16:42:36]requested_item shift.num is exist - process it [16:42:36]requested_item shift.opened is exist - process it [16:42:36]req_shift_opened [16:42:36]FM_GetShiftState [16:42:36]SAM_PROTO_GetShiftState [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 13 01 00 [16:42:36]Write to MH i2c: E2 08 00 A7 35 80 13 01 00 00 00 00 00 59 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0E 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0E 00 A7 35 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A3 [16:42:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:42:36]wFMCommunicate OK [16:42:36]SAM_PROTO_GetShiftState done [16:42:36]FM_GetShiftState done [16:42:36]req_shift_opened done [16:42:36]requested_item shift.open_date is exist - process it [16:42:36]req_shift_open_date [16:42:36]req_shift_open_date done [16:42:36]produce_requested_data done [16:42:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164303,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:42:36]process_action_free close_receipt [16:42:36]json_value_free [16:42:36]json_value_free done [16:42:36]process_json_proto returns [16:42:36]Send response to host [16:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164303,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:42:36]free response buf [16:42:36]execute_script done [16:42:36]execute_script returns [16:42:36]free content buf [16:42:36]Sock 9.Close socket [16:42:36]Sock 9.Thread stoped [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:47]accept exits with 10 [16:44:47]New connection [16:44:47]New thread 3066707300 created [16:44:47]Thread 3066850660 joined [16:44:47]Waiting for new connection... [16:44:47] Sock 10.Parse request [16:44:47]Sock 10.Check first char [16:44:47]Sock 10.First char is OK [16:44:47]request: POST /json_proto HTTP/1.0 [16:44:47]Method: POST [16:44:47]URL: /json_proto [16:44:47]Method is POST - this is cgi request [16:44:47]url: /json_proto [16:44:47]query_string will be loaded in cgi processing [16:44:47]execute_cgi json_proto POST (null) [16:44:47]execute_cgi path=json_proto method=POST [16:44:47]POST find Content-Length [16:44:47]Host: 172.17.56.4:8080 [16:44:47]Content-Length: 679 [16:44:47]Content-Type: application/json [16:44:47] [16:44:47]POST finish read [16:44:47]Found Content-Length = 679 [16:44:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 85.540, "sum" : 6150.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6150.00, "total" : 6150.00, "payments": [ { "type": 0, "sum" : 6150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:47]execute_script... [16: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)458387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 85.540, "sum" : 6150.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6150.00, "total" : 6150.00, "payments": [ { "type": 0, "sum" : 6150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:47]POST & json_proto [16:44:47]process_json_proto [16:44:47]json parsed OK: [16:44:47]protocol is kg_v1.0 [16:44:47]action value=close_receipt [16:44:47]process_action close_receipt [16:44:47]cmd_close_receipt [16:44:47]MH_GetDate [16:44:47]Write to MH i2c: F0 00 00 A8 35 CC [16:44:47]Write i2c OK [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: F0 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: F0 09 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: F0 09 00 A8 35 00 81 5D 91 66 C9 DC B2 64 65 [16:44:47]GetLastDocTimeStamp 1720802554 [16:44:47]current date 1720802689 [16:44:47]FM_GetShiftState [16:44:47]SAM_PROTO_GetShiftState [16:44:47]wFMCommunicate request_size=4 [16:44:47]MH_SAM_APDU [16:44:47]CAPDU: 80 13 01 00 [16:44:47]Write to MH i2c: E2 08 00 A9 35 80 13 01 00 00 00 00 00 5B [16:44:47]Write i2c OK [16:44:47]MH_I2C_Read... [16:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:47]Read from MH i2c: E2 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 0E 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 0E 00 A9 35 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A5 [16:44:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:44:47]wFMCommunicate OK [16:44:47]SAM_PROTO_GetShiftState done [16:44:47]FM_GetShiftState done [16:44:47]opened in 1720744654 [16:44:47]opened+sec_in_day 1720831054 [16:44:47]quantity*price = 615032 [16:44:47]sum+1 = 615034 [16:44:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 6150.00 Внесено: 6150.00 СДАЧА: 0.00 НСП 1% : 54.43 НДС 12% : 653.13 Наличными: 6150.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 225 12.07.2024 16:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164304 ФПД: 242592474264683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T164450&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164304&fm=242592474264683&tin=02508201610067®Number=0000000000090829&sum=615000 [16:44:48]StoreToDocumentArchive [16:44:48]shift 445 fd 164304 [16:44:48]save to /storage/0445/doc_00164304 [16:44:48]save last doc name /storage/0445/doc_00164304 to /storage/kkm_last_doc_name [16:44:48]save OK [16:44:48]Clear old archive folders... [16:44:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:44:48]tlvbuf is 00A68B00 [16:44:48]SAM_PROTO_ClearQueue [16:44:48]wFMCommunicate request_size=4 [16:44:48]MH_SAM_APDU [16:44:48]CAPDU: 80 09 00 00 [16:44:48]Write to MH i2c: E2 08 00 B6 35 80 09 00 00 00 00 00 00 5D [16:44:48]Write i2c OK [16:44:48]MH_I2C_Read... [16:44:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:48]Read from MH i2c: E2 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: E2 03 00 [16:44:48]MH_I2C_Read... [16:44:48]Read from MH i2c: E2 03 00 B6 35 00 90 00 5F [16:44:48]RAPDU: 90 00 [16:44:48]wFMCommunicate OK [16:44:48]SAM_PROTO_ClearQueue done [16:44:48]KKMCreateOFDPacket [16:44:48]OFDProtocolAddRootSTLVToBuf [16:44:48]FM_MakeSignedData [16:44:48]FM_MakeSignedData [16:44:48]SAM_PROTO_SignData [16:44:48]wFMCommunicate request_size=4 [16:44:48]MH_SAM_APDU [16:44:48]CAPDU: 80 0D 01 02 [16:44:48]Write to MH i2c: E2 08 00 B7 35 80 0D 01 02 00 00 00 00 65 [16:44:48]Write i2c OK [16:44:48]MH_I2C_Read... [16:44:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:49]Read from MH i2c: E2 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 03 00 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 03 00 B7 35 00 90 00 60 [16:44:49]RAPDU: 90 00 [16:44:49]wFMCommunicate OK [16:44:49]wFMCommunicate request_size=255 [16:44:49]MH_SAM_APDU [16:44: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 24 4E 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 79 62 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 62 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 FF 00 00 00 00 07 04 06 00 58 62 09 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 82 5D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 81 02 00 35 04 06 00 DC A2 F6 40 [16:44:49]Write to MH i2c: E2 02 01 B8 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 4E 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 79 62 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 62 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 FF 00 00 00 00 07 04 06 00 58 62 09 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 82 5D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 81 02 00 35 04 06 00 DC A2 F6 40 00 00 CB [16:44:49]Write i2c OK [16:44:49]MH_I2C_Read... [16:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:49]Read from MH i2c: E2 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 03 00 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 03 00 B8 35 00 90 00 61 [16:44:49]RAPDU: 90 00 [16:44:49]wFMCommunicate OK [16:44:49]wFMCommunicate request_size=7 [16:44:49]MH_SAM_APDU [16:44:49]CAPDU: 80 0D 02 02 02 F4 6B [16:44:49]Write to MH i2c: E2 0A 00 B9 35 80 0D 02 02 02 00 F4 6B 00 00 CB [16:44:49]Write i2c OK [16:44:49]MH_I2C_Read... [16:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:49]Read from MH i2c: E2 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 03 00 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 03 00 B9 35 00 90 00 62 [16:44:49]RAPDU: 90 00 [16:44:49]wFMCommunicate OK [16:44:49]wFMCommunicate request_size=4 [16:44:49]MH_SAM_APDU [16:44:49]CAPDU: 80 0D 03 02 [16:44:49]Write to MH i2c: E2 08 00 BA 35 80 0D 03 02 00 00 00 00 6A [16:44:49]Write i2c OK [16:44:49]MH_I2C_Read... [16:44:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:49]Read from MH i2c: E2 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 0B 00 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 0B 00 BA 35 00 08 D0 31 98 60 3F C6 7C 90 00 ED [16:44:49]RAPDU: 08 D0 31 98 60 3F C6 7C 90 00 [16:44:49]wFMCommunicate OK [16:44:49]SAM_PROTO_SignData done [16:44:49]FM_MakeSignedData done [16:44:49]CreateOFDProtocolMessage [16:44:49]wFMCommunicate request_size=4 [16:44:49]MH_SAM_APDU [16:44:49]CAPDU: 80 11 00 00 [16:44:49]Write to MH i2c: E2 08 00 BB 35 80 11 00 00 00 00 00 00 6A [16:44:49]Write i2c OK [16:44:49]MH_I2C_Read... [16:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:49]Read from MH i2c: E2 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 17 00 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: E2 17 00 BB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [16:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:44:49]wFMCommunicate OK [16:44:49]CreateOFDProtocolMessage done [16:44:49]OFDSenderStorePacket 164304 [16:44:49]StoreOFDPacket docnum=164304 [16:44:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AF 88 04 01 4B 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 4E 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 79 62 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 62 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 FF 00 00 00 00 07 04 06 00 58 62 09 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 82 5D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 81 02 00 35 04 06 00 DC A2 F6 40 F4 6B 08 D0 31 98 60 3F C6 7C [16:44:49]CheckFolder [16:44:49]dirname=/storage/ofd_packets [16:44:49]CheckFolder done [16:44:49]ProducePacketName [16:44:49]name=ofd_packets/00164304 [16:44:49]NVStorageSaveData ofd_packets/00164304 [16:44:49]File name is /storage/ofd_packets/00164304 [16:44:49]Write 298 bytes [16:44:49]NVStorageSaveData done [16:44:49]OFDSenderStorePacket done [16:44:49]KKMCreateOFDPacket done [16:44:49]NVStorageSaveData kkm_last_timestamp [16:44:49]File name is /storage/kkm_last_timestamp [16:44:49]Write 4 bytes [16:44:49]NVStorageSaveData done [16:44:49]ExternCall_PrintAddStr [16:44:49]wPrintStart [16:44:49]Write to MH i2c: 01 00 00 BC 35 F1 [16:44:49]Write i2c OK [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: 01 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: 01 07 00 [16:44:49]MH_I2C_Read... [16:44:49]Read from MH i2c: 01 07 00 BC 35 00 00 00 00 00 FF 0F 06 [16:44:49]RasterBufferAndPrint [16:44:49]line Счет N : (1)458387 [16:44:49]line ИНН: 02508201610067 [16:44:49]line Контрольно-Кассовый Чек [16:44:49]line ПРОДАЖА [16:44:49]line ТРК (МРК, ГНК) : 11 [16:44:49]line Товар: 2710194210 [16:44:49]line ДТ-К-5 [16:44:49]line 85.540 * 71.90 [16:44:49]line = 6150.33 [16:44:49]line НДС 12% НСП 1% [16:44:49]line > о реализуемом товаре [16:44:49]line ОКРУГЛЕНИЕ: -0.33 [16:44:49]line ИТОГО: 6150.00 [16:44:49]line Внесено: 6150.00 [16:44:49]line СДАЧА: 0.00 [16:44:49]line НСП 1% : 54.43 [16:44:49]line НДС 12% : 653.13 [16:44:49]line Наличными: 6150.00 [16:44:49]line Безнал.: 0.00 [16:44:49]line Место: АЗС № 72 "Партнер Нефть" [16:44:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:44:49]line СНО: Общий режим [16:44:49]line Чек 225 12.07.2024 16:44 [16:44:49]line Смена: 445 ФФД: 1.0 [16:44:49]line ЗНМ: 0300000160 [16:44:49]line РНМ: 0000000000090829 [16:44:49]line Версия ККМ: 001 [16:44:49]line ФМ: 0000000000874718 [16:44:49]line ФД: 164304 [16:44:49]line ФПД: 242592474264683 [16:44:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T164450&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164304&fm=242592474264683&tin=02508201610067®Number=0000000000090829&sum=615000 [16:44:49]OFD Sender: Processing packet 164304 [packets to send 104, broken 103] [16:44:49]ProducePacketName [16:44:49]name=ofd_packets/00164304 [16:44:49]OFD Sender: To server: pG, [16:44:49]CommunicateWithHost lk.salyk.kg:30040 [16:44:49]ConnectInit lk.salyk.kg [16:44:49]written 0, free lines is 4095 [16:44:50]Write to MH i2c: 01 00 00 E6 35 1B [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: 01 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: 01 07 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: 01 07 00 E6 35 00 00 00 00 00 F8 0C 26 [16:44:50]RasterBufferAndPrint [16:44:50]line [16:44:50]line [16:44:50]line [16:44:50]line [16:44:50]line [16:44:50]written 0, free lines is 3327 [16:44:50]MH_Cut [16:44:50]Write to MH i2c: D1 01 00 ED 35 01 F4 [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: D1 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: D1 01 00 [16:44:50]MH_I2C_Read... [16:44:50]Read from MH i2c: D1 01 00 ED 35 00 F3 [16:44:50]Write to MH i2c: 01 00 00 EE 35 23 [16:44:50]Write i2c OK [16:44:50]MH_I2C_Read... [16:44:50]*** Cut start [16:44:50]*** Partial cut [16:44:50]*** CUTSNS_PIN = 1 [16:44:50]*** CUTSNS_PIN = 0 [16:44:51]*** Brake cut motor [16:44:51]Read from MH i2c: 01 [16:44:51]MH_I2C_Read... [16:44:51]*** Stop cut motor [16:44:51]*** Cut end [16:44:51]Read from MH i2c: 01 07 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: 01 07 00 EE 35 00 00 00 00 00 FF 0F 38 [16:44:51]process_action close_receipt done [16:44:51]requested_data is exist [16:44:51]produce_requested_data [16:44:51]requested_item fm.sn is exist - process it [16:44:51]wFMCommunicate request_size=4 [16:44:51]MH_SAM_APDU [16:44:51]CAPDU: 80 11 00 00 [16:44:51]Write to MH i2c: E2 08 00 EF 35 80 11 00 00 00 00 00 00 9E [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:51]Read from MH i2c: E2 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 17 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 17 00 EF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [16:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:44:51]wFMCommunicate OK [16:44:51]requested_item fd.num is exist - process it [16:44:51]SAM_PROTO_GetFieldsCounters [16:44:51]wFMCommunicate request_size=4 [16:44:51]MH_SAM_APDU [16:44:51]CAPDU: 80 13 00 00 [16:44:51]Write to MH i2c: E2 08 00 F0 35 80 13 00 00 00 00 00 00 A1 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:51]Read from MH i2c: E2 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 62 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 62 00 F0 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:51]wFMCommunicate OK [16:44:51]SAM_PROTO_GetFieldsCounters done [16:44:51]requested_item shift.num is exist - process it [16:44:51]requested_item shift.opened is exist - process it [16:44:51]req_shift_opened [16:44:51]FM_GetShiftState [16:44:51]SAM_PROTO_GetShiftState [16:44:51]wFMCommunicate request_size=4 [16:44:51]MH_SAM_APDU [16:44:51]CAPDU: 80 13 01 00 [16:44:51]Write to MH i2c: E2 08 00 F1 35 80 13 01 00 00 00 00 00 A3 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:51]Read from MH i2c: E2 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 0E 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 0E 00 F1 35 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 ED [16:44:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:44:51]wFMCommunicate OK [16:44:51]SAM_PROTO_GetShiftState done [16:44:51]FM_GetShiftState done [16:44:51]req_shift_opened done [16:44:51]requested_item shift.open_date is exist - process it [16:44:51]req_shift_open_date [16:44:51]req_shift_open_date done [16:44:51]produce_requested_data done [16:44:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164304,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:44:51]process_action_free close_receipt [16:44:51]json_value_free [16:44:51]json_value_free done [16:44:51]process_json_proto returns [16:44:51]Send response to host [16:44:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164304,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:44:51]free response buf [16:44:51]execute_script done [16:44:51]execute_script returns [16:44:51]free content buf [16:44:51]Sock 10.Close socket [16:44:51]Sock 10.Thread stoped [16:47:01]ConnectInit Can't connect to host [16:47:01]CommunicateWithHost connect error [16:47:01]CommunicateWithHost err = -1 [16:47:01]OFD Sender: Server communicate error [16:47:06]OFD Sender: Processing packet 164304 [packets to send 104, broken 103] [16:47:06]ProducePacketName [16:47:06]name=ofd_packets/00164304 [16:47:06]OFD Sender: To server: pG, [16:47:06]CommunicateWithHost lk.salyk.kg:30040 [16:47:06]ConnectInit lk.salyk.kg [16:47:06]Connected sock=9 [16:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AF 88 04 01 4B 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 4E 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 79 62 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 62 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 FF 00 00 00 00 07 04 06 00 58 62 09 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 82 5D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 81 02 00 35 04 06 00 DC A2 F6 40 F4 6B 08 D0 31 98 60 3F C6 7C [16:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 17 88 47 00 E8 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 81 02 00 F4 03 04 00 9E 04 91 66 B6 04 01 00 00 F8 49 F9 DB 04 D7 87 B3 [16:47:06]CommunicateWithHost err = 0 [16:47:06]CheckOFDResponse [16:47:06]1017 (14) - 77093643461234 [16:47:06]1041 (16) - 0000000000874718 [16:47:06]1040 (4) - 164304 [16:47:06]1012 (4) - 12.07.2024 10:25 [16:47:06]1206 (1) - 0 [16:47:06]OFD Sender: Remove packet 164304 [16:47:06]ProducePacketName [16:47:06]name=ofd_packets/00164304 [16:47:06]NVStorageDeleteData [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:22]accept exits with 7 [16:47:22]New connection [16:47:22]New thread 3066850660 created [16:47:22]Thread 3066707300 joined [16:47:22]Waiting for new connection... [16:47:22] Sock 7.Parse request [16:47:22]Sock 7.Check first char [16:47:22]Sock 7.First char is OK [16:47:22]request: POST /json_proto HTTP/1.0 [16:47:22]Method: POST [16:47:22]URL: /json_proto [16:47:22]Method is POST - this is cgi request [16:47:22]url: /json_proto [16:47:22]query_string will be loaded in cgi processing [16:47:22]execute_cgi json_proto POST (null) [16:47:22]execute_cgi path=json_proto method=POST [16:47:22]POST find Content-Length [16:47:22]Host: 172.17.56.4:8080 [16:47:22]Content-Length: 678 [16:47:22]Content-Type: application/json [16:47:22] [16:47:22]POST finish read [16:47:22]Found Content-Length = 678 [16:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:22]execute_script... [16:47: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)458388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:22]POST & json_proto [16:47:22]process_json_proto [16:47:22]json parsed OK: [16:47:22]protocol is kg_v1.0 [16:47:22]action value=close_receipt [16:47:22]process_action close_receipt [16:47:22]cmd_close_receipt [16:47:22]MH_GetDate [16:47:22]Write to MH i2c: F0 00 00 F2 35 16 [16:47:22]Write i2c OK [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: F0 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: F0 09 00 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: F0 09 00 F2 35 00 1C 5E 91 66 C9 DC B2 64 4B [16:47:22]GetLastDocTimeStamp 1720802690 [16:47:22]current date 1720802844 [16:47:22]FM_GetShiftState [16:47:22]SAM_PROTO_GetShiftState [16:47:22]wFMCommunicate request_size=4 [16:47:22]MH_SAM_APDU [16:47:22]CAPDU: 80 13 01 00 [16:47:22]Write to MH i2c: E2 08 00 F3 35 80 13 01 00 00 00 00 00 A5 [16:47:22]Write i2c OK [16:47:22]MH_I2C_Read... [16:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:22]Read from MH i2c: E2 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: E2 0E 00 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: E2 0E 00 F3 35 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EF [16:47:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:47:22]wFMCommunicate OK [16:47:22]SAM_PROTO_GetShiftState done [16:47:22]FM_GetShiftState done [16:47:22]opened in 1720744654 [16:47:22]opened+sec_in_day 1720831054 [16:47:22]quantity*price = 66063 [16:47:22]sum+1 = 66064 [16:47:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 226 12.07.2024 16:47 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164305 ФПД: 268709400628600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T164725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164305&fm=268709400628600&tin=02508201610067®Number=0000000000090829&sum=66000 [16:47:23]StoreToDocumentArchive [16:47:23]shift 445 fd 164305 [16:47:23]save to /storage/0445/doc_00164305 [16:47:23]save last doc name /storage/0445/doc_00164305 to /storage/kkm_last_doc_name [16:47:23]save OK [16:47:23]Clear old archive folders... [16:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:23]tlvbuf is 00AB32D0 [16:47:23]SAM_PROTO_ClearQueue [16:47:23]wFMCommunicate request_size=4 [16:47:23]MH_SAM_APDU [16:47:23]CAPDU: 80 09 00 00 [16:47:23]Write to MH i2c: E2 08 00 00 36 80 09 00 00 00 00 00 00 A8 [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:23]Read from MH i2c: E2 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 03 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 03 00 00 36 00 90 00 AA [16:47:23]RAPDU: 90 00 [16:47:23]wFMCommunicate OK [16:47:23]SAM_PROTO_ClearQueue done [16:47:23]KKMCreateOFDPacket [16:47:23]OFDProtocolAddRootSTLVToBuf [16:47:23]FM_MakeSignedData [16:47:23]FM_MakeSignedData [16:47:23]SAM_PROTO_SignData [16:47:23]wFMCommunicate request_size=4 [16:47:23]MH_SAM_APDU [16:47:23]CAPDU: 80 0D 01 02 [16:47:23]Write to MH i2c: E2 08 00 01 36 80 0D 01 02 00 00 00 00 B0 [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:23]Read from MH i2c: E2 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 03 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 03 00 01 36 00 90 00 AB [16:47:23]RAPDU: 90 00 [16:47:23]wFMCommunicate OK [16:47:23]wFMCommunicate request_size=255 [16:47:23]MH_SAM_APDU [16:47: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 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1D 5E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 81 02 00 35 04 06 00 F4 [16:47:23]Write to MH i2c: E2 02 01 02 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1D 5E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 81 02 00 35 04 06 00 F4 00 00 C9 [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:24]Read from MH i2c: E2 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 03 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 03 00 02 36 00 90 00 AC [16:47:24]RAPDU: 90 00 [16:47:24]wFMCommunicate OK [16:47:24]wFMCommunicate request_size=10 [16:47:24]MH_SAM_APDU [16:47:24]CAPDU: 80 0D 02 02 05 63 C8 5F 4D 78 [16:47:24]Write to MH i2c: E2 0D 00 03 36 80 0D 02 02 05 00 63 C8 5F 4D 78 00 00 0C [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:24]Read from MH i2c: E2 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 03 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 03 00 03 36 00 90 00 AD [16:47:24]RAPDU: 90 00 [16:47:24]wFMCommunicate OK [16:47:24]wFMCommunicate request_size=4 [16:47:24]MH_SAM_APDU [16:47:24]CAPDU: 80 0D 03 02 [16:47:24]Write to MH i2c: E2 08 00 04 36 80 0D 03 02 00 00 00 00 B5 [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:24]Read from MH i2c: E2 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 0B 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 0B 00 04 36 00 43 3B D8 BC 04 F0 D4 82 90 00 12 [16:47:24]RAPDU: 43 3B D8 BC 04 F0 D4 82 90 00 [16:47:24]wFMCommunicate OK [16:47:24]SAM_PROTO_SignData done [16:47:24]FM_MakeSignedData done [16:47:24]CreateOFDProtocolMessage [16:47:24]wFMCommunicate request_size=4 [16:47:24]MH_SAM_APDU [16:47:24]CAPDU: 80 11 00 00 [16:47:24]Write to MH i2c: E2 08 00 05 36 80 11 00 00 00 00 00 00 B5 [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:24]Read from MH i2c: E2 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 17 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 17 00 05 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [16:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:47:24]wFMCommunicate OK [16:47:24]CreateOFDProtocolMessage done [16:47:24]OFDSenderStorePacket 164305 [16:47:24]StoreOFDPacket docnum=164305 [16:47:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 DC 07 01 73 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 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1D 5E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 81 02 00 35 04 06 00 F4 63 C8 5F 4D 78 43 3B D8 BC 04 F0 D4 82 [16:47:24]CheckFolder [16:47:24]dirname=/storage/ofd_packets [16:47:24]CheckFolder done [16:47:24]ProducePacketName [16:47:24]name=ofd_packets/00164305 [16:47:24]NVStorageSaveData ofd_packets/00164305 [16:47:24]File name is /storage/ofd_packets/00164305 [16:47:24]Write 301 bytes [16:47:24]NVStorageSaveData done [16:47:24]OFDSenderStorePacket done [16:47:24]KKMCreateOFDPacket done [16:47:24]NVStorageSaveData kkm_last_timestamp [16:47:24]File name is /storage/kkm_last_timestamp [16:47:24]Write 4 bytes [16:47:24]NVStorageSaveData done [16:47:24]OFD Sender: Processing packet 164305 [packets to send 104, broken 103] [16:47:24]ProducePacketName [16:47:24]name=ofd_packets/00164305 [16:47:24]OFD Sender: To server: pG, [16:47:24]CommunicateWithHost lk.salyk.kg:30040 [16:47:24]ConnectInit lk.salyk.kg [16:47:24]ExternCall_PrintAddStr [16:47:24]wPrintStart [16:47:24]Write to MH i2c: 01 00 00 06 36 3C [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: 01 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: 01 07 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: 01 07 00 06 36 00 00 00 00 00 FF 0F 51 [16:47:24]RasterBufferAndPrint [16:47:24]line Счет N : (1)458388 [16:47:24]line ИНН: 02508201610067 [16:47:24]line Контрольно-Кассовый Чек [16:47:24]line ПРОДАЖА [16:47:24]line ТРК (МРК, ГНК) : 22 [16:47:24]line Товар: 2710124130 [16:47:24]line Аи-92-К-5 [16:47:24]line 10.040 * 65.80 [16:47:24]line = 660.63 [16:47:24]line НДС 12% НСП 1% [16:47:24]line > о реализуемом товаре [16:47:24]line ОКРУГЛЕНИЕ: -0.63 [16:47:24]line ИТОГО: 660.00 [16:47:24]line Внесено: 660.00 [16:47:24]line СДАЧА: 0.00 [16:47:24]line НСП 1% : 5.85 [16:47:24]line НДС 12% : 70.15 [16:47:24]line Наличными: 660.00 [16:47:24]line Безнал.: 0.00 [16:47:24]line Место: АЗС № 72 "Партнер Нефть" [16:47:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:47:24]line СНО: Общий режим [16:47:24]line Чек 226 12.07.2024 16:47 [16:47:24]line Смена: 445 ФФД: 1.0 [16:47:24]line ЗНМ: 0300000160 [16:47:24]line РНМ: 0000000000090829 [16:47:24]line Версия ККМ: 001 [16:47:24]line ФМ: 0000000000874718 [16:47:24]line ФД: 164305 [16:47:24]line ФПД: 268709400628600 [16:47:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T164725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164305&fm=268709400628600&tin=02508201610067®Number=0000000000090829&sum=66000 [16:47:24]Connected sock=11 [16:47:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 DC 07 01 73 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 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1D 5E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 81 02 00 35 04 06 00 F4 63 C8 5F 4D 78 43 3B D8 BC 04 F0 D4 82 [16:47:24]written 0, free lines is 4095 [16:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 65 6F 47 00 60 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 34 37 31 38 10 04 04 00 D1 81 02 00 F4 03 04 00 B0 04 91 66 B6 04 01 00 00 C2 0D 75 D0 DA 6B FD 18 [16:47:24]CommunicateWithHost err = 0 [16:47:24]CheckOFDResponse [16:47:24]1017 (14) - 77093643461234 [16:47:24]1041 (16) - 0000000000874718 [16:47:24]1040 (4) - 164305 [16:47:24]1012 (4) - 12.07.2024 10:25 [16:47:24]1206 (1) - 0 [16:47:24]OFD Sender: Remove packet 164305 [16:47:24]ProducePacketName [16:47:24]name=ofd_packets/00164305 [16:47:24]NVStorageDeleteData [16:47:25]Write to MH i2c: 01 00 00 30 36 66 [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: 01 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: 01 07 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: 01 07 00 30 36 00 00 00 00 00 02 0D 7C [16:47:25]RasterBufferAndPrint [16:47:25]line [16:47:25]line [16:47:25]line [16:47:25]line [16:47:25]line [16:47:25]written 0, free lines is 3336 [16:47:25]MH_Cut [16:47:25]Write to MH i2c: D1 01 00 37 36 01 3F [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: D1 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: D1 01 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: D1 01 00 37 36 00 3E [16:47:25]Write to MH i2c: 01 00 00 38 36 6E [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]OFD Sender: No OFD packet to send [16:47:25]*** Cut start [16:47:25]*** Partial cut [16:47:25]*** CUTSNS_PIN = 1 [16:47:25]*** CUTSNS_PIN = 0 [16:47:26]*** Brake cut motor [16:47:26]Read from MH i2c: 01 [16:47:26]MH_I2C_Read... [16:47:26]*** Stop cut motor [16:47:26]*** Cut end [16:47:26]Read from MH i2c: 01 07 00 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: 01 07 00 38 36 00 00 00 00 00 FF 0F 83 [16:47:26]process_action close_receipt done [16:47:26]requested_data is exist [16:47:26]produce_requested_data [16:47:26]requested_item fm.sn is exist - process it [16:47:26]wFMCommunicate request_size=4 [16:47:26]MH_SAM_APDU [16:47:26]CAPDU: 80 11 00 00 [16:47:26]Write to MH i2c: E2 08 00 39 36 80 11 00 00 00 00 00 00 E9 [16:47:26]Write i2c OK [16:47:26]MH_I2C_Read... [16:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:26]Read from MH i2c: E2 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 17 00 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 17 00 39 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [16:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:47:26]wFMCommunicate OK [16:47:26]requested_item fd.num is exist - process it [16:47:26]SAM_PROTO_GetFieldsCounters [16:47:26]wFMCommunicate request_size=4 [16:47:26]MH_SAM_APDU [16:47:26]CAPDU: 80 13 00 00 [16:47:26]Write to MH i2c: E2 08 00 3A 36 80 13 00 00 00 00 00 00 EC [16:47:26]Write i2c OK [16:47:26]MH_I2C_Read... [16:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:26]Read from MH i2c: E2 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 62 00 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 62 00 3A 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [16:47: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:26]wFMCommunicate OK [16:47:26]SAM_PROTO_GetFieldsCounters done [16:47:26]requested_item shift.num is exist - process it [16:47:26]requested_item shift.opened is exist - process it [16:47:26]req_shift_opened [16:47:26]FM_GetShiftState [16:47:26]SAM_PROTO_GetShiftState [16:47:26]wFMCommunicate request_size=4 [16:47:26]MH_SAM_APDU [16:47:26]CAPDU: 80 13 01 00 [16:47:26]Write to MH i2c: E2 08 00 3B 36 80 13 01 00 00 00 00 00 EE [16:47:26]Write i2c OK [16:47:26]MH_I2C_Read... [16:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:26]Read from MH i2c: E2 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 0E 00 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: E2 0E 00 3B 36 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 38 [16:47:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:47:26]wFMCommunicate OK [16:47:26]SAM_PROTO_GetShiftState done [16:47:26]FM_GetShiftState done [16:47:26]req_shift_opened done [16:47:26]requested_item shift.open_date is exist - process it [16:47:26]req_shift_open_date [16:47:26]req_shift_open_date done [16:47:26]produce_requested_data done [16:47:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164305,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:47:26]process_action_free close_receipt [16:47:26]json_value_free [16:47:26]json_value_free done [16:47:26]process_json_proto returns [16:47:26]Send response to host [16:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164305,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:47:26]free response buf [16:47:26]execute_script done [16:47:26]execute_script returns [16:47:26]free content buf [16:47:26]Sock 7.Close socket [16:47:26]Sock 7.Thread stoped [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50: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:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:38]accept exits with 9 [16:55:38]New connection [16:55:38]New thread 3066707300 created [16:55:38]Thread 3066850660 joined [16:55:38]Waiting for new connection... [16:55:38] Sock 9.Parse request [16:55:38]Sock 9.Check first char [16:55:38]Sock 9.First char is OK [16:55:38]request: POST /json_proto HTTP/1.0 [16:55:38]Method: POST [16:55:38]URL: /json_proto [16:55:38]Method is POST - this is cgi request [16:55:38]url: /json_proto [16:55:38]query_string will be loaded in cgi processing [16:55:38]execute_cgi json_proto POST (null) [16:55:38]execute_cgi path=json_proto method=POST [16:55:38]POST find Content-Length [16:55:38]Host: 172.17.56.4:8080 [16:55:38]Content-Length: 677 [16:55:38]Content-Type: application/json [16:55:38] [16:55:38]POST finish read [16:55:38]Found Content-Length = 677 [16:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:38]execute_script... [16:55: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)458390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:38]POST & json_proto [16:55:38]process_json_proto [16:55:38]json parsed OK: [16:55:38]protocol is kg_v1.0 [16:55:38]action value=close_receipt [16:55:38]process_action close_receipt [16:55:38]cmd_close_receipt [16:55:38]MH_GetDate [16:55:38]Write to MH i2c: F0 00 00 3C 36 61 [16:55:38]Write i2c OK [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: F0 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: F0 09 00 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: F0 09 00 3C 36 00 0C 60 91 66 C9 DC B2 64 88 [16:55:38]GetLastDocTimeStamp 1720802845 [16:55:38]current date 1720803340 [16:55:38]FM_GetShiftState [16:55:38]SAM_PROTO_GetShiftState [16:55:38]wFMCommunicate request_size=4 [16:55:38]MH_SAM_APDU [16:55:38]CAPDU: 80 13 01 00 [16:55:38]Write to MH i2c: E2 08 00 3D 36 80 13 01 00 00 00 00 00 F0 [16:55:38]Write i2c OK [16:55:38]MH_I2C_Read... [16:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:38]Read from MH i2c: E2 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 0E 00 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 0E 00 3D 36 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3A [16:55:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:55:38]wFMCommunicate OK [16:55:38]SAM_PROTO_GetShiftState done [16:55:38]FM_GetShiftState done [16:55:38]opened in 1720744654 [16:55:38]opened+sec_in_day 1720831054 [16:55:38]quantity*price = 32044 [16:55:38]sum+1 = 32046 [16:55:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 227 12.07.2024 16:55 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164306 ФПД: 25698141891971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T165540&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164306&fm=25698141891971&tin=02508201610067®Number=0000000000090829&sum=32000 [16:55:39]StoreToDocumentArchive [16:55:39]shift 445 fd 164306 [16:55:39]save to /storage/0445/doc_00164306 [16:55:39]save last doc name /storage/0445/doc_00164306 to /storage/kkm_last_doc_name [16:55:39]save OK [16:55:39]Clear old archive folders... [16:55:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:39]tlvbuf is 00A68B30 [16:55:39]SAM_PROTO_ClearQueue [16:55:39]wFMCommunicate request_size=4 [16:55:39]MH_SAM_APDU [16:55:39]CAPDU: 80 09 00 00 [16:55:39]Write to MH i2c: E2 08 00 4A 36 80 09 00 00 00 00 00 00 F2 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:39]Read from MH i2c: E2 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 03 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 03 00 4A 36 00 90 00 F4 [16:55:39]RAPDU: 90 00 [16:55:39]wFMCommunicate OK [16:55:39]SAM_PROTO_ClearQueue done [16:55:39]KKMCreateOFDPacket [16:55:39]OFDProtocolAddRootSTLVToBuf [16:55:39]FM_MakeSignedData [16:55:39]FM_MakeSignedData [16:55:39]SAM_PROTO_SignData [16:55:39]wFMCommunicate request_size=4 [16:55:39]MH_SAM_APDU [16:55:39]CAPDU: 80 0D 01 02 [16:55:39]Write to MH i2c: E2 08 00 4B 36 80 0D 01 02 00 00 00 00 FA [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:39]Read from MH i2c: E2 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 03 00 [16:55:39]MH_I2C_Read... [16:55:39]Read from MH i2c: E2 03 00 4B 36 00 90 00 F5 [16:55:39]RAPDU: 90 00 [16:55:39]wFMCommunicate OK [16:55:39]wFMCommunicate request_size=255 [16:55:39]MH_SAM_APDU [16:55: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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 0C 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 81 02 00 35 04 06 00 17 [16:55:39]Write to MH i2c: E2 02 01 4C 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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 0C 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 81 02 00 35 04 06 00 17 00 00 79 [16:55:39]Write i2c OK [16:55:39]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 4C 36 00 90 00 F6 [16:55:40]RAPDU: 90 00 [16:55:40]wFMCommunicate OK [16:55:40]wFMCommunicate request_size=10 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 0D 02 02 05 5F 50 9E 6D 83 [16:55:40]Write to MH i2c: E2 0D 00 4D 36 80 0D 02 02 05 00 5F 50 9E 6D 83 00 00 44 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 03 00 4D 36 00 90 00 F7 [16:55:40]RAPDU: 90 00 [16:55:40]wFMCommunicate OK [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 0D 03 02 [16:55:40]Write to MH i2c: E2 08 00 4E 36 80 0D 03 02 00 00 00 00 FF [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0B 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 0B 00 4E 36 00 5C 89 15 2A A6 BA 6C 3B 90 00 2B [16:55:40]RAPDU: 5C 89 15 2A A6 BA 6C 3B 90 00 [16:55:40]wFMCommunicate OK [16:55:40]SAM_PROTO_SignData done [16:55:40]FM_MakeSignedData done [16:55:40]CreateOFDProtocolMessage [16:55:40]wFMCommunicate request_size=4 [16:55:40]MH_SAM_APDU [16:55:40]CAPDU: 80 11 00 00 [16:55:40]Write to MH i2c: E2 08 00 4F 36 80 11 00 00 00 00 00 00 FF [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:40]Read from MH i2c: E2 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 17 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: E2 17 00 4F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [16:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:55:40]wFMCommunicate OK [16:55:40]CreateOFDProtocolMessage done [16:55:40]OFDSenderStorePacket 164306 [16:55:40]StoreOFDPacket docnum=164306 [16:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 72 0C 07 01 39 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 0C 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 81 02 00 35 04 06 00 17 5F 50 9E 6D 83 5C 89 15 2A A6 BA 6C 3B [16:55:40]CheckFolder [16:55:40]dirname=/storage/ofd_packets [16:55:40]CheckFolder done [16:55:40]ProducePacketName [16:55:40]name=ofd_packets/00164306 [16:55:40]NVStorageSaveData ofd_packets/00164306 [16:55:40]File name is /storage/ofd_packets/00164306 [16:55:40]Write 301 bytes [16:55:40]NVStorageSaveData done [16:55:40]OFDSenderStorePacket done [16:55:40]KKMCreateOFDPacket done [16:55:40]NVStorageSaveData kkm_last_timestamp [16:55:40]File name is /storage/kkm_last_timestamp [16:55:40]Write 4 bytes [16:55:40]NVStorageSaveData done [16:55:40]ExternCall_PrintAddStr [16:55:40]wPrintStart [16:55:40]Write to MH i2c: 01 00 00 50 36 86 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 50 36 00 00 00 00 00 FF 0F 9B [16:55:40]RasterBufferAndPrint [16:55:40]line Счет N : (1)458390 [16:55:40]line ИНН: 02508201610067 [16:55:40]line Контрольно-Кассовый Чек [16:55:40]line ПРОДАЖА [16:55:40]line ТРК (МРК, ГНК) : 22 [16:55:40]line Товар: 2710124130 [16:55:40]line Аи-92-К-5 [16:55:40]line 4.870 * 65.80 [16:55:40]line = 320.45 [16:55:40]line НДС 12% НСП 1% [16:55:40]line > о реализуемом товаре [16:55:40]line ОКРУГЛЕНИЕ: -0.45 [16:55:40]line ИТОГО: 320.00 [16:55:40]line Внесено: 320.00 [16:55:40]line СДАЧА: 0.00 [16:55:40]line НСП 1% : 2.84 [16:55:40]line НДС 12% : 34.03 [16:55:40]line Наличными: 320.00 [16:55:40]line Безнал.: 0.00 [16:55:40]line Место: АЗС № 72 "Партнер Нефть" [16:55:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:55:40]line СНО: Общий режим [16:55:40]line Чек 227 12.07.2024 16:55 [16:55:40]line Смена: 445 ФФД: 1.0 [16:55:40]line ЗНМ: 0300000160 [16:55:40]line РНМ: 0000000000090829 [16:55:40]line Версия ККМ: 001 [16:55:40]line ФМ: 0000000000874718 [16:55:40]line ФД: 164306 [16:55:40]line ФПД: 25698141891971 [16:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T165540&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164306&fm=25698141891971&tin=02508201610067®Number=0000000000090829&sum=32000 [16:55:40]written 0, free lines is 4095 [16:55:40]OFD Sender: Processing packet 164306 [packets to send 104, broken 103] [16:55:40]ProducePacketName [16:55:40]name=ofd_packets/00164306 [16:55:40]OFD Sender: To server: pG, [16:55:40]CommunicateWithHost lk.salyk.kg:30040 [16:55:40]ConnectInit lk.salyk.kg [16:55:40]Connected sock=10 [16:55:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 72 0C 07 01 39 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 0C 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 81 02 00 35 04 06 00 17 5F 50 9E 6D 83 5C 89 15 2A A6 BA 6C 3B [16:55:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 24 1B 47 00 87 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 81 02 00 F4 03 04 00 A0 06 91 66 B6 04 01 00 00 85 BB 86 C2 50 70 2C 45 [16:55:40]CommunicateWithHost err = 0 [16:55:40]CheckOFDResponse [16:55:40]1017 (14) - 77093643461234 [16:55:40]1041 (16) - 0000000000874718 [16:55:40]1040 (4) - 164306 [16:55:40]1012 (4) - 12.07.2024 10:34 [16:55:40]1206 (1) - 0 [16:55:40]OFD Sender: Remove packet 164306 [16:55:40]ProducePacketName [16:55:40]name=ofd_packets/00164306 [16:55:40]NVStorageDeleteData [16:55:40]Write to MH i2c: 01 00 00 7A 36 B0 [16:55:40]Write i2c OK [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 [16:55:40]MH_I2C_Read... [16:55:40]Read from MH i2c: 01 07 00 7A 36 00 00 00 00 00 0C 0D D0 [16:55:40]RasterBufferAndPrint [16:55:40]line [16:55:40]line [16:55:40]line [16:55:40]line [16:55:40]line [16:55:40]written 0, free lines is 3346 [16:55:41]MH_Cut [16:55:41]Write to MH i2c: D1 01 00 81 36 01 89 [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: D1 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: D1 01 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: D1 01 00 81 36 00 88 [16:55:41]Write to MH i2c: 01 00 00 82 36 B8 [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]OFD Sender: No OFD packet to send [16:55:41]*** Cut start [16:55:41]*** Partial cut [16:55:41]*** CUTSNS_PIN = 1 [16:55:41]*** CUTSNS_PIN = 0 [16:55:41]*** Brake cut motor [16:55:42]Read from MH i2c: 01 [16:55:42]MH_I2C_Read... [16:55:42]*** Stop cut motor [16:55:42]*** Cut end [16:55:42]Read from MH i2c: 01 07 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: 01 07 00 82 36 00 00 00 00 00 FF 0F CD [16:55:42]process_action close_receipt done [16:55:42]requested_data is exist [16:55:42]produce_requested_data [16:55:42]requested_item fm.sn is exist - process it [16:55:42]wFMCommunicate request_size=4 [16:55:42]MH_SAM_APDU [16:55:42]CAPDU: 80 11 00 00 [16:55:42]Write to MH i2c: E2 08 00 83 36 80 11 00 00 00 00 00 00 33 [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:42]Read from MH i2c: E2 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 17 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 17 00 83 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [16:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:55:42]wFMCommunicate OK [16:55:42]requested_item fd.num is exist - process it [16:55:42]SAM_PROTO_GetFieldsCounters [16:55:42]wFMCommunicate request_size=4 [16:55:42]MH_SAM_APDU [16:55:42]CAPDU: 80 13 00 00 [16:55:42]Write to MH i2c: E2 08 00 84 36 80 13 00 00 00 00 00 00 36 [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:42]Read from MH i2c: E2 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 62 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 62 00 84 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [16:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:42]wFMCommunicate OK [16:55:42]SAM_PROTO_GetFieldsCounters done [16:55:42]requested_item shift.num is exist - process it [16:55:42]requested_item shift.opened is exist - process it [16:55:42]req_shift_opened [16:55:42]FM_GetShiftState [16:55:42]SAM_PROTO_GetShiftState [16:55:42]wFMCommunicate request_size=4 [16:55:42]MH_SAM_APDU [16:55:42]CAPDU: 80 13 01 00 [16:55:42]Write to MH i2c: E2 08 00 85 36 80 13 01 00 00 00 00 00 38 [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:42]Read from MH i2c: E2 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 0E 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: E2 0E 00 85 36 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 82 [16:55:42]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:55:42]wFMCommunicate OK [16:55:42]SAM_PROTO_GetShiftState done [16:55:42]FM_GetShiftState done [16:55:42]req_shift_opened done [16:55:42]requested_item shift.open_date is exist - process it [16:55:42]req_shift_open_date [16:55:42]req_shift_open_date done [16:55:42]produce_requested_data done [16:55:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164306,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:55:42]process_action_free close_receipt [16:55:42]json_value_free [16:55:42]json_value_free done [16:55:42]process_json_proto returns [16:55:42]Send response to host [16:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164306,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:55:42]free response buf [16:55:42]execute_script done [16:55:42]execute_script returns [16:55:42]free content buf [16:55:42]Sock 9.Close socket [16:55:42]Sock 9.Thread stoped [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:55]accept exits with 7 [16:55:55]New connection [16:55:55]New thread 3066850660 created [16:55:55]Thread 3066707300 joined [16:55:55]Waiting for new connection... [16:55:55] Sock 7.Parse request [16:55:55]Sock 7.Check first char [16:55:55]Sock 7.First char is OK [16:55:55]request: POST /json_proto HTTP/1.0 [16:55:55]Method: POST [16:55:55]URL: /json_proto [16:55:55]Method is POST - this is cgi request [16:55:55]url: /json_proto [16:55:55]query_string will be loaded in cgi processing [16:55:55]execute_cgi json_proto POST (null) [16:55:55]execute_cgi path=json_proto method=POST [16:55:55]POST find Content-Length [16:55:55]Host: 172.17.56.4:8080 [16:55:55]Content-Length: 677 [16:55:55]Content-Type: application/json [16:55:55] [16:55:55]POST finish read [16:55:55]Found Content-Length = 677 [16:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:55]execute_script... [16:55:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:55]POST & json_proto [16:55:55]process_json_proto [16:55:55]json parsed OK: [16:55:55]protocol is kg_v1.0 [16:55:55]action value=close_receipt [16:55:55]process_action close_receipt [16:55:55]cmd_close_receipt [16:55:55]MH_GetDate [16:55:55]Write to MH i2c: F0 00 00 86 36 AB [16:55:55]Write i2c OK [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: F0 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: F0 09 00 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: F0 09 00 86 36 00 1E 60 91 66 C9 DC B2 64 E4 [16:55:55]GetLastDocTimeStamp 1720803340 [16:55:55]current date 1720803358 [16:55:55]FM_GetShiftState [16:55:55]SAM_PROTO_GetShiftState [16:55:55]wFMCommunicate request_size=4 [16:55:55]MH_SAM_APDU [16:55:55]CAPDU: 80 13 01 00 [16:55:55]Write to MH i2c: E2 08 00 87 36 80 13 01 00 00 00 00 00 3A [16:55:55]Write i2c OK [16:55:55]MH_I2C_Read... [16:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:55]Read from MH i2c: E2 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: E2 0E 00 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: E2 0E 00 87 36 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 84 [16:55:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:55:55]wFMCommunicate OK [16:55:55]SAM_PROTO_GetShiftState done [16:55:55]FM_GetShiftState done [16:55:55]opened in 1720744654 [16:55:55]opened+sec_in_day 1720831054 [16:55:55]quantity*price = 30004 [16:55:55]sum+1 = 30006 [16:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 228 12.07.2024 16:55 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164307 ФПД: 91118388847541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T165558&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164307&fm=91118388847541&tin=02508201610067®Number=0000000000090829&sum=30000 [16:55:57]StoreToDocumentArchive [16:55:57]shift 445 fd 164307 [16:55:57]save to /storage/0445/doc_00164307 [16:55:57]save last doc name /storage/0445/doc_00164307 to /storage/kkm_last_doc_name [16:55:57]save OK [16:55:57]Clear old archive folders... [16:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:57]tlvbuf is 00A73170 [16:55:57]SAM_PROTO_ClearQueue [16:55:57]wFMCommunicate request_size=4 [16:55:57]MH_SAM_APDU [16:55:57]CAPDU: 80 09 00 00 [16:55:57]Write to MH i2c: E2 08 00 94 36 80 09 00 00 00 00 00 00 3C [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 94 36 00 90 00 3E [16:55:57]RAPDU: 90 00 [16:55:57]wFMCommunicate OK [16:55:57]SAM_PROTO_ClearQueue done [16:55:57]KKMCreateOFDPacket [16:55:57]OFDProtocolAddRootSTLVToBuf [16:55:57]FM_MakeSignedData [16:55:57]FM_MakeSignedData [16:55:57]SAM_PROTO_SignData [16:55:57]wFMCommunicate request_size=4 [16:55:57]MH_SAM_APDU [16:55:57]CAPDU: 80 0D 01 02 [16:55:57]Write to MH i2c: E2 08 00 95 36 80 0D 01 02 00 00 00 00 44 [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 95 36 00 90 00 3F [16:55:57]RAPDU: 90 00 [16:55:57]wFMCommunicate OK [16:55:57]wFMCommunicate request_size=255 [16:55:57]MH_SAM_APDU [16:55: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1E 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 81 02 00 35 04 06 00 52 [16:55:57]Write to MH i2c: E2 02 01 96 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1E 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 81 02 00 35 04 06 00 52 00 00 3D [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 96 36 00 90 00 40 [16:55:57]RAPDU: 90 00 [16:55:57]wFMCommunicate OK [16:55:57]wFMCommunicate request_size=10 [16:55:57]MH_SAM_APDU [16:55:57]CAPDU: 80 0D 02 02 05 DF 27 33 23 B5 [16:55:57]Write to MH i2c: E2 0D 00 97 36 80 0D 02 02 05 00 DF 27 33 23 B5 00 00 62 [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 97 36 00 90 00 41 [16:55:57]RAPDU: 90 00 [16:55:57]wFMCommunicate OK [16:55:57]wFMCommunicate request_size=4 [16:55:57]MH_SAM_APDU [16:55:57]CAPDU: 80 0D 03 02 [16:55:57]Write to MH i2c: E2 08 00 98 36 80 0D 03 02 00 00 00 00 49 [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 0B 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 0B 00 98 36 00 14 9F CC 7F F1 C7 E0 32 90 00 12 [16:55:57]RAPDU: 14 9F CC 7F F1 C7 E0 32 90 00 [16:55:57]wFMCommunicate OK [16:55:57]SAM_PROTO_SignData done [16:55:57]FM_MakeSignedData done [16:55:57]CreateOFDProtocolMessage [16:55:57]wFMCommunicate request_size=4 [16:55:57]MH_SAM_APDU [16:55:57]CAPDU: 80 11 00 00 [16:55:57]Write to MH i2c: E2 08 00 99 36 80 11 00 00 00 00 00 00 49 [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 17 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 17 00 99 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [16:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:55:57]wFMCommunicate OK [16:55:57]CreateOFDProtocolMessage done [16:55:57]OFDSenderStorePacket 164307 [16:55:57]StoreOFDPacket docnum=164307 [16:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F9 09 07 01 28 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1E 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 81 02 00 35 04 06 00 52 DF 27 33 23 B5 14 9F CC 7F F1 C7 E0 32 [16:55:57]CheckFolder [16:55:57]dirname=/storage/ofd_packets [16:55:57]CheckFolder done [16:55:57]ProducePacketName [16:55:57]name=ofd_packets/00164307 [16:55:57]NVStorageSaveData ofd_packets/00164307 [16:55:57]File name is /storage/ofd_packets/00164307 [16:55:57]Write 301 bytes [16:55:57]NVStorageSaveData done [16:55:57]OFDSenderStorePacket done [16:55:57]KKMCreateOFDPacket done [16:55:57]NVStorageSaveData kkm_last_timestamp [16:55:57]File name is /storage/kkm_last_timestamp [16:55:57]Write 4 bytes [16:55:57]NVStorageSaveData done [16:55:57]ExternCall_PrintAddStr [16:55:57]wPrintStart [16:55:57]Write to MH i2c: 01 00 00 9A 36 D0 [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: 01 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: 01 07 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: 01 07 00 9A 36 00 00 00 00 00 FF 0F E5 [16:55:57]RasterBufferAndPrint [16:55:57]line Счет N : (1)458389 [16:55:57]line ИНН: 02508201610067 [16:55:57]line Контрольно-Кассовый Чек [16:55:57]line ПРОДАЖА [16:55:57]line ТРК (МРК, ГНК) : 12 [16:55:57]line Товар: 2710124130 [16:55:57]line Аи-92-К-5 [16:55:57]line 4.560 * 65.80 [16:55:57]line = 300.05 [16:55:57]line НДС 12% НСП 1% [16:55:57]line > о реализуемом товаре [16:55:57]line ОКРУГЛЕНИЕ: -0.05 [16:55:57]line ИТОГО: 300.00 [16:55:57]line Внесено: 300.00 [16:55:57]line СДАЧА: 0.00 [16:55:57]line НСП 1% : 2.65 [16:55:57]line НДС 12% : 31.86 [16:55:57]line Наличными: 300.00 [16:55:57]line Безнал.: 0.00 [16:55:57]line Место: АЗС № 72 "Партнер Нефть" [16:55:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:55:57]line СНО: Общий режим [16:55:57]line Чек 228 12.07.2024 16:55 [16:55:57]line Смена: 445 ФФД: 1.0 [16:55:57]line ЗНМ: 0300000160 [16:55:57]line РНМ: 0000000000090829 [16:55:57]line Версия ККМ: 001 [16:55:57]line ФМ: 0000000000874718 [16:55:57]line ФД: 164307 [16:55:57]line ФПД: 91118388847541 [16:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T165558&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164307&fm=91118388847541&tin=02508201610067®Number=0000000000090829&sum=30000 [16:55:57]OFD Sender: Processing packet 164307 [packets to send 104, broken 103] [16:55:57]ProducePacketName [16:55:57]name=ofd_packets/00164307 [16:55:57]OFD Sender: To server: pG, [16:55:57]CommunicateWithHost lk.salyk.kg:30040 [16:55:57]ConnectInit lk.salyk.kg [16:55:57]written 0, free lines is 4095 [16:55:58]Connected sock=11 [16:55:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F9 09 07 01 28 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 1E 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 81 02 00 35 04 06 00 52 DF 27 33 23 B5 14 9F CC 7F F1 C7 E0 32 [16:55:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BB E8 47 00 02 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 81 02 00 F4 03 04 00 B2 06 91 66 B6 04 01 00 00 99 5B 57 3B C4 FD E9 69 [16:55:58]CommunicateWithHost err = 0 [16:55:58]CheckOFDResponse [16:55:58]1017 (14) - 77093643461234 [16:55:58]1041 (16) - 0000000000874718 [16:55:58]1040 (4) - 164307 [16:55:58]1012 (4) - 12.07.2024 10:34 [16:55:58]1206 (1) - 0 [16:55:58]OFD Sender: Remove packet 164307 [16:55:58]ProducePacketName [16:55:58]name=ofd_packets/00164307 [16:55:58]NVStorageDeleteData [16:55:58]Write to MH i2c: 01 00 00 C4 36 FA [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 07 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 07 00 C4 36 00 00 00 00 00 03 0D 11 [16:55:58]RasterBufferAndPrint [16:55:58]line [16:55:58]line [16:55:58]line [16:55:58]line [16:55:58]line [16:55:58]written 0, free lines is 3337 [16:55:58]MH_Cut [16:55:58]Write to MH i2c: D1 01 00 CB 36 01 D3 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: D1 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: D1 01 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: D1 01 00 CB 36 00 D2 [16:55:58]Write to MH i2c: 01 00 00 CC 36 02 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]OFD Sender: No OFD packet to send [16:55:59]*** Cut start [16:55:59]*** Partial cut [16:55:59]*** CUTSNS_PIN = 1 [16:55:59]*** CUTSNS_PIN = 0 [16:55:59]*** Brake cut motor [16:55:59]Read from MH i2c: 01 [16:55:59]MH_I2C_Read... [16:55:59]*** Stop cut motor [16:55:59]*** Cut end [16:55:59]Read from MH i2c: 01 07 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 07 00 CC 36 00 00 00 00 00 FF 0F 17 [16:55:59]process_action close_receipt done [16:55:59]requested_data is exist [16:55:59]produce_requested_data [16:55:59]requested_item fm.sn is exist - process it [16:55:59]wFMCommunicate request_size=4 [16:55:59]MH_SAM_APDU [16:55:59]CAPDU: 80 11 00 00 [16:55:59]Write to MH i2c: E2 08 00 CD 36 80 11 00 00 00 00 00 00 7D [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:59]Read from MH i2c: E2 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: E2 17 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: E2 17 00 CD 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [16:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:55:59]wFMCommunicate OK [16:55:59]requested_item fd.num is exist - process it [16:55:59]SAM_PROTO_GetFieldsCounters [16:55:59]wFMCommunicate request_size=4 [16:55:59]MH_SAM_APDU [16:55:59]CAPDU: 80 13 00 00 [16:55:59]Write to MH i2c: E2 08 00 CE 36 80 13 00 00 00 00 00 00 80 [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:59]Read from MH i2c: E2 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: E2 62 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: E2 62 00 CE 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [16:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:59]wFMCommunicate OK [16:55:59]SAM_PROTO_GetFieldsCounters done [16:55:59]requested_item shift.num is exist - process it [16:55:59]requested_item shift.opened is exist - process it [16:55:59]req_shift_opened [16:55:59]FM_GetShiftState [16:55:59]SAM_PROTO_GetShiftState [16:55:59]wFMCommunicate request_size=4 [16:55:59]MH_SAM_APDU [16:55:59]CAPDU: 80 13 01 00 [16:55:59]Write to MH i2c: E2 08 00 CF 36 80 13 01 00 00 00 00 00 82 [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:59]Read from MH i2c: E2 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: E2 0E 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: E2 0E 00 CF 36 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CC [16:55:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:55:59]wFMCommunicate OK [16:55:59]SAM_PROTO_GetShiftState done [16:55:59]FM_GetShiftState done [16:55:59]req_shift_opened done [16:55:59]requested_item shift.open_date is exist - process it [16:55:59]req_shift_open_date [16:55:59]req_shift_open_date done [16:55:59]produce_requested_data done [16:55:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164307,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:55:59]process_action_free close_receipt [16:55:59]json_value_free [16:55:59]json_value_free done [16:55:59]process_json_proto returns [16:55:59]Send response to host [16:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164307,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:55:59]free response buf [16:55:59]execute_script done [16:55:59]execute_script returns [16:55:59]free content buf [16:55:59]Sock 7.Close socket [16:55:59]Sock 7.Thread stoped [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:40]accept exits with 9 [16:56:40]New connection [16:56:40]New thread 3066707300 created [16:56:40]Thread 3066850660 joined [16:56:40]Waiting for new connection... [16:56:40] Sock 9.Parse request [16:56:40]Sock 9.Check first char [16:56:40]Sock 9.First char is OK [16:56:40]request: POST /json_proto HTTP/1.0 [16:56:40]Method: POST [16:56:40]URL: /json_proto [16:56:40]Method is POST - this is cgi request [16:56:40]url: /json_proto [16:56:40]query_string will be loaded in cgi processing [16:56:40]execute_cgi json_proto POST (null) [16:56:40]execute_cgi path=json_proto method=POST [16:56:40]POST find Content-Length [16:56:40]Host: 172.17.56.4:8080 [16:56:40]Content-Length: 677 [16:56:40]Content-Type: application/json [16:56:40] [16:56:40]POST finish read [16:56:40]Found Content-Length = 677 [16:56:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:40]execute_script... [16:56:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:40]POST & json_proto [16:56:40]process_json_proto [16:56:40]json parsed OK: [16:56:40]protocol is kg_v1.0 [16:56:40]action value=close_receipt [16:56:40]process_action close_receipt [16:56:40]cmd_close_receipt [16:56:40]MH_GetDate [16:56:40]Write to MH i2c: F0 00 00 D0 36 F5 [16:56:40]Write i2c OK [16:56:40]MH_I2C_Read... [16:56:40]Read from MH i2c: F0 [16:56:40]MH_I2C_Read... [16:56:40]Read from MH i2c: F0 09 00 [16:56:40]MH_I2C_Read... [16:56:40]Read from MH i2c: F0 09 00 D0 36 00 4A 60 91 66 C9 DC B2 64 5A [16:56:40]GetLastDocTimeStamp 1720803358 [16:56:40]current date 1720803402 [16:56:40]FM_GetShiftState [16:56:40]SAM_PROTO_GetShiftState [16:56:40]wFMCommunicate request_size=4 [16:56:40]MH_SAM_APDU [16:56:40]CAPDU: 80 13 01 00 [16:56:40]Write to MH i2c: E2 08 00 D1 36 80 13 01 00 00 00 00 00 84 [16:56:40]Write i2c OK [16:56:40]MH_I2C_Read... [16:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:40]Read from MH i2c: E2 [16:56:40]MH_I2C_Read... [16:56:40]Read from MH i2c: E2 0E 00 [16:56:40]MH_I2C_Read... [16:56:40]Read from MH i2c: E2 0E 00 D1 36 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CE [16:56:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:56:40]wFMCommunicate OK [16:56:40]SAM_PROTO_GetShiftState done [16:56:40]FM_GetShiftState done [16:56:40]opened in 1720744654 [16:56:40]opened+sec_in_day 1720831054 [16:56:40]quantity*price = 60009 [16:56:40]sum+1 = 60011 [16:56:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 229 12.07.2024 16:56 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164308 ФПД: 176819784317546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T165642&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164308&fm=176819784317546&tin=02508201610067®Number=0000000000090829&sum=60000 [16:56:41]StoreToDocumentArchive [16:56:41]shift 445 fd 164308 [16:56:41]save to /storage/0445/doc_00164308 [16:56:41]save last doc name /storage/0445/doc_00164308 to /storage/kkm_last_doc_name [16:56:41]save OK [16:56:41]Clear old archive folders... [16:56:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:41]tlvbuf is 00A8A0F0 [16:56:41]SAM_PROTO_ClearQueue [16:56:41]wFMCommunicate request_size=4 [16:56:41]MH_SAM_APDU [16:56:41]CAPDU: 80 09 00 00 [16:56:41]Write to MH i2c: E2 08 00 DE 36 80 09 00 00 00 00 00 00 86 [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:41]Read from MH i2c: E2 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 03 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 03 00 DE 36 00 90 00 88 [16:56:41]RAPDU: 90 00 [16:56:41]wFMCommunicate OK [16:56:41]SAM_PROTO_ClearQueue done [16:56:41]KKMCreateOFDPacket [16:56:41]OFDProtocolAddRootSTLVToBuf [16:56:41]FM_MakeSignedData [16:56:41]FM_MakeSignedData [16:56:41]SAM_PROTO_SignData [16:56:41]wFMCommunicate request_size=4 [16:56:41]MH_SAM_APDU [16:56:41]CAPDU: 80 0D 01 02 [16:56:41]Write to MH i2c: E2 08 00 DF 36 80 0D 01 02 00 00 00 00 8E [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:41]Read from MH i2c: E2 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 03 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 03 00 DF 36 00 90 00 89 [16:56:41]RAPDU: 90 00 [16:56:41]wFMCommunicate OK [16:56:41]wFMCommunicate request_size=255 [16:56:41]MH_SAM_APDU [16:56: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 00 00 00 F4 03 04 00 4A 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 81 02 00 35 04 06 00 A0 [16:56:41]Write to MH i2c: E2 02 01 E0 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 00 00 00 F4 03 04 00 4A 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 81 02 00 35 04 06 00 A0 00 00 63 [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:41]Read from MH i2c: E2 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 03 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 03 00 E0 36 00 90 00 8A [16:56:41]RAPDU: 90 00 [16:56:41]wFMCommunicate OK [16:56:41]wFMCommunicate request_size=10 [16:56:41]MH_SAM_APDU [16:56:41]CAPDU: 80 0D 02 02 05 D1 10 6E FA 6A [16:56:41]Write to MH i2c: E2 0D 00 E1 36 80 0D 02 02 05 00 D1 10 6E FA 6A 00 00 4E [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:41]Read from MH i2c: E2 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 03 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 03 00 E1 36 00 90 00 8B [16:56:41]RAPDU: 90 00 [16:56:41]wFMCommunicate OK [16:56:41]wFMCommunicate request_size=4 [16:56:41]MH_SAM_APDU [16:56:41]CAPDU: 80 0D 03 02 [16:56:41]Write to MH i2c: E2 08 00 E2 36 80 0D 03 02 00 00 00 00 93 [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:41]Read from MH i2c: E2 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 0B 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 0B 00 E2 36 00 B2 7A 96 48 25 46 C5 CB 90 00 99 [16:56:41]RAPDU: B2 7A 96 48 25 46 C5 CB 90 00 [16:56:41]wFMCommunicate OK [16:56:41]SAM_PROTO_SignData done [16:56:41]FM_MakeSignedData done [16:56:41]CreateOFDProtocolMessage [16:56:41]wFMCommunicate request_size=4 [16:56:41]MH_SAM_APDU [16:56:41]CAPDU: 80 11 00 00 [16:56:41]Write to MH i2c: E2 08 00 E3 36 80 11 00 00 00 00 00 00 93 [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:41]Read from MH i2c: E2 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 17 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 17 00 E3 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E9 [16:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:56:41]wFMCommunicate OK [16:56:41]CreateOFDProtocolMessage done [16:56:41]OFDSenderStorePacket 164308 [16:56:41]StoreOFDPacket docnum=164308 [16:56:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0C C6 07 01 47 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 00 00 00 F4 03 04 00 4A 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 81 02 00 35 04 06 00 A0 D1 10 6E FA 6A B2 7A 96 48 25 46 C5 CB [16:56:41]CheckFolder [16:56:41]dirname=/storage/ofd_packets [16:56:41]CheckFolder done [16:56:41]ProducePacketName [16:56:41]name=ofd_packets/00164308 [16:56:41]NVStorageSaveData ofd_packets/00164308 [16:56:41]File name is /storage/ofd_packets/00164308 [16:56:41]Write 301 bytes [16:56:41]NVStorageSaveData done [16:56:41]OFDSenderStorePacket done [16:56:41]KKMCreateOFDPacket done [16:56:41]NVStorageSaveData kkm_last_timestamp [16:56:41]File name is /storage/kkm_last_timestamp [16:56:41]Write 4 bytes [16:56:41]NVStorageSaveData done [16:56:41]ExternCall_PrintAddStr [16:56:41]wPrintStart [16:56:41]Write to MH i2c: 01 00 00 E4 36 1A [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: 01 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: 01 07 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: 01 07 00 E4 36 00 00 00 00 00 FF 0F 2F [16:56:41]RasterBufferAndPrint [16:56:41]line Счет N : (1)458391 [16:56:41]line ИНН: 02508201610067 [16:56:41]line Контрольно-Кассовый Чек [16:56:41]line ПРОДАЖА [16:56:41]line ТРК (МРК, ГНК) : 12 [16:56:41]line Товар: 2710124130 [16:56:41]line Аи-92-К-5 [16:56:41]line 9.120 * 65.80 [16:56:41]line = 600.10 [16:56:41]line НДС 12% НСП 1% [16:56:41]line > о реализуемом товаре [16:56:41]line ОКРУГЛЕНИЕ: -0.10 [16:56:41]line ИТОГО: 600.00 [16:56:41]line Внесено: 600.00 [16:56:41]line СДАЧА: 0.00 [16:56:41]line НСП 1% : 5.31 [16:56:41]line НДС 12% : 63.73 [16:56:41]line Наличными: 600.00 [16:56:41]line Безнал.: 0.00 [16:56:41]line Место: АЗС № 72 "Партнер Нефть" [16:56:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:56:41]line СНО: Общий режим [16:56:41]line Чек 229 12.07.2024 16:56 [16:56:41]line Смена: 445 ФФД: 1.0 [16:56:41]line ЗНМ: 0300000160 [16:56:41]line РНМ: 0000000000090829 [16:56:41]line Версия ККМ: 001 [16:56:41]line ФМ: 0000000000874718 [16:56:41]line ФД: 164308 [16:56:41]line ФПД: 176819784317546 [16:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T165642&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164308&fm=176819784317546&tin=02508201610067®Number=0000000000090829&sum=60000 [16:56:42]OFD Sender: Processing packet 164308 [packets to send 104, broken 103] [16:56:42]ProducePacketName [16:56:42]name=ofd_packets/00164308 [16:56:42]OFD Sender: To server: pG, [16:56:42]CommunicateWithHost lk.salyk.kg:30040 [16:56:42]ConnectInit lk.salyk.kg [16:56:42]written 0, free lines is 4095 [16:56:42]Connected sock=7 [16:56:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0C C6 07 01 47 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 00 00 00 F4 03 04 00 4A 60 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 81 02 00 35 04 06 00 A0 D1 10 6E FA 6A B2 7A 96 48 25 46 C5 CB [16:56:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1C 89 47 00 47 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 81 02 00 F4 03 04 00 DE 06 91 66 B6 04 01 00 00 25 63 7B 4B A1 47 90 71 [16:56:42]CommunicateWithHost err = 0 [16:56:42]CheckOFDResponse [16:56:42]1017 (14) - 77093643461234 [16:56:42]1041 (16) - 0000000000874718 [16:56:42]1040 (4) - 164308 [16:56:42]1012 (4) - 12.07.2024 10:35 [16:56:42]1206 (1) - 0 [16:56:42]OFD Sender: Remove packet 164308 [16:56:42]ProducePacketName [16:56:42]name=ofd_packets/00164308 [16:56:42]NVStorageDeleteData [16:56:42]Write to MH i2c: 01 00 00 0E 37 45 [16:56:42]Write i2c OK [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: 01 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: 01 07 00 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: 01 07 00 0E 37 00 00 00 00 00 0A 0D 63 [16:56:42]RasterBufferAndPrint [16:56:42]line [16:56:42]line [16:56:42]line [16:56:42]line [16:56:42]line [16:56:42]written 0, free lines is 3347 [16:56:42]MH_Cut [16:56:42]Write to MH i2c: D1 01 00 15 37 01 1E [16:56:42]Write i2c OK [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: D1 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: D1 01 00 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: D1 01 00 15 37 00 1D [16:56:42]Write to MH i2c: 01 00 00 16 37 4D [16:56:42]Write i2c OK [16:56:42]MH_I2C_Read... [16:56:43]OFD Sender: No OFD packet to send [16:56:43]*** Cut start [16:56:43]*** Partial cut [16:56:43]*** CUTSNS_PIN = 1 [16:56:43]*** CUTSNS_PIN = 0 [16:56:43]*** Brake cut motor [16:56:43]Read from MH i2c: 01 [16:56:43]MH_I2C_Read... [16:56:43]*** Stop cut motor [16:56:43]*** Cut end [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 16 37 00 00 00 00 00 FF 0F 62 [16:56:43]process_action close_receipt done [16:56:43]requested_data is exist [16:56:43]produce_requested_data [16:56:43]requested_item fm.sn is exist - process it [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 17 37 80 11 00 00 00 00 00 00 C8 [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 17 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 17 00 17 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [16:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:56:44]wFMCommunicate OK [16:56:44]requested_item fd.num is exist - process it [16:56:44]SAM_PROTO_GetFieldsCounters [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 13 00 00 [16:56:44]Write to MH i2c: E2 08 00 18 37 80 13 00 00 00 00 00 00 CB [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 62 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 62 00 18 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [16:56:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:44]wFMCommunicate OK [16:56:44]SAM_PROTO_GetFieldsCounters done [16:56:44]requested_item shift.num is exist - process it [16:56:44]requested_item shift.opened is exist - process it [16:56:44]req_shift_opened [16:56:44]FM_GetShiftState [16:56:44]SAM_PROTO_GetShiftState [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 13 01 00 [16:56:44]Write to MH i2c: E2 08 00 19 37 80 13 01 00 00 00 00 00 CD [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 0E 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 0E 00 19 37 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 17 [16:56:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [16:56:44]wFMCommunicate OK [16:56:44]SAM_PROTO_GetShiftState done [16:56:44]FM_GetShiftState done [16:56:44]req_shift_opened done [16:56:44]requested_item shift.open_date is exist - process it [16:56:44]req_shift_open_date [16:56:44]req_shift_open_date done [16:56:44]produce_requested_data done [16:56:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164308,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [16:56:44]process_action_free close_receipt [16:56:44]json_value_free [16:56:44]json_value_free done [16:56:44]process_json_proto returns [16:56:44]Send response to host [16:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164308,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [16:56:44]free response buf [16:56:44]execute_script done [16:56:44]execute_script returns [16:56:44]free content buf [16:56:44]Sock 9.Close socket [16:56:44]Sock 9.Thread stoped [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:57]accept exits with 10 [17:01:57]New connection [17:01:57]New thread 3066850660 created [17:01:57]Thread 3066707300 joined [17:01:57]Waiting for new connection... [17:01:57] Sock 10.Parse request [17:01:57]Sock 10.Check first char [17:01:57]Sock 10.First char is OK [17:01:57]request: POST /json_proto HTTP/1.0 [17:01:57]Method: POST [17:01:57]URL: /json_proto [17:01:57]Method is POST - this is cgi request [17:01:57]url: /json_proto [17:01:57]query_string will be loaded in cgi processing [17:01:57]execute_cgi json_proto POST (null) [17:01:57]execute_cgi path=json_proto method=POST [17:01:57]POST find Content-Length [17:01:57]Host: 172.17.56.4:8080 [17:01:57]Content-Length: 674 [17:01:57]Content-Type: application/json [17:01:57] [17:01:57]POST finish read [17:01:57]Found Content-Length = 674 [17:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:57]execute_script... [17:01: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)458392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:57]POST & json_proto [17:01:57]process_json_proto [17:01:57]json parsed OK: [17:01:57]protocol is kg_v1.0 [17:01:57]action value=close_receipt [17:01:57]process_action close_receipt [17:01:57]cmd_close_receipt [17:01:57]MH_GetDate [17:01:57]Write to MH i2c: F0 00 00 1A 37 40 [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: F0 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: F0 09 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: F0 09 00 1A 37 00 87 61 91 66 C9 DC B2 64 E3 [17:01:57]GetLastDocTimeStamp 1720803402 [17:01:57]current date 1720803719 [17:01:57]FM_GetShiftState [17:01:57]SAM_PROTO_GetShiftState [17:01:57]wFMCommunicate request_size=4 [17:01:57]MH_SAM_APDU [17:01:57]CAPDU: 80 13 01 00 [17:01:57]Write to MH i2c: E2 08 00 1B 37 80 13 01 00 00 00 00 00 CF [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:57]Read from MH i2c: E2 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 0E 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 0E 00 1B 37 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 19 [17:01:57]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:01:57]wFMCommunicate OK [17:01:57]SAM_PROTO_GetShiftState done [17:01:57]FM_GetShiftState done [17:01:57]opened in 1720744654 [17:01:57]opened+sec_in_day 1720831054 [17:01:57]quantity*price = 50042 [17:01:57]sum+1 = 50043 [17:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 230 12.07.2024 17:01 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164309 ФПД: 165764171560861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T170159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164309&fm=165764171560861&tin=02508201610067®Number=0000000000090829&sum=50000 [17:01:58]StoreToDocumentArchive [17:01:58]shift 445 fd 164309 [17:01:58]save to /storage/0445/doc_00164309 [17:01:58]save last doc name /storage/0445/doc_00164309 to /storage/kkm_last_doc_name [17:01:58]save OK [17:01:58]Clear old archive folders... [17:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:01:58]tlvbuf is 00A17250 [17:01:58]SAM_PROTO_ClearQueue [17:01:58]wFMCommunicate request_size=4 [17:01:58]MH_SAM_APDU [17:01:58]CAPDU: 80 09 00 00 [17:01:58]Write to MH i2c: E2 08 00 28 37 80 09 00 00 00 00 00 00 D1 [17:01:58]Write i2c OK [17:01:58]MH_I2C_Read... [17:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:58]Read from MH i2c: E2 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 03 00 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 03 00 28 37 00 90 00 D3 [17:01:58]RAPDU: 90 00 [17:01:58]wFMCommunicate OK [17:01:58]SAM_PROTO_ClearQueue done [17:01:58]KKMCreateOFDPacket [17:01:58]OFDProtocolAddRootSTLVToBuf [17:01:58]FM_MakeSignedData [17:01:58]FM_MakeSignedData [17:01:58]SAM_PROTO_SignData [17:01:58]wFMCommunicate request_size=4 [17:01:58]MH_SAM_APDU [17:01:58]CAPDU: 80 0D 01 02 [17:01:58]Write to MH i2c: E2 08 00 29 37 80 0D 01 02 00 00 00 00 D9 [17:01:58]Write i2c OK [17:01:58]MH_I2C_Read... [17:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:58]Read from MH i2c: E2 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 03 00 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 03 00 29 37 00 90 00 D4 [17:01:58]RAPDU: 90 00 [17:01:58]wFMCommunicate OK [17:01:58]wFMCommunicate request_size=255 [17:01:58]MH_SAM_APDU [17:01: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 61 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 81 02 00 35 04 06 00 96 C2 FA 8F [17:01:58]Write to MH i2c: E2 02 01 2A 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 61 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 81 02 00 35 04 06 00 96 C2 FA 8F 00 00 6A [17:01:58]Write i2c OK [17:01:58]MH_I2C_Read... [17:01:58]OFD Sender: No OFD packet to send [17:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:58]Read from MH i2c: E2 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 03 00 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 03 00 2A 37 00 90 00 D5 [17:01:58]RAPDU: 90 00 [17:01:58]wFMCommunicate OK [17:01:58]wFMCommunicate request_size=7 [17:01:58]MH_SAM_APDU [17:01:58]CAPDU: 80 0D 02 02 02 F7 9D [17:01:58]Write to MH i2c: E2 0A 00 2B 37 80 0D 02 02 02 00 F7 9D 00 00 74 [17:01:58]Write i2c OK [17:01:58]MH_I2C_Read... [17:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:58]Read from MH i2c: E2 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 03 00 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 03 00 2B 37 00 90 00 D6 [17:01:58]RAPDU: 90 00 [17:01:58]wFMCommunicate OK [17:01:58]wFMCommunicate request_size=4 [17:01:58]MH_SAM_APDU [17:01:58]CAPDU: 80 0D 03 02 [17:01:58]Write to MH i2c: E2 08 00 2C 37 80 0D 03 02 00 00 00 00 DE [17:01:58]Write i2c OK [17:01:58]MH_I2C_Read... [17:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:58]Read from MH i2c: E2 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 0B 00 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 0B 00 2C 37 00 B8 93 27 8C 31 5D D4 88 90 00 C7 [17:01:58]RAPDU: B8 93 27 8C 31 5D D4 88 90 00 [17:01:58]wFMCommunicate OK [17:01:58]SAM_PROTO_SignData done [17:01:58]FM_MakeSignedData done [17:01:58]CreateOFDProtocolMessage [17:01:58]wFMCommunicate request_size=4 [17:01:58]MH_SAM_APDU [17:01:58]CAPDU: 80 11 00 00 [17:01:58]Write to MH i2c: E2 08 00 2D 37 80 11 00 00 00 00 00 00 DE [17:01:58]Write i2c OK [17:01:58]MH_I2C_Read... [17:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:58]Read from MH i2c: E2 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 17 00 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: E2 17 00 2D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [17:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:01:58]wFMCommunicate OK [17:01:58]CreateOFDProtocolMessage done [17:01:58]OFDSenderStorePacket 164309 [17:01:58]StoreOFDPacket docnum=164309 [17:01:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 39 B7 04 01 3E A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 61 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 81 02 00 35 04 06 00 96 C2 FA 8F F7 9D B8 93 27 8C 31 5D D4 88 [17:01:58]CheckFolder [17:01:58]dirname=/storage/ofd_packets [17:01:58]CheckFolder done [17:01:58]ProducePacketName [17:01:58]name=ofd_packets/00164309 [17:01:58]NVStorageSaveData ofd_packets/00164309 [17:01:58]File name is /storage/ofd_packets/00164309 [17:01:58]Write 298 bytes [17:01:58]NVStorageSaveData done [17:01:58]OFDSenderStorePacket done [17:01:58]KKMCreateOFDPacket done [17:01:58]NVStorageSaveData kkm_last_timestamp [17:01:58]File name is /storage/kkm_last_timestamp [17:01:58]Write 4 bytes [17:01:58]NVStorageSaveData done [17:01:58]ExternCall_PrintAddStr [17:01:58]wPrintStart [17:01:58]Write to MH i2c: 01 00 00 2E 37 65 [17:01:58]Write i2c OK [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: 01 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: 01 07 00 [17:01:58]MH_I2C_Read... [17:01:58]Read from MH i2c: 01 07 00 2E 37 00 00 00 00 00 FF 0F 7A [17:01:58]RasterBufferAndPrint [17:01:58]line Счет N : (1)458392 [17:01:58]line ИНН: 02508201610067 [17:01:58]line Контрольно-Кассовый Чек [17:01:58]line ПРОДАЖА [17:01:58]line ТРК (МРК, ГНК) : 11 [17:01:58]line Товар: 2710194210 [17:01:58]line ДТ-К-5 [17:01:58]line 6.960 * 71.90 [17:01:58]line = 500.42 [17:01:58]line НДС 12% НСП 1% [17:01:58]line > о реализуемом товаре [17:01:58]line ОКРУГЛЕНИЕ: -0.42 [17:01:58]line ИТОГО: 500.00 [17:01:58]line Внесено: 500.00 [17:01:58]line СДАЧА: 0.00 [17:01:58]line НСП 1% : 4.43 [17:01:58]line НДС 12% : 53.14 [17:01:58]line Наличными: 500.00 [17:01:58]line Безнал.: 0.00 [17:01:58]line Место: АЗС № 72 "Партнер Нефть" [17:01:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:01:58]line СНО: Общий режим [17:01:58]line Чек 230 12.07.2024 17:01 [17:01:58]line Смена: 445 ФФД: 1.0 [17:01:58]line ЗНМ: 0300000160 [17:01:58]line РНМ: 0000000000090829 [17:01:58]line Версия ККМ: 001 [17:01:58]line ФМ: 0000000000874718 [17:01:58]line ФД: 164309 [17:01:58]line ФПД: 165764171560861 [17:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T170159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164309&fm=165764171560861&tin=02508201610067®Number=0000000000090829&sum=50000 [17:01:59]OFD Sender: Processing packet 164309 [packets to send 104, broken 103] [17:01:59]ProducePacketName [17:01:59]name=ofd_packets/00164309 [17:01:59]OFD Sender: To server: pG, [17:01:59]CommunicateWithHost lk.salyk.kg:30040 [17:01:59]ConnectInit lk.salyk.kg [17:01:59]written 0, free lines is 4095 [17:01:59]Connected sock=9 [17:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 39 B7 04 01 3E A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 87 61 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 81 02 00 35 04 06 00 96 C2 FA 8F F7 9D B8 93 27 8C 31 5D D4 88 [17:01:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 95 56 47 00 2E 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 34 37 31 38 10 04 04 00 D5 81 02 00 F4 03 04 00 1B 08 91 66 B6 04 01 00 00 64 9D AD AE 84 7F D0 49 [17:01:59]CommunicateWithHost err = 0 [17:01:59]CheckOFDResponse [17:01:59]1017 (14) - 77093643461234 [17:01:59]1041 (16) - 0000000000874718 [17:01:59]1040 (4) - 164309 [17:01:59]1012 (4) - 12.07.2024 10:40 [17:01:59]1206 (1) - 0 [17:01:59]OFD Sender: Remove packet 164309 [17:01:59]ProducePacketName [17:01:59]name=ofd_packets/00164309 [17:01:59]NVStorageDeleteData [17:01:59]Write to MH i2c: 01 00 00 58 37 8F [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: 01 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: 01 07 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: 01 07 00 58 37 00 00 00 00 00 F6 0C 98 [17:01:59]RasterBufferAndPrint [17:01:59]line [17:01:59]line [17:01:59]line [17:01:59]line [17:01:59]line [17:01:59]written 0, free lines is 3324 [17:01:59]MH_Cut [17:01:59]Write to MH i2c: D1 01 00 5F 37 01 68 [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: D1 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: D1 01 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: D1 01 00 5F 37 00 67 [17:01:59]Write to MH i2c: 01 00 00 60 37 97 [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]OFD Sender: No OFD packet to send [17:02:00]*** Cut start [17:02:00]*** Partial cut [17:02:00]*** CUTSNS_PIN = 1 [17:02:00]*** CUTSNS_PIN = 0 [17:02:00]*** Brake cut motor [17:02:00]Read from MH i2c: 01 [17:02:00]MH_I2C_Read... [17:02:00]*** Stop cut motor [17:02:00]*** Cut end [17:02:00]Read from MH i2c: 01 07 00 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: 01 07 00 60 37 00 00 00 00 00 FF 0F AC [17:02:00]process_action close_receipt done [17:02:00]requested_data is exist [17:02:00]produce_requested_data [17:02:00]requested_item fm.sn is exist - process it [17:02:00]wFMCommunicate request_size=4 [17:02:00]MH_SAM_APDU [17:02:00]CAPDU: 80 11 00 00 [17:02:00]Write to MH i2c: E2 08 00 61 37 80 11 00 00 00 00 00 00 12 [17:02:00]Write i2c OK [17:02:00]MH_I2C_Read... [17:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:00]Read from MH i2c: E2 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: E2 17 00 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: E2 17 00 61 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [17:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:02:00]wFMCommunicate OK [17:02:00]requested_item fd.num is exist - process it [17:02:00]SAM_PROTO_GetFieldsCounters [17:02:00]wFMCommunicate request_size=4 [17:02:00]MH_SAM_APDU [17:02:00]CAPDU: 80 13 00 00 [17:02:00]Write to MH i2c: E2 08 00 62 37 80 13 00 00 00 00 00 00 15 [17:02:00]Write i2c OK [17:02:00]MH_I2C_Read... [17:02:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:00]Read from MH i2c: E2 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: E2 62 00 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: E2 62 00 62 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [17:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:01]wFMCommunicate OK [17:02:01]SAM_PROTO_GetFieldsCounters done [17:02:01]requested_item shift.num is exist - process it [17:02:01]requested_item shift.opened is exist - process it [17:02:01]req_shift_opened [17:02:01]FM_GetShiftState [17:02:01]SAM_PROTO_GetShiftState [17:02:01]wFMCommunicate request_size=4 [17:02:01]MH_SAM_APDU [17:02:01]CAPDU: 80 13 01 00 [17:02:01]Write to MH i2c: E2 08 00 63 37 80 13 01 00 00 00 00 00 17 [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 0E 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 0E 00 63 37 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 61 [17:02:01]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:02:01]wFMCommunicate OK [17:02:01]SAM_PROTO_GetShiftState done [17:02:01]FM_GetShiftState done [17:02:01]req_shift_opened done [17:02:01]requested_item shift.open_date is exist - process it [17:02:01]req_shift_open_date [17:02:01]req_shift_open_date done [17:02:01]produce_requested_data done [17:02:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164309,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:02:01]process_action_free close_receipt [17:02:01]json_value_free [17:02:01]json_value_free done [17:02:01]process_json_proto returns [17:02:01]Send response to host [17:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164309,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:02:01]free response buf [17:02:01]execute_script done [17:02:01]execute_script returns [17:02:01]free content buf [17:02:01]Sock 10.Close socket [17:02:01]Sock 10.Thread stoped [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]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:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:09:58]accept exits with 7 [17:09:58]New connection [17:09:58]New thread 3066707300 created [17:09:58]Thread 3066850660 joined [17:09:58]Waiting for new connection... [17:09:58] Sock 7.Parse request [17:09:58]Sock 7.Check first char [17:09:58]Sock 7.First char is OK [17:09:58]request: POST /json_proto HTTP/1.0 [17:09:58]Method: POST [17:09:58]URL: /json_proto [17:09:58]Method is POST - this is cgi request [17:09:58]url: /json_proto [17:09:58]query_string will be loaded in cgi processing [17:09:58]execute_cgi json_proto POST (null) [17:09:58]execute_cgi path=json_proto method=POST [17:09:58]POST find Content-Length [17:09:58]Host: 172.17.56.4:8080 [17:09:58]Content-Length: 677 [17:09:58]Content-Type: application/json [17:09:58] [17:09:58]POST finish read [17:09:58]Found Content-Length = 677 [17:09:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:58]execute_script... [17:09: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)458393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:58]POST & json_proto [17:09:58]process_json_proto [17:09:58]json parsed OK: [17:09:58]protocol is kg_v1.0 [17:09:58]action value=close_receipt [17:09:58]process_action close_receipt [17:09:58]cmd_close_receipt [17:09:58]MH_GetDate [17:09:58]Write to MH i2c: F0 00 00 64 37 8A [17:09:58]Write i2c OK [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: F0 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: F0 09 00 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: F0 09 00 64 37 00 68 63 91 66 C9 DC B2 64 10 [17:09:58]GetLastDocTimeStamp 1720803719 [17:09:58]current date 1720804200 [17:09:58]FM_GetShiftState [17:09:58]SAM_PROTO_GetShiftState [17:09:58]wFMCommunicate request_size=4 [17:09:58]MH_SAM_APDU [17:09:58]CAPDU: 80 13 01 00 [17:09:58]Write to MH i2c: E2 08 00 65 37 80 13 01 00 00 00 00 00 19 [17:09:58]Write i2c OK [17:09:58]MH_I2C_Read... [17:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:58]Read from MH i2c: E2 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 0E 00 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 0E 00 65 37 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 63 [17:09:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:09:58]wFMCommunicate OK [17:09:58]SAM_PROTO_GetShiftState done [17:09:58]FM_GetShiftState done [17:09:58]opened in 1720744654 [17:09:58]opened+sec_in_day 1720831054 [17:09:58]quantity*price = 50008 [17:09:58]sum+1 = 50009 [17:09:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 231 12.07.2024 17:10 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164310 ФПД: 222867360387345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T171000&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164310&fm=222867360387345&tin=02508201610067®Number=0000000000090829&sum=50000 [17:09:59]StoreToDocumentArchive [17:09:59]shift 445 fd 164310 [17:09:59]save to /storage/0445/doc_00164310 [17:09:59]save last doc name /storage/0445/doc_00164310 to /storage/kkm_last_doc_name [17:09:59]save OK [17:09:59]Clear old archive folders... [17:09:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:59]tlvbuf is 00A7B8A0 [17:09:59]SAM_PROTO_ClearQueue [17:09:59]wFMCommunicate request_size=4 [17:09:59]MH_SAM_APDU [17:09:59]CAPDU: 80 09 00 00 [17:09:59]Write to MH i2c: E2 08 00 72 37 80 09 00 00 00 00 00 00 1B [17:09:59]Write i2c OK [17:09:59]MH_I2C_Read... [17:09:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:59]Read from MH i2c: E2 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: E2 03 00 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: E2 03 00 72 37 00 90 00 1D [17:09:59]RAPDU: 90 00 [17:09:59]wFMCommunicate OK [17:09:59]SAM_PROTO_ClearQueue done [17:09:59]KKMCreateOFDPacket [17:09:59]OFDProtocolAddRootSTLVToBuf [17:09:59]FM_MakeSignedData [17:09:59]FM_MakeSignedData [17:09:59]SAM_PROTO_SignData [17:09:59]wFMCommunicate request_size=4 [17:09:59]MH_SAM_APDU [17:09:59]CAPDU: 80 0D 01 02 [17:09:59]Write to MH i2c: E2 08 00 73 37 80 0D 01 02 00 00 00 00 23 [17:09:59]Write i2c OK [17:09:59]MH_I2C_Read... [17:09:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:59]Read from MH i2c: E2 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: E2 03 00 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: E2 03 00 73 37 00 90 00 1E [17:09:59]RAPDU: 90 00 [17:09:59]wFMCommunicate OK [17:09:59]wFMCommunicate request_size=255 [17:09:59]MH_SAM_APDU [17:09: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 E7 00 00 00 F4 03 04 00 68 63 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 81 02 00 35 04 06 00 CA [17:09:59]Write to MH i2c: E2 02 01 74 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 E7 00 00 00 F4 03 04 00 68 63 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 81 02 00 35 04 06 00 CA 00 00 26 [17:09:59]Write i2c OK [17:09:59]MH_I2C_Read... [17:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:00]Read from MH i2c: E2 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 03 00 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 03 00 74 37 00 90 00 1F [17:10:00]RAPDU: 90 00 [17:10:00]wFMCommunicate OK [17:10:00]wFMCommunicate request_size=10 [17:10:00]MH_SAM_APDU [17:10:00]CAPDU: 80 0D 02 02 05 B2 59 D9 11 11 [17:10:00]Write to MH i2c: E2 0D 00 75 37 80 0D 02 02 05 00 B2 59 D9 11 11 00 00 36 [17:10:00]Write i2c OK [17:10:00]MH_I2C_Read... [17:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:00]Read from MH i2c: E2 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 03 00 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 03 00 75 37 00 90 00 20 [17:10:00]RAPDU: 90 00 [17:10:00]wFMCommunicate OK [17:10:00]wFMCommunicate request_size=4 [17:10:00]MH_SAM_APDU [17:10:00]CAPDU: 80 0D 03 02 [17:10:00]Write to MH i2c: E2 08 00 76 37 80 0D 03 02 00 00 00 00 28 [17:10:00]Write i2c OK [17:10:00]MH_I2C_Read... [17:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:00]Read from MH i2c: E2 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 0B 00 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 0B 00 76 37 00 1A A0 AF 30 42 32 F9 05 90 00 34 [17:10:00]RAPDU: 1A A0 AF 30 42 32 F9 05 90 00 [17:10:00]wFMCommunicate OK [17:10:00]SAM_PROTO_SignData done [17:10:00]FM_MakeSignedData done [17:10:00]CreateOFDProtocolMessage [17:10:00]wFMCommunicate request_size=4 [17:10:00]MH_SAM_APDU [17:10:00]CAPDU: 80 11 00 00 [17:10:00]Write to MH i2c: E2 08 00 77 37 80 11 00 00 00 00 00 00 28 [17:10:00]Write i2c OK [17:10:00]MH_I2C_Read... [17:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:00]Read from MH i2c: E2 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 17 00 [17:10:00]MH_I2C_Read... [17:10:00]Read from MH i2c: E2 17 00 77 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [17:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:10:00]wFMCommunicate OK [17:10:00]CreateOFDProtocolMessage done [17:10:00]OFDSenderStorePacket 164310 [17:10:00]StoreOFDPacket docnum=164310 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31360702+1689443529=1720804231 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 88 63 91 66 C9 DC B2 64 9C [17:10:32]Current date/time: 12.07.2024 17:10 [17:10:32]FM_Init [17:10:32]wFMConnect [17:10:32]MH_SAM_On [17:10:32]Write to MH i2c: E0 00 00 08 00 E7 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_init finished! [17:10:32]*** atr: [17:10:32]*** 0F 3B D5 18 FF 81 91 FE [17:10:32]*** 1F C3 80 73 C8 21 10 0A [17:10:32]*** 00 00 00 00 00 00 00 00 [17:10:32]*** 00 00 00 00 00 00 00 00 [17:10:32]*** 00 00 00 00 00 00 00 00 [17:10:32]*** 00 00 00 00 00 00 00 00 [17:10:32]*** 00 00 00 00 00 00 00 00 [17:10:32]*** 00 00 00 00 00 00 00 00 [17:10:32]Read from MH i2c: E0 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E0 10 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [17:10:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:10:32]wFMCommunicate request_size=10 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:10:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:10:32]RAPDU: 90 00 [17:10:32]wFMCommunicate OK [17:10:32]wFMCommunicate request_size=4 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 11 00 00 [17:10:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 17 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [17:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:10:32]wFMCommunicate OK [17:10:32]Detected FM SN is 0000000000874718 [17:10:32]Stored FM SN is 0000000000874718 [17:10:32]wFMCommunicate request_size=9 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 16 00 00 04 29 B3 00 00 [17:10:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:10:32]RAPDU: 90 00 [17:10:32]wFMCommunicate OK [17:10:32]FM PIN OK [17:10:32]wFMCommunicate request_size=8 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 14 04 00 03 02 00 01 [17:10:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:10:32]RAPDU: 90 00 [17:10:32]wFMCommunicate OK [17:10:32]wFMCommunicate request_size=13 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:10:32]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:10:32]RAPDU: 90 00 [17:10:32]wFMCommunicate OK [17:10:32]wFMCommunicate request_size=4 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 11 00 00 [17:10:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 17 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [17:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:10:32]wFMCommunicate OK [17:10:32]DocumentArchiveInit [17:10:32]Start Httpd... [17:10:32]Httpd thread 3067428196 created [17:10:32]Write to MH i2c: 01 00 00 0F 00 0F [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: 01 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: 01 07 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:10:32]Allocated Socket 6 [17:10:32]Bind OK [17:10:32]Listen OK [17:10:32]httpd running on port 8080 [17:10:32]Waiting for new connection... [17:10:32]MH Int Process started [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:40]accept exits with 7 [17:10:40]New connection [17:10:40]New thread 3067141476 created [17:10:40]Waiting for new connection... [17:10:40] Sock 7.Parse request [17:10:40]Sock 7.Check first char [17:10:40]Sock 7.First char is OK [17:10:40]request: POST /json_proto HTTP/1.0 [17:10:40]Method: POST [17:10:40]URL: /json_proto [17:10:40]Method is POST - this is cgi request [17:10:40]url: /json_proto [17:10:40]query_string will be loaded in cgi processing [17:10:40]execute_cgi json_proto POST (null) [17:10:40]execute_cgi path=json_proto method=POST [17:10:40]POST find Content-Length [17:10:40]Host: 172.17.56.4:8080 [17:10:40]Content-Length: 215 [17:10:40]Content-Type: application/json [17:10:40] [17:10:40]POST finish read [17:10:40]Found Content-Length = 215 [17:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:40]execute_script... [17:10:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:40]POST & json_proto [17:10:40]process_json_proto [17:10:40]json parsed OK: [17:10:40]protocol is kg_v1.0 [17:10:40]action value=get_value [17:10:40]process_action get_value [17:10:40]cmd_get_value [17:10:40]process_action get_value done [17:10:40]requested_data is exist [17:10:40]produce_requested_data [17:10:40]requested_item kkm.sn is exist - process it [17:10:40]requested_item kkm.ver is exist - process it [17:10:40]requested_item fm.sn is exist - process it [17:10:40]wFMCommunicate request_size=4 [17:10:40]MH_SAM_APDU [17:10:40]CAPDU: 80 11 00 00 [17:10:40]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 [17:10:40]MH_I2C_Read... [17:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:40]Read from MH i2c: E2 17 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [17:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:10:40]wFMCommunicate OK [17:10:40]requested_item fd.num is exist - process it [17:10:40]SAM_PROTO_GetFieldsCounters [17:10:40]wFMCommunicate request_size=4 [17:10:40]MH_SAM_APDU [17:10:40]CAPDU: 80 13 00 00 [17:10:40]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 [17:10:40]MH_I2C_Read... [17:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:40]Read from MH i2c: E2 62 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [17:10:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:40]wFMCommunicate OK [17:10:40]SAM_PROTO_GetFieldsCounters done [17:10:40]requested_item shift.num is exist - process it [17:10:40]requested_item shift.opened is exist - process it [17:10:40]req_shift_opened [17:10:40]FM_GetShiftState [17:10:40]SAM_PROTO_GetShiftState [17:10:40]wFMCommunicate request_size=4 [17:10:40]MH_SAM_APDU [17:10:40]CAPDU: 80 13 01 00 [17:10:40]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:40]Read from MH i2c: E2 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 0E 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D9 [17:10:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:10:40]wFMCommunicate OK [17:10:40]SAM_PROTO_GetShiftState done [17:10:40]FM_GetShiftState done [17:10:40]req_shift_opened done [17:10:40]requested_item shift.open_date is exist - process it [17:10:40]req_shift_open_date [17:10:40]req_shift_open_date done [17:10:40]produce_requested_data done [17:10:40]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164310,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:10:40]process_action_free get_value [17:10:40]json_value_free [17:10:40]json_value_free done [17:10:40]process_json_proto returns [17:10:40]Send response to host [17:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164310,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:10:40]free response buf [17:10:40]execute_script done [17:10:40]execute_script returns [17:10:40]free content buf [17:10:40]Sock 7.Close socket [17:10:40]Sock 7.Thread stoped [17:10:40]accept exits with 9 [17:10:40]New connection [17:10:40]New thread 3066998116 created [17:10:40]Thread 3067141476 joined [17:10:40]Waiting for new connection... [17:10:40] Sock 9.Parse request [17:10:40]Sock 9.Check first char [17:10:40]Sock 9.First char is OK [17:10:40]request: POST /json_proto HTTP/1.0 [17:10:40]Method: POST [17:10:40]URL: /json_proto [17:10:40]Method is POST - this is cgi request [17:10:40]url: /json_proto [17:10:40]query_string will be loaded in cgi processing [17:10:40]execute_cgi json_proto POST (null) [17:10:40]execute_cgi path=json_proto method=POST [17:10:40]POST find Content-Length [17:10:40]Host: 172.17.56.4:8080 [17:10:40]Content-Length: 331 [17:10:40]Content-Type: application/json [17:10:40] [17:10:40]POST finish read [17:10:40]Found Content-Length = 331 [17:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:10:40]execute_script... [17:10:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:10:40]POST & json_proto [17:10:40]process_json_proto [17:10:40]json parsed OK: [17:10:40]protocol is kg_v1.0 [17:10:40]action value=get_value [17:10:40]process_action get_value [17:10:40]cmd_get_value [17:10:40]process_action get_value done [17:10:40]requested_data is exist [17:10:40]produce_requested_data [17:10:40]requested_item fm.sale.total is exist - process it [17:10:40]SAM_PROTO_GetFMData [17:10:40]wFMCommunicate request_size=4 [17:10:40]MH_SAM_APDU [17:10:40]CAPDU: 80 13 03 00 [17:10:40]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 FD 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 59 7E 02 00 69 04 A3 00 6F 04 04 00 4C 7D 02 00 B1 04 05 00 AE 66 22 56 02 70 04 05 00 45 AA 41 34 02 72 04 04 00 69 BC E0 21 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 72 15 8B 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F4 66 4B 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 49 [17:10:41]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 59 7E 02 00 69 04 A3 00 6F 04 04 00 4C 7D 02 00 B1 04 05 00 AE 66 22 56 02 70 04 05 00 45 AA 41 34 02 72 04 04 00 69 BC E0 21 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 72 15 8B 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F4 66 4B 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 [17:10:41]wFMCommunicate OK [17:10:41]wFMCommunicate request_size=4 [17:10:41]MH_SAM_APDU [17:10:41]CAPDU: 80 17 00 00 [17:10:41]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 FD 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 DD [17:10:41]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [17:10:41]wFMCommunicate OK [17:10:41]wFMCommunicate request_size=4 [17:10:41]MH_SAM_APDU [17:10:41]CAPDU: 80 17 00 00 [17:10:41]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 FD 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [17:10:41]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [17:10:41]wFMCommunicate OK [17:10:41]wFMCommunicate request_size=4 [17:10:41]MH_SAM_APDU [17:10:41]CAPDU: 80 17 00 00 [17:10:41]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 FD 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [17:10:42]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [17:10:42]wFMCommunicate OK [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 17 00 00 [17:10:42]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 E1 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [17:10:42]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:10:42]wFMCommunicate OK [17:10:42]SAM_PROTO_GetFMData done [17:10:42]requested_item fm.sale_refund.total is exist - process it [17:10:42]requested_item fm.buy.total is exist - process it [17:10:42]requested_item shift.sale.total is exist - process it [17:10:42]SAM_PROTO_GetShiftData [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 13 02 00 [17:10:42]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]OFD Sender: No OFD packet to send [17:10:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 FD 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 FD 00 18 00 00 B7 04 AA 04 B3 04 6E 04 04 00 E7 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 13 5C FF 70 04 03 00 B8 5B DC 72 04 03 00 5B 00 23 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 DF 1F 1B 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 8D 42 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 EC [17:10:42]RAPDU: B7 04 AA 04 B3 04 6E 04 04 00 E7 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 13 5C FF 70 04 03 00 B8 5B DC 72 04 03 00 5B 00 23 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 DF 1F 1B 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 8D 42 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 90 00 [17:10:42]wFMCommunicate OK [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 17 00 00 [17:10:42]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:43]Read from MH i2c: E2 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 FD 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 FD 00 19 00 00 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C9 [17:10:43]RAPDU: 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [17:10:43]wFMCommunicate OK [17:10:43]wFMCommunicate request_size=4 [17:10:43]MH_SAM_APDU [17:10:43]CAPDU: 80 17 00 00 [17:10:43]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:43]Read from MH i2c: E2 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 FD 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [17:10:43]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:10:43]wFMCommunicate OK [17:10:43]wFMCommunicate request_size=4 [17:10:43]MH_SAM_APDU [17:10:43]CAPDU: 80 17 00 00 [17:10:43]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:10:43]Read from MH i2c: E2 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 FD 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 10 [17:10:43]RAPDU: 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 90 00 [17:10:43]wFMCommunicate OK [17:10:43]wFMCommunicate request_size=4 [17:10:43]MH_SAM_APDU [17:10:43]CAPDU: 80 17 00 00 [17:10:43]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [17:10:43]Read from MH i2c: E2 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 D4 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: E2 D4 00 1C 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [17:10:43]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:10:43]wFMCommunicate OK [17:10:43]SAM_PROTO_GetShiftData done [17:10:43]requested_item shift.sale.total_cash is exist - process it [17:10:43]requested_item shift.sale_refund.total is exist - process it [17:10:43]requested_item shift.sale_refund.total_cash is exist - process it [17:10:43]requested_item shift.buy.total is exist - process it [17:10:43]requested_item shift.buy.total_cash is exist - process it [17:10:43]produce_requested_data done [17:10:43]produce_requested_data return {"fm.sale.total":100350296.78,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":167352.51,"shift.sale.total_cash":144414.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:10:43]process_action_free get_value [17:10:43]json_value_free [17:10:43]json_value_free done [17:10:43]process_json_proto returns [17:10:43]Send response to host [17:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100350296.78,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":167352.51,"shift.sale.total_cash":144414.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:10:43]free response buf [17:10:43]execute_script done [17:10:43]execute_script returns [17:10:43]free content buf [17:10:43]Sock 9.Close socket [17:10:43]Sock 9.Thread stoped [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:03]accept exits with 7 [17:14:03]New connection [17:14:03]New thread 3067141476 created [17:14:03]Thread 3066998116 joined [17:14:03]Waiting for new connection... [17:14:03] Sock 7.Parse request [17:14:03]Sock 7.Check first char [17:14:03]Sock 7.First char is OK [17:14:03]request: POST /json_proto HTTP/1.0 [17:14:03]Method: POST [17:14:03]URL: /json_proto [17:14:03]Method is POST - this is cgi request [17:14:03]url: /json_proto [17:14:03]query_string will be loaded in cgi processing [17:14:03]execute_cgi json_proto POST (null) [17:14:03]execute_cgi path=json_proto method=POST [17:14:03]POST find Content-Length [17:14:03]Host: 172.17.56.4:8080 [17:14:03]Content-Length: 677 [17:14:03]Content-Type: application/json [17:14:03] [17:14:03]POST finish read [17:14:03]Found Content-Length = 677 [17:14:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.960, "sum" : 260.57, "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" ] } } [17:14:03]execute_script... [17:14: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)458394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.960, "sum" : 260.57, "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" ] } } [17:14:03]POST & json_proto [17:14:03]process_json_proto [17:14:03]json parsed OK: [17:14:03]protocol is kg_v1.0 [17:14:03]action value=close_receipt [17:14:03]process_action close_receipt [17:14:03]cmd_close_receipt [17:14:03]MH_GetDate [17:14:03]Write to MH i2c: F0 00 00 1D 00 0C [17:14:03]Write i2c OK [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: F0 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: F0 09 00 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: F0 09 00 1D 00 00 5B 64 91 66 C9 DC B2 64 86 [17:14:03]GetLastDocTimeStamp 97 [17:14:03]current date 1720804443 [17:14:03]FM_GetShiftState [17:14:03]SAM_PROTO_GetShiftState [17:14:03]wFMCommunicate request_size=4 [17:14:03]MH_SAM_APDU [17:14:03]CAPDU: 80 13 01 00 [17:14:03]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [17:14:03]Write i2c OK [17:14:03]MH_I2C_Read... [17:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:03]Read from MH i2c: E2 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: E2 0E 00 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E5 [17:14:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:14:03]wFMCommunicate OK [17:14:03]SAM_PROTO_GetShiftState done [17:14:03]FM_GetShiftState done [17:14:03]opened in 1720744654 [17:14:03]opened+sec_in_day 1720831054 [17:14:03]quantity*price = 26056 [17:14:03]sum+1 = 26058 [17:14:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.31 НДС 12% : 27.67 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 232 12.07.2024 17:14 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164311 ФПД: 183707011381305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T171403&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164311&fm=183707011381305&tin=02508201610067®Number=0000000000090829&sum=26000 [17:14:04]StoreToDocumentArchive [17:14:04]shift 445 fd 164311 [17:14:04]save to /storage/0445/doc_00164311 [17:14:04]save last doc name /storage/0445/doc_00164311 to /storage/kkm_last_doc_name [17:14:04]save OK [17:14:04]Clear old archive folders... [17:14:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:04]tlvbuf is 01E35A90 [17:14:04]SAM_PROTO_ClearQueue [17:14:04]wFMCommunicate request_size=4 [17:14:04]MH_SAM_APDU [17:14:04]CAPDU: 80 09 00 00 [17:14:04]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:04]Read from MH i2c: E2 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 03 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:14:04]RAPDU: 90 00 [17:14:04]wFMCommunicate OK [17:14:04]SAM_PROTO_ClearQueue done [17:14:04]KKMCreateOFDPacket [17:14:04]OFDProtocolAddRootSTLVToBuf [17:14:04]FM_MakeSignedData [17:14:04]FM_MakeSignedData [17:14:04]SAM_PROTO_SignData [17:14:04]wFMCommunicate request_size=4 [17:14:04]MH_SAM_APDU [17:14:04]CAPDU: 80 0D 01 02 [17:14:04]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:04]Read from MH i2c: E2 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 03 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:14:04]RAPDU: 90 00 [17:14:04]wFMCommunicate OK [17:14:04]wFMCommunicate request_size=255 [17:14:04]MH_SAM_APDU [17:14: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 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 E8 00 00 00 F4 03 04 00 5B 64 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 81 02 00 35 04 06 00 A7 [17:14:04]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 E8 00 00 00 F4 03 04 00 5B 64 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 81 02 00 35 04 06 00 A7 00 00 3E [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:04]Read from MH i2c: E2 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 03 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:14:04]RAPDU: 90 00 [17:14:04]wFMCommunicate OK [17:14:04]wFMCommunicate request_size=10 [17:14:04]MH_SAM_APDU [17:14:04]CAPDU: 80 0D 02 02 05 14 9F 27 F8 39 [17:14:04]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 14 9F 27 F8 39 00 00 BD [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:04]Read from MH i2c: E2 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 03 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:14:04]RAPDU: 90 00 [17:14:04]wFMCommunicate OK [17:14:04]wFMCommunicate request_size=4 [17:14:04]MH_SAM_APDU [17:14:04]CAPDU: 80 0D 03 02 [17:14:04]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:04]Read from MH i2c: E2 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 0B 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 0B 00 2F 00 00 C8 F7 38 BF 50 03 C7 B3 90 00 2E [17:14:04]RAPDU: C8 F7 38 BF 50 03 C7 B3 90 00 [17:14:04]wFMCommunicate OK [17:14:04]SAM_PROTO_SignData done [17:14:04]FM_MakeSignedData done [17:14:04]CreateOFDProtocolMessage [17:14:04]wFMCommunicate request_size=4 [17:14:04]MH_SAM_APDU [17:14:04]CAPDU: 80 11 00 00 [17:14:04]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:04]Read from MH i2c: E2 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 17 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [17:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:14:04]wFMCommunicate OK [17:14:04]CreateOFDProtocolMessage done [17:14:04]OFDSenderStorePacket 164311 [17:14:04]StoreOFDPacket docnum=164311 [17:14:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA 72 07 01 2A 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 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 E8 00 00 00 F4 03 04 00 5B 64 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 81 02 00 35 04 06 00 A7 14 9F 27 F8 39 C8 F7 38 BF 50 03 C7 B3 [17:14:04]CheckFolder [17:14:04]dirname=/storage/ofd_packets [17:14:04]CheckFolder done [17:14:04]ProducePacketName [17:14:04]name=ofd_packets/00164311 [17:14:04]NVStorageSaveData ofd_packets/00164311 [17:14:04]File name is /storage/ofd_packets/00164311 [17:14:04]Write 301 bytes [17:14:04]NVStorageSaveData done [17:14:04]OFDSenderStorePacket done [17:14:04]KKMCreateOFDPacket done [17:14:04]NVStorageSaveData kkm_last_timestamp [17:14:04]File name is /storage/kkm_last_timestamp [17:14:04]Write 4 bytes [17:14:04]NVStorageSaveData done [17:14:04]ExternCall_PrintAddStr [17:14:04]wPrintStart [17:14:04]Write to MH i2c: 01 00 00 31 00 31 [17:14:04]Write i2c OK [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: 01 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: 01 07 00 [17:14:04]MH_I2C_Read... [17:14:04]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:14:04]RasterBufferAndPrint [17:14:04]line Счет N : (1)458394 [17:14:04]line ИНН: 02508201610067 [17:14:04]line Контрольно-Кассовый Чек [17:14:04]line ПРОДАЖА [17:14:04]line ТРК (МРК, ГНК) : 12 [17:14:04]line Товар: 2710124130 [17:14:04]line Аи-92-К-5 [17:14:04]line 3.960 * 65.80 [17:14:04]line = 260.57 [17:14:04]line НДС 12% НСП 1% [17:14:04]line > о реализуемом товаре [17:14:04]line ОКРУГЛЕНИЕ: -0.57 [17:14:04]line ИТОГО: 260.00 [17:14:04]line Внесено: 260.00 [17:14:04]line СДАЧА: 0.00 [17:14:04]line НСП 1% : 2.31 [17:14:04]line НДС 12% : 27.67 [17:14:04]line Наличными: 260.00 [17:14:04]line Безнал.: 0.00 [17:14:04]line Место: АЗС № 72 "Партнер Нефть" [17:14:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:14:04]line СНО: Общий режим [17:14:04]line Чек 232 12.07.2024 17:14 [17:14:04]line Смена: 445 ФФД: 1.0 [17:14:04]line ЗНМ: 0300000160 [17:14:04]line РНМ: 0000000000090829 [17:14:04]line Версия ККМ: 001 [17:14:04]line ФМ: 0000000000874718 [17:14:04]line ФД: 164311 [17:14:04]line ФПД: 183707011381305 [17:14:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T171403&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164311&fm=183707011381305&tin=02508201610067®Number=0000000000090829&sum=26000 [17:14:04]written 0, free lines is 4095 [17:14:04]OFD Sender: Processing packet 164311 [packets to send 104, broken 103] [17:14:04]ProducePacketName [17:14:04]name=ofd_packets/00164311 [17:14:04]OFD Sender: To server: pG, [17:14:04]CommunicateWithHost lk.salyk.kg:30040 [17:14:04]ConnectInit lk.salyk.kg [17:14:04]Connected sock=10 [17:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA 72 07 01 2A 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 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 E8 00 00 00 F4 03 04 00 5B 64 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 81 02 00 35 04 06 00 A7 14 9F 27 F8 39 C8 F7 38 BF 50 03 C7 B3 [17:14:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 98 83 47 00 54 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 34 37 31 38 10 04 04 00 D7 81 02 00 F4 03 04 00 EF 0A 91 66 B6 04 01 00 00 44 26 F9 5D 93 91 75 EC [17:14:05]CommunicateWithHost err = 0 [17:14:05]CheckOFDResponse [17:14:05]1017 (14) - 77093643461234 [17:14:05]1041 (16) - 0000000000874718 [17:14:05]1040 (4) - 164311 [17:14:05]1012 (4) - 12.07.2024 10:52 [17:14:05]1206 (1) - 0 [17:14:05]OFD Sender: Remove packet 164311 [17:14:05]ProducePacketName [17:14:05]name=ofd_packets/00164311 [17:14:05]NVStorageDeleteData [17:14:05]Write to MH i2c: 01 00 00 5B 00 5B [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: 01 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: 01 07 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 0A 0D 79 [17:14:05]RasterBufferAndPrint [17:14:05]line [17:14:05]line [17:14:05]line [17:14:05]line [17:14:05]line [17:14:05]written 0, free lines is 3344 [17:14:05]MH_Cut [17:14:05]Write to MH i2c: D1 01 00 62 00 01 34 [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: D1 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: D1 01 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: D1 01 00 62 00 00 33 [17:14:05]Write to MH i2c: 01 00 00 63 00 63 [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]OFD Sender: No OFD packet to send [17:14:05]*** Cut start [17:14:05]*** Partial cut [17:14:05]*** CUTSNS_PIN = 1 [17:14:05]*** CUTSNS_PIN = 0 [17:14:06]*** Brake cut motor [17:14:06]Read from MH i2c: 01 [17:14:06]MH_I2C_Read... [17:14:06]*** Stop cut motor [17:14:06]*** Cut end [17:14:06]Read from MH i2c: 01 07 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [17:14:06]process_action close_receipt done [17:14:06]requested_data is exist [17:14:06]produce_requested_data [17:14:06]requested_item fm.sn is exist - process it [17:14:06]wFMCommunicate request_size=4 [17:14:06]MH_SAM_APDU [17:14:06]CAPDU: 80 11 00 00 [17:14:06]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 17 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [17:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:14:06]wFMCommunicate OK [17:14:06]requested_item fd.num is exist - process it [17:14:06]SAM_PROTO_GetFieldsCounters [17:14:06]wFMCommunicate request_size=4 [17:14:06]MH_SAM_APDU [17:14:06]CAPDU: 80 13 00 00 [17:14:06]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 62 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [17:14:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:06]wFMCommunicate OK [17:14:06]SAM_PROTO_GetFieldsCounters done [17:14:06]requested_item shift.num is exist - process it [17:14:06]requested_item shift.opened is exist - process it [17:14:06]req_shift_opened [17:14:06]FM_GetShiftState [17:14:06]SAM_PROTO_GetShiftState [17:14:06]wFMCommunicate request_size=4 [17:14:06]MH_SAM_APDU [17:14:06]CAPDU: 80 13 01 00 [17:14:06]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 0E 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2D [17:14:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:14:06]wFMCommunicate OK [17:14:06]SAM_PROTO_GetShiftState done [17:14:06]FM_GetShiftState done [17:14:06]req_shift_opened done [17:14:06]requested_item shift.open_date is exist - process it [17:14:06]req_shift_open_date [17:14:06]req_shift_open_date done [17:14:06]produce_requested_data done [17:14:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164311,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:14:06]process_action_free close_receipt [17:14:06]json_value_free [17:14:06]json_value_free done [17:14:06]process_json_proto returns [17:14:06]Send response to host [17:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164311,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:14:06]free response buf [17:14:06]execute_script done [17:14:06]execute_script returns [17:14:06]free content buf [17:14:06]Sock 7.Close socket [17:14:06]Sock 7.Thread stoped [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]accept exits with 9 [17:16:15]New connection [17:16:15]New thread 3066998116 created [17:16:15]Thread 3067141476 joined [17:16:15]Waiting for new connection... [17:16:15] Sock 9.Parse request [17:16:15]Sock 9.Check first char [17:16:15]Sock 9.First char is OK [17:16:15]request: POST /json_proto HTTP/1.0 [17:16:15]Method: POST [17:16:15]URL: /json_proto [17:16:15]Method is POST - this is cgi request [17:16:15]url: /json_proto [17:16:15]query_string will be loaded in cgi processing [17:16:15]execute_cgi json_proto POST (null) [17:16:15]execute_cgi path=json_proto method=POST [17:16:15]POST find Content-Length [17:16:15]Host: 172.17.56.4:8080 [17:16:15]Content-Length: 677 [17:16:15]Content-Type: application/json [17:16:15] [17:16:15]POST finish read [17:16:15]Found Content-Length = 677 [17:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.700, "sum" : 375.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 375.00, "total" : 375.00, "payments": [ { "type": 0, "sum" : 375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:15]execute_script... [17:16: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)458395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.700, "sum" : 375.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 375.00, "total" : 375.00, "payments": [ { "type": 0, "sum" : 375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:15]POST & json_proto [17:16:15]process_json_proto [17:16:15]json parsed OK: [17:16:15]protocol is kg_v1.0 [17:16:15]action value=close_receipt [17:16:15]process_action close_receipt [17:16:15]cmd_close_receipt [17:16:15]MH_GetDate [17:16:15]Write to MH i2c: F0 00 00 67 00 56 [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: F0 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: F0 09 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: F0 09 00 67 00 00 E0 64 91 66 C9 DC B2 64 55 [17:16:15]GetLastDocTimeStamp 1720804443 [17:16:15]current date 1720804576 [17:16:15]FM_GetShiftState [17:16:15]SAM_PROTO_GetShiftState [17:16:15]wFMCommunicate request_size=4 [17:16:15]MH_SAM_APDU [17:16:15]CAPDU: 80 13 01 00 [17:16:15]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]OFD Sender: No OFD packet to send [17:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:15]Read from MH i2c: E2 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 0E 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2F [17:16:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:16:15]wFMCommunicate OK [17:16:15]SAM_PROTO_GetShiftState done [17:16:15]FM_GetShiftState done [17:16:15]opened in 1720744654 [17:16:15]opened+sec_in_day 1720831054 [17:16:15]quantity*price = 37506 [17:16:15]sum+1 = 37507 [17:16:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 375.00 Внесено: 375.00 СДАЧА: 0.00 НСП 1% : 3.32 НДС 12% : 39.83 Наличными: 375.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 233 12.07.2024 17:16 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164312 ФПД: 235526588925344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T171616&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164312&fm=235526588925344&tin=02508201610067®Number=0000000000090829&sum=37500 [17:16:16]StoreToDocumentArchive [17:16:16]shift 445 fd 164312 [17:16:16]save to /storage/0445/doc_00164312 [17:16:16]save last doc name /storage/0445/doc_00164312 to /storage/kkm_last_doc_name [17:16:16]save OK [17:16:16]Clear old archive folders... [17:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:16]tlvbuf is 01E2C610 [17:16:16]SAM_PROTO_ClearQueue [17:16:16]wFMCommunicate request_size=4 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 09 00 00 [17:16:16]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:16:16]RAPDU: 90 00 [17:16:16]wFMCommunicate OK [17:16:16]SAM_PROTO_ClearQueue done [17:16:16]KKMCreateOFDPacket [17:16:16]OFDProtocolAddRootSTLVToBuf [17:16:16]FM_MakeSignedData [17:16:16]FM_MakeSignedData [17:16:16]SAM_PROTO_SignData [17:16:16]wFMCommunicate request_size=4 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 0D 01 02 [17:16:16]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 03 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:16:17]RAPDU: 90 00 [17:16:17]wFMCommunicate OK [17:16:17]wFMCommunicate request_size=255 [17:16:17]MH_SAM_APDU [17:16: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 44 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 82 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E0 64 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 81 02 00 35 04 06 00 D6 [17:16:17]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 82 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E0 64 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 81 02 00 35 04 06 00 D6 00 00 54 [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 03 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:16:17]RAPDU: 90 00 [17:16:17]wFMCommunicate OK [17:16:17]wFMCommunicate request_size=10 [17:16:17]MH_SAM_APDU [17:16:17]CAPDU: 80 0D 02 02 05 35 CE AB 05 A0 [17:16:17]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 35 CE AB 05 A0 00 00 4F [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 03 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [17:16:17]RAPDU: 90 00 [17:16:17]wFMCommunicate OK [17:16:17]wFMCommunicate request_size=4 [17:16:17]MH_SAM_APDU [17:16:17]CAPDU: 80 0D 03 02 [17:16:17]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 0B 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 0B 00 79 00 00 47 49 4D 06 B7 7D F0 46 90 00 42 [17:16:17]RAPDU: 47 49 4D 06 B7 7D F0 46 90 00 [17:16:17]wFMCommunicate OK [17:16:17]SAM_PROTO_SignData done [17:16:17]FM_MakeSignedData done [17:16:17]CreateOFDProtocolMessage [17:16:17]wFMCommunicate request_size=4 [17:16:17]MH_SAM_APDU [17:16:17]CAPDU: 80 11 00 00 [17:16:17]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 17 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [17:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:16:17]wFMCommunicate OK [17:16:17]CreateOFDProtocolMessage done [17:16:17]OFDSenderStorePacket 164312 [17:16:17]StoreOFDPacket docnum=164312 [17:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 68 07 01 AE 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 44 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 82 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E0 64 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 81 02 00 35 04 06 00 D6 35 CE AB 05 A0 47 49 4D 06 B7 7D F0 46 [17:16:17]CheckFolder [17:16:17]dirname=/storage/ofd_packets [17:16:17]CheckFolder done [17:16:17]ProducePacketName [17:16:17]name=ofd_packets/00164312 [17:16:17]NVStorageSaveData ofd_packets/00164312 [17:16:17]File name is /storage/ofd_packets/00164312 [17:16:17]Write 301 bytes [17:16:17]NVStorageSaveData done [17:16:17]OFDSenderStorePacket done [17:16:17]KKMCreateOFDPacket done [17:16:17]NVStorageSaveData kkm_last_timestamp [17:16:17]File name is /storage/kkm_last_timestamp [17:16:17]Write 4 bytes [17:16:17]NVStorageSaveData done [17:16:17]ExternCall_PrintAddStr [17:16:17]wPrintStart [17:16:17]Write to MH i2c: 01 00 00 7B 00 7B [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 07 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [17:16:17]RasterBufferAndPrint [17:16:17]line Счет N : (1)458395 [17:16:17]line ИНН: 02508201610067 [17:16:17]line Контрольно-Кассовый Чек [17:16:17]line ПРОДАЖА [17:16:17]line ТРК (МРК, ГНК) : 22 [17:16:17]line Товар: 2710124130 [17:16:17]line Аи-92-К-5 [17:16:17]line 5.700 * 65.80 [17:16:17]line = 375.06 [17:16:17]line НДС 12% НСП 1% [17:16:17]line > о реализуемом товаре [17:16:17]line ОКРУГЛЕНИЕ: -0.06 [17:16:17]line ИТОГО: 375.00 [17:16:17]line Внесено: 375.00 [17:16:17]line СДАЧА: 0.00 [17:16:17]line НСП 1% : 3.32 [17:16:17]line НДС 12% : 39.83 [17:16:17]line Наличными: 375.00 [17:16:17]line Безнал.: 0.00 [17:16:17]line Место: АЗС № 72 "Партнер Нефть" [17:16:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:16:17]line СНО: Общий режим [17:16:17]line Чек 233 12.07.2024 17:16 [17:16:17]line Смена: 445 ФФД: 1.0 [17:16:17]line ЗНМ: 0300000160 [17:16:17]line РНМ: 0000000000090829 [17:16:17]line Версия ККМ: 001 [17:16:17]line ФМ: 0000000000874718 [17:16:17]line ФД: 164312 [17:16:17]line ФПД: 235526588925344 [17:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T171616&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164312&fm=235526588925344&tin=02508201610067®Number=0000000000090829&sum=37500 [17:16:17]OFD Sender: Processing packet 164312 [packets to send 104, broken 103] [17:16:17]ProducePacketName [17:16:17]name=ofd_packets/00164312 [17:16:17]OFD Sender: To server: pG, [17:16:17]CommunicateWithHost lk.salyk.kg:30040 [17:16:17]ConnectInit lk.salyk.kg [17:16:17]written 0, free lines is 4095 [17:16:17]Connected sock=10 [17:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 68 07 01 AE 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 44 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 82 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 E0 64 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 81 02 00 35 04 06 00 D6 35 CE AB 05 A0 47 49 4D 06 B7 7D F0 46 [17:16:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 12 DE 47 00 3D 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 34 37 31 38 10 04 04 00 D8 81 02 00 F4 03 04 00 74 0B 91 66 B6 04 01 00 00 22 A9 89 61 57 27 4E 44 [17:16:18]CommunicateWithHost err = 0 [17:16:18]CheckOFDResponse [17:16:18]1017 (14) - 77093643461234 [17:16:18]1041 (16) - 0000000000874718 [17:16:18]1040 (4) - 164312 [17:16:18]1012 (4) - 12.07.2024 10:54 [17:16:18]1206 (1) - 0 [17:16:18]OFD Sender: Remove packet 164312 [17:16:18]ProducePacketName [17:16:18]name=ofd_packets/00164312 [17:16:18]NVStorageDeleteData [17:16:18]Write to MH i2c: 01 00 00 A5 00 A5 [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: 01 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: 01 07 00 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 08 0D C1 [17:16:18]RasterBufferAndPrint [17:16:18]line [17:16:18]line [17:16:18]line [17:16:18]line [17:16:18]line [17:16:18]written 0, free lines is 3342 [17:16:18]MH_Cut [17:16:18]Write to MH i2c: D1 01 00 AC 00 01 7E [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: D1 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: D1 01 00 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: D1 01 00 AC 00 00 7D [17:16:18]Write to MH i2c: 01 00 00 AD 00 AD [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:18]OFD Sender: No OFD packet to send [17:16:18]*** Cut start [17:16:18]*** Partial cut [17:16:18]*** CUTSNS_PIN = 1 [17:16:18]*** CUTSNS_PIN = 0 [17:16:19]*** Brake cut motor [17:16:19]Read from MH i2c: 01 [17:16:19]MH_I2C_Read... [17:16:19]*** Stop cut motor [17:16:19]*** Cut end [17:16:19]Read from MH i2c: 01 07 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [17:16:19]process_action close_receipt done [17:16:19]requested_data is exist [17:16:19]produce_requested_data [17:16:19]requested_item fm.sn is exist - process it [17:16:19]wFMCommunicate request_size=4 [17:16:19]MH_SAM_APDU [17:16:19]CAPDU: 80 11 00 00 [17:16:19]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:19]Read from MH i2c: E2 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 17 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [17:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:16:19]wFMCommunicate OK [17:16:19]requested_item fd.num is exist - process it [17:16:19]SAM_PROTO_GetFieldsCounters [17:16:19]wFMCommunicate request_size=4 [17:16:19]MH_SAM_APDU [17:16:19]CAPDU: 80 13 00 00 [17:16:19]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:19]Read from MH i2c: E2 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 62 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [17:16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:19]wFMCommunicate OK [17:16:19]SAM_PROTO_GetFieldsCounters done [17:16:19]requested_item shift.num is exist - process it [17:16:19]requested_item shift.opened is exist - process it [17:16:19]req_shift_opened [17:16:19]FM_GetShiftState [17:16:19]SAM_PROTO_GetShiftState [17:16:19]wFMCommunicate request_size=4 [17:16:19]MH_SAM_APDU [17:16:19]CAPDU: 80 13 01 00 [17:16:19]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:19]Read from MH i2c: E2 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 0E 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 77 [17:16:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:16:19]wFMCommunicate OK [17:16:19]SAM_PROTO_GetShiftState done [17:16:19]FM_GetShiftState done [17:16:19]req_shift_opened done [17:16:19]requested_item shift.open_date is exist - process it [17:16:19]req_shift_open_date [17:16:19]req_shift_open_date done [17:16:19]produce_requested_data done [17:16:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164312,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:16:19]process_action_free close_receipt [17:16:19]json_value_free [17:16:19]json_value_free done [17:16:19]process_json_proto returns [17:16:19]Send response to host [17:16:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164312,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:16:19]free response buf [17:16:19]execute_script done [17:16:19]execute_script returns [17:16:19]free content buf [17:16:19]Sock 9.Close socket [17:16:19]Sock 9.Thread stoped [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:49]accept exits with 8 [17:19:49]New connection [17:19:49]New thread 3067141476 created [17:19:49]Thread 3066998116 joined [17:19:49]Waiting for new connection... [17:19:49] Sock 8.Parse request [17:19:49]Sock 8.Check first char [17:19:49]Sock 8.First char is OK [17:19:49]request: POST /json_proto HTTP/1.0 [17:19:49]Method: POST [17:19:49]URL: /json_proto [17:19:49]Method is POST - this is cgi request [17:19:49]url: /json_proto [17:19:49]query_string will be loaded in cgi processing [17:19:49]execute_cgi json_proto POST (null) [17:19:49]execute_cgi path=json_proto method=POST [17:19:49]POST find Content-Length [17:19:49]Host: 172.17.56.4:8080 [17:19:49]Content-Length: 640 [17:19:49]Content-Type: application/json [17:19:49] [17:19:49]POST finish read [17:19:49]Found Content-Length = 640 [17:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:49]execute_script... [17: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)458396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:49]POST & json_proto [17:19:49]process_json_proto [17:19:49]json parsed OK: [17:19:49]protocol is kg_v1.0 [17:19:49]action value=close_receipt [17:19:49]process_action close_receipt [17:19:49]cmd_close_receipt [17:19:49]MH_GetDate [17:19:49]Write to MH i2c: F0 00 00 B1 00 A0 [17:19:49]Write i2c OK [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: F0 [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: F0 09 00 [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: F0 09 00 B1 00 00 B6 65 91 66 C9 DC B2 64 76 [17:19:49]GetLastDocTimeStamp 1720804576 [17:19:49]current date 1720804790 [17:19:49]FM_GetShiftState [17:19:49]SAM_PROTO_GetShiftState [17:19:49]wFMCommunicate request_size=4 [17:19:49]MH_SAM_APDU [17:19:49]CAPDU: 80 13 01 00 [17:19:49]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [17:19:49]Write i2c OK [17:19:49]MH_I2C_Read... [17:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:49]Read from MH i2c: E2 [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: E2 0E 00 [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 79 [17:19:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:19:49]wFMCommunicate OK [17:19:49]SAM_PROTO_GetShiftState done [17:19:49]FM_GetShiftState done [17:19:49]opened in 1720744654 [17:19:49]opened+sec_in_day 1720831054 [17:19:49]quantity*price = 65800 [17:19:49]sum+1 = 65801 [17:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 234 12.07.2024 17:19 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164313 ФПД: 202223439948791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T171950&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164313&fm=202223439948791&tin=02508201610067®Number=0000000000090829&sum=65800 [17:19:51]StoreToDocumentArchive [17:19:51]shift 445 fd 164313 [17:19:51]save to /storage/0445/doc_00164313 [17:19:51]save last doc name /storage/0445/doc_00164313 to /storage/kkm_last_doc_name [17:19:51]save OK [17:19:51]Clear old archive folders... [17:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:51]tlvbuf is 01E6AFA0 [17:19:51]SAM_PROTO_ClearQueue [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 09 00 00 [17:19:51]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [17:19:51]RAPDU: 90 00 [17:19:51]wFMCommunicate OK [17:19:51]SAM_PROTO_ClearQueue done [17:19:51]KKMCreateOFDPacket [17:19:51]OFDProtocolAddRootSTLVToBuf [17:19:51]FM_MakeSignedData [17:19:51]FM_MakeSignedData [17:19:51]SAM_PROTO_SignData [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 0D 01 02 [17:19:51]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [17:19:51]RAPDU: 90 00 [17:19:51]wFMCommunicate OK [17:19:51]wFMCommunicate request_size=255 [17:19:51]MH_SAM_APDU [17: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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 B6 65 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 81 02 00 35 04 06 00 B7 [17:19:51]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 B6 65 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 81 02 00 35 04 06 00 B7 00 00 E7 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [17:19:51]RAPDU: 90 00 [17:19:51]wFMCommunicate OK [17:19:51]wFMCommunicate request_size=10 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 0D 02 02 05 EB D0 4D AB F7 [17:19:51]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 EB D0 4D AB F7 00 00 F0 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [17:19:51]RAPDU: 90 00 [17:19:51]wFMCommunicate OK [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 0D 03 02 [17:19:51]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 0B 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 0B 00 C3 00 00 51 09 2E B3 B5 0C F3 FD 90 00 2B [17:19:51]RAPDU: 51 09 2E B3 B5 0C F3 FD 90 00 [17:19:51]wFMCommunicate OK [17:19:51]SAM_PROTO_SignData done [17:19:51]FM_MakeSignedData done [17:19:51]CreateOFDProtocolMessage [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 11 00 00 [17:19:51]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 17 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [17:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:19:51]wFMCommunicate OK [17:19:51]CreateOFDProtocolMessage done [17:19:51]OFDSenderStorePacket 164313 [17:19:51]StoreOFDPacket docnum=164313 [17:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 95 F5 07 01 6B 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 B6 65 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 81 02 00 35 04 06 00 B7 EB D0 4D AB F7 51 09 2E B3 B5 0C F3 FD [17:19:51]CheckFolder [17:19:51]dirname=/storage/ofd_packets [17:19:51]CheckFolder done [17:19:51]ProducePacketName [17:19:51]name=ofd_packets/00164313 [17:19:51]NVStorageSaveData ofd_packets/00164313 [17:19:51]File name is /storage/ofd_packets/00164313 [17:19:51]Write 301 bytes [17:19:51]NVStorageSaveData done [17:19:51]OFDSenderStorePacket done [17:19:51]KKMCreateOFDPacket done [17:19:51]NVStorageSaveData kkm_last_timestamp [17:19:51]File name is /storage/kkm_last_timestamp [17:19:51]Write 4 bytes [17:19:51]NVStorageSaveData done [17:19:51]ExternCall_PrintAddStr [17:19:51]wPrintStart [17:19:51]Write to MH i2c: 01 00 00 C5 00 C5 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: 01 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: 01 07 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [17:19:51]RasterBufferAndPrint [17:19:51]line Счет N : (1)458396 [17:19:51]line ИНН: 02508201610067 [17:19:51]line Контрольно-Кассовый Чек [17:19:51]line ПРОДАЖА [17:19:51]line ТРК (МРК, ГНК) : 22 [17:19:51]line Товар: 2710124130 [17:19:51]line Аи-92-К-5 [17:19:51]line 10.000 * 65.80 [17:19:51]line = 658.00 [17:19:51]line НДС 12% НСП 1% [17:19:51]line > о реализуемом товаре [17:19:51]line ИТОГО: 658.00 [17:19:51]line НСП 1% : 5.82 [17:19:51]line НДС 12% : 69.88 [17:19:51]line Наличными: 658.00 [17:19:51]line Безнал.: 0.00 [17:19:51]line Место: АЗС № 72 "Партнер Нефть" [17:19:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:19:51]line СНО: Общий режим [17:19:51]line Чек 234 12.07.2024 17:19 [17:19:51]line Смена: 445 ФФД: 1.0 [17:19:51]line ЗНМ: 0300000160 [17:19:51]line РНМ: 0000000000090829 [17:19:51]line Версия ККМ: 001 [17:19:51]line ФМ: 0000000000874718 [17:19:51]line ФД: 164313 [17:19:51]line ФПД: 202223439948791 [17:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T171950&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164313&fm=202223439948791&tin=02508201610067®Number=0000000000090829&sum=65800 [17:19:51]OFD Sender: Processing packet 164313 [packets to send 104, broken 103] [17:19:51]ProducePacketName [17:19:51]name=ofd_packets/00164313 [17:19:51]OFD Sender: To server: pG, [17:19:51]CommunicateWithHost lk.salyk.kg:30040 [17:19:51]ConnectInit lk.salyk.kg [17:19:51]written 0, free lines is 4095 [17:19:52]Connected sock=10 [17: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 34 37 31 38 0F 01 00 00 95 F5 07 01 6B 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 B6 65 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 81 02 00 35 04 06 00 B7 EB D0 4D AB F7 51 09 2E B3 B5 0C F3 FD [17:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1E 93 47 00 74 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 34 37 31 38 10 04 04 00 D9 81 02 00 F4 03 04 00 4A 0C 91 66 B6 04 01 00 00 A4 33 49 60 C4 8F 03 FB [17:19:52]CommunicateWithHost err = 0 [17:19:52]CheckOFDResponse [17:19:52]1017 (14) - 77093643461234 [17:19:52]1041 (16) - 0000000000874718 [17:19:52]1040 (4) - 164313 [17:19:52]1012 (4) - 12.07.2024 10:58 [17:19:52]1206 (1) - 0 [17:19:52]OFD Sender: Remove packet 164313 [17:19:52]ProducePacketName [17:19:52]name=ofd_packets/00164313 [17:19:52]NVStorageDeleteData [17:19:52]Write to MH i2c: 01 00 00 EC 00 EC [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 07 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 39 0D 39 [17:19:52]RasterBufferAndPrint [17:19:52]line [17:19:52]line [17:19:52]line [17:19:52]line [17:19:52]line [17:19:52]written 0, free lines is 3391 [17:19:52]MH_Cut [17:19:52]Write to MH i2c: D1 01 00 F3 00 01 C5 [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: D1 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: D1 01 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: D1 01 00 F3 00 00 C4 [17:19:52]Write to MH i2c: 01 00 00 F4 00 F4 [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]OFD Sender: No OFD packet to send [17:19:52]*** Cut start [17:19:52]*** Partial cut [17:19:52]*** CUTSNS_PIN = 1 [17:19:53]*** CUTSNS_PIN = 0 [17:19:53]*** Brake cut motor [17:19:53]Read from MH i2c: 01 [17:19:53]MH_I2C_Read... [17:19:53]*** Stop cut motor [17:19:53]*** Cut end [17:19:53]Read from MH i2c: 01 07 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 FF 0F 09 [17:19:53]process_action close_receipt done [17:19:53]requested_data is exist [17:19:53]produce_requested_data [17:19:53]requested_item fm.sn is exist - process it [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 11 00 00 [17:19:53]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 17 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [17:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:19:53]wFMCommunicate OK [17:19:53]requested_item fd.num is exist - process it [17:19:53]SAM_PROTO_GetFieldsCounters [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 13 00 00 [17:19:53]Write to MH i2c: E2 08 00 F6 00 80 13 00 00 00 00 00 00 72 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 62 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 62 00 F6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [17:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:53]wFMCommunicate OK [17:19:53]SAM_PROTO_GetFieldsCounters done [17:19:53]requested_item shift.num is exist - process it [17:19:53]requested_item shift.opened is exist - process it [17:19:53]req_shift_opened [17:19:53]FM_GetShiftState [17:19:53]SAM_PROTO_GetShiftState [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 13 01 00 [17:19:53]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 0E 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BE [17:19:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:19:53]wFMCommunicate OK [17:19:53]SAM_PROTO_GetShiftState done [17:19:53]FM_GetShiftState done [17:19:53]req_shift_opened done [17:19:53]requested_item shift.open_date is exist - process it [17:19:53]req_shift_open_date [17:19:53]req_shift_open_date done [17:19:53]produce_requested_data done [17:19:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164313,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:19:53]process_action_free close_receipt [17:19:53]json_value_free [17:19:53]json_value_free done [17:19:53]process_json_proto returns [17:19:53]Send response to host [17:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164313,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:19:53]free response buf [17:19:53]execute_script done [17:19:53]execute_script returns [17:19:53]free content buf [17:19:53]Sock 8.Close socket [17:19:53]Sock 8.Thread stoped [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:24]accept exits with 9 [17:24:24]New connection [17:24:24]New thread 3066998116 created [17:24:24]Thread 3067141476 joined [17:24:24]Waiting for new connection... [17:24:24] Sock 9.Parse request [17:24:24]Sock 9.Check first char [17:24:24]Sock 9.First char is OK [17:24:24]request: POST /json_proto HTTP/1.0 [17:24:24]Method: POST [17:24:24]URL: /json_proto [17:24:24]Method is POST - this is cgi request [17:24:24]url: /json_proto [17:24:24]query_string will be loaded in cgi processing [17:24:24]execute_cgi json_proto POST (null) [17:24:24]execute_cgi path=json_proto method=POST [17:24:24]POST find Content-Length [17:24:24]Host: 172.17.56.4:8080 [17:24:24]Content-Length: 790 [17:24:24]Content-Type: application/json [17:24:24] [17:24:24]POST finish read [17:24:24]Found Content-Length = 790 [17:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:24]execute_script... [17:24: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)458397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:24]POST & json_proto [17:24:24]process_json_proto [17:24:24]json parsed OK: [17:24:24]protocol is kg_v1.0 [17:24:24]action value=close_receipt [17:24:24]process_action close_receipt [17:24:24]cmd_close_receipt [17:24:24]MH_GetDate [17:24:24]Write to MH i2c: F0 00 00 F8 00 E7 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: F0 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: F0 09 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: F0 09 00 F8 00 00 C9 66 91 66 C9 DC B2 64 D1 [17:24:24]GetLastDocTimeStamp 1720804790 [17:24:24]current date 1720805065 [17:24:24]FM_GetShiftState [17:24:24]SAM_PROTO_GetShiftState [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 13 01 00 [17:24:24]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0E 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C0 [17:24:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:24:24]wFMCommunicate OK [17:24:24]SAM_PROTO_GetShiftState done [17:24:24]FM_GetShiftState done [17:24:24]opened in 1720744654 [17:24:24]opened+sec_in_day 1720831054 [17:24:24]quantity*price = 30001 [17:24:24]sum+1 = 30002 [17:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 235 12.07.2024 17:24 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164314 ФПД: 60336320201231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T172425&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164314&fm=60336320201231&tin=02508201610067®Number=0000000000090829&sum=30001 [17:24:25]StoreToDocumentArchive [17:24:25]shift 445 fd 164314 [17:24:25]save to /storage/0445/doc_00164314 [17:24:25]save last doc name /storage/0445/doc_00164314 to /storage/kkm_last_doc_name [17:24:25]save OK [17:24:25]Clear old archive folders... [17:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:25]tlvbuf is B6DD6200 [17:24:25]SAM_PROTO_ClearQueue [17:24:25]wFMCommunicate request_size=4 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 09 00 00 [17:24:25]Write to MH i2c: E2 08 00 06 01 80 09 00 00 00 00 00 00 79 [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [17:24:26]RAPDU: 90 00 [17:24:26]wFMCommunicate OK [17:24:26]SAM_PROTO_ClearQueue done [17:24:26]KKMCreateOFDPacket [17:24:26]OFDProtocolAddRootSTLVToBuf [17:24:26]FM_MakeSignedData [17:24:26]FM_MakeSignedData [17:24:26]SAM_PROTO_SignData [17:24:26]wFMCommunicate request_size=4 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 0D 01 02 [17:24:26]Write to MH i2c: E2 08 00 07 01 80 0D 01 02 00 00 00 00 81 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [17:24:26]RAPDU: 90 00 [17:24:26]wFMCommunicate OK [17:24:26]wFMCommunicate request_size=255 [17:24:26]MH_SAM_APDU [17:24: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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 C9 66 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 81 02 00 35 04 06 00 36 [17:24:26]Write to MH i2c: E2 02 01 08 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 C9 66 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 81 02 00 35 04 06 00 36 00 00 09 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [17:24:26]RAPDU: 90 00 [17:24:26]wFMCommunicate OK [17:24:26]wFMCommunicate request_size=10 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 0D 02 02 05 E0 24 EE C2 0F [17:24:26]Write to MH i2c: E2 0D 00 09 01 80 0D 02 02 05 00 E0 24 EE C2 0F 00 00 51 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [17:24:26]RAPDU: 90 00 [17:24:26]wFMCommunicate OK [17:24:26]wFMCommunicate request_size=4 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 0D 03 02 [17:24:26]Write to MH i2c: E2 08 00 0A 01 80 0D 03 02 00 00 00 00 86 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 0B 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 0B 00 0A 01 00 50 FC 1D EB 9E 1A 7C 67 90 00 76 [17:24:26]RAPDU: 50 FC 1D EB 9E 1A 7C 67 90 00 [17:24:26]wFMCommunicate OK [17:24:26]SAM_PROTO_SignData done [17:24:26]FM_MakeSignedData done [17:24:26]CreateOFDProtocolMessage [17:24:26]wFMCommunicate request_size=4 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 11 00 00 [17:24:26]Write to MH i2c: E2 08 00 0B 01 80 11 00 00 00 00 00 00 86 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 17 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 17 00 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DC [17:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:24:26]wFMCommunicate OK [17:24:26]CreateOFDProtocolMessage done [17:24:26]OFDSenderStorePacket 164314 [17:24:26]StoreOFDPacket docnum=164314 [17:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BF 19 07 01 D4 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 C9 66 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 81 02 00 35 04 06 00 36 E0 24 EE C2 0F 50 FC 1D EB 9E 1A 7C 67 [17:24:26]CheckFolder [17:24:26]dirname=/storage/ofd_packets [17:24:26]CheckFolder done [17:24:26]ProducePacketName [17:24:26]name=ofd_packets/00164314 [17:24:26]NVStorageSaveData ofd_packets/00164314 [17:24:26]File name is /storage/ofd_packets/00164314 [17:24:26]Write 301 bytes [17:24:26]NVStorageSaveData done [17:24:26]OFDSenderStorePacket done [17:24:26]KKMCreateOFDPacket done [17:24:26]NVStorageSaveData kkm_last_timestamp [17:24:26]File name is /storage/kkm_last_timestamp [17:24:26]Write 4 bytes [17:24:26]NVStorageSaveData done [17:24:26]ExternCall_PrintAddStr [17:24:26]wPrintStart [17:24:26]Write to MH i2c: 01 00 00 0C 01 0D [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: 01 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: 01 07 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: 01 07 00 0C 01 00 00 00 00 00 FF 0F 22 [17:24:26]RasterBufferAndPrint [17:24:26]line Счет N : (1)458397 [17:24:26]line ИНН: 02508201610067 [17:24:26]line Контрольно-Кассовый Чек [17:24:26]line ПРОДАЖА [17:24:26]line ТРК (МРК, ГНК) : 22 [17:24:26]line Товар: 2710124130 [17:24:26]line Аи-92-К-5 [17:24:26]line 4.600 * 65.22 [17:24:26]line = 300.01 [17:24:26]line НДС 12% НСП 1% [17:24:26]line > о реализуемом товаре [17:24:26]line ИТОГО: 300.01 [17:24:26]line НСП 1% : 2.65 [17:24:26]line НДС 12% : 31.86 [17:24:26]line Наличными: 0.00 [17:24:26]line Безнал.: 300.01 [17:24:26]line Место: АЗС № 72 "Партнер Нефть" [17:24:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:24:26]line СНО: Общий режим [17:24:26]line Чек 235 12.07.2024 17:24 [17:24:26]line Смена: 445 ФФД: 1.0 [17:24:26]line ЗНМ: 0300000160 [17:24:26]line РНМ: 0000000000090829 [17:24:26]line Версия ККМ: 001 [17:24:26]line Платежная система: KICB Банк [17:24:26]line ФМ: 0000000000874718 [17:24:26]line ФД: 164314 [17:24:26]line ФПД: 60336320201231 [17:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T172425&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164314&fm=60336320201231&tin=02508201610067®Number=0000000000090829&sum=30001 [17:24:26]OFD Sender: Processing packet 164314 [packets to send 104, broken 103] [17:24:26]ProducePacketName [17:24:26]name=ofd_packets/00164314 [17:24:26]OFD Sender: To server: pG, [17:24:26]CommunicateWithHost lk.salyk.kg:30040 [17:24:26]ConnectInit lk.salyk.kg [17:24:26]written 0, free lines is 4095 [17:24:26]Connected sock=10 [17:24:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BF 19 07 01 D4 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 C9 66 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 81 02 00 35 04 06 00 36 E0 24 EE C2 0F 50 FC 1D EB 9E 1A 7C 67 [17:24:27]Write to MH i2c: 01 00 00 35 01 36 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: 01 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: 01 07 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: 01 07 00 35 01 00 00 00 00 00 12 0D 5C [17:24:27]RasterBufferAndPrint [17:24:27]line [17:24:27]line [17:24:27]line [17:24:27]line [17:24:27]line [17:24:27]written 0, free lines is 3353 [17:24:27]MH_Cut [17:24:27]Write to MH i2c: D1 01 00 3C 01 01 0F [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: D1 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: D1 01 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: D1 01 00 3C 01 00 0E [17:24:27]Write to MH i2c: 01 00 00 3D 01 3E [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 12 A6 47 00 F0 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 34 37 31 38 10 04 04 00 DA 81 02 00 F4 03 04 00 5D 0D 91 66 B6 04 01 00 00 37 0A BE 50 6E A2 F7 B1 [17:24:27]CommunicateWithHost err = 0 [17:24:27]CheckOFDResponse [17:24:27]1017 (14) - 77093643461234 [17:24:27]1041 (16) - 0000000000874718 [17:24:27]1040 (4) - 164314 [17:24:27]1012 (4) - 12.07.2024 11:02 [17:24:27]1206 (1) - 0 [17:24:27]OFD Sender: Remove packet 164314 [17:24:27]ProducePacketName [17:24:27]name=ofd_packets/00164314 [17:24:27]NVStorageDeleteData [17:24:27]OFD Sender: No OFD packet to send [17:24:27]*** Cut start [17:24:27]*** Partial cut [17:24:27]*** CUTSNS_PIN = 1 [17:24:27]*** CUTSNS_PIN = 0 [17:24:28]*** Brake cut motor [17:24:28]Read from MH i2c: 01 [17:24:28]MH_I2C_Read... [17:24:28]*** Stop cut motor [17:24:28]*** Cut end [17:24:28]Read from MH i2c: 01 07 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 FF 0F 53 [17:24:28]process_action close_receipt done [17:24:28]requested_data is exist [17:24:28]produce_requested_data [17:24:28]requested_item fm.sn is exist - process it [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 11 00 00 [17:24:28]Write to MH i2c: E2 08 00 3E 01 80 11 00 00 00 00 00 00 B9 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 17 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 17 00 3E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [17:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:24:28]wFMCommunicate OK [17:24:28]requested_item fd.num is exist - process it [17:24:28]SAM_PROTO_GetFieldsCounters [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 13 00 00 [17:24:28]Write to MH i2c: E2 08 00 3F 01 80 13 00 00 00 00 00 00 BC [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 62 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 62 00 3F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:28]wFMCommunicate OK [17:24:28]SAM_PROTO_GetFieldsCounters done [17:24:28]requested_item shift.num is exist - process it [17:24:28]requested_item shift.opened is exist - process it [17:24:28]req_shift_opened [17:24:28]FM_GetShiftState [17:24:28]SAM_PROTO_GetShiftState [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 13 01 00 [17:24:28]Write to MH i2c: E2 08 00 40 01 80 13 01 00 00 00 00 00 BE [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 0E 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 0E 00 40 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 08 [17:24:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:24:28]wFMCommunicate OK [17:24:28]SAM_PROTO_GetShiftState done [17:24:28]FM_GetShiftState done [17:24:28]req_shift_opened done [17:24:28]requested_item shift.open_date is exist - process it [17:24:28]req_shift_open_date [17:24:28]req_shift_open_date done [17:24:28]produce_requested_data done [17:24:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164314,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:24:28]process_action_free close_receipt [17:24:28]json_value_free [17:24:28]json_value_free done [17:24:28]process_json_proto returns [17:24:28]Send response to host [17:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164314,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:24:28]free response buf [17:24:28]execute_script done [17:24:28]execute_script returns [17:24:28]free content buf [17:24:28]Sock 9.Close socket [17:24:28]Sock 9.Thread stoped [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26: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:46]accept exits with 8 [17:26:46]New connection [17:26:46]New thread 3067141476 created [17:26:46]Thread 3066998116 joined [17:26:46]Waiting for new connection... [17:26:46] Sock 8.Parse request [17:26:46]Sock 8.Check first char [17:26:46]Sock 8.First char is OK [17:26:46]request: POST /json_proto HTTP/1.0 [17:26:46]Method: POST [17:26:46]URL: /json_proto [17:26:46]Method is POST - this is cgi request [17:26:46]url: /json_proto [17:26:46]query_string will be loaded in cgi processing [17:26:46]execute_cgi json_proto POST (null) [17:26:46]execute_cgi path=json_proto method=POST [17:26:46]POST find Content-Length [17:26:46]Host: 172.17.56.4:8080 [17:26:46]Content-Length: 677 [17:26:46]Content-Type: application/json [17:26:46] [17:26:46]POST finish read [17:26:46]Found Content-Length = 677 [17:26:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:46]execute_script... [17:26:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:46]POST & json_proto [17:26:46]process_json_proto [17:26:46]json parsed OK: [17:26:46]protocol is kg_v1.0 [17:26:46]action value=close_receipt [17:26:46]process_action close_receipt [17:26:46]cmd_close_receipt [17:26:46]MH_GetDate [17:26:46]Write to MH i2c: F0 00 00 41 01 31 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: F0 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: F0 09 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: F0 09 00 41 01 00 56 67 91 66 C9 DC B2 64 A9 [17:26:46]GetLastDocTimeStamp 1720805065 [17:26:46]current date 1720805206 [17:26:46]FM_GetShiftState [17:26:46]SAM_PROTO_GetShiftState [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 13 01 00 [17:26:46]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0E 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0A [17:26:46]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:26:46]wFMCommunicate OK [17:26:46]SAM_PROTO_GetShiftState done [17:26:46]FM_GetShiftState done [17:26:46]opened in 1720744654 [17:26:46]opened+sec_in_day 1720831054 [17:26:46]quantity*price = 50008 [17:26:46]sum+1 = 50009 [17:26:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 236 12.07.2024 17:26 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164315 ФПД: 9928374489677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T172646&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164315&fm=9928374489677&tin=02508201610067®Number=0000000000090829&sum=50000 [17:26:47]StoreToDocumentArchive [17:26:47]shift 445 fd 164315 [17:26:47]save to /storage/0445/doc_00164315 [17:26:47]save last doc name /storage/0445/doc_00164315 to /storage/kkm_last_doc_name [17:26:47]save OK [17:26:47]Clear old archive folders... [17:26:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:47]tlvbuf is B6F83620 [17:26:47]SAM_PROTO_ClearQueue [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 09 00 00 [17:26:47]Write to MH i2c: E2 08 00 4F 01 80 09 00 00 00 00 00 00 C2 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [17:26:47]RAPDU: 90 00 [17:26:47]wFMCommunicate OK [17:26:47]SAM_PROTO_ClearQueue done [17:26:47]KKMCreateOFDPacket [17:26:47]OFDProtocolAddRootSTLVToBuf [17:26:47]FM_MakeSignedData [17:26:47]FM_MakeSignedData [17:26:47]SAM_PROTO_SignData [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 0D 01 02 [17:26:47]Write to MH i2c: E2 08 00 50 01 80 0D 01 02 00 00 00 00 CA [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [17:26:47]RAPDU: 90 00 [17:26:47]wFMCommunicate OK [17:26:47]wFMCommunicate request_size=255 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EC 00 00 00 F4 03 04 00 56 67 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 81 02 00 35 04 06 00 09 [17:26:47]Write to MH i2c: E2 02 01 51 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EC 00 00 00 F4 03 04 00 56 67 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 81 02 00 35 04 06 00 09 00 00 08 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [17:26:47]RAPDU: 90 00 [17:26:47]wFMCommunicate OK [17:26:47]wFMCommunicate request_size=10 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 0D 02 02 05 07 A1 3C 12 4D [17:26:47]Write to MH i2c: E2 0D 00 52 01 80 0D 02 02 05 00 07 A1 3C 12 4D 00 00 1A [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [17:26:47]RAPDU: 90 00 [17:26:47]wFMCommunicate OK [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 0D 03 02 [17:26:47]Write to MH i2c: E2 08 00 53 01 80 0D 03 02 00 00 00 00 CF [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 0B 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 0B 00 53 01 00 E5 62 6B F2 B5 05 1E C4 90 00 10 [17:26:47]RAPDU: E5 62 6B F2 B5 05 1E C4 90 00 [17:26:47]wFMCommunicate OK [17:26:47]SAM_PROTO_SignData done [17:26:47]FM_MakeSignedData done [17:26:47]CreateOFDProtocolMessage [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 11 00 00 [17:26:47]Write to MH i2c: E2 08 00 54 01 80 11 00 00 00 00 00 00 CF [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 17 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 17 00 54 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [17:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:47]wFMCommunicate OK [17:26:47]CreateOFDProtocolMessage done [17:26:47]OFDSenderStorePacket 164315 [17:26:47]StoreOFDPacket docnum=164315 [17:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F C4 07 01 39 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EC 00 00 00 F4 03 04 00 56 67 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 81 02 00 35 04 06 00 09 07 A1 3C 12 4D E5 62 6B F2 B5 05 1E C4 [17:26:47]CheckFolder [17:26:47]dirname=/storage/ofd_packets [17:26:47]CheckFolder done [17:26:47]ProducePacketName [17:26:47]name=ofd_packets/00164315 [17:26:47]NVStorageSaveData ofd_packets/00164315 [17:26:47]File name is /storage/ofd_packets/00164315 [17:26:47]Write 301 bytes [17:26:47]NVStorageSaveData done [17:26:47]OFDSenderStorePacket done [17:26:47]KKMCreateOFDPacket done [17:26:47]NVStorageSaveData kkm_last_timestamp [17:26:47]File name is /storage/kkm_last_timestamp [17:26:47]Write 4 bytes [17:26:47]NVStorageSaveData done [17:26:47]OFD Sender: Processing packet 164315 [packets to send 104, broken 103] [17:26:47]ProducePacketName [17:26:47]name=ofd_packets/00164315 [17:26:47]OFD Sender: To server: pG, [17:26:47]CommunicateWithHost lk.salyk.kg:30040 [17:26:47]ConnectInit lk.salyk.kg [17:26:47]ExternCall_PrintAddStr [17:26:47]wPrintStart [17:26:47]Write to MH i2c: 01 00 00 55 01 56 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 55 01 00 00 00 00 00 FF 0F 6B [17:26:47]RasterBufferAndPrint [17:26:47]line Счет N : (1)458399 [17:26:47]line ИНН: 02508201610067 [17:26:47]line Контрольно-Кассовый Чек [17:26:47]line ПРОДАЖА [17:26:47]line ТРК (МРК, ГНК) : 12 [17:26:47]line Товар: 2710124130 [17:26:47]line Аи-92-К-5 [17:26:47]line 7.600 * 65.80 [17:26:47]line = 500.08 [17:26:47]line НДС 12% НСП 1% [17:26:47]line > о реализуемом товаре [17:26:47]line ОКРУГЛЕНИЕ: -0.08 [17:26:47]line ИТОГО: 500.00 [17:26:47]line Внесено: 500.00 [17:26:47]line СДАЧА: 0.00 [17:26:47]line НСП 1% : 4.42 [17:26:47]line НДС 12% : 53.11 [17:26:47]line Наличными: 500.00 [17:26:47]line Безнал.: 0.00 [17:26:47]line Место: АЗС № 72 "Партнер Нефть" [17:26:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:26:47]line СНО: Общий режим [17:26:47]line Чек 236 12.07.2024 17:26 [17:26:47]line Смена: 445 ФФД: 1.0 [17:26:47]line ЗНМ: 0300000160 [17:26:47]line РНМ: 0000000000090829 [17:26:47]line Версия ККМ: 001 [17:26:47]line ФМ: 0000000000874718 [17:26:47]line ФД: 164315 [17:26:47]line ФПД: 9928374489677 [17:26:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T172646&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164315&fm=9928374489677&tin=02508201610067®Number=0000000000090829&sum=50000 [17:26:48]Connected sock=11 [17:26:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F C4 07 01 39 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EC 00 00 00 F4 03 04 00 56 67 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 81 02 00 35 04 06 00 09 07 A1 3C 12 4D E5 62 6B F2 B5 05 1E C4 [17:26:48]written 0, free lines is 4095 [17:26:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EF 9B 47 00 45 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 81 02 00 F4 03 04 00 EA 0D 91 66 B6 04 01 00 00 8F 9E 8E 72 C1 D5 10 65 [17:26:48]CommunicateWithHost err = 0 [17:26:48]CheckOFDResponse [17:26:48]1017 (14) - 77093643461234 [17:26:48]1041 (16) - 0000000000874718 [17:26:48]1040 (4) - 164315 [17:26:48]1012 (4) - 12.07.2024 11:05 [17:26:48]1206 (1) - 0 [17:26:48]OFD Sender: Remove packet 164315 [17:26:48]ProducePacketName [17:26:48]name=ofd_packets/00164315 [17:26:48]NVStorageDeleteData [17:26:48]Write to MH i2c: 01 00 00 7F 01 80 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 07 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 07 00 7F 01 00 00 00 00 00 F7 0C 8A [17:26:48]RasterBufferAndPrint [17:26:48]line [17:26:48]line [17:26:48]line [17:26:48]line [17:26:48]line [17:26:48]written 0, free lines is 3323 [17:26:48]MH_Cut [17:26:48]Write to MH i2c: D1 01 00 86 01 01 59 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: D1 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: D1 01 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: D1 01 00 86 01 00 58 [17:26:48]Write to MH i2c: 01 00 00 87 01 88 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]OFD Sender: No OFD packet to send [17:26:49]*** Cut start [17:26:49]*** Partial cut [17:26:49]*** CUTSNS_PIN = 1 [17:26:49]*** CUTSNS_PIN = 0 [17:26:49]*** Brake cut motor [17:26:49]Read from MH i2c: 01 [17:26:49]MH_I2C_Read... [17:26:49]*** Stop cut motor [17:26:49]*** Cut end [17:26:49]Read from MH i2c: 01 07 00 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 FF 0F 9D [17:26:49]process_action close_receipt done [17:26:49]requested_data is exist [17:26:49]produce_requested_data [17:26:49]requested_item fm.sn is exist - process it [17:26:49]wFMCommunicate request_size=4 [17:26:49]MH_SAM_APDU [17:26:49]CAPDU: 80 11 00 00 [17:26:49]Write to MH i2c: E2 08 00 88 01 80 11 00 00 00 00 00 00 03 [17:26:49]Write i2c OK [17:26:49]MH_I2C_Read... [17:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:49]Read from MH i2c: E2 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: E2 17 00 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: E2 17 00 88 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [17:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:49]wFMCommunicate OK [17:26:49]requested_item fd.num is exist - process it [17:26:49]SAM_PROTO_GetFieldsCounters [17:26:49]wFMCommunicate request_size=4 [17:26:49]MH_SAM_APDU [17:26:49]CAPDU: 80 13 00 00 [17:26:49]Write to MH i2c: E2 08 00 89 01 80 13 00 00 00 00 00 00 06 [17:26:49]Write i2c OK [17:26:49]MH_I2C_Read... [17:26:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:50]Read from MH i2c: E2 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 62 00 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 62 00 89 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [17:26:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:50]wFMCommunicate OK [17:26:50]SAM_PROTO_GetFieldsCounters done [17:26:50]requested_item shift.num is exist - process it [17:26:50]requested_item shift.opened is exist - process it [17:26:50]req_shift_opened [17:26:50]FM_GetShiftState [17:26:50]SAM_PROTO_GetShiftState [17:26:50]wFMCommunicate request_size=4 [17:26:50]MH_SAM_APDU [17:26:50]CAPDU: 80 13 01 00 [17:26:50]Write to MH i2c: E2 08 00 8A 01 80 13 01 00 00 00 00 00 08 [17:26:50]Write i2c OK [17:26:50]MH_I2C_Read... [17:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:50]Read from MH i2c: E2 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 0E 00 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 0E 00 8A 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 52 [17:26:50]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:26:50]wFMCommunicate OK [17:26:50]SAM_PROTO_GetShiftState done [17:26:50]FM_GetShiftState done [17:26:50]req_shift_opened done [17:26:50]requested_item shift.open_date is exist - process it [17:26:50]req_shift_open_date [17:26:50]req_shift_open_date done [17:26:50]produce_requested_data done [17:26:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164315,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:26:50]process_action_free close_receipt [17:26:50]json_value_free [17:26:50]json_value_free done [17:26:50]process_json_proto returns [17:26:50]Send response to host [17:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164315,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:26:50]free response buf [17:26:50]execute_script done [17:26:50]execute_script returns [17:26:50]free content buf [17:26:50]Sock 8.Close socket [17:26:50]Sock 8.Thread stoped [17:26:50]accept exits with 9 [17:26:50]New connection [17:26:50]New thread 3066998116 created [17:26:50]Thread 3067141476 joined [17:26:50]Waiting for new connection... [17:26:50] Sock 9.Parse request [17:26:50]Sock 9.Check first char [17:26:50]Sock 9.First char is OK [17:26:50]request: POST /json_proto HTTP/1.0 [17:26:50]Method: POST [17:26:50]URL: /json_proto [17:26:50]Method is POST - this is cgi request [17:26:50]url: /json_proto [17:26:50]query_string will be loaded in cgi processing [17:26:50]execute_cgi json_proto POST (null) [17:26:50]execute_cgi path=json_proto method=POST [17:26:50]POST find Content-Length [17:26:50]Host: 172.17.56.4:8080 [17:26:50]Content-Length: 678 [17:26:50]Content-Type: application/json [17:26:50] [17:26:50]POST finish read [17:26:50]Found Content-Length = 678 [17:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:50]execute_script... [17:26:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:50]POST & json_proto [17:26:50]process_json_proto [17:26:50]json parsed OK: [17:26:50]protocol is kg_v1.0 [17:26:50]action value=close_receipt [17:26:50]process_action close_receipt [17:26:50]cmd_close_receipt [17:26:50]MH_GetDate [17:26:50]Write to MH i2c: F0 00 00 8B 01 7B [17:26:50]Write i2c OK [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: F0 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: F0 09 00 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: F0 09 00 8B 01 00 5B 67 91 66 C9 DC B2 64 F8 [17:26:50]GetLastDocTimeStamp 1720805206 [17:26:50]current date 1720805211 [17:26:50]FM_GetShiftState [17:26:50]SAM_PROTO_GetShiftState [17:26:50]wFMCommunicate request_size=4 [17:26:50]MH_SAM_APDU [17:26:50]CAPDU: 80 13 01 00 [17:26:50]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [17:26:50]Write i2c OK [17:26:50]MH_I2C_Read... [17:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:50]Read from MH i2c: E2 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 0E 00 [17:26:50]MH_I2C_Read... [17:26:50]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 54 [17:26:50]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:26:50]wFMCommunicate OK [17:26:50]SAM_PROTO_GetShiftState done [17:26:50]FM_GetShiftState done [17:26:50]opened in 1720744654 [17:26:50]opened+sec_in_day 1720831054 [17:26:50]quantity*price = 66063 [17:26:50]sum+1 = 66064 [17:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 237 12.07.2024 17:26 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164316 ФПД: 113848557176570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T172651&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164316&fm=113848557176570&tin=02508201610067®Number=0000000000090829&sum=66000 [17:26:51]StoreToDocumentArchive [17:26:51]shift 445 fd 164316 [17:26:51]save to /storage/0445/doc_00164316 [17:26:51]save last doc name /storage/0445/doc_00164316 to /storage/kkm_last_doc_name [17:26:51]save OK [17:26:51]Clear old archive folders... [17:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:51]tlvbuf is 01E4FAC0 [17:26:51]SAM_PROTO_ClearQueue [17:26:51]wFMCommunicate request_size=4 [17:26:51]MH_SAM_APDU [17:26:51]CAPDU: 80 09 00 00 [17:26:51]Write to MH i2c: E2 08 00 99 01 80 09 00 00 00 00 00 00 0C [17:26:51]Write i2c OK [17:26:51]MH_I2C_Read... [17:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]SAM_PROTO_ClearQueue done [17:26:52]KKMCreateOFDPacket [17:26:52]OFDProtocolAddRootSTLVToBuf [17:26:52]FM_MakeSignedData [17:26:52]FM_MakeSignedData [17:26:52]SAM_PROTO_SignData [17:26:52]wFMCommunicate request_size=4 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 0D 01 02 [17:26:52]Write to MH i2c: E2 08 00 9A 01 80 0D 01 02 00 00 00 00 14 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]wFMCommunicate request_size=255 [17:26:52]MH_SAM_APDU [17:26: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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 5B 67 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 81 02 00 35 04 06 00 67 [17:26:52]Write to MH i2c: E2 02 01 9B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 5B 67 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 81 02 00 35 04 06 00 67 00 00 FD [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]wFMCommunicate request_size=10 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 0D 02 02 05 8B 6E CF 06 FA [17:26:52]Write to MH i2c: E2 0D 00 9C 01 80 0D 02 02 05 00 8B 6E CF 06 FA 00 00 E9 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [17:26:52]RAPDU: 90 00 [17:26:52]wFMCommunicate OK [17:26:52]wFMCommunicate request_size=4 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 0D 03 02 [17:26:52]Write to MH i2c: E2 08 00 9D 01 80 0D 03 02 00 00 00 00 19 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 0B 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 0B 00 9D 01 00 4F AD C7 3E 63 56 59 07 90 00 34 [17:26:52]RAPDU: 4F AD C7 3E 63 56 59 07 90 00 [17:26:52]wFMCommunicate OK [17:26:52]SAM_PROTO_SignData done [17:26:52]FM_MakeSignedData done [17:26:52]CreateOFDProtocolMessage [17:26:52]wFMCommunicate request_size=4 [17:26:52]MH_SAM_APDU [17:26:52]CAPDU: 80 11 00 00 [17:26:52]Write to MH i2c: E2 08 00 9E 01 80 11 00 00 00 00 00 00 19 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:52]Read from MH i2c: E2 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 17 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: E2 17 00 9E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [17:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:52]wFMCommunicate OK [17:26:52]CreateOFDProtocolMessage done [17:26:52]OFDSenderStorePacket 164316 [17:26:52]StoreOFDPacket docnum=164316 [17:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F3 EB 07 01 2E 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 5B 67 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 81 02 00 35 04 06 00 67 8B 6E CF 06 FA 4F AD C7 3E 63 56 59 07 [17:26:52]CheckFolder [17:26:52]dirname=/storage/ofd_packets [17:26:52]CheckFolder done [17:26:52]ProducePacketName [17:26:52]name=ofd_packets/00164316 [17:26:52]NVStorageSaveData ofd_packets/00164316 [17:26:52]File name is /storage/ofd_packets/00164316 [17:26:52]Write 301 bytes [17:26:52]NVStorageSaveData done [17:26:52]OFDSenderStorePacket done [17:26:52]KKMCreateOFDPacket done [17:26:52]NVStorageSaveData kkm_last_timestamp [17:26:52]File name is /storage/kkm_last_timestamp [17:26:52]Write 4 bytes [17:26:52]NVStorageSaveData done [17:26:52]ExternCall_PrintAddStr [17:26:52]wPrintStart [17:26:52]Write to MH i2c: 01 00 00 9F 01 A0 [17:26:52]Write i2c OK [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: 01 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: 01 07 00 [17:26:52]MH_I2C_Read... [17:26:52]Read from MH i2c: 01 07 00 9F 01 00 00 00 00 00 FF 0F B5 [17:26:52]RasterBufferAndPrint [17:26:52]line Счет N : (1)458398 [17:26:52]line ИНН: 02508201610067 [17:26:52]line Контрольно-Кассовый Чек [17:26:52]line ПРОДАЖА [17:26:52]line ТРК (МРК, ГНК) : 22 [17:26:52]line Товар: 2710124130 [17:26:52]line Аи-92-К-5 [17:26:52]line 10.040 * 65.80 [17:26:52]line = 660.63 [17:26:52]line НДС 12% НСП 1% [17:26:52]line > о реализуемом товаре [17:26:52]line ОКРУГЛЕНИЕ: -0.63 [17:26:52]line ИТОГО: 660.00 [17:26:52]line Внесено: 660.00 [17:26:52]line СДАЧА: 0.00 [17:26:52]line НСП 1% : 5.85 [17:26:52]line НДС 12% : 70.15 [17:26:52]line Наличными: 660.00 [17:26:52]line Безнал.: 0.00 [17:26:52]line Место: АЗС № 72 "Партнер Нефть" [17:26:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:26:52]line СНО: Общий режим [17:26:52]line Чек 237 12.07.2024 17:26 [17:26:52]line Смена: 445 ФФД: 1.0 [17:26:52]line ЗНМ: 0300000160 [17:26:52]line РНМ: 0000000000090829 [17:26:52]line Версия ККМ: 001 [17:26:52]line ФМ: 0000000000874718 [17:26:52]line ФД: 164316 [17:26:52]line ФПД: 113848557176570 [17:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T172651&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164316&fm=113848557176570&tin=02508201610067®Number=0000000000090829&sum=66000 [17:26:52]OFD Sender: Processing packet 164316 [packets to send 104, broken 103] [17:26:52]ProducePacketName [17:26:52]name=ofd_packets/00164316 [17:26:52]OFD Sender: To server: pG, [17:26:52]CommunicateWithHost lk.salyk.kg:30040 [17:26:52]ConnectInit lk.salyk.kg [17:26:52]written 0, free lines is 4095 [17:26:53]Connected sock=10 [17:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F3 EB 07 01 2E 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 5B 67 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 81 02 00 35 04 06 00 67 8B 6E CF 06 FA 4F AD C7 3E 63 56 59 07 [17:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 49 EC 47 00 CA B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 81 02 00 F4 03 04 00 EF 0D 91 66 B6 04 01 00 00 44 C0 FA AB 63 D5 AE 36 [17:26:53]CommunicateWithHost err = 0 [17:26:53]CheckOFDResponse [17:26:53]1017 (14) - 77093643461234 [17:26:53]1041 (16) - 0000000000874718 [17:26:53]1040 (4) - 164316 [17:26:53]1012 (4) - 12.07.2024 11:05 [17:26:53]1206 (1) - 0 [17:26:53]OFD Sender: Remove packet 164316 [17:26:53]ProducePacketName [17:26:53]name=ofd_packets/00164316 [17:26:53]NVStorageDeleteData [17:26:53]Write to MH i2c: 01 00 00 C9 01 CA [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: 01 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: 01 07 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 05 0D E3 [17:26:53]RasterBufferAndPrint [17:26:53]line [17:26:53]line [17:26:53]line [17:26:53]line [17:26:53]line [17:26:53]written 0, free lines is 3345 [17:26:53]MH_Cut [17:26:53]Write to MH i2c: D1 01 00 D0 01 01 A3 [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: D1 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: D1 01 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: D1 01 00 D0 01 00 A2 [17:26:53]Write to MH i2c: 01 00 00 D1 01 D2 [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]OFD Sender: No OFD packet to send [17:26:54]*** Cut start [17:26:54]*** Partial cut [17:26:54]*** CUTSNS_PIN = 1 [17:26:54]*** CUTSNS_PIN = 0 [17:26:54]*** Brake cut motor [17:26:54]Read from MH i2c: 01 [17:26:54]MH_I2C_Read... [17:26:54]*** Stop cut motor [17:26:54]*** Cut end [17:26:54]Read from MH i2c: 01 07 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [17:26:54]process_action close_receipt done [17:26:54]requested_data is exist [17:26:54]produce_requested_data [17:26:54]requested_item fm.sn is exist - process it [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 11 00 00 [17:26:54]Write to MH i2c: E2 08 00 D2 01 80 11 00 00 00 00 00 00 4D [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 17 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 17 00 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [17:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:54]wFMCommunicate OK [17:26:54]requested_item fd.num is exist - process it [17:26:54]SAM_PROTO_GetFieldsCounters [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 13 00 00 [17:26:54]Write to MH i2c: E2 08 00 D3 01 80 13 00 00 00 00 00 00 50 [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 62 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 62 00 D3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [17:26:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:54]wFMCommunicate OK [17:26:54]SAM_PROTO_GetFieldsCounters done [17:26:54]requested_item shift.num is exist - process it [17:26:54]requested_item shift.opened is exist - process it [17:26:54]req_shift_opened [17:26:54]FM_GetShiftState [17:26:54]SAM_PROTO_GetShiftState [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 13 01 00 [17:26:54]Write to MH i2c: E2 08 00 D4 01 80 13 01 00 00 00 00 00 52 [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 0E 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 0E 00 D4 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9C [17:26:54]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:26:54]wFMCommunicate OK [17:26:54]SAM_PROTO_GetShiftState done [17:26:54]FM_GetShiftState done [17:26:54]req_shift_opened done [17:26:54]requested_item shift.open_date is exist - process it [17:26:54]req_shift_open_date [17:26:54]req_shift_open_date done [17:26:54]produce_requested_data done [17:26:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164316,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:26:54]process_action_free close_receipt [17:26:54]json_value_free [17:26:54]json_value_free done [17:26:54]process_json_proto returns [17:26:54]Send response to host [17:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164316,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:26:54]free response buf [17:26:54]execute_script done [17:26:54]execute_script returns [17:26:54]free content buf [17:26:54]Sock 9.Close socket [17:26:54]Sock 9.Thread stoped [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:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:21]accept exits with 8 [17:33:21]New connection [17:33:21]New thread 3067141476 created [17:33:21]Thread 3066998116 joined [17:33:21]Waiting for new connection... [17:33:21] Sock 8.Parse request [17:33:21]Sock 8.Check first char [17:33:21]Sock 8.First char is OK [17:33:21]request: POST /json_proto HTTP/1.0 [17:33:21]Method: POST [17:33:21]URL: /json_proto [17:33:21]Method is POST - this is cgi request [17:33:21]url: /json_proto [17:33:21]query_string will be loaded in cgi processing [17:33:21]execute_cgi json_proto POST (null) [17:33:21]execute_cgi path=json_proto method=POST [17:33:21]POST find Content-Length [17:33:21]Host: 172.17.56.4:8080 [17:33:21]Content-Length: 677 [17:33:21]Content-Type: application/json [17:33:21] [17:33:21]POST finish read [17:33:21]Found Content-Length = 677 [17:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:21]execute_script... [17:33:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:21]POST & json_proto [17:33:21]process_json_proto [17:33:21]json parsed OK: [17:33:21]protocol is kg_v1.0 [17:33:21]action value=close_receipt [17:33:21]process_action close_receipt [17:33:21]cmd_close_receipt [17:33:21]MH_GetDate [17:33:21]Write to MH i2c: F0 00 00 D5 01 C5 [17:33:21]Write i2c OK [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: F0 [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: F0 09 00 [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: F0 09 00 D5 01 00 E2 68 91 66 C9 DC B2 64 CA [17:33:21]GetLastDocTimeStamp 1720805211 [17:33:21]current date 1720805602 [17:33:21]FM_GetShiftState [17:33:21]SAM_PROTO_GetShiftState [17:33:21]wFMCommunicate request_size=4 [17:33:21]MH_SAM_APDU [17:33:21]CAPDU: 80 13 01 00 [17:33:21]Write to MH i2c: E2 08 00 D6 01 80 13 01 00 00 00 00 00 54 [17:33:21]Write i2c OK [17:33:21]MH_I2C_Read... [17:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:21]Read from MH i2c: E2 [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: E2 0E 00 [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: E2 0E 00 D6 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9E [17:33:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:33:21]wFMCommunicate OK [17:33:21]SAM_PROTO_GetShiftState done [17:33:21]FM_GetShiftState done [17:33:21]opened in 1720744654 [17:33:21]opened+sec_in_day 1720831054 [17:33:21]quantity*price = 50008 [17:33:21]sum+1 = 50009 [17:33:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 238 12.07.2024 17:33 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164317 ФПД: 35982170262719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T173322&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164317&fm=35982170262719&tin=02508201610067®Number=0000000000090829&sum=50000 [17:33:22]StoreToDocumentArchive [17:33:22]shift 445 fd 164317 [17:33:22]save to /storage/0445/doc_00164317 [17:33:22]save last doc name /storage/0445/doc_00164317 to /storage/kkm_last_doc_name [17:33:22]save OK [17:33:22]Clear old archive folders... [17:33:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:22]tlvbuf is 01E6C970 [17:33:22]SAM_PROTO_ClearQueue [17:33:22]wFMCommunicate request_size=4 [17:33:22]MH_SAM_APDU [17:33:22]CAPDU: 80 09 00 00 [17:33:22]Write to MH i2c: E2 08 00 E3 01 80 09 00 00 00 00 00 00 56 [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:22]Read from MH i2c: E2 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 03 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [17:33:22]RAPDU: 90 00 [17:33:22]wFMCommunicate OK [17:33:22]SAM_PROTO_ClearQueue done [17:33:22]KKMCreateOFDPacket [17:33:22]OFDProtocolAddRootSTLVToBuf [17:33:22]FM_MakeSignedData [17:33:22]FM_MakeSignedData [17:33:22]SAM_PROTO_SignData [17:33:22]wFMCommunicate request_size=4 [17:33:22]MH_SAM_APDU [17:33:22]CAPDU: 80 0D 01 02 [17:33:22]Write to MH i2c: E2 08 00 E4 01 80 0D 01 02 00 00 00 00 5E [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:22]Read from MH i2c: E2 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 03 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [17:33:22]RAPDU: 90 00 [17:33:22]wFMCommunicate OK [17:33:22]wFMCommunicate request_size=255 [17:33:22]MH_SAM_APDU [17:33: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EE 00 00 00 F4 03 04 00 E2 68 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 81 02 00 35 04 06 00 20 [17:33:22]Write to MH i2c: E2 02 01 E5 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EE 00 00 00 F4 03 04 00 E2 68 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 81 02 00 35 04 06 00 20 00 00 44 [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=10 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 02 02 05 B9 C0 7A 0C BF [17:33:23]Write to MH i2c: E2 0D 00 E6 01 80 0D 02 02 05 00 B9 C0 7A 0C BF 00 00 29 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 03 02 [17:33:23]Write to MH i2c: E2 08 00 E7 01 80 0D 03 02 00 00 00 00 63 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 0B 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 0B 00 E7 01 00 79 D9 05 F3 6D 8C 86 B6 90 00 E3 [17:33:23]RAPDU: 79 D9 05 F3 6D 8C 86 B6 90 00 [17:33:23]wFMCommunicate OK [17:33:23]SAM_PROTO_SignData done [17:33:23]FM_MakeSignedData done [17:33:23]CreateOFDProtocolMessage [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 11 00 00 [17:33:23]Write to MH i2c: E2 08 00 E8 01 80 11 00 00 00 00 00 00 63 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 17 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 17 00 E8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [17:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:33:23]wFMCommunicate OK [17:33:23]CreateOFDProtocolMessage done [17:33:23]OFDSenderStorePacket 164317 [17:33:23]StoreOFDPacket docnum=164317 [17:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 13 3E 07 01 46 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EE 00 00 00 F4 03 04 00 E2 68 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 81 02 00 35 04 06 00 20 B9 C0 7A 0C BF 79 D9 05 F3 6D 8C 86 B6 [17:33:23]CheckFolder [17:33:23]dirname=/storage/ofd_packets [17:33:23]CheckFolder done [17:33:23]ProducePacketName [17:33:23]name=ofd_packets/00164317 [17:33:23]NVStorageSaveData ofd_packets/00164317 [17:33:23]File name is /storage/ofd_packets/00164317 [17:33:23]Write 301 bytes [17:33:23]NVStorageSaveData done [17:33:23]OFDSenderStorePacket done [17:33:23]KKMCreateOFDPacket done [17:33:23]NVStorageSaveData kkm_last_timestamp [17:33:23]File name is /storage/kkm_last_timestamp [17:33:23]Write 4 bytes [17:33:23]NVStorageSaveData done [17:33:23]ExternCall_PrintAddStr [17:33:23]wPrintStart [17:33:23]Write to MH i2c: 01 00 00 E9 01 EA [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 FF 0F FF [17:33:23]RasterBufferAndPrint [17:33:23]line Счет N : (1)458400 [17:33:23]line ИНН: 02508201610067 [17:33:23]line Контрольно-Кассовый Чек [17:33:23]line ПРОДАЖА [17:33:23]line ТРК (МРК, ГНК) : 12 [17:33:23]line Товар: 2710124130 [17:33:23]line Аи-92-К-5 [17:33:23]line 7.600 * 65.80 [17:33:23]line = 500.08 [17:33:23]line НДС 12% НСП 1% [17:33:23]line > о реализуемом товаре [17:33:23]line ОКРУГЛЕНИЕ: -0.08 [17:33:23]line ИТОГО: 500.00 [17:33:23]line Внесено: 500.00 [17:33:23]line СДАЧА: 0.00 [17:33:23]line НСП 1% : 4.42 [17:33:23]line НДС 12% : 53.11 [17:33:23]line Наличными: 500.00 [17:33:23]line Безнал.: 0.00 [17:33:23]line Место: АЗС № 72 "Партнер Нефть" [17:33:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:33:23]line СНО: Общий режим [17:33:23]line Чек 238 12.07.2024 17:33 [17:33:23]line Смена: 445 ФФД: 1.0 [17:33:23]line ЗНМ: 0300000160 [17:33:23]line РНМ: 0000000000090829 [17:33:23]line Версия ККМ: 001 [17:33:23]line ФМ: 0000000000874718 [17:33:23]line ФД: 164317 [17:33:23]line ФПД: 35982170262719 [17:33:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T173322&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164317&fm=35982170262719&tin=02508201610067®Number=0000000000090829&sum=50000 [17:33:23]written 0, free lines is 4095 [17:33:23]OFD Sender: Processing packet 164317 [packets to send 104, broken 103] [17:33:23]ProducePacketName [17:33:23]name=ofd_packets/00164317 [17:33:23]OFD Sender: To server: pG, [17:33:23]CommunicateWithHost lk.salyk.kg:30040 [17:33:23]ConnectInit lk.salyk.kg [17:33:23]Connected sock=11 [17:33:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 13 3E 07 01 46 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EE 00 00 00 F4 03 04 00 E2 68 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 81 02 00 35 04 06 00 20 B9 C0 7A 0C BF 79 D9 05 F3 6D 8C 86 B6 [17:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 83 47 00 11 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 81 02 00 F4 03 04 00 76 0F 91 66 B6 04 01 00 00 3A A3 0D 95 10 ED 62 8A [17:33:24]CommunicateWithHost err = 0 [17:33:24]CheckOFDResponse [17:33:24]1017 (14) - 77093643461234 [17:33:24]1041 (16) - 0000000000874718 [17:33:24]1040 (4) - 164317 [17:33:24]1012 (4) - 12.07.2024 11:11 [17:33:24]1206 (1) - 0 [17:33:24]OFD Sender: Remove packet 164317 [17:33:24]ProducePacketName [17:33:24]name=ofd_packets/00164317 [17:33:24]NVStorageDeleteData [17:33:24]Write to MH i2c: 01 00 00 13 02 15 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 EF 0C 17 [17:33:24]RasterBufferAndPrint [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]written 0, free lines is 3317 [17:33:24]MH_Cut [17:33:24]Write to MH i2c: D1 01 00 1A 02 01 EE [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: D1 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: D1 01 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: D1 01 00 1A 02 00 ED [17:33:24]Write to MH i2c: 01 00 00 1B 02 1D [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]OFD Sender: No OFD packet to send [17:33:24]*** Cut start [17:33:24]*** Partial cut [17:33:24]*** CUTSNS_PIN = 1 [17:33:24]*** CUTSNS_PIN = 0 [17:33:25]*** Brake cut motor [17:33:25]Read from MH i2c: 01 [17:33:25]MH_I2C_Read... [17:33:25]*** Stop cut motor [17:33:25]*** Cut end [17:33:25]Read from MH i2c: 01 07 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [17:33:25]process_action close_receipt done [17:33:25]requested_data is exist [17:33:25]produce_requested_data [17:33:25]requested_item fm.sn is exist - process it [17:33:25]wFMCommunicate request_size=4 [17:33:25]MH_SAM_APDU [17:33:25]CAPDU: 80 11 00 00 [17:33:25]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [17:33:25]Write i2c OK [17:33:25]MH_I2C_Read... [17:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:25]Read from MH i2c: E2 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 17 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 17 00 1C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [17:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:33:25]wFMCommunicate OK [17:33:25]requested_item fd.num is exist - process it [17:33:25]SAM_PROTO_GetFieldsCounters [17:33:25]wFMCommunicate request_size=4 [17:33:25]MH_SAM_APDU [17:33:25]CAPDU: 80 13 00 00 [17:33:25]Write to MH i2c: E2 08 00 1D 02 80 13 00 00 00 00 00 00 9B [17:33:25]Write i2c OK [17:33:25]MH_I2C_Read... [17:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:25]Read from MH i2c: E2 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 62 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 62 00 1D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [17:33: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:25]wFMCommunicate OK [17:33:25]SAM_PROTO_GetFieldsCounters done [17:33:25]requested_item shift.num is exist - process it [17:33:25]requested_item shift.opened is exist - process it [17:33:25]req_shift_opened [17:33:25]FM_GetShiftState [17:33:25]SAM_PROTO_GetShiftState [17:33:25]wFMCommunicate request_size=4 [17:33:25]MH_SAM_APDU [17:33:25]CAPDU: 80 13 01 00 [17:33:25]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [17:33:25]Write i2c OK [17:33:25]MH_I2C_Read... [17:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:25]Read from MH i2c: E2 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 0E 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E7 [17:33:25]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:33:25]wFMCommunicate OK [17:33:25]SAM_PROTO_GetShiftState done [17:33:25]FM_GetShiftState done [17:33:25]req_shift_opened done [17:33:25]requested_item shift.open_date is exist - process it [17:33:25]req_shift_open_date [17:33:25]req_shift_open_date done [17:33:25]produce_requested_data done [17:33:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164317,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:33:25]process_action_free close_receipt [17:33:25]json_value_free [17:33:25]json_value_free done [17:33:25]process_json_proto returns [17:33:25]Send response to host [17:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164317,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:33:25]free response buf [17:33:25]execute_script done [17:33:25]execute_script returns [17:33:25]free content buf [17:33:25]Sock 8.Close socket [17:33:25]Sock 8.Thread stoped [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:02]accept exits with 9 [17:39:02]New connection [17:39:02]New thread 3066998116 created [17:39:02]Thread 3067141476 joined [17:39:02]Waiting for new connection... [17:39:02] Sock 9.Parse request [17:39:02]Sock 9.Check first char [17:39:02]Sock 9.First char is OK [17:39:02]request: POST /json_proto HTTP/1.0 [17:39:02]Method: POST [17:39:02]URL: /json_proto [17:39:02]Method is POST - this is cgi request [17:39:02]url: /json_proto [17:39:02]query_string will be loaded in cgi processing [17:39:02]execute_cgi json_proto POST (null) [17:39:02]execute_cgi path=json_proto method=POST [17:39:02]POST find Content-Length [17:39:02]Host: 172.17.56.4:8080 [17:39:02]Content-Length: 790 [17:39:02]Content-Type: application/json [17:39:02] [17:39:02]POST finish read [17:39:02]Found Content-Length = 790 [17:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458401", "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" : 71.26, "quantity" : 70.170, "sum" : 5000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 5000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:02]execute_script... [17: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)458401", "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" : 71.26, "quantity" : 70.170, "sum" : 5000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 5000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:02]POST & json_proto [17:39:02]process_json_proto [17:39:02]json parsed OK: [17:39:02]protocol is kg_v1.0 [17:39:02]action value=close_receipt [17:39:02]process_action close_receipt [17:39:02]cmd_close_receipt [17:39:02]MH_GetDate [17:39:02]Write to MH i2c: F0 00 00 1F 02 10 [17:39:02]Write i2c OK [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: F0 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: F0 09 00 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: F0 09 00 1F 02 00 36 6A 91 66 C9 DC B2 64 6B [17:39:02]GetLastDocTimeStamp 1720805602 [17:39:02]current date 1720805942 [17:39:02]FM_GetShiftState [17:39:02]SAM_PROTO_GetShiftState [17:39:02]wFMCommunicate request_size=4 [17:39:02]MH_SAM_APDU [17:39:02]CAPDU: 80 13 01 00 [17:39:02]Write to MH i2c: E2 08 00 20 02 80 13 01 00 00 00 00 00 9F [17:39:02]Write i2c OK [17:39:02]MH_I2C_Read... [17:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:02]Read from MH i2c: E2 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: E2 0E 00 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: E2 0E 00 20 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E9 [17:39:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:39:02]wFMCommunicate OK [17:39:02]SAM_PROTO_GetShiftState done [17:39:02]FM_GetShiftState done [17:39:02]opened in 1720744654 [17:39:02]opened+sec_in_day 1720831054 [17:39:02]quantity*price = 500031 [17:39:02]sum+1 = 500032 [17:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.31 НСП 1% : 44.25 НДС 12% : 531.01 Наличными: 0.00 Безнал.: 5000.31 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 239 12.07.2024 17:39 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164318 ФПД: 132869527679077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T173903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164318&fm=132869527679077&tin=02508201610067®Number=0000000000090829&sum=500031 [17:39:03]StoreToDocumentArchive [17:39:03]shift 445 fd 164318 [17:39:03]save to /storage/0445/doc_00164318 [17:39:03]save last doc name /storage/0445/doc_00164318 to /storage/kkm_last_doc_name [17:39:03]save OK [17:39:03]Clear old archive folders... [17:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:39:03]tlvbuf is 01E43100 [17:39:03]SAM_PROTO_ClearQueue [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 09 00 00 [17:39:03]Write to MH i2c: E2 08 00 2D 02 80 09 00 00 00 00 00 00 A1 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [17:39:03]RAPDU: 90 00 [17:39:03]wFMCommunicate OK [17:39:03]SAM_PROTO_ClearQueue done [17:39:03]KKMCreateOFDPacket [17:39:03]OFDProtocolAddRootSTLVToBuf [17:39:03]FM_MakeSignedData [17:39:03]FM_MakeSignedData [17:39:03]SAM_PROTO_SignData [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 0D 01 02 [17:39:03]Write to MH i2c: E2 08 00 2E 02 80 0D 01 02 00 00 00 00 A9 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [17:39:03]RAPDU: 90 00 [17:39:03]wFMCommunicate OK [17:39:03]wFMCommunicate request_size=255 [17:39:03]MH_SAM_APDU [17:39: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 1A 12 01 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 3F A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 37 6A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 81 02 00 35 04 06 00 78 D8 18 FF [17:39:03]Write to MH i2c: E2 02 01 2F 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 12 01 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 3F A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 37 6A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 81 02 00 35 04 06 00 78 D8 18 FF 00 00 82 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [17:39:03]RAPDU: 90 00 [17:39:03]wFMCommunicate OK [17:39:03]wFMCommunicate request_size=7 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 0D 02 02 02 B0 65 [17:39:03]Write to MH i2c: E2 0A 00 30 02 80 0D 02 02 02 00 B0 65 00 00 C5 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [17:39:03]RAPDU: 90 00 [17:39:03]wFMCommunicate OK [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 0D 03 02 [17:39:03]Write to MH i2c: E2 08 00 31 02 80 0D 03 02 00 00 00 00 AE [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 0B 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 0B 00 31 02 00 5E C4 AE 83 8E BD 24 0C 90 00 7D [17:39:03]RAPDU: 5E C4 AE 83 8E BD 24 0C 90 00 [17:39:03]wFMCommunicate OK [17:39:03]SAM_PROTO_SignData done [17:39:03]FM_MakeSignedData done [17:39:03]CreateOFDProtocolMessage [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 11 00 00 [17:39:03]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 17 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [17:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:39:03]wFMCommunicate OK [17:39:03]CreateOFDProtocolMessage done [17:39:03]OFDSenderStorePacket 164318 [17:39:03]StoreOFDPacket docnum=164318 [17:39:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4B 66 04 01 CE 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 12 01 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 3F A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 37 6A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 81 02 00 35 04 06 00 78 D8 18 FF B0 65 5E C4 AE 83 8E BD 24 0C [17:39:03]CheckFolder [17:39:03]dirname=/storage/ofd_packets [17:39:03]CheckFolder done [17:39:03]ProducePacketName [17:39:03]name=ofd_packets/00164318 [17:39:03]NVStorageSaveData ofd_packets/00164318 [17:39:03]File name is /storage/ofd_packets/00164318 [17:39:03]Write 298 bytes [17:39:03]NVStorageSaveData done [17:39:03]OFDSenderStorePacket done [17:39:03]KKMCreateOFDPacket done [17:39:03]NVStorageSaveData kkm_last_timestamp [17:39:03]File name is /storage/kkm_last_timestamp [17:39:03]Write 4 bytes [17:39:03]NVStorageSaveData done [17:39:03]ExternCall_PrintAddStr [17:39:03]wPrintStart [17:39:03]Write to MH i2c: 01 00 00 33 02 35 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: 01 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: 01 07 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 FF 0F 4A [17:39:03]RasterBufferAndPrint [17:39:03]line Счет N : (1)458401 [17:39:03]line ИНН: 02508201610067 [17:39:03]line Контрольно-Кассовый Чек [17:39:03]line ПРОДАЖА [17:39:03]line ТРК (МРК, ГНК) : 21 [17:39:03]line Товар: 2710194210 [17:39:03]line ДТ-К-5 [17:39:03]line 70.170 * 71.26 [17:39:03]line = 5000.31 [17:39:03]line НДС 12% НСП 1% [17:39:03]line > о реализуемом товаре [17:39:03]line ИТОГО: 5000.31 [17:39:03]line НСП 1% : 44.25 [17:39:03]line НДС 12% : 531.01 [17:39:03]line Наличными: 0.00 [17:39:03]line Безнал.: 5000.31 [17:39:03]line Место: АЗС № 72 "Партнер Нефть" [17:39:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:39:03]line СНО: Общий режим [17:39:03]line Чек 239 12.07.2024 17:39 [17:39:03]line Смена: 445 ФФД: 1.0 [17:39:03]line ЗНМ: 0300000160 [17:39:03]line РНМ: 0000000000090829 [17:39:03]line Версия ККМ: 001 [17:39:03]line Платежная система: KICB Банк [17:39:03]line ФМ: 0000000000874718 [17:39:03]line ФД: 164318 [17:39:03]line ФПД: 132869527679077 [17:39:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T173903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164318&fm=132869527679077&tin=02508201610067®Number=0000000000090829&sum=500031 [17:39:04]OFD Sender: Processing packet 164318 [packets to send 104, broken 103] [17:39:04]ProducePacketName [17:39:04]name=ofd_packets/00164318 [17:39:04]OFD Sender: To server: pG, [17:39:04]CommunicateWithHost lk.salyk.kg:30040 [17:39:04]ConnectInit lk.salyk.kg [17:39:04]written 0, free lines is 4095 [17:39:04]Connected sock=10 [17:39:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4B 66 04 01 CE 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 12 01 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 3F A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 37 6A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 81 02 00 35 04 06 00 78 D8 18 FF B0 65 5E C4 AE 83 8E BD 24 0C [17:39:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7A 10 47 00 F7 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 81 02 00 F4 03 04 00 CA 10 91 66 B6 04 01 00 00 C8 47 A7 09 C6 44 AC 75 [17:39:04]CommunicateWithHost err = 0 [17:39:04]CheckOFDResponse [17:39:04]1017 (14) - 77093643461234 [17:39:04]1041 (16) - 0000000000874718 [17:39:04]1040 (4) - 164318 [17:39:04]1012 (4) - 12.07.2024 11:17 [17:39:04]1206 (1) - 0 [17:39:04]OFD Sender: Remove packet 164318 [17:39:04]ProducePacketName [17:39:04]name=ofd_packets/00164318 [17:39:04]NVStorageDeleteData [17:39:04]Write to MH i2c: 01 00 00 5C 02 5E [17:39:04]Write i2c OK [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: 01 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: 01 07 00 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 01 0D 73 [17:39:04]RasterBufferAndPrint [17:39:04]line [17:39:04]line [17:39:04]line [17:39:04]line [17:39:04]line [17:39:04]written 0, free lines is 3335 [17:39:04]MH_Cut [17:39:04]Write to MH i2c: D1 01 00 63 02 01 37 [17:39:04]Write i2c OK [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: D1 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: D1 01 00 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: D1 01 00 63 02 00 36 [17:39:04]Write to MH i2c: 01 00 00 64 02 66 [17:39:04]Write i2c OK [17:39:04]MH_I2C_Read... [17:39:05]OFD Sender: No OFD packet to send [17:39:05]*** Cut start [17:39:05]*** Partial cut [17:39:05]*** CUTSNS_PIN = 1 [17:39:05]*** CUTSNS_PIN = 0 [17:39:05]*** Brake cut motor [17:39:05]Read from MH i2c: 01 [17:39:06]MH_I2C_Read... [17:39:06]*** Stop cut motor [17:39:06]*** Cut end [17:39:06]Read from MH i2c: 01 07 00 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 FF 0F 7B [17:39:06]process_action close_receipt done [17:39:06]requested_data is exist [17:39:06]produce_requested_data [17:39:06]requested_item fm.sn is exist - process it [17:39:06]wFMCommunicate request_size=4 [17:39:06]MH_SAM_APDU [17:39:06]CAPDU: 80 11 00 00 [17:39:06]Write to MH i2c: E2 08 00 65 02 80 11 00 00 00 00 00 00 E1 [17:39:06]Write i2c OK [17:39:06]MH_I2C_Read... [17:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:06]Read from MH i2c: E2 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 17 00 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 17 00 65 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [17:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:39:06]wFMCommunicate OK [17:39:06]requested_item fd.num is exist - process it [17:39:06]SAM_PROTO_GetFieldsCounters [17:39:06]wFMCommunicate request_size=4 [17:39:06]MH_SAM_APDU [17:39:06]CAPDU: 80 13 00 00 [17:39:06]Write to MH i2c: E2 08 00 66 02 80 13 00 00 00 00 00 00 E4 [17:39:06]Write i2c OK [17:39:06]MH_I2C_Read... [17:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:06]Read from MH i2c: E2 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 62 00 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 62 00 66 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [17: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:06]wFMCommunicate OK [17:39:06]SAM_PROTO_GetFieldsCounters done [17:39:06]requested_item shift.num is exist - process it [17:39:06]requested_item shift.opened is exist - process it [17:39:06]req_shift_opened [17:39:06]FM_GetShiftState [17:39:06]SAM_PROTO_GetShiftState [17:39:06]wFMCommunicate request_size=4 [17:39:06]MH_SAM_APDU [17:39:06]CAPDU: 80 13 01 00 [17:39:06]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [17:39:06]Write i2c OK [17:39:06]MH_I2C_Read... [17:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:06]Read from MH i2c: E2 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 0E 00 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 30 [17:39:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:39:06]wFMCommunicate OK [17:39:06]SAM_PROTO_GetShiftState done [17:39:06]FM_GetShiftState done [17:39:06]req_shift_opened done [17:39:06]requested_item shift.open_date is exist - process it [17:39:06]req_shift_open_date [17:39:06]req_shift_open_date done [17:39:06]produce_requested_data done [17:39:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164318,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:39:06]process_action_free close_receipt [17:39:06]json_value_free [17:39:06]json_value_free done [17:39:06]process_json_proto returns [17:39:06]Send response to host [17:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164318,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:39:06]free response buf [17:39:06]execute_script done [17:39:06]execute_script returns [17:39:06]free content buf [17:39:06]Sock 9.Close socket [17:39:06]Sock 9.Thread stoped [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:32]accept exits with 8 [17:39:32]New connection [17:39:32]New thread 3067141476 created [17:39:32]Thread 3066998116 joined [17:39:32]Waiting for new connection... [17:39:32] Sock 8.Parse request [17:39:32]Sock 8.Check first char [17:39:32]Sock 8.First char is OK [17:39:32]request: POST /json_proto HTTP/1.0 [17:39:32]Method: POST [17:39:32]URL: /json_proto [17:39:32]Method is POST - this is cgi request [17:39:32]url: /json_proto [17:39:32]query_string will be loaded in cgi processing [17:39:32]execute_cgi json_proto POST (null) [17:39:32]execute_cgi path=json_proto method=POST [17:39:32]POST find Content-Length [17:39:32]Host: 172.17.56.4:8080 [17:39:32]Content-Length: 677 [17:39:32]Content-Type: application/json [17:39:32] [17:39:32]POST finish read [17:39:32]Found Content-Length = 677 [17:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:32]execute_script... [17:39:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:32]POST & json_proto [17:39:32]process_json_proto [17:39:32]json parsed OK: [17:39:32]protocol is kg_v1.0 [17:39:32]action value=close_receipt [17:39:32]process_action close_receipt [17:39:32]cmd_close_receipt [17:39:32]MH_GetDate [17:39:32]Write to MH i2c: F0 00 00 68 02 59 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: F0 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: F0 09 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: F0 09 00 68 02 00 55 6A 91 66 C9 DC B2 64 D3 [17:39:32]GetLastDocTimeStamp 1720805943 [17:39:32]current date 1720805973 [17:39:32]FM_GetShiftState [17:39:32]SAM_PROTO_GetShiftState [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 13 01 00 [17:39:32]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 32 [17:39:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_GetShiftState done [17:39:32]FM_GetShiftState done [17:39:32]opened in 1720744654 [17:39:32]opened+sec_in_day 1720831054 [17:39:32]quantity*price = 50008 [17:39:32]sum+1 = 50009 [17:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 240 12.07.2024 17:39 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164319 ФПД: 25999344357986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T173933&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164319&fm=25999344357986&tin=02508201610067®Number=0000000000090829&sum=50000 [17:39:33]StoreToDocumentArchive [17:39:33]shift 445 fd 164319 [17:39:33]save to /storage/0445/doc_00164319 [17:39:33]save last doc name /storage/0445/doc_00164319 to /storage/kkm_last_doc_name [17:39:33]save OK [17:39:33]Clear old archive folders... [17:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:33]tlvbuf is 01E20F50 [17:39:33]SAM_PROTO_ClearQueue [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 09 00 00 [17:39:33]Write to MH i2c: E2 08 00 76 02 80 09 00 00 00 00 00 00 EA [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]SAM_PROTO_ClearQueue done [17:39:33]KKMCreateOFDPacket [17:39:33]OFDProtocolAddRootSTLVToBuf [17:39:33]FM_MakeSignedData [17:39:33]FM_MakeSignedData [17:39:33]SAM_PROTO_SignData [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 0D 01 02 [17:39:33]Write to MH i2c: E2 08 00 77 02 80 0D 01 02 00 00 00 00 F2 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]wFMCommunicate request_size=255 [17:39:33]MH_SAM_APDU [17:39: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F0 00 00 00 F4 03 04 00 55 6A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 81 02 00 35 04 06 00 17 [17:39:33]Write to MH i2c: E2 02 01 78 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F0 00 00 00 F4 03 04 00 55 6A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 81 02 00 35 04 06 00 17 00 00 48 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]wFMCommunicate request_size=10 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 0D 02 02 05 A5 71 AF 52 62 [17:39:33]Write to MH i2c: E2 0D 00 79 02 80 0D 02 02 05 00 A5 71 AF 52 62 00 00 78 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 0D 03 02 [17:39:33]Write to MH i2c: E2 08 00 7A 02 80 0D 03 02 00 00 00 00 F7 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 0B 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 0B 00 7A 02 00 FE EA DA 5F 7E 14 62 B9 90 00 C6 [17:39:33]RAPDU: FE EA DA 5F 7E 14 62 B9 90 00 [17:39:33]wFMCommunicate OK [17:39:33]SAM_PROTO_SignData done [17:39:33]FM_MakeSignedData done [17:39:33]CreateOFDProtocolMessage [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 11 00 00 [17:39:33]Write to MH i2c: E2 08 00 7B 02 80 11 00 00 00 00 00 00 F7 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 17 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 17 00 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [17:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:39:34]wFMCommunicate OK [17:39:34]CreateOFDProtocolMessage done [17:39:34]OFDSenderStorePacket 164319 [17:39:34]StoreOFDPacket docnum=164319 [17:39:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 32 07 01 AF 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F0 00 00 00 F4 03 04 00 55 6A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 81 02 00 35 04 06 00 17 A5 71 AF 52 62 FE EA DA 5F 7E 14 62 B9 [17:39:34]CheckFolder [17:39:34]dirname=/storage/ofd_packets [17:39:34]CheckFolder done [17:39:34]ProducePacketName [17:39:34]name=ofd_packets/00164319 [17:39:34]NVStorageSaveData ofd_packets/00164319 [17:39:34]File name is /storage/ofd_packets/00164319 [17:39:34]Write 301 bytes [17:39:34]NVStorageSaveData done [17:39:34]OFDSenderStorePacket done [17:39:34]KKMCreateOFDPacket done [17:39:34]NVStorageSaveData kkm_last_timestamp [17:39:34]File name is /storage/kkm_last_timestamp [17:39:34]Write 4 bytes [17:39:34]NVStorageSaveData done [17:39:34]ExternCall_PrintAddStr [17:39:34]wPrintStart [17:39:34]Write to MH i2c: 01 00 00 7C 02 7E [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 FF 0F 93 [17:39:34]RasterBufferAndPrint [17:39:34]line Счет N : (1)458402 [17:39:34]line ИНН: 02508201610067 [17:39:34]line Контрольно-Кассовый Чек [17:39:34]line ПРОДАЖА [17:39:34]line ТРК (МРК, ГНК) : 12 [17:39:34]line Товар: 2710124130 [17:39:34]line Аи-92-К-5 [17:39:34]line 7.600 * 65.80 [17:39:34]line = 500.08 [17:39:34]line НДС 12% НСП 1% [17:39:34]line > о реализуемом товаре [17:39:34]line ОКРУГЛЕНИЕ: -0.08 [17:39:34]line ИТОГО: 500.00 [17:39:34]line Внесено: 500.00 [17:39:34]line СДАЧА: 0.00 [17:39:34]line НСП 1% : 4.42 [17:39:34]line НДС 12% : 53.11 [17:39:34]line Наличными: 500.00 [17:39:34]line Безнал.: 0.00 [17:39:34]line Место: АЗС № 72 "Партнер Нефть" [17:39:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:39:34]line СНО: Общий режим [17:39:34]line Чек 240 12.07.2024 17:39 [17:39:34]line Смена: 445 ФФД: 1.0 [17:39:34]line ЗНМ: 0300000160 [17:39:34]line РНМ: 0000000000090829 [17:39:34]line Версия ККМ: 001 [17:39:34]line ФМ: 0000000000874718 [17:39:34]line ФД: 164319 [17:39:34]line ФПД: 25999344357986 [17:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T173933&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164319&fm=25999344357986&tin=02508201610067®Number=0000000000090829&sum=50000 [17:39:34]written 0, free lines is 4095 [17:39:34]OFD Sender: Processing packet 164319 [packets to send 104, broken 103] [17:39:34]ProducePacketName [17:39:34]name=ofd_packets/00164319 [17:39:34]OFD Sender: To server: pG, [17:39:34]CommunicateWithHost lk.salyk.kg:30040 [17:39:34]ConnectInit lk.salyk.kg [17:39:34]Connected sock=10 [17: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 34 37 31 38 0F 01 00 00 83 32 07 01 AF 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F0 00 00 00 F4 03 04 00 55 6A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 81 02 00 35 04 06 00 17 A5 71 AF 52 62 FE EA DA 5F 7E 14 62 B9 [17:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 03 F9 47 00 5A 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 34 37 31 38 10 04 04 00 DF 81 02 00 F4 03 04 00 E8 10 91 66 B6 04 01 00 00 65 C2 52 40 A7 EC E3 F1 [17:39:34]CommunicateWithHost err = 0 [17:39:34]CheckOFDResponse [17:39:34]1017 (14) - 77093643461234 [17:39:34]1041 (16) - 0000000000874718 [17:39:34]1040 (4) - 164319 [17:39:34]1012 (4) - 12.07.2024 11:18 [17:39:34]1206 (1) - 0 [17:39:34]OFD Sender: Remove packet 164319 [17:39:34]ProducePacketName [17:39:34]name=ofd_packets/00164319 [17:39:34]NVStorageDeleteData [17:39:34]Write to MH i2c: 01 00 00 A6 02 A8 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 A6 02 00 00 00 00 00 02 0D BE [17:39:34]RasterBufferAndPrint [17:39:34]line [17:39:34]line [17:39:34]line [17:39:34]line [17:39:34]line [17:39:34]written 0, free lines is 3336 [17:39:34]MH_Cut [17:39:34]Write to MH i2c: D1 01 00 AD 02 01 81 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: D1 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: D1 01 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: D1 01 00 AD 02 00 80 [17:39:34]Write to MH i2c: 01 00 00 AE 02 B0 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]OFD Sender: No OFD packet to send [17:39:35]*** Cut start [17:39:35]*** Partial cut [17:39:35]*** CUTSNS_PIN = 1 [17:39:35]*** CUTSNS_PIN = 0 [17:39:35]*** Brake cut motor [17:39:35]Read from MH i2c: 01 [17:39:35]MH_I2C_Read... [17:39:35]*** Stop cut motor [17:39:35]*** Cut end [17:39:35]Read from MH i2c: 01 07 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 FF 0F C5 [17:39:35]process_action close_receipt done [17:39:35]requested_data is exist [17:39:35]produce_requested_data [17:39:35]requested_item fm.sn is exist - process it [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 11 00 00 [17:39:35]Write to MH i2c: E2 08 00 AF 02 80 11 00 00 00 00 00 00 2B [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 17 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 17 00 AF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [17:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:39:35]wFMCommunicate OK [17:39:35]requested_item fd.num is exist - process it [17:39:35]SAM_PROTO_GetFieldsCounters [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 13 00 00 [17:39:35]Write to MH i2c: E2 08 00 B0 02 80 13 00 00 00 00 00 00 2E [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 62 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 62 00 B0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [17:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:35]wFMCommunicate OK [17:39:35]SAM_PROTO_GetFieldsCounters done [17:39:35]requested_item shift.num is exist - process it [17:39:35]requested_item shift.opened is exist - process it [17:39:35]req_shift_opened [17:39:35]FM_GetShiftState [17:39:35]SAM_PROTO_GetShiftState [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 13 01 00 [17:39:35]Write to MH i2c: E2 08 00 B1 02 80 13 01 00 00 00 00 00 30 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 B1 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7A [17:39:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:39:36]wFMCommunicate OK [17:39:36]SAM_PROTO_GetShiftState done [17:39:36]FM_GetShiftState done [17:39:36]req_shift_opened done [17:39:36]requested_item shift.open_date is exist - process it [17:39:36]req_shift_open_date [17:39:36]req_shift_open_date done [17:39:36]produce_requested_data done [17:39:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164319,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:39:36]process_action_free close_receipt [17:39:36]json_value_free [17:39:36]json_value_free done [17:39:36]process_json_proto returns [17:39:36]Send response to host [17:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164319,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:39:36]free response buf [17:39:36]execute_script done [17:39:36]execute_script returns [17:39:36]free content buf [17:39:36]Sock 8.Close socket [17:39:36]Sock 8.Thread stoped [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:41]accept exits with 9 [17:43:41]New connection [17:43:41]New thread 3066998116 created [17:43:41]Thread 3067141476 joined [17:43:41]Waiting for new connection... [17:43:41] Sock 9.Parse request [17:43:41]Sock 9.Check first char [17:43:41]Sock 9.First char is OK [17:43:41]request: POST /json_proto HTTP/1.0 [17:43:41]Method: POST [17:43:41]URL: /json_proto [17:43:41]Method is POST - this is cgi request [17:43:41]url: /json_proto [17:43:41]query_string will be loaded in cgi processing [17:43:41]execute_cgi json_proto POST (null) [17:43:41]execute_cgi path=json_proto method=POST [17:43:41]POST find Content-Length [17:43:41]Host: 172.17.56.4:8080 [17:43:41]Content-Length: 679 [17:43:41]Content-Type: application/json [17:43:41] [17:43:41]POST finish read [17:43:41]Found Content-Length = 679 [17:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458403", "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" : 71.90, "quantity" : 43.120, "sum" : 3100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3800.00, "total" : 3100.00, "payments": [ { "type": 0, "sum" : 3100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:41]execute_script... [17:43: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)458403", "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" : 71.90, "quantity" : 43.120, "sum" : 3100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3800.00, "total" : 3100.00, "payments": [ { "type": 0, "sum" : 3100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:41]POST & json_proto [17:43:41]process_json_proto [17:43:41]json parsed OK: [17:43:41]protocol is kg_v1.0 [17:43:41]action value=close_receipt [17:43:41]process_action close_receipt [17:43:41]cmd_close_receipt [17:43:41]MH_GetDate [17:43:41]Write to MH i2c: F0 00 00 B2 02 A3 [17:43:41]Write i2c OK [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: F0 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: F0 09 00 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: F0 09 00 B2 02 00 4E 6B 91 66 C9 DC B2 64 17 [17:43:41]GetLastDocTimeStamp 1720805973 [17:43:41]current date 1720806222 [17:43:41]FM_GetShiftState [17:43:41]SAM_PROTO_GetShiftState [17:43:41]wFMCommunicate request_size=4 [17:43:41]MH_SAM_APDU [17:43:41]CAPDU: 80 13 01 00 [17:43:41]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [17:43:41]Write i2c OK [17:43:41]MH_I2C_Read... [17:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:41]Read from MH i2c: E2 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: E2 0E 00 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7C [17:43:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:43:41]wFMCommunicate OK [17:43:41]SAM_PROTO_GetShiftState done [17:43:41]FM_GetShiftState done [17:43:41]opened in 1720744654 [17:43:41]opened+sec_in_day 1720831054 [17:43:41]quantity*price = 310032 [17:43:41]sum+1 = 310034 [17:43:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3100.00 Внесено: 3800.00 СДАЧА: 700.00 НСП 1% : 27.44 НДС 12% : 329.24 Наличными: 3100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 241 12.07.2024 17:43 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164320 ФПД: 241422245138030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174342&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164320&fm=241422245138030&tin=02508201610067®Number=0000000000090829&sum=310000 [17:43:42]StoreToDocumentArchive [17:43:42]shift 445 fd 164320 [17:43:42]save to /storage/0445/doc_00164320 [17:43:42]save last doc name /storage/0445/doc_00164320 to /storage/kkm_last_doc_name [17:43:42]save OK [17:43:42]Clear old archive folders... [17:43:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:43:42]tlvbuf is 01E6C720 [17:43:42]SAM_PROTO_ClearQueue [17:43:42]wFMCommunicate request_size=4 [17:43:42]MH_SAM_APDU [17:43:42]CAPDU: 80 09 00 00 [17:43:42]Write to MH i2c: E2 08 00 C0 02 80 09 00 00 00 00 00 00 34 [17:43:42]Write i2c OK [17:43:42]MH_I2C_Read... [17:43:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:42]Read from MH i2c: E2 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 03 00 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [17:43:42]RAPDU: 90 00 [17:43:42]wFMCommunicate OK [17:43:42]SAM_PROTO_ClearQueue done [17:43:42]KKMCreateOFDPacket [17:43:42]OFDProtocolAddRootSTLVToBuf [17:43:42]FM_MakeSignedData [17:43:42]FM_MakeSignedData [17:43:42]SAM_PROTO_SignData [17:43:42]wFMCommunicate request_size=4 [17:43:42]MH_SAM_APDU [17:43:42]CAPDU: 80 0D 01 02 [17:43:42]Write to MH i2c: E2 08 00 C1 02 80 0D 01 02 00 00 00 00 3C [17:43:42]Write i2c OK [17:43:42]MH_I2C_Read... [17:43:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:42]Read from MH i2c: E2 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 03 00 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [17:43:42]RAPDU: 90 00 [17:43:42]wFMCommunicate OK [17:43:42]wFMCommunicate request_size=255 [17:43:42]MH_SAM_APDU [17:43: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 70 A8 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 11 BB 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 BA 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 80 00 00 00 00 07 04 06 00 F0 BA 04 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 4E 6B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 81 02 00 35 04 06 00 DB 92 7F 29 [17:43:42]Write to MH i2c: E2 02 01 C2 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 A8 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 11 BB 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 BA 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 80 00 00 00 00 07 04 06 00 F0 BA 04 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 4E 6B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 81 02 00 35 04 06 00 DB 92 7F 29 00 00 CA [17:43:42]Write i2c OK [17:43:42]MH_I2C_Read... [17:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:43]Read from MH i2c: E2 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 03 00 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [17:43:43]RAPDU: 90 00 [17:43:43]wFMCommunicate OK [17:43:43]wFMCommunicate request_size=7 [17:43:43]MH_SAM_APDU [17:43:43]CAPDU: 80 0D 02 02 02 8E 6E [17:43:43]Write to MH i2c: E2 0A 00 C3 02 80 0D 02 02 02 00 8E 6E 00 00 3F [17:43:43]Write i2c OK [17:43:43]MH_I2C_Read... [17:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:43]Read from MH i2c: E2 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 03 00 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [17:43:43]RAPDU: 90 00 [17:43:43]wFMCommunicate OK [17:43:43]wFMCommunicate request_size=4 [17:43:43]MH_SAM_APDU [17:43:43]CAPDU: 80 0D 03 02 [17:43:43]Write to MH i2c: E2 08 00 C4 02 80 0D 03 02 00 00 00 00 41 [17:43:43]Write i2c OK [17:43:43]MH_I2C_Read... [17:43:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:43]Read from MH i2c: E2 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 0B 00 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 0B 00 C4 02 00 97 12 C3 54 30 57 59 90 90 00 72 [17:43:43]RAPDU: 97 12 C3 54 30 57 59 90 90 00 [17:43:43]wFMCommunicate OK [17:43:43]SAM_PROTO_SignData done [17:43:43]FM_MakeSignedData done [17:43:43]CreateOFDProtocolMessage [17:43:43]wFMCommunicate request_size=4 [17:43:43]MH_SAM_APDU [17:43:43]CAPDU: 80 11 00 00 [17:43:43]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [17:43:43]Write i2c OK [17:43:43]MH_I2C_Read... [17:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:43]Read from MH i2c: E2 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 17 00 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [17:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:43:43]wFMCommunicate OK [17:43:43]CreateOFDProtocolMessage done [17:43:43]OFDSenderStorePacket 164320 [17:43:43]StoreOFDPacket docnum=164320 [17:43:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6E 19 04 01 C7 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 70 A8 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 11 BB 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 BA 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 80 00 00 00 00 07 04 06 00 F0 BA 04 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 4E 6B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 81 02 00 35 04 06 00 DB 92 7F 29 8E 6E 97 12 C3 54 30 57 59 90 [17:43:43]CheckFolder [17:43:43]dirname=/storage/ofd_packets [17:43:43]CheckFolder done [17:43:43]ProducePacketName [17:43:43]name=ofd_packets/00164320 [17:43:43]NVStorageSaveData ofd_packets/00164320 [17:43:43]File name is /storage/ofd_packets/00164320 [17:43:43]Write 298 bytes [17:43:43]NVStorageSaveData done [17:43:43]OFDSenderStorePacket done [17:43:43]KKMCreateOFDPacket done [17:43:43]NVStorageSaveData kkm_last_timestamp [17:43:43]File name is /storage/kkm_last_timestamp [17:43:43]Write 4 bytes [17:43:43]NVStorageSaveData done [17:43:43]ExternCall_PrintAddStr [17:43:43]wPrintStart [17:43:43]Write to MH i2c: 01 00 00 C6 02 C8 [17:43:43]Write i2c OK [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: 01 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: 01 07 00 [17:43:43]MH_I2C_Read... [17:43:43]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [17:43:43]RasterBufferAndPrint [17:43:43]line Счет N : (1)458403 [17:43:43]line ИНН: 02508201610067 [17:43:43]line Контрольно-Кассовый Чек [17:43:43]line ПРОДАЖА [17:43:43]line ТРК (МРК, ГНК) : 21 [17:43:43]line Товар: 2710194210 [17:43:43]line ДТ-К-5 [17:43:43]line 43.120 * 71.90 [17:43:43]line = 3100.33 [17:43:43]line НДС 12% НСП 1% [17:43:43]line > о реализуемом товаре [17:43:43]line ОКРУГЛЕНИЕ: -0.33 [17:43:43]line ИТОГО: 3100.00 [17:43:43]line Внесено: 3800.00 [17:43:43]line СДАЧА: 700.00 [17:43:43]line НСП 1% : 27.44 [17:43:43]line НДС 12% : 329.24 [17:43:43]line Наличными: 3100.00 [17:43:43]line Безнал.: 0.00 [17:43:43]line Место: АЗС № 72 "Партнер Нефть" [17:43:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:43:43]line СНО: Общий режим [17:43:43]line Чек 241 12.07.2024 17:43 [17:43:43]line Смена: 445 ФФД: 1.0 [17:43:43]line ЗНМ: 0300000160 [17:43:43]line РНМ: 0000000000090829 [17:43:43]line Версия ККМ: 001 [17:43:43]line ФМ: 0000000000874718 [17:43:43]line ФД: 164320 [17:43:43]line ФПД: 241422245138030 [17:43:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174342&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164320&fm=241422245138030&tin=02508201610067®Number=0000000000090829&sum=310000 [17:43:43]OFD Sender: Processing packet 164320 [packets to send 104, broken 103] [17:43:43]ProducePacketName [17:43:43]name=ofd_packets/00164320 [17:43:43]OFD Sender: To server: pG, [17:43:43]CommunicateWithHost lk.salyk.kg:30040 [17:43:43]ConnectInit lk.salyk.kg [17:43:43]written 0, free lines is 4095 [17:43:43]Connected sock=10 [17:43:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6E 19 04 01 C7 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 70 A8 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 11 BB 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 BA 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 80 00 00 00 00 07 04 06 00 F0 BA 04 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 4E 6B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 81 02 00 35 04 06 00 DB 92 7F 29 8E 6E 97 12 C3 54 30 57 59 90 [17:43:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0D B9 47 00 BF DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 81 02 00 F4 03 04 00 E1 11 91 66 B6 04 01 00 00 B0 46 8B C1 EA 9A ED 88 [17:43:43]CommunicateWithHost err = 0 [17:43:43]CheckOFDResponse [17:43:43]1017 (14) - 77093643461234 [17:43:43]1041 (16) - 0000000000874718 [17:43:43]1040 (4) - 164320 [17:43:43]1012 (4) - 12.07.2024 11:22 [17:43:43]1206 (1) - 0 [17:43:43]OFD Sender: Remove packet 164320 [17:43:43]ProducePacketName [17:43:43]name=ofd_packets/00164320 [17:43:43]NVStorageDeleteData [17:43:44]Write to MH i2c: 01 00 00 F0 02 F2 [17:43:44]Write i2c OK [17:43:44]MH_I2C_Read... [17:43:44]Read from MH i2c: 01 [17:43:44]MH_I2C_Read... [17:43:44]Read from MH i2c: 01 07 00 [17:43:44]MH_I2C_Read... [17:43:44]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 F0 0C F5 [17:43:44]RasterBufferAndPrint [17:43:44]line [17:43:44]line [17:43:44]line [17:43:44]line [17:43:44]line [17:43:44]written 0, free lines is 3318 [17:43:44]MH_Cut [17:43:44]Write to MH i2c: D1 01 00 F7 02 01 CB [17:43:44]Write i2c OK [17:43:44]MH_I2C_Read... [17:43:44]Read from MH i2c: D1 [17:43:44]MH_I2C_Read... [17:43:44]Read from MH i2c: D1 01 00 [17:43:44]MH_I2C_Read... [17:43:44]Read from MH i2c: D1 01 00 F7 02 00 CA [17:43:44]Write to MH i2c: 01 00 00 F8 02 FA [17:43:44]Write i2c OK [17:43:44]MH_I2C_Read... [17:43:44]OFD Sender: No OFD packet to send [17:43:44]*** Cut start [17:43:44]*** Partial cut [17:43:44]*** CUTSNS_PIN = 1 [17:43:44]*** CUTSNS_PIN = 0 [17:43:44]*** Brake cut motor [17:43:45]Read from MH i2c: 01 [17:43:45]MH_I2C_Read... [17:43:45]*** Stop cut motor [17:43:45]*** Cut end [17:43:45]Read from MH i2c: 01 07 00 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 FF 0F 0F [17:43:45]process_action close_receipt done [17:43:45]requested_data is exist [17:43:45]produce_requested_data [17:43:45]requested_item fm.sn is exist - process it [17:43:45]wFMCommunicate request_size=4 [17:43:45]MH_SAM_APDU [17:43:45]CAPDU: 80 11 00 00 [17:43:45]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [17:43:45]Write i2c OK [17:43:45]MH_I2C_Read... [17:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:45]Read from MH i2c: E2 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: E2 17 00 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [17:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:43:45]wFMCommunicate OK [17:43:45]requested_item fd.num is exist - process it [17:43:45]SAM_PROTO_GetFieldsCounters [17:43:45]wFMCommunicate request_size=4 [17:43:45]MH_SAM_APDU [17:43:45]CAPDU: 80 13 00 00 [17:43:45]Write to MH i2c: E2 08 00 FA 02 80 13 00 00 00 00 00 00 78 [17:43:45]Write i2c OK [17:43:45]MH_I2C_Read... [17:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:45]Read from MH i2c: E2 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: E2 62 00 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: E2 62 00 FA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [17:43: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:45]wFMCommunicate OK [17:43:45]SAM_PROTO_GetFieldsCounters done [17:43:45]requested_item shift.num is exist - process it [17:43:45]requested_item shift.opened is exist - process it [17:43:45]req_shift_opened [17:43:45]FM_GetShiftState [17:43:45]SAM_PROTO_GetShiftState [17:43:45]wFMCommunicate request_size=4 [17:43:45]MH_SAM_APDU [17:43:45]CAPDU: 80 13 01 00 [17:43:45]Write to MH i2c: E2 08 00 FB 02 80 13 01 00 00 00 00 00 7A [17:43:45]Write i2c OK [17:43:45]MH_I2C_Read... [17:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:45]Read from MH i2c: E2 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: E2 0E 00 [17:43:45]MH_I2C_Read... [17:43:45]Read from MH i2c: E2 0E 00 FB 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C4 [17:43:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:43:45]wFMCommunicate OK [17:43:45]SAM_PROTO_GetShiftState done [17:43:45]FM_GetShiftState done [17:43:45]req_shift_opened done [17:43:45]requested_item shift.open_date is exist - process it [17:43:45]req_shift_open_date [17:43:45]req_shift_open_date done [17:43:45]produce_requested_data done [17:43:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164320,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:43:45]process_action_free close_receipt [17:43:45]json_value_free [17:43:45]json_value_free done [17:43:45]process_json_proto returns [17:43:45]Send response to host [17:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164320,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:43:45]free response buf [17:43:45]execute_script done [17:43:45]execute_script returns [17:43:45]free content buf [17:43:45]Sock 9.Close socket [17:43:45]Sock 9.Thread stoped [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:58]accept exits with 8 [17:46:58]New connection [17:46:58]New thread 3067141476 created [17:46:58]Thread 3066998116 joined [17:46:58]Waiting for new connection... [17:46:58] Sock 8.Parse request [17:46:58]Sock 8.Check first char [17:46:58]Sock 8.First char is OK [17:46:58]request: POST /json_proto HTTP/1.0 [17:46:58]Method: POST [17:46:58]URL: /json_proto [17:46:58]Method is POST - this is cgi request [17:46:58]url: /json_proto [17:46:58]query_string will be loaded in cgi processing [17:46:58]execute_cgi json_proto POST (null) [17:46:58]execute_cgi path=json_proto method=POST [17:46:58]POST find Content-Length [17:46:58]Host: 172.17.56.4:8080 [17:46:58]Content-Length: 678 [17:46:58]Content-Type: application/json [17:46:58] [17:46:58]POST finish read [17:46:58]Found Content-Length = 678 [17:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:46:58]execute_script... [17: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)458404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:46:58]POST & json_proto [17:46:58]process_json_proto [17:46:58]json parsed OK: [17:46:58]protocol is kg_v1.0 [17:46:58]action value=close_receipt [17:46:58]process_action close_receipt [17:46:58]cmd_close_receipt [17:46:58]MH_GetDate [17:46:58]Write to MH i2c: F0 00 00 FC 02 ED [17:46:58]Write i2c OK [17:46:58]MH_I2C_Read... [17:46:58]Read from MH i2c: F0 [17:46:58]MH_I2C_Read... [17:46:58]Read from MH i2c: F0 09 00 [17:46:58]MH_I2C_Read... [17:46:58]Read from MH i2c: F0 09 00 FC 02 00 13 6C 91 66 C9 DC B2 64 27 [17:46:58]GetLastDocTimeStamp 1720806222 [17:46:58]current date 1720806419 [17:46:58]FM_GetShiftState [17:46:58]SAM_PROTO_GetShiftState [17:46:58]wFMCommunicate request_size=4 [17:46:58]MH_SAM_APDU [17:46:58]CAPDU: 80 13 01 00 [17:46:58]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [17:46:58]Write i2c OK [17:46:58]MH_I2C_Read... [17:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:58]Read from MH i2c: E2 [17:46:58]MH_I2C_Read... [17:46:58]Read from MH i2c: E2 0E 00 [17:46:58]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C6 [17:46:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:46:59]wFMCommunicate OK [17:46:59]SAM_PROTO_GetShiftState done [17:46:59]FM_GetShiftState done [17:46:59]opened in 1720744654 [17:46:59]opened+sec_in_day 1720831054 [17:46:59]quantity*price = 70011 [17:46:59]sum+1 = 70012 [17:46:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 242 12.07.2024 17:46 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164321 ФПД: 51199230927441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174659&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164321&fm=51199230927441&tin=02508201610067®Number=0000000000090829&sum=70000 [17:47:00]StoreToDocumentArchive [17:47:00]shift 445 fd 164321 [17:47:00]save to /storage/0445/doc_00164321 [17:47:00]save last doc name /storage/0445/doc_00164321 to /storage/kkm_last_doc_name [17:47:00]save OK [17:47:00]Clear old archive folders... [17:47:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:00]tlvbuf is 01E29400 [17:47:00]SAM_PROTO_ClearQueue [17:47:00]wFMCommunicate request_size=4 [17:47:00]MH_SAM_APDU [17:47:00]CAPDU: 80 09 00 00 [17:47:00]Write to MH i2c: E2 08 00 0A 03 80 09 00 00 00 00 00 00 7F [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:00]Read from MH i2c: E2 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 03 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [17:47:00]RAPDU: 90 00 [17:47:00]wFMCommunicate OK [17:47:00]SAM_PROTO_ClearQueue done [17:47:00]KKMCreateOFDPacket [17:47:00]OFDProtocolAddRootSTLVToBuf [17:47:00]FM_MakeSignedData [17:47:00]FM_MakeSignedData [17:47:00]SAM_PROTO_SignData [17:47:00]wFMCommunicate request_size=4 [17:47:00]MH_SAM_APDU [17:47:00]CAPDU: 80 0D 01 02 [17:47:00]Write to MH i2c: E2 08 00 0B 03 80 0D 01 02 00 00 00 00 87 [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:00]Read from MH i2c: E2 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 03 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [17:47:00]RAPDU: 90 00 [17:47:00]wFMCommunicate OK [17:47:00]wFMCommunicate request_size=255 [17:47:00]MH_SAM_APDU [17:47: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 13 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 81 02 00 35 04 06 00 2E [17:47:00]Write to MH i2c: E2 02 01 0C 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 13 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 81 02 00 35 04 06 00 2E 00 00 FC [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:00]Read from MH i2c: E2 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 03 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [17:47:00]RAPDU: 90 00 [17:47:00]wFMCommunicate OK [17:47:00]wFMCommunicate request_size=10 [17:47:00]MH_SAM_APDU [17:47:00]CAPDU: 80 0D 02 02 05 90 BF F8 E2 51 [17:47:00]Write to MH i2c: E2 0D 00 0D 03 80 0D 02 02 05 00 90 BF F8 E2 51 00 00 0E [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:00]Read from MH i2c: E2 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 03 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [17:47:00]RAPDU: 90 00 [17:47:00]wFMCommunicate OK [17:47:00]wFMCommunicate request_size=4 [17:47:00]MH_SAM_APDU [17:47:00]CAPDU: 80 0D 03 02 [17:47:00]Write to MH i2c: E2 08 00 0E 03 80 0D 03 02 00 00 00 00 8C [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:00]Read from MH i2c: E2 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 0B 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 0B 00 0E 03 00 AC 23 B7 D5 BC 76 9B FD 90 00 B2 [17:47:00]RAPDU: AC 23 B7 D5 BC 76 9B FD 90 00 [17:47:00]wFMCommunicate OK [17:47:00]SAM_PROTO_SignData done [17:47:00]FM_MakeSignedData done [17:47:00]CreateOFDProtocolMessage [17:47:00]wFMCommunicate request_size=4 [17:47:00]MH_SAM_APDU [17:47:00]CAPDU: 80 11 00 00 [17:47:00]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:00]Read from MH i2c: E2 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 17 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 17 00 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E2 [17:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:47:00]wFMCommunicate OK [17:47:00]CreateOFDProtocolMessage done [17:47:00]OFDSenderStorePacket 164321 [17:47:00]StoreOFDPacket docnum=164321 [17:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 43 07 01 36 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 13 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 81 02 00 35 04 06 00 2E 90 BF F8 E2 51 AC 23 B7 D5 BC 76 9B FD [17:47:00]CheckFolder [17:47:00]dirname=/storage/ofd_packets [17:47:00]CheckFolder done [17:47:00]ProducePacketName [17:47:00]name=ofd_packets/00164321 [17:47:00]NVStorageSaveData ofd_packets/00164321 [17:47:00]File name is /storage/ofd_packets/00164321 [17:47:00]Write 301 bytes [17:47:00]NVStorageSaveData done [17:47:00]OFDSenderStorePacket done [17:47:00]KKMCreateOFDPacket done [17:47:00]NVStorageSaveData kkm_last_timestamp [17:47:00]File name is /storage/kkm_last_timestamp [17:47:00]Write 4 bytes [17:47:00]NVStorageSaveData done [17:47:00]ExternCall_PrintAddStr [17:47:00]wPrintStart [17:47:00]Write to MH i2c: 01 00 00 10 03 13 [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 10 03 00 00 00 00 00 FF 0F 28 [17:47:00]RasterBufferAndPrint [17:47:00]line Счет N : (1)458404 [17:47:00]line ИНН: 02508201610067 [17:47:00]line Контрольно-Кассовый Чек [17:47:00]line ПРОДАЖА [17:47:00]line ТРК (МРК, ГНК) : 22 [17:47:00]line Товар: 2710124130 [17:47:00]line Аи-92-К-5 [17:47:00]line 10.640 * 65.80 [17:47:00]line = 700.11 [17:47:00]line НДС 12% НСП 1% [17:47:00]line > о реализуемом товаре [17:47:00]line ОКРУГЛЕНИЕ: -0.11 [17:47:00]line ИТОГО: 700.00 [17:47:00]line Внесено: 700.00 [17:47:00]line СДАЧА: 0.00 [17:47:00]line НСП 1% : 6.20 [17:47:00]line НДС 12% : 74.35 [17:47:00]line Наличными: 700.00 [17:47:00]line Безнал.: 0.00 [17:47:00]line Место: АЗС № 72 "Партнер Нефть" [17:47:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:47:00]line СНО: Общий режим [17:47:00]line Чек 242 12.07.2024 17:46 [17:47:00]line Смена: 445 ФФД: 1.0 [17:47:00]line ЗНМ: 0300000160 [17:47:00]line РНМ: 0000000000090829 [17:47:00]line Версия ККМ: 001 [17:47:00]line ФМ: 0000000000874718 [17:47:00]line ФД: 164321 [17:47:00]line ФПД: 51199230927441 [17:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174659&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164321&fm=51199230927441&tin=02508201610067®Number=0000000000090829&sum=70000 [17:47:00]OFD Sender: Processing packet 164321 [packets to send 104, broken 103] [17:47:00]ProducePacketName [17:47:00]name=ofd_packets/00164321 [17:47:00]OFD Sender: To server: pG, [17:47:00]CommunicateWithHost lk.salyk.kg:30040 [17:47:00]ConnectInit lk.salyk.kg [17:47:00]written 0, free lines is 4095 [17:47:01]Connected sock=10 [17:47:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 43 07 01 36 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 13 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 81 02 00 35 04 06 00 2E 90 BF F8 E2 51 AC 23 B7 D5 BC 76 9B FD [17:47:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F0 CF 47 00 19 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 81 02 00 F4 03 04 00 A7 12 91 66 B6 04 01 00 00 17 DD E2 FC 9F D0 1E 0B [17:47:01]CommunicateWithHost err = 0 [17:47:01]CheckOFDResponse [17:47:01]1017 (14) - 77093643461234 [17:47:01]1041 (16) - 0000000000874718 [17:47:01]1040 (4) - 164321 [17:47:01]1012 (4) - 12.07.2024 11:25 [17:47:01]1206 (1) - 0 [17:47:01]OFD Sender: Remove packet 164321 [17:47:01]ProducePacketName [17:47:01]name=ofd_packets/00164321 [17:47:01]NVStorageDeleteData [17:47:01]Write to MH i2c: 01 00 00 3A 03 3D [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: 01 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: 01 07 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 F7 0C 47 [17:47:01]RasterBufferAndPrint [17:47:01]line [17:47:01]line [17:47:01]line [17:47:01]line [17:47:01]line [17:47:01]written 0, free lines is 3326 [17:47:01]MH_Cut [17:47:01]Write to MH i2c: D1 01 00 41 03 01 16 [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: D1 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: D1 01 00 [17:47:01]MH_I2C_Read... [17:47:01]Read from MH i2c: D1 01 00 41 03 00 15 [17:47:01]Write to MH i2c: 01 00 00 42 03 45 [17:47:01]Write i2c OK [17:47:01]MH_I2C_Read... [17:47:01]OFD Sender: No OFD packet to send [17:47:02]*** Cut start [17:47:02]*** Partial cut [17:47:02]*** CUTSNS_PIN = 1 [17:47:02]*** CUTSNS_PIN = 0 [17:47:02]*** Brake cut motor [17:47:02]Read from MH i2c: 01 [17:47:02]MH_I2C_Read... [17:47:02]*** Stop cut motor [17:47:02]*** Cut end [17:47:02]Read from MH i2c: 01 07 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 FF 0F 5A [17:47:02]process_action close_receipt done [17:47:02]requested_data is exist [17:47:02]produce_requested_data [17:47:02]requested_item fm.sn is exist - process it [17:47:02]wFMCommunicate request_size=4 [17:47:02]MH_SAM_APDU [17:47:02]CAPDU: 80 11 00 00 [17:47:02]Write to MH i2c: E2 08 00 43 03 80 11 00 00 00 00 00 00 C0 [17:47:02]Write i2c OK [17:47:02]MH_I2C_Read... [17:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:02]Read from MH i2c: E2 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 17 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 17 00 43 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [17:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:47:02]wFMCommunicate OK [17:47:02]requested_item fd.num is exist - process it [17:47:02]SAM_PROTO_GetFieldsCounters [17:47:02]wFMCommunicate request_size=4 [17:47:02]MH_SAM_APDU [17:47:02]CAPDU: 80 13 00 00 [17:47:02]Write to MH i2c: E2 08 00 44 03 80 13 00 00 00 00 00 00 C3 [17:47:02]Write i2c OK [17:47:02]MH_I2C_Read... [17:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:02]Read from MH i2c: E2 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 62 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 62 00 44 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:02]wFMCommunicate OK [17:47:02]SAM_PROTO_GetFieldsCounters done [17:47:02]requested_item shift.num is exist - process it [17:47:02]requested_item shift.opened is exist - process it [17:47:02]req_shift_opened [17:47:02]FM_GetShiftState [17:47:02]SAM_PROTO_GetShiftState [17:47:02]wFMCommunicate request_size=4 [17:47:02]MH_SAM_APDU [17:47:02]CAPDU: 80 13 01 00 [17:47:02]Write to MH i2c: E2 08 00 45 03 80 13 01 00 00 00 00 00 C5 [17:47:02]Write i2c OK [17:47:02]MH_I2C_Read... [17:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:02]Read from MH i2c: E2 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 0E 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 0E 00 45 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0F [17:47:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:47:02]wFMCommunicate OK [17:47:02]SAM_PROTO_GetShiftState done [17:47:02]FM_GetShiftState done [17:47:02]req_shift_opened done [17:47:02]requested_item shift.open_date is exist - process it [17:47:02]req_shift_open_date [17:47:02]req_shift_open_date done [17:47:02]produce_requested_data done [17:47:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164321,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:47:02]process_action_free close_receipt [17:47:02]json_value_free [17:47:02]json_value_free done [17:47:02]process_json_proto returns [17:47:02]Send response to host [17:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164321,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:47:02]free response buf [17:47:02]execute_script done [17:47:02]execute_script returns [17:47:02]free content buf [17:47:02]Sock 8.Close socket [17:47:02]Sock 8.Thread stoped [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:23]accept exits with 9 [17:47:23]New connection [17:47:23]New thread 3066998116 created [17:47:23]Thread 3067141476 joined [17:47:23]Waiting for new connection... [17:47:23] Sock 9.Parse request [17:47:23]Sock 9.Check first char [17:47:23]Sock 9.First char is OK [17:47:23]request: POST /json_proto HTTP/1.0 [17:47:23]Method: POST [17:47:23]URL: /json_proto [17:47:23]Method is POST - this is cgi request [17:47:23]url: /json_proto [17:47:23]query_string will be loaded in cgi processing [17:47:23]execute_cgi json_proto POST (null) [17:47:23]execute_cgi path=json_proto method=POST [17:47:23]POST find Content-Length [17:47:23]Host: 172.17.56.4:8080 [17:47:23]Content-Length: 674 [17:47:23]Content-Type: application/json [17:47:23] [17:47:23]POST finish read [17:47:23]Found Content-Length = 674 [17:47:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:47:23]execute_script... [17:47: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)458405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:47:23]POST & json_proto [17:47:23]process_json_proto [17:47:23]json parsed OK: [17:47:23]protocol is kg_v1.0 [17:47:23]action value=close_receipt [17:47:23]process_action close_receipt [17:47:23]cmd_close_receipt [17:47:23]MH_GetDate [17:47:23]Write to MH i2c: F0 00 00 46 03 38 [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: F0 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: F0 09 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: F0 09 00 46 03 00 2C 6C 91 66 C9 DC B2 64 8B [17:47:23]GetLastDocTimeStamp 1720806419 [17:47:23]current date 1720806444 [17:47:23]FM_GetShiftState [17:47:23]SAM_PROTO_GetShiftState [17:47:23]wFMCommunicate request_size=4 [17:47:23]MH_SAM_APDU [17:47:23]CAPDU: 80 13 01 00 [17:47:23]Write to MH i2c: E2 08 00 47 03 80 13 01 00 00 00 00 00 C7 [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:23]Read from MH i2c: E2 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 0E 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 0E 00 47 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 11 [17:47:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:47:23]wFMCommunicate OK [17:47:23]SAM_PROTO_GetShiftState done [17:47:23]FM_GetShiftState done [17:47:23]opened in 1720744654 [17:47:23]opened+sec_in_day 1720831054 [17:47:23]quantity*price = 70030 [17:47:23]sum+1 = 70032 [17:47:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 243 12.07.2024 17:47 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164322 ФПД: 91405469453633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174724&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164322&fm=91405469453633&tin=02508201610067®Number=0000000000090829&sum=70000 [17:47:24]StoreToDocumentArchive [17:47:24]shift 445 fd 164322 [17:47:24]save to /storage/0445/doc_00164322 [17:47:24]save last doc name /storage/0445/doc_00164322 to /storage/kkm_last_doc_name [17:47:24]save OK [17:47:24]Clear old archive folders... [17:47:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:47:24]tlvbuf is 01E43CC0 [17:47:24]SAM_PROTO_ClearQueue [17:47:24]wFMCommunicate request_size=4 [17:47:24]MH_SAM_APDU [17:47:24]CAPDU: 80 09 00 00 [17:47:24]Write to MH i2c: E2 08 00 54 03 80 09 00 00 00 00 00 00 C9 [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [17:47:24]RAPDU: 90 00 [17:47:24]wFMCommunicate OK [17:47:24]SAM_PROTO_ClearQueue done [17:47:24]KKMCreateOFDPacket [17:47:24]OFDProtocolAddRootSTLVToBuf [17:47:24]FM_MakeSignedData [17:47:24]FM_MakeSignedData [17:47:24]SAM_PROTO_SignData [17:47:24]wFMCommunicate request_size=4 [17:47:24]MH_SAM_APDU [17:47:24]CAPDU: 80 0D 01 02 [17:47:24]Write to MH i2c: E2 08 00 55 03 80 0D 01 02 00 00 00 00 D1 [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [17:47:24]RAPDU: 90 00 [17:47:24]wFMCommunicate OK [17:47:24]wFMCommunicate request_size=255 [17:47:24]MH_SAM_APDU [17:47: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 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F3 00 00 00 F4 03 04 00 2C 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 81 02 00 35 04 06 00 53 21 FE 89 [17:47:24]Write to MH i2c: E2 02 01 56 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F3 00 00 00 F4 03 04 00 2C 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 81 02 00 35 04 06 00 53 21 FE 89 00 00 75 [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [17:47:24]RAPDU: 90 00 [17:47:24]wFMCommunicate OK [17:47:24]wFMCommunicate request_size=7 [17:47:24]MH_SAM_APDU [17:47:24]CAPDU: 80 0D 02 02 02 8D 41 [17:47:24]Write to MH i2c: E2 0A 00 57 03 80 0D 02 02 02 00 8D 41 00 00 A6 [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [17:47:24]RAPDU: 90 00 [17:47:24]wFMCommunicate OK [17:47:24]wFMCommunicate request_size=4 [17:47:24]MH_SAM_APDU [17:47:24]CAPDU: 80 0D 03 02 [17:47:24]Write to MH i2c: E2 08 00 58 03 80 0D 03 02 00 00 00 00 D6 [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 0B 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 0B 00 58 03 00 14 17 11 46 EB 04 6F BF 90 00 76 [17:47:24]RAPDU: 14 17 11 46 EB 04 6F BF 90 00 [17:47:24]wFMCommunicate OK [17:47:24]SAM_PROTO_SignData done [17:47:24]FM_MakeSignedData done [17:47:24]CreateOFDProtocolMessage [17:47:24]wFMCommunicate request_size=4 [17:47:24]MH_SAM_APDU [17:47:24]CAPDU: 80 11 00 00 [17:47:24]Write to MH i2c: E2 08 00 59 03 80 11 00 00 00 00 00 00 D6 [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 17 00 [17:47:24]MH_I2C_Read... [17:47:25]Read from MH i2c: E2 17 00 59 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [17:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:47:25]wFMCommunicate OK [17:47:25]CreateOFDProtocolMessage done [17:47:25]OFDSenderStorePacket 164322 [17:47:25]StoreOFDPacket docnum=164322 [17:47:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B4 E1 04 01 3A 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F3 00 00 00 F4 03 04 00 2C 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 81 02 00 35 04 06 00 53 21 FE 89 8D 41 14 17 11 46 EB 04 6F BF [17:47:25]CheckFolder [17:47:25]dirname=/storage/ofd_packets [17:47:25]CheckFolder done [17:47:25]ProducePacketName [17:47:25]name=ofd_packets/00164322 [17:47:25]NVStorageSaveData ofd_packets/00164322 [17:47:25]File name is /storage/ofd_packets/00164322 [17:47:25]Write 298 bytes [17:47:25]NVStorageSaveData done [17:47:25]OFDSenderStorePacket done [17:47:25]KKMCreateOFDPacket done [17:47:25]NVStorageSaveData kkm_last_timestamp [17:47:25]File name is /storage/kkm_last_timestamp [17:47:25]Write 4 bytes [17:47:25]NVStorageSaveData done [17:47:25]ExternCall_PrintAddStr [17:47:25]wPrintStart [17:47:25]Write to MH i2c: 01 00 00 5A 03 5D [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 5A 03 00 00 00 00 00 FF 0F 72 [17:47:25]RasterBufferAndPrint [17:47:25]line Счет N : (1)458405 [17:47:25]line ИНН: 02508201610067 [17:47:25]line Контрольно-Кассовый Чек [17:47:25]line ПРОДАЖА [17:47:25]line ТРК (МРК, ГНК) : 11 [17:47:25]line Товар: 2710194210 [17:47:25]line ДТ-К-5 [17:47:25]line 9.740 * 71.90 [17:47:25]line = 700.31 [17:47:25]line НДС 12% НСП 1% [17:47:25]line > о реализуемом товаре [17:47:25]line ОКРУГЛЕНИЕ: -0.31 [17:47:25]line ИТОГО: 700.00 [17:47:25]line Внесено: 700.00 [17:47:25]line СДАЧА: 0.00 [17:47:25]line НСП 1% : 6.20 [17:47:25]line НДС 12% : 74.37 [17:47:25]line Наличными: 700.00 [17:47:25]line Безнал.: 0.00 [17:47:25]line Место: АЗС № 72 "Партнер Нефть" [17:47:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:47:25]line СНО: Общий режим [17:47:25]line Чек 243 12.07.2024 17:47 [17:47:25]line Смена: 445 ФФД: 1.0 [17:47:25]line ЗНМ: 0300000160 [17:47:25]line РНМ: 0000000000090829 [17:47:25]line Версия ККМ: 001 [17:47:25]line ФМ: 0000000000874718 [17:47:25]line ФД: 164322 [17:47:25]line ФПД: 91405469453633 [17:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174724&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164322&fm=91405469453633&tin=02508201610067®Number=0000000000090829&sum=70000 [17:47:25]OFD Sender: Processing packet 164322 [packets to send 104, broken 103] [17:47:25]ProducePacketName [17:47:25]name=ofd_packets/00164322 [17:47:25]OFD Sender: To server: pG, [17:47:25]CommunicateWithHost lk.salyk.kg:30040 [17:47:25]ConnectInit lk.salyk.kg [17:47:25]written 0, free lines is 4095 [17:47:25]Connected sock=10 [17:47:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B4 E1 04 01 3A 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F3 00 00 00 F4 03 04 00 2C 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 81 02 00 35 04 06 00 53 21 FE 89 8D 41 14 17 11 46 EB 04 6F BF [17:47:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 30 55 47 00 D3 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 34 37 31 38 10 04 04 00 E2 81 02 00 F4 03 04 00 BF 12 91 66 B6 04 01 00 00 20 97 60 00 B2 5E E5 5A [17:47:25]CommunicateWithHost err = 0 [17:47:25]CheckOFDResponse [17:47:25]1017 (14) - 77093643461234 [17:47:25]1041 (16) - 0000000000874718 [17:47:25]1040 (4) - 164322 [17:47:25]1012 (4) - 12.07.2024 11:25 [17:47:25]1206 (1) - 0 [17:47:25]OFD Sender: Remove packet 164322 [17:47:25]ProducePacketName [17:47:25]name=ofd_packets/00164322 [17:47:25]NVStorageDeleteData [17:47:25]Write to MH i2c: 01 00 00 84 03 87 [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 84 03 00 00 00 00 00 E8 0C 82 [17:47:25]RasterBufferAndPrint [17:47:25]line [17:47:25]line [17:47:25]line [17:47:25]line [17:47:25]line [17:47:25]written 0, free lines is 3310 [17:47:25]MH_Cut [17:47:25]Write to MH i2c: D1 01 00 8B 03 01 60 [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: D1 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: D1 01 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: D1 01 00 8B 03 00 5F [17:47:25]Write to MH i2c: 01 00 00 8C 03 8F [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:26]OFD Sender: No OFD packet to send [17:47:26]*** Cut start [17:47:26]*** Partial cut [17:47:26]*** CUTSNS_PIN = 1 [17:47:26]*** CUTSNS_PIN = 0 [17:47:26]*** Brake cut motor [17:47:27]Read from MH i2c: 01 [17:47:27]MH_I2C_Read... [17:47:27]*** Stop cut motor [17:47:27]*** Cut end [17:47:27]Read from MH i2c: 01 07 00 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: 01 07 00 8C 03 00 00 00 00 00 FF 0F A4 [17:47:27]process_action close_receipt done [17:47:27]requested_data is exist [17:47:27]produce_requested_data [17:47:27]requested_item fm.sn is exist - process it [17:47:27]wFMCommunicate request_size=4 [17:47:27]MH_SAM_APDU [17:47:27]CAPDU: 80 11 00 00 [17:47:27]Write to MH i2c: E2 08 00 8D 03 80 11 00 00 00 00 00 00 0A [17:47:27]Write i2c OK [17:47:27]MH_I2C_Read... [17:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:27]Read from MH i2c: E2 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: E2 17 00 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: E2 17 00 8D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [17:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:47:27]wFMCommunicate OK [17:47:27]requested_item fd.num is exist - process it [17:47:27]SAM_PROTO_GetFieldsCounters [17:47:27]wFMCommunicate request_size=4 [17:47:27]MH_SAM_APDU [17:47:27]CAPDU: 80 13 00 00 [17:47:27]Write to MH i2c: E2 08 00 8E 03 80 13 00 00 00 00 00 00 0D [17:47:27]Write i2c OK [17:47:27]MH_I2C_Read... [17:47:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:27]Read from MH i2c: E2 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: E2 62 00 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: E2 62 00 8E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [17:47: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:27]wFMCommunicate OK [17:47:27]SAM_PROTO_GetFieldsCounters done [17:47:27]requested_item shift.num is exist - process it [17:47:27]requested_item shift.opened is exist - process it [17:47:27]req_shift_opened [17:47:27]FM_GetShiftState [17:47:27]SAM_PROTO_GetShiftState [17:47:27]wFMCommunicate request_size=4 [17:47:27]MH_SAM_APDU [17:47:27]CAPDU: 80 13 01 00 [17:47:27]Write to MH i2c: E2 08 00 8F 03 80 13 01 00 00 00 00 00 0F [17:47:27]Write i2c OK [17:47:27]MH_I2C_Read... [17:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:27]Read from MH i2c: E2 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: E2 0E 00 [17:47:27]MH_I2C_Read... [17:47:27]Read from MH i2c: E2 0E 00 8F 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 59 [17:47:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:47:27]wFMCommunicate OK [17:47:27]SAM_PROTO_GetShiftState done [17:47:27]FM_GetShiftState done [17:47:27]req_shift_opened done [17:47:27]requested_item shift.open_date is exist - process it [17:47:27]req_shift_open_date [17:47:27]req_shift_open_date done [17:47:27]produce_requested_data done [17:47:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164322,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:47:27]process_action_free close_receipt [17:47:27]json_value_free [17:47:27]json_value_free done [17:47:27]process_json_proto returns [17:47:27]Send response to host [17:47:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164322,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:47:27]free response buf [17:47:27]execute_script done [17:47:27]execute_script returns [17:47:27]free content buf [17:47:27]Sock 9.Close socket [17:47:27]Sock 9.Thread stoped [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:47:59]accept exits with 8 [17:47:59]New connection [17:47:59]New thread 3067141476 created [17:47:59]Thread 3066998116 joined [17:47:59]Waiting for new connection... [17:47:59] Sock 8.Parse request [17:47:59]Sock 8.Check first char [17:47:59]Sock 8.First char is OK [17:47:59]request: POST /json_proto HTTP/1.0 [17:47:59]Method: POST [17:47:59]URL: /json_proto [17:47:59]Method is POST - this is cgi request [17:47:59]url: /json_proto [17:47:59]query_string will be loaded in cgi processing [17:47:59]execute_cgi json_proto POST (null) [17:47:59]execute_cgi path=json_proto method=POST [17:47:59]POST find Content-Length [17:47:59]Host: 172.17.56.4:8080 [17:47:59]Content-Length: 677 [17:47:59]Content-Type: application/json [17:47:59] [17:47:59]POST finish read [17:47:59]Found Content-Length = 677 [17:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [17:47:59]execute_script... [17:47:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [17:47:59]POST & json_proto [17:47:59]process_json_proto [17:47:59]json parsed OK: [17:47:59]protocol is kg_v1.0 [17:47:59]action value=close_receipt [17:47:59]process_action close_receipt [17:47:59]cmd_close_receipt [17:47:59]MH_GetDate [17:47:59]Write to MH i2c: F0 00 00 90 03 82 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: F0 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: F0 09 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: F0 09 00 90 03 00 4F 6C 91 66 C9 DC B2 64 F8 [17:47:59]GetLastDocTimeStamp 1720806444 [17:47:59]current date 1720806479 [17:47:59]FM_GetShiftState [17:47:59]SAM_PROTO_GetShiftState [17:47:59]wFMCommunicate request_size=4 [17:47:59]MH_SAM_APDU [17:47:59]CAPDU: 80 13 01 00 [17:47:59]Write to MH i2c: E2 08 00 91 03 80 13 01 00 00 00 00 00 11 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:59]Read from MH i2c: E2 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 0E 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: E2 0E 00 91 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5B [17:47:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:47:59]wFMCommunicate OK [17:47:59]SAM_PROTO_GetShiftState done [17:47:59]FM_GetShiftState done [17:47:59]opened in 1720744654 [17:47:59]opened+sec_in_day 1720831054 [17:47:59]quantity*price = 10001 [17:47:59]sum+1 = 10003 [17:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 244 12.07.2024 17:47 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164323 ФПД: 195984653405087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174759&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164323&fm=195984653405087&tin=02508201610067®Number=0000000000090829&sum=10000 [17:48:00]StoreToDocumentArchive [17:48:00]shift 445 fd 164323 [17:48:00]save to /storage/0445/doc_00164323 [17:48:00]save last doc name /storage/0445/doc_00164323 to /storage/kkm_last_doc_name [17:48:00]save OK [17:48:00]Clear old archive folders... [17:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:00]tlvbuf is 01E27060 [17:48:00]SAM_PROTO_ClearQueue [17:48:00]wFMCommunicate request_size=4 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 09 00 00 [17:48:00]Write to MH i2c: E2 08 00 9E 03 80 09 00 00 00 00 00 00 13 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [17:48:00]RAPDU: 90 00 [17:48:00]wFMCommunicate OK [17:48:00]SAM_PROTO_ClearQueue done [17:48:00]KKMCreateOFDPacket [17:48:00]OFDProtocolAddRootSTLVToBuf [17:48:00]FM_MakeSignedData [17:48:00]FM_MakeSignedData [17:48:00]SAM_PROTO_SignData [17:48:00]wFMCommunicate request_size=4 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 0D 01 02 [17:48:00]Write to MH i2c: E2 08 00 9F 03 80 0D 01 02 00 00 00 00 1B [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [17:48:00]RAPDU: 90 00 [17:48:00]wFMCommunicate OK [17:48:00]wFMCommunicate request_size=255 [17:48:00]MH_SAM_APDU [17:48: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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 4F 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 81 02 00 35 04 06 00 B2 [17:48:00]Write to MH i2c: E2 02 01 A0 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 4F 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 81 02 00 35 04 06 00 B2 00 00 92 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [17:48:00]RAPDU: 90 00 [17:48:00]wFMCommunicate OK [17:48:00]wFMCommunicate request_size=10 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 0D 02 02 05 3F 3B A5 CB 9F [17:48:00]Write to MH i2c: E2 0D 00 A1 03 80 0D 02 02 05 00 3F 3B A5 CB 9F 00 00 B1 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [17:48:00]RAPDU: 90 00 [17:48:00]wFMCommunicate OK [17:48:00]wFMCommunicate request_size=4 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 0D 03 02 [17:48:00]Write to MH i2c: E2 08 00 A2 03 80 0D 03 02 00 00 00 00 20 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 0B 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 0B 00 A2 03 00 C1 62 EF BE 07 55 9D 8A 90 00 74 [17:48:00]RAPDU: C1 62 EF BE 07 55 9D 8A 90 00 [17:48:00]wFMCommunicate OK [17:48:00]SAM_PROTO_SignData done [17:48:00]FM_MakeSignedData done [17:48:00]CreateOFDProtocolMessage [17:48:00]wFMCommunicate request_size=4 [17:48:00]MH_SAM_APDU [17:48:00]CAPDU: 80 11 00 00 [17:48:00]Write to MH i2c: E2 08 00 A3 03 80 11 00 00 00 00 00 00 20 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:00]Read from MH i2c: E2 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 17 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: E2 17 00 A3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [17:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:48:00]wFMCommunicate OK [17:48:00]CreateOFDProtocolMessage done [17:48:00]OFDSenderStorePacket 164323 [17:48:00]StoreOFDPacket docnum=164323 [17:48:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 25 07 01 42 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 4F 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 81 02 00 35 04 06 00 B2 3F 3B A5 CB 9F C1 62 EF BE 07 55 9D 8A [17:48:00]CheckFolder [17:48:00]dirname=/storage/ofd_packets [17:48:00]CheckFolder done [17:48:00]ProducePacketName [17:48:00]name=ofd_packets/00164323 [17:48:00]NVStorageSaveData ofd_packets/00164323 [17:48:00]File name is /storage/ofd_packets/00164323 [17:48:00]Write 301 bytes [17:48:00]NVStorageSaveData done [17:48:00]OFDSenderStorePacket done [17:48:00]KKMCreateOFDPacket done [17:48:00]NVStorageSaveData kkm_last_timestamp [17:48:00]File name is /storage/kkm_last_timestamp [17:48:00]Write 4 bytes [17:48:00]NVStorageSaveData done [17:48:00]ExternCall_PrintAddStr [17:48:00]wPrintStart [17:48:00]Write to MH i2c: 01 00 00 A4 03 A7 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: 01 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: 01 07 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 FF 0F BC [17:48:00]RasterBufferAndPrint [17:48:00]line Счет N : (1)458406 [17:48:00]line ИНН: 02508201610067 [17:48:00]line Контрольно-Кассовый Чек [17:48:00]line ПРОДАЖА [17:48:00]line ТРК (МРК, ГНК) : 12 [17:48:00]line Товар: 2710124130 [17:48:00]line Аи-92-К-5 [17:48:00]line 1.520 * 65.80 [17:48:00]line = 100.02 [17:48:00]line НДС 12% НСП 1% [17:48:00]line > о реализуемом товаре [17:48:00]line ОКРУГЛЕНИЕ: -0.02 [17:48:00]line ИТОГО: 100.00 [17:48:00]line Внесено: 100.00 [17:48:00]line СДАЧА: 0.00 [17:48:00]line НСП 1% : 0.88 [17:48:00]line НДС 12% : 10.62 [17:48:00]line Наличными: 100.00 [17:48:00]line Безнал.: 0.00 [17:48:00]line Место: АЗС № 72 "Партнер Нефть" [17:48:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:48:00]line СНО: Общий режим [17:48:00]line Чек 244 12.07.2024 17:47 [17:48:00]line Смена: 445 ФФД: 1.0 [17:48:00]line ЗНМ: 0300000160 [17:48:00]line РНМ: 0000000000090829 [17:48:00]line Версия ККМ: 001 [17:48:00]line ФМ: 0000000000874718 [17:48:00]line ФД: 164323 [17:48:00]line ФПД: 195984653405087 [17:48:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174759&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164323&fm=195984653405087&tin=02508201610067®Number=0000000000090829&sum=10000 [17:48:01]written 0, free lines is 4095 [17:48:01]OFD Sender: Processing packet 164323 [packets to send 104, broken 103] [17:48:01]ProducePacketName [17:48:01]name=ofd_packets/00164323 [17:48:01]OFD Sender: To server: pG, [17:48:01]CommunicateWithHost lk.salyk.kg:30040 [17:48:01]ConnectInit lk.salyk.kg [17:48:01]Connected sock=10 [17:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 25 07 01 42 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 4F 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 81 02 00 35 04 06 00 B2 3F 3B A5 CB 9F C1 62 EF BE 07 55 9D 8A [17:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AB B6 47 00 FD 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 81 02 00 F4 03 04 00 E3 12 91 66 B6 04 01 00 00 6A 7D 13 44 A3 1D 8A 76 [17:48:01]CommunicateWithHost err = 0 [17:48:01]CheckOFDResponse [17:48:01]1017 (14) - 77093643461234 [17:48:01]1041 (16) - 0000000000874718 [17:48:01]1040 (4) - 164323 [17:48:01]1012 (4) - 12.07.2024 11:26 [17:48:01]1206 (1) - 0 [17:48:01]OFD Sender: Remove packet 164323 [17:48:01]ProducePacketName [17:48:01]name=ofd_packets/00164323 [17:48:01]NVStorageDeleteData [17:48:01]Write to MH i2c: 01 00 00 CE 03 D1 [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 07 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: 01 07 00 CE 03 00 00 00 00 00 F4 0C D8 [17:48:01]RasterBufferAndPrint [17:48:01]line [17:48:01]line [17:48:01]line [17:48:01]line [17:48:01]line [17:48:01]written 0, free lines is 3323 [17:48:01]MH_Cut [17:48:01]Write to MH i2c: D1 01 00 D5 03 01 AA [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: D1 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: D1 01 00 [17:48:01]MH_I2C_Read... [17:48:01]Read from MH i2c: D1 01 00 D5 03 00 A9 [17:48:01]Write to MH i2c: 01 00 00 D6 03 D9 [17:48:01]Write i2c OK [17:48:01]MH_I2C_Read... [17:48:01]OFD Sender: No OFD packet to send [17:48:02]*** Cut start [17:48:02]*** Partial cut [17:48:02]*** CUTSNS_PIN = 1 [17:48:02]*** CUTSNS_PIN = 0 [17:48:02]*** Brake cut motor [17:48:02]Read from MH i2c: 01 [17:48:02]MH_I2C_Read... [17:48:02]*** Stop cut motor [17:48:02]*** Cut end [17:48:02]Read from MH i2c: 01 07 00 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 FF 0F EE [17:48:02]process_action close_receipt done [17:48:02]requested_data is exist [17:48:02]produce_requested_data [17:48:02]requested_item fm.sn is exist - process it [17:48:02]wFMCommunicate request_size=4 [17:48:02]MH_SAM_APDU [17:48:02]CAPDU: 80 11 00 00 [17:48:02]Write to MH i2c: E2 08 00 D7 03 80 11 00 00 00 00 00 00 54 [17:48:02]Write i2c OK [17:48:02]MH_I2C_Read... [17:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:02]Read from MH i2c: E2 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 17 00 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 17 00 D7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [17:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:48:02]wFMCommunicate OK [17:48:02]requested_item fd.num is exist - process it [17:48:02]SAM_PROTO_GetFieldsCounters [17:48:02]wFMCommunicate request_size=4 [17:48:02]MH_SAM_APDU [17:48:02]CAPDU: 80 13 00 00 [17:48:02]Write to MH i2c: E2 08 00 D8 03 80 13 00 00 00 00 00 00 57 [17:48:02]Write i2c OK [17:48:02]MH_I2C_Read... [17:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:02]Read from MH i2c: E2 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 62 00 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 62 00 D8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [17:48: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:02]wFMCommunicate OK [17:48:02]SAM_PROTO_GetFieldsCounters done [17:48:02]requested_item shift.num is exist - process it [17:48:02]requested_item shift.opened is exist - process it [17:48:02]req_shift_opened [17:48:02]FM_GetShiftState [17:48:02]SAM_PROTO_GetShiftState [17:48:02]wFMCommunicate request_size=4 [17:48:02]MH_SAM_APDU [17:48:02]CAPDU: 80 13 01 00 [17:48:02]Write to MH i2c: E2 08 00 D9 03 80 13 01 00 00 00 00 00 59 [17:48:02]Write i2c OK [17:48:02]MH_I2C_Read... [17:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:03]Read from MH i2c: E2 [17:48:03]MH_I2C_Read... [17:48:03]Read from MH i2c: E2 0E 00 [17:48:03]MH_I2C_Read... [17:48:03]Read from MH i2c: E2 0E 00 D9 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A3 [17:48:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:48:03]wFMCommunicate OK [17:48:03]SAM_PROTO_GetShiftState done [17:48:03]FM_GetShiftState done [17:48:03]req_shift_opened done [17:48:03]requested_item shift.open_date is exist - process it [17:48:03]req_shift_open_date [17:48:03]req_shift_open_date done [17:48:03]produce_requested_data done [17:48:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164323,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:48:03]process_action_free close_receipt [17:48:03]json_value_free [17:48:03]json_value_free done [17:48:03]process_json_proto returns [17:48:03]Send response to host [17:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164323,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:48:03]free response buf [17:48:03]execute_script done [17:48:03]execute_script returns [17:48:03]free content buf [17:48:03]Sock 8.Close socket [17:48:03]Sock 8.Thread stoped [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:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:44]accept exits with 9 [17:48:44]New connection [17:48:44]New thread 3066998116 created [17:48:44]Thread 3067141476 joined [17:48:44]Waiting for new connection... [17:48:44] Sock 9.Parse request [17:48:44]Sock 9.Check first char [17:48:44]Sock 9.First char is OK [17:48:44]request: POST /json_proto HTTP/1.0 [17:48:44]Method: POST [17:48:44]URL: /json_proto [17:48:44]Method is POST - this is cgi request [17:48:44]url: /json_proto [17:48:44]query_string will be loaded in cgi processing [17:48:44]execute_cgi json_proto POST (null) [17:48:44]execute_cgi path=json_proto method=POST [17:48:44]POST find Content-Length [17:48:44]Host: 172.17.56.4:8080 [17:48:44]Content-Length: 674 [17:48:44]Content-Type: application/json [17:48:44] [17:48:44]POST finish read [17:48:44]Found Content-Length = 674 [17:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458407", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:44]execute_script... [17:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458407", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:44]POST & json_proto [17:48:44]process_json_proto [17:48:44]json parsed OK: [17:48:44]protocol is kg_v1.0 [17:48:44]action value=close_receipt [17:48:44]process_action close_receipt [17:48:44]cmd_close_receipt [17:48:44]MH_GetDate [17:48:44]Write to MH i2c: F0 00 00 DA 03 CC [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: F0 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: F0 09 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: F0 09 00 DA 03 00 7D 6C 91 66 C9 DC B2 64 70 [17:48:44]GetLastDocTimeStamp 1720806479 [17:48:44]current date 1720806525 [17:48:44]FM_GetShiftState [17:48:44]SAM_PROTO_GetShiftState [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 13 01 00 [17:48:44]Write to MH i2c: E2 08 00 DB 03 80 13 01 00 00 00 00 00 5B [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 0E 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 0E 00 DB 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A5 [17:48:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:48:44]wFMCommunicate OK [17:48:44]SAM_PROTO_GetShiftState done [17:48:44]FM_GetShiftState done [17:48:44]opened in 1720744654 [17:48:44]opened+sec_in_day 1720831054 [17:48:44]quantity*price = 50042 [17:48:44]sum+1 = 50043 [17:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 245 12.07.2024 17:48 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164324 ФПД: 278495191770198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174845&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164324&fm=278495191770198&tin=02508201610067®Number=0000000000090829&sum=50000 [17:48:45]StoreToDocumentArchive [17:48:45]shift 445 fd 164324 [17:48:45]save to /storage/0445/doc_00164324 [17:48:45]save last doc name /storage/0445/doc_00164324 to /storage/kkm_last_doc_name [17:48:45]save OK [17:48:45]Clear old archive folders... [17:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:48:45]tlvbuf is 01E42E20 [17:48:45]SAM_PROTO_ClearQueue [17:48:45]wFMCommunicate request_size=4 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 09 00 00 [17:48:45]Write to MH i2c: E2 08 00 E8 03 80 09 00 00 00 00 00 00 5D [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [17:48:45]RAPDU: 90 00 [17:48:45]wFMCommunicate OK [17:48:45]SAM_PROTO_ClearQueue done [17:48:45]KKMCreateOFDPacket [17:48:45]OFDProtocolAddRootSTLVToBuf [17:48:45]FM_MakeSignedData [17:48:45]FM_MakeSignedData [17:48:45]SAM_PROTO_SignData [17:48:45]wFMCommunicate request_size=4 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 0D 01 02 [17:48:45]Write to MH i2c: E2 08 00 E9 03 80 0D 01 02 00 00 00 00 65 [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [17:48:45]RAPDU: 90 00 [17:48:45]wFMCommunicate OK [17:48:45]wFMCommunicate request_size=255 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7D 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 81 02 00 35 04 06 00 FD 4A 36 FA [17:48:45]Write to MH i2c: E2 02 01 EA 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7D 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 81 02 00 35 04 06 00 FD 4A 36 FA 00 00 AB [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [17:48:45]RAPDU: 90 00 [17:48:45]wFMCommunicate OK [17:48:45]wFMCommunicate request_size=7 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 0D 02 02 02 24 56 [17:48:45]Write to MH i2c: E2 0A 00 EB 03 80 0D 02 02 02 00 24 56 00 00 E6 [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [17:48:45]RAPDU: 90 00 [17:48:45]wFMCommunicate OK [17:48:45]wFMCommunicate request_size=4 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 0D 03 02 [17:48:45]Write to MH i2c: E2 08 00 EC 03 80 0D 03 02 00 00 00 00 6A [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 0B 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 0B 00 EC 03 00 12 C6 48 4B AA 12 25 6F 90 00 26 [17:48:45]RAPDU: 12 C6 48 4B AA 12 25 6F 90 00 [17:48:45]wFMCommunicate OK [17:48:45]SAM_PROTO_SignData done [17:48:45]FM_MakeSignedData done [17:48:45]CreateOFDProtocolMessage [17:48:45]wFMCommunicate request_size=4 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 11 00 00 [17:48:45]Write to MH i2c: E2 08 00 ED 03 80 11 00 00 00 00 00 00 6A [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 17 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 17 00 ED 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [17:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:48:46]wFMCommunicate OK [17:48:46]CreateOFDProtocolMessage done [17:48:46]OFDSenderStorePacket 164324 [17:48:46]StoreOFDPacket docnum=164324 [17:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0E FE 04 01 66 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7D 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 81 02 00 35 04 06 00 FD 4A 36 FA 24 56 12 C6 48 4B AA 12 25 6F [17:48:46]CheckFolder [17:48:46]dirname=/storage/ofd_packets [17:48:46]CheckFolder done [17:48:46]ProducePacketName [17:48:46]name=ofd_packets/00164324 [17:48:46]NVStorageSaveData ofd_packets/00164324 [17:48:46]File name is /storage/ofd_packets/00164324 [17:48:46]Write 298 bytes [17:48:46]NVStorageSaveData done [17:48:46]OFDSenderStorePacket done [17:48:46]KKMCreateOFDPacket done [17:48:46]NVStorageSaveData kkm_last_timestamp [17:48:46]File name is /storage/kkm_last_timestamp [17:48:46]Write 4 bytes [17:48:46]NVStorageSaveData done [17:48:46]ExternCall_PrintAddStr [17:48:46]wPrintStart [17:48:46]Write to MH i2c: 01 00 00 EE 03 F1 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 EE 03 00 00 00 00 00 FF 0F 06 [17:48:46]RasterBufferAndPrint [17:48:46]line Счет N : (1)458407 [17:48:46]line ИНН: 02508201610067 [17:48:46]line Контрольно-Кассовый Чек [17:48:46]line ПРОДАЖА [17:48:46]line ТРК (МРК, ГНК) : 21 [17:48:46]line Товар: 2710194210 [17:48:46]line ДТ-К-5 [17:48:46]line 6.960 * 71.90 [17:48:46]line = 500.42 [17:48:46]line НДС 12% НСП 1% [17:48:46]line > о реализуемом товаре [17:48:46]OFD Sender: Processing packet 164324 [packets to send 104, broken 103] [17:48:46]ProducePacketName [17:48:46]name=ofd_packets/00164324 [17:48:46]OFD Sender: To server: pG, [17:48:46]CommunicateWithHost lk.salyk.kg:30040 [17:48:46]ConnectInit lk.salyk.kg [17:48:46]line ОКРУГЛЕНИЕ: -0.42 [17:48:46]line ИТОГО: 500.00 [17:48:46]line Внесено: 500.00 [17:48:46]line СДАЧА: 0.00 [17:48:46]line НСП 1% : 4.43 [17:48:46]line НДС 12% : 53.14 [17:48:46]line Наличными: 500.00 [17:48:46]line Безнал.: 0.00 [17:48:46]line Место: АЗС № 72 "Партнер Нефть" [17:48:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:48:46]line СНО: Общий режим [17:48:46]line Чек 245 12.07.2024 17:48 [17:48:46]line Смена: 445 ФФД: 1.0 [17:48:46]line ЗНМ: 0300000160 [17:48:46]line РНМ: 0000000000090829 [17:48:46]line Версия ККМ: 001 [17:48:46]line ФМ: 0000000000874718 [17:48:46]line ФД: 164324 [17:48:46]line ФПД: 278495191770198 [17:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T174845&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164324&fm=278495191770198&tin=02508201610067®Number=0000000000090829&sum=50000 [17:48:46]Connected sock=11 [17:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0E FE 04 01 66 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7D 6C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 81 02 00 35 04 06 00 FD 4A 36 FA 24 56 12 C6 48 4B AA 12 25 6F [17:48:46]written 0, free lines is 4095 [17:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 96 72 47 00 CB 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 81 02 00 F4 03 04 00 10 13 91 66 B6 04 01 00 00 64 C6 DB 6C 40 0B 4D DD [17:48:46]CommunicateWithHost err = 0 [17:48:46]CheckOFDResponse [17:48:46]1017 (14) - 77093643461234 [17:48:46]1041 (16) - 0000000000874718 [17:48:46]1040 (4) - 164324 [17:48:46]1012 (4) - 12.07.2024 11:27 [17:48:46]1206 (1) - 0 [17:48:46]OFD Sender: Remove packet 164324 [17:48:46]ProducePacketName [17:48:46]name=ofd_packets/00164324 [17:48:46]NVStorageDeleteData [17:48:46]Write to MH i2c: 01 00 00 18 04 1C [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 F0 0C 1F [17:48:46]RasterBufferAndPrint [17:48:46]line [17:48:46]line [17:48:46]line [17:48:46]line [17:48:46]line [17:48:46]written 0, free lines is 3319 [17:48:46]MH_Cut [17:48:46]Write to MH i2c: D1 01 00 1F 04 01 F5 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: D1 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: D1 01 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: D1 01 00 1F 04 00 F4 [17:48:46]Write to MH i2c: 01 00 00 20 04 24 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:47]OFD Sender: No OFD packet to send [17:48:47]*** Cut start [17:48:47]*** Partial cut [17:48:47]*** CUTSNS_PIN = 1 [17:48:47]*** CUTSNS_PIN = 0 [17:48:47]*** Brake cut motor [17:48:48]Read from MH i2c: 01 [17:48:48]MH_I2C_Read... [17:48:48]*** Stop cut motor [17:48:48]*** Cut end [17:48:48]Read from MH i2c: 01 07 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: 01 07 00 20 04 00 00 00 00 00 FF 0F 39 [17:48:48]process_action close_receipt done [17:48:48]requested_data is exist [17:48:48]produce_requested_data [17:48:48]requested_item fm.sn is exist - process it [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 11 00 00 [17:48:48]Write to MH i2c: E2 08 00 21 04 80 11 00 00 00 00 00 00 9F [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 17 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 17 00 21 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [17:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:48:48]wFMCommunicate OK [17:48:48]requested_item fd.num is exist - process it [17:48:48]SAM_PROTO_GetFieldsCounters [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 13 00 00 [17:48:48]Write to MH i2c: E2 08 00 22 04 80 13 00 00 00 00 00 00 A2 [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 62 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 62 00 22 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [17:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:48]wFMCommunicate OK [17:48:48]SAM_PROTO_GetFieldsCounters done [17:48:48]requested_item shift.num is exist - process it [17:48:48]requested_item shift.opened is exist - process it [17:48:48]req_shift_opened [17:48:48]FM_GetShiftState [17:48:48]SAM_PROTO_GetShiftState [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 13 01 00 [17:48:48]Write to MH i2c: E2 08 00 23 04 80 13 01 00 00 00 00 00 A4 [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 0E 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 0E 00 23 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EE [17:48:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:48:48]wFMCommunicate OK [17:48:48]SAM_PROTO_GetShiftState done [17:48:48]FM_GetShiftState done [17:48:48]req_shift_opened done [17:48:48]requested_item shift.open_date is exist - process it [17:48:48]req_shift_open_date [17:48:48]req_shift_open_date done [17:48:48]produce_requested_data done [17:48:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164324,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:48:48]process_action_free close_receipt [17:48:48]json_value_free [17:48:48]json_value_free done [17:48:48]process_json_proto returns [17:48:48]Send response to host [17:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164324,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:48:48]free response buf [17:48:48]execute_script done [17:48:48]execute_script returns [17:48:48]free content buf [17:48:48]Sock 9.Close socket [17:48:48]Sock 9.Thread stoped [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:50:58]accept exits with 8 [17:50:58]New connection [17:50:58]New thread 3067141476 created [17:50:58]Thread 3066998116 joined [17:50:58]Waiting for new connection... [17:50:58] Sock 8.Parse request [17:50:58]Sock 8.Check first char [17:50:58]Sock 8.First char is OK [17:50:58]request: POST /json_proto HTTP/1.0 [17:50:58]Method: POST [17:50:58]URL: /json_proto [17:50:58]Method is POST - this is cgi request [17:50:58]url: /json_proto [17:50:58]query_string will be loaded in cgi processing [17:50:58]execute_cgi json_proto POST (null) [17:50:58]execute_cgi path=json_proto method=POST [17:50:58]POST find Content-Length [17:50:58]Host: 172.17.56.4:8080 [17:50:58]Content-Length: 677 [17:50:58]Content-Type: application/json [17:50:58] [17:50:58]POST finish read [17:50:58]Found Content-Length = 677 [17:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58]execute_script... [17:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58]POST & json_proto [17:50:58]process_json_proto [17:50:58]json parsed OK: [17:50:58]protocol is kg_v1.0 [17:50:58]action value=close_receipt [17:50:58]process_action close_receipt [17:50:58]cmd_close_receipt [17:50:58]MH_GetDate [17:50:58]Write to MH i2c: F0 00 00 24 04 17 [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: F0 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: F0 09 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: F0 09 00 24 04 00 03 6D 91 66 C9 DC B2 64 42 [17:50:58]GetLastDocTimeStamp 1720806525 [17:50:58]current date 1720806659 [17:50:58]FM_GetShiftState [17:50:58]SAM_PROTO_GetShiftState [17:50:58]wFMCommunicate request_size=4 [17:50:58]MH_SAM_APDU [17:50:58]CAPDU: 80 13 01 00 [17:50:58]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:58]Read from MH i2c: E2 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 0E 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F0 [17:50:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:50:58]wFMCommunicate OK [17:50:58]SAM_PROTO_GetShiftState done [17:50:58]FM_GetShiftState done [17:50:58]opened in 1720744654 [17:50:58]opened+sec_in_day 1720831054 [17:50:58]quantity*price = 50008 [17:50:58]sum+1 = 50009 [17:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 246 12.07.2024 17:50 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164325 ФПД: 264744066595442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T175059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164325&fm=264744066595442&tin=02508201610067®Number=0000000000090829&sum=50000 [17:50:59]StoreToDocumentArchive [17:50:59]shift 445 fd 164325 [17:50:59]save to /storage/0445/doc_00164325 [17:50:59]save last doc name /storage/0445/doc_00164325 to /storage/kkm_last_doc_name [17:50:59]save OK [17:50:59]Clear old archive folders... [17:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:59]tlvbuf is 01E24D70 [17:50:59]SAM_PROTO_ClearQueue [17:50:59]wFMCommunicate request_size=4 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 09 00 00 [17:50:59]Write to MH i2c: E2 08 00 32 04 80 09 00 00 00 00 00 00 A8 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:59]Read from MH i2c: E2 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 03 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [17:50:59]RAPDU: 90 00 [17:50:59]wFMCommunicate OK [17:50:59]SAM_PROTO_ClearQueue done [17:50:59]KKMCreateOFDPacket [17:50:59]OFDProtocolAddRootSTLVToBuf [17:50:59]FM_MakeSignedData [17:50:59]FM_MakeSignedData [17:50:59]SAM_PROTO_SignData [17:50:59]wFMCommunicate request_size=4 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 0D 01 02 [17:50:59]Write to MH i2c: E2 08 00 33 04 80 0D 01 02 00 00 00 00 B0 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:59]Read from MH i2c: E2 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 03 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [17:50:59]RAPDU: 90 00 [17:50:59]wFMCommunicate OK [17:50:59]wFMCommunicate request_size=255 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 03 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 81 02 00 35 04 06 00 F0 [17:50:59]Write to MH i2c: E2 02 01 34 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 03 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 81 02 00 35 04 06 00 F0 00 00 9C [17:50:59]Write i2c OK [17:50:59]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 34 04 00 90 00 AC [17:51:00]RAPDU: 90 00 [17:51:00]wFMCommunicate OK [17:51:00]wFMCommunicate request_size=10 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 0D 02 02 05 C8 88 0B BA 72 [17:51:00]Write to MH i2c: E2 0D 00 35 04 80 0D 02 02 05 00 C8 88 0B BA 72 00 00 44 [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 35 04 00 90 00 AD [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 36 04 80 0D 03 02 00 00 00 00 B5 [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 36 04 00 0F CD 77 B3 D5 E9 BF 76 90 00 AF [17:51:00]RAPDU: 0F CD 77 B3 D5 E9 BF 76 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 37 04 80 11 00 00 00 00 00 00 B5 [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 37 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [17:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:51:00]wFMCommunicate OK [17:51:00]CreateOFDProtocolMessage done [17:51:00]OFDSenderStorePacket 164325 [17:51:00]StoreOFDPacket docnum=164325 [17:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E0 DF 07 01 B0 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 03 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 81 02 00 35 04 06 00 F0 C8 88 0B BA 72 0F CD 77 B3 D5 E9 BF 76 [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/00164325 [17:51:00]NVStorageSaveData ofd_packets/00164325 [17:51:00]File name is /storage/ofd_packets/00164325 [17:51:00]Write 301 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 38 04 3C [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 38 04 00 00 00 00 00 FF 0F 51 [17:51:00]RasterBufferAndPrint [17:51:00]line Счет N : (1)458408 [17:51:00]line ИНН: 02508201610067 [17:51:00]line Контрольно-Кассовый Чек [17:51:00]line ПРОДАЖА [17:51:00]line ТРК (МРК, ГНК) : 22 [17:51:00]line Товар: 2710124130 [17:51:00]line Аи-92-К-5 [17:51:00]line 7.600 * 65.80 [17:51:00]line = 500.08 [17:51:00]line НДС 12% НСП 1% [17:51:00]line > о реализуемом товаре [17:51:00]line ОКРУГЛЕНИЕ: -0.08 [17:51:00]line ИТОГО: 500.00 [17:51:00]line Внесено: 500.00 [17:51:00]line СДАЧА: 0.00 [17:51:00]line НСП 1% : 4.42 [17:51:00]line НДС 12% : 53.11 [17:51:00]line Наличными: 500.00 [17:51:00]line Безнал.: 0.00 [17:51:00]line Место: АЗС № 72 "Партнер Нефть" [17:51:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:51:00]line СНО: Общий режим [17:51:00]line Чек 246 12.07.2024 17:50 [17:51:00]line Смена: 445 ФФД: 1.0 [17:51:00]line ЗНМ: 0300000160 [17:51:00]line РНМ: 0000000000090829 [17:51:00]line Версия ККМ: 001 [17:51:00]line ФМ: 0000000000874718 [17:51:00]line ФД: 164325 [17:51:00]line ФПД: 264744066595442 [17:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T175059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164325&fm=264744066595442&tin=02508201610067®Number=0000000000090829&sum=50000 [17:51:00]OFD Sender: Processing packet 164325 [packets to send 104, broken 103] [17:51:00]ProducePacketName [17:51:00]name=ofd_packets/00164325 [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=10 [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 34 37 31 38 0F 01 00 00 E0 DF 07 01 B0 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 03 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 81 02 00 35 04 06 00 F0 C8 88 0B BA 72 0F CD 77 B3 D5 E9 BF 76 [17:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CB B3 47 00 1A 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 34 37 31 38 10 04 04 00 E5 81 02 00 F4 03 04 00 97 13 91 66 B6 04 01 00 00 45 C1 88 BA 67 C6 40 AC [17:51:00]CommunicateWithHost err = 0 [17:51:00]CheckOFDResponse [17:51:00]1017 (14) - 77093643461234 [17:51:00]1041 (16) - 0000000000874718 [17:51:00]1040 (4) - 164325 [17:51:00]1012 (4) - 12.07.2024 11:29 [17:51:00]1206 (1) - 0 [17:51:00]OFD Sender: Remove packet 164325 [17:51:00]ProducePacketName [17:51:00]name=ofd_packets/00164325 [17:51:00]NVStorageDeleteData [17:51:01]Write to MH i2c: 01 00 00 62 04 66 [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 62 04 00 00 00 00 00 F7 0C 70 [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 3326 [17:51:01]MH_Cut [17:51:01]Write to MH i2c: D1 01 00 69 04 01 3F [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 69 04 00 3E [17:51:01]Write to MH i2c: 01 00 00 6A 04 6E [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]OFD Sender: No OFD packet to send [17:51:01]*** Cut start [17:51:01]*** Partial cut [17:51:01]*** CUTSNS_PIN = 1 [17:51:01]*** CUTSNS_PIN = 0 [17:51:01]*** 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 6A 04 00 00 00 00 00 FF 0F 83 [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 6B 04 80 11 00 00 00 00 00 00 E9 [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 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [17:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 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 6C 04 80 13 00 00 00 00 00 00 EC [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 6C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 6D 04 80 13 01 00 00 00 00 00 EE [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:02]Read from MH i2c: E2 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 0E 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 0E 00 6D 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 38 [17:51:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:51:02]wFMCommunicate OK [17:51:02]SAM_PROTO_GetShiftState done [17:51:02]FM_GetShiftState done [17:51:02]req_shift_opened done [17:51:02]requested_item shift.open_date is exist - process it [17:51:02]req_shift_open_date [17:51:02]req_shift_open_date done [17:51:02]produce_requested_data done [17:51:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164325,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:51:02]process_action_free close_receipt [17:51:02]json_value_free [17:51:02]json_value_free done [17:51:02]process_json_proto returns [17:51:02]Send response to host [17:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164325,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:51:02]free response buf [17:51:02]execute_script done [17:51:02]execute_script returns [17:51:02]free content buf [17:51:02]Sock 8.Close socket [17:51:02]Sock 8.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:30]accept exits with 9 [17:54:30]New connection [17:54:30]New thread 3066998116 created [17:54:30]Thread 3067141476 joined [17:54:30]Waiting for new connection... [17:54:30] Sock 9.Parse request [17:54:30]Sock 9.Check first char [17:54:30]Sock 9.First char is OK [17:54:30]request: POST /json_proto HTTP/1.0 [17:54:30]Method: POST [17:54:30]URL: /json_proto [17:54:30]Method is POST - this is cgi request [17:54:30]url: /json_proto [17:54:30]query_string will be loaded in cgi processing [17:54:30]execute_cgi json_proto POST (null) [17:54:30]execute_cgi path=json_proto method=POST [17:54:30]POST find Content-Length [17:54:30]Host: 172.17.56.4:8080 [17:54:30]Content-Length: 677 [17:54:30]Content-Type: application/json [17:54:30] [17:54:30]POST finish read [17:54:30]Found Content-Length = 677 [17:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.590, "sum" : 302.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 329.00, "total" : 302.00, "payments": [ { "type": 0, "sum" : 302.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:30]execute_script... [17:54:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.590, "sum" : 302.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 329.00, "total" : 302.00, "payments": [ { "type": 0, "sum" : 302.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:30]POST & json_proto [17:54:30]process_json_proto [17:54:30]json parsed OK: [17:54:30]protocol is kg_v1.0 [17:54:30]action value=close_receipt [17:54:30]process_action close_receipt [17:54:30]cmd_close_receipt [17:54:30]MH_GetDate [17:54:30]Write to MH i2c: F0 00 00 6E 04 61 [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: F0 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: F0 09 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: F0 09 00 6E 04 00 D7 6D 91 66 C9 DC B2 64 60 [17:54:30]GetLastDocTimeStamp 1720806659 [17:54:30]current date 1720806871 [17:54:30]FM_GetShiftState [17:54:30]SAM_PROTO_GetShiftState [17:54:30]wFMCommunicate request_size=4 [17:54:30]MH_SAM_APDU [17:54:30]CAPDU: 80 13 01 00 [17:54:30]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0E 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3A [17:54:30]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:54:30]wFMCommunicate OK [17:54:30]SAM_PROTO_GetShiftState done [17:54:30]FM_GetShiftState done [17:54:30]opened in 1720744654 [17:54:30]opened+sec_in_day 1720831054 [17:54:30]quantity*price = 30202 [17:54:30]sum+1 = 30203 [17:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 302.00 Внесено: 329.00 СДАЧА: 27.00 НСП 1% : 2.67 НДС 12% : 32.07 Наличными: 302.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 247 12.07.2024 17:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164326 ФПД: 90555611033921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T175431&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164326&fm=90555611033921&tin=02508201610067®Number=0000000000090829&sum=30200 [17:54:31]StoreToDocumentArchive [17:54:31]shift 445 fd 164326 [17:54:31]save to /storage/0445/doc_00164326 [17:54:31]save last doc name /storage/0445/doc_00164326 to /storage/kkm_last_doc_name [17:54:31]save OK [17:54:31]Clear old archive folders... [17:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:31]tlvbuf is 01E43170 [17:54:31]SAM_PROTO_ClearQueue [17:54:31]wFMCommunicate request_size=4 [17:54:31]MH_SAM_APDU [17:54:31]CAPDU: 80 09 00 00 [17:54:31]Write to MH i2c: E2 08 00 7C 04 80 09 00 00 00 00 00 00 F2 [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:31]Read from MH i2c: E2 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [17:54:31]RAPDU: 90 00 [17:54:31]wFMCommunicate OK [17:54:31]SAM_PROTO_ClearQueue done [17:54:31]KKMCreateOFDPacket [17:54:31]OFDProtocolAddRootSTLVToBuf [17:54:31]FM_MakeSignedData [17:54:31]FM_MakeSignedData [17:54:31]SAM_PROTO_SignData [17:54:31]wFMCommunicate request_size=4 [17:54:31]MH_SAM_APDU [17:54:31]CAPDU: 80 0D 01 02 [17:54:31]Write to MH i2c: E2 08 00 7D 04 80 0D 01 02 00 00 00 00 FA [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:31]Read from MH i2c: E2 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [17:54:31]RAPDU: 90 00 [17:54:31]wFMCommunicate OK [17:54:31]wFMCommunicate request_size=255 [17:54:31]MH_SAM_APDU [17:54:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FA 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D7 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 81 02 00 35 04 06 00 52 [17:54:31]Write to MH i2c: E2 02 01 7E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FA 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D7 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 81 02 00 35 04 06 00 52 00 00 69 [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:31]OFD Sender: No OFD packet to send [17:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:31]Read from MH i2c: E2 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [17:54:31]RAPDU: 90 00 [17:54:31]wFMCommunicate OK [17:54:31]wFMCommunicate request_size=10 [17:54:31]MH_SAM_APDU [17:54:31]CAPDU: 80 0D 02 02 05 5C 1F 07 31 41 [17:54:31]Write to MH i2c: E2 0D 00 7F 04 80 0D 02 02 05 00 5C 1F 07 31 41 00 00 FB [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:31]Read from MH i2c: E2 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [17:54:31]RAPDU: 90 00 [17:54:31]wFMCommunicate OK [17:54:31]wFMCommunicate request_size=4 [17:54:31]MH_SAM_APDU [17:54:31]CAPDU: 80 0D 03 02 [17:54:31]Write to MH i2c: E2 08 00 80 04 80 0D 03 02 00 00 00 00 FF [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:31]Read from MH i2c: E2 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 0B 00 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 0B 00 80 04 00 A5 65 B1 BC 48 89 AA 37 90 00 29 [17:54:31]RAPDU: A5 65 B1 BC 48 89 AA 37 90 00 [17:54:31]wFMCommunicate OK [17:54:31]SAM_PROTO_SignData done [17:54:31]FM_MakeSignedData done [17:54:31]CreateOFDProtocolMessage [17:54:31]wFMCommunicate request_size=4 [17:54:31]MH_SAM_APDU [17:54:31]CAPDU: 80 11 00 00 [17:54:31]Write to MH i2c: E2 08 00 81 04 80 11 00 00 00 00 00 00 FF [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:32]Read from MH i2c: E2 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 17 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 17 00 81 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [17:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:54:32]wFMCommunicate OK [17:54:32]CreateOFDProtocolMessage done [17:54:32]OFDSenderStorePacket 164326 [17:54:32]StoreOFDPacket docnum=164326 [17:54:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3A 47 07 01 AF 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 EE 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FA 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D7 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 81 02 00 35 04 06 00 52 5C 1F 07 31 41 A5 65 B1 BC 48 89 AA 37 [17:54:32]CheckFolder [17:54:32]dirname=/storage/ofd_packets [17:54:32]CheckFolder done [17:54:32]ProducePacketName [17:54:32]name=ofd_packets/00164326 [17:54:32]NVStorageSaveData ofd_packets/00164326 [17:54:32]File name is /storage/ofd_packets/00164326 [17:54:32]Write 301 bytes [17:54:32]NVStorageSaveData done [17:54:32]OFDSenderStorePacket done [17:54:32]KKMCreateOFDPacket done [17:54:32]NVStorageSaveData kkm_last_timestamp [17:54:32]File name is /storage/kkm_last_timestamp [17:54:32]Write 4 bytes [17:54:32]NVStorageSaveData done [17:54:32]ExternCall_PrintAddStr [17:54:32]wPrintStart [17:54:32]Write to MH i2c: 01 00 00 82 04 86 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 07 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 FF 0F 9B [17:54:32]RasterBufferAndPrint [17:54:32]line Счет N : (1)458410 [17:54:32]line ИНН: 02508201610067 [17:54:32]line Контрольно-Кассовый Чек [17:54:32]line ПРОДАЖА [17:54:32]line ТРК (МРК, ГНК) : 22 [17:54:32]line Товар: 2710124130 [17:54:32]line Аи-92-К-5 [17:54:32]line 4.590 * 65.80 [17:54:32]line = 302.02 [17:54:32]line НДС 12% НСП 1% [17:54:32]line > о реализуемом товаре [17:54:32]line ОКРУГЛЕНИЕ: -0.02 [17:54:32]line ИТОГО: 302.00 [17:54:32]line Внесено: 329.00 [17:54:32]line СДАЧА: 27.00 [17:54:32]line НСП 1% : 2.67 [17:54:32]line НДС 12% : 32.07 [17:54:32]line Наличными: 302.00 [17:54:32]line Безнал.: 0.00 [17:54:32]line Место: АЗС № 72 "Партнер Нефть" [17:54:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:54:32]line СНО: Общий режим [17:54:32]line Чек 247 12.07.2024 17:54 [17:54:32]line Смена: 445 ФФД: 1.0 [17:54:32]line ЗНМ: 0300000160 [17:54:32]line РНМ: 0000000000090829 [17:54:32]line Версия ККМ: 001 [17:54:32]line ФМ: 0000000000874718 [17:54:32]line ФД: 164326 [17:54:32]line ФПД: 90555611033921 [17:54:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T175431&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164326&fm=90555611033921&tin=02508201610067®Number=0000000000090829&sum=30200 [17:54:32]OFD Sender: Processing packet 164326 [packets to send 104, broken 103] [17:54:32]ProducePacketName [17:54:32]name=ofd_packets/00164326 [17:54:32]OFD Sender: To server: pG, [17:54:32]CommunicateWithHost lk.salyk.kg:30040 [17:54:32]ConnectInit lk.salyk.kg [17:54:32]written 0, free lines is 4095 [17:54:32]Connected sock=10 [17:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3A 47 07 01 AF 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 EE 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FA 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D7 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 81 02 00 35 04 06 00 52 5C 1F 07 31 41 A5 65 B1 BC 48 89 AA 37 [17:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 53 4B 47 00 14 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 34 37 31 38 10 04 04 00 E6 81 02 00 F4 03 04 00 6A 14 91 66 B6 04 01 00 00 D5 D9 4F 99 EE 82 0C 09 [17:54:32]CommunicateWithHost err = 0 [17:54:32]CheckOFDResponse [17:54:32]1017 (14) - 77093643461234 [17:54:32]1041 (16) - 0000000000874718 [17:54:32]1040 (4) - 164326 [17:54:32]1012 (4) - 12.07.2024 11:32 [17:54:32]1206 (1) - 0 [17:54:32]OFD Sender: Remove packet 164326 [17:54:32]ProducePacketName [17:54:32]name=ofd_packets/00164326 [17:54:32]NVStorageDeleteData [17:54:32]Write to MH i2c: 01 00 00 AC 04 B0 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 07 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 0A 0D CE [17:54:32]RasterBufferAndPrint [17:54:32]line [17:54:32]line [17:54:32]line [17:54:32]line [17:54:32]line [17:54:32]written 0, free lines is 3347 [17:54:32]MH_Cut [17:54:32]Write to MH i2c: D1 01 00 B3 04 01 89 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: D1 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: D1 01 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: D1 01 00 B3 04 00 88 [17:54:32]Write to MH i2c: 01 00 00 B4 04 B8 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:33]OFD Sender: No OFD packet to send [17:54:33]*** Cut start [17:54:33]*** Partial cut [17:54:33]*** CUTSNS_PIN = 1 [17:54:33]*** CUTSNS_PIN = 0 [17:54:33]*** Brake cut motor [17:54:34]Read from MH i2c: 01 [17:54:34]MH_I2C_Read... [17:54:34]*** Stop cut motor [17:54:34]*** Cut end [17:54:34]Read from MH i2c: 01 07 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [17:54:34]process_action close_receipt done [17:54:34]requested_data is exist [17:54:34]produce_requested_data [17:54:34]requested_item fm.sn is exist - process it [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 11 00 00 [17:54:34]Write to MH i2c: E2 08 00 B5 04 80 11 00 00 00 00 00 00 33 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 17 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 17 00 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [17:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:54:34]wFMCommunicate OK [17:54:34]requested_item fd.num is exist - process it [17:54:34]SAM_PROTO_GetFieldsCounters [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 13 00 00 [17:54:34]Write to MH i2c: E2 08 00 B6 04 80 13 00 00 00 00 00 00 36 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 62 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 62 00 B6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [17:54:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:34]wFMCommunicate OK [17:54:34]SAM_PROTO_GetFieldsCounters done [17:54:34]requested_item shift.num is exist - process it [17:54:34]requested_item shift.opened is exist - process it [17:54:34]req_shift_opened [17:54:34]FM_GetShiftState [17:54:34]SAM_PROTO_GetShiftState [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 13 01 00 [17:54:34]Write to MH i2c: E2 08 00 B7 04 80 13 01 00 00 00 00 00 38 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 0E 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 0E 00 B7 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 82 [17:54:34]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:54:34]wFMCommunicate OK [17:54:34]SAM_PROTO_GetShiftState done [17:54:34]FM_GetShiftState done [17:54:34]req_shift_opened done [17:54:34]requested_item shift.open_date is exist - process it [17:54:34]req_shift_open_date [17:54:34]req_shift_open_date done [17:54:34]produce_requested_data done [17:54:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164326,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:54:34]process_action_free close_receipt [17:54:34]json_value_free [17:54:34]json_value_free done [17:54:34]process_json_proto returns [17:54:34]Send response to host [17:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164326,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:54:34]free response buf [17:54:34]execute_script done [17:54:34]execute_script returns [17:54:34]free content buf [17:54:34]Sock 9.Close socket [17:54:34]Sock 9.Thread stoped [17:54:38]OFD Sender: No OFD packet to send [17:54:39]accept exits with 8 [17:54:39]New connection [17:54:39]New thread 3067141476 created [17:54:39]Thread 3066998116 joined [17:54:39]Waiting for new connection... [17:54:39] Sock 8.Parse request [17:54:39]Sock 8.Check first char [17:54:39]Sock 8.First char is OK [17:54:39]request: POST /json_proto HTTP/1.0 [17:54:39]Method: POST [17:54:39]URL: /json_proto [17:54:39]Method is POST - this is cgi request [17:54:39]url: /json_proto [17:54:39]query_string will be loaded in cgi processing [17:54:39]execute_cgi json_proto POST (null) [17:54:39]execute_cgi path=json_proto method=POST [17:54:39]POST find Content-Length [17:54:39]Host: 172.17.56.4:8080 [17:54:39]Content-Length: 682 [17:54:39]Content-Type: application/json [17:54:39] [17:54:39]POST finish read [17:54:39]Found Content-Length = 682 [17:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:39]execute_script... [17:54: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)458409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:39]POST & json_proto [17:54:39]process_json_proto [17:54:39]json parsed OK: [17:54:39]protocol is kg_v1.0 [17:54:39]action value=close_receipt [17:54:39]process_action close_receipt [17:54:39]cmd_close_receipt [17:54:39]MH_GetDate [17:54:39]Write to MH i2c: F0 00 00 B8 04 AB [17:54:39]Write i2c OK [17:54:39]MH_I2C_Read... [17:54:39]Read from MH i2c: F0 [17:54:39]MH_I2C_Read... [17:54:39]Read from MH i2c: F0 09 00 [17:54:39]MH_I2C_Read... [17:54:39]Read from MH i2c: F0 09 00 B8 04 00 E0 6D 91 66 C9 DC B2 64 B3 [17:54:39]GetLastDocTimeStamp 1720806871 [17:54:39]current date 1720806880 [17:54:39]FM_GetShiftState [17:54:39]SAM_PROTO_GetShiftState [17:54:39]wFMCommunicate request_size=4 [17:54:39]MH_SAM_APDU [17:54:39]CAPDU: 80 13 01 00 [17:54:39]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [17:54:39]Write i2c OK [17:54:39]MH_I2C_Read... [17:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:39]Read from MH i2c: E2 [17:54:39]MH_I2C_Read... [17:54:39]Read from MH i2c: E2 0E 00 [17:54:39]MH_I2C_Read... [17:54:39]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 84 [17:54:39]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:54:39]wFMCommunicate OK [17:54:39]SAM_PROTO_GetShiftState done [17:54:39]FM_GetShiftState done [17:54:39]opened in 1720744654 [17:54:39]opened+sec_in_day 1720831054 [17:54:39]quantity*price = 100016 [17:54:39]sum+1 = 100017 [17:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 248 12.07.2024 17:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164327 ФПД: 264110587818349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T175440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164327&fm=264110587818349&tin=02508201610067®Number=0000000000090829&sum=100000 [17:54:41]StoreToDocumentArchive [17:54:41]shift 445 fd 164327 [17:54:41]save to /storage/0445/doc_00164327 [17:54:41]save last doc name /storage/0445/doc_00164327 to /storage/kkm_last_doc_name [17:54:41]save OK [17:54:41]Clear old archive folders... [17:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:41]tlvbuf is 01E26910 [17:54:41]SAM_PROTO_ClearQueue [17:54:41]wFMCommunicate request_size=4 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 09 00 00 [17:54:41]Write to MH i2c: E2 08 00 C6 04 80 09 00 00 00 00 00 00 3C [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [17:54:41]RAPDU: 90 00 [17:54:41]wFMCommunicate OK [17:54:41]SAM_PROTO_ClearQueue done [17:54:41]KKMCreateOFDPacket [17:54:41]OFDProtocolAddRootSTLVToBuf [17:54:41]FM_MakeSignedData [17:54:41]FM_MakeSignedData [17:54:41]SAM_PROTO_SignData [17:54:41]wFMCommunicate request_size=4 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 0D 01 02 [17:54:41]Write to MH i2c: E2 08 00 C7 04 80 0D 01 02 00 00 00 00 44 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [17:54:41]RAPDU: 90 00 [17:54:41]wFMCommunicate OK [17:54:41]wFMCommunicate request_size=255 [17:54:41]MH_SAM_APDU [17:54: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 E0 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 81 02 00 35 04 06 00 F0 [17:54:41]Write to MH i2c: E2 02 01 C8 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 E0 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 81 02 00 35 04 06 00 F0 00 00 B3 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [17:54:41]RAPDU: 90 00 [17:54:41]wFMCommunicate OK [17:54:41]wFMCommunicate request_size=10 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 0D 02 02 05 35 09 C4 B1 6D [17:54:41]Write to MH i2c: E2 0D 00 C9 04 80 0D 02 02 05 00 35 09 C4 B1 6D 00 00 71 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [17:54:41]RAPDU: 90 00 [17:54:41]wFMCommunicate OK [17:54:41]wFMCommunicate request_size=4 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 0D 03 02 [17:54:41]Write to MH i2c: E2 08 00 CA 04 80 0D 03 02 00 00 00 00 49 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 0B 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 0B 00 CA 04 00 A3 91 A1 65 52 4A F0 74 90 00 84 [17:54:41]RAPDU: A3 91 A1 65 52 4A F0 74 90 00 [17:54:41]wFMCommunicate OK [17:54:41]SAM_PROTO_SignData done [17:54:41]FM_MakeSignedData done [17:54:41]CreateOFDProtocolMessage [17:54:41]wFMCommunicate request_size=4 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 11 00 00 [17:54:41]Write to MH i2c: E2 08 00 CB 04 80 11 00 00 00 00 00 00 49 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 17 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 17 00 CB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [17:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:54:41]wFMCommunicate OK [17:54:41]CreateOFDProtocolMessage done [17:54:41]OFDSenderStorePacket 164327 [17:54:41]StoreOFDPacket docnum=164327 [17:54:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6D FB 07 01 F5 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 E0 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 81 02 00 35 04 06 00 F0 35 09 C4 B1 6D A3 91 A1 65 52 4A F0 74 [17:54:41]CheckFolder [17:54:41]dirname=/storage/ofd_packets [17:54:41]CheckFolder done [17:54:41]ProducePacketName [17:54:41]name=ofd_packets/00164327 [17:54:41]NVStorageSaveData ofd_packets/00164327 [17:54:41]File name is /storage/ofd_packets/00164327 [17:54:41]Write 301 bytes [17:54:41]NVStorageSaveData done [17:54:41]OFDSenderStorePacket done [17:54:41]KKMCreateOFDPacket done [17:54:41]NVStorageSaveData kkm_last_timestamp [17:54:41]File name is /storage/kkm_last_timestamp [17:54:41]Write 4 bytes [17:54:41]NVStorageSaveData done [17:54:41]ExternCall_PrintAddStr [17:54:41]wPrintStart [17:54:41]Write to MH i2c: 01 00 00 CC 04 D0 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: 01 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: 01 07 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [17:54:41]RasterBufferAndPrint [17:54:41]line Счет N : (1)458409 [17:54:41]line ИНН: 02508201610067 [17:54:41]line Контрольно-Кассовый Чек [17:54:41]line ПРОДАЖА [17:54:41]line ТРК (МРК, ГНК) : 12 [17:54:41]line Товар: 2710124130 [17:54:41]line Аи-92-К-5 [17:54:41]line 15.200 * 65.80 [17:54:41]line = 1000.16 [17:54:41]line НДС 12% НСП 1% [17:54:41]line > о реализуемом товаре [17:54:41]line ОКРУГЛЕНИЕ: -0.16 [17:54:41]line ИТОГО: 1000.00 [17:54:41]line Внесено: 1000.00 [17:54:41]line СДАЧА: 0.00 [17:54:41]line НСП 1% : 8.85 [17:54:41]line НДС 12% : 106.21 [17:54:41]line Наличными: 1000.00 [17:54:41]line Безнал.: 0.00 [17:54:41]line Место: АЗС № 72 "Партнер Нефть" [17:54:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:54:41]line СНО: Общий режим [17:54:41]line Чек 248 12.07.2024 17:54 [17:54:41]line Смена: 445 ФФД: 1.0 [17:54:41]line ЗНМ: 0300000160 [17:54:41]line РНМ: 0000000000090829 [17:54:41]line Версия ККМ: 001 [17:54:41]line ФМ: 0000000000874718 [17:54:41]line ФД: 164327 [17:54:41]line ФПД: 264110587818349 [17:54:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T175440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164327&fm=264110587818349&tin=02508201610067®Number=0000000000090829&sum=100000 [17:54:41]written 0, free lines is 4095 [17:54:41]OFD Sender: Processing packet 164327 [packets to send 104, broken 103] [17:54:41]ProducePacketName [17:54:41]name=ofd_packets/00164327 [17:54:41]OFD Sender: To server: pG, [17:54:41]CommunicateWithHost lk.salyk.kg:30040 [17:54:41]ConnectInit lk.salyk.kg [17:54:41]Connected sock=10 [17:54:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6D FB 07 01 F5 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 E0 6D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 81 02 00 35 04 06 00 F0 35 09 C4 B1 6D A3 91 A1 65 52 4A F0 74 [17:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D4 6A 47 00 68 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 34 37 31 38 10 04 04 00 E7 81 02 00 F4 03 04 00 74 14 91 66 B6 04 01 00 00 E8 A0 04 55 5E 18 AB 4C [17:54:41]CommunicateWithHost err = 0 [17:54:41]CheckOFDResponse [17:54:41]1017 (14) - 77093643461234 [17:54:41]1041 (16) - 0000000000874718 [17:54:41]1040 (4) - 164327 [17:54:41]1012 (4) - 12.07.2024 11:33 [17:54:41]1206 (1) - 0 [17:54:41]OFD Sender: Remove packet 164327 [17:54:41]ProducePacketName [17:54:41]name=ofd_packets/00164327 [17:54:41]NVStorageDeleteData [17:54:42]Write to MH i2c: 01 00 00 F6 04 FA [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 07 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 07 00 F6 04 00 00 00 00 00 09 0D 17 [17:54:42]RasterBufferAndPrint [17:54:42]line [17:54:42]line [17:54:42]line [17:54:42]line [17:54:42]line [17:54:42]written 0, free lines is 3346 [17:54:42]MH_Cut [17:54:42]Write to MH i2c: D1 01 00 FD 04 01 D3 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: D1 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: D1 01 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: D1 01 00 FD 04 00 D2 [17:54:42]Write to MH i2c: 01 00 00 FE 04 02 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]OFD Sender: No OFD packet to send [17:54:42]*** Cut start [17:54:42]*** Partial cut [17:54:42]*** CUTSNS_PIN = 1 [17:54:42]*** CUTSNS_PIN = 0 [17:54:42]*** Brake cut motor [17:54:43]Read from MH i2c: 01 [17:54:43]MH_I2C_Read... [17:54:43]*** Stop cut motor [17:54:43]*** Cut end [17:54:43]Read from MH i2c: 01 07 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: 01 07 00 FE 04 00 00 00 00 00 FF 0F 17 [17:54:43]process_action close_receipt done [17:54:43]requested_data is exist [17:54:43]produce_requested_data [17:54:43]requested_item fm.sn is exist - process it [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 11 00 00 [17:54:43]Write to MH i2c: E2 08 00 FF 04 80 11 00 00 00 00 00 00 7D [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 17 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 17 00 FF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [17:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:54:43]wFMCommunicate OK [17:54:43]requested_item fd.num is exist - process it [17:54:43]SAM_PROTO_GetFieldsCounters [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 13 00 00 [17:54:43]Write to MH i2c: E2 08 00 00 05 80 13 00 00 00 00 00 00 81 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 62 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 62 00 00 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [17:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:43]wFMCommunicate OK [17:54:43]SAM_PROTO_GetFieldsCounters done [17:54:43]requested_item shift.num is exist - process it [17:54:43]requested_item shift.opened is exist - process it [17:54:43]req_shift_opened [17:54:43]FM_GetShiftState [17:54:43]SAM_PROTO_GetShiftState [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 13 01 00 [17:54:43]Write to MH i2c: E2 08 00 01 05 80 13 01 00 00 00 00 00 83 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 0E 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 0E 00 01 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CD [17:54:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:54:43]wFMCommunicate OK [17:54:43]SAM_PROTO_GetShiftState done [17:54:43]FM_GetShiftState done [17:54:43]req_shift_opened done [17:54:43]requested_item shift.open_date is exist - process it [17:54:43]req_shift_open_date [17:54:43]req_shift_open_date done [17:54:43]produce_requested_data done [17:54:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164327,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:54:43]process_action_free close_receipt [17:54:43]json_value_free [17:54:43]json_value_free done [17:54:43]process_json_proto returns [17:54:43]Send response to host [17:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164327,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:54:43]free response buf [17:54:43]execute_script done [17:54:43]execute_script returns [17:54:43]free content buf [17:54:43]Sock 8.Close socket [17:54:43]Sock 8.Thread stoped [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:28]accept exits with 9 [17:58:28]New connection [17:58:28]New thread 3066998116 created [17:58:28]Thread 3067141476 joined [17:58:28]Waiting for new connection... [17:58:28] Sock 9.Parse request [17:58:28]Sock 9.Check first char [17:58:28]Sock 9.First char is OK [17:58:28]request: POST /json_proto HTTP/1.0 [17:58:28]Method: POST [17:58:28]URL: /json_proto [17:58:28]Method is POST - this is cgi request [17:58:28]url: /json_proto [17:58:28]query_string will be loaded in cgi processing [17:58:28]execute_cgi json_proto POST (null) [17:58:28]execute_cgi path=json_proto method=POST [17:58:28]POST find Content-Length [17:58:28]Host: 172.17.56.4:8080 [17:58:28]Content-Length: 678 [17:58:28]Content-Type: application/json [17:58:28] [17:58:28]POST finish read [17:58:28]Found Content-Length = 678 [17:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:28]execute_script... [17:58:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:28]POST & json_proto [17:58:28]process_json_proto [17:58:28]json parsed OK: [17:58:28]protocol is kg_v1.0 [17:58:28]action value=close_receipt [17:58:28]process_action close_receipt [17:58:28]cmd_close_receipt [17:58:28]MH_GetDate [17:58:28]Write to MH i2c: F0 00 00 02 05 F6 [17:58:28]Write i2c OK [17:58:28]MH_I2C_Read... [17:58:28]Read from MH i2c: F0 [17:58:28]MH_I2C_Read... [17:58:28]Read from MH i2c: F0 09 00 [17:58:28]MH_I2C_Read... [17:58:28]Read from MH i2c: F0 09 00 02 05 00 C4 6E 91 66 C9 DC B2 64 E3 [17:58:28]GetLastDocTimeStamp 1720806880 [17:58:28]current date 1720807108 [17:58:28]FM_GetShiftState [17:58:28]SAM_PROTO_GetShiftState [17:58:28]wFMCommunicate request_size=4 [17:58:28]MH_SAM_APDU [17:58:28]CAPDU: 80 13 01 00 [17:58:28]Write to MH i2c: E2 08 00 03 05 80 13 01 00 00 00 00 00 85 [17:58:28]Write i2c OK [17:58:28]MH_I2C_Read... [17:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:28]Read from MH i2c: E2 [17:58:28]MH_I2C_Read... [17:58:28]Read from MH i2c: E2 0E 00 [17:58:28]MH_I2C_Read... [17:58:28]Read from MH i2c: E2 0E 00 03 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CF [17:58:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:58:28]wFMCommunicate OK [17:58:28]SAM_PROTO_GetShiftState done [17:58:28]FM_GetShiftState done [17:58:28]opened in 1720744654 [17:58:28]opened+sec_in_day 1720831054 [17:58:28]quantity*price = 66063 [17:58:28]sum+1 = 66064 [17:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 249 12.07.2024 17:58 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164328 ФПД: 71756123853285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T175828&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164328&fm=71756123853285&tin=02508201610067®Number=0000000000090829&sum=66000 [17:58:29]StoreToDocumentArchive [17:58:29]shift 445 fd 164328 [17:58:29]save to /storage/0445/doc_00164328 [17:58:29]save last doc name /storage/0445/doc_00164328 to /storage/kkm_last_doc_name [17:58:29]save OK [17:58:29]Clear old archive folders... [17:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:29]tlvbuf is 01E3E0E0 [17:58:29]SAM_PROTO_ClearQueue [17:58:29]wFMCommunicate request_size=4 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 09 00 00 [17:58:29]Write to MH i2c: E2 08 00 10 05 80 09 00 00 00 00 00 00 87 [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 03 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [17:58:29]RAPDU: 90 00 [17:58:29]wFMCommunicate OK [17:58:29]SAM_PROTO_ClearQueue done [17:58:29]KKMCreateOFDPacket [17:58:29]OFDProtocolAddRootSTLVToBuf [17:58:29]FM_MakeSignedData [17:58:29]FM_MakeSignedData [17:58:29]SAM_PROTO_SignData [17:58:29]wFMCommunicate request_size=4 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 0D 01 02 [17:58:29]Write to MH i2c: E2 08 00 11 05 80 0D 01 02 00 00 00 00 8F [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 03 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [17:58:29]RAPDU: 90 00 [17:58:29]wFMCommunicate OK [17:58:29]wFMCommunicate request_size=255 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 C4 6E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 81 02 00 35 04 06 00 41 [17:58:29]Write to MH i2c: E2 02 01 12 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 C4 6E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 81 02 00 35 04 06 00 41 00 00 DA [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 03 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [17:58:29]RAPDU: 90 00 [17:58:29]wFMCommunicate OK [17:58:29]wFMCommunicate request_size=10 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 0D 02 02 05 43 06 45 D1 E5 [17:58:29]Write to MH i2c: E2 0D 00 13 05 80 0D 02 02 05 00 43 06 45 D1 E5 00 00 E0 [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 03 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [17:58:29]RAPDU: 90 00 [17:58:29]wFMCommunicate OK [17:58:29]wFMCommunicate request_size=4 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 0D 03 02 [17:58:29]Write to MH i2c: E2 08 00 14 05 80 0D 03 02 00 00 00 00 94 [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 0B 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 0B 00 14 05 00 5B 49 DC E3 34 DE B2 30 90 00 EC [17:58:29]RAPDU: 5B 49 DC E3 34 DE B2 30 90 00 [17:58:29]wFMCommunicate OK [17:58:29]SAM_PROTO_SignData done [17:58:29]FM_MakeSignedData done [17:58:29]CreateOFDProtocolMessage [17:58:29]wFMCommunicate request_size=4 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 11 00 00 [17:58:29]Write to MH i2c: E2 08 00 15 05 80 11 00 00 00 00 00 00 94 [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 17 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 17 00 15 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EA [17:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:58:29]wFMCommunicate OK [17:58:29]CreateOFDProtocolMessage done [17:58:29]OFDSenderStorePacket 164328 [17:58:29]StoreOFDPacket docnum=164328 [17:58:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C2 C8 07 01 E7 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 C4 6E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 81 02 00 35 04 06 00 41 43 06 45 D1 E5 5B 49 DC E3 34 DE B2 30 [17:58:29]CheckFolder [17:58:29]dirname=/storage/ofd_packets [17:58:29]CheckFolder done [17:58:29]ProducePacketName [17:58:29]name=ofd_packets/00164328 [17:58:29]NVStorageSaveData ofd_packets/00164328 [17:58:29]File name is /storage/ofd_packets/00164328 [17:58:29]Write 301 bytes [17:58:29]NVStorageSaveData done [17:58:29]OFDSenderStorePacket done [17:58:29]KKMCreateOFDPacket done [17:58:29]NVStorageSaveData kkm_last_timestamp [17:58:29]File name is /storage/kkm_last_timestamp [17:58:29]Write 4 bytes [17:58:29]NVStorageSaveData done [17:58:29]ExternCall_PrintAddStr [17:58:29]wPrintStart [17:58:29]Write to MH i2c: 01 00 00 16 05 1B [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: 01 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: 01 07 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: 01 07 00 16 05 00 00 00 00 00 FF 0F 30 [17:58:29]RasterBufferAndPrint [17:58:29]line Счет N : (1)458411 [17:58:29]line ИНН: 02508201610067 [17:58:29]line Контрольно-Кассовый Чек [17:58:29]line ПРОДАЖА [17:58:29]line ТРК (МРК, ГНК) : 12 [17:58:29]line Товар: 2710124130 [17:58:29]line Аи-92-К-5 [17:58:29]line 10.040 * 65.80 [17:58:29]line = 660.63 [17:58:29]line НДС 12% НСП 1% [17:58:29]line > о реализуемом товаре [17:58:29]line ОКРУГЛЕНИЕ: -0.63 [17:58:29]line ИТОГО: 660.00 [17:58:29]line Внесено: 660.00 [17:58:29]line СДАЧА: 0.00 [17:58:29]line НСП 1% : 5.85 [17:58:29]line НДС 12% : 70.15 [17:58:29]line Наличными: 660.00 [17:58:29]line Безнал.: 0.00 [17:58:29]line Место: АЗС № 72 "Партнер Нефть" [17:58:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:58:29]line СНО: Общий режим [17:58:29]line Чек 249 12.07.2024 17:58 [17:58:29]line Смена: 445 ФФД: 1.0 [17:58:29]line ЗНМ: 0300000160 [17:58:29]line РНМ: 0000000000090829 [17:58:29]line Версия ККМ: 001 [17:58:29]line ФМ: 0000000000874718 [17:58:29]line ФД: 164328 [17:58:29]line ФПД: 71756123853285 [17:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T175828&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164328&fm=71756123853285&tin=02508201610067®Number=0000000000090829&sum=66000 [17:58:30]OFD Sender: Processing packet 164328 [packets to send 104, broken 103] [17:58:30]ProducePacketName [17:58:30]name=ofd_packets/00164328 [17:58:30]OFD Sender: To server: pG, [17:58:30]CommunicateWithHost lk.salyk.kg:30040 [17:58:30]ConnectInit lk.salyk.kg [17:58:30]written 0, free lines is 4095 [17:58:30]Connected sock=10 [17:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C2 C8 07 01 E7 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 C4 6E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 81 02 00 35 04 06 00 41 43 06 45 D1 E5 5B 49 DC E3 34 DE B2 30 [17:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BB 39 47 00 E6 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 34 37 31 38 10 04 04 00 E8 81 02 00 F4 03 04 00 58 15 91 66 B6 04 01 00 00 E1 9D 7E FB 1E 90 A3 05 [17:58:30]CommunicateWithHost err = 0 [17:58:30]CheckOFDResponse [17:58:30]1017 (14) - 77093643461234 [17:58:30]1041 (16) - 0000000000874718 [17:58:30]1040 (4) - 164328 [17:58:30]1012 (4) - 12.07.2024 11:36 [17:58:30]1206 (1) - 0 [17:58:30]OFD Sender: Remove packet 164328 [17:58:30]ProducePacketName [17:58:30]name=ofd_packets/00164328 [17:58:30]NVStorageDeleteData [17:58:30]Write to MH i2c: 01 00 00 40 05 45 [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: 01 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: 01 07 00 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: 01 07 00 40 05 00 00 00 00 00 FE 0C 56 [17:58:30]RasterBufferAndPrint [17:58:30]line [17:58:30]line [17:58:30]line [17:58:30]line [17:58:30]line [17:58:30]written 0, free lines is 3335 [17:58:30]MH_Cut [17:58:30]Write to MH i2c: D1 01 00 47 05 01 1E [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: D1 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: D1 01 00 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: D1 01 00 47 05 00 1D [17:58:30]Write to MH i2c: 01 00 00 48 05 4D [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]OFD Sender: No OFD packet to send [17:58:31]*** Cut start [17:58:31]*** Partial cut [17:58:31]*** CUTSNS_PIN = 1 [17:58:31]*** CUTSNS_PIN = 0 [17:58:31]*** Brake cut motor [17:58:31]Read from MH i2c: 01 [17:58:31]MH_I2C_Read... [17:58:31]*** Stop cut motor [17:58:31]*** Cut end [17:58:31]Read from MH i2c: 01 07 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: 01 07 00 48 05 00 00 00 00 00 FF 0F 62 [17:58:31]process_action close_receipt done [17:58:31]requested_data is exist [17:58:31]produce_requested_data [17:58:31]requested_item fm.sn is exist - process it [17:58:31]wFMCommunicate request_size=4 [17:58:31]MH_SAM_APDU [17:58:31]CAPDU: 80 11 00 00 [17:58:31]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:31]Read from MH i2c: E2 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 17 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [17:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:58:31]wFMCommunicate OK [17:58:31]requested_item fd.num is exist - process it [17:58:31]SAM_PROTO_GetFieldsCounters [17:58:31]wFMCommunicate request_size=4 [17:58:31]MH_SAM_APDU [17:58:31]CAPDU: 80 13 00 00 [17:58:31]Write to MH i2c: E2 08 00 4A 05 80 13 00 00 00 00 00 00 CB [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 62 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 62 00 4A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:32]wFMCommunicate OK [17:58:32]SAM_PROTO_GetFieldsCounters done [17:58:32]requested_item shift.num is exist - process it [17:58:32]requested_item shift.opened is exist - process it [17:58:32]req_shift_opened [17:58:32]FM_GetShiftState [17:58:32]SAM_PROTO_GetShiftState [17:58:32]wFMCommunicate request_size=4 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 13 01 00 [17:58:32]Write to MH i2c: E2 08 00 4B 05 80 13 01 00 00 00 00 00 CD [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:32]Read from MH i2c: E2 0E 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 0E 00 4B 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 17 [17:58:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [17:58:32]wFMCommunicate OK [17:58:32]SAM_PROTO_GetShiftState done [17:58:32]FM_GetShiftState done [17:58:32]req_shift_opened done [17:58:32]requested_item shift.open_date is exist - process it [17:58:32]req_shift_open_date [17:58:32]req_shift_open_date done [17:58:32]produce_requested_data done [17:58:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164328,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [17:58:32]process_action_free close_receipt [17:58:32]json_value_free [17:58:32]json_value_free done [17:58:32]process_json_proto returns [17:58:32]Send response to host [17:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164328,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [17:58:32]free response buf [17:58:32]execute_script done [17:58:32]execute_script returns [17:58:32]free content buf [17:58:32]Sock 9.Close socket [17:58:32]Sock 9.Thread stoped [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:01]accept exits with 8 [18:01:01]New connection [18:01:01]New thread 3067141476 created [18:01:01]Thread 3066998116 joined [18:01:01]Waiting for new connection... [18:01:01] Sock 8.Parse request [18:01:01]Sock 8.Check first char [18:01:01]Sock 8.First char is OK [18:01:01]request: POST /json_proto HTTP/1.0 [18:01:01]Method: POST [18:01:01]URL: /json_proto [18:01:01]Method is POST - this is cgi request [18:01:01]url: /json_proto [18:01:01]query_string will be loaded in cgi processing [18:01:01]execute_cgi json_proto POST (null) [18:01:01]execute_cgi path=json_proto method=POST [18:01:01]POST find Content-Length [18:01:01]Host: 172.17.56.4:8080 [18:01:01]Content-Length: 682 [18:01:01]Content-Type: application/json [18:01:01] [18:01:01]POST finish read [18:01:01]Found Content-Length = 682 [18:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:01:01]execute_script... [18:01: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)458412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:01:01]POST & json_proto [18:01:01]process_json_proto [18:01:01]json parsed OK: [18:01:01]protocol is kg_v1.0 [18:01:01]action value=close_receipt [18:01:01]process_action close_receipt [18:01:01]cmd_close_receipt [18:01:01]MH_GetDate [18:01:01]Write to MH i2c: F0 00 00 4C 05 40 [18:01:01]Write i2c OK [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: F0 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: F0 09 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: F0 09 00 4C 05 00 5E 6F 91 66 C9 DC B2 64 C8 [18:01:01]GetLastDocTimeStamp 1720807108 [18:01:01]current date 1720807262 [18:01:01]FM_GetShiftState [18:01:01]SAM_PROTO_GetShiftState [18:01:01]wFMCommunicate request_size=4 [18:01:01]MH_SAM_APDU [18:01:01]CAPDU: 80 13 01 00 [18:01:01]Write to MH i2c: E2 08 00 4D 05 80 13 01 00 00 00 00 00 CF [18:01:01]Write i2c OK [18:01:01]MH_I2C_Read... [18:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:01]Read from MH i2c: E2 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: E2 0E 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: E2 0E 00 4D 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 19 [18:01:01]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:01:01]wFMCommunicate OK [18:01:01]SAM_PROTO_GetShiftState done [18:01:01]FM_GetShiftState done [18:01:01]opened in 1720744654 [18:01:01]opened+sec_in_day 1720831054 [18:01:01]quantity*price = 100016 [18:01:01]sum+1 = 100017 [18:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 250 12.07.2024 18:01 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164329 ФПД: 61583710153525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T180102&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164329&fm=61583710153525&tin=02508201610067®Number=0000000000090829&sum=100000 [18:01:02]StoreToDocumentArchive [18:01:02]shift 445 fd 164329 [18:01:02]save to /storage/0445/doc_00164329 [18:01:02]save last doc name /storage/0445/doc_00164329 to /storage/kkm_last_doc_name [18:01:02]save OK [18:01:02]Clear old archive folders... [18:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:02]tlvbuf is 01E20D80 [18:01:02]SAM_PROTO_ClearQueue [18:01:02]wFMCommunicate request_size=4 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 09 00 00 [18:01:02]Write to MH i2c: E2 08 00 5A 05 80 09 00 00 00 00 00 00 D1 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [18:01:02]RAPDU: 90 00 [18:01:02]wFMCommunicate OK [18:01:02]SAM_PROTO_ClearQueue done [18:01:02]KKMCreateOFDPacket [18:01:02]OFDProtocolAddRootSTLVToBuf [18:01:02]FM_MakeSignedData [18:01:02]FM_MakeSignedData [18:01:02]SAM_PROTO_SignData [18:01:02]wFMCommunicate request_size=4 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 0D 01 02 [18:01:02]Write to MH i2c: E2 08 00 5B 05 80 0D 01 02 00 00 00 00 D9 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [18:01:02]RAPDU: 90 00 [18:01:02]wFMCommunicate OK [18:01:02]wFMCommunicate request_size=255 [18:01:02]MH_SAM_APDU [18:01: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 5E 6F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 81 02 00 35 04 06 00 38 [18:01:02]Write to MH i2c: E2 02 01 5C 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 5E 6F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 81 02 00 35 04 06 00 38 00 00 14 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [18:01:02]RAPDU: 90 00 [18:01:02]wFMCommunicate OK [18:01:02]wFMCommunicate request_size=10 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 0D 02 02 05 02 93 2A EB 35 [18:01:02]Write to MH i2c: E2 0D 00 5D 05 80 0D 02 02 05 00 02 93 2A EB 35 00 00 C5 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [18:01:02]RAPDU: 90 00 [18:01:02]wFMCommunicate OK [18:01:02]wFMCommunicate request_size=4 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 0D 03 02 [18:01:02]Write to MH i2c: E2 08 00 5E 05 80 0D 03 02 00 00 00 00 DE [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:03]Read from MH i2c: E2 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: E2 0B 00 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: E2 0B 00 5E 05 00 E2 41 75 22 3B A8 6C 1D 90 00 05 [18:01:03]RAPDU: E2 41 75 22 3B A8 6C 1D 90 00 [18:01:03]wFMCommunicate OK [18:01:03]SAM_PROTO_SignData done [18:01:03]FM_MakeSignedData done [18:01:03]CreateOFDProtocolMessage [18:01:03]wFMCommunicate request_size=4 [18:01:03]MH_SAM_APDU [18:01:03]CAPDU: 80 11 00 00 [18:01:03]Write to MH i2c: E2 08 00 5F 05 80 11 00 00 00 00 00 00 DE [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:03]Read from MH i2c: E2 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: E2 17 00 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: E2 17 00 5F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [18:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:01:03]wFMCommunicate OK [18:01:03]CreateOFDProtocolMessage done [18:01:03]OFDSenderStorePacket 164329 [18:01:03]StoreOFDPacket docnum=164329 [18:01:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 5B 07 01 36 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 5E 6F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 81 02 00 35 04 06 00 38 02 93 2A EB 35 E2 41 75 22 3B A8 6C 1D [18:01:03]CheckFolder [18:01:03]dirname=/storage/ofd_packets [18:01:03]CheckFolder done [18:01:03]ProducePacketName [18:01:03]name=ofd_packets/00164329 [18:01:03]NVStorageSaveData ofd_packets/00164329 [18:01:03]File name is /storage/ofd_packets/00164329 [18:01:03]Write 301 bytes [18:01:03]NVStorageSaveData done [18:01:03]OFDSenderStorePacket done [18:01:03]KKMCreateOFDPacket done [18:01:03]NVStorageSaveData kkm_last_timestamp [18:01:03]File name is /storage/kkm_last_timestamp [18:01:03]Write 4 bytes [18:01:03]NVStorageSaveData done [18:01:03]ExternCall_PrintAddStr [18:01:03]wPrintStart [18:01:03]Write to MH i2c: 01 00 00 60 05 65 [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: 01 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: 01 07 00 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: 01 07 00 60 05 00 00 00 00 00 FF 0F 7A [18:01:03]RasterBufferAndPrint [18:01:03]line Счет N : (1)458412 [18:01:03]line ИНН: 02508201610067 [18:01:03]line Контрольно-Кассовый Чек [18:01:03]line ПРОДАЖА [18:01:03]line ТРК (МРК, ГНК) : 22 [18:01:03]line Товар: 2710124130 [18:01:03]line Аи-92-К-5 [18:01:03]line 15.200 * 65.80 [18:01:03]line = 1000.16 [18:01:03]line НДС 12% НСП 1% [18:01:03]line > о реализуемом товаре [18:01:03]line ОКРУГЛЕНИЕ: -0.16 [18:01:03]line ИТОГО: 1000.00 [18:01:03]line Внесено: 1000.00 [18:01:03]line СДАЧА: 0.00 [18:01:03]line НСП 1% : 8.85 [18:01:03]line НДС 12% : 106.21 [18:01:03]line Наличными: 1000.00 [18:01:03]line Безнал.: 0.00 [18:01:03]line Место: АЗС № 72 "Партнер Нефть" [18:01:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:01:03]line СНО: Общий режим [18:01:03]line Чек 250 12.07.2024 18:01 [18:01:03]line Смена: 445 ФФД: 1.0 [18:01:03]line ЗНМ: 0300000160 [18:01:03]line РНМ: 0000000000090829 [18:01:03]line Версия ККМ: 001 [18:01:03]line ФМ: 0000000000874718 [18:01:03]line ФД: 164329 [18:01:03]line ФПД: 61583710153525 [18:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T180102&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164329&fm=61583710153525&tin=02508201610067®Number=0000000000090829&sum=100000 [18:01:03]written 0, free lines is 4095 [18:01:03]OFD Sender: Processing packet 164329 [packets to send 104, broken 103] [18:01:03]ProducePacketName [18:01:03]name=ofd_packets/00164329 [18:01:03]OFD Sender: To server: pG, [18:01:03]CommunicateWithHost lk.salyk.kg:30040 [18:01:03]ConnectInit lk.salyk.kg [18:01:03]Connected sock=10 [18:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 5B 07 01 36 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 5E 6F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 81 02 00 35 04 06 00 38 02 93 2A EB 35 E2 41 75 22 3B A8 6C 1D [18:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 99 14 47 00 CE 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 34 37 31 38 10 04 04 00 E9 81 02 00 F4 03 04 00 F1 15 91 66 B6 04 01 00 00 10 F9 63 63 E1 59 37 E7 [18:01:03]CommunicateWithHost err = 0 [18:01:03]CheckOFDResponse [18:01:03]1017 (14) - 77093643461234 [18:01:03]1041 (16) - 0000000000874718 [18:01:03]1040 (4) - 164329 [18:01:03]1012 (4) - 12.07.2024 11:39 [18:01:03]1206 (1) - 0 [18:01:03]OFD Sender: Remove packet 164329 [18:01:03]ProducePacketName [18:01:03]name=ofd_packets/00164329 [18:01:03]NVStorageDeleteData [18:01:03]Write to MH i2c: 01 00 00 8A 05 8F [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: 01 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: 01 07 00 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: 01 07 00 8A 05 00 00 00 00 00 08 0D AB [18:01:03]RasterBufferAndPrint [18:01:03]line [18:01:03]line [18:01:03]line [18:01:03]line [18:01:03]line [18:01:03]written 0, free lines is 3345 [18:01:03]MH_Cut [18:01:03]Write to MH i2c: D1 01 00 91 05 01 68 [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: D1 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: D1 01 00 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: D1 01 00 91 05 00 67 [18:01:03]Write to MH i2c: 01 00 00 92 05 97 [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:04]OFD Sender: No OFD packet to send [18:01:04]*** Cut start [18:01:04]*** Partial cut [18:01:04]*** CUTSNS_PIN = 1 [18:01:04]*** CUTSNS_PIN = 0 [18:01:04]*** Brake cut motor [18:01:05]Read from MH i2c: 01 [18:01:05]MH_I2C_Read... [18:01:05]*** Stop cut motor [18:01:05]*** Cut end [18:01:05]Read from MH i2c: 01 07 00 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 FF 0F AC [18:01:05]process_action close_receipt done [18:01:05]requested_data is exist [18:01:05]produce_requested_data [18:01:05]requested_item fm.sn is exist - process it [18:01:05]wFMCommunicate request_size=4 [18:01:05]MH_SAM_APDU [18:01:05]CAPDU: 80 11 00 00 [18:01:05]Write to MH i2c: E2 08 00 93 05 80 11 00 00 00 00 00 00 12 [18:01:05]Write i2c OK [18:01:05]MH_I2C_Read... [18:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:05]Read from MH i2c: E2 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: E2 17 00 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: E2 17 00 93 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [18:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:01:05]wFMCommunicate OK [18:01:05]requested_item fd.num is exist - process it [18:01:05]SAM_PROTO_GetFieldsCounters [18:01:05]wFMCommunicate request_size=4 [18:01:05]MH_SAM_APDU [18:01:05]CAPDU: 80 13 00 00 [18:01:05]Write to MH i2c: E2 08 00 94 05 80 13 00 00 00 00 00 00 15 [18:01:05]Write i2c OK [18:01:05]MH_I2C_Read... [18:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:05]Read from MH i2c: E2 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: E2 62 00 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: E2 62 00 94 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [18:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:05]wFMCommunicate OK [18:01:05]SAM_PROTO_GetFieldsCounters done [18:01:05]requested_item shift.num is exist - process it [18:01:05]requested_item shift.opened is exist - process it [18:01:05]req_shift_opened [18:01:05]FM_GetShiftState [18:01:05]SAM_PROTO_GetShiftState [18:01:05]wFMCommunicate request_size=4 [18:01:05]MH_SAM_APDU [18:01:05]CAPDU: 80 13 01 00 [18:01:05]Write to MH i2c: E2 08 00 95 05 80 13 01 00 00 00 00 00 17 [18:01:05]Write i2c OK [18:01:05]MH_I2C_Read... [18:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:05]Read from MH i2c: E2 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: E2 0E 00 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: E2 0E 00 95 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 61 [18:01:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:01:05]wFMCommunicate OK [18:01:05]SAM_PROTO_GetShiftState done [18:01:05]FM_GetShiftState done [18:01:05]req_shift_opened done [18:01:05]requested_item shift.open_date is exist - process it [18:01:05]req_shift_open_date [18:01:05]req_shift_open_date done [18:01:05]produce_requested_data done [18:01:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164329,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:01:05]process_action_free close_receipt [18:01:05]json_value_free [18:01:05]json_value_free done [18:01:05]process_json_proto returns [18:01:05]Send response to host [18:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164329,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:01:05]free response buf [18:01:05]execute_script done [18:01:05]execute_script returns [18:01:05]free content buf [18:01:05]Sock 8.Close socket [18:01:05]Sock 8.Thread stoped [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:18]accept exits with 9 [18:05:18]New connection [18:05:18]New thread 3066998116 created [18:05:18]Thread 3067141476 joined [18:05:18]Waiting for new connection... [18:05:18] Sock 9.Parse request [18:05:18]Sock 9.Check first char [18:05:18]Sock 9.First char is OK [18:05:18]request: POST /json_proto HTTP/1.0 [18:05:18]Method: POST [18:05:18]URL: /json_proto [18:05:18]Method is POST - this is cgi request [18:05:18]url: /json_proto [18:05:18]query_string will be loaded in cgi processing [18:05:18]execute_cgi json_proto POST (null) [18:05:18]execute_cgi path=json_proto method=POST [18:05:18]POST find Content-Length [18:05:18]Host: 172.17.56.4:8080 [18:05:18]Content-Length: 677 [18:05:18]Content-Type: application/json [18:05:18] [18:05:18]POST finish read [18:05:18]Found Content-Length = 677 [18:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:18]execute_script... [18:05: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)458413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:18]POST & json_proto [18:05:18]process_json_proto [18:05:18]json parsed OK: [18:05:18]protocol is kg_v1.0 [18:05:18]action value=close_receipt [18:05:18]process_action close_receipt [18:05:18]cmd_close_receipt [18:05:18]MH_GetDate [18:05:18]Write to MH i2c: F0 00 00 96 05 8A [18:05:18]Write i2c OK [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: F0 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: F0 09 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: F0 09 00 96 05 00 5F 70 91 66 C9 DC B2 64 14 [18:05:18]GetLastDocTimeStamp 1720807262 [18:05:18]current date 1720807519 [18:05:18]FM_GetShiftState [18:05:18]SAM_PROTO_GetShiftState [18:05:18]wFMCommunicate request_size=4 [18:05:18]MH_SAM_APDU [18:05:18]CAPDU: 80 13 01 00 [18:05:18]Write to MH i2c: E2 08 00 97 05 80 13 01 00 00 00 00 00 19 [18:05:18]Write i2c OK [18:05:18]MH_I2C_Read... [18:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:18]Read from MH i2c: E2 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 0E 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 0E 00 97 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 63 [18:05:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:05:18]wFMCommunicate OK [18:05:18]SAM_PROTO_GetShiftState done [18:05:18]FM_GetShiftState done [18:05:18]opened in 1720744654 [18:05:18]opened+sec_in_day 1720831054 [18:05:18]quantity*price = 20003 [18:05:18]sum+1 = 20004 [18:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 251 12.07.2024 18:05 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164330 ФПД: 3989101465033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T180519&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164330&fm=3989101465033&tin=02508201610067®Number=0000000000090829&sum=20000 [18:05:19]StoreToDocumentArchive [18:05:19]shift 445 fd 164330 [18:05:19]save to /storage/0445/doc_00164330 [18:05:19]save last doc name /storage/0445/doc_00164330 to /storage/kkm_last_doc_name [18:05:19]save OK [18:05:19]Clear old archive folders... [18:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:19]tlvbuf is 01E43020 [18:05:19]SAM_PROTO_ClearQueue [18:05:19]wFMCommunicate request_size=4 [18:05:19]MH_SAM_APDU [18:05:19]CAPDU: 80 09 00 00 [18:05:19]Write to MH i2c: E2 08 00 A4 05 80 09 00 00 00 00 00 00 1B [18:05:19]Write i2c OK [18:05:19]MH_I2C_Read... [18:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:19]Read from MH i2c: E2 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: E2 03 00 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [18:05:19]RAPDU: 90 00 [18:05:19]wFMCommunicate OK [18:05:19]SAM_PROTO_ClearQueue done [18:05:19]KKMCreateOFDPacket [18:05:19]OFDProtocolAddRootSTLVToBuf [18:05:19]FM_MakeSignedData [18:05:19]FM_MakeSignedData [18:05:19]SAM_PROTO_SignData [18:05:19]wFMCommunicate request_size=4 [18:05:19]MH_SAM_APDU [18:05:19]CAPDU: 80 0D 01 02 [18:05:19]Write to MH i2c: E2 08 00 A5 05 80 0D 01 02 00 00 00 00 23 [18:05:19]Write i2c OK [18:05:19]MH_I2C_Read... [18:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:19]Read from MH i2c: E2 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: E2 03 00 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [18:05:19]RAPDU: 90 00 [18:05:19]wFMCommunicate OK [18:05:19]wFMCommunicate request_size=255 [18:05:19]MH_SAM_APDU [18:05: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 FB 00 00 00 F4 03 04 00 5F 70 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 81 02 00 35 04 06 00 03 [18:05:19]Write to MH i2c: E2 02 01 A6 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 FB 00 00 00 F4 03 04 00 5F 70 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 81 02 00 35 04 06 00 03 00 00 2C [18:05:19]Write i2c OK [18:05:19]MH_I2C_Read... [18:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:19]Read from MH i2c: E2 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: E2 03 00 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [18:05:19]RAPDU: 90 00 [18:05:19]wFMCommunicate OK [18:05:19]wFMCommunicate request_size=10 [18:05:19]MH_SAM_APDU [18:05:19]CAPDU: 80 0D 02 02 05 A0 C8 F9 CD C9 [18:05:19]Write to MH i2c: E2 0D 00 A7 05 80 0D 02 02 05 00 A0 C8 F9 CD C9 00 00 27 [18:05:19]Write i2c OK [18:05:19]MH_I2C_Read... [18:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:20]Read from MH i2c: E2 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 03 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [18:05:20]RAPDU: 90 00 [18:05:20]wFMCommunicate OK [18:05:20]wFMCommunicate request_size=4 [18:05:20]MH_SAM_APDU [18:05:20]CAPDU: 80 0D 03 02 [18:05:20]Write to MH i2c: E2 08 00 A8 05 80 0D 03 02 00 00 00 00 28 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:20]Read from MH i2c: E2 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 0B 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 0B 00 A8 05 00 F4 A2 22 80 5F E4 F1 CF 90 00 64 [18:05:20]RAPDU: F4 A2 22 80 5F E4 F1 CF 90 00 [18:05:20]wFMCommunicate OK [18:05:20]SAM_PROTO_SignData done [18:05:20]FM_MakeSignedData done [18:05:20]CreateOFDProtocolMessage [18:05:20]wFMCommunicate request_size=4 [18:05:20]MH_SAM_APDU [18:05:20]CAPDU: 80 11 00 00 [18:05:20]Write to MH i2c: E2 08 00 A9 05 80 11 00 00 00 00 00 00 28 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:20]Read from MH i2c: E2 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 17 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 17 00 A9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [18:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:05:20]wFMCommunicate OK [18:05:20]CreateOFDProtocolMessage done [18:05:20]OFDSenderStorePacket 164330 [18:05:20]StoreOFDPacket docnum=164330 [18:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 04 3D 07 01 AF 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 FB 00 00 00 F4 03 04 00 5F 70 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 81 02 00 35 04 06 00 03 A0 C8 F9 CD C9 F4 A2 22 80 5F E4 F1 CF [18:05:20]CheckFolder [18:05:20]dirname=/storage/ofd_packets [18:05:20]CheckFolder done [18:05:20]ProducePacketName [18:05:20]name=ofd_packets/00164330 [18:05:20]NVStorageSaveData ofd_packets/00164330 [18:05:20]File name is /storage/ofd_packets/00164330 [18:05:20]Write 301 bytes [18:05:20]NVStorageSaveData done [18:05:20]OFDSenderStorePacket done [18:05:20]KKMCreateOFDPacket done [18:05:20]NVStorageSaveData kkm_last_timestamp [18:05:20]File name is /storage/kkm_last_timestamp [18:05:20]Write 4 bytes [18:05:20]NVStorageSaveData done [18:05:20]ExternCall_PrintAddStr [18:05:20]wPrintStart [18:05:20]Write to MH i2c: 01 00 00 AA 05 AF [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: 01 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: 01 07 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: 01 07 00 AA 05 00 00 00 00 00 FF 0F C4 [18:05:20]RasterBufferAndPrint [18:05:20]line Счет N : (1)458413 [18:05:20]line ИНН: 02508201610067 [18:05:20]line Контрольно-Кассовый Чек [18:05:20]line ПРОДАЖА [18:05:20]line ТРК (МРК, ГНК) : 22 [18:05:20]line Товар: 2710124130 [18:05:20]line Аи-92-К-5 [18:05:20]line 3.040 * 65.80 [18:05:20]line = 200.03 [18:05:20]line НДС 12% НСП 1% [18:05:20]line > о реализуемом товаре [18:05:20]line ОКРУГЛЕНИЕ: -0.03 [18:05:20]line ИТОГО: 200.00 [18:05:20]line Внесено: 200.00 [18:05:20]line СДАЧА: 0.00 [18:05:20]line НСП 1% : 1.77 [18:05:20]line НДС 12% : 21.24 [18:05:20]line Наличными: 200.00 [18:05:20]line Безнал.: 0.00 [18:05:20]line Место: АЗС № 72 "Партнер Нефть" [18:05:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:05:20]line СНО: Общий режим [18:05:20]line Чек 251 12.07.2024 18:05 [18:05:20]line Смена: 445 ФФД: 1.0 [18:05:20]line ЗНМ: 0300000160 [18:05:20]line РНМ: 0000000000090829 [18:05:20]line Версия ККМ: 001 [18:05:20]line ФМ: 0000000000874718 [18:05:20]line ФД: 164330 [18:05:20]line ФПД: 3989101465033 [18:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T180519&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164330&fm=3989101465033&tin=02508201610067®Number=0000000000090829&sum=20000 [18:05:20]written 0, free lines is 4095 [18:05:20]OFD Sender: Processing packet 164330 [packets to send 104, broken 103] [18:05:20]ProducePacketName [18:05:20]name=ofd_packets/00164330 [18:05:20]OFD Sender: To server: pG, [18:05:20]CommunicateWithHost lk.salyk.kg:30040 [18:05:20]ConnectInit lk.salyk.kg [18:05:20]Connected sock=10 [18:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 04 3D 07 01 AF 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 FB 00 00 00 F4 03 04 00 5F 70 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 81 02 00 35 04 06 00 03 A0 C8 F9 CD C9 F4 A2 22 80 5F E4 F1 CF [18:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E0 E9 47 00 6D 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 34 37 31 38 10 04 04 00 EA 81 02 00 F4 03 04 00 F2 16 91 66 B6 04 01 00 00 9A 9B B6 38 5F BA 7C D0 [18:05:20]CommunicateWithHost err = 0 [18:05:20]CheckOFDResponse [18:05:20]1017 (14) - 77093643461234 [18:05:20]1041 (16) - 0000000000874718 [18:05:20]1040 (4) - 164330 [18:05:20]1012 (4) - 12.07.2024 11:43 [18:05:20]1206 (1) - 0 [18:05:20]OFD Sender: Remove packet 164330 [18:05:20]ProducePacketName [18:05:20]name=ofd_packets/00164330 [18:05:20]NVStorageDeleteData [18:05:20]Write to MH i2c: 01 00 00 D4 05 D9 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: 01 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: 01 07 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 0D 0D FA [18:05:20]RasterBufferAndPrint [18:05:20]line [18:05:20]line [18:05:20]line [18:05:20]line [18:05:20]line [18:05:20]written 0, free lines is 3350 [18:05:20]MH_Cut [18:05:20]Write to MH i2c: D1 01 00 DB 05 01 B2 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: D1 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: D1 01 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: D1 01 00 DB 05 00 B1 [18:05:20]Write to MH i2c: 01 00 00 DC 05 E1 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]OFD Sender: No OFD packet to send [18:05:21]*** Cut start [18:05:21]*** Partial cut [18:05:21]*** CUTSNS_PIN = 1 [18:05:21]*** CUTSNS_PIN = 0 [18:05:21]*** Brake cut motor [18:05:21]Read from MH i2c: 01 [18:05:21]MH_I2C_Read... [18:05:21]*** Stop cut motor [18:05:21]*** Cut end [18:05:21]Read from MH i2c: 01 07 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [18:05:21]process_action close_receipt done [18:05:21]requested_data is exist [18:05:21]produce_requested_data [18:05:21]requested_item fm.sn is exist - process it [18:05:21]wFMCommunicate request_size=4 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 11 00 00 [18:05:21]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:21]Read from MH i2c: E2 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 17 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [18:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:05:21]wFMCommunicate OK [18:05:21]requested_item fd.num is exist - process it [18:05:21]SAM_PROTO_GetFieldsCounters [18:05:21]wFMCommunicate request_size=4 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 13 00 00 [18:05:21]Write to MH i2c: E2 08 00 DE 05 80 13 00 00 00 00 00 00 5F [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:22]Read from MH i2c: E2 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 62 00 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 62 00 DE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [18:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:22]wFMCommunicate OK [18:05:22]SAM_PROTO_GetFieldsCounters done [18:05:22]requested_item shift.num is exist - process it [18:05:22]requested_item shift.opened is exist - process it [18:05:22]req_shift_opened [18:05:22]FM_GetShiftState [18:05:22]SAM_PROTO_GetShiftState [18:05:22]wFMCommunicate request_size=4 [18:05:22]MH_SAM_APDU [18:05:22]CAPDU: 80 13 01 00 [18:05:22]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [18:05:22]Write i2c OK [18:05:22]MH_I2C_Read... [18:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:22]Read from MH i2c: E2 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 0E 00 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AB [18:05:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:05:22]wFMCommunicate OK [18:05:22]SAM_PROTO_GetShiftState done [18:05:22]FM_GetShiftState done [18:05:22]req_shift_opened done [18:05:22]requested_item shift.open_date is exist - process it [18:05:22]req_shift_open_date [18:05:22]req_shift_open_date done [18:05:22]produce_requested_data done [18:05:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164330,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:05:22]process_action_free close_receipt [18:05:22]json_value_free [18:05:22]json_value_free done [18:05:22]process_json_proto returns [18:05:22]Send response to host [18:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164330,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:05:22]free response buf [18:05:22]execute_script done [18:05:22]execute_script returns [18:05:22]free content buf [18:05:22]Sock 9.Close socket [18:05:22]Sock 9.Thread stoped [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]accept exits with 8 [18:10:01]New connection [18:10:01]New thread 3067141476 created [18:10:01]Thread 3066998116 joined [18:10:01]Waiting for new connection... [18:10:01] Sock 8.Parse request [18:10:01]Sock 8.Check first char [18:10:01]Sock 8.First char is OK [18:10:01]request: POST /json_proto HTTP/1.0 [18:10:01]Method: POST [18:10:01]URL: /json_proto [18:10:01]Method is POST - this is cgi request [18:10:01]url: /json_proto [18:10:01]query_string will be loaded in cgi processing [18:10:01]execute_cgi json_proto POST (null) [18:10:01]execute_cgi path=json_proto method=POST [18:10:01]POST find Content-Length [18:10:01]Host: 172.17.56.4:8080 [18:10:01]Content-Length: 793 [18:10:01]Content-Type: application/json [18:10:01] [18:10:01]POST finish read [18:10:01]Found Content-Length = 793 [18:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:01]execute_script... [18:10: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)458415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:01]POST & json_proto [18:10:01]process_json_proto [18:10:01]json parsed OK: [18:10:01]protocol is kg_v1.0 [18:10:01]action value=close_receipt [18:10:01]process_action close_receipt [18:10:01]cmd_close_receipt [18:10:01]MH_GetDate [18:10:01]Write to MH i2c: F0 00 00 E0 05 D4 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: F0 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: F0 09 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: F0 09 00 E0 05 00 79 71 91 66 C9 DC B2 64 79 [18:10:01]GetLastDocTimeStamp 1720807519 [18:10:01]current date 1720807801 [18:10:01]FM_GetShiftState [18:10:01]SAM_PROTO_GetShiftState [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 13 01 00 [18:10:01]Write to MH i2c: E2 08 00 E1 05 80 13 01 00 00 00 00 00 63 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0E 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0E 00 E1 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AD [18:10:01]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:10:01]wFMCommunicate OK [18:10:01]SAM_PROTO_GetShiftState done [18:10:01]FM_GetShiftState done [18:10:01]opened in 1720744654 [18:10:01]opened+sec_in_day 1720831054 [18:10:01]quantity*price = 100047 [18:10:01]sum+1 = 100048 [18:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 252 12.07.2024 18:10 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164331 ФПД: 125033923461809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T181001&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164331&fm=125033923461809&tin=02508201610067®Number=0000000000090829&sum=100047 [18:10:02]StoreToDocumentArchive [18:10:02]shift 445 fd 164331 [18:10:02]save to /storage/0445/doc_00164331 [18:10:02]save last doc name /storage/0445/doc_00164331 to /storage/kkm_last_doc_name [18:10:02]save OK [18:10:02]Clear old archive folders... [18:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:02]tlvbuf is 01E21D30 [18:10:02]SAM_PROTO_ClearQueue [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 09 00 00 [18:10:02]Write to MH i2c: E2 08 00 EE 05 80 09 00 00 00 00 00 00 65 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 09 00 00... 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 EE 05 00 90 00 67 [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]SAM_PROTO_ClearQueue done [18:10:02]KKMCreateOFDPacket [18:10:02]OFDProtocolAddRootSTLVToBuf [18:10:02]FM_MakeSignedData [18:10:02]FM_MakeSignedData [18:10:02]SAM_PROTO_SignData [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 0D 01 02 [18:10:02]Write to MH i2c: E2 08 00 EF 05 80 0D 01 02 00 00 00 00 6D [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 01 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 EF 05 00 90 00 68 [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]wFMCommunicate request_size=255 [18:10:02]MH_SAM_APDU [18:10: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 79 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 81 02 00 35 04 06 00 71 [18:10:02]Write to MH i2c: E2 02 01 F0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 79 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 81 02 00 35 04 06 00 71 00 00 D4 [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 F0 05 00 90 00 69 [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]wFMCommunicate request_size=10 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 0D 02 02 05 B7 BA 97 C2 B1 [18:10:02]Write to MH i2c: E2 0D 00 F1 05 80 0D 02 02 05 00 B7 BA 97 C2 B1 00 00 F5 [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 F1 05 00 90 00 6A [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 F2 05 80 0D 03 02 00 00 00 00 72 [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 F2 05 00 6B 02 97 E1 DA 54 62 89 90 00 71 [18:10:02]RAPDU: 6B 02 97 E1 DA 54 62 89 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 F3 05 80 11 00 00 00 00 00 00 72 [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 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [18:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:10:02]wFMCommunicate OK [18:10:02]CreateOFDProtocolMessage done [18:10:02]OFDSenderStorePacket 164331 [18:10:02]StoreOFDPacket docnum=164331 [18:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F3 78 07 01 BF C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 79 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 81 02 00 35 04 06 00 71 B7 BA 97 C2 B1 6B 02 97 E1 DA 54 62 89 [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/00164331 [18:10:02]NVStorageSaveData ofd_packets/00164331 [18:10:02]File name is /storage/ofd_packets/00164331 [18:10:02]Write 301 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 F4 05 F9 [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 F4 05 00 00 00 00 00 FF 0F 0E [18:10:02]RasterBufferAndPrint [18:10:02]line Счет N : (1)458415 [18:10:02]line ИНН: 02508201610067 [18:10:02]line Контрольно-Кассовый Чек [18:10:02]line ПРОДАЖА [18:10:02]line ТРК (МРК, ГНК) : 22 [18:10:02]line Товар: 2710124130 [18:10:02]line Аи-92-К-5 [18:10:02]line 15.340 * 65.22 [18:10:02]line = 1000.47 [18:10:02]line НДС 12% НСП 1% [18:10:02]line > о реализуемом товаре [18:10:02]line ИТОГО: 1000.47 [18:10:02]line НСП 1% : 8.85 [18:10:02]line НДС 12% : 106.24 [18:10:02]line Наличными: 0.00 [18:10:02]line Безнал.: 1000.47 [18:10:02]line Место: АЗС № 72 "Партнер Нефть" [18:10:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:10:02]line СНО: Общий режим [18:10:02]line Чек 252 12.07.2024 18:10 [18:10:02]line Смена: 445 ФФД: 1.0 [18:10:02]line ЗНМ: 0300000160 [18:10:02]line РНМ: 0000000000090829 [18:10:02]line Версия ККМ: 001 [18:10:02]line Платежная система: KICB Банк [18:10:02]line ФМ: 0000000000874718 [18:10:02]line ФД: 164331 [18:10:02]line ФПД: 125033923461809 [18:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T181001&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164331&fm=125033923461809&tin=02508201610067®Number=0000000000090829&sum=100047 [18:10:02]OFD Sender: Processing packet 164331 [packets to send 104, broken 103] [18:10:02]ProducePacketName [18:10:02]name=ofd_packets/00164331 [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:03]Write to MH i2c: 01 00 00 1D 06 23 [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 1D 06 00 00 00 00 00 07 0D 3E [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 3341 [18:10:03]MH_Cut [18:10:03]Write to MH i2c: D1 01 00 24 06 01 FC [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 24 06 00 FB [18:10:03]Write to MH i2c: 01 00 00 25 06 2B [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [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 25 06 00 00 00 00 00 FF 0F 40 [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 26 06 80 11 00 00 00 00 00 00 A6 [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 26 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [18:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 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 27 06 80 13 00 00 00 00 00 00 A9 [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 27 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 28 06 80 13 01 00 00 00 00 00 AB [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 28 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F5 [18:10:04]RAPDU: 09 00 01 CE 7A 90 66 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":"0000000000874718","fd.num":164331,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [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":"0000000000874718","fd.num":164331,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [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 8.Close socket [18:10:04]Sock 8.Thread stoped [18:10:05]accept exits with 9 [18:10:05]New connection [18:10:05]New thread 3066998116 created [18:10:05]Thread 3067141476 joined [18:10:05]Waiting for new connection... [18:10:05] Sock 9.Parse request [18:10:05]Sock 9.Check first char [18:10:05]Sock 9.First char is OK [18:10:05]request: POST /json_proto HTTP/1.0 [18:10:05]Method: POST [18:10:05]URL: /json_proto [18:10:05]Method is POST - this is cgi request [18:10:05]url: /json_proto [18:10:05]query_string will be loaded in cgi processing [18:10:05]execute_cgi json_proto POST (null) [18:10:05]execute_cgi path=json_proto method=POST [18:10:05]POST find Content-Length [18:10:05]Host: 172.17.56.4:8080 [18:10:05]Content-Length: 679 [18:10:05]Content-Type: application/json [18:10:05] [18:10:05]POST finish read [18:10:05]Found Content-Length = 679 [18:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:05]execute_script... [18:10: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)458414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:05]POST & json_proto [18:10:05]process_json_proto [18:10:05]json parsed OK: [18:10:05]protocol is kg_v1.0 [18:10:05]action value=close_receipt [18:10:05]process_action close_receipt [18:10:05]cmd_close_receipt [18:10:05]MH_GetDate [18:10:05]Write to MH i2c: F0 00 00 29 06 1E [18:10:05]Write i2c OK [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: F0 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: F0 09 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: F0 09 00 29 06 00 7D 71 91 66 C9 DC B2 64 C7 [18:10:05]GetLastDocTimeStamp 1720807801 [18:10:05]current date 1720807805 [18:10:05]FM_GetShiftState [18:10:05]SAM_PROTO_GetShiftState [18:10:05]wFMCommunicate request_size=4 [18:10:05]MH_SAM_APDU [18:10:05]CAPDU: 80 13 01 00 [18:10:05]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [18:10:05]Write i2c OK [18:10:05]MH_I2C_Read... [18:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:05]Read from MH i2c: E2 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 0E 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F7 [18:10:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:10:05]wFMCommunicate OK [18:10:05]SAM_PROTO_GetShiftState done [18:10:05]FM_GetShiftState done [18:10:05]opened in 1720744654 [18:10:05]opened+sec_in_day 1720831054 [18:10:05]quantity*price = 120001 [18:10:05]sum+1 = 120002 [18:10:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 253 12.07.2024 18:10 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164332 ФПД: 53379080368464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T181005&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164332&fm=53379080368464&tin=02508201610067®Number=0000000000090829&sum=120000 [18:10:06]StoreToDocumentArchive [18:10:06]shift 445 fd 164332 [18:10:06]save to /storage/0445/doc_00164332 [18:10:06]save last doc name /storage/0445/doc_00164332 to /storage/kkm_last_doc_name [18:10:06]save OK [18:10:06]Clear old archive folders... [18:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:06]tlvbuf is 01E59960 [18:10:06]SAM_PROTO_ClearQueue [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 09 00 00 [18:10:06]Write to MH i2c: E2 08 00 37 06 80 09 00 00 00 00 00 00 AF [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]SAM_PROTO_ClearQueue done [18:10:06]KKMCreateOFDPacket [18:10:06]OFDProtocolAddRootSTLVToBuf [18:10:06]FM_MakeSignedData [18:10:06]FM_MakeSignedData [18:10:06]SAM_PROTO_SignData [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 0D 01 02 [18:10:06]Write to MH i2c: E2 08 00 38 06 80 0D 01 02 00 00 00 00 B7 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]wFMCommunicate request_size=255 [18:10:06]MH_SAM_APDU [18: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 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 FD 00 00 00 F4 03 04 00 7D 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 81 02 00 35 04 06 00 30 8C 49 1F [18:10:06]Write to MH i2c: E2 02 01 39 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 FD 00 00 00 F4 03 04 00 7D 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 81 02 00 35 04 06 00 30 8C 49 1F 00 00 D4 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]wFMCommunicate request_size=7 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 0D 02 02 02 B1 50 [18:10:06]Write to MH i2c: E2 0A 00 3A 06 80 0D 02 02 02 00 B1 50 00 00 BF [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:07]Read from MH i2c: E2 [18:10:07]MH_I2C_Read... [18:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:07]Read from MH i2c: E2 03 00 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [18:10:07]RAPDU: 90 00 [18:10:07]wFMCommunicate OK [18:10:07]wFMCommunicate request_size=4 [18:10:07]MH_SAM_APDU [18:10:07]CAPDU: 80 0D 03 02 [18:10:07]Write to MH i2c: E2 08 00 3B 06 80 0D 03 02 00 00 00 00 BC [18:10:07]Write i2c OK [18:10:07]MH_I2C_Read... [18:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:07]Read from MH i2c: E2 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: E2 0B 00 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: E2 0B 00 3B 06 00 B0 75 7E F0 7B AF F6 F2 90 00 62 [18:10:07]RAPDU: B0 75 7E F0 7B AF F6 F2 90 00 [18:10:07]wFMCommunicate OK [18:10:07]SAM_PROTO_SignData done [18:10:07]FM_MakeSignedData done [18:10:07]CreateOFDProtocolMessage [18:10:07]wFMCommunicate request_size=4 [18:10:07]MH_SAM_APDU [18:10:07]CAPDU: 80 11 00 00 [18:10:07]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [18:10:07]Write i2c OK [18:10:07]MH_I2C_Read... [18:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:07]Read from MH i2c: E2 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: E2 17 00 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [18:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:10:07]wFMCommunicate OK [18:10:07]CreateOFDProtocolMessage done [18:10:07]OFDSenderStorePacket 164332 [18:10:07]StoreOFDPacket docnum=164332 [18:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 22 A0 04 01 BC F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 FD 00 00 00 F4 03 04 00 7D 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 81 02 00 35 04 06 00 30 8C 49 1F B1 50 B0 75 7E F0 7B AF F6 F2 [18:10:07]CheckFolder [18:10:07]dirname=/storage/ofd_packets [18:10:07]CheckFolder done [18:10:07]ProducePacketName [18:10:07]name=ofd_packets/00164332 [18:10:07]NVStorageSaveData ofd_packets/00164332 [18:10:07]File name is /storage/ofd_packets/00164332 [18:10:07]Write 298 bytes [18:10:07]NVStorageSaveData done [18:10:07]OFDSenderStorePacket done [18:10:07]KKMCreateOFDPacket done [18:10:07]NVStorageSaveData kkm_last_timestamp [18:10:07]File name is /storage/kkm_last_timestamp [18:10:07]Write 4 bytes [18:10:07]NVStorageSaveData done [18:10:07]ExternCall_PrintAddStr [18:10:07]wPrintStart [18:10:07]Write to MH i2c: 01 00 00 3D 06 43 [18:10:07]Write i2c OK [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: 01 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: 01 07 00 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [18:10:07]RasterBufferAndPrint [18:10:07]line Счет N : (1)458414 [18:10:07]line ИНН: 02508201610067 [18:10:07]line Контрольно-Кассовый Чек [18:10:07]line ПРОДАЖА [18:10:07]line ТРК (МРК, ГНК) : 11 [18:10:07]line Товар: 2710194210 [18:10:07]line ДТ-К-5 [18:10:07]line 16.690 * 71.90 [18:10:07]line = 1200.01 [18:10:07]line НДС 12% НСП 1% [18:10:07]line > о реализуемом товаре [18:10:07]line ОКРУГЛЕНИЕ: -0.01 [18:10:07]line ИТОГО: 1200.00 [18:10:07]line Внесено: 1200.00 [18:10:07]line СДАЧА: 0.00 [18:10:07]line НСП 1% : 10.62 [18:10:07]line НДС 12% : 127.43 [18:10:07]line Наличными: 1200.00 [18:10:07]line Безнал.: 0.00 [18:10:07]line Место: АЗС № 72 "Партнер Нефть" [18:10:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:10:07]line СНО: Общий режим [18:10:07]line Чек 253 12.07.2024 18:10 [18:10:07]line Смена: 445 ФФД: 1.0 [18:10:07]line ЗНМ: 0300000160 [18:10:07]line РНМ: 0000000000090829 [18:10:07]line Версия ККМ: 001 [18:10:07]line ФМ: 0000000000874718 [18:10:07]line ФД: 164332 [18:10:07]line ФПД: 53379080368464 [18:10:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T181005&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164332&fm=53379080368464&tin=02508201610067®Number=0000000000090829&sum=120000 [18:10:07]written 0, free lines is 4095 [18:10:07]Write to MH i2c: 01 00 00 67 06 6D [18:10:07]Write i2c OK [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: 01 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: 01 07 00 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: 01 07 00 67 06 00 00 00 00 00 F6 0C 76 [18:10:07]RasterBufferAndPrint [18:10:07]line [18:10:07]line [18:10:07]line [18:10:07]line [18:10:07]line [18:10:07]written 0, free lines is 3330 [18:10:07]MH_Cut [18:10:07]Write to MH i2c: D1 01 00 6E 06 01 46 [18:10:07]Write i2c OK [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: D1 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: D1 01 00 [18:10:07]MH_I2C_Read... [18:10:07]Read from MH i2c: D1 01 00 6E 06 00 45 [18:10:07]Write to MH i2c: 01 00 00 6F 06 75 [18:10:07]Write i2c OK [18:10:07]MH_I2C_Read... [18:10:08]*** Cut start [18:10:08]*** Partial cut [18:10:08]*** CUTSNS_PIN = 1 [18:10:08]*** CUTSNS_PIN = 0 [18:10:08]*** Brake cut motor [18:10:09]Read from MH i2c: 01 [18:10:09]MH_I2C_Read... [18:10:09]*** Stop cut motor [18:10:09]*** Cut end [18:10:09]Read from MH i2c: 01 07 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: 01 07 00 6F 06 00 00 00 00 00 FF 0F 8A [18:10:09]process_action close_receipt done [18:10:09]requested_data is exist [18:10:09]produce_requested_data [18:10:09]requested_item fm.sn is exist - process it [18:10:09]wFMCommunicate request_size=4 [18:10:09]MH_SAM_APDU [18:10:09]CAPDU: 80 11 00 00 [18:10:09]Write to MH i2c: E2 08 00 70 06 80 11 00 00 00 00 00 00 F0 [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:09]Read from MH i2c: E2 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 17 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 17 00 70 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 46 [18:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:10:09]wFMCommunicate OK [18:10:09]requested_item fd.num is exist - process it [18:10:09]SAM_PROTO_GetFieldsCounters [18:10:09]wFMCommunicate request_size=4 [18:10:09]MH_SAM_APDU [18:10:09]CAPDU: 80 13 00 00 [18:10:09]Write to MH i2c: E2 08 00 71 06 80 13 00 00 00 00 00 00 F3 [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:09]Read from MH i2c: E2 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 62 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 62 00 71 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:09]wFMCommunicate OK [18:10:09]SAM_PROTO_GetFieldsCounters done [18:10:09]requested_item shift.num is exist - process it [18:10:09]requested_item shift.opened is exist - process it [18:10:09]req_shift_opened [18:10:09]FM_GetShiftState [18:10:09]SAM_PROTO_GetShiftState [18:10:09]wFMCommunicate request_size=4 [18:10:09]MH_SAM_APDU [18:10:09]CAPDU: 80 13 01 00 [18:10:09]Write to MH i2c: E2 08 00 72 06 80 13 01 00 00 00 00 00 F5 [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:09]Read from MH i2c: E2 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 0E 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 0E 00 72 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3F [18:10:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:10:09]wFMCommunicate OK [18:10:09]SAM_PROTO_GetShiftState done [18:10:09]FM_GetShiftState done [18:10:09]req_shift_opened done [18:10:09]requested_item shift.open_date is exist - process it [18:10:09]req_shift_open_date [18:10:09]req_shift_open_date done [18:10:09]produce_requested_data done [18:10:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164332,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:10:09]process_action_free close_receipt [18:10:09]json_value_free [18:10:09]json_value_free done [18:10:09]process_json_proto returns [18:10:09]Send response to host [18:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164332,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:10:09]free response buf [18:10:09]execute_script done [18:10:09]execute_script returns [18:10:09]free content buf [18:10:09]Sock 9.Close socket [18:10:09]Sock 9.Thread stoped [18:10:32]accept exits with 8 [18:10:32]New connection [18:10:32]New thread 3067141476 created [18:10:32]Thread 3066998116 joined [18:10:32]Waiting for new connection... [18:10:32] Sock 8.Parse request [18:10:32]Sock 8.Check first char [18:10:32]Sock 8.First char is OK [18:10:32]request: POST /json_proto HTTP/1.0 [18:10:32]Method: POST [18:10:32]URL: /json_proto [18:10:32]Method is POST - this is cgi request [18:10:32]url: /json_proto [18:10:32]query_string will be loaded in cgi processing [18:10:32]execute_cgi json_proto POST (null) [18:10:32]execute_cgi path=json_proto method=POST [18:10:32]POST find Content-Length [18:10:32]Host: 172.17.56.4:8080 [18:10:32]Content-Length: 674 [18:10:32]Content-Type: application/json [18:10:32] [18:10:32]POST finish read [18:10:32]Found Content-Length = 674 [18:10:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458416", "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" : 71.90, "quantity" : 2.790, "sum" : 200.60, "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:10:32]execute_script... [18:10: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)458416", "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" : 71.90, "quantity" : 2.790, "sum" : 200.60, "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:10:32]POST & json_proto [18:10:32]process_json_proto [18:10:32]json parsed OK: [18:10:32]protocol is kg_v1.0 [18:10:32]action value=close_receipt [18:10:32]process_action close_receipt [18:10:32]cmd_close_receipt [18:10:32]MH_GetDate [18:10:32]Write to MH i2c: F0 00 00 73 06 68 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: F0 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: F0 09 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: F0 09 00 73 06 00 99 71 91 66 C9 DC B2 64 2D [18:10:32]GetLastDocTimeStamp 1720807805 [18:10:32]current date 1720807833 [18:10:32]FM_GetShiftState [18:10:32]SAM_PROTO_GetShiftState [18:10:32]wFMCommunicate request_size=4 [18:10:32]MH_SAM_APDU [18:10:32]CAPDU: 80 13 01 00 [18:10:32]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 0E 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 0E 00 74 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 41 [18:10:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:10:32]wFMCommunicate OK [18:10:32]SAM_PROTO_GetShiftState done [18:10:32]FM_GetShiftState done [18:10:32]opened in 1720744654 [18:10:32]opened+sec_in_day 1720831054 [18:10:32]quantity*price = 20060 [18:10:32]sum+1 = 20061 [18:10:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 254 12.07.2024 18:10 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164333 ФПД: 20390985413369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T181033&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164333&fm=20390985413369&tin=02508201610067®Number=0000000000090829&sum=20000 [18:10:33]StoreToDocumentArchive [18:10:33]shift 445 fd 164333 [18:10:33]save to /storage/0445/doc_00164333 [18:10:33]save last doc name /storage/0445/doc_00164333 to /storage/kkm_last_doc_name [18:10:33]save OK [18:10:33]Clear old archive folders... [18:10:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:33]tlvbuf is 01E6B160 [18:10:33]SAM_PROTO_ClearQueue [18:10:33]wFMCommunicate request_size=4 [18:10:33]MH_SAM_APDU [18:10:33]CAPDU: 80 09 00 00 [18:10:33]Write to MH i2c: E2 08 00 81 06 80 09 00 00 00 00 00 00 F9 [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:33]Read from MH i2c: E2 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [18:10:33]RAPDU: 90 00 [18:10:33]wFMCommunicate OK [18:10:33]SAM_PROTO_ClearQueue done [18:10:33]KKMCreateOFDPacket [18:10:33]OFDProtocolAddRootSTLVToBuf [18:10:33]FM_MakeSignedData [18:10:33]FM_MakeSignedData [18:10:33]SAM_PROTO_SignData [18:10:33]wFMCommunicate request_size=4 [18:10:33]MH_SAM_APDU [18:10:33]CAPDU: 80 0D 01 02 [18:10:33]Write to MH i2c: E2 08 00 82 06 80 0D 01 02 00 00 00 00 01 [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 03 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [18:10:34]RAPDU: 90 00 [18:10:34]wFMCommunicate OK [18:10:34]wFMCommunicate request_size=255 [18:10:34]MH_SAM_APDU [18:10: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 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 99 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 81 02 00 35 04 06 00 12 8B A5 71 [18:10:34]Write to MH i2c: E2 02 01 83 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 99 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 81 02 00 35 04 06 00 12 8B A5 71 00 00 F7 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 03 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [18:10:34]RAPDU: 90 00 [18:10:34]wFMCommunicate OK [18:10:34]wFMCommunicate request_size=7 [18:10:34]MH_SAM_APDU [18:10:34]CAPDU: 80 0D 02 02 02 32 F9 [18:10:34]Write to MH i2c: E2 0A 00 84 06 80 0D 02 02 02 00 32 F9 00 00 33 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 03 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [18:10:34]RAPDU: 90 00 [18:10:34]wFMCommunicate OK [18:10:34]wFMCommunicate request_size=4 [18:10:34]MH_SAM_APDU [18:10:34]CAPDU: 80 0D 03 02 [18:10:34]Write to MH i2c: E2 08 00 85 06 80 0D 03 02 00 00 00 00 06 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 0B 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 0B 00 85 06 00 27 05 3C 12 D3 64 98 59 90 00 A9 [18:10:34]RAPDU: 27 05 3C 12 D3 64 98 59 90 00 [18:10:34]wFMCommunicate OK [18:10:34]SAM_PROTO_SignData done [18:10:34]FM_MakeSignedData done [18:10:34]CreateOFDProtocolMessage [18:10:34]wFMCommunicate request_size=4 [18:10:34]MH_SAM_APDU [18:10:34]CAPDU: 80 11 00 00 [18:10:34]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 17 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5C [18:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:10:34]wFMCommunicate OK [18:10:34]CreateOFDProtocolMessage done [18:10:34]OFDSenderStorePacket 164333 [18:10:34]StoreOFDPacket docnum=164333 [18:10:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 78 1E 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 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 99 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 81 02 00 35 04 06 00 12 8B A5 71 32 F9 27 05 3C 12 D3 64 98 59 [18:10:34]CheckFolder [18:10:34]dirname=/storage/ofd_packets [18:10:34]CheckFolder done [18:10:34]ProducePacketName [18:10:34]name=ofd_packets/00164333 [18:10:34]NVStorageSaveData ofd_packets/00164333 [18:10:34]File name is /storage/ofd_packets/00164333 [18:10:34]Write 298 bytes [18:10:34]NVStorageSaveData done [18:10:34]OFDSenderStorePacket done [18:10:34]KKMCreateOFDPacket done [18:10:34]NVStorageSaveData kkm_last_timestamp [18:10:34]File name is /storage/kkm_last_timestamp [18:10:34]Write 4 bytes [18:10:34]NVStorageSaveData done [18:10:34]ExternCall_PrintAddStr [18:10:34]wPrintStart [18:10:34]Write to MH i2c: 01 00 00 87 06 8D [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: 01 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: 01 07 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: 01 07 00 87 06 00 00 00 00 00 FF 0F A2 [18:10:34]RasterBufferAndPrint [18:10:34]line Счет N : (1)458416 [18:10:34]line ИНН: 02508201610067 [18:10:34]line Контрольно-Кассовый Чек [18:10:34]line ПРОДАЖА [18:10:34]line ТРК (МРК, ГНК) : 21 [18:10:34]line Товар: 2710194210 [18:10:34]line ДТ-К-5 [18:10:34]line 2.790 * 71.90 [18:10:34]line = 200.60 [18:10:34]line НДС 12% НСП 1% [18:10:34]line > о реализуемом товаре [18:10:34]line ОКРУГЛЕНИЕ: -0.60 [18:10:34]line ИТОГО: 200.00 [18:10:34]line Внесено: 200.00 [18:10:34]line СДАЧА: 0.00 [18:10:34]line НСП 1% : 1.77 [18:10:34]line НДС 12% : 21.30 [18:10:34]line Наличными: 200.00 [18:10:34]line Безнал.: 0.00 [18:10:34]line Место: АЗС № 72 "Партнер Нефть" [18:10:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:10:34]line СНО: Общий режим [18:10:34]line Чек 254 12.07.2024 18:10 [18:10:34]line Смена: 445 ФФД: 1.0 [18:10:34]line ЗНМ: 0300000160 [18:10:34]line РНМ: 0000000000090829 [18:10:34]line Версия ККМ: 001 [18:10:34]line ФМ: 0000000000874718 [18:10:34]line ФД: 164333 [18:10:34]line ФПД: 20390985413369 [18:10:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T181033&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164333&fm=20390985413369&tin=02508201610067®Number=0000000000090829&sum=20000 [18:10:34]written 0, free lines is 4095 [18:10:35]Write to MH i2c: 01 00 00 B1 06 B7 [18:10:35]Write i2c OK [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: 01 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: 01 07 00 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: 01 07 00 B1 06 00 00 00 00 00 F1 0C BB [18:10:35]RasterBufferAndPrint [18:10:35]line [18:10:35]line [18:10:35]line [18:10:35]line [18:10:35]line [18:10:35]written 0, free lines is 3319 [18:10:35]MH_Cut [18:10:35]Write to MH i2c: D1 01 00 B8 06 01 90 [18:10:35]Write i2c OK [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: D1 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: D1 01 00 [18:10:35]MH_I2C_Read... [18:10:35]Read from MH i2c: D1 01 00 B8 06 00 8F [18:10:35]Write to MH i2c: 01 00 00 B9 06 BF [18:10:35]Write i2c OK [18:10:35]MH_I2C_Read... [18:10:35]*** Cut start [18:10:35]*** Partial cut [18:10:35]*** CUTSNS_PIN = 1 [18:10:35]*** CUTSNS_PIN = 0 [18:10:36]*** Brake cut motor [18:10:36]Read from MH i2c: 01 [18:10:36]MH_I2C_Read... [18:10:36]*** Stop cut motor [18:10:36]*** Cut end [18:10:36]Read from MH i2c: 01 07 00 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 FF 0F D4 [18:10:36]process_action close_receipt done [18:10:36]requested_data is exist [18:10:36]produce_requested_data [18:10:36]requested_item fm.sn is exist - process it [18:10:36]wFMCommunicate request_size=4 [18:10:36]MH_SAM_APDU [18:10:36]CAPDU: 80 11 00 00 [18:10:36]Write to MH i2c: E2 08 00 BA 06 80 11 00 00 00 00 00 00 3A [18:10:36]Write i2c OK [18:10:36]MH_I2C_Read... [18:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:36]Read from MH i2c: E2 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: E2 17 00 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: E2 17 00 BA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [18:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:10:36]wFMCommunicate OK [18:10:36]requested_item fd.num is exist - process it [18:10:36]SAM_PROTO_GetFieldsCounters [18:10:36]wFMCommunicate request_size=4 [18:10:36]MH_SAM_APDU [18:10:36]CAPDU: 80 13 00 00 [18:10:36]Write to MH i2c: E2 08 00 BB 06 80 13 00 00 00 00 00 00 3D [18:10:36]Write i2c OK [18:10:36]MH_I2C_Read... [18:10:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:36]Read from MH i2c: E2 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: E2 62 00 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: E2 62 00 BB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [18:10:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:36]wFMCommunicate OK [18:10:36]SAM_PROTO_GetFieldsCounters done [18:10:36]requested_item shift.num is exist - process it [18:10:36]requested_item shift.opened is exist - process it [18:10:36]req_shift_opened [18:10:36]FM_GetShiftState [18:10:36]SAM_PROTO_GetShiftState [18:10:36]wFMCommunicate request_size=4 [18:10:36]MH_SAM_APDU [18:10:36]CAPDU: 80 13 01 00 [18:10:36]Write to MH i2c: E2 08 00 BC 06 80 13 01 00 00 00 00 00 3F [18:10:36]Write i2c OK [18:10:36]MH_I2C_Read... [18:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:36]Read from MH i2c: E2 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: E2 0E 00 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: E2 0E 00 BC 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 89 [18:10:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:10:36]wFMCommunicate OK [18:10:36]SAM_PROTO_GetShiftState done [18:10:36]FM_GetShiftState done [18:10:36]req_shift_opened done [18:10:36]requested_item shift.open_date is exist - process it [18:10:36]req_shift_open_date [18:10:36]req_shift_open_date done [18:10:36]produce_requested_data done [18:10:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164333,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:10:36]process_action_free close_receipt [18:10:36]json_value_free [18:10:36]json_value_free done [18:10:36]process_json_proto returns [18:10:36]Send response to host [18:10:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164333,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:10:36]free response buf [18:10:36]execute_script done [18:10:36]execute_script returns [18:10:36]free content buf [18:10:36]Sock 8.Close socket [18:10:36]Sock 8.Thread stoped [18:12:13]ConnectInit Can't connect to host [18:12:13]CommunicateWithHost connect error [18:12:13]CommunicateWithHost err = -1 [18:12:13]OFD Sender: Server communicate error [18:12:13]OFD Sender: Processing packet 164331 [packets to send 106, broken 103] [18:12:13]ProducePacketName [18:12:13]name=ofd_packets/00164331 [18:12:13]OFD Sender: To server: pG, [18:12:13]CommunicateWithHost lk.salyk.kg:30040 [18:12:13]ConnectInit lk.salyk.kg [18:12:13]Connected sock=8 [18: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 34 37 31 38 0F 01 00 00 F3 78 07 01 BF C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 79 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 81 02 00 35 04 06 00 71 B7 BA 97 C2 B1 6B 02 97 E1 DA 54 62 89 [18:12:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 34 DF 47 00 C9 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 81 02 00 F4 03 04 00 8F 18 91 66 B6 04 01 00 00 98 8D AE F8 7B 06 0D CD [18:12:13]CommunicateWithHost err = 0 [18:12:13]CheckOFDResponse [18:12:13]1017 (14) - 77093643461234 [18:12:13]1041 (16) - 0000000000874718 [18:12:13]1040 (4) - 164331 [18:12:13]1012 (4) - 12.07.2024 11:50 [18:12:13]1206 (1) - 0 [18:12:13]OFD Sender: Remove packet 164331 [18:12:13]ProducePacketName [18:12:13]name=ofd_packets/00164331 [18:12:13]NVStorageDeleteData [18:12:14]OFD Sender: Processing packet 164332 [packets to send 105, broken 103] [18:12:14]ProducePacketName [18:12:14]name=ofd_packets/00164332 [18:12:14]OFD Sender: To server: pG, [18:12:14]CommunicateWithHost lk.salyk.kg:30040 [18:12:14]ConnectInit lk.salyk.kg [18:12:14]Connected sock=8 [18:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 22 A0 04 01 BC F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 FD 00 00 00 F4 03 04 00 7D 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 81 02 00 35 04 06 00 30 8C 49 1F B1 50 B0 75 7E F0 7B AF F6 F2 [18:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 07 B5 47 00 5E 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 34 37 31 38 10 04 04 00 EC 81 02 00 F4 03 04 00 90 18 91 66 B6 04 01 00 00 AC CB 94 78 D8 84 DE E8 [18:12:14]CommunicateWithHost err = 0 [18:12:14]CheckOFDResponse [18:12:14]1017 (14) - 77093643461234 [18:12:14]1041 (16) - 0000000000874718 [18:12:14]1040 (4) - 164332 [18:12:14]1012 (4) - 12.07.2024 11:50 [18:12:14]1206 (1) - 0 [18:12:14]OFD Sender: Remove packet 164332 [18:12:14]ProducePacketName [18:12:14]name=ofd_packets/00164332 [18:12:14]NVStorageDeleteData [18:12:15]OFD Sender: Processing packet 164333 [packets to send 104, broken 103] [18:12:15]ProducePacketName [18:12:15]name=ofd_packets/00164333 [18:12:15]OFD Sender: To server: pG, [18:12:15]CommunicateWithHost lk.salyk.kg:30040 [18:12:15]ConnectInit lk.salyk.kg [18:12:15]Connected sock=8 [18:12:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 78 1E 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 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 99 71 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 81 02 00 35 04 06 00 12 8B A5 71 32 F9 27 05 3C 12 D3 64 98 59 [18:12:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 86 FE 47 00 24 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 34 37 31 38 10 04 04 00 ED 81 02 00 F4 03 04 00 91 18 91 66 B6 04 01 00 00 01 0A 9A FC 3D CC 88 B7 [18:12:15]CommunicateWithHost err = 0 [18:12:15]CheckOFDResponse [18:12:15]1017 (14) - 77093643461234 [18:12:15]1041 (16) - 0000000000874718 [18:12:15]1040 (4) - 164333 [18:12:15]1012 (4) - 12.07.2024 11:50 [18:12:15]1206 (1) - 0 [18:12:15]OFD Sender: Remove packet 164333 [18:12:15]ProducePacketName [18:12:15]name=ofd_packets/00164333 [18:12:15]NVStorageDeleteData [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:51]accept exits with 9 [18:23:51]New connection [18:23:51]New thread 3066998116 created [18:23:51]Thread 3067141476 joined [18:23:51]Waiting for new connection... [18:23:51] Sock 9.Parse request [18:23:51]Sock 9.Check first char [18:23:51]Sock 9.First char is OK [18:23:51]request: POST /json_proto HTTP/1.0 [18:23:51]Method: POST [18:23:51]URL: /json_proto [18:23:51]Method is POST - this is cgi request [18:23:51]url: /json_proto [18:23:51]query_string will be loaded in cgi processing [18:23:51]execute_cgi json_proto POST (null) [18:23:51]execute_cgi path=json_proto method=POST [18:23:51]POST find Content-Length [18:23:51]Host: 172.17.56.4:8080 [18:23:51]Content-Length: 677 [18:23:51]Content-Type: application/json [18:23:51] [18:23:51]POST finish read [18:23:51]Found Content-Length = 677 [18:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:23:51]execute_script... [18:23: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)458417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:23:51]POST & json_proto [18:23:51]process_json_proto [18:23:51]json parsed OK: [18:23:51]protocol is kg_v1.0 [18:23:51]action value=close_receipt [18:23:51]process_action close_receipt [18:23:51]cmd_close_receipt [18:23:51]MH_GetDate [18:23:51]Write to MH i2c: F0 00 00 BD 06 B2 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: F0 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: F0 09 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: F0 09 00 BD 06 00 B8 74 91 66 C9 DC B2 64 99 [18:23:51]GetLastDocTimeStamp 1720807833 [18:23:51]current date 1720808632 [18:23:51]FM_GetShiftState [18:23:51]SAM_PROTO_GetShiftState [18:23:51]wFMCommunicate request_size=4 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 13 01 00 [18:23:51]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 0E 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8B [18:23:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:23:51]wFMCommunicate OK [18:23:51]SAM_PROTO_GetShiftState done [18:23:51]FM_GetShiftState done [18:23:51]opened in 1720744654 [18:23:51]opened+sec_in_day 1720831054 [18:23:51]quantity*price = 20003 [18:23:51]sum+1 = 20004 [18:23: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 255 12.07.2024 18:23 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164334 ФПД: 45942382809279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T182352&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164334&fm=45942382809279&tin=02508201610067®Number=0000000000090829&sum=20000 [18:23:52]StoreToDocumentArchive [18:23:52]shift 445 fd 164334 [18:23:52]save to /storage/0445/doc_00164334 [18:23:52]save last doc name /storage/0445/doc_00164334 to /storage/kkm_last_doc_name [18:23:52]save OK [18:23:52]Clear old archive folders... [18:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:52]tlvbuf is B6F83070 [18:23:52]SAM_PROTO_ClearQueue [18:23:52]wFMCommunicate request_size=4 [18:23:52]MH_SAM_APDU [18:23:52]CAPDU: 80 09 00 00 [18:23:52]Write to MH i2c: E2 08 00 CB 06 80 09 00 00 00 00 00 00 43 [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:52]Read from MH i2c: E2 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: E2 03 00 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [18:23:52]RAPDU: 90 00 [18:23:52]wFMCommunicate OK [18:23:52]SAM_PROTO_ClearQueue done [18:23:52]KKMCreateOFDPacket [18:23:52]OFDProtocolAddRootSTLVToBuf [18:23:52]FM_MakeSignedData [18:23:52]FM_MakeSignedData [18:23:52]SAM_PROTO_SignData [18:23:52]wFMCommunicate request_size=4 [18:23:52]MH_SAM_APDU [18:23:52]CAPDU: 80 0D 01 02 [18:23:52]Write to MH i2c: E2 08 00 CC 06 80 0D 01 02 00 00 00 00 4B [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:52]Read from MH i2c: E2 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: E2 03 00 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [18:23:52]RAPDU: 90 00 [18:23:52]wFMCommunicate OK [18:23:52]wFMCommunicate request_size=255 [18:23:52]MH_SAM_APDU [18:23: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 FF 00 00 00 F4 03 04 00 B8 74 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 81 02 00 35 04 06 00 29 [18:23:52]Write to MH i2c: E2 02 01 CD 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 FF 00 00 00 F4 03 04 00 B8 74 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 81 02 00 35 04 06 00 29 00 00 DF [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:53]Read from MH i2c: E2 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 03 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [18:23:53]RAPDU: 90 00 [18:23:53]wFMCommunicate OK [18:23:53]wFMCommunicate request_size=10 [18:23:53]MH_SAM_APDU [18:23:53]CAPDU: 80 0D 02 02 05 C8 CB 68 50 BF [18:23:53]Write to MH i2c: E2 0D 00 CE 06 80 0D 02 02 05 00 C8 CB 68 50 BF 00 00 62 [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:53]Read from MH i2c: E2 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 03 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [18:23:53]RAPDU: 90 00 [18:23:53]wFMCommunicate OK [18:23:53]wFMCommunicate request_size=4 [18:23:53]MH_SAM_APDU [18:23:53]CAPDU: 80 0D 03 02 [18:23:53]Write to MH i2c: E2 08 00 CF 06 80 0D 03 02 00 00 00 00 50 [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:53]Read from MH i2c: E2 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 0B 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 0B 00 CF 06 00 09 1A 9B 24 BC 14 C0 F3 90 00 B6 [18:23:53]RAPDU: 09 1A 9B 24 BC 14 C0 F3 90 00 [18:23:53]wFMCommunicate OK [18:23:53]SAM_PROTO_SignData done [18:23:53]FM_MakeSignedData done [18:23:53]CreateOFDProtocolMessage [18:23:53]wFMCommunicate request_size=4 [18:23:53]MH_SAM_APDU [18:23:53]CAPDU: 80 11 00 00 [18:23:53]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:53]Read from MH i2c: E2 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 17 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [18:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:23:53]wFMCommunicate OK [18:23:53]CreateOFDProtocolMessage done [18:23:53]OFDSenderStorePacket 164334 [18:23:53]StoreOFDPacket docnum=164334 [18:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 35 90 07 01 FA 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 FF 00 00 00 F4 03 04 00 B8 74 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 81 02 00 35 04 06 00 29 C8 CB 68 50 BF 09 1A 9B 24 BC 14 C0 F3 [18:23:53]CheckFolder [18:23:53]dirname=/storage/ofd_packets [18:23:53]CheckFolder done [18:23:53]ProducePacketName [18:23:53]name=ofd_packets/00164334 [18:23:53]NVStorageSaveData ofd_packets/00164334 [18:23:53]File name is /storage/ofd_packets/00164334 [18:23:53]Write 301 bytes [18:23:53]NVStorageSaveData done [18:23:53]OFDSenderStorePacket done [18:23:53]KKMCreateOFDPacket done [18:23:53]NVStorageSaveData kkm_last_timestamp [18:23:53]File name is /storage/kkm_last_timestamp [18:23:53]Write 4 bytes [18:23:53]NVStorageSaveData done [18:23:53]ExternCall_PrintAddStr [18:23:53]wPrintStart [18:23:53]Write to MH i2c: 01 00 00 D1 06 D7 [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: 01 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: 01 07 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [18:23:53]RasterBufferAndPrint [18:23:53]line Счет N : (1)458417 [18:23:53]line ИНН: 02508201610067 [18:23:53]line Контрольно-Кассовый Чек [18:23:53]line ПРОДАЖА [18:23:53]line ТРК (МРК, ГНК) : 12 [18:23:53]line Товар: 2710124130 [18:23:53]line Аи-92-К-5 [18:23:53]line 3.040 * 65.80 [18:23:53]line = 200.03 [18:23:53]line НДС 12% НСП 1% [18:23:53]line > о реализуемом товаре [18:23:53]line ОКРУГЛЕНИЕ: -0.03 [18:23:53]line ИТОГО: 200.00 [18:23:53]line Внесено: 200.00 [18:23:53]line СДАЧА: 0.00 [18:23:53]line НСП 1% : 1.77 [18:23:53]line НДС 12% : 21.24 [18:23:53]line Наличными: 200.00 [18:23:53]line Безнал.: 0.00 [18:23:53]line Место: АЗС № 72 "Партнер Нефть" [18:23:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:23:53]line СНО: Общий режим [18:23:53]line Чек 255 12.07.2024 18:23 [18:23:53]line Смена: 445 ФФД: 1.0 [18:23:53]line ЗНМ: 0300000160 [18:23:53]line РНМ: 0000000000090829 [18:23:53]line Версия ККМ: 001 [18:23:53]line ФМ: 0000000000874718 [18:23:53]line ФД: 164334 [18:23:53]line ФПД: 45942382809279 [18:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T182352&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164334&fm=45942382809279&tin=02508201610067®Number=0000000000090829&sum=20000 [18:23:53]OFD Sender: Processing packet 164334 [packets to send 104, broken 103] [18:23:53]ProducePacketName [18:23:53]name=ofd_packets/00164334 [18:23:53]OFD Sender: To server: pG, [18:23:53]CommunicateWithHost lk.salyk.kg:30040 [18:23:53]ConnectInit lk.salyk.kg [18:23:53]written 0, free lines is 4095 [18:23:53]Connected sock=10 [18:23:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 35 90 07 01 FA 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 FF 00 00 00 F4 03 04 00 B8 74 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 81 02 00 35 04 06 00 29 C8 CB 68 50 BF 09 1A 9B 24 BC 14 C0 F3 [18:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 29 DA 47 00 96 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 81 02 00 F4 03 04 00 4C 1B 91 66 B6 04 01 00 00 F2 DC 86 8D 99 2E 00 0C [18:23:54]CommunicateWithHost err = 0 [18:23:54]CheckOFDResponse [18:23:54]1017 (14) - 77093643461234 [18:23:54]1041 (16) - 0000000000874718 [18:23:54]1040 (4) - 164334 [18:23:54]1012 (4) - 12.07.2024 12:02 [18:23:54]1206 (1) - 0 [18:23:54]OFD Sender: Remove packet 164334 [18:23:54]ProducePacketName [18:23:54]name=ofd_packets/00164334 [18:23:54]NVStorageDeleteData [18:23:54]Write to MH i2c: 01 00 00 FB 06 01 [18:23:54]Write i2c OK [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: 01 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: 01 07 00 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: 01 07 00 FB 06 00 00 00 00 00 FE 0C 12 [18:23:54]RasterBufferAndPrint [18:23:54]line [18:23:54]line [18:23:54]line [18:23:54]line [18:23:54]line [18:23:54]written 0, free lines is 3332 [18:23:54]MH_Cut [18:23:54]Write to MH i2c: D1 01 00 02 07 01 DB [18:23:54]Write i2c OK [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: D1 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: D1 01 00 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: D1 01 00 02 07 00 DA [18:23:54]Write to MH i2c: 01 00 00 03 07 0A [18:23:54]Write i2c OK [18:23:54]MH_I2C_Read... [18:23:54]OFD Sender: No OFD packet to send [18:23:54]*** Cut start [18:23:54]*** Partial cut [18:23:54]*** CUTSNS_PIN = 1 [18:23:54]*** CUTSNS_PIN = 0 [18:23:55]*** Brake cut motor [18:23:55]Read from MH i2c: 01 [18:23:55]MH_I2C_Read... [18:23:55]*** Stop cut motor [18:23:55]*** Cut end [18:23:55]Read from MH i2c: 01 07 00 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: 01 07 00 03 07 00 00 00 00 00 FF 0F 1F [18:23:55]process_action close_receipt done [18:23:55]requested_data is exist [18:23:55]produce_requested_data [18:23:55]requested_item fm.sn is exist - process it [18:23:55]wFMCommunicate request_size=4 [18:23:55]MH_SAM_APDU [18:23:55]CAPDU: 80 11 00 00 [18:23:55]Write to MH i2c: E2 08 00 04 07 80 11 00 00 00 00 00 00 85 [18:23:55]Write i2c OK [18:23:55]MH_I2C_Read... [18:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:55]Read from MH i2c: E2 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 17 00 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 17 00 04 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [18:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:23:55]wFMCommunicate OK [18:23:55]requested_item fd.num is exist - process it [18:23:55]SAM_PROTO_GetFieldsCounters [18:23:55]wFMCommunicate request_size=4 [18:23:55]MH_SAM_APDU [18:23:55]CAPDU: 80 13 00 00 [18:23:55]Write to MH i2c: E2 08 00 05 07 80 13 00 00 00 00 00 00 88 [18:23:55]Write i2c OK [18:23:55]MH_I2C_Read... [18:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:55]Read from MH i2c: E2 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 62 00 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 62 00 05 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:23: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:55]wFMCommunicate OK [18:23:55]SAM_PROTO_GetFieldsCounters done [18:23:55]requested_item shift.num is exist - process it [18:23:55]requested_item shift.opened is exist - process it [18:23:55]req_shift_opened [18:23:55]FM_GetShiftState [18:23:55]SAM_PROTO_GetShiftState [18:23:55]wFMCommunicate request_size=4 [18:23:55]MH_SAM_APDU [18:23:55]CAPDU: 80 13 01 00 [18:23:55]Write to MH i2c: E2 08 00 06 07 80 13 01 00 00 00 00 00 8A [18:23:55]Write i2c OK [18:23:55]MH_I2C_Read... [18:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:55]Read from MH i2c: E2 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 0E 00 [18:23:55]MH_I2C_Read... [18:23:55]Read from MH i2c: E2 0E 00 06 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D4 [18:23:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:23:55]wFMCommunicate OK [18:23:55]SAM_PROTO_GetShiftState done [18:23:55]FM_GetShiftState done [18:23:55]req_shift_opened done [18:23:55]requested_item shift.open_date is exist - process it [18:23:55]req_shift_open_date [18:23:55]req_shift_open_date done [18:23:55]produce_requested_data done [18:23:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164334,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:23:55]process_action_free close_receipt [18:23:55]json_value_free [18:23:55]json_value_free done [18:23:55]process_json_proto returns [18:23:55]Send response to host [18:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164334,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:23:55]free response buf [18:23:55]execute_script done [18:23:55]execute_script returns [18:23:55]free content buf [18:23:55]Sock 9.Close socket [18:23:55]Sock 9.Thread stoped [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:44]accept exits with 8 [18:34:44]New connection [18:34:44]New thread 3067141476 created [18:34:44]Thread 3066998116 joined [18:34:44]Waiting for new connection... [18:34:44] Sock 8.Parse request [18:34:44]Sock 8.Check first char [18:34:44]Sock 8.First char is OK [18:34:44]request: POST /json_proto HTTP/1.0 [18:34:44]Method: POST [18:34:44]URL: /json_proto [18:34:44]Method is POST - this is cgi request [18:34:44]url: /json_proto [18:34:44]query_string will be loaded in cgi processing [18:34:44]execute_cgi json_proto POST (null) [18:34:44]execute_cgi path=json_proto method=POST [18:34:44]POST find Content-Length [18:34:44]Host: 172.17.56.4:8080 [18:34:44]Content-Length: 1187 [18:34:44]Content-Type: application/json [18:34:44] [18:34:44]POST finish read [18:34:44]Found Content-Length = 1187 [18:34:44]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458418\u000A12.07.2024 18:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114753;4114751\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:44]execute_script... [18:34:44]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458418\u000A12.07.2024 18:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114753;4114751\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:44]POST & json_proto [18:34:44]process_json_proto [18:34:44]json parsed OK: [18:34:44]protocol is kg_v1.0 [18:34:44]action value=print_text [18:34:44]process_action print_text [18:34:44]cmd_print_text [18:34:44]ExternCall_PrintAddStr [18:34:44]wPrintStart [18:34:44]Write to MH i2c: 01 00 00 07 07 0E [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 07 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 07 00 07 07 00 00 00 00 00 FF 0F 23 [18:34:44]RasterBufferAndPrint [18:34:44]line *****ТОВАРНЫЙ ЧЕК***** [18:34:44]line АЗС 72 [18:34:44]line Партнер нефть [18:34:44]line 02508201610067 [18:34:44]line Кассир : Садыков Н. [18:34:44]line Счет N : (1)458418 [18:34:44]line 12.07.2024 18:00 [18:34:44]line ПРОДАЖА [18:34:44]line ТРК (МРК, ГНК): 12 [18:34:44]line Вид ГСМ : 2710124130 [18:34:44]line Аи-92-К-5 [18:34:44]line 20.000 x 65.80 [18:34:44]line ИТОГ: 1316.00 [18:34:44]line Тип оплаты: Талоны: Партнер нефть [18:34:44]line 4114753;4114751 [18:34:44]line ______________________ [18:34:44]line (подпись) [18:34:44]written 0, free lines is 4095 [18:34:44]Write to MH i2c: 01 00 00 1B 07 22 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 07 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 07 00 1B 07 00 00 00 00 00 12 0E 49 [18:34:44]RasterBufferAndPrint [18:34:44]line [18:34:44]line [18:34:44]line [18:34:44]line [18:34:44]line [18:34:44]written 0, free lines is 3603 [18:34:44]MH_Cut [18:34:44]Write to MH i2c: D1 01 00 22 07 01 FB [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: D1 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: D1 01 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: D1 01 00 22 07 00 FA [18:34:44]Write to MH i2c: 01 00 00 23 07 2A [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:45]OFD Sender: No OFD packet to send [18:34:45]*** Cut start [18:34:45]*** Partial cut [18:34:45]*** CUTSNS_PIN = 1 [18:34:45]*** CUTSNS_PIN = 0 [18:34:45]*** Brake cut motor [18:34:45]Read from MH i2c: 01 [18:34:45]MH_I2C_Read... [18:34:45]*** Stop cut motor [18:34:45]*** Cut end [18:34:45]Read from MH i2c: 01 07 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 23 07 00 00 00 00 00 FF 0F 3F [18:34:45]process_action print_text done [18:34:45]requested_data is exist [18:34:45]produce_requested_data [18:34:45]requested_item fm.sn is exist - process it [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 11 00 00 [18:34:45]Write to MH i2c: E2 08 00 24 07 80 11 00 00 00 00 00 00 A5 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 17 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 17 00 24 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [18:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:34:45]wFMCommunicate OK [18:34:45]requested_item fd.num is exist - process it [18:34:45]SAM_PROTO_GetFieldsCounters [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 13 00 00 [18:34:45]Write to MH i2c: E2 08 00 25 07 80 13 00 00 00 00 00 00 A8 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:46]Read from MH i2c: E2 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 62 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 62 00 25 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [18:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:46]wFMCommunicate OK [18:34:46]SAM_PROTO_GetFieldsCounters done [18:34:46]requested_item shift.num is exist - process it [18:34:46]requested_item shift.opened is exist - process it [18:34:46]req_shift_opened [18:34:46]FM_GetShiftState [18:34:46]SAM_PROTO_GetShiftState [18:34:46]wFMCommunicate request_size=4 [18:34:46]MH_SAM_APDU [18:34:46]CAPDU: 80 13 01 00 [18:34:46]Write to MH i2c: E2 08 00 26 07 80 13 01 00 00 00 00 00 AA [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:46]Read from MH i2c: E2 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 0E 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 0E 00 26 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F4 [18:34:46]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:34:46]wFMCommunicate OK [18:34:46]SAM_PROTO_GetShiftState done [18:34:46]FM_GetShiftState done [18:34:46]req_shift_opened done [18:34:46]requested_item shift.open_date is exist - process it [18:34:46]req_shift_open_date [18:34:46]req_shift_open_date done [18:34:46]produce_requested_data done [18:34:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164334,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:34:46]process_action_free print_text [18:34:46]json_value_free [18:34:46]json_value_free done [18:34:46]process_json_proto returns [18:34:46]Send response to host [18:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164334,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:34:46]free response buf [18:34:46]execute_script done [18:34:46]execute_script returns [18:34:46]free content buf [18:34:46]Sock 8.Close socket [18:34:46]Sock 8.Thread stoped [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:40:59]accept exits with 9 [18:40:59]New connection [18:40:59]New thread 3066998116 created [18:40:59]Thread 3067141476 joined [18:40:59]Waiting for new connection... [18:40:59] Sock 9.Parse request [18:40:59]Sock 9.Check first char [18:40:59]Sock 9.First char is OK [18:40:59]request: POST /json_proto HTTP/1.0 [18:40:59]Method: POST [18:40:59]URL: /json_proto [18:40:59]Method is POST - this is cgi request [18:40:59]url: /json_proto [18:40:59]query_string will be loaded in cgi processing [18:40:59]execute_cgi json_proto POST (null) [18:40:59]execute_cgi path=json_proto method=POST [18:40:59]POST find Content-Length [18:40:59]Host: 172.17.56.4:8080 [18:40:59]Content-Length: 639 [18:40:59]Content-Type: application/json [18:40:59] [18:40:59]POST finish read [18:40:59]Found Content-Length = 639 [18:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:59]execute_script... [18:40:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:59]POST & json_proto [18:40:59]process_json_proto [18:40:59]json parsed OK: [18:40:59]protocol is kg_v1.0 [18:40:59]action value=close_receipt [18:40:59]process_action close_receipt [18:40:59]cmd_close_receipt [18:40:59]MH_GetDate [18:40:59]Write to MH i2c: F0 00 00 27 07 1D [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: F0 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: F0 09 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: F0 09 00 27 07 00 BC 78 91 66 C9 DC B2 64 0C [18:40:59]GetLastDocTimeStamp 1720808632 [18:40:59]current date 1720809660 [18:40:59]FM_GetShiftState [18:40:59]SAM_PROTO_GetShiftState [18:40:59]wFMCommunicate request_size=4 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 13 01 00 [18:40:59]Write to MH i2c: E2 08 00 28 07 80 13 01 00 00 00 00 00 AC [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 0E 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 0E 00 28 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F6 [18:41:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:41:00]wFMCommunicate OK [18:41:00]SAM_PROTO_GetShiftState done [18:41:00]FM_GetShiftState done [18:41:00]opened in 1720744654 [18:41:00]opened+sec_in_day 1720831054 [18:41:00]quantity*price = 143800 [18:41:00]sum+1 = 143801 [18:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1438.00 НСП 1% : 12.73 НДС 12% : 152.71 Наличными: 1438.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 256 12.07.2024 18:41 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164335 ФПД: 189661323396553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T184101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164335&fm=189661323396553&tin=02508201610067®Number=0000000000090829&sum=143800 [18:41:01]StoreToDocumentArchive [18:41:01]shift 445 fd 164335 [18:41:01]save to /storage/0445/doc_00164335 [18:41:01]save last doc name /storage/0445/doc_00164335 to /storage/kkm_last_doc_name [18:41:01]save OK [18:41:01]Clear old archive folders... [18:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:41:01]tlvbuf is B6DD6B20 [18:41:01]SAM_PROTO_ClearQueue [18:41:01]wFMCommunicate request_size=4 [18:41:01]MH_SAM_APDU [18:41:01]CAPDU: 80 09 00 00 [18:41:01]Write to MH i2c: E2 08 00 35 07 80 09 00 00 00 00 00 00 AE [18:41:01]Write i2c OK [18:41:01]MH_I2C_Read... [18:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:01]Read from MH i2c: E2 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 03 00 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [18:41:01]RAPDU: 90 00 [18:41:01]wFMCommunicate OK [18:41:01]SAM_PROTO_ClearQueue done [18:41:01]KKMCreateOFDPacket [18:41:01]OFDProtocolAddRootSTLVToBuf [18:41:01]FM_MakeSignedData [18:41:01]FM_MakeSignedData [18:41:01]SAM_PROTO_SignData [18:41:01]wFMCommunicate request_size=4 [18:41:01]MH_SAM_APDU [18:41:01]CAPDU: 80 0D 01 02 [18:41:01]Write to MH i2c: E2 08 00 36 07 80 0D 01 02 00 00 00 00 B6 [18:41:01]Write i2c OK [18:41:01]MH_I2C_Read... [18:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:01]Read from MH i2c: E2 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 03 00 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 03 00 36 07 00 90 00 B1 [18:41:01]RAPDU: 90 00 [18:41:01]wFMCommunicate OK [18:41:01]wFMCommunicate request_size=255 [18:41:01]MH_SAM_APDU [18:41: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 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 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 BD 78 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 81 02 00 35 04 06 00 AC 7E F7 CF [18:41:01]Write to MH i2c: E2 02 01 37 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 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 BD 78 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 81 02 00 35 04 06 00 AC 7E F7 CF 00 00 A6 [18:41:01]Write i2c OK [18:41:01]MH_I2C_Read... [18:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:01]Read from MH i2c: E2 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 03 00 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 03 00 37 07 00 90 00 B2 [18:41:01]RAPDU: 90 00 [18:41:01]wFMCommunicate OK [18:41:01]wFMCommunicate request_size=7 [18:41:01]MH_SAM_APDU [18:41:01]CAPDU: 80 0D 02 02 02 05 C9 [18:41:01]Write to MH i2c: E2 0A 00 38 07 80 0D 02 02 02 00 05 C9 00 00 8B [18:41:01]Write i2c OK [18:41:01]MH_I2C_Read... [18:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:01]Read from MH i2c: E2 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 03 00 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [18:41:01]RAPDU: 90 00 [18:41:01]wFMCommunicate OK [18:41:01]wFMCommunicate request_size=4 [18:41:01]MH_SAM_APDU [18:41:01]CAPDU: 80 0D 03 02 [18:41:01]Write to MH i2c: E2 08 00 39 07 80 0D 03 02 00 00 00 00 BB [18:41:01]Write i2c OK [18:41:01]MH_I2C_Read... [18:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:01]Read from MH i2c: E2 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 0B 00 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 0B 00 39 07 00 91 37 7A 91 94 DE 3E 29 90 00 68 [18:41:01]RAPDU: 91 37 7A 91 94 DE 3E 29 90 00 [18:41:01]wFMCommunicate OK [18:41:01]SAM_PROTO_SignData done [18:41:01]FM_MakeSignedData done [18:41:01]CreateOFDProtocolMessage [18:41:01]wFMCommunicate request_size=4 [18:41:01]MH_SAM_APDU [18:41:01]CAPDU: 80 11 00 00 [18:41:01]Write to MH i2c: E2 08 00 3A 07 80 11 00 00 00 00 00 00 BB [18:41:01]Write i2c OK [18:41:01]MH_I2C_Read... [18:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:01]Read from MH i2c: E2 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 17 00 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: E2 17 00 3A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 11 [18:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:41:01]wFMCommunicate OK [18:41:01]CreateOFDProtocolMessage done [18:41:01]OFDSenderStorePacket 164335 [18:41:01]StoreOFDPacket docnum=164335 [18:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 95 11 04 01 35 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 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 BD 78 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 81 02 00 35 04 06 00 AC 7E F7 CF 05 C9 91 37 7A 91 94 DE 3E 29 [18:41:01]CheckFolder [18:41:01]dirname=/storage/ofd_packets [18:41:01]CheckFolder done [18:41:01]ProducePacketName [18:41:01]name=ofd_packets/00164335 [18:41:01]NVStorageSaveData ofd_packets/00164335 [18:41:01]File name is /storage/ofd_packets/00164335 [18:41:01]Write 298 bytes [18:41:01]NVStorageSaveData done [18:41:01]OFDSenderStorePacket done [18:41:01]KKMCreateOFDPacket done [18:41:01]NVStorageSaveData kkm_last_timestamp [18:41:01]File name is /storage/kkm_last_timestamp [18:41:01]Write 4 bytes [18:41:01]NVStorageSaveData done [18:41:01]ExternCall_PrintAddStr [18:41:01]wPrintStart [18:41:01]Write to MH i2c: 01 00 00 3B 07 42 [18:41:01]Write i2c OK [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: 01 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: 01 07 00 [18:41:01]MH_I2C_Read... [18:41:01]Read from MH i2c: 01 07 00 3B 07 00 00 00 00 00 FF 0F 57 [18:41:01]RasterBufferAndPrint [18:41:01]line Счет N : (1)458419 [18:41:01]line ИНН: 02508201610067 [18:41:01]line Контрольно-Кассовый Чек [18:41:01]line ПРОДАЖА [18:41:01]line ТРК (МРК, ГНК) : 11 [18:41:01]line Товар: 2710194210 [18:41:01]line ДТ-К-5 [18:41:01]line 20.000 * 71.90 [18:41:01]line = 1438.00 [18:41:01]line НДС 12% НСП 1% [18:41:01]line > о реализуемом товаре [18:41:01]line ИТОГО: 1438.00 [18:41:01]line НСП 1% : 12.73 [18:41:01]line НДС 12% : 152.71 [18:41:01]line Наличными: 1438.00 [18:41:01]line Безнал.: 0.00 [18:41:01]line Место: АЗС № 72 "Партнер Нефть" [18:41:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:41:01]line СНО: Общий режим [18:41:01]line Чек 256 12.07.2024 18:41 [18:41:01]line Смена: 445 ФФД: 1.0 [18:41:01]line ЗНМ: 0300000160 [18:41:01]line РНМ: 0000000000090829 [18:41:01]line Версия ККМ: 001 [18:41:01]line ФМ: 0000000000874718 [18:41:01]line ФД: 164335 [18:41:01]line ФПД: 189661323396553 [18:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T184101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164335&fm=189661323396553&tin=02508201610067®Number=0000000000090829&sum=143800 [18:41:02]OFD Sender: Processing packet 164335 [packets to send 104, broken 103] [18:41:02]ProducePacketName [18:41:02]name=ofd_packets/00164335 [18:41:02]OFD Sender: To server: pG, [18:41:02]CommunicateWithHost lk.salyk.kg:30040 [18:41:02]ConnectInit lk.salyk.kg [18:41:02]written 0, free lines is 4095 [18:41:02]Connected sock=10 [18:41:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 95 11 04 01 35 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 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 BD 78 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 81 02 00 35 04 06 00 AC 7E F7 CF 05 C9 91 37 7A 91 94 DE 3E 29 [18:41:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D2 C5 47 00 C2 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 34 37 31 38 10 04 04 00 EF 81 02 00 F4 03 04 00 50 1F 91 66 B6 04 01 00 00 B2 A3 5C 1C 50 E1 16 9B [18:41:02]CommunicateWithHost err = 0 [18:41:02]CheckOFDResponse [18:41:02]1017 (14) - 77093643461234 [18:41:02]1041 (16) - 0000000000874718 [18:41:02]1040 (4) - 164335 [18:41:02]1012 (4) - 12.07.2024 12:19 [18:41:02]1206 (1) - 0 [18:41:02]OFD Sender: Remove packet 164335 [18:41:02]ProducePacketName [18:41:02]name=ofd_packets/00164335 [18:41:02]NVStorageDeleteData [18:41:02]Write to MH i2c: 01 00 00 62 07 69 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: 01 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: 01 07 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: 01 07 00 62 07 00 00 00 00 00 32 0D AF [18:41:02]RasterBufferAndPrint [18:41:02]line [18:41:02]line [18:41:02]line [18:41:02]line [18:41:02]line [18:41:02]written 0, free lines is 3384 [18:41:02]MH_Cut [18:41:02]Write to MH i2c: D1 01 00 69 07 01 42 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: D1 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: D1 01 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: D1 01 00 69 07 00 41 [18:41:02]Write to MH i2c: 01 00 00 6A 07 71 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]OFD Sender: No OFD packet to send [18:41:03]*** Cut start [18:41:03]*** Partial cut [18:41:03]*** CUTSNS_PIN = 1 [18:41:03]*** CUTSNS_PIN = 0 [18:41:03]*** Brake cut motor [18:41:03]Read from MH i2c: 01 [18:41:03]MH_I2C_Read... [18:41:03]*** Stop cut motor [18:41:03]*** Cut end [18:41:03]Read from MH i2c: 01 07 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [18:41:03]process_action close_receipt done [18:41:03]requested_data is exist [18:41:03]produce_requested_data [18:41:03]requested_item fm.sn is exist - process it [18:41:03]wFMCommunicate request_size=4 [18:41:03]MH_SAM_APDU [18:41:03]CAPDU: 80 11 00 00 [18:41:03]Write to MH i2c: E2 08 00 6B 07 80 11 00 00 00 00 00 00 EC [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:03]Read from MH i2c: E2 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 17 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 17 00 6B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [18:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:41:03]wFMCommunicate OK [18:41:03]requested_item fd.num is exist - process it [18:41:03]SAM_PROTO_GetFieldsCounters [18:41:03]wFMCommunicate request_size=4 [18:41:03]MH_SAM_APDU [18:41:03]CAPDU: 80 13 00 00 [18:41:03]Write to MH i2c: E2 08 00 6C 07 80 13 00 00 00 00 00 00 EF [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:03]Read from MH i2c: E2 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 62 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 62 00 6C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [18:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:03]wFMCommunicate OK [18:41:03]SAM_PROTO_GetFieldsCounters done [18:41:03]requested_item shift.num is exist - process it [18:41:03]requested_item shift.opened is exist - process it [18:41:03]req_shift_opened [18:41:03]FM_GetShiftState [18:41:03]SAM_PROTO_GetShiftState [18:41:03]wFMCommunicate request_size=4 [18:41:03]MH_SAM_APDU [18:41:03]CAPDU: 80 13 01 00 [18:41:03]Write to MH i2c: E2 08 00 6D 07 80 13 01 00 00 00 00 00 F1 [18:41:03]Write i2c OK [18:41:03]MH_I2C_Read... [18:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:03]Read from MH i2c: E2 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 0E 00 [18:41:03]MH_I2C_Read... [18:41:03]Read from MH i2c: E2 0E 00 6D 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3B [18:41:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:41:03]wFMCommunicate OK [18:41:03]SAM_PROTO_GetShiftState done [18:41:03]FM_GetShiftState done [18:41:03]req_shift_opened done [18:41:03]requested_item shift.open_date is exist - process it [18:41:03]req_shift_open_date [18:41:03]req_shift_open_date done [18:41:03]produce_requested_data done [18:41:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164335,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:41:03]process_action_free close_receipt [18:41:03]json_value_free [18:41:03]json_value_free done [18:41:03]process_json_proto returns [18:41:03]Send response to host [18:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164335,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:41:03]free response buf [18:41:03]execute_script done [18:41:03]execute_script returns [18:41:03]free content buf [18:41:03]Sock 9.Close socket [18:41:03]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:08]accept exits with 8 [18:42:08]New connection [18:42:08]New thread 3067141476 created [18:42:08]Thread 3066998116 joined [18:42:08]Waiting for new connection... [18:42:08] Sock 8.Parse request [18:42:08]Sock 8.Check first char [18:42:08]Sock 8.First char is OK [18:42:08]request: POST /json_proto HTTP/1.0 [18:42:08]Method: POST [18:42:08]URL: /json_proto [18:42:08]Method is POST - this is cgi request [18:42:08]url: /json_proto [18:42:08]query_string will be loaded in cgi processing [18:42:08]execute_cgi json_proto POST (null) [18:42:08]execute_cgi path=json_proto method=POST [18:42:08]POST find Content-Length [18:42:08]Host: 172.17.56.4:8080 [18:42:08]Content-Length: 793 [18:42:08]Content-Type: application/json [18:42:08] [18:42:08]POST finish read [18:42:08]Found Content-Length = 793 [18:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 30.670, "sum" : 2000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:08]execute_script... [18:42: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)458420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 30.670, "sum" : 2000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:08]POST & json_proto [18:42:08]process_json_proto [18:42:08]json parsed OK: [18:42:08]protocol is kg_v1.0 [18:42:08]action value=close_receipt [18:42:08]process_action close_receipt [18:42:08]cmd_close_receipt [18:42:08]MH_GetDate [18:42:08]Write to MH i2c: F0 00 00 6E 07 64 [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: F0 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: F0 09 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: F0 09 00 6E 07 00 01 79 91 66 C9 DC B2 64 99 [18:42:08]GetLastDocTimeStamp 1720809661 [18:42:08]current date 1720809729 [18:42:08]FM_GetShiftState [18:42:08]SAM_PROTO_GetShiftState [18:42:08]wFMCommunicate request_size=4 [18:42:08]MH_SAM_APDU [18:42:08]CAPDU: 80 13 01 00 [18:42:08]Write to MH i2c: E2 08 00 6F 07 80 13 01 00 00 00 00 00 F3 [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:08]Read from MH i2c: E2 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 0E 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 0E 00 6F 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3D [18:42:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:42:08]wFMCommunicate OK [18:42:08]SAM_PROTO_GetShiftState done [18:42:08]FM_GetShiftState done [18:42:08]opened in 1720744654 [18:42:08]opened+sec_in_day 1720831054 [18:42:08]quantity*price = 200029 [18:42:08]sum+1 = 200031 [18:42:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.30 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.30 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 257 12.07.2024 18:42 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164336 ФПД: 93332961156049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T184209&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164336&fm=93332961156049&tin=02508201610067®Number=0000000000090829&sum=200030 [18:42:10]StoreToDocumentArchive [18:42:10]shift 445 fd 164336 [18:42:10]save to /storage/0445/doc_00164336 [18:42:10]save last doc name /storage/0445/doc_00164336 to /storage/kkm_last_doc_name [18:42:10]save OK [18:42:10]Clear old archive folders... [18:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:10]tlvbuf is 01E671F0 [18:42:10]SAM_PROTO_ClearQueue [18:42:10]wFMCommunicate request_size=4 [18:42:10]MH_SAM_APDU [18:42:10]CAPDU: 80 09 00 00 [18:42:10]Write to MH i2c: E2 08 00 7C 07 80 09 00 00 00 00 00 00 F5 [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:10]Read from MH i2c: E2 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 03 00 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [18:42:10]RAPDU: 90 00 [18:42:10]wFMCommunicate OK [18:42:10]SAM_PROTO_ClearQueue done [18:42:10]KKMCreateOFDPacket [18:42:10]OFDProtocolAddRootSTLVToBuf [18:42:10]FM_MakeSignedData [18:42:10]FM_MakeSignedData [18:42:10]SAM_PROTO_SignData [18:42:10]wFMCommunicate request_size=4 [18:42:10]MH_SAM_APDU [18:42:10]CAPDU: 80 0D 01 02 [18:42:10]Write to MH i2c: E2 08 00 7D 07 80 0D 01 02 00 00 00 00 FD [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:10]Read from MH i2c: E2 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 03 00 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [18:42:10]RAPDU: 90 00 [18:42:10]wFMCommunicate OK [18:42:10]wFMCommunicate request_size=255 [18:42:10]MH_SAM_APDU [18:42: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 CE 77 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 5E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 01 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 81 02 00 35 04 06 00 54 [18:42:10]Write to MH i2c: E2 02 01 7E 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 77 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 5E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 01 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 81 02 00 35 04 06 00 54 00 00 63 [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:10]Read from MH i2c: E2 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 03 00 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [18:42:10]RAPDU: 90 00 [18:42:10]wFMCommunicate OK [18:42:10]wFMCommunicate request_size=10 [18:42:10]MH_SAM_APDU [18:42:10]CAPDU: 80 0D 02 02 05 E2 C5 FE DB D1 [18:42:10]Write to MH i2c: E2 0D 00 7F 07 80 0D 02 02 05 00 E2 C5 FE DB D1 00 00 5B [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:10]Read from MH i2c: E2 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 03 00 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [18:42:10]RAPDU: 90 00 [18:42:10]wFMCommunicate OK [18:42:10]wFMCommunicate request_size=4 [18:42:10]MH_SAM_APDU [18:42:10]CAPDU: 80 0D 03 02 [18:42:10]Write to MH i2c: E2 08 00 80 07 80 0D 03 02 00 00 00 00 02 [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:10]Read from MH i2c: E2 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 0B 00 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 0B 00 80 07 00 28 B8 01 9D 35 84 07 3B 90 00 7C [18:42:10]RAPDU: 28 B8 01 9D 35 84 07 3B 90 00 [18:42:10]wFMCommunicate OK [18:42:10]SAM_PROTO_SignData done [18:42:10]FM_MakeSignedData done [18:42:10]CreateOFDProtocolMessage [18:42:10]wFMCommunicate request_size=4 [18:42:10]MH_SAM_APDU [18:42:10]CAPDU: 80 11 00 00 [18:42:10]Write to MH i2c: E2 08 00 81 07 80 11 00 00 00 00 00 00 02 [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:10]Read from MH i2c: E2 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 17 00 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: E2 17 00 81 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [18:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:42:10]wFMCommunicate OK [18:42:10]CreateOFDProtocolMessage done [18:42:10]OFDSenderStorePacket 164336 [18:42:10]StoreOFDPacket docnum=164336 [18:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C0 A0 07 01 1F 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 CE 77 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 5E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 01 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 81 02 00 35 04 06 00 54 E2 C5 FE DB D1 28 B8 01 9D 35 84 07 3B [18:42:10]CheckFolder [18:42:10]dirname=/storage/ofd_packets [18:42:10]CheckFolder done [18:42:10]ProducePacketName [18:42:10]name=ofd_packets/00164336 [18:42:10]NVStorageSaveData ofd_packets/00164336 [18:42:10]File name is /storage/ofd_packets/00164336 [18:42:10]Write 301 bytes [18:42:10]NVStorageSaveData done [18:42:10]OFDSenderStorePacket done [18:42:10]KKMCreateOFDPacket done [18:42:10]NVStorageSaveData kkm_last_timestamp [18:42:10]File name is /storage/kkm_last_timestamp [18:42:10]Write 4 bytes [18:42:10]NVStorageSaveData done [18:42:10]ExternCall_PrintAddStr [18:42:10]wPrintStart [18:42:10]Write to MH i2c: 01 00 00 82 07 89 [18:42:10]Write i2c OK [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: 01 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: 01 07 00 [18:42:10]MH_I2C_Read... [18:42:10]Read from MH i2c: 01 07 00 82 07 00 00 00 00 00 FF 0F 9E [18:42:10]RasterBufferAndPrint [18:42:10]line Счет N : (1)458420 [18:42:10]line ИНН: 02508201610067 [18:42:10]line Контрольно-Кассовый Чек [18:42:10]line ПРОДАЖА [18:42:10]line ТРК (МРК, ГНК) : 12 [18:42:10]line Товар: 2710124130 [18:42:10]line Аи-92-К-5 [18:42:10]line 30.670 * 65.22 [18:42:10]line = 2000.30 [18:42:10]line НДС 12% НСП 1% [18:42:10]line > о реализуемом товаре [18:42:10]line ИТОГО: 2000.30 [18:42:10]line НСП 1% : 17.70 [18:42:10]line НДС 12% : 212.42 [18:42:10]line Наличными: 0.00 [18:42:10]line Безнал.: 2000.30 [18:42:10]line Место: АЗС № 72 "Партнер Нефть" [18:42:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:42:10]line СНО: Общий режим [18:42:10]line Чек 257 12.07.2024 18:42 [18:42:10]line Смена: 445 ФФД: 1.0 [18:42:10]line ЗНМ: 0300000160 [18:42:10]line РНМ: 0000000000090829 [18:42:10]line Версия ККМ: 001 [18:42:10]line Платежная система: KICB Банк [18:42:10]line ФМ: 0000000000874718 [18:42:10]line ФД: 164336 [18:42:10]line ФПД: 93332961156049 [18:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T184209&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164336&fm=93332961156049&tin=02508201610067®Number=0000000000090829&sum=200030 [18:42:10]OFD Sender: Processing packet 164336 [packets to send 104, broken 103] [18:42:10]ProducePacketName [18:42:10]name=ofd_packets/00164336 [18:42:10]OFD Sender: To server: pG, [18:42:10]CommunicateWithHost lk.salyk.kg:30040 [18:42:10]ConnectInit lk.salyk.kg [18:42:10]written 0, free lines is 4095 [18:42:10]Connected sock=10 [18:42:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C0 A0 07 01 1F 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 CE 77 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 5E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 01 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 81 02 00 35 04 06 00 54 E2 C5 FE DB D1 28 B8 01 9D 35 84 07 3B [18:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F5 27 47 00 7A 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 34 37 31 38 10 04 04 00 F0 81 02 00 F4 03 04 00 95 1F 91 66 B6 04 01 00 00 F5 8B 9D 35 60 84 08 8A [18:42:11]CommunicateWithHost err = 0 [18:42:11]CheckOFDResponse [18:42:11]1017 (14) - 77093643461234 [18:42:11]1041 (16) - 0000000000874718 [18:42:11]1040 (4) - 164336 [18:42:11]1012 (4) - 12.07.2024 12:20 [18:42:11]1206 (1) - 0 [18:42:11]OFD Sender: Remove packet 164336 [18:42:11]ProducePacketName [18:42:11]name=ofd_packets/00164336 [18:42:11]NVStorageDeleteData [18:42:11]Write to MH i2c: 01 00 00 AB 07 B2 [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: 01 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: 01 07 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 0C 0D D2 [18:42:11]RasterBufferAndPrint [18:42:11]line [18:42:11]line [18:42:11]line [18:42:11]line [18:42:11]line [18:42:11]written 0, free lines is 3346 [18:42:11]MH_Cut [18:42:11]Write to MH i2c: D1 01 00 B2 07 01 8B [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: D1 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: D1 01 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: D1 01 00 B2 07 00 8A [18:42:11]Write to MH i2c: 01 00 00 B3 07 BA [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]OFD Sender: No OFD packet to send [18:42:12]*** Cut start [18:42:12]*** Partial cut [18:42:12]*** CUTSNS_PIN = 1 [18:42:12]*** CUTSNS_PIN = 0 [18:42:12]*** Brake cut motor [18:42:12]Read from MH i2c: 01 [18:42:12]MH_I2C_Read... [18:42:12]*** Stop cut motor [18:42:12]*** Cut end [18:42:12]Read from MH i2c: 01 07 00 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: 01 07 00 B3 07 00 00 00 00 00 FF 0F CF [18:42:12]process_action close_receipt done [18:42:12]requested_data is exist [18:42:12]produce_requested_data [18:42:12]requested_item fm.sn is exist - process it [18:42:12]wFMCommunicate request_size=4 [18:42:12]MH_SAM_APDU [18:42:12]CAPDU: 80 11 00 00 [18:42:12]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [18:42:12]Write i2c OK [18:42:12]MH_I2C_Read... [18:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:12]Read from MH i2c: E2 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 17 00 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [18:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:42:12]wFMCommunicate OK [18:42:12]requested_item fd.num is exist - process it [18:42:12]SAM_PROTO_GetFieldsCounters [18:42:12]wFMCommunicate request_size=4 [18:42:12]MH_SAM_APDU [18:42:12]CAPDU: 80 13 00 00 [18:42:12]Write to MH i2c: E2 08 00 B5 07 80 13 00 00 00 00 00 00 38 [18:42:12]Write i2c OK [18:42:12]MH_I2C_Read... [18:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:12]Read from MH i2c: E2 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 62 00 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 62 00 B5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [18:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:12]wFMCommunicate OK [18:42:12]SAM_PROTO_GetFieldsCounters done [18:42:12]requested_item shift.num is exist - process it [18:42:12]requested_item shift.opened is exist - process it [18:42:12]req_shift_opened [18:42:12]FM_GetShiftState [18:42:12]SAM_PROTO_GetShiftState [18:42:12]wFMCommunicate request_size=4 [18:42:12]MH_SAM_APDU [18:42:12]CAPDU: 80 13 01 00 [18:42:12]Write to MH i2c: E2 08 00 B6 07 80 13 01 00 00 00 00 00 3A [18:42:12]Write i2c OK [18:42:12]MH_I2C_Read... [18:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:12]Read from MH i2c: E2 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 0E 00 [18:42:12]MH_I2C_Read... [18:42:12]Read from MH i2c: E2 0E 00 B6 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 84 [18:42:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:42:12]wFMCommunicate OK [18:42:12]SAM_PROTO_GetShiftState done [18:42:12]FM_GetShiftState done [18:42:12]req_shift_opened done [18:42:12]requested_item shift.open_date is exist - process it [18:42:12]req_shift_open_date [18:42:12]req_shift_open_date done [18:42:12]produce_requested_data done [18:42:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164336,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:42:12]process_action_free close_receipt [18:42:12]json_value_free [18:42:12]json_value_free done [18:42:12]process_json_proto returns [18:42:12]Send response to host [18:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164336,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:42:12]free response buf [18:42:12]execute_script done [18:42:12]execute_script returns [18:42:12]free content buf [18:42:12]Sock 8.Close socket [18:42:12]Sock 8.Thread stoped [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:30]accept exits with 9 [18:44:30]New connection [18:44:30]New thread 3066998116 created [18:44:30]Thread 3067141476 joined [18:44:30]Waiting for new connection... [18:44:30] Sock 9.Parse request [18:44:30]Sock 9.Check first char [18:44:30]Sock 9.First char is OK [18:44:30]request: POST /json_proto HTTP/1.0 [18:44:30]Method: POST [18:44:30]URL: /json_proto [18:44:30]Method is POST - this is cgi request [18:44:30]url: /json_proto [18:44:30]query_string will be loaded in cgi processing [18:44:30]execute_cgi json_proto POST (null) [18:44:30]execute_cgi path=json_proto method=POST [18:44:30]POST find Content-Length [18:44:30]Host: 172.17.56.4:8080 [18:44:30]Content-Length: 679 [18:44:30]Content-Type: application/json [18:44:30] [18:44:30]POST finish read [18:44:30]Found Content-Length = 679 [18:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458421", "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" : 71.90, "quantity" : 17.040, "sum" : 1225.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1225.00, "total" : 1225.00, "payments": [ { "type": 0, "sum" : 1225.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:30]execute_script... [18:44: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)458421", "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" : 71.90, "quantity" : 17.040, "sum" : 1225.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1225.00, "total" : 1225.00, "payments": [ { "type": 0, "sum" : 1225.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:30]POST & json_proto [18:44:30]process_json_proto [18:44:30]json parsed OK: [18:44:30]protocol is kg_v1.0 [18:44:30]action value=close_receipt [18:44:30]process_action close_receipt [18:44:30]cmd_close_receipt [18:44:30]MH_GetDate [18:44:30]Write to MH i2c: F0 00 00 B7 07 AD [18:44:30]Write i2c OK [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: F0 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: F0 09 00 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: F0 09 00 B7 07 00 8F 79 91 66 C9 DC B2 64 70 [18:44:30]GetLastDocTimeStamp 1720809729 [18:44:30]current date 1720809871 [18:44:30]FM_GetShiftState [18:44:30]SAM_PROTO_GetShiftState [18:44:30]wFMCommunicate request_size=4 [18:44:30]MH_SAM_APDU [18:44:30]CAPDU: 80 13 01 00 [18:44:30]Write to MH i2c: E2 08 00 B8 07 80 13 01 00 00 00 00 00 3C [18:44:30]Write i2c OK [18:44:30]MH_I2C_Read... [18:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:30]Read from MH i2c: E2 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 0E 00 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 0E 00 B8 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 86 [18:44:30]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:44:30]wFMCommunicate OK [18:44:30]SAM_PROTO_GetShiftState done [18:44:30]FM_GetShiftState done [18:44:30]opened in 1720744654 [18:44:30]opened+sec_in_day 1720831054 [18:44:30]quantity*price = 122517 [18:44:30]sum+1 = 122519 [18:44:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 1225.00 Внесено: 1225.00 СДАЧА: 0.00 НСП 1% : 10.84 НДС 12% : 130.11 Наличными: 1225.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 258 12.07.2024 18:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164337 ФПД: 265676613985599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T184431&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164337&fm=265676613985599&tin=02508201610067®Number=0000000000090829&sum=122500 [18:44:31]StoreToDocumentArchive [18:44:31]shift 445 fd 164337 [18:44:31]save to /storage/0445/doc_00164337 [18:44:31]save last doc name /storage/0445/doc_00164337 to /storage/kkm_last_doc_name [18:44:31]save OK [18:44:31]Clear old archive folders... [18:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:44:31]tlvbuf is B6F083B0 [18:44:31]SAM_PROTO_ClearQueue [18:44:31]wFMCommunicate request_size=4 [18:44:31]MH_SAM_APDU [18:44:31]CAPDU: 80 09 00 00 [18:44:31]Write to MH i2c: E2 08 00 C5 07 80 09 00 00 00 00 00 00 3E [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:31]Read from MH i2c: E2 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 03 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [18:44:31]RAPDU: 90 00 [18:44:31]wFMCommunicate OK [18:44:31]SAM_PROTO_ClearQueue done [18:44:31]KKMCreateOFDPacket [18:44:31]OFDProtocolAddRootSTLVToBuf [18:44:31]FM_MakeSignedData [18:44:31]FM_MakeSignedData [18:44:31]SAM_PROTO_SignData [18:44:31]wFMCommunicate request_size=4 [18:44:31]MH_SAM_APDU [18:44:31]CAPDU: 80 0D 01 02 [18:44:31]Write to MH i2c: E2 08 00 C6 07 80 0D 01 02 00 00 00 00 46 [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:31]Read from MH i2c: E2 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 03 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [18:44:31]RAPDU: 90 00 [18:44:31]wFMCommunicate OK [18:44:31]wFMCommunicate request_size=255 [18:44:31]MH_SAM_APDU [18:44: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 90 42 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 96 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 32 00 00 00 00 07 04 06 00 84 DE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 8F 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 81 02 00 35 04 06 00 F1 A1 A8 33 [18:44:31]Write to MH i2c: E2 02 01 C7 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 42 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 96 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 32 00 00 00 00 07 04 06 00 84 DE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 8F 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 81 02 00 35 04 06 00 F1 A1 A8 33 00 00 CE [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]OFD Sender: No OFD packet to send [18:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:32]Read from MH i2c: E2 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 03 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [18:44:32]RAPDU: 90 00 [18:44:32]wFMCommunicate OK [18:44:32]wFMCommunicate request_size=7 [18:44:32]MH_SAM_APDU [18:44:32]CAPDU: 80 0D 02 02 02 A5 3F [18:44:32]Write to MH i2c: E2 0A 00 C8 07 80 0D 02 02 02 00 A5 3F 00 00 31 [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:32]Read from MH i2c: E2 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 03 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [18:44:32]RAPDU: 90 00 [18:44:32]wFMCommunicate OK [18:44:32]wFMCommunicate request_size=4 [18:44:32]MH_SAM_APDU [18:44:32]CAPDU: 80 0D 03 02 [18:44:32]Write to MH i2c: E2 08 00 C9 07 80 0D 03 02 00 00 00 00 4B [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:32]Read from MH i2c: E2 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 0B 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 0B 00 C9 07 00 13 B6 89 84 39 D3 35 CF 90 00 32 [18:44:32]RAPDU: 13 B6 89 84 39 D3 35 CF 90 00 [18:44:32]wFMCommunicate OK [18:44:32]SAM_PROTO_SignData done [18:44:32]FM_MakeSignedData done [18:44:32]CreateOFDProtocolMessage [18:44:32]wFMCommunicate request_size=4 [18:44:32]MH_SAM_APDU [18:44:32]CAPDU: 80 11 00 00 [18:44:32]Write to MH i2c: E2 08 00 CA 07 80 11 00 00 00 00 00 00 4B [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:32]Read from MH i2c: E2 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 17 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 17 00 CA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [18:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:44:32]wFMCommunicate OK [18:44:32]CreateOFDProtocolMessage done [18:44:32]OFDSenderStorePacket 164337 [18:44:32]StoreOFDPacket docnum=164337 [18:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F5 0F 04 01 7A 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 42 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 96 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 32 00 00 00 00 07 04 06 00 84 DE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 8F 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 81 02 00 35 04 06 00 F1 A1 A8 33 A5 3F 13 B6 89 84 39 D3 35 CF [18:44:32]CheckFolder [18:44:32]dirname=/storage/ofd_packets [18:44:32]CheckFolder done [18:44:32]ProducePacketName [18:44:32]name=ofd_packets/00164337 [18:44:32]NVStorageSaveData ofd_packets/00164337 [18:44:32]File name is /storage/ofd_packets/00164337 [18:44:32]Write 298 bytes [18:44:32]NVStorageSaveData done [18:44:32]OFDSenderStorePacket done [18:44:32]KKMCreateOFDPacket done [18:44:32]NVStorageSaveData kkm_last_timestamp [18:44:32]File name is /storage/kkm_last_timestamp [18:44:32]Write 4 bytes [18:44:32]NVStorageSaveData done [18:44:32]ExternCall_PrintAddStr [18:44:32]wPrintStart [18:44:32]Write to MH i2c: 01 00 00 CB 07 D2 [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 07 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 07 00 CB 07 00 00 00 00 00 FF 0F E7 [18:44:32]RasterBufferAndPrint [18:44:32]line Счет N : (1)458421 [18:44:32]line ИНН: 02508201610067 [18:44:32]line Контрольно-Кассовый Чек [18:44:32]line ПРОДАЖА [18:44:32]line ТРК (МРК, ГНК) : 21 [18:44:32]line Товар: 2710194210 [18:44:32]line ДТ-К-5 [18:44:32]line 17.040 * 71.90 [18:44:32]line = 1225.18 [18:44:32]line НДС 12% НСП 1% [18:44:32]line > о реализуемом товаре [18:44:32]line ОКРУГЛЕНИЕ: -0.18 [18:44:32]line ИТОГО: 1225.00 [18:44:32]line Внесено: 1225.00 [18:44:32]line СДАЧА: 0.00 [18:44:32]line НСП 1% : 10.84 [18:44:32]line НДС 12% : 130.11 [18:44:32]line Наличными: 1225.00 [18:44:32]line Безнал.: 0.00 [18:44:32]line Место: АЗС № 72 "Партнер Нефть" [18:44:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:44:32]line СНО: Общий режим [18:44:32]line Чек 258 12.07.2024 18:44 [18:44:32]line Смена: 445 ФФД: 1.0 [18:44:32]line ЗНМ: 0300000160 [18:44:32]line РНМ: 0000000000090829 [18:44:32]line Версия ККМ: 001 [18:44:32]line ФМ: 0000000000874718 [18:44:32]line ФД: 164337 [18:44:32]line ФПД: 265676613985599 [18:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T184431&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164337&fm=265676613985599&tin=02508201610067®Number=0000000000090829&sum=122500 [18:44:32]OFD Sender: Processing packet 164337 [packets to send 104, broken 103] [18:44:32]ProducePacketName [18:44:32]name=ofd_packets/00164337 [18:44:32]OFD Sender: To server: pG, [18:44:32]CommunicateWithHost lk.salyk.kg:30040 [18:44:32]ConnectInit lk.salyk.kg [18:44:32]written 0, free lines is 4095 [18:44:32]Connected sock=10 [18:44:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F5 0F 04 01 7A 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 42 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 96 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 32 00 00 00 00 07 04 06 00 84 DE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 8F 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 81 02 00 35 04 06 00 F1 A1 A8 33 A5 3F 13 B6 89 84 39 D3 35 CF [18:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A5 F6 47 00 5E 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 34 37 31 38 10 04 04 00 F1 81 02 00 F4 03 04 00 23 20 91 66 B6 04 01 00 00 1E 57 05 D3 3F FE D8 17 [18:44:32]CommunicateWithHost err = 0 [18:44:32]CheckOFDResponse [18:44:32]1017 (14) - 77093643461234 [18:44:32]1041 (16) - 0000000000874718 [18:44:32]1040 (4) - 164337 [18:44:32]1012 (4) - 12.07.2024 12:22 [18:44:32]1206 (1) - 0 [18:44:32]OFD Sender: Remove packet 164337 [18:44:32]ProducePacketName [18:44:32]name=ofd_packets/00164337 [18:44:32]NVStorageDeleteData [18:44:32]Write to MH i2c: 01 00 00 F5 07 FC [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 07 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 07 00 F5 07 00 00 00 00 00 F8 0C 07 [18:44:32]RasterBufferAndPrint [18:44:32]line [18:44:32]line [18:44:32]line [18:44:32]line [18:44:32]line [18:44:32]written 0, free lines is 3327 [18:44:32]MH_Cut [18:44:32]Write to MH i2c: D1 01 00 FC 07 01 D5 [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: D1 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: D1 01 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: D1 01 00 FC 07 00 D4 [18:44:32]Write to MH i2c: 01 00 00 FD 07 04 [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:33]OFD Sender: No OFD packet to send [18:44:33]*** Cut start [18:44:33]*** Partial cut [18:44:33]*** CUTSNS_PIN = 1 [18:44:33]*** CUTSNS_PIN = 0 [18:44:33]*** Brake cut motor [18:44:34]Read from MH i2c: 01 [18:44:34]MH_I2C_Read... [18:44:34]*** Stop cut motor [18:44:34]*** Cut end [18:44:34]Read from MH i2c: 01 07 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: 01 07 00 FD 07 00 00 00 00 00 FF 0F 19 [18:44:34]process_action close_receipt done [18:44:34]requested_data is exist [18:44:34]produce_requested_data [18:44:34]requested_item fm.sn is exist - process it [18:44:34]wFMCommunicate request_size=4 [18:44:34]MH_SAM_APDU [18:44:34]CAPDU: 80 11 00 00 [18:44:34]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:34]Read from MH i2c: E2 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 17 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [18:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:44:34]wFMCommunicate OK [18:44:34]requested_item fd.num is exist - process it [18:44:34]SAM_PROTO_GetFieldsCounters [18:44:34]wFMCommunicate request_size=4 [18:44:34]MH_SAM_APDU [18:44:34]CAPDU: 80 13 00 00 [18:44:34]Write to MH i2c: E2 08 00 FF 07 80 13 00 00 00 00 00 00 82 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:34]Read from MH i2c: E2 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 62 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 62 00 FF 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [18:44:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:34]wFMCommunicate OK [18:44:34]SAM_PROTO_GetFieldsCounters done [18:44:34]requested_item shift.num is exist - process it [18:44:34]requested_item shift.opened is exist - process it [18:44:34]req_shift_opened [18:44:34]FM_GetShiftState [18:44:34]SAM_PROTO_GetShiftState [18:44:34]wFMCommunicate request_size=4 [18:44:34]MH_SAM_APDU [18:44:34]CAPDU: 80 13 01 00 [18:44:34]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:34]Read from MH i2c: E2 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 0E 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CF [18:44:34]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:44:34]wFMCommunicate OK [18:44:34]SAM_PROTO_GetShiftState done [18:44:34]FM_GetShiftState done [18:44:34]req_shift_opened done [18:44:34]requested_item shift.open_date is exist - process it [18:44:34]req_shift_open_date [18:44:34]req_shift_open_date done [18:44:34]produce_requested_data done [18:44:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164337,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:44:34]process_action_free close_receipt [18:44:34]json_value_free [18:44:34]json_value_free done [18:44:34]process_json_proto returns [18:44:34]Send response to host [18:44:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164337,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:44:34]free response buf [18:44:34]execute_script done [18:44:34]execute_script returns [18:44:34]free content buf [18:44:34]Sock 9.Close socket [18:44:34]Sock 9.Thread stoped [18:44:37]accept exits with 8 [18:44:37]New connection [18:44:37]New thread 3067141476 created [18:44:37]Thread 3066998116 joined [18:44:37]Waiting for new connection... [18:44:37] Sock 8.Parse request [18:44:37]Sock 8.Check first char [18:44:37]Sock 8.First char is OK [18:44:37]request: POST /json_proto HTTP/1.0 [18:44:37]Method: POST [18:44:37]URL: /json_proto [18:44:37]Method is POST - this is cgi request [18:44:37]url: /json_proto [18:44:37]query_string will be loaded in cgi processing [18:44:37]execute_cgi json_proto POST (null) [18:44:37]execute_cgi path=json_proto method=POST [18:44:37]POST find Content-Length [18:44:37]Host: 172.17.56.4:8080 [18:44:37]Content-Length: 682 [18:44:37]Content-Type: application/json [18:44:37] [18:44:37]POST finish read [18:44:37]Found Content-Length = 682 [18:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:44:37]execute_script... [18:44: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)458422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:44:37]POST & json_proto [18:44:37]process_json_proto [18:44:37]json parsed OK: [18:44:37]protocol is kg_v1.0 [18:44:37]action value=close_receipt [18:44:37]process_action close_receipt [18:44:37]cmd_close_receipt [18:44:37]MH_GetDate [18:44:37]Write to MH i2c: F0 00 00 01 08 F8 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: F0 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: F0 09 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: F0 09 00 01 08 00 96 79 91 66 C9 DC B2 64 C2 [18:44:37]GetLastDocTimeStamp 1720809871 [18:44:37]current date 1720809878 [18:44:37]FM_GetShiftState [18:44:37]SAM_PROTO_GetShiftState [18:44:37]wFMCommunicate request_size=4 [18:44:37]MH_SAM_APDU [18:44:37]CAPDU: 80 13 01 00 [18:44:37]Write to MH i2c: E2 08 00 02 08 80 13 01 00 00 00 00 00 87 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:37]Read from MH i2c: E2 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 0E 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 0E 00 02 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D1 [18:44:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:44:37]wFMCommunicate OK [18:44:37]SAM_PROTO_GetShiftState done [18:44:37]FM_GetShiftState done [18:44:37]opened in 1720744654 [18:44:37]opened+sec_in_day 1720831054 [18:44:37]quantity*price = 100016 [18:44:37]sum+1 = 100017 [18:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 259 12.07.2024 18:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164338 ФПД: 142394304783900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T184438&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164338&fm=142394304783900&tin=02508201610067®Number=0000000000090829&sum=100000 [18:44:38]StoreToDocumentArchive [18:44:38]shift 445 fd 164338 [18:44:38]save to /storage/0445/doc_00164338 [18:44:38]save last doc name /storage/0445/doc_00164338 to /storage/kkm_last_doc_name [18:44:38]save OK [18:44:38]Clear old archive folders... [18:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:38]tlvbuf is 01E65350 [18:44:38]SAM_PROTO_ClearQueue [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 09 00 00 [18:44:38]Write to MH i2c: E2 08 00 0F 08 80 09 00 00 00 00 00 00 89 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [18:44:38]RAPDU: 90 00 [18:44:38]wFMCommunicate OK [18:44:38]SAM_PROTO_ClearQueue done [18:44:38]KKMCreateOFDPacket [18:44:38]OFDProtocolAddRootSTLVToBuf [18:44:38]FM_MakeSignedData [18:44:38]FM_MakeSignedData [18:44:38]SAM_PROTO_SignData [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 0D 01 02 [18:44:38]Write to MH i2c: E2 08 00 10 08 80 0D 01 02 00 00 00 00 91 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:39]Read from MH i2c: E2 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 03 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [18:44:39]RAPDU: 90 00 [18:44:39]wFMCommunicate OK [18:44:39]wFMCommunicate request_size=255 [18:44:39]MH_SAM_APDU [18:44: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 96 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 81 02 00 35 04 06 00 81 [18:44:39]Write to MH i2c: E2 02 01 11 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 96 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 81 02 00 35 04 06 00 81 00 00 6A [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:39]Read from MH i2c: E2 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 03 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 03 00 11 08 00 90 00 8D [18:44:39]RAPDU: 90 00 [18:44:39]wFMCommunicate OK [18:44:39]wFMCommunicate request_size=10 [18:44:39]MH_SAM_APDU [18:44:39]CAPDU: 80 0D 02 02 05 81 C1 F4 66 1C [18:44:39]Write to MH i2c: E2 0D 00 12 08 80 0D 02 02 05 00 81 C1 F4 66 1C 00 00 56 [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:39]Read from MH i2c: E2 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 03 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 03 00 12 08 00 90 00 8E [18:44:39]RAPDU: 90 00 [18:44:39]wFMCommunicate OK [18:44:39]wFMCommunicate request_size=4 [18:44:39]MH_SAM_APDU [18:44:39]CAPDU: 80 0D 03 02 [18:44:39]Write to MH i2c: E2 08 00 13 08 80 0D 03 02 00 00 00 00 96 [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:39]Read from MH i2c: E2 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 0B 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 0B 00 13 08 00 8E FC 12 8E 9A 5A 3A 3D 90 00 2C [18:44:39]RAPDU: 8E FC 12 8E 9A 5A 3A 3D 90 00 [18:44:39]wFMCommunicate OK [18:44:39]SAM_PROTO_SignData done [18:44:39]FM_MakeSignedData done [18:44:39]CreateOFDProtocolMessage [18:44:39]wFMCommunicate request_size=4 [18:44:39]MH_SAM_APDU [18:44:39]CAPDU: 80 11 00 00 [18:44:39]Write to MH i2c: E2 08 00 14 08 80 11 00 00 00 00 00 00 96 [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:39]Read from MH i2c: E2 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 17 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: E2 17 00 14 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [18:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:44:39]wFMCommunicate OK [18:44:39]CreateOFDProtocolMessage done [18:44:39]OFDSenderStorePacket 164338 [18:44:39]StoreOFDPacket docnum=164338 [18:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 07 86 07 01 98 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 96 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 81 02 00 35 04 06 00 81 81 C1 F4 66 1C 8E FC 12 8E 9A 5A 3A 3D [18:44:39]CheckFolder [18:44:39]dirname=/storage/ofd_packets [18:44:39]CheckFolder done [18:44:39]ProducePacketName [18:44:39]name=ofd_packets/00164338 [18:44:39]NVStorageSaveData ofd_packets/00164338 [18:44:39]File name is /storage/ofd_packets/00164338 [18:44:39]Write 301 bytes [18:44:39]NVStorageSaveData done [18:44:39]OFDSenderStorePacket done [18:44:39]KKMCreateOFDPacket done [18:44:39]NVStorageSaveData kkm_last_timestamp [18:44:39]File name is /storage/kkm_last_timestamp [18:44:39]Write 4 bytes [18:44:39]NVStorageSaveData done [18:44:39]ExternCall_PrintAddStr [18:44:39]wPrintStart [18:44:39]Write to MH i2c: 01 00 00 15 08 1D [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: 01 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: 01 07 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: 01 07 00 15 08 00 00 00 00 00 FF 0F 32 [18:44:39]RasterBufferAndPrint [18:44:39]line Счет N : (1)458422 [18:44:39]line ИНН: 02508201610067 [18:44:39]line Контрольно-Кассовый Чек [18:44:39]line ПРОДАЖА [18:44:39]line ТРК (МРК, ГНК) : 12 [18:44:39]line Товар: 2710124130 [18:44:39]line Аи-92-К-5 [18:44:39]line 15.200 * 65.80 [18:44:39]line = 1000.16 [18:44:39]line НДС 12% НСП 1% [18:44:39]line > о реализуемом товаре [18:44:39]line ОКРУГЛЕНИЕ: -0.16 [18:44:39]line ИТОГО: 1000.00 [18:44:39]line Внесено: 1000.00 [18:44:39]line СДАЧА: 0.00 [18:44:39]line НСП 1% : 8.85 [18:44:39]line НДС 12% : 106.21 [18:44:39]line Наличными: 1000.00 [18:44:39]line Безнал.: 0.00 [18:44:39]line Место: АЗС № 72 "Партнер Нефть" [18:44:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:44:39]line СНО: Общий режим [18:44:39]line Чек 259 12.07.2024 18:44 [18:44:39]line Смена: 445 ФФД: 1.0 [18:44:39]line ЗНМ: 0300000160 [18:44:39]line РНМ: 0000000000090829 [18:44:39]line Версия ККМ: 001 [18:44:39]line ФМ: 0000000000874718 [18:44:39]line ФД: 164338 [18:44:39]line ФПД: 142394304783900 [18:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T184438&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164338&fm=142394304783900&tin=02508201610067®Number=0000000000090829&sum=100000 [18:44:39]written 0, free lines is 4095 [18:44:39]OFD Sender: Processing packet 164338 [packets to send 104, broken 103] [18:44:39]ProducePacketName [18:44:39]name=ofd_packets/00164338 [18:44:39]OFD Sender: To server: pG, [18:44:39]CommunicateWithHost lk.salyk.kg:30040 [18:44:39]ConnectInit lk.salyk.kg [18:44:39]Connected sock=10 [18:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 07 86 07 01 98 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 96 79 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 81 02 00 35 04 06 00 81 81 C1 F4 66 1C 8E FC 12 8E 9A 5A 3A 3D [18:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 49 A8 47 00 36 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 34 37 31 38 10 04 04 00 F2 81 02 00 F4 03 04 00 2A 20 91 66 B6 04 01 00 00 95 E9 62 D7 E7 E8 0F 68 [18:44:39]CommunicateWithHost err = 0 [18:44:39]CheckOFDResponse [18:44:39]1017 (14) - 77093643461234 [18:44:39]1041 (16) - 0000000000874718 [18:44:39]1040 (4) - 164338 [18:44:39]1012 (4) - 12.07.2024 12:23 [18:44:39]1206 (1) - 0 [18:44:39]OFD Sender: Remove packet 164338 [18:44:39]ProducePacketName [18:44:39]name=ofd_packets/00164338 [18:44:39]NVStorageDeleteData [18:44:39]Write to MH i2c: 01 00 00 3F 08 47 [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: 01 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: 01 07 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: 01 07 00 3F 08 00 00 00 00 00 14 0D 6F [18:44:39]RasterBufferAndPrint [18:44:39]line [18:44:39]line [18:44:39]line [18:44:39]line [18:44:39]line [18:44:39]written 0, free lines is 3357 [18:44:39]MH_Cut [18:44:39]Write to MH i2c: D1 01 00 46 08 01 20 [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: D1 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: D1 01 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: D1 01 00 46 08 00 1F [18:44:39]Write to MH i2c: 01 00 00 47 08 4F [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:40]OFD Sender: No OFD packet to send [18:44:40]*** Cut start [18:44:40]*** Partial cut [18:44:40]*** CUTSNS_PIN = 1 [18:44:40]*** CUTSNS_PIN = 0 [18:44:40]*** Brake cut motor [18:44:41]Read from MH i2c: 01 [18:44:41]MH_I2C_Read... [18:44:41]*** Stop cut motor [18:44:41]*** Cut end [18:44:41]Read from MH i2c: 01 07 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: 01 07 00 47 08 00 00 00 00 00 FF 0F 64 [18:44:41]process_action close_receipt done [18:44:41]requested_data is exist [18:44:41]produce_requested_data [18:44:41]requested_item fm.sn is exist - process it [18:44:41]wFMCommunicate request_size=4 [18:44:41]MH_SAM_APDU [18:44:41]CAPDU: 80 11 00 00 [18:44:41]Write to MH i2c: E2 08 00 48 08 80 11 00 00 00 00 00 00 CA [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:41]Read from MH i2c: E2 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 17 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 17 00 48 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [18:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:44:41]wFMCommunicate OK [18:44:41]requested_item fd.num is exist - process it [18:44:41]SAM_PROTO_GetFieldsCounters [18:44:41]wFMCommunicate request_size=4 [18:44:41]MH_SAM_APDU [18:44:41]CAPDU: 80 13 00 00 [18:44:41]Write to MH i2c: E2 08 00 49 08 80 13 00 00 00 00 00 00 CD [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:41]Read from MH i2c: E2 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 62 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 62 00 49 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:41]wFMCommunicate OK [18:44:41]SAM_PROTO_GetFieldsCounters done [18:44:41]requested_item shift.num is exist - process it [18:44:41]requested_item shift.opened is exist - process it [18:44:41]req_shift_opened [18:44:41]FM_GetShiftState [18:44:41]SAM_PROTO_GetShiftState [18:44:41]wFMCommunicate request_size=4 [18:44:41]MH_SAM_APDU [18:44:41]CAPDU: 80 13 01 00 [18:44:41]Write to MH i2c: E2 08 00 4A 08 80 13 01 00 00 00 00 00 CF [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:41]Read from MH i2c: E2 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 0E 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 0E 00 4A 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 19 [18:44:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:44:41]wFMCommunicate OK [18:44:41]SAM_PROTO_GetShiftState done [18:44:41]FM_GetShiftState done [18:44:41]req_shift_opened done [18:44:41]requested_item shift.open_date is exist - process it [18:44:41]req_shift_open_date [18:44:41]req_shift_open_date done [18:44:41]produce_requested_data done [18:44:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164338,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:44:41]process_action_free close_receipt [18:44:41]json_value_free [18:44:41]json_value_free done [18:44:41]process_json_proto returns [18:44:41]Send response to host [18:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164338,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:44:41]free response buf [18:44:41]execute_script done [18:44:41]execute_script returns [18:44:41]free content buf [18:44:41]Sock 8.Close socket [18:44:41]Sock 8.Thread stoped [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:06]accept exits with 9 [18:52:06]New connection [18:52:06]New thread 3066998116 created [18:52:06]Thread 3067141476 joined [18:52:06]Waiting for new connection... [18:52:06] Sock 9.Parse request [18:52:06]Sock 9.Check first char [18:52:06]Sock 9.First char is OK [18:52:06]request: POST /json_proto HTTP/1.0 [18:52:06]Method: POST [18:52:06]URL: /json_proto [18:52:06]Method is POST - this is cgi request [18:52:06]url: /json_proto [18:52:06]query_string will be loaded in cgi processing [18:52:06]execute_cgi json_proto POST (null) [18:52:06]execute_cgi path=json_proto method=POST [18:52:06]POST find Content-Length [18:52:06]Host: 172.17.56.4:8080 [18:52:06]Content-Length: 677 [18:52:06]Content-Type: application/json [18:52:06] [18:52:06]POST finish read [18:52:06]Found Content-Length = 677 [18:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:06]execute_script... [18:52:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:06]POST & json_proto [18:52:06]process_json_proto [18:52:06]json parsed OK: [18:52:06]protocol is kg_v1.0 [18:52:06]action value=close_receipt [18:52:06]process_action close_receipt [18:52:06]cmd_close_receipt [18:52:06]MH_GetDate [18:52:06]Write to MH i2c: F0 00 00 4B 08 42 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: F0 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: F0 09 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: F0 09 00 4B 08 00 57 7B 91 66 C9 DC B2 64 CF [18:52:06]GetLastDocTimeStamp 1720809878 [18:52:06]current date 1720810327 [18:52:06]FM_GetShiftState [18:52:06]SAM_PROTO_GetShiftState [18:52:06]wFMCommunicate request_size=4 [18:52:06]MH_SAM_APDU [18:52:06]CAPDU: 80 13 01 00 [18:52:06]Write to MH i2c: E2 08 00 4C 08 80 13 01 00 00 00 00 00 D1 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:06]Read from MH i2c: E2 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 0E 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: E2 0E 00 4C 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1B [18:52:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:52:06]wFMCommunicate OK [18:52:06]SAM_PROTO_GetShiftState done [18:52:06]FM_GetShiftState done [18:52:06]opened in 1720744654 [18:52:06]opened+sec_in_day 1720831054 [18:52:06]quantity*price = 50008 [18:52:06]sum+1 = 50009 [18:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 260 12.07.2024 18:52 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164339 ФПД: 87089012246246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T185207&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164339&fm=87089012246246&tin=02508201610067®Number=0000000000090829&sum=50000 [18:52:08]StoreToDocumentArchive [18:52:08]shift 445 fd 164339 [18:52:08]save to /storage/0445/doc_00164339 [18:52:08]save last doc name /storage/0445/doc_00164339 to /storage/kkm_last_doc_name [18:52:08]save OK [18:52:08]Clear old archive folders... [18:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:08]tlvbuf is 01E66980 [18:52:08]SAM_PROTO_ClearQueue [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 09 00 00 [18:52:08]Write to MH i2c: E2 08 00 59 08 80 09 00 00 00 00 00 00 D3 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [18:52:08]RAPDU: 90 00 [18:52:08]wFMCommunicate OK [18:52:08]SAM_PROTO_ClearQueue done [18:52:08]KKMCreateOFDPacket [18:52:08]OFDProtocolAddRootSTLVToBuf [18:52:08]FM_MakeSignedData [18:52:08]FM_MakeSignedData [18:52:08]SAM_PROTO_SignData [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 0D 01 02 [18:52:08]Write to MH i2c: E2 08 00 5A 08 80 0D 01 02 00 00 00 00 DB [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [18:52:08]RAPDU: 90 00 [18:52:08]wFMCommunicate OK [18:52:08]wFMCommunicate request_size=255 [18:52:08]MH_SAM_APDU [18:52: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 04 01 00 00 F4 03 04 00 57 7B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 81 02 00 35 04 06 00 4F [18:52:08]Write to MH i2c: E2 02 01 5B 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 04 01 00 00 F4 03 04 00 57 7B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 81 02 00 35 04 06 00 4F 00 00 A5 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [18:52:08]RAPDU: 90 00 [18:52:08]wFMCommunicate OK [18:52:08]wFMCommunicate request_size=10 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 0D 02 02 05 34 FD A3 86 E6 [18:52:08]Write to MH i2c: E2 0D 00 5C 08 80 0D 02 02 05 00 34 FD A3 86 E6 00 00 28 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [18:52:08]RAPDU: 90 00 [18:52:08]wFMCommunicate OK [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 0D 03 02 [18:52:08]Write to MH i2c: E2 08 00 5D 08 80 0D 03 02 00 00 00 00 E0 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0B 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0B 00 5D 08 00 55 7F A0 16 F0 D8 ED 6C 90 00 8C [18:52:08]RAPDU: 55 7F A0 16 F0 D8 ED 6C 90 00 [18:52:08]wFMCommunicate OK [18:52:08]SAM_PROTO_SignData done [18:52:08]FM_MakeSignedData done [18:52:08]CreateOFDProtocolMessage [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 11 00 00 [18:52:08]Write to MH i2c: E2 08 00 5E 08 80 11 00 00 00 00 00 00 E0 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 17 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 17 00 5E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [18:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:52:08]wFMCommunicate OK [18:52:08]CreateOFDProtocolMessage done [18:52:08]OFDSenderStorePacket 164339 [18:52:08]StoreOFDPacket docnum=164339 [18:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E6 2A 07 01 2D AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 04 01 00 00 F4 03 04 00 57 7B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 81 02 00 35 04 06 00 4F 34 FD A3 86 E6 55 7F A0 16 F0 D8 ED 6C [18:52:08]CheckFolder [18:52:08]dirname=/storage/ofd_packets [18:52:08]CheckFolder done [18:52:08]ProducePacketName [18:52:08]name=ofd_packets/00164339 [18:52:08]NVStorageSaveData ofd_packets/00164339 [18:52:08]File name is /storage/ofd_packets/00164339 [18:52:08]Write 301 bytes [18:52:08]NVStorageSaveData done [18:52:08]OFDSenderStorePacket done [18:52:08]KKMCreateOFDPacket done [18:52:08]NVStorageSaveData kkm_last_timestamp [18:52:08]File name is /storage/kkm_last_timestamp [18:52:08]Write 4 bytes [18:52:08]NVStorageSaveData done [18:52:08]ExternCall_PrintAddStr [18:52:08]wPrintStart [18:52:08]Write to MH i2c: 01 00 00 5F 08 67 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: 01 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: 01 07 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: 01 07 00 5F 08 00 00 00 00 00 FF 0F 7C [18:52:08]RasterBufferAndPrint [18:52:08]line Счет N : (1)458423 [18:52:08]line ИНН: 02508201610067 [18:52:08]line Контрольно-Кассовый Чек [18:52:08]line ПРОДАЖА [18:52:08]line ТРК (МРК, ГНК) : 12 [18:52:08]line Товар: 2710124130 [18:52:08]line Аи-92-К-5 [18:52:08]line 7.600 * 65.80 [18:52:08]line = 500.08 [18:52:08]line НДС 12% НСП 1% [18:52:08]line > о реализуемом товаре [18:52:08]line ОКРУГЛЕНИЕ: -0.08 [18:52:08]line ИТОГО: 500.00 [18:52:08]line Внесено: 500.00 [18:52:08]line СДАЧА: 0.00 [18:52:08]line НСП 1% : 4.42 [18:52:08]line НДС 12% : 53.11 [18:52:08]line Наличными: 500.00 [18:52:08]line Безнал.: 0.00 [18:52:08]line Место: АЗС № 72 "Партнер Нефть" [18:52:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:52:08]line СНО: Общий режим [18:52:08]line Чек 260 12.07.2024 18:52 [18:52:08]line Смена: 445 ФФД: 1.0 [18:52:08]line ЗНМ: 0300000160 [18:52:08]line РНМ: 0000000000090829 [18:52:08]line Версия ККМ: 001 [18:52:08]line ФМ: 0000000000874718 [18:52:08]line ФД: 164339 [18:52:08]line ФПД: 87089012246246 [18:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T185207&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164339&fm=87089012246246&tin=02508201610067®Number=0000000000090829&sum=50000 [18:52:08]written 0, free lines is 4095 [18:52:08]OFD Sender: Processing packet 164339 [packets to send 104, broken 103] [18:52:08]ProducePacketName [18:52:08]name=ofd_packets/00164339 [18:52:08]OFD Sender: To server: pG, [18:52:08]CommunicateWithHost lk.salyk.kg:30040 [18:52:08]ConnectInit lk.salyk.kg [18:52:09]Connected sock=10 [18:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E6 2A 07 01 2D AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 04 01 00 00 F4 03 04 00 57 7B 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 81 02 00 35 04 06 00 4F 34 FD A3 86 E6 55 7F A0 16 F0 D8 ED 6C [18:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DD 2D 47 00 5B 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 34 37 31 38 10 04 04 00 F3 81 02 00 F4 03 04 00 EB 21 91 66 B6 04 01 00 00 C4 22 99 38 2F 0A 52 C2 [18:52:09]CommunicateWithHost err = 0 [18:52:09]CheckOFDResponse [18:52:09]1017 (14) - 77093643461234 [18:52:09]1041 (16) - 0000000000874718 [18:52:09]1040 (4) - 164339 [18:52:09]1012 (4) - 12.07.2024 12:30 [18:52:09]1206 (1) - 0 [18:52:09]OFD Sender: Remove packet 164339 [18:52:09]ProducePacketName [18:52:09]name=ofd_packets/00164339 [18:52:09]NVStorageDeleteData [18:52:09]Write to MH i2c: 01 00 00 89 08 91 [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: 01 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: 01 07 00 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 FB 0C 9F [18:52:09]RasterBufferAndPrint [18:52:09]line [18:52:09]line [18:52:09]line [18:52:09]line [18:52:09]line [18:52:09]written 0, free lines is 3329 [18:52:09]MH_Cut [18:52:09]Write to MH i2c: D1 01 00 90 08 01 6A [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: D1 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: D1 01 00 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: D1 01 00 90 08 00 69 [18:52:09]Write to MH i2c: 01 00 00 91 08 99 [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:09]OFD Sender: No OFD packet to send [18:52:10]*** Cut start [18:52:10]*** Partial cut [18:52:10]*** CUTSNS_PIN = 1 [18:52:10]*** CUTSNS_PIN = 0 [18:52:10]*** Brake cut motor [18:52:10]Read from MH i2c: 01 [18:52:10]MH_I2C_Read... [18:52:10]*** Stop cut motor [18:52:10]*** Cut end [18:52:10]Read from MH i2c: 01 07 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: 01 07 00 91 08 00 00 00 00 00 FF 0F AE [18:52:10]process_action close_receipt done [18:52:10]requested_data is exist [18:52:10]produce_requested_data [18:52:10]requested_item fm.sn is exist - process it [18:52:10]wFMCommunicate request_size=4 [18:52:10]MH_SAM_APDU [18:52:10]CAPDU: 80 11 00 00 [18:52:10]Write to MH i2c: E2 08 00 92 08 80 11 00 00 00 00 00 00 14 [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:10]Read from MH i2c: E2 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 17 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 17 00 92 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [18:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:52:10]wFMCommunicate OK [18:52:10]requested_item fd.num is exist - process it [18:52:10]SAM_PROTO_GetFieldsCounters [18:52:10]wFMCommunicate request_size=4 [18:52:10]MH_SAM_APDU [18:52:10]CAPDU: 80 13 00 00 [18:52:10]Write to MH i2c: E2 08 00 93 08 80 13 00 00 00 00 00 00 17 [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:10]Read from MH i2c: E2 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 62 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 62 00 93 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [18:52: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:10]wFMCommunicate OK [18:52:10]SAM_PROTO_GetFieldsCounters done [18:52:10]requested_item shift.num is exist - process it [18:52:10]requested_item shift.opened is exist - process it [18:52:10]req_shift_opened [18:52:10]FM_GetShiftState [18:52:10]SAM_PROTO_GetShiftState [18:52:10]wFMCommunicate request_size=4 [18:52:10]MH_SAM_APDU [18:52:10]CAPDU: 80 13 01 00 [18:52:10]Write to MH i2c: E2 08 00 94 08 80 13 01 00 00 00 00 00 19 [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:10]Read from MH i2c: E2 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 0E 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 0E 00 94 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 63 [18:52:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:52:10]wFMCommunicate OK [18:52:10]SAM_PROTO_GetShiftState done [18:52:10]FM_GetShiftState done [18:52:10]req_shift_opened done [18:52:10]requested_item shift.open_date is exist - process it [18:52:10]req_shift_open_date [18:52:10]req_shift_open_date done [18:52:10]produce_requested_data done [18:52:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164339,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:52:10]process_action_free close_receipt [18:52:10]json_value_free [18:52:10]json_value_free done [18:52:10]process_json_proto returns [18:52:10]Send response to host [18:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164339,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:52:10]free response buf [18:52:10]execute_script done [18:52:10]execute_script returns [18:52:10]free content buf [18:52:10]Sock 9.Close socket [18:52:10]Sock 9.Thread stoped [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:20]accept exits with 8 [18:58:20]New connection [18:58:20]New thread 3067141476 created [18:58:20]Thread 3066998116 joined [18:58:20]Waiting for new connection... [18:58:20] Sock 8.Parse request [18:58:20]Sock 8.Check first char [18:58:20]Sock 8.First char is OK [18:58:20]request: POST /json_proto HTTP/1.0 [18:58:20]Method: POST [18:58:20]URL: /json_proto [18:58:20]Method is POST - this is cgi request [18:58:20]url: /json_proto [18:58:20]query_string will be loaded in cgi processing [18:58:20]execute_cgi json_proto POST (null) [18:58:20]execute_cgi path=json_proto method=POST [18:58:20]POST find Content-Length [18:58:20]Host: 172.17.56.4:8080 [18:58:20]Content-Length: 677 [18:58:20]Content-Type: application/json [18:58:20] [18:58:20]POST finish read [18:58:20]Found Content-Length = 677 [18:58:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:20]execute_script... [18: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)458424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:20]POST & json_proto [18:58:20]process_json_proto [18:58:20]json parsed OK: [18:58:20]protocol is kg_v1.0 [18:58:20]action value=close_receipt [18:58:20]process_action close_receipt [18:58:20]cmd_close_receipt [18:58:20]MH_GetDate [18:58:20]Write to MH i2c: F0 00 00 95 08 8C [18:58:20]Write i2c OK [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: F0 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: F0 09 00 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: F0 09 00 95 08 00 CD 7C 91 66 C9 DC B2 64 90 [18:58:20]GetLastDocTimeStamp 1720810327 [18:58:20]current date 1720810701 [18:58:20]FM_GetShiftState [18:58:20]SAM_PROTO_GetShiftState [18:58:20]wFMCommunicate request_size=4 [18:58:20]MH_SAM_APDU [18:58:20]CAPDU: 80 13 01 00 [18:58:20]Write to MH i2c: E2 08 00 96 08 80 13 01 00 00 00 00 00 1B [18:58:20]Write i2c OK [18:58:20]MH_I2C_Read... [18:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:20]Read from MH i2c: E2 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: E2 0E 00 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: E2 0E 00 96 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 65 [18:58:20]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:58:20]wFMCommunicate OK [18:58:20]SAM_PROTO_GetShiftState done [18:58:20]FM_GetShiftState done [18:58:20]opened in 1720744654 [18:58:20]opened+sec_in_day 1720831054 [18:58:20]quantity*price = 30004 [18:58:20]sum+1 = 30006 [18:58:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 261 12.07.2024 18:58 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164340 ФПД: 9792665026644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T185821&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164340&fm=9792665026644&tin=02508201610067®Number=0000000000090829&sum=30000 [18:58:21]StoreToDocumentArchive [18:58:21]shift 445 fd 164340 [18:58:21]save to /storage/0445/doc_00164340 [18:58:21]save last doc name /storage/0445/doc_00164340 to /storage/kkm_last_doc_name [18:58:21]save OK [18:58:21]Clear old archive folders... [18:58:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:21]tlvbuf is 01E2CB00 [18:58:21]SAM_PROTO_ClearQueue [18:58:21]wFMCommunicate request_size=4 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 09 00 00 [18:58:21]Write to MH i2c: E2 08 00 A3 08 80 09 00 00 00 00 00 00 1D [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [18:58:21]RAPDU: 90 00 [18:58:21]wFMCommunicate OK [18:58:21]SAM_PROTO_ClearQueue done [18:58:21]KKMCreateOFDPacket [18:58:21]OFDProtocolAddRootSTLVToBuf [18:58:21]FM_MakeSignedData [18:58:21]FM_MakeSignedData [18:58:21]SAM_PROTO_SignData [18:58:21]wFMCommunicate request_size=4 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 0D 01 02 [18:58:21]Write to MH i2c: E2 08 00 A4 08 80 0D 01 02 00 00 00 00 25 [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [18:58:21]RAPDU: 90 00 [18:58:21]wFMCommunicate OK [18:58:21]wFMCommunicate request_size=255 [18:58:21]MH_SAM_APDU [18:58: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 CD 7C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 81 02 00 35 04 06 00 08 [18:58:21]Write to MH i2c: E2 02 01 A5 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 CD 7C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 81 02 00 35 04 06 00 08 00 00 E2 [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:22]Read from MH i2c: E2 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 03 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [18:58:22]RAPDU: 90 00 [18:58:22]wFMCommunicate OK [18:58:22]wFMCommunicate request_size=10 [18:58:22]MH_SAM_APDU [18:58:22]CAPDU: 80 0D 02 02 05 E8 08 52 00 54 [18:58:22]Write to MH i2c: E2 0D 00 A6 08 80 0D 02 02 05 00 E8 08 52 00 54 00 00 C8 [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:22]Read from MH i2c: E2 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 03 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 03 00 A6 08 00 90 00 22 [18:58:22]RAPDU: 90 00 [18:58:22]wFMCommunicate OK [18:58:22]wFMCommunicate request_size=4 [18:58:22]MH_SAM_APDU [18:58:22]CAPDU: 80 0D 03 02 [18:58:22]Write to MH i2c: E2 08 00 A7 08 80 0D 03 02 00 00 00 00 2A [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:22]Read from MH i2c: E2 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 0B 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 0B 00 A7 08 00 9D C1 C9 74 32 1E 19 E2 90 00 11 [18:58:22]RAPDU: 9D C1 C9 74 32 1E 19 E2 90 00 [18:58:22]wFMCommunicate OK [18:58:22]SAM_PROTO_SignData done [18:58:22]FM_MakeSignedData done [18:58:22]CreateOFDProtocolMessage [18:58:22]wFMCommunicate request_size=4 [18:58:22]MH_SAM_APDU [18:58:22]CAPDU: 80 11 00 00 [18:58:22]Write to MH i2c: E2 08 00 A8 08 80 11 00 00 00 00 00 00 2A [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:22]Read from MH i2c: E2 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 17 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 17 00 A8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [18:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:58:22]wFMCommunicate OK [18:58:22]CreateOFDProtocolMessage done [18:58:22]OFDSenderStorePacket 164340 [18:58:22]StoreOFDPacket docnum=164340 [18:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 73 16 07 01 B5 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 CD 7C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 81 02 00 35 04 06 00 08 E8 08 52 00 54 9D C1 C9 74 32 1E 19 E2 [18:58:22]CheckFolder [18:58:22]dirname=/storage/ofd_packets [18:58:22]CheckFolder done [18:58:22]ProducePacketName [18:58:22]name=ofd_packets/00164340 [18:58:22]NVStorageSaveData ofd_packets/00164340 [18:58:22]File name is /storage/ofd_packets/00164340 [18:58:22]Write 301 bytes [18:58:22]NVStorageSaveData done [18:58:22]OFDSenderStorePacket done [18:58:22]KKMCreateOFDPacket done [18:58:22]NVStorageSaveData kkm_last_timestamp [18:58:22]File name is /storage/kkm_last_timestamp [18:58:22]Write 4 bytes [18:58:22]NVStorageSaveData done [18:58:22]ExternCall_PrintAddStr [18:58:22]wPrintStart [18:58:22]Write to MH i2c: 01 00 00 A9 08 B1 [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 07 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 07 00 A9 08 00 00 00 00 00 FF 0F C6 [18:58:22]RasterBufferAndPrint [18:58:22]line Счет N : (1)458424 [18:58:22]line ИНН: 02508201610067 [18:58:22]line Контрольно-Кассовый Чек [18:58:22]line ПРОДАЖА [18:58:22]line ТРК (МРК, ГНК) : 22 [18:58:22]line Товар: 2710124130 [18:58:22]line Аи-92-К-5 [18:58:22]line 4.560 * 65.80 [18:58:22]line = 300.05 [18:58:22]line НДС 12% НСП 1% [18:58:22]line > о реализуемом товаре [18:58:22]line ОКРУГЛЕНИЕ: -0.05 [18:58:22]line ИТОГО: 300.00 [18:58:22]line Внесено: 300.00 [18:58:22]line СДАЧА: 0.00 [18:58:22]line НСП 1% : 2.65 [18:58:22]line НДС 12% : 31.86 [18:58:22]line Наличными: 300.00 [18:58:22]line Безнал.: 0.00 [18:58:22]line Место: АЗС № 72 "Партнер Нефть" [18:58:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:58:22]line СНО: Общий режим [18:58:22]line Чек 261 12.07.2024 18:58 [18:58:22]line Смена: 445 ФФД: 1.0 [18:58:22]line ЗНМ: 0300000160 [18:58:22]line РНМ: 0000000000090829 [18:58:22]line Версия ККМ: 001 [18:58:22]line ФМ: 0000000000874718 [18:58:22]line ФД: 164340 [18:58:22]line ФПД: 9792665026644 [18:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T185821&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164340&fm=9792665026644&tin=02508201610067®Number=0000000000090829&sum=30000 [18:58:22]written 0, free lines is 4095 [18:58:22]OFD Sender: Processing packet 164340 [packets to send 104, broken 103] [18:58:22]ProducePacketName [18:58:22]name=ofd_packets/00164340 [18:58:22]OFD Sender: To server: pG, [18:58:22]CommunicateWithHost lk.salyk.kg:30040 [18:58:22]ConnectInit lk.salyk.kg [18:58:22]Connected sock=10 [18: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 34 37 31 38 0F 01 00 00 73 16 07 01 B5 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 CD 7C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 81 02 00 35 04 06 00 08 E8 08 52 00 54 9D C1 C9 74 32 1E 19 E2 [18:58:22]Write to MH i2c: 01 00 00 D3 08 DB [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 07 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 0C 0D FB [18:58:22]RasterBufferAndPrint [18:58:22]line [18:58:22]line [18:58:22]line [18:58:22]line [18:58:22]line [18:58:22]written 0, free lines is 3346 [18:58:22]MH_Cut [18:58:22]Write to MH i2c: D1 01 00 DA 08 01 B4 [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: D1 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: D1 01 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: D1 01 00 DA 08 00 B3 [18:58:22]Write to MH i2c: 01 00 00 DB 08 E3 [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FF 9A 47 00 E1 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 34 37 31 38 10 04 04 00 F4 81 02 00 F4 03 04 00 61 23 91 66 B6 04 01 00 00 A1 5E 27 46 15 FF 36 E1 [18:58:23]CommunicateWithHost err = 0 [18:58:23]CheckOFDResponse [18:58:23]1017 (14) - 77093643461234 [18:58:23]1041 (16) - 0000000000874718 [18:58:23]1040 (4) - 164340 [18:58:23]1012 (4) - 12.07.2024 12:36 [18:58:23]1206 (1) - 0 [18:58:23]OFD Sender: Remove packet 164340 [18:58:23]ProducePacketName [18:58:23]name=ofd_packets/00164340 [18:58:23]NVStorageDeleteData [18:58:23]*** Cut start [18:58:23]*** Partial cut [18:58:23]*** CUTSNS_PIN = 1 [18:58:23]OFD Sender: No OFD packet to send [18:58:23]*** CUTSNS_PIN = 0 [18:58:23]*** Brake cut motor [18:58:24]Read from MH i2c: 01 [18:58:24]MH_I2C_Read... [18:58:24]*** Stop cut motor [18:58:24]*** Cut end [18:58:24]Read from MH i2c: 01 07 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 FF 0F F8 [18:58:24]process_action close_receipt done [18:58:24]requested_data is exist [18:58:24]produce_requested_data [18:58:24]requested_item fm.sn is exist - process it [18:58:24]wFMCommunicate request_size=4 [18:58:24]MH_SAM_APDU [18:58:24]CAPDU: 80 11 00 00 [18:58:24]Write to MH i2c: E2 08 00 DC 08 80 11 00 00 00 00 00 00 5E [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:24]Read from MH i2c: E2 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 17 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 17 00 DC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [18:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:58:24]wFMCommunicate OK [18:58:24]requested_item fd.num is exist - process it [18:58:24]SAM_PROTO_GetFieldsCounters [18:58:24]wFMCommunicate request_size=4 [18:58:24]MH_SAM_APDU [18:58:24]CAPDU: 80 13 00 00 [18:58:24]Write to MH i2c: E2 08 00 DD 08 80 13 00 00 00 00 00 00 61 [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:24]Read from MH i2c: E2 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 62 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 62 00 DD 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:24]wFMCommunicate OK [18:58:24]SAM_PROTO_GetFieldsCounters done [18:58:24]requested_item shift.num is exist - process it [18:58:24]requested_item shift.opened is exist - process it [18:58:24]req_shift_opened [18:58:24]FM_GetShiftState [18:58:24]SAM_PROTO_GetShiftState [18:58:24]wFMCommunicate request_size=4 [18:58:24]MH_SAM_APDU [18:58:24]CAPDU: 80 13 01 00 [18:58:24]Write to MH i2c: E2 08 00 DE 08 80 13 01 00 00 00 00 00 63 [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:24]Read from MH i2c: E2 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 0E 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 0E 00 DE 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AD [18:58:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:58:24]wFMCommunicate OK [18:58:24]SAM_PROTO_GetShiftState done [18:58:24]FM_GetShiftState done [18:58:24]req_shift_opened done [18:58:24]requested_item shift.open_date is exist - process it [18:58:24]req_shift_open_date [18:58:24]req_shift_open_date done [18:58:24]produce_requested_data done [18:58:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164340,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:58:24]process_action_free close_receipt [18:58:24]json_value_free [18:58:24]json_value_free done [18:58:24]process_json_proto returns [18:58:24]Send response to host [18:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164340,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:58:24]free response buf [18:58:24]execute_script done [18:58:24]execute_script returns [18:58:24]free content buf [18:58:24]Sock 8.Close socket [18:58:24]Sock 8.Thread stoped [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:00]accept exits with 9 [18:59:00]New connection [18:59:00]New thread 3066998116 created [18:59:00]Thread 3067141476 joined [18:59:00]Waiting for new connection... [18:59:00] Sock 9.Parse request [18:59:00]Sock 9.Check first char [18:59:00]Sock 9.First char is OK [18:59:00]request: POST /json_proto HTTP/1.0 [18:59:00]Method: POST [18:59:00]URL: /json_proto [18:59:00]Method is POST - this is cgi request [18:59:00]url: /json_proto [18:59:00]query_string will be loaded in cgi processing [18:59:00]execute_cgi json_proto POST (null) [18:59:00]execute_cgi path=json_proto method=POST [18:59:00]POST find Content-Length [18:59:00]Host: 172.17.56.4:8080 [18:59:00]Content-Length: 677 [18:59:00]Content-Type: application/json [18:59:00] [18:59:00]POST finish read [18:59:00]Found Content-Length = 677 [18:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:00]execute_script... [18:59: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)458425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:00]POST & json_proto [18:59:00]process_json_proto [18:59:00]json parsed OK: [18:59:00]protocol is kg_v1.0 [18:59:00]action value=close_receipt [18:59:00]process_action close_receipt [18:59:00]cmd_close_receipt [18:59:00]MH_GetDate [18:59:00]Write to MH i2c: F0 00 00 DF 08 D6 [18:59:00]Write i2c OK [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: F0 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: F0 09 00 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: F0 09 00 DF 08 00 F5 7C 91 66 C9 DC B2 64 02 [18:59:00]GetLastDocTimeStamp 1720810701 [18:59:00]current date 1720810741 [18:59:00]FM_GetShiftState [18:59:00]SAM_PROTO_GetShiftState [18:59:00]wFMCommunicate request_size=4 [18:59:00]MH_SAM_APDU [18:59:00]CAPDU: 80 13 01 00 [18:59:00]Write to MH i2c: E2 08 00 E0 08 80 13 01 00 00 00 00 00 65 [18:59:00]Write i2c OK [18:59:00]MH_I2C_Read... [18:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:00]Read from MH i2c: E2 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 0E 00 [18:59:00]MH_I2C_Read... [18:59:00]Read from MH i2c: E2 0E 00 E0 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AF [18:59:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:59:00]wFMCommunicate OK [18:59:00]SAM_PROTO_GetShiftState done [18:59:00]FM_GetShiftState done [18:59:00]opened in 1720744654 [18:59:00]opened+sec_in_day 1720831054 [18:59:00]quantity*price = 40006 [18:59:00]sum+1 = 40007 [18:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 262 12.07.2024 18:59 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164341 ФПД: 135742667913942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T185901&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164341&fm=135742667913942&tin=02508201610067®Number=0000000000090829&sum=40000 [18:59:01]StoreToDocumentArchive [18:59:01]shift 445 fd 164341 [18:59:01]save to /storage/0445/doc_00164341 [18:59:01]save last doc name /storage/0445/doc_00164341 to /storage/kkm_last_doc_name [18:59:01]save OK [18:59:01]Clear old archive folders... [18:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:01]tlvbuf is 01E07BB0 [18:59:01]SAM_PROTO_ClearQueue [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 09 00 00 [18:59:01]Write to MH i2c: E2 08 00 ED 08 80 09 00 00 00 00 00 00 67 [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 03 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [18:59:01]RAPDU: 90 00 [18:59:01]wFMCommunicate OK [18:59:01]SAM_PROTO_ClearQueue done [18:59:01]KKMCreateOFDPacket [18:59:01]OFDProtocolAddRootSTLVToBuf [18:59:01]FM_MakeSignedData [18:59:01]FM_MakeSignedData [18:59:01]SAM_PROTO_SignData [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 0D 01 02 [18:59:01]Write to MH i2c: E2 08 00 EE 08 80 0D 01 02 00 00 00 00 6F [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 03 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [18:59:01]RAPDU: 90 00 [18:59:01]wFMCommunicate OK [18:59:01]wFMCommunicate request_size=255 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 06 01 00 00 F4 03 04 00 F5 7C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 81 02 00 35 04 06 00 7B [18:59:01]Write to MH i2c: E2 02 01 EF 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 06 01 00 00 F4 03 04 00 F5 7C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 81 02 00 35 04 06 00 7B 00 00 E8 [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 03 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [18:59:01]RAPDU: 90 00 [18:59:01]wFMCommunicate OK [18:59:01]wFMCommunicate request_size=10 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 0D 02 02 05 75 0D 80 7A D6 [18:59:01]Write to MH i2c: E2 0D 00 F0 08 80 0D 02 02 05 00 75 0D 80 7A D6 00 00 CE [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 03 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 03 00 F0 08 00 90 00 6C [18:59:01]RAPDU: 90 00 [18:59:01]wFMCommunicate OK [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 0D 03 02 [18:59:01]Write to MH i2c: E2 08 00 F1 08 80 0D 03 02 00 00 00 00 74 [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 0B 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 0B 00 F1 08 00 2C C3 E6 ED D5 62 B9 92 90 00 B9 [18:59:01]RAPDU: 2C C3 E6 ED D5 62 B9 92 90 00 [18:59:01]wFMCommunicate OK [18:59:01]SAM_PROTO_SignData done [18:59:01]FM_MakeSignedData done [18:59:01]CreateOFDProtocolMessage [18:59:01]wFMCommunicate request_size=4 [18:59:01]MH_SAM_APDU [18:59:01]CAPDU: 80 11 00 00 [18:59:01]Write to MH i2c: E2 08 00 F2 08 80 11 00 00 00 00 00 00 74 [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:01]Read from MH i2c: E2 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 17 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: E2 17 00 F2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [18:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:59:01]wFMCommunicate OK [18:59:01]CreateOFDProtocolMessage done [18:59:01]OFDSenderStorePacket 164341 [18:59:01]StoreOFDPacket docnum=164341 [18:59:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A6 EE 07 01 67 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 06 01 00 00 F4 03 04 00 F5 7C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 81 02 00 35 04 06 00 7B 75 0D 80 7A D6 2C C3 E6 ED D5 62 B9 92 [18:59:01]CheckFolder [18:59:01]dirname=/storage/ofd_packets [18:59:01]CheckFolder done [18:59:01]ProducePacketName [18:59:01]name=ofd_packets/00164341 [18:59:01]NVStorageSaveData ofd_packets/00164341 [18:59:01]File name is /storage/ofd_packets/00164341 [18:59:01]Write 301 bytes [18:59:01]NVStorageSaveData done [18:59:01]OFDSenderStorePacket done [18:59:01]KKMCreateOFDPacket done [18:59:01]NVStorageSaveData kkm_last_timestamp [18:59:01]File name is /storage/kkm_last_timestamp [18:59:01]Write 4 bytes [18:59:01]NVStorageSaveData done [18:59:01]ExternCall_PrintAddStr [18:59:01]wPrintStart [18:59:01]Write to MH i2c: 01 00 00 F3 08 FB [18:59:01]Write i2c OK [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: 01 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: 01 07 00 [18:59:01]MH_I2C_Read... [18:59:01]Read from MH i2c: 01 07 00 F3 08 00 00 00 00 00 FF 0F 10 [18:59:01]RasterBufferAndPrint [18:59:01]line Счет N : (1)458425 [18:59:01]line ИНН: 02508201610067 [18:59:01]line Контрольно-Кассовый Чек [18:59:01]line ПРОДАЖА [18:59:01]line ТРК (МРК, ГНК) : 12 [18:59:01]line Товар: 2710124130 [18:59:01]line Аи-92-К-5 [18:59:01]line 6.080 * 65.80 [18:59:01]line = 400.06 [18:59:01]line НДС 12% НСП 1% [18:59:01]line > о реализуемом товаре [18:59:01]line ОКРУГЛЕНИЕ: -0.06 [18:59:01]line ИТОГО: 400.00 [18:59:01]line Внесено: 400.00 [18:59:01]line СДАЧА: 0.00 [18:59:01]line НСП 1% : 3.54 [18:59:01]line НДС 12% : 42.48 [18:59:01]line Наличными: 400.00 [18:59:01]line Безнал.: 0.00 [18:59:01]line Место: АЗС № 72 "Партнер Нефть" [18:59:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:59:01]line СНО: Общий режим [18:59:01]line Чек 262 12.07.2024 18:59 [18:59:01]line Смена: 445 ФФД: 1.0 [18:59:01]line ЗНМ: 0300000160 [18:59:01]line РНМ: 0000000000090829 [18:59:01]line Версия ККМ: 001 [18:59:01]line ФМ: 0000000000874718 [18:59:01]line ФД: 164341 [18:59:01]line ФПД: 135742667913942 [18:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T185901&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164341&fm=135742667913942&tin=02508201610067®Number=0000000000090829&sum=40000 [18:59:02]OFD Sender: Processing packet 164341 [packets to send 104, broken 103] [18:59:02]ProducePacketName [18:59:02]name=ofd_packets/00164341 [18:59:02]OFD Sender: To server: pG, [18:59:02]CommunicateWithHost lk.salyk.kg:30040 [18:59:02]ConnectInit lk.salyk.kg [18:59:02]written 0, free lines is 4095 [18:59:02]Connected sock=10 [18:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A6 EE 07 01 67 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 06 01 00 00 F4 03 04 00 F5 7C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 81 02 00 35 04 06 00 7B 75 0D 80 7A D6 2C C3 E6 ED D5 62 B9 92 [18:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 20 91 47 00 9D 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 34 37 31 38 10 04 04 00 F5 81 02 00 F4 03 04 00 88 23 91 66 B6 04 01 00 00 47 B1 78 86 22 E2 47 31 [18:59:02]CommunicateWithHost err = 0 [18:59:02]CheckOFDResponse [18:59:02]1017 (14) - 77093643461234 [18:59:02]1041 (16) - 0000000000874718 [18:59:02]1040 (4) - 164341 [18:59:02]1012 (4) - 12.07.2024 12:37 [18:59:02]1206 (1) - 0 [18:59:02]OFD Sender: Remove packet 164341 [18:59:02]ProducePacketName [18:59:02]name=ofd_packets/00164341 [18:59:02]NVStorageDeleteData [18:59:02]Write to MH i2c: 01 00 00 1D 09 26 [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: 01 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: 01 07 00 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 F6 0C 2F [18:59:02]RasterBufferAndPrint [18:59:02]line [18:59:02]line [18:59:02]line [18:59:02]line [18:59:02]line [18:59:02]written 0, free lines is 3324 [18:59:02]MH_Cut [18:59:02]Write to MH i2c: D1 01 00 24 09 01 FF [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: D1 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: D1 01 00 [18:59:02]MH_I2C_Read... [18:59:02]Read from MH i2c: D1 01 00 24 09 00 FE [18:59:02]Write to MH i2c: 01 00 00 25 09 2E [18:59:02]Write i2c OK [18:59:02]MH_I2C_Read... [18:59:02]OFD Sender: No OFD packet to send [18:59:03]*** Cut start [18:59:03]*** Partial cut [18:59:03]*** CUTSNS_PIN = 1 [18:59:03]*** CUTSNS_PIN = 0 [18:59:03]*** Brake cut motor [18:59:03]Read from MH i2c: 01 [18:59:03]MH_I2C_Read... [18:59:03]*** Stop cut motor [18:59:03]*** Cut end [18:59:03]Read from MH i2c: 01 07 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 FF 0F 43 [18:59:03]process_action close_receipt done [18:59:03]requested_data is exist [18:59:03]produce_requested_data [18:59:03]requested_item fm.sn is exist - process it [18:59:03]wFMCommunicate request_size=4 [18:59:03]MH_SAM_APDU [18:59:03]CAPDU: 80 11 00 00 [18:59:03]Write to MH i2c: E2 08 00 26 09 80 11 00 00 00 00 00 00 A9 [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:03]Read from MH i2c: E2 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 17 00 [18:59:03]MH_I2C_Read... [18:59:03]Read from MH i2c: E2 17 00 26 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FF [18:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:59:03]wFMCommunicate OK [18:59:03]requested_item fd.num is exist - process it [18:59:03]SAM_PROTO_GetFieldsCounters [18:59:03]wFMCommunicate request_size=4 [18:59:03]MH_SAM_APDU [18:59:03]CAPDU: 80 13 00 00 [18:59:03]Write to MH i2c: E2 08 00 27 09 80 13 00 00 00 00 00 00 AC [18:59:03]Write i2c OK [18:59:03]MH_I2C_Read... [18:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:04]Read from MH i2c: E2 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 62 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 62 00 27 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [18:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:04]wFMCommunicate OK [18:59:04]SAM_PROTO_GetFieldsCounters done [18:59:04]requested_item shift.num is exist - process it [18:59:04]requested_item shift.opened is exist - process it [18:59:04]req_shift_opened [18:59:04]FM_GetShiftState [18:59:04]SAM_PROTO_GetShiftState [18:59:04]wFMCommunicate request_size=4 [18:59:04]MH_SAM_APDU [18:59:04]CAPDU: 80 13 01 00 [18:59:04]Write to MH i2c: E2 08 00 28 09 80 13 01 00 00 00 00 00 AE [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:04]Read from MH i2c: E2 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 0E 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 0E 00 28 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F8 [18:59:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [18:59:04]wFMCommunicate OK [18:59:04]SAM_PROTO_GetShiftState done [18:59:04]FM_GetShiftState done [18:59:04]req_shift_opened done [18:59:04]requested_item shift.open_date is exist - process it [18:59:04]req_shift_open_date [18:59:04]req_shift_open_date done [18:59:04]produce_requested_data done [18:59:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164341,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [18:59:04]process_action_free close_receipt [18:59:04]json_value_free [18:59:04]json_value_free done [18:59:04]process_json_proto returns [18:59:04]Send response to host [18:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164341,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [18:59:04]free response buf [18:59:04]execute_script done [18:59:04]execute_script returns [18:59:04]free content buf [18:59:04]Sock 9.Close socket [18:59:04]Sock 9.Thread stoped [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:06:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 92 07 01 DA D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2F AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 D2 7E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 81 02 00 35 04 06 00 78 AC 2C 20 86 F6 71 5E 84 45 13 5E 8B 83 [19:06:59]CheckFolder [19:06:59]dirname=/storage/ofd_packets [19:06:59]CheckFolder done [19:06:59]ProducePacketName [19:06:59]name=ofd_packets/00164343 [19:06:59]NVStorageSaveData ofd_packets/00164343 [19:06:59]File name is /storage/ofd_packets/00164343 [19:06:59]Write 301 bytes [19:06:59]NVStorageSaveData done [19:06:59]OFDSenderStorePacket done [19:06:59]KKMCreateOFDPacket done [19:06:59]NVStorageSaveData kkm_last_timestamp [19:06:59]File name is /storage/kkm_last_timestamp [19:06:59]Write 4 bytes [19:06:59]NVStorageSaveData done [19:06:59]OFD Sender: Processing packet 164342 [packets to send 105, broken 103] [19:06:59]ProducePacketName [19:06:59]name=ofd_packets/00164342 [19:06:59]OFD Sender: To server: pG, [19:06:59]CommunicateWithHost lk.salyk.kg:30040 [19:06:59]ConnectInit lk.salyk.kg [19:06:59]ExternCall_PrintAddStr [19:06:59]wPrintStart [19:06:59]Write to MH i2c: 01 00 00 7B 00 7B [19:06:59]Write i2c OK [19:06:59]MH_I2C_Read... [19:06:59]Read from MH i2c: 01 [19:06:59]MH_I2C_Read... [19:06:59]Read from MH i2c: 01 07 00 [19:06:59]MH_I2C_Read... [19:06:59]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [19:06:59]RasterBufferAndPrint [19:06:59]line Счет N : (1)458427 [19:06:59]line ИНН: 02508201610067 [19:06:59]line Контрольно-Кассовый Чек [19:06:59]line ПРОДАЖА [19:06:59]line ТРК (МРК, ГНК) : 22 [19:06:59]line Товар: 2710124130 [19:06:59]line Аи-92-К-5 [19:06:59]line 6.660 * 65.80 [19:06:59]line = 438.23 [19:06:59]line НДС 12% НСП 1% [19:06:59]line > о реализуемом товаре [19:06:59]line ОКРУГЛЕНИЕ: -0.23 [19:06:59]line ИТОГО: 438.00 [19:06:59]line Внесено: 438.00 [19:06:59]line СДАЧА: 0.00 [19:06:59]line НСП 1% : 3.88 [19:06:59]line НДС 12% : 46.54 [19:06:59]line Наличными: 438.00 [19:06:59]line Безнал.: 0.00 [19:06:59]line Место: АЗС № 72 "Партнер Нефть" [19:06:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:06:59]line СНО: Общий режим [19:06:59]line Чек 264 12.07.2024 19:06 [19:06:59]line Смена: 445 ФФД: 1.0 [19:06:59]line ЗНМ: 0300000160 [19:06:59]line РНМ: 0000000000090829 [19:06:59]line Версия ККМ: 001 [19:06:59]line ФМ: 0000000000874718 [19:06:59]line ФД: 164343 [19:06:59]line ФПД: 132680870037238 [19:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T190658&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164343&fm=132680870037238&tin=02508201610067®Number=0000000000090829&sum=43800 [19:06:59]written 0, free lines is 4095 [19:07:00]Write to MH i2c: 01 00 00 A5 00 A5 [19:07:00]Write i2c OK [19:07:00]MH_I2C_Read... [19:07:00]Read from MH i2c: 01 [19:07:00]MH_I2C_Read... [19:07:00]Read from MH i2c: 01 07 00 [19:07:00]MH_I2C_Read... [19:07:00]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 F6 0C AE [19:07:00]RasterBufferAndPrint [19:07:00]line [19:07:00]line [19:07:00]line [19:07:00]line [19:07:00]line [19:07:00]written 0, free lines is 3324 [19:07:00]MH_Cut [19:07:00]Write to MH i2c: D1 01 00 AC 00 01 7E [19:07:00]Write i2c OK [19:07:00]MH_I2C_Read... [19:07:00]Read from MH i2c: D1 [19:07:00]MH_I2C_Read... [19:07:00]Read from MH i2c: D1 01 00 [19:07:00]MH_I2C_Read... [19:07:00]Read from MH i2c: D1 01 00 AC 00 00 7D [19:07:00]Write to MH i2c: 01 00 00 AD 00 AD [19:07:00]Write i2c OK [19:07:00]MH_I2C_Read... [19:07:01]*** Cut start [19:07:01]*** Partial cut [19:07:01]*** CUTSNS_PIN = 1 [19:07:01]*** CUTSNS_PIN = 0 [19:07:01]*** Brake cut motor [19:07:01]Read from MH i2c: 01 [19:07:01]MH_I2C_Read... [19:07:01]*** Stop cut motor [19:07:01]*** Cut end [19:07:01]Read from MH i2c: 01 07 00 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [19:07:01]process_action close_receipt done [19:07:01]requested_data is exist [19:07:01]produce_requested_data [19:07:01]requested_item fm.sn is exist - process it [19:07:01]wFMCommunicate request_size=4 [19:07:01]MH_SAM_APDU [19:07:01]CAPDU: 80 11 00 00 [19:07:01]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [19:07:01]Write i2c OK [19:07:01]MH_I2C_Read... [19:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:01]Read from MH i2c: E2 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: E2 17 00 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [19:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:07:01]wFMCommunicate OK [19:07:01]requested_item fd.num is exist - process it [19:07:01]SAM_PROTO_GetFieldsCounters [19:07:01]wFMCommunicate request_size=4 [19:07:01]MH_SAM_APDU [19:07:01]CAPDU: 80 13 00 00 [19:07:01]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [19:07:01]Write i2c OK [19:07:01]MH_I2C_Read... [19:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:01]Read from MH i2c: E2 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: E2 62 00 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [19:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:01]wFMCommunicate OK [19:07:01]SAM_PROTO_GetFieldsCounters done [19:07:01]requested_item shift.num is exist - process it [19:07:01]requested_item shift.opened is exist - process it [19:07:01]req_shift_opened [19:07:01]FM_GetShiftState [19:07:01]SAM_PROTO_GetShiftState [19:07:01]wFMCommunicate request_size=4 [19:07:01]MH_SAM_APDU [19:07:01]CAPDU: 80 13 01 00 [19:07:01]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [19:07:01]Write i2c OK [19:07:01]MH_I2C_Read... [19:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:01]Read from MH i2c: E2 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: E2 0E 00 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 77 [19:07:01]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:07:01]wFMCommunicate OK [19:07:01]SAM_PROTO_GetShiftState done [19:07:01]FM_GetShiftState done [19:07:01]req_shift_opened done [19:07:01]requested_item shift.open_date is exist - process it [19:07:01]req_shift_open_date [19:07:01]req_shift_open_date done [19:07:01]produce_requested_data done [19:07:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164343,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:07:01]process_action_free close_receipt [19:07:01]json_value_free [19:07:01]json_value_free done [19:07:01]process_json_proto returns [19:07:01]Send response to host [19:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164343,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:07:01]free response buf [19:07:01]execute_script done [19:07:01]execute_script returns [19:07:01]free content buf [19:07:01]Sock 7.Close socket [19:07:01]Sock 7.Thread stoped [19:07:02]ConnectInit Can't connect to host [19:07:04]ConnectInit Can't take IP for lk.salyk.kg [19:07:04]CommunicateWithHost connect error [19:07:04]CommunicateWithHost err = -1 [19:07:04]OFD Sender: Server communicate error [19:07:07]ConnectInit Can't connect to host [19:07:09]OFD Sender: Processing packet 164342 [packets to send 105, broken 103] [19:07:09]ProducePacketName [19:07:09]name=ofd_packets/00164342 [19:07:09]OFD Sender: To server: pG, [19:07:09]CommunicateWithHost lk.salyk.kg:30040 [19:07:09]ConnectInit lk.salyk.kg [19:07:09]Connected sock=7 [19:07:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 46 07 01 67 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 9C 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3B 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 06 00 00 00 00 07 04 06 00 E4 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 96 7E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 81 02 00 35 04 06 00 8F B2 AF 4C 42 E8 7A 4A C2 D0 69 DD EC F5 [19:07:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6F FA 47 00 E7 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 81 02 00 F4 03 04 00 6F 25 91 66 B6 04 01 00 00 B9 EA 5F A0 C5 7E DF 86 [19:07:09]CommunicateWithHost err = 0 [19:07:09]CheckOFDResponse [19:07:09]1017 (14) - 77093643461234 [19:07:09]1041 (16) - 0000000000874718 [19:07:09]1040 (4) - 164342 [19:07:09]1012 (4) - 12.07.2024 12:45 [19:07:09]1206 (1) - 0 [19:07:09]OFD Sender: Remove packet 164342 [19:07:09]ProducePacketName [19:07:09]name=ofd_packets/00164342 [19:07:09]NVStorageDeleteData [19:07:10]OFD Sender: Processing packet 164343 [packets to send 104, broken 103] [19:07:10]ProducePacketName [19:07:10]name=ofd_packets/00164343 [19:07:10]OFD Sender: To server: pG, [19:07:10]CommunicateWithHost lk.salyk.kg:30040 [19:07:10]ConnectInit lk.salyk.kg [19:07:10]Connected sock=7 [19:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 92 07 01 DA D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2F AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 D2 7E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 81 02 00 35 04 06 00 78 AC 2C 20 86 F6 71 5E 84 45 13 5E 8B 83 [19:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 87 90 47 00 23 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 34 37 31 38 10 04 04 00 F7 81 02 00 F4 03 04 00 70 25 91 66 B6 04 01 00 00 9C C8 0C 04 C2 36 FA AC [19:07:10]CommunicateWithHost err = 0 [19:07:10]CheckOFDResponse [19:07:10]1017 (14) - 77093643461234 [19:07:10]1041 (16) - 0000000000874718 [19:07:10]1040 (4) - 164343 [19:07:10]1012 (4) - 12.07.2024 12:45 [19:07:10]1206 (1) - 0 [19:07:10]OFD Sender: Remove packet 164343 [19:07:10]ProducePacketName [19:07:10]name=ofd_packets/00164343 [19:07:10]NVStorageDeleteData [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:08]accept exits with 9 [19:13:08]New connection [19:13:08]New thread 3067534692 created [19:13:08]Thread 3067391332 joined [19:13:08]Waiting for new connection... [19:13:08] Sock 9.Parse request [19:13:08]Sock 9.Check first char [19:13:08]Sock 9.First char is OK [19:13:08]request: POST /json_proto HTTP/1.0 [19:13:08]Method: POST [19:13:08]URL: /json_proto [19:13:08]Method is POST - this is cgi request [19:13:08]url: /json_proto [19:13:08]query_string will be loaded in cgi processing [19:13:08]execute_cgi json_proto POST (null) [19:13:08]execute_cgi path=json_proto method=POST [19:13:08]POST find Content-Length [19:13:08]Host: 172.17.56.4:8080 [19:13:08]Content-Length: 677 [19:13:08]Content-Type: application/json [19:13:08] [19:13:08]POST finish read [19:13:08]Found Content-Length = 677 [19:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:08]execute_script... [19:13: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)458428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:08]POST & json_proto [19:13:08]process_json_proto [19:13:08]json parsed OK: [19:13:08]protocol is kg_v1.0 [19:13:08]action value=close_receipt [19:13:08]process_action close_receipt [19:13:08]cmd_close_receipt [19:13:08]MH_GetDate [19:13:08]Write to MH i2c: F0 00 00 B1 00 A0 [19:13:08]Write i2c OK [19:13:08]MH_I2C_Read... [19:13:08]Read from MH i2c: F0 [19:13:08]MH_I2C_Read... [19:13:08]Read from MH i2c: F0 09 00 [19:13:08]MH_I2C_Read... [19:13:08]Read from MH i2c: F0 09 00 B1 00 00 44 80 91 66 C9 DC B2 64 1F [19:13:08]GetLastDocTimeStamp 1720811218 [19:13:08]current date 1720811588 [19:13:08]FM_GetShiftState [19:13:08]SAM_PROTO_GetShiftState [19:13:08]wFMCommunicate request_size=4 [19:13:08]MH_SAM_APDU [19:13:08]CAPDU: 80 13 01 00 [19:13:08]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [19:13:08]Write i2c OK [19:13:08]MH_I2C_Read... [19:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:08]Read from MH i2c: E2 [19:13:08]MH_I2C_Read... [19:13:08]Read from MH i2c: E2 0E 00 [19:13:08]MH_I2C_Read... [19:13:08]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 79 [19:13:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:13:08]wFMCommunicate OK [19:13:08]SAM_PROTO_GetShiftState done [19:13:08]FM_GetShiftState done [19:13:08]opened in 1720744654 [19:13:08]opened+sec_in_day 1720831054 [19:13:08]quantity*price = 50008 [19:13:08]sum+1 = 50009 [19:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 265 12.07.2024 19:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164344 ФПД: 222681104339744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191308&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164344&fm=222681104339744&tin=02508201610067®Number=0000000000090829&sum=50000 [19:13:09]StoreToDocumentArchive [19:13:09]shift 445 fd 164344 [19:13:09]save to /storage/0445/doc_00164344 [19:13:09]save last doc name /storage/0445/doc_00164344 to /storage/kkm_last_doc_name [19:13:09]save OK [19:13:09]Clear old archive folders... [19:13:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:09]tlvbuf is 01561240 [19:13:09]SAM_PROTO_ClearQueue [19:13:09]wFMCommunicate request_size=4 [19:13:09]MH_SAM_APDU [19:13:09]CAPDU: 80 09 00 00 [19:13:09]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [19:13:09]Write i2c OK [19:13:09]MH_I2C_Read... [19:13:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:09]Read from MH i2c: E2 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 03 00 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [19:13:09]RAPDU: 90 00 [19:13:09]wFMCommunicate OK [19:13:09]SAM_PROTO_ClearQueue done [19:13:09]KKMCreateOFDPacket [19:13:09]OFDProtocolAddRootSTLVToBuf [19:13:09]FM_MakeSignedData [19:13:09]FM_MakeSignedData [19:13:09]SAM_PROTO_SignData [19:13:09]wFMCommunicate request_size=4 [19:13:09]MH_SAM_APDU [19:13:09]CAPDU: 80 0D 01 02 [19:13:09]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [19:13:09]Write i2c OK [19:13:09]MH_I2C_Read... [19:13:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:09]Read from MH i2c: E2 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 03 00 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [19:13:09]RAPDU: 90 00 [19:13:09]wFMCommunicate OK [19:13:09]wFMCommunicate request_size=255 [19:13:09]MH_SAM_APDU [19:13: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 09 01 00 00 F4 03 04 00 44 80 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 81 02 00 35 04 06 00 CA [19:13:09]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 09 01 00 00 F4 03 04 00 44 80 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 81 02 00 35 04 06 00 CA 00 00 7A [19:13:09]Write i2c OK [19:13:09]MH_I2C_Read... [19:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:09]Read from MH i2c: E2 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 03 00 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [19:13:09]RAPDU: 90 00 [19:13:09]wFMCommunicate OK [19:13:09]wFMCommunicate request_size=10 [19:13:09]MH_SAM_APDU [19:13:09]CAPDU: 80 0D 02 02 05 86 FC 1F 53 20 [19:13:09]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 86 FC 1F 53 20 00 00 5A [19:13:09]Write i2c OK [19:13:09]MH_I2C_Read... [19:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:09]Read from MH i2c: E2 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 03 00 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [19:13:09]RAPDU: 90 00 [19:13:09]wFMCommunicate OK [19:13:09]wFMCommunicate request_size=4 [19:13:09]MH_SAM_APDU [19:13:09]CAPDU: 80 0D 03 02 [19:13:09]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [19:13:09]Write i2c OK [19:13:09]MH_I2C_Read... [19:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:09]Read from MH i2c: E2 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 0B 00 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 0B 00 C3 00 00 89 5A B9 08 D2 A3 9E 95 90 00 8B [19:13:09]RAPDU: 89 5A B9 08 D2 A3 9E 95 90 00 [19:13:09]wFMCommunicate OK [19:13:09]SAM_PROTO_SignData done [19:13:09]FM_MakeSignedData done [19:13:09]CreateOFDProtocolMessage [19:13:09]wFMCommunicate request_size=4 [19:13:09]MH_SAM_APDU [19:13:09]CAPDU: 80 11 00 00 [19:13:09]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [19:13:09]Write i2c OK [19:13:09]MH_I2C_Read... [19:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:09]Read from MH i2c: E2 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 17 00 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [19:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:13:09]wFMCommunicate OK [19:13:09]CreateOFDProtocolMessage done [19:13:09]OFDSenderStorePacket 164344 [19:13:09]StoreOFDPacket docnum=164344 [19:13:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2A A2 07 01 21 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 09 01 00 00 F4 03 04 00 44 80 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 81 02 00 35 04 06 00 CA 86 FC 1F 53 20 89 5A B9 08 D2 A3 9E 95 [19:13:09]CheckFolder [19:13:09]dirname=/storage/ofd_packets [19:13:09]CheckFolder done [19:13:09]ProducePacketName [19:13:09]name=ofd_packets/00164344 [19:13:09]NVStorageSaveData ofd_packets/00164344 [19:13:09]File name is /storage/ofd_packets/00164344 [19:13:09]Write 301 bytes [19:13:09]NVStorageSaveData done [19:13:09]OFDSenderStorePacket done [19:13:09]KKMCreateOFDPacket done [19:13:09]NVStorageSaveData kkm_last_timestamp [19:13:09]File name is /storage/kkm_last_timestamp [19:13:09]Write 4 bytes [19:13:09]NVStorageSaveData done [19:13:09]ExternCall_PrintAddStr [19:13:09]wPrintStart [19:13:09]Write to MH i2c: 01 00 00 C5 00 C5 [19:13:09]Write i2c OK [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: 01 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: 01 07 00 [19:13:09]MH_I2C_Read... [19:13:09]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [19:13:09]RasterBufferAndPrint [19:13:09]line Счет N : (1)458428 [19:13:09]line ИНН: 02508201610067 [19:13:09]line Контрольно-Кассовый Чек [19:13:09]line ПРОДАЖА [19:13:09]line ТРК (МРК, ГНК) : 12 [19:13:09]line Товар: 2710124130 [19:13:09]line Аи-92-К-5 [19:13:09]line 7.600 * 65.80 [19:13:09]line = 500.08 [19:13:09]line НДС 12% НСП 1% [19:13:09]line > о реализуемом товаре [19:13:09]line ОКРУГЛЕНИЕ: -0.08 [19:13:09]line ИТОГО: 500.00 [19:13:09]line Внесено: 500.00 [19:13:09]line СДАЧА: 0.00 [19:13:09]line НСП 1% : 4.42 [19:13:09]line НДС 12% : 53.11 [19:13:09]line Наличными: 500.00 [19:13:09]line Безнал.: 0.00 [19:13:09]line Место: АЗС № 72 "Партнер Нефть" [19:13:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:13:09]line СНО: Общий режим [19:13:09]line Чек 265 12.07.2024 19:13 [19:13:09]line Смена: 445 ФФД: 1.0 [19:13:09]line ЗНМ: 0300000160 [19:13:09]line РНМ: 0000000000090829 [19:13:09]line Версия ККМ: 001 [19:13:09]line ФМ: 0000000000874718 [19:13:09]line ФД: 164344 [19:13:09]line ФПД: 222681104339744 [19:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191308&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164344&fm=222681104339744&tin=02508201610067®Number=0000000000090829&sum=50000 [19:13:10]OFD Sender: Processing packet 164344 [packets to send 104, broken 103] [19:13:10]ProducePacketName [19:13:10]name=ofd_packets/00164344 [19:13:10]OFD Sender: To server: pG, [19:13:10]CommunicateWithHost lk.salyk.kg:30040 [19:13:10]ConnectInit lk.salyk.kg [19:13:10]written 0, free lines is 4095 [19:13:10]Connected sock=10 [19:13:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2A A2 07 01 21 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 09 01 00 00 F4 03 04 00 44 80 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 81 02 00 35 04 06 00 CA 86 FC 1F 53 20 89 5A B9 08 D2 A3 9E 95 [19:13:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7C 4A 47 00 BE 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 34 37 31 38 10 04 04 00 F8 81 02 00 F4 03 04 00 D8 26 91 66 B6 04 01 00 00 69 19 5A 66 F0 0B 03 7E [19:13:10]CommunicateWithHost err = 0 [19:13:10]CheckOFDResponse [19:13:10]1017 (14) - 77093643461234 [19:13:10]1041 (16) - 0000000000874718 [19:13:10]1040 (4) - 164344 [19:13:10]1012 (4) - 12.07.2024 12:51 [19:13:10]1206 (1) - 0 [19:13:10]OFD Sender: Remove packet 164344 [19:13:10]ProducePacketName [19:13:10]name=ofd_packets/00164344 [19:13:10]NVStorageDeleteData [19:13:10]Write to MH i2c: 01 00 00 EF 00 EF [19:13:10]Write i2c OK [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: 01 [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: 01 07 00 [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 02 0D 05 [19:13:10]RasterBufferAndPrint [19:13:10]line [19:13:10]line [19:13:10]line [19:13:10]line [19:13:10]line [19:13:10]written 0, free lines is 3336 [19:13:10]MH_Cut [19:13:10]Write to MH i2c: D1 01 00 F6 00 01 C8 [19:13:10]Write i2c OK [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: D1 [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: D1 01 00 [19:13:10]MH_I2C_Read... [19:13:10]Read from MH i2c: D1 01 00 F6 00 00 C7 [19:13:10]Write to MH i2c: 01 00 00 F7 00 F7 [19:13:10]Write i2c OK [19:13:10]MH_I2C_Read... [19:13:11]OFD Sender: No OFD packet to send [19:13:11]*** Cut start [19:13:11]*** Partial cut [19:13:11]*** CUTSNS_PIN = 1 [19:13:11]*** CUTSNS_PIN = 0 [19:13:11]*** Brake cut motor [19:13:11]Read from MH i2c: 01 [19:13:12]MH_I2C_Read... [19:13:12]*** Stop cut motor [19:13:12]*** Cut end [19:13:12]Read from MH i2c: 01 07 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [19:13:12]process_action close_receipt done [19:13:12]requested_data is exist [19:13:12]produce_requested_data [19:13:12]requested_item fm.sn is exist - process it [19:13:12]wFMCommunicate request_size=4 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 11 00 00 [19:13:12]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 17 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [19:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:13:12]wFMCommunicate OK [19:13:12]requested_item fd.num is exist - process it [19:13:12]SAM_PROTO_GetFieldsCounters [19:13:12]wFMCommunicate request_size=4 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 13 00 00 [19:13:12]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 62 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [19:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:12]wFMCommunicate OK [19:13:12]SAM_PROTO_GetFieldsCounters done [19:13:12]requested_item shift.num is exist - process it [19:13:12]requested_item shift.opened is exist - process it [19:13:12]req_shift_opened [19:13:12]FM_GetShiftState [19:13:12]SAM_PROTO_GetShiftState [19:13:12]wFMCommunicate request_size=4 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 13 01 00 [19:13:12]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 0E 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C1 [19:13:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:13:12]wFMCommunicate OK [19:13:12]SAM_PROTO_GetShiftState done [19:13:12]FM_GetShiftState done [19:13:12]req_shift_opened done [19:13:12]requested_item shift.open_date is exist - process it [19:13:12]req_shift_open_date [19:13:12]req_shift_open_date done [19:13:12]produce_requested_data done [19:13:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164344,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:13:12]process_action_free close_receipt [19:13:12]json_value_free [19:13:12]json_value_free done [19:13:12]process_json_proto returns [19:13:12]Send response to host [19:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164344,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:13:12]free response buf [19:13:12]execute_script done [19:13:12]execute_script returns [19:13:12]free content buf [19:13:12]Sock 9.Close socket [19:13:12]Sock 9.Thread stoped [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:06]accept exits with 7 [19:17:06]New connection [19:17:06]New thread 3067391332 created [19:17:06]Thread 3067534692 joined [19:17:06]Waiting for new connection... [19:17:06] Sock 7.Parse request [19:17:06]Sock 7.Check first char [19:17:06]Sock 7.First char is OK [19:17:06]request: POST /json_proto HTTP/1.0 [19:17:06]Method: POST [19:17:06]URL: /json_proto [19:17:06]Method is POST - this is cgi request [19:17:06]url: /json_proto [19:17:06]query_string will be loaded in cgi processing [19:17:06]execute_cgi json_proto POST (null) [19:17:06]execute_cgi path=json_proto method=POST [19:17:06]POST find Content-Length [19:17:06]Host: 172.17.56.4:8080 [19:17:06]Content-Length: 679 [19:17:06]Content-Type: application/json [19:17:06] [19:17:06]POST finish read [19:17:06]Found Content-Length = 679 [19:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458429", "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" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:06]execute_script... [19:17:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458429", "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" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:06]POST & json_proto [19:17:06]process_json_proto [19:17:06]json parsed OK: [19:17:06]protocol is kg_v1.0 [19:17:06]action value=close_receipt [19:17:06]process_action close_receipt [19:17:06]cmd_close_receipt [19:17:06]MH_GetDate [19:17:06]Write to MH i2c: F0 00 00 FB 00 EA [19:17:06]Write i2c OK [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: F0 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: F0 09 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: F0 09 00 FB 00 00 32 81 91 66 C9 DC B2 64 58 [19:17:06]GetLastDocTimeStamp 1720811588 [19:17:06]current date 1720811826 [19:17:06]FM_GetShiftState [19:17:06]SAM_PROTO_GetShiftState [19:17:06]wFMCommunicate request_size=4 [19:17:06]MH_SAM_APDU [19:17:06]CAPDU: 80 13 01 00 [19:17:06]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [19:17:06]Write i2c OK [19:17:06]MH_I2C_Read... [19:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:06]Read from MH i2c: E2 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 0E 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C3 [19:17:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:17:06]wFMCommunicate OK [19:17:06]SAM_PROTO_GetShiftState done [19:17:06]FM_GetShiftState done [19:17:06]opened in 1720744654 [19:17:06]opened+sec_in_day 1720831054 [19:17:06]quantity*price = 160049 [19:17:06]sum+1 = 160050 [19:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 266 12.07.2024 19:17 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164345 ФПД: 123650355091150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164345&fm=123650355091150&tin=02508201610067®Number=0000000000090829&sum=160000 [19:17:07]StoreToDocumentArchive [19:17:07]shift 445 fd 164345 [19:17:07]save to /storage/0445/doc_00164345 [19:17:07]save last doc name /storage/0445/doc_00164345 to /storage/kkm_last_doc_name [19:17:07]save OK [19:17:07]Clear old archive folders... [19:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:17:07]tlvbuf is 01562BB0 [19:17:07]SAM_PROTO_ClearQueue [19:17:07]wFMCommunicate request_size=4 [19:17:07]MH_SAM_APDU [19:17:07]CAPDU: 80 09 00 00 [19:17:07]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:07]Read from MH i2c: E2 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [19:17:07]RAPDU: 90 00 [19:17:07]wFMCommunicate OK [19:17:07]SAM_PROTO_ClearQueue done [19:17:07]KKMCreateOFDPacket [19:17:07]OFDProtocolAddRootSTLVToBuf [19:17:07]FM_MakeSignedData [19:17:07]FM_MakeSignedData [19:17:07]SAM_PROTO_SignData [19:17:07]wFMCommunicate request_size=4 [19:17:07]MH_SAM_APDU [19:17:07]CAPDU: 80 0D 01 02 [19:17:07]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:07]Read from MH i2c: E2 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [19:17:07]RAPDU: 90 00 [19:17:07]wFMCommunicate OK [19:17:07]wFMCommunicate request_size=255 [19:17:07]MH_SAM_APDU [19:17: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 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 32 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 81 02 00 35 04 06 00 70 75 97 7D [19:17:07]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 32 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 81 02 00 35 04 06 00 70 75 97 7D 00 00 08 [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:08]Read from MH i2c: E2 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 03 00 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [19:17:08]RAPDU: 90 00 [19:17:08]wFMCommunicate OK [19:17:08]wFMCommunicate request_size=7 [19:17:08]MH_SAM_APDU [19:17:08]CAPDU: 80 0D 02 02 02 D6 CE [19:17:08]Write to MH i2c: E2 0A 00 0C 01 80 0D 02 02 02 00 D6 CE 00 00 2F [19:17:08]Write i2c OK [19:17:08]MH_I2C_Read... [19:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:08]Read from MH i2c: E2 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 03 00 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:17:08]RAPDU: 90 00 [19:17:08]wFMCommunicate OK [19:17:08]wFMCommunicate request_size=4 [19:17:08]MH_SAM_APDU [19:17:08]CAPDU: 80 0D 03 02 [19:17:08]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [19:17:08]Write i2c OK [19:17:08]MH_I2C_Read... [19:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:08]Read from MH i2c: E2 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 0B 00 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 0B 00 0D 01 00 4C 7F D4 31 EB 01 1D 0B 90 00 6E [19:17:08]RAPDU: 4C 7F D4 31 EB 01 1D 0B 90 00 [19:17:08]wFMCommunicate OK [19:17:08]SAM_PROTO_SignData done [19:17:08]FM_MakeSignedData done [19:17:08]CreateOFDProtocolMessage [19:17:08]wFMCommunicate request_size=4 [19:17:08]MH_SAM_APDU [19:17:08]CAPDU: 80 11 00 00 [19:17:08]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [19:17:08]Write i2c OK [19:17:08]MH_I2C_Read... [19:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:08]Read from MH i2c: E2 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 17 00 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [19:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:17:08]wFMCommunicate OK [19:17:08]CreateOFDProtocolMessage done [19:17:08]OFDSenderStorePacket 164345 [19:17:08]StoreOFDPacket docnum=164345 [19:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 31 92 04 01 9D BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 32 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 81 02 00 35 04 06 00 70 75 97 7D D6 CE 4C 7F D4 31 EB 01 1D 0B [19:17:08]CheckFolder [19:17:08]dirname=/storage/ofd_packets [19:17:08]CheckFolder done [19:17:08]ProducePacketName [19:17:08]name=ofd_packets/00164345 [19:17:08]NVStorageSaveData ofd_packets/00164345 [19:17:08]File name is /storage/ofd_packets/00164345 [19:17:08]Write 298 bytes [19:17:08]NVStorageSaveData done [19:17:08]OFDSenderStorePacket done [19:17:08]KKMCreateOFDPacket done [19:17:08]NVStorageSaveData kkm_last_timestamp [19:17:08]File name is /storage/kkm_last_timestamp [19:17:08]Write 4 bytes [19:17:08]NVStorageSaveData done [19:17:08]ExternCall_PrintAddStr [19:17:08]wPrintStart [19:17:08]Write to MH i2c: 01 00 00 0F 01 10 [19:17:08]Write i2c OK [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: 01 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: 01 07 00 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [19:17:08]RasterBufferAndPrint [19:17:08]line Счет N : (1)458429 [19:17:08]line ИНН: 02508201610067 [19:17:08]line Контрольно-Кассовый Чек [19:17:08]line ПРОДАЖА [19:17:08]line ТРК (МРК, ГНК) : 21 [19:17:08]line Товар: 2710194210 [19:17:08]line ДТ-К-5 [19:17:08]line 22.260 * 71.90 [19:17:08]line = 1600.49 [19:17:08]line НДС 12% НСП 1% [19:17:08]line > о реализуемом товаре [19:17:08]line ОКРУГЛЕНИЕ: -0.49 [19:17:08]line ИТОГО: 1600.00 [19:17:08]line Внесено: 1600.00 [19:17:08]line СДАЧА: 0.00 [19:17:08]line НСП 1% : 14.16 [19:17:08]line НДС 12% : 169.96 [19:17:08]line Наличными: 1600.00 [19:17:08]line Безнал.: 0.00 [19:17:08]line Место: АЗС № 72 "Партнер Нефть" [19:17:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:17:08]line СНО: Общий режим [19:17:08]line Чек 266 12.07.2024 19:17 [19:17:08]line Смена: 445 ФФД: 1.0 [19:17:08]line ЗНМ: 0300000160 [19:17:08]line РНМ: 0000000000090829 [19:17:08]line Версия ККМ: 001 [19:17:08]line ФМ: 0000000000874718 [19:17:08]line ФД: 164345 [19:17:08]line ФПД: 123650355091150 [19:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164345&fm=123650355091150&tin=02508201610067®Number=0000000000090829&sum=160000 [19:17:08]OFD Sender: Processing packet 164345 [packets to send 104, broken 103] [19:17:08]ProducePacketName [19:17:08]name=ofd_packets/00164345 [19:17:08]OFD Sender: To server: pG, [19:17:08]CommunicateWithHost lk.salyk.kg:30040 [19:17:08]ConnectInit lk.salyk.kg [19:17:08]written 0, free lines is 4095 [19:17:08]Connected sock=10 [19:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 31 92 04 01 9D BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 32 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 81 02 00 35 04 06 00 70 75 97 7D D6 CE 4C 7F D4 31 EB 01 1D 0B [19:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E8 21 47 00 D1 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 34 37 31 38 10 04 04 00 F9 81 02 00 F4 03 04 00 C6 27 91 66 B6 04 01 00 00 62 CF 06 A1 29 6E AF F7 [19:17:08]CommunicateWithHost err = 0 [19:17:08]CheckOFDResponse [19:17:08]1017 (14) - 77093643461234 [19:17:08]1041 (16) - 0000000000874718 [19:17:08]1040 (4) - 164345 [19:17:08]1012 (4) - 12.07.2024 12:55 [19:17:08]1206 (1) - 0 [19:17:08]OFD Sender: Remove packet 164345 [19:17:08]ProducePacketName [19:17:08]name=ofd_packets/00164345 [19:17:08]NVStorageDeleteData [19:17:09]Write to MH i2c: 01 00 00 39 01 3A [19:17:09]Write i2c OK [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: 01 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: 01 07 00 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 F6 0C 43 [19:17:09]RasterBufferAndPrint [19:17:09]line [19:17:09]line [19:17:09]line [19:17:09]line [19:17:09]line [19:17:09]written 0, free lines is 3322 [19:17:09]MH_Cut [19:17:09]Write to MH i2c: D1 01 00 40 01 01 13 [19:17:09]Write i2c OK [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: D1 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: D1 01 00 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: D1 01 00 40 01 00 12 [19:17:09]Write to MH i2c: 01 00 00 41 01 42 [19:17:09]Write i2c OK [19:17:09]MH_I2C_Read... [19:17:09]OFD Sender: No OFD packet to send [19:17:09]*** Cut start [19:17:09]*** Partial cut [19:17:09]*** CUTSNS_PIN = 1 [19:17:09]*** CUTSNS_PIN = 0 [19:17:09]*** Brake cut motor [19:17:10]Read from MH i2c: 01 [19:17:10]MH_I2C_Read... [19:17:10]*** Stop cut motor [19:17:10]*** Cut end [19:17:10]Read from MH i2c: 01 07 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [19:17:10]process_action close_receipt done [19:17:10]requested_data is exist [19:17:10]produce_requested_data [19:17:10]requested_item fm.sn is exist - process it [19:17:10]wFMCommunicate request_size=4 [19:17:10]MH_SAM_APDU [19:17:10]CAPDU: 80 11 00 00 [19:17:10]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [19:17:10]Write i2c OK [19:17:10]MH_I2C_Read... [19:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:10]Read from MH i2c: E2 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 17 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [19:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:17:10]wFMCommunicate OK [19:17:10]requested_item fd.num is exist - process it [19:17:10]SAM_PROTO_GetFieldsCounters [19:17:10]wFMCommunicate request_size=4 [19:17:10]MH_SAM_APDU [19:17:10]CAPDU: 80 13 00 00 [19:17:10]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [19:17:10]Write i2c OK [19:17:10]MH_I2C_Read... [19:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:10]Read from MH i2c: E2 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 62 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [19:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:10]wFMCommunicate OK [19:17:10]SAM_PROTO_GetFieldsCounters done [19:17:10]requested_item shift.num is exist - process it [19:17:10]requested_item shift.opened is exist - process it [19:17:10]req_shift_opened [19:17:10]FM_GetShiftState [19:17:10]SAM_PROTO_GetShiftState [19:17:10]wFMCommunicate request_size=4 [19:17:10]MH_SAM_APDU [19:17:10]CAPDU: 80 13 01 00 [19:17:10]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [19:17:10]Write i2c OK [19:17:10]MH_I2C_Read... [19:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:10]Read from MH i2c: E2 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 0E 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0C [19:17:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:17:10]wFMCommunicate OK [19:17:10]SAM_PROTO_GetShiftState done [19:17:10]FM_GetShiftState done [19:17:10]req_shift_opened done [19:17:10]requested_item shift.open_date is exist - process it [19:17:10]req_shift_open_date [19:17:10]req_shift_open_date done [19:17:10]produce_requested_data done [19:17:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164345,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:17:10]process_action_free close_receipt [19:17:10]json_value_free [19:17:10]json_value_free done [19:17:10]process_json_proto returns [19:17:10]Send response to host [19:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164345,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:17:10]free response buf [19:17:10]execute_script done [19:17:10]execute_script returns [19:17:10]free content buf [19:17:10]Sock 7.Close socket [19:17:10]Sock 7.Thread stoped [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:34]accept exits with 9 [19:17:34]New connection [19:17:34]New thread 3067534692 created [19:17:34]Thread 3067391332 joined [19:17:34]Waiting for new connection... [19:17:34] Sock 9.Parse request [19:17:34]Sock 9.Check first char [19:17:34]Sock 9.First char is OK [19:17:34]request: POST /json_proto HTTP/1.0 [19:17:34]Method: POST [19:17:34]URL: /json_proto [19:17:34]Method is POST - this is cgi request [19:17:34]url: /json_proto [19:17:34]query_string will be loaded in cgi processing [19:17:34]execute_cgi json_proto POST (null) [19:17:34]execute_cgi path=json_proto method=POST [19:17:34]POST find Content-Length [19:17:34]Host: 172.17.56.4:8080 [19:17:34]Content-Length: 677 [19:17:34]Content-Type: application/json [19:17:34] [19:17:34]POST finish read [19:17:34]Found Content-Length = 677 [19:17:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.740, "sum" : 180.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:34]execute_script... [19:17: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)458430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.740, "sum" : 180.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:34]POST & json_proto [19:17:34]process_json_proto [19:17:34]json parsed OK: [19:17:34]protocol is kg_v1.0 [19:17:34]action value=close_receipt [19:17:34]process_action close_receipt [19:17:34]cmd_close_receipt [19:17:34]MH_GetDate [19:17:34]Write to MH i2c: F0 00 00 45 01 35 [19:17:34]Write i2c OK [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: F0 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: F0 09 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: F0 09 00 45 01 00 4F 81 91 66 C9 DC B2 64 C0 [19:17:34]GetLastDocTimeStamp 1720811826 [19:17:34]current date 1720811855 [19:17:34]FM_GetShiftState [19:17:34]SAM_PROTO_GetShiftState [19:17:34]wFMCommunicate request_size=4 [19:17:34]MH_SAM_APDU [19:17:34]CAPDU: 80 13 01 00 [19:17:34]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [19:17:34]Write i2c OK [19:17:34]MH_I2C_Read... [19:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:34]Read from MH i2c: E2 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: E2 0E 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0E [19:17:34]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:17:34]wFMCommunicate OK [19:17:34]SAM_PROTO_GetShiftState done [19:17:34]FM_GetShiftState done [19:17:34]opened in 1720744654 [19:17:34]opened+sec_in_day 1720831054 [19:17:34]quantity*price = 18029 [19:17:34]sum+1 = 18030 [19:17:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.59 НДС 12% : 19.15 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 267 12.07.2024 19:17 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164346 ФПД: 134349969462700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191735&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164346&fm=134349969462700&tin=02508201610067®Number=0000000000090829&sum=18000 [19:17:36]StoreToDocumentArchive [19:17:36]shift 445 fd 164346 [19:17:36]save to /storage/0445/doc_00164346 [19:17:36]save last doc name /storage/0445/doc_00164346 to /storage/kkm_last_doc_name [19:17:36]save OK [19:17:36]Clear old archive folders... [19:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:36]tlvbuf is 0155E860 [19:17:36]SAM_PROTO_ClearQueue [19:17:36]wFMCommunicate request_size=4 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 09 00 00 [19:17:36]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [19:17:36]RAPDU: 90 00 [19:17:36]wFMCommunicate OK [19:17:36]SAM_PROTO_ClearQueue done [19:17:36]KKMCreateOFDPacket [19:17:36]OFDProtocolAddRootSTLVToBuf [19:17:36]FM_MakeSignedData [19:17:36]FM_MakeSignedData [19:17:36]SAM_PROTO_SignData [19:17:36]wFMCommunicate request_size=4 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 0D 01 02 [19:17:36]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [19:17:36]RAPDU: 90 00 [19:17:36]wFMCommunicate OK [19:17:36]wFMCommunicate request_size=255 [19:17:36]MH_SAM_APDU [19:17: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 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 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 4F 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 81 02 00 35 04 06 00 7A [19:17:36]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 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 4F 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 81 02 00 35 04 06 00 7A 00 00 F1 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [19:17:36]RAPDU: 90 00 [19:17:36]wFMCommunicate OK [19:17:36]wFMCommunicate request_size=10 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 0D 02 02 05 30 CA 34 95 AC [19:17:36]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 30 CA 34 95 AC 00 00 4A [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [19:17:36]RAPDU: 90 00 [19:17:36]wFMCommunicate OK [19:17:36]wFMCommunicate request_size=4 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 0D 03 02 [19:17:36]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 0B 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 0B 00 57 01 00 EC 53 02 29 38 F5 7B C7 90 00 AD [19:17:36]RAPDU: EC 53 02 29 38 F5 7B C7 90 00 [19:17:36]wFMCommunicate OK [19:17:36]SAM_PROTO_SignData done [19:17:36]FM_MakeSignedData done [19:17:36]CreateOFDProtocolMessage [19:17:36]wFMCommunicate request_size=4 [19:17:36]MH_SAM_APDU [19:17:36]CAPDU: 80 11 00 00 [19:17:36]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:36]Read from MH i2c: E2 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 17 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [19:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:17:36]wFMCommunicate OK [19:17:36]CreateOFDProtocolMessage done [19:17:36]OFDSenderStorePacket 164346 [19:17:36]StoreOFDPacket docnum=164346 [19:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD A8 07 01 84 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 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 4F 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 81 02 00 35 04 06 00 7A 30 CA 34 95 AC EC 53 02 29 38 F5 7B C7 [19:17:36]CheckFolder [19:17:36]dirname=/storage/ofd_packets [19:17:36]CheckFolder done [19:17:36]ProducePacketName [19:17:36]name=ofd_packets/00164346 [19:17:36]NVStorageSaveData ofd_packets/00164346 [19:17:36]File name is /storage/ofd_packets/00164346 [19:17:36]Write 301 bytes [19:17:36]NVStorageSaveData done [19:17:36]OFDSenderStorePacket done [19:17:36]KKMCreateOFDPacket done [19:17:36]NVStorageSaveData kkm_last_timestamp [19:17:36]File name is /storage/kkm_last_timestamp [19:17:36]Write 4 bytes [19:17:36]NVStorageSaveData done [19:17:36]ExternCall_PrintAddStr [19:17:36]wPrintStart [19:17:36]Write to MH i2c: 01 00 00 59 01 5A [19:17:36]Write i2c OK [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: 01 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: 01 07 00 [19:17:36]MH_I2C_Read... [19:17:36]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [19:17:36]RasterBufferAndPrint [19:17:36]line Счет N : (1)458430 [19:17:36]line ИНН: 02508201610067 [19:17:36]line Контрольно-Кассовый Чек [19:17:36]line ПРОДАЖА [19:17:36]line ТРК (МРК, ГНК) : 12 [19:17:36]line Товар: 2710124130 [19:17:36]line Аи-92-К-5 [19:17:36]line 2.740 * 65.80 [19:17:36]line = 180.29 [19:17:36]line НДС 12% НСП 1% [19:17:36]line > о реализуемом товаре [19:17:36]line ОКРУГЛЕНИЕ: -0.29 [19:17:36]line ИТОГО: 180.00 [19:17:36]line Внесено: 180.00 [19:17:36]line СДАЧА: 0.00 [19:17:36]line НСП 1% : 1.59 [19:17:36]line НДС 12% : 19.15 [19:17:36]line Наличными: 180.00 [19:17:36]line Безнал.: 0.00 [19:17:36]line Место: АЗС № 72 "Партнер Нефть" [19:17:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:17:36]line СНО: Общий режим [19:17:36]line Чек 267 12.07.2024 19:17 [19:17:36]line Смена: 445 ФФД: 1.0 [19:17:36]line ЗНМ: 0300000160 [19:17:36]line РНМ: 0000000000090829 [19:17:36]line Версия ККМ: 001 [19:17:36]line ФМ: 0000000000874718 [19:17:36]line ФД: 164346 [19:17:36]line ФПД: 134349969462700 [19:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191735&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164346&fm=134349969462700&tin=02508201610067®Number=0000000000090829&sum=18000 [19:17:36]OFD Sender: Processing packet 164346 [packets to send 104, broken 103] [19:17:36]ProducePacketName [19:17:36]name=ofd_packets/00164346 [19:17:36]OFD Sender: To server: pG, [19:17:36]CommunicateWithHost lk.salyk.kg:30040 [19:17:36]ConnectInit lk.salyk.kg [19:17:36]written 0, free lines is 4095 [19:17:37]Connected sock=10 [19:17:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD A8 07 01 84 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 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 4F 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 81 02 00 35 04 06 00 7A 30 CA 34 95 AC EC 53 02 29 38 F5 7B C7 [19:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 65 82 47 00 D0 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 34 37 31 38 10 04 04 00 FA 81 02 00 F4 03 04 00 E2 27 91 66 B6 04 01 00 00 62 0D E8 0F A1 75 81 4A [19:17:37]CommunicateWithHost err = 0 [19:17:37]CheckOFDResponse [19:17:37]1017 (14) - 77093643461234 [19:17:37]1041 (16) - 0000000000874718 [19:17:37]1040 (4) - 164346 [19:17:37]1012 (4) - 12.07.2024 12:56 [19:17:37]1206 (1) - 0 [19:17:37]OFD Sender: Remove packet 164346 [19:17:37]ProducePacketName [19:17:37]name=ofd_packets/00164346 [19:17:37]NVStorageDeleteData [19:17:37]Write to MH i2c: 01 00 00 83 01 84 [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: 01 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: 01 07 00 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FB 0C 92 [19:17:37]RasterBufferAndPrint [19:17:37]line [19:17:37]line [19:17:37]line [19:17:37]line [19:17:37]line [19:17:37]written 0, free lines is 3329 [19:17:37]MH_Cut [19:17:37]Write to MH i2c: D1 01 00 8A 01 01 5D [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: D1 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: D1 01 00 [19:17:37]MH_I2C_Read... [19:17:37]Read from MH i2c: D1 01 00 8A 01 00 5C [19:17:37]Write to MH i2c: 01 00 00 8B 01 8C [19:17:37]Write i2c OK [19:17:37]MH_I2C_Read... [19:17:37]OFD Sender: No OFD packet to send [19:17:38]*** Cut start [19:17:38]*** Partial cut [19:17:38]*** CUTSNS_PIN = 1 [19:17:38]*** CUTSNS_PIN = 0 [19:17:38]*** Brake cut motor [19:17:38]Read from MH i2c: 01 [19:17:38]MH_I2C_Read... [19:17:38]*** Stop cut motor [19:17:38]*** Cut end [19:17:38]Read from MH i2c: 01 07 00 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [19:17:38]process_action close_receipt done [19:17:38]requested_data is exist [19:17:38]produce_requested_data [19:17:38]requested_item fm.sn is exist - process it [19:17:38]wFMCommunicate request_size=4 [19:17:38]MH_SAM_APDU [19:17:38]CAPDU: 80 11 00 00 [19:17:38]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [19:17:38]Write i2c OK [19:17:38]MH_I2C_Read... [19:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:38]Read from MH i2c: E2 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 17 00 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [19:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:17:38]wFMCommunicate OK [19:17:38]requested_item fd.num is exist - process it [19:17:38]SAM_PROTO_GetFieldsCounters [19:17:38]wFMCommunicate request_size=4 [19:17:38]MH_SAM_APDU [19:17:38]CAPDU: 80 13 00 00 [19:17:38]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [19:17:38]Write i2c OK [19:17:38]MH_I2C_Read... [19:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:38]Read from MH i2c: E2 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 62 00 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:17:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:38]wFMCommunicate OK [19:17:38]SAM_PROTO_GetFieldsCounters done [19:17:38]requested_item shift.num is exist - process it [19:17:38]requested_item shift.opened is exist - process it [19:17:38]req_shift_opened [19:17:38]FM_GetShiftState [19:17:38]SAM_PROTO_GetShiftState [19:17:38]wFMCommunicate request_size=4 [19:17:38]MH_SAM_APDU [19:17:38]CAPDU: 80 13 01 00 [19:17:38]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [19:17:38]Write i2c OK [19:17:38]MH_I2C_Read... [19:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:38]Read from MH i2c: E2 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 0E 00 [19:17:38]MH_I2C_Read... [19:17:38]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 56 [19:17:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:17:38]wFMCommunicate OK [19:17:38]SAM_PROTO_GetShiftState done [19:17:38]FM_GetShiftState done [19:17:38]req_shift_opened done [19:17:38]requested_item shift.open_date is exist - process it [19:17:38]req_shift_open_date [19:17:38]req_shift_open_date done [19:17:38]produce_requested_data done [19:17:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164346,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:17:38]process_action_free close_receipt [19:17:38]json_value_free [19:17:38]json_value_free done [19:17:38]process_json_proto returns [19:17:38]Send response to host [19:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164346,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:17:38]free response buf [19:17:38]execute_script done [19:17:38]execute_script returns [19:17:38]free content buf [19:17:38]Sock 9.Close socket [19:17:38]Sock 9.Thread stoped [19:17: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:04]accept exits with 7 [19:18:04]New connection [19:18:04]New thread 3067391332 created [19:18:04]Thread 3067534692 joined [19:18:04]Waiting for new connection... [19:18:04] Sock 7.Parse request [19:18:04]Sock 7.Check first char [19:18:04]Sock 7.First char is OK [19:18:04]request: POST /json_proto HTTP/1.0 [19:18:04]Method: POST [19:18:04]URL: /json_proto [19:18:04]Method is POST - this is cgi request [19:18:04]url: /json_proto [19:18:04]query_string will be loaded in cgi processing [19:18:04]execute_cgi json_proto POST (null) [19:18:04]execute_cgi path=json_proto method=POST [19:18:04]POST find Content-Length [19:18:04]Host: 172.17.56.4:8080 [19:18:04]Content-Length: 677 [19:18:04]Content-Type: application/json [19:18:04] [19:18:04]POST finish read [19:18:04]Found Content-Length = 677 [19:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:04]execute_script... [19:18: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)458431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:04]POST & json_proto [19:18:04]process_json_proto [19:18:04]json parsed OK: [19:18:04]protocol is kg_v1.0 [19:18:04]action value=close_receipt [19:18:04]process_action close_receipt [19:18:04]cmd_close_receipt [19:18:04]MH_GetDate [19:18:04]Write to MH i2c: F0 00 00 8F 01 7F [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: F0 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: F0 09 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: F0 09 00 8F 01 00 6C 81 91 66 C9 DC B2 64 27 [19:18:04]GetLastDocTimeStamp 1720811855 [19:18:04]current date 1720811884 [19:18:04]FM_GetShiftState [19:18:04]SAM_PROTO_GetShiftState [19:18:04]wFMCommunicate request_size=4 [19:18:04]MH_SAM_APDU [19:18:04]CAPDU: 80 13 01 00 [19:18:04]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 0E 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 58 [19:18:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:18:04]wFMCommunicate OK [19:18:04]SAM_PROTO_GetShiftState done [19:18:04]FM_GetShiftState done [19:18:04]opened in 1720744654 [19:18:04]opened+sec_in_day 1720831054 [19:18:04]quantity*price = 14015 [19:18:04]sum+1 = 14016 [19:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.88 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 268 12.07.2024 19:18 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164347 ФПД: 172664995213272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191804&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164347&fm=172664995213272&tin=02508201610067®Number=0000000000090829&sum=14000 [19:18:05]StoreToDocumentArchive [19:18:05]shift 445 fd 164347 [19:18:05]save to /storage/0445/doc_00164347 [19:18:05]save last doc name /storage/0445/doc_00164347 to /storage/kkm_last_doc_name [19:18:05]save OK [19:18:05]Clear old archive folders... [19:18:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:05]tlvbuf is 015AD710 [19:18:05]SAM_PROTO_ClearQueue [19:18:05]wFMCommunicate request_size=4 [19:18:05]MH_SAM_APDU [19:18:05]CAPDU: 80 09 00 00 [19:18:05]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:05]Read from MH i2c: E2 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [19:18:05]RAPDU: 90 00 [19:18:05]wFMCommunicate OK [19:18:05]SAM_PROTO_ClearQueue done [19:18:05]KKMCreateOFDPacket [19:18:05]OFDProtocolAddRootSTLVToBuf [19:18:05]FM_MakeSignedData [19:18:05]FM_MakeSignedData [19:18:05]SAM_PROTO_SignData [19:18:05]wFMCommunicate request_size=4 [19:18:05]MH_SAM_APDU [19:18:05]CAPDU: 80 0D 01 02 [19:18:05]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:05]Read from MH i2c: E2 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [19:18:05]RAPDU: 90 00 [19:18:05]wFMCommunicate OK [19:18:05]wFMCommunicate request_size=255 [19:18:05]MH_SAM_APDU [19:18: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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 6C 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 81 02 00 35 04 06 00 9D [19:18:05]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 6C 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 81 02 00 35 04 06 00 9D 00 00 2B [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:05]Read from MH i2c: E2 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [19:18:05]RAPDU: 90 00 [19:18:05]wFMCommunicate OK [19:18:05]wFMCommunicate request_size=10 [19:18:05]MH_SAM_APDU [19:18:05]CAPDU: 80 0D 02 02 05 09 B3 B4 6F D8 [19:18:05]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 09 B3 B4 6F D8 00 00 DC [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:05]Read from MH i2c: E2 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [19:18:05]RAPDU: 90 00 [19:18:05]wFMCommunicate OK [19:18:05]wFMCommunicate request_size=4 [19:18:05]MH_SAM_APDU [19:18:05]CAPDU: 80 0D 03 02 [19:18:05]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:05]Read from MH i2c: E2 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 0B 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 0B 00 A1 01 00 4D 60 18 37 BF BE BA BE 90 00 0F [19:18:05]RAPDU: 4D 60 18 37 BF BE BA BE 90 00 [19:18:05]wFMCommunicate OK [19:18:05]SAM_PROTO_SignData done [19:18:05]FM_MakeSignedData done [19:18:05]CreateOFDProtocolMessage [19:18:05]wFMCommunicate request_size=4 [19:18:05]MH_SAM_APDU [19:18:05]CAPDU: 80 11 00 00 [19:18:05]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:05]Read from MH i2c: E2 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 17 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [19:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:18:05]wFMCommunicate OK [19:18:05]CreateOFDProtocolMessage done [19:18:05]OFDSenderStorePacket 164347 [19:18:05]StoreOFDPacket docnum=164347 [19:18:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A CB 07 01 70 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 6C 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 81 02 00 35 04 06 00 9D 09 B3 B4 6F D8 4D 60 18 37 BF BE BA BE [19:18:05]CheckFolder [19:18:05]dirname=/storage/ofd_packets [19:18:05]CheckFolder done [19:18:05]ProducePacketName [19:18:05]name=ofd_packets/00164347 [19:18:05]NVStorageSaveData ofd_packets/00164347 [19:18:05]File name is /storage/ofd_packets/00164347 [19:18:05]Write 301 bytes [19:18:05]NVStorageSaveData done [19:18:05]OFDSenderStorePacket done [19:18:05]KKMCreateOFDPacket done [19:18:05]NVStorageSaveData kkm_last_timestamp [19:18:05]File name is /storage/kkm_last_timestamp [19:18:05]Write 4 bytes [19:18:05]NVStorageSaveData done [19:18:05]ExternCall_PrintAddStr [19:18:05]wPrintStart [19:18:05]Write to MH i2c: 01 00 00 A3 01 A4 [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: 01 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: 01 07 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [19:18:05]RasterBufferAndPrint [19:18:05]line Счет N : (1)458431 [19:18:05]line ИНН: 02508201610067 [19:18:05]line Контрольно-Кассовый Чек [19:18:05]line ПРОДАЖА [19:18:05]line ТРК (МРК, ГНК) : 12 [19:18:05]line Товар: 2710124130 [19:18:05]line Аи-92-К-5 [19:18:05]line 2.130 * 65.80 [19:18:05]line = 140.15 [19:18:05]line НДС 12% НСП 1% [19:18:05]line > о реализуемом товаре [19:18:05]line ОКРУГЛЕНИЕ: -0.15 [19:18:05]line ИТОГО: 140.00 [19:18:05]line Внесено: 140.00 [19:18:05]line СДАЧА: 0.00 [19:18:05]line НСП 1% : 1.24 [19:18:05]line НДС 12% : 14.88 [19:18:05]line Наличными: 140.00 [19:18:05]line Безнал.: 0.00 [19:18:05]line Место: АЗС № 72 "Партнер Нефть" [19:18:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:18:05]line СНО: Общий режим [19:18:05]line Чек 268 12.07.2024 19:18 [19:18:05]line Смена: 445 ФФД: 1.0 [19:18:05]line ЗНМ: 0300000160 [19:18:05]line РНМ: 0000000000090829 [19:18:05]line Версия ККМ: 001 [19:18:05]line ФМ: 0000000000874718 [19:18:05]line ФД: 164347 [19:18:05]line ФПД: 172664995213272 [19:18:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191804&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164347&fm=172664995213272&tin=02508201610067®Number=0000000000090829&sum=14000 [19:18:06]written 0, free lines is 4095 [19:18:06]OFD Sender: Processing packet 164347 [packets to send 104, broken 103] [19:18:06]ProducePacketName [19:18:06]name=ofd_packets/00164347 [19:18:06]OFD Sender: To server: pG, [19:18:06]CommunicateWithHost lk.salyk.kg:30040 [19:18:06]ConnectInit lk.salyk.kg [19:18:06]Connected sock=10 [19:18:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A CB 07 01 70 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 6C 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 81 02 00 35 04 06 00 9D 09 B3 B4 6F D8 4D 60 18 37 BF BE BA BE [19:18:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 70 73 47 00 21 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 81 02 00 F4 03 04 00 FF 27 91 66 B6 04 01 00 00 1F FA 38 91 82 EE CB 2D [19:18:06]CommunicateWithHost err = 0 [19:18:06]CheckOFDResponse [19:18:06]1017 (14) - 77093643461234 [19:18:06]1041 (16) - 0000000000874718 [19:18:06]1040 (4) - 164347 [19:18:06]1012 (4) - 12.07.2024 12:56 [19:18:06]1206 (1) - 0 [19:18:06]OFD Sender: Remove packet 164347 [19:18:06]ProducePacketName [19:18:06]name=ofd_packets/00164347 [19:18:06]NVStorageDeleteData [19:18:06]Write to MH i2c: 01 00 00 CD 01 CE [19:18:06]Write i2c OK [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: 01 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: 01 07 00 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 F3 0C D4 [19:18:06]RasterBufferAndPrint [19:18:06]line [19:18:06]line [19:18:06]line [19:18:06]line [19:18:06]line [19:18:06]written 0, free lines is 3322 [19:18:06]MH_Cut [19:18:06]Write to MH i2c: D1 01 00 D4 01 01 A7 [19:18:06]Write i2c OK [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: D1 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: D1 01 00 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: D1 01 00 D4 01 00 A6 [19:18:06]Write to MH i2c: 01 00 00 D5 01 D6 [19:18:06]Write i2c OK [19:18:06]MH_I2C_Read... [19:18:07]OFD Sender: No OFD packet to send [19:18:07]*** Cut start [19:18:07]*** Partial cut [19:18:07]*** CUTSNS_PIN = 1 [19:18:07]*** CUTSNS_PIN = 0 [19:18:07]*** Brake cut motor [19:18:07]Read from MH i2c: 01 [19:18:07]MH_I2C_Read... [19:18:07]*** Stop cut motor [19:18:07]*** Cut end [19:18:07]Read from MH i2c: 01 07 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [19:18:07]process_action close_receipt done [19:18:07]requested_data is exist [19:18:07]produce_requested_data [19:18:07]requested_item fm.sn is exist - process it [19:18:07]wFMCommunicate request_size=4 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 11 00 00 [19:18:07]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 17 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [19:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:18:07]wFMCommunicate OK [19:18:07]requested_item fd.num is exist - process it [19:18:07]SAM_PROTO_GetFieldsCounters [19:18:07]wFMCommunicate request_size=4 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 13 00 00 [19:18:07]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:08]Read from MH i2c: E2 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 62 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [19:18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:08]wFMCommunicate OK [19:18:08]SAM_PROTO_GetFieldsCounters done [19:18:08]requested_item shift.num is exist - process it [19:18:08]requested_item shift.opened is exist - process it [19:18:08]req_shift_opened [19:18:08]FM_GetShiftState [19:18:08]SAM_PROTO_GetShiftState [19:18:08]wFMCommunicate request_size=4 [19:18:08]MH_SAM_APDU [19:18:08]CAPDU: 80 13 01 00 [19:18:08]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [19:18:08]Write i2c OK [19:18:08]MH_I2C_Read... [19:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:08]Read from MH i2c: E2 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 0E 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A0 [19:18:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:18:08]wFMCommunicate OK [19:18:08]SAM_PROTO_GetShiftState done [19:18:08]FM_GetShiftState done [19:18:08]req_shift_opened done [19:18:08]requested_item shift.open_date is exist - process it [19:18:08]req_shift_open_date [19:18:08]req_shift_open_date done [19:18:08]produce_requested_data done [19:18:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164347,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:18:08]process_action_free close_receipt [19:18:08]json_value_free [19:18:08]json_value_free done [19:18:08]process_json_proto returns [19:18:08]Send response to host [19:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164347,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:18:08]free response buf [19:18:08]execute_script done [19:18:08]execute_script returns [19:18:08]free content buf [19:18:08]Sock 7.Close socket [19:18:08]Sock 7.Thread stoped [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:02]accept exits with 9 [19:19:02]New connection [19:19:02]New thread 3067534692 created [19:19:02]Thread 3067391332 joined [19:19:02]Waiting for new connection... [19:19:02] Sock 9.Parse request [19:19:02]Sock 9.Check first char [19:19:02]Sock 9.First char is OK [19:19:02]request: POST /json_proto HTTP/1.0 [19:19:02]Method: POST [19:19:02]URL: /json_proto [19:19:02]Method is POST - this is cgi request [19:19:02]url: /json_proto [19:19:02]query_string will be loaded in cgi processing [19:19:02]execute_cgi json_proto POST (null) [19:19:02]execute_cgi path=json_proto method=POST [19:19:02]POST find Content-Length [19:19:02]Host: 172.17.56.4:8080 [19:19:02]Content-Length: 677 [19:19:02]Content-Type: application/json [19:19:02] [19:19:02]POST finish read [19:19:02]Found Content-Length = 677 [19:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:02]execute_script... [19:19:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:02]POST & json_proto [19:19:02]process_json_proto [19:19:02]json parsed OK: [19:19:02]protocol is kg_v1.0 [19:19:02]action value=close_receipt [19:19:02]process_action close_receipt [19:19:02]cmd_close_receipt [19:19:02]MH_GetDate [19:19:02]Write to MH i2c: F0 00 00 D9 01 C9 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: F0 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: F0 09 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: F0 09 00 D9 01 00 A6 81 91 66 C9 DC B2 64 AB [19:19:02]GetLastDocTimeStamp 1720811884 [19:19:02]current date 1720811942 [19:19:02]FM_GetShiftState [19:19:02]SAM_PROTO_GetShiftState [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 13 01 00 [19:19:02]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A2 [19:19:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_GetShiftState done [19:19:02]FM_GetShiftState done [19:19:02]opened in 1720744654 [19:19:02]opened+sec_in_day 1720831054 [19:19:02]quantity*price = 13160 [19:19:02]sum+1 = 13161 [19:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 131.00 Внесено: 131.00 СДАЧА: 0.00 НСП 1% : 1.16 НДС 12% : 13.97 Наличными: 131.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 269 12.07.2024 19:19 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164348 ФПД: 127709212980987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191902&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164348&fm=127709212980987&tin=02508201610067®Number=0000000000090829&sum=13100 [19:19:03]StoreToDocumentArchive [19:19:03]shift 445 fd 164348 [19:19:03]save to /storage/0445/doc_00164348 [19:19:03]save last doc name /storage/0445/doc_00164348 to /storage/kkm_last_doc_name [19:19:03]save OK [19:19:03]Clear old archive folders... [19:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:03]tlvbuf is 01560270 [19:19:03]SAM_PROTO_ClearQueue [19:19:03]wFMCommunicate request_size=4 [19:19:03]MH_SAM_APDU [19:19:03]CAPDU: 80 09 00 00 [19:19:03]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:03]Read from MH i2c: E2 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [19:19:03]RAPDU: 90 00 [19:19:03]wFMCommunicate OK [19:19:03]SAM_PROTO_ClearQueue done [19:19:03]KKMCreateOFDPacket [19:19:03]OFDProtocolAddRootSTLVToBuf [19:19:03]FM_MakeSignedData [19:19:03]FM_MakeSignedData [19:19:03]SAM_PROTO_SignData [19:19:03]wFMCommunicate request_size=4 [19:19:03]MH_SAM_APDU [19:19:03]CAPDU: 80 0D 01 02 [19:19:03]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:03]Read from MH i2c: E2 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 [19:19:03]MH_I2C_Read... [19:19:03]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [19:19:03]RAPDU: 90 00 [19:19:03]wFMCommunicate OK [19:19:03]wFMCommunicate request_size=255 [19:19:03]MH_SAM_APDU [19:19:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 A6 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 81 02 00 35 04 06 00 74 [19:19:03]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 A6 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 81 02 00 35 04 06 00 74 00 00 3A [19:19:03]Write i2c OK [19:19:03]MH_I2C_Read... [19:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:04]Read from MH i2c: E2 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 03 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [19:19:04]RAPDU: 90 00 [19:19:04]wFMCommunicate OK [19:19:04]wFMCommunicate request_size=10 [19:19:04]MH_SAM_APDU [19:19:04]CAPDU: 80 0D 02 02 05 26 9E 46 36 FB [19:19:04]Write to MH i2c: E2 0D 00 EA 01 80 0D 02 02 05 00 26 9E 46 36 FB 00 00 AA [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:04]Read from MH i2c: E2 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 03 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [19:19:04]RAPDU: 90 00 [19:19:04]wFMCommunicate OK [19:19:04]wFMCommunicate request_size=4 [19:19:04]MH_SAM_APDU [19:19:04]CAPDU: 80 0D 03 02 [19:19:04]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:04]Read from MH i2c: E2 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 0B 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 0B 00 EB 01 00 BC 75 7F 9E 2B 1C E0 D1 90 00 AE [19:19:04]RAPDU: BC 75 7F 9E 2B 1C E0 D1 90 00 [19:19:04]wFMCommunicate OK [19:19:04]SAM_PROTO_SignData done [19:19:04]FM_MakeSignedData done [19:19:04]CreateOFDProtocolMessage [19:19:04]wFMCommunicate request_size=4 [19:19:04]MH_SAM_APDU [19:19:04]CAPDU: 80 11 00 00 [19:19:04]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:04]Read from MH i2c: E2 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 17 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [19:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:04]wFMCommunicate OK [19:19:04]CreateOFDProtocolMessage done [19:19:04]OFDSenderStorePacket 164348 [19:19:04]StoreOFDPacket docnum=164348 [19:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CE C4 07 01 CA 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 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 A6 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 81 02 00 35 04 06 00 74 26 9E 46 36 FB BC 75 7F 9E 2B 1C E0 D1 [19:19:04]CheckFolder [19:19:04]dirname=/storage/ofd_packets [19:19:04]CheckFolder done [19:19:04]ProducePacketName [19:19:04]name=ofd_packets/00164348 [19:19:04]NVStorageSaveData ofd_packets/00164348 [19:19:04]File name is /storage/ofd_packets/00164348 [19:19:04]Write 301 bytes [19:19:04]NVStorageSaveData done [19:19:04]OFDSenderStorePacket done [19:19:04]KKMCreateOFDPacket done [19:19:04]NVStorageSaveData kkm_last_timestamp [19:19:04]File name is /storage/kkm_last_timestamp [19:19:04]Write 4 bytes [19:19:04]NVStorageSaveData done [19:19:04]ExternCall_PrintAddStr [19:19:04]wPrintStart [19:19:04]Write to MH i2c: 01 00 00 ED 01 EE [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 07 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [19:19:04]RasterBufferAndPrint [19:19:04]line Счет N : (1)458432 [19:19:04]line ИНН: 02508201610067 [19:19:04]line Контрольно-Кассовый Чек [19:19:04]line ПРОДАЖА [19:19:04]line ТРК (МРК, ГНК) : 22 [19:19:04]line Товар: 2710124130 [19:19:04]line Аи-92-К-5 [19:19:04]line 2.000 * 65.80 [19:19:04]line = 131.60 [19:19:04]line НДС 12% НСП 1% [19:19:04]line > о реализуемом товаре [19:19:04]line ОКРУГЛЕНИЕ: -0.60 [19:19:04]line ИТОГО: 131.00 [19:19:04]line Внесено: 131.00 [19:19:04]line СДАЧА: 0.00 [19:19:04]line НСП 1% : 1.16 [19:19:04]line НДС 12% : 13.97 [19:19:04]line Наличными: 131.00 [19:19:04]line Безнал.: 0.00 [19:19:04]line Место: АЗС № 72 "Партнер Нефть" [19:19:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:19:04]line СНО: Общий режим [19:19:04]line Чек 269 12.07.2024 19:19 [19:19:04]line Смена: 445 ФФД: 1.0 [19:19:04]line ЗНМ: 0300000160 [19:19:04]line РНМ: 0000000000090829 [19:19:04]line Версия ККМ: 001 [19:19:04]line ФМ: 0000000000874718 [19:19:04]line ФД: 164348 [19:19:04]line ФПД: 127709212980987 [19:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191902&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164348&fm=127709212980987&tin=02508201610067®Number=0000000000090829&sum=13100 [19:19:04]OFD Sender: Processing packet 164348 [packets to send 104, broken 103] [19:19:04]ProducePacketName [19:19:04]name=ofd_packets/00164348 [19:19:04]OFD Sender: To server: pG, [19:19:04]CommunicateWithHost lk.salyk.kg:30040 [19:19:04]ConnectInit lk.salyk.kg [19:19:04]written 0, free lines is 4095 [19:19:04]Connected sock=10 [19:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CE C4 07 01 CA 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 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 A6 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 81 02 00 35 04 06 00 74 26 9E 46 36 FB BC 75 7F 9E 2B 1C E0 D1 [19:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D5 FD 47 00 D1 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 34 37 31 38 10 04 04 00 FC 81 02 00 F4 03 04 00 3A 28 91 66 B6 04 01 00 00 39 3D 97 88 3A C9 15 58 [19:19:04]CommunicateWithHost err = 0 [19:19:04]CheckOFDResponse [19:19:04]1017 (14) - 77093643461234 [19:19:04]1041 (16) - 0000000000874718 [19:19:04]1040 (4) - 164348 [19:19:04]1012 (4) - 12.07.2024 12:57 [19:19:04]1206 (1) - 0 [19:19:04]OFD Sender: Remove packet 164348 [19:19:04]ProducePacketName [19:19:04]name=ofd_packets/00164348 [19:19:04]NVStorageDeleteData [19:19:04]Write to MH i2c: 01 00 00 17 02 19 [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 07 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FA 0C 26 [19:19:04]RasterBufferAndPrint [19:19:04]line [19:19:04]line [19:19:04]line [19:19:04]line [19:19:04]line [19:19:04]written 0, free lines is 3328 [19:19:04]MH_Cut [19:19:04]Write to MH i2c: D1 01 00 1E 02 01 F2 [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: D1 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: D1 01 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: D1 01 00 1E 02 00 F1 [19:19:04]Write to MH i2c: 01 00 00 1F 02 21 [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:05]OFD Sender: No OFD packet to send [19:19:05]*** Cut start [19:19:05]*** Partial cut [19:19:05]*** CUTSNS_PIN = 1 [19:19:05]*** CUTSNS_PIN = 0 [19:19:05]*** Brake cut motor [19:19:06]Read from MH i2c: 01 [19:19:06]MH_I2C_Read... [19:19:06]*** Stop cut motor [19:19:06]*** Cut end [19:19:06]Read from MH i2c: 01 07 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [19:19:06]process_action close_receipt done [19:19:06]requested_data is exist [19:19:06]produce_requested_data [19:19:06]requested_item fm.sn is exist - process it [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 11 00 00 [19:19:06]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 17 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [19:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:06]wFMCommunicate OK [19:19:06]requested_item fd.num is exist - process it [19:19:06]SAM_PROTO_GetFieldsCounters [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 13 00 00 [19:19:06]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 62 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [19:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:06]wFMCommunicate OK [19:19:06]SAM_PROTO_GetFieldsCounters done [19:19:06]requested_item shift.num is exist - process it [19:19:06]requested_item shift.opened is exist - process it [19:19:06]req_shift_opened [19:19:06]FM_GetShiftState [19:19:06]SAM_PROTO_GetShiftState [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 13 01 00 [19:19:06]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 0E 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EB [19:19:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:19:06]wFMCommunicate OK [19:19:06]SAM_PROTO_GetShiftState done [19:19:06]FM_GetShiftState done [19:19:06]req_shift_opened done [19:19:06]requested_item shift.open_date is exist - process it [19:19:06]req_shift_open_date [19:19:06]req_shift_open_date done [19:19:06]produce_requested_data done [19:19:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164348,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:19:06]process_action_free close_receipt [19:19:06]json_value_free [19:19:06]json_value_free done [19:19:06]process_json_proto returns [19:19:06]Send response to host [19:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164348,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:19:06]free response buf [19:19:06]execute_script done [19:19:06]execute_script returns [19:19:06]free content buf [19:19:06]Sock 9.Close socket [19:19:06]Sock 9.Thread stoped [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:19:56]accept exits with 7 [19:19:56]New connection [19:19:56]New thread 3067391332 created [19:19:56]Thread 3067534692 joined [19:19:56]Waiting for new connection... [19:19:56] Sock 7.Parse request [19:19:56]Sock 7.Check first char [19:19:56]Sock 7.First char is OK [19:19:56]request: POST /json_proto HTTP/1.0 [19:19:56]Method: POST [19:19:56]URL: /json_proto [19:19:56]Method is POST - this is cgi request [19:19:56]url: /json_proto [19:19:56]query_string will be loaded in cgi processing [19:19:56]execute_cgi json_proto POST (null) [19:19:56]execute_cgi path=json_proto method=POST [19:19:56]POST find Content-Length [19:19:56]Host: 172.17.56.4:8080 [19:19:56]Content-Length: 677 [19:19:56]Content-Type: application/json [19:19:56] [19:19:56]POST finish read [19:19:56]Found Content-Length = 677 [19:19:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:56]execute_script... [19:19: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)458433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:56]POST & json_proto [19:19:56]process_json_proto [19:19:56]json parsed OK: [19:19:56]protocol is kg_v1.0 [19:19:56]action value=close_receipt [19:19:56]process_action close_receipt [19:19:56]cmd_close_receipt [19:19:56]MH_GetDate [19:19:56]Write to MH i2c: F0 00 00 23 02 14 [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: F0 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: F0 09 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: F0 09 00 23 02 00 DC 81 91 66 C9 DC B2 64 2C [19:19:56]GetLastDocTimeStamp 1720811942 [19:19:56]current date 1720811996 [19:19:56]FM_GetShiftState [19:19:56]SAM_PROTO_GetShiftState [19:19:56]wFMCommunicate request_size=4 [19:19:56]MH_SAM_APDU [19:19:56]CAPDU: 80 13 01 00 [19:19:56]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:56]Read from MH i2c: E2 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 0E 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 ED [19:19:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:19:56]wFMCommunicate OK [19:19:56]SAM_PROTO_GetShiftState done [19:19:56]FM_GetShiftState done [19:19:56]opened in 1720744654 [19:19:56]opened+sec_in_day 1720831054 [19:19:56]quantity*price = 20003 [19:19:56]sum+1 = 20004 [19:19:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 270 12.07.2024 19:19 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164349 ФПД: 65401447549034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191956&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164349&fm=65401447549034&tin=02508201610067®Number=0000000000090829&sum=20000 [19:19:57]StoreToDocumentArchive [19:19:57]shift 445 fd 164349 [19:19:57]save to /storage/0445/doc_00164349 [19:19:57]save last doc name /storage/0445/doc_00164349 to /storage/kkm_last_doc_name [19:19:57]save OK [19:19:57]Clear old archive folders... [19:19:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:57]tlvbuf is 01592960 [19:19:57]SAM_PROTO_ClearQueue [19:19:57]wFMCommunicate request_size=4 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 09 00 00 [19:19:57]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [19:19:57]RAPDU: 90 00 [19:19:57]wFMCommunicate OK [19:19:57]SAM_PROTO_ClearQueue done [19:19:57]KKMCreateOFDPacket [19:19:57]OFDProtocolAddRootSTLVToBuf [19:19:57]FM_MakeSignedData [19:19:57]FM_MakeSignedData [19:19:57]SAM_PROTO_SignData [19:19:57]wFMCommunicate request_size=4 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 0D 01 02 [19:19:57]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [19:19:57]RAPDU: 90 00 [19:19:57]wFMCommunicate OK [19:19:57]wFMCommunicate request_size=255 [19:19:57]MH_SAM_APDU [19:19: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 0E 01 00 00 F4 03 04 00 DC 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 81 02 00 35 04 06 00 3B [19:19:57]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 0E 01 00 00 F4 03 04 00 DC 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 81 02 00 35 04 06 00 3B 00 00 A3 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [19:19:57]RAPDU: 90 00 [19:19:57]wFMCommunicate OK [19:19:57]wFMCommunicate request_size=10 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 0D 02 02 05 7B 76 0C 88 6A [19:19:57]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 7B 76 0C 88 6A 00 00 A9 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [19:19:57]RAPDU: 90 00 [19:19:57]wFMCommunicate OK [19:19:57]wFMCommunicate request_size=4 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 0D 03 02 [19:19:57]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 0B 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 0B 00 35 02 00 7D CB A9 F3 0F 37 35 4F 90 00 61 [19:19:57]RAPDU: 7D CB A9 F3 0F 37 35 4F 90 00 [19:19:57]wFMCommunicate OK [19:19:57]SAM_PROTO_SignData done [19:19:57]FM_MakeSignedData done [19:19:57]CreateOFDProtocolMessage [19:19:57]wFMCommunicate request_size=4 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 11 00 00 [19:19:57]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 17 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [19:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:57]wFMCommunicate OK [19:19:57]CreateOFDProtocolMessage done [19:19:57]OFDSenderStorePacket 164349 [19:19:57]StoreOFDPacket docnum=164349 [19:19:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A8 A7 07 01 CD 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 0E 01 00 00 F4 03 04 00 DC 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 81 02 00 35 04 06 00 3B 7B 76 0C 88 6A 7D CB A9 F3 0F 37 35 4F [19:19:57]CheckFolder [19:19:57]dirname=/storage/ofd_packets [19:19:57]CheckFolder done [19:19:57]ProducePacketName [19:19:57]name=ofd_packets/00164349 [19:19:57]NVStorageSaveData ofd_packets/00164349 [19:19:57]File name is /storage/ofd_packets/00164349 [19:19:57]Write 301 bytes [19:19:57]NVStorageSaveData done [19:19:57]OFDSenderStorePacket done [19:19:57]KKMCreateOFDPacket done [19:19:57]NVStorageSaveData kkm_last_timestamp [19:19:57]File name is /storage/kkm_last_timestamp [19:19:57]Write 4 bytes [19:19:57]NVStorageSaveData done [19:19:57]ExternCall_PrintAddStr [19:19:57]wPrintStart [19:19:57]Write to MH i2c: 01 00 00 37 02 39 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: 01 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: 01 07 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [19:19:57]RasterBufferAndPrint [19:19:57]line Счет N : (1)458433 [19:19:57]line ИНН: 02508201610067 [19:19:57]line Контрольно-Кассовый Чек [19:19:57]line ПРОДАЖА [19:19:57]line ТРК (МРК, ГНК) : 12 [19:19:57]line Товар: 2710124130 [19:19:57]line Аи-92-К-5 [19:19:57]line 3.040 * 65.80 [19:19:57]line = 200.03 [19:19:57]line НДС 12% НСП 1% [19:19:57]line > о реализуемом товаре [19:19:57]line ОКРУГЛЕНИЕ: -0.03 [19:19:57]line ИТОГО: 200.00 [19:19:57]line Внесено: 200.00 [19:19:57]line СДАЧА: 0.00 [19:19:57]line НСП 1% : 1.77 [19:19:57]line НДС 12% : 21.24 [19:19:57]line Наличными: 200.00 [19:19:57]line Безнал.: 0.00 [19:19:57]line Место: АЗС № 72 "Партнер Нефть" [19:19:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:19:57]line СНО: Общий режим [19:19:57]line Чек 270 12.07.2024 19:19 [19:19:57]line Смена: 445 ФФД: 1.0 [19:19:57]line ЗНМ: 0300000160 [19:19:57]line РНМ: 0000000000090829 [19:19:57]line Версия ККМ: 001 [19:19:57]line ФМ: 0000000000874718 [19:19:57]line ФД: 164349 [19:19:57]line ФПД: 65401447549034 [19:19:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T191956&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164349&fm=65401447549034&tin=02508201610067®Number=0000000000090829&sum=20000 [19:19:58]OFD Sender: Processing packet 164349 [packets to send 104, broken 103] [19:19:58]ProducePacketName [19:19:58]name=ofd_packets/00164349 [19:19:58]OFD Sender: To server: pG, [19:19:58]CommunicateWithHost lk.salyk.kg:30040 [19:19:58]ConnectInit lk.salyk.kg [19:19:58]written 0, free lines is 4095 [19:19:58]Connected sock=10 [19:19:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A8 A7 07 01 CD 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 0E 01 00 00 F4 03 04 00 DC 81 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 81 02 00 35 04 06 00 3B 7B 76 0C 88 6A 7D CB A9 F3 0F 37 35 4F [19:19:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 11 63 47 00 DB 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 34 37 31 38 10 04 04 00 FD 81 02 00 F4 03 04 00 6F 28 91 66 B6 04 01 00 00 76 68 8B 5F 0C AA 63 83 [19:19:58]CommunicateWithHost err = 0 [19:19:58]CheckOFDResponse [19:19:58]1017 (14) - 77093643461234 [19:19:58]1041 (16) - 0000000000874718 [19:19:58]1040 (4) - 164349 [19:19:58]1012 (4) - 12.07.2024 12:58 [19:19:58]1206 (1) - 0 [19:19:58]OFD Sender: Remove packet 164349 [19:19:58]ProducePacketName [19:19:58]name=ofd_packets/00164349 [19:19:58]NVStorageDeleteData [19:19:58]Write to MH i2c: 01 00 00 61 02 63 [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: 01 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: 01 07 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 FE 0C 74 [19:19:58]RasterBufferAndPrint [19:19:58]line [19:19:58]line [19:19:58]line [19:19:58]line [19:19:58]line [19:19:58]written 0, free lines is 3332 [19:19:58]MH_Cut [19:19:58]Write to MH i2c: D1 01 00 68 02 01 3C [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: D1 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: D1 01 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: D1 01 00 68 02 00 3B [19:19:58]Write to MH i2c: 01 00 00 69 02 6B [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]OFD Sender: No OFD packet to send [19:19:59]*** Cut start [19:19:59]*** Partial cut [19:19:59]*** CUTSNS_PIN = 1 [19:19:59]*** CUTSNS_PIN = 0 [19:19:59]*** Brake cut motor [19:19:59]Read from MH i2c: 01 [19:19:59]MH_I2C_Read... [19:19:59]*** Stop cut motor [19:19:59]*** Cut end [19:19:59]Read from MH i2c: 01 07 00 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [19:19:59]process_action close_receipt done [19:19:59]requested_data is exist [19:19:59]produce_requested_data [19:19:59]requested_item fm.sn is exist - process it [19:19:59]wFMCommunicate request_size=4 [19:19:59]MH_SAM_APDU [19:19:59]CAPDU: 80 11 00 00 [19:19:59]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:59]Read from MH i2c: E2 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 17 00 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [19:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:59]wFMCommunicate OK [19:19:59]requested_item fd.num is exist - process it [19:19:59]SAM_PROTO_GetFieldsCounters [19:19:59]wFMCommunicate request_size=4 [19:19:59]MH_SAM_APDU [19:19:59]CAPDU: 80 13 00 00 [19:19:59]Write to MH i2c: E2 08 00 6B 02 80 13 00 00 00 00 00 00 E9 [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:59]Read from MH i2c: E2 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 62 00 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: E2 62 00 6B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [19:20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:00]wFMCommunicate OK [19:20:00]SAM_PROTO_GetFieldsCounters done [19:20:00]requested_item shift.num is exist - process it [19:20:00]requested_item shift.opened is exist - process it [19:20:00]req_shift_opened [19:20:00]FM_GetShiftState [19:20:00]SAM_PROTO_GetShiftState [19:20:00]wFMCommunicate request_size=4 [19:20:00]MH_SAM_APDU [19:20:00]CAPDU: 80 13 01 00 [19:20:00]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:00]Read from MH i2c: E2 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 0E 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 35 [19:20:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:20:00]wFMCommunicate OK [19:20:00]SAM_PROTO_GetShiftState done [19:20:00]FM_GetShiftState done [19:20:00]req_shift_opened done [19:20:00]requested_item shift.open_date is exist - process it [19:20:00]req_shift_open_date [19:20:00]req_shift_open_date done [19:20:00]produce_requested_data done [19:20:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164349,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:20:00]process_action_free close_receipt [19:20:00]json_value_free [19:20:00]json_value_free done [19:20:00]process_json_proto returns [19:20:00]Send response to host [19:20:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164349,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:20:00]free response buf [19:20:00]execute_script done [19:20:00]execute_script returns [19:20:00]free content buf [19:20:00]Sock 7.Close socket [19:20:00]Sock 7.Thread stoped [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:00]accept exits with 9 [19:21:00]New connection [19:21:00]New thread 3067534692 created [19:21:00]Thread 3067391332 joined [19:21:00]Waiting for new connection... [19:21:00] Sock 9.Parse request [19:21:00]Sock 9.Check first char [19:21:00]Sock 9.First char is OK [19:21:00]request: POST /json_proto HTTP/1.0 [19:21:00]Method: POST [19:21:00]URL: /json_proto [19:21:00]Method is POST - this is cgi request [19:21:00]url: /json_proto [19:21:00]query_string will be loaded in cgi processing [19:21:00]execute_cgi json_proto POST (null) [19:21:00]execute_cgi path=json_proto method=POST [19:21:00]POST find Content-Length [19:21:00]Host: 172.17.56.4:8080 [19:21:00]Content-Length: 793 [19:21:00]Content-Type: application/json [19:21:00] [19:21:00]POST finish read [19:21:00]Found Content-Length = 793 [19:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:00]execute_script... [19:21:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:00]POST & json_proto [19:21:00]process_json_proto [19:21:00]json parsed OK: [19:21:00]protocol is kg_v1.0 [19:21:00]action value=close_receipt [19:21:00]process_action close_receipt [19:21:00]cmd_close_receipt [19:21:00]MH_GetDate [19:21:00]Write to MH i2c: F0 00 00 6D 02 5E [19:21:00]Write i2c OK [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: F0 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: F0 09 00 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: F0 09 00 6D 02 00 1C 82 91 66 C9 DC B2 64 B7 [19:21:00]GetLastDocTimeStamp 1720811996 [19:21:00]current date 1720812060 [19:21:00]FM_GetShiftState [19:21:00]SAM_PROTO_GetShiftState [19:21:00]wFMCommunicate request_size=4 [19:21:00]MH_SAM_APDU [19:21:00]CAPDU: 80 13 01 00 [19:21:00]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [19:21:00]Write i2c OK [19:21:00]MH_I2C_Read... [19:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:00]Read from MH i2c: E2 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 0E 00 [19:21:00]MH_I2C_Read... [19:21:00]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 37 [19:21:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:21:00]wFMCommunicate OK [19:21:00]SAM_PROTO_GetShiftState done [19:21:00]FM_GetShiftState done [19:21:00]opened in 1720744654 [19:21:00]opened+sec_in_day 1720831054 [19:21:00]quantity*price = 100047 [19:21:00]sum+1 = 100048 [19:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 271 12.07.2024 19:21 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164350 ФПД: 252647274243946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T192100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164350&fm=252647274243946&tin=02508201610067®Number=0000000000090829&sum=100047 [19:21:01]StoreToDocumentArchive [19:21:01]shift 445 fd 164350 [19:21:01]save to /storage/0445/doc_00164350 [19:21:01]save last doc name /storage/0445/doc_00164350 to /storage/kkm_last_doc_name [19:21:01]save OK [19:21:01]Clear old archive folders... [19:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:01]tlvbuf is 0158B890 [19:21:01]SAM_PROTO_ClearQueue [19:21:01]wFMCommunicate request_size=4 [19:21:01]MH_SAM_APDU [19:21:01]CAPDU: 80 09 00 00 [19:21:01]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:01]Read from MH i2c: E2 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 03 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [19:21:01]RAPDU: 90 00 [19:21:01]wFMCommunicate OK [19:21:01]SAM_PROTO_ClearQueue done [19:21:01]KKMCreateOFDPacket [19:21:01]OFDProtocolAddRootSTLVToBuf [19:21:01]FM_MakeSignedData [19:21:01]FM_MakeSignedData [19:21:01]SAM_PROTO_SignData [19:21:01]wFMCommunicate request_size=4 [19:21:01]MH_SAM_APDU [19:21:01]CAPDU: 80 0D 01 02 [19:21:01]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:01]Read from MH i2c: E2 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 03 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [19:21:01]RAPDU: 90 00 [19:21:01]wFMCommunicate OK [19:21:01]wFMCommunicate request_size=255 [19:21:01]MH_SAM_APDU [19:21: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 1C 82 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 81 02 00 35 04 06 00 E5 [19:21:01]Write to MH i2c: E2 02 01 7D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 1C 82 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 81 02 00 35 04 06 00 E5 00 00 AD [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:01]Read from MH i2c: E2 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 03 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [19:21:01]RAPDU: 90 00 [19:21:01]wFMCommunicate OK [19:21:01]wFMCommunicate request_size=10 [19:21:01]MH_SAM_APDU [19:21:01]CAPDU: 80 0D 02 02 05 C8 07 08 E7 6A [19:21:01]Write to MH i2c: E2 0D 00 7E 02 80 0D 02 02 05 00 C8 07 08 E7 6A 00 00 2C [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:01]Read from MH i2c: E2 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 03 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [19:21:01]RAPDU: 90 00 [19:21:01]wFMCommunicate OK [19:21:01]wFMCommunicate request_size=4 [19:21:01]MH_SAM_APDU [19:21:01]CAPDU: 80 0D 03 02 [19:21:01]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:01]Read from MH i2c: E2 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 0B 00 [19:21:01]MH_I2C_Read... [19:21:01]Read from MH i2c: E2 0B 00 7F 02 00 30 01 08 2C AD D8 85 F4 90 00 60 [19:21:01]RAPDU: 30 01 08 2C AD D8 85 F4 90 00 [19:21:01]wFMCommunicate OK [19:21:01]SAM_PROTO_SignData done [19:21:01]FM_MakeSignedData done [19:21:01]CreateOFDProtocolMessage [19:21:01]wFMCommunicate request_size=4 [19:21:01]MH_SAM_APDU [19:21:01]CAPDU: 80 11 00 00 [19:21:01]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [19:21:01]Write i2c OK [19:21:01]MH_I2C_Read... [19:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:02]Read from MH i2c: E2 [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: E2 17 00 [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [19:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:21:02]wFMCommunicate OK [19:21:02]CreateOFDProtocolMessage done [19:21:02]OFDSenderStorePacket 164350 [19:21:02]StoreOFDPacket docnum=164350 [19:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FF F3 07 01 78 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 1C 82 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 81 02 00 35 04 06 00 E5 C8 07 08 E7 6A 30 01 08 2C AD D8 85 F4 [19:21:02]CheckFolder [19:21:02]dirname=/storage/ofd_packets [19:21:02]CheckFolder done [19:21:02]ProducePacketName [19:21:02]name=ofd_packets/00164350 [19:21:02]NVStorageSaveData ofd_packets/00164350 [19:21:02]File name is /storage/ofd_packets/00164350 [19:21:02]Write 301 bytes [19:21:02]NVStorageSaveData done [19:21:02]OFDSenderStorePacket done [19:21:02]KKMCreateOFDPacket done [19:21:02]NVStorageSaveData kkm_last_timestamp [19:21:02]File name is /storage/kkm_last_timestamp [19:21:02]Write 4 bytes [19:21:02]NVStorageSaveData done [19:21:02]ExternCall_PrintAddStr [19:21:02]wPrintStart [19:21:02]Write to MH i2c: 01 00 00 81 02 83 [19:21:02]Write i2c OK [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: 01 [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: 01 07 00 [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [19:21:02]RasterBufferAndPrint [19:21:02]line Счет N : (1)458434 [19:21:02]line ИНН: 02508201610067 [19:21:02]line Контрольно-Кассовый Чек [19:21:02]line ПРОДАЖА [19:21:02]line ТРК (МРК, ГНК) : 22 [19:21:02]line Товар: 2710124130 [19:21:02]line Аи-92-К-5 [19:21:02]line 15.340 * 65.22 [19:21:02]line = 1000.47 [19:21:02]line НДС 12% НСП 1% [19:21:02]line > о реализуемом товаре [19:21:02]line ИТОГО: 1000.47 [19:21:02]line НСП 1% : 8.85 [19:21:02]line НДС 12% : 106.24 [19:21:02]line Наличными: 0.00 [19:21:02]line Безнал.: 1000.47 [19:21:02]line Место: АЗС № 72 "Партнер Нефть" [19:21:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:21:02]line СНО: Общий режим [19:21:02]line Чек 271 12.07.2024 19:21 [19:21:02]line Смена: 445 ФФД: 1.0 [19:21:02]line ЗНМ: 0300000160 [19:21:02]line РНМ: 0000000000090829 [19:21:02]line Версия ККМ: 001 [19:21:02]line Платежная система: KICB Банк [19:21:02]line ФМ: 0000000000874718 [19:21:02]line ФД: 164350 [19:21:02]line ФПД: 252647274243946 [19:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T192100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164350&fm=252647274243946&tin=02508201610067®Number=0000000000090829&sum=100047 [19:21:02]written 0, free lines is 4095 [19:21:02]OFD Sender: Processing packet 164350 [packets to send 104, broken 103] [19:21:02]ProducePacketName [19:21:02]name=ofd_packets/00164350 [19:21:02]OFD Sender: To server: pG, [19:21:02]CommunicateWithHost lk.salyk.kg:30040 [19:21:02]ConnectInit lk.salyk.kg [19:21:02]Connected sock=10 [19:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FF F3 07 01 78 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 1C 82 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 81 02 00 35 04 06 00 E5 C8 07 08 E7 6A 30 01 08 2C AD D8 85 F4 [19:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 93 9A 47 00 8B 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 81 02 00 F4 03 04 00 AF 28 91 66 B6 04 01 00 00 2F 6E A6 0B 76 17 66 F6 [19:21:02]CommunicateWithHost err = 0 [19:21:02]CheckOFDResponse [19:21:02]1017 (14) - 77093643461234 [19:21:02]1041 (16) - 0000000000874718 [19:21:02]1040 (4) - 164350 [19:21:02]1012 (4) - 12.07.2024 12:59 [19:21:02]1206 (1) - 0 [19:21:02]OFD Sender: Remove packet 164350 [19:21:02]ProducePacketName [19:21:02]name=ofd_packets/00164350 [19:21:02]NVStorageDeleteData [19:21:02]Write to MH i2c: 01 00 00 AA 02 AC [19:21:02]Write i2c OK [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: 01 [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: 01 07 00 [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 0B 0D CB [19:21:02]RasterBufferAndPrint [19:21:02]line [19:21:02]line [19:21:02]line [19:21:02]line [19:21:02]line [19:21:02]written 0, free lines is 3345 [19:21:02]MH_Cut [19:21:02]Write to MH i2c: D1 01 00 B1 02 01 85 [19:21:02]Write i2c OK [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: D1 [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: D1 01 00 [19:21:02]MH_I2C_Read... [19:21:02]Read from MH i2c: D1 01 00 B1 02 00 84 [19:21:02]Write to MH i2c: 01 00 00 B2 02 B4 [19:21:02]Write i2c OK [19:21:02]MH_I2C_Read... [19:21:02]OFD Sender: No OFD packet to send [19:21:03]*** Cut start [19:21:03]*** Partial cut [19:21:03]*** CUTSNS_PIN = 1 [19:21:03]*** CUTSNS_PIN = 0 [19:21:03]*** Brake cut motor [19:21:03]Read from MH i2c: 01 [19:21:03]MH_I2C_Read... [19:21:03]*** Stop cut motor [19:21:03]*** Cut end [19:21:03]Read from MH i2c: 01 07 00 [19:21:03]MH_I2C_Read... [19:21:03]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 FF 0F C9 [19:21:03]process_action close_receipt done [19:21:03]requested_data is exist [19:21:03]produce_requested_data [19:21:03]requested_item fm.sn is exist - process it [19:21:03]wFMCommunicate request_size=4 [19:21:03]MH_SAM_APDU [19:21:03]CAPDU: 80 11 00 00 [19:21:03]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [19:21:03]Write i2c OK [19:21:03]MH_I2C_Read... [19:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:03]Read from MH i2c: E2 [19:21:03]MH_I2C_Read... [19:21:03]Read from MH i2c: E2 17 00 [19:21:03]MH_I2C_Read... [19:21:03]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [19:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:21:03]wFMCommunicate OK [19:21:03]requested_item fd.num is exist - process it [19:21:03]SAM_PROTO_GetFieldsCounters [19:21:03]wFMCommunicate request_size=4 [19:21:03]MH_SAM_APDU [19:21:03]CAPDU: 80 13 00 00 [19:21:03]Write to MH i2c: E2 08 00 B4 02 80 13 00 00 00 00 00 00 32 [19:21:03]Write i2c OK [19:21:03]MH_I2C_Read... [19:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:03]Read from MH i2c: E2 [19:21:03]MH_I2C_Read... [19:21:03]Read from MH i2c: E2 62 00 [19:21:03]MH_I2C_Read... [19:21:03]Read from MH i2c: E2 62 00 B4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [19:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:03]wFMCommunicate OK [19:21:03]SAM_PROTO_GetFieldsCounters done [19:21:03]requested_item shift.num is exist - process it [19:21:03]requested_item shift.opened is exist - process it [19:21:03]req_shift_opened [19:21:03]FM_GetShiftState [19:21:03]SAM_PROTO_GetShiftState [19:21:03]wFMCommunicate request_size=4 [19:21:03]MH_SAM_APDU [19:21:03]CAPDU: 80 13 01 00 [19:21:03]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [19:21:03]Write i2c OK [19:21:03]MH_I2C_Read... [19:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:03]Read from MH i2c: E2 [19:21:03]MH_I2C_Read... [19:21:03]Read from MH i2c: E2 0E 00 [19:21:03]MH_I2C_Read... [19:21:03]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7E [19:21:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:21:03]wFMCommunicate OK [19:21:03]SAM_PROTO_GetShiftState done [19:21:03]FM_GetShiftState done [19:21:03]req_shift_opened done [19:21:03]requested_item shift.open_date is exist - process it [19:21:03]req_shift_open_date [19:21:03]req_shift_open_date done [19:21:03]produce_requested_data done [19:21:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164350,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:21:03]process_action_free close_receipt [19:21:03]json_value_free [19:21:03]json_value_free done [19:21:03]process_json_proto returns [19:21:03]Send response to host [19:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164350,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:21:03]free response buf [19:21:03]execute_script done [19:21:03]execute_script returns [19:21:03]free content buf [19:21:03]Sock 9.Close socket [19:21:03]Sock 9.Thread stoped [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25: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:25:59]accept exits with 7 [19:25:59]New connection [19:25:59]New thread 3067391332 created [19:25:59]Thread 3067534692 joined [19:25:59]Waiting for new connection... [19:25:59] Sock 7.Parse request [19:25:59]Sock 7.Check first char [19:25:59]Sock 7.First char is OK [19:25:59]request: POST /json_proto HTTP/1.0 [19:25:59]Method: POST [19:25:59]URL: /json_proto [19:25:59]Method is POST - this is cgi request [19:25:59]url: /json_proto [19:25:59]query_string will be loaded in cgi processing [19:25:59]execute_cgi json_proto POST (null) [19:25:59]execute_cgi path=json_proto method=POST [19:25:59]POST find Content-Length [19:25:59]Host: 172.17.56.4:8080 [19:25:59]Content-Length: 791 [19:25:59]Content-Type: application/json [19:25:59] [19:25:59]POST finish read [19:25:59]Found Content-Length = 791 [19:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:59]execute_script... [19:25: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)458435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:59]POST & json_proto [19:25:59]process_json_proto [19:25:59]json parsed OK: [19:25:59]protocol is kg_v1.0 [19:25:59]action value=close_receipt [19:25:59]process_action close_receipt [19:25:59]cmd_close_receipt [19:25:59]MH_GetDate [19:25:59]Write to MH i2c: F0 00 00 B6 02 A7 [19:25:59]Write i2c OK [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: F0 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: F0 09 00 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: F0 09 00 B6 02 00 48 83 91 66 C9 DC B2 64 2D [19:25:59]GetLastDocTimeStamp 1720812060 [19:25:59]current date 1720812360 [19:25:59]FM_GetShiftState [19:25:59]SAM_PROTO_GetShiftState [19:25:59]wFMCommunicate request_size=4 [19:25:59]MH_SAM_APDU [19:25:59]CAPDU: 80 13 01 00 [19:25:59]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [19:25:59]Write i2c OK [19:25:59]MH_I2C_Read... [19:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:59]Read from MH i2c: E2 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 0E 00 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 80 [19:25:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:25:59]wFMCommunicate OK [19:25:59]SAM_PROTO_GetShiftState done [19:25:59]FM_GetShiftState done [19:25:59]opened in 1720744654 [19:25:59]opened+sec_in_day 1720831054 [19:25:59]quantity*price = 65220 [19:25:59]sum+1 = 65221 [19:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 272 12.07.2024 19:26 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164351 ФПД: 195069890406442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T192600&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164351&fm=195069890406442&tin=02508201610067®Number=0000000000090829&sum=65220 [19:26:01]StoreToDocumentArchive [19:26:01]shift 445 fd 164351 [19:26:01]save to /storage/0445/doc_00164351 [19:26:01]save last doc name /storage/0445/doc_00164351 to /storage/kkm_last_doc_name [19:26:01]save OK [19:26:01]Clear old archive folders... [19:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:01]tlvbuf is 0155FE00 [19:26:01]SAM_PROTO_ClearQueue [19:26:01]wFMCommunicate request_size=4 [19:26:01]MH_SAM_APDU [19:26:01]CAPDU: 80 09 00 00 [19:26:01]Write to MH i2c: E2 08 00 C4 02 80 09 00 00 00 00 00 00 38 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 03 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [19:26:01]RAPDU: 90 00 [19:26:01]wFMCommunicate OK [19:26:01]SAM_PROTO_ClearQueue done [19:26:01]KKMCreateOFDPacket [19:26:01]OFDProtocolAddRootSTLVToBuf [19:26:01]FM_MakeSignedData [19:26:01]FM_MakeSignedData [19:26:01]SAM_PROTO_SignData [19:26:01]wFMCommunicate request_size=4 [19:26:01]MH_SAM_APDU [19:26:01]CAPDU: 80 0D 01 02 [19:26:01]Write to MH i2c: E2 08 00 C5 02 80 0D 01 02 00 00 00 00 40 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 03 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [19:26:01]RAPDU: 90 00 [19:26:01]wFMCommunicate OK [19:26:01]wFMCommunicate request_size=255 [19:26:01]MH_SAM_APDU [19:26:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 48 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 81 02 00 35 04 06 00 B1 [19:26:01]Write to MH i2c: E2 02 01 C6 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 48 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 81 02 00 35 04 06 00 B1 00 00 90 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 03 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [19:26:01]RAPDU: 90 00 [19:26:01]wFMCommunicate OK [19:26:01]wFMCommunicate request_size=10 [19:26:01]MH_SAM_APDU [19:26:01]CAPDU: 80 0D 02 02 05 6A 3F 86 28 2A [19:26:01]Write to MH i2c: E2 0D 00 C7 02 80 0D 02 02 05 00 6A 3F 86 28 2A 00 00 CE [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 03 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [19:26:01]RAPDU: 90 00 [19:26:01]wFMCommunicate OK [19:26:01]wFMCommunicate request_size=4 [19:26:01]MH_SAM_APDU [19:26:01]CAPDU: 80 0D 03 02 [19:26:01]Write to MH i2c: E2 08 00 C8 02 80 0D 03 02 00 00 00 00 45 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 0B 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 0B 00 C8 02 00 AF 85 78 11 6C 11 EF 9A 90 00 09 [19:26:01]RAPDU: AF 85 78 11 6C 11 EF 9A 90 00 [19:26:01]wFMCommunicate OK [19:26:01]SAM_PROTO_SignData done [19:26:01]FM_MakeSignedData done [19:26:01]CreateOFDProtocolMessage [19:26:01]wFMCommunicate request_size=4 [19:26:01]MH_SAM_APDU [19:26:01]CAPDU: 80 11 00 00 [19:26:01]Write to MH i2c: E2 08 00 C9 02 80 11 00 00 00 00 00 00 45 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 17 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 17 00 C9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [19:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:26:01]wFMCommunicate OK [19:26:01]CreateOFDProtocolMessage done [19:26:01]OFDSenderStorePacket 164351 [19:26:01]StoreOFDPacket docnum=164351 [19:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 0F 07 01 DB 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 48 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 81 02 00 35 04 06 00 B1 6A 3F 86 28 2A AF 85 78 11 6C 11 EF 9A [19:26:01]CheckFolder [19:26:01]dirname=/storage/ofd_packets [19:26:01]CheckFolder done [19:26:01]ProducePacketName [19:26:01]name=ofd_packets/00164351 [19:26:01]NVStorageSaveData ofd_packets/00164351 [19:26:01]File name is /storage/ofd_packets/00164351 [19:26:01]Write 301 bytes [19:26:01]NVStorageSaveData done [19:26:01]OFDSenderStorePacket done [19:26:01]KKMCreateOFDPacket done [19:26:01]NVStorageSaveData kkm_last_timestamp [19:26:01]File name is /storage/kkm_last_timestamp [19:26:01]Write 4 bytes [19:26:01]NVStorageSaveData done [19:26:01]ExternCall_PrintAddStr [19:26:01]wPrintStart [19:26:01]Write to MH i2c: 01 00 00 CA 02 CC [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 07 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 07 00 CA 02 00 00 00 00 00 FF 0F E1 [19:26:01]RasterBufferAndPrint [19:26:01]line Счет N : (1)458435 [19:26:01]line ИНН: 02508201610067 [19:26:01]line Контрольно-Кассовый Чек [19:26:01]line ПРОДАЖА [19:26:01]line ТРК (МРК, ГНК) : 22 [19:26:01]line Товар: 2710124130 [19:26:01]line Аи-92-К-5 [19:26:01]line 10.000 * 65.22 [19:26:01]line = 652.20 [19:26:01]line НДС 12% НСП 1% [19:26:01]line > о реализуемом товаре [19:26:01]line ИТОГО: 652.20 [19:26:01]line НСП 1% : 5.77 [19:26:01]line НДС 12% : 69.26 [19:26:01]line Наличными: 0.00 [19:26:01]line Безнал.: 652.20 [19:26:01]line Место: АЗС № 72 "Партнер Нефть" [19:26:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:26:01]line СНО: Общий режим [19:26:01]line Чек 272 12.07.2024 19:26 [19:26:01]line Смена: 445 ФФД: 1.0 [19:26:01]line ЗНМ: 0300000160 [19:26:01]line РНМ: 0000000000090829 [19:26:01]line Версия ККМ: 001 [19:26:01]line Платежная система: KICB Банк [19:26:01]line ФМ: 0000000000874718 [19:26:01]line ФД: 164351 [19:26:01]line ФПД: 195069890406442 [19:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T192600&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164351&fm=195069890406442&tin=02508201610067®Number=0000000000090829&sum=65220 [19:26:01]written 0, free lines is 4095 [19:26:01]OFD Sender: Processing packet 164351 [packets to send 104, broken 103] [19:26:01]ProducePacketName [19:26:01]name=ofd_packets/00164351 [19:26:01]OFD Sender: To server: pG, [19:26:01]CommunicateWithHost lk.salyk.kg:30040 [19:26:01]ConnectInit lk.salyk.kg [19:26:01]Connected sock=9 [19:26:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 0F 07 01 DB 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 48 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 81 02 00 35 04 06 00 B1 6A 3F 86 28 2A AF 85 78 11 6C 11 EF 9A [19:26:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9C A0 47 00 21 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 81 02 00 F4 03 04 00 DB 29 91 66 B6 04 01 00 00 1B E5 74 70 5C 2D 04 A5 [19:26:01]CommunicateWithHost err = 0 [19:26:01]CheckOFDResponse [19:26:01]1017 (14) - 77093643461234 [19:26:01]1041 (16) - 0000000000874718 [19:26:01]1040 (4) - 164351 [19:26:01]1012 (4) - 12.07.2024 13:04 [19:26:01]1206 (1) - 0 [19:26:01]OFD Sender: Remove packet 164351 [19:26:01]ProducePacketName [19:26:01]name=ofd_packets/00164351 [19:26:01]NVStorageDeleteData [19:26:02]Write to MH i2c: 01 00 00 F3 02 F5 [19:26:02]Write i2c OK [19:26:02]MH_I2C_Read... [19:26:02]Read from MH i2c: 01 [19:26:02]MH_I2C_Read... [19:26:02]Read from MH i2c: 01 07 00 [19:26:02]MH_I2C_Read... [19:26:02]Read from MH i2c: 01 07 00 F3 02 00 00 00 00 00 14 0D 1D [19:26:02]RasterBufferAndPrint [19:26:02]line [19:26:02]line [19:26:02]line [19:26:02]line [19:26:02]line [19:26:02]written 0, free lines is 3354 [19:26:02]MH_Cut [19:26:02]Write to MH i2c: D1 01 00 FA 02 01 CE [19:26:02]Write i2c OK [19:26:02]MH_I2C_Read... [19:26:02]Read from MH i2c: D1 [19:26:02]MH_I2C_Read... [19:26:02]Read from MH i2c: D1 01 00 [19:26:02]MH_I2C_Read... [19:26:02]Read from MH i2c: D1 01 00 FA 02 00 CD [19:26:02]Write to MH i2c: 01 00 00 FB 02 FD [19:26:02]Write i2c OK [19:26:02]MH_I2C_Read... [19:26:02]OFD Sender: No OFD packet to send [19:26:02]*** Cut start [19:26:02]*** Partial cut [19:26:02]*** CUTSNS_PIN = 1 [19:26:02]*** CUTSNS_PIN = 0 [19:26:03]*** Brake cut motor [19:26:03]Read from MH i2c: 01 [19:26:03]MH_I2C_Read... [19:26:03]*** Stop cut motor [19:26:03]*** Cut end [19:26:03]Read from MH i2c: 01 07 00 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [19:26:03]process_action close_receipt done [19:26:03]requested_data is exist [19:26:03]produce_requested_data [19:26:03]requested_item fm.sn is exist - process it [19:26:03]wFMCommunicate request_size=4 [19:26:03]MH_SAM_APDU [19:26:03]CAPDU: 80 11 00 00 [19:26:03]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [19:26:03]Write i2c OK [19:26:03]MH_I2C_Read... [19:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:03]Read from MH i2c: E2 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 17 00 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CE [19:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:26:03]wFMCommunicate OK [19:26:03]requested_item fd.num is exist - process it [19:26:03]SAM_PROTO_GetFieldsCounters [19:26:03]wFMCommunicate request_size=4 [19:26:03]MH_SAM_APDU [19:26:03]CAPDU: 80 13 00 00 [19:26:03]Write to MH i2c: E2 08 00 FD 02 80 13 00 00 00 00 00 00 7B [19:26:03]Write i2c OK [19:26:03]MH_I2C_Read... [19:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:03]Read from MH i2c: E2 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 62 00 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 62 00 FD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [19:26: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 81 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:03]wFMCommunicate OK [19:26:03]SAM_PROTO_GetFieldsCounters done [19:26:03]requested_item shift.num is exist - process it [19:26:03]requested_item shift.opened is exist - process it [19:26:03]req_shift_opened [19:26:03]FM_GetShiftState [19:26:03]SAM_PROTO_GetShiftState [19:26:03]wFMCommunicate request_size=4 [19:26:03]MH_SAM_APDU [19:26:03]CAPDU: 80 13 01 00 [19:26:03]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [19:26:03]Write i2c OK [19:26:03]MH_I2C_Read... [19:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:03]Read from MH i2c: E2 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 0E 00 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C7 [19:26:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:26:03]wFMCommunicate OK [19:26:03]SAM_PROTO_GetShiftState done [19:26:03]FM_GetShiftState done [19:26:03]req_shift_opened done [19:26:03]requested_item shift.open_date is exist - process it [19:26:03]req_shift_open_date [19:26:03]req_shift_open_date done [19:26:03]produce_requested_data done [19:26:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164351,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:26:03]process_action_free close_receipt [19:26:03]json_value_free [19:26:03]json_value_free done [19:26:03]process_json_proto returns [19:26:03]Send response to host [19:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164351,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:26:03]free response buf [19:26:03]execute_script done [19:26:03]execute_script returns [19:26:03]free content buf [19:26:03]Sock 7.Close socket [19:26:03]Sock 7.Thread stoped [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:22]accept exits with 10 [19:26:22]New connection [19:26:22]New thread 3067534692 created [19:26:22]Thread 3067391332 joined [19:26:22]Waiting for new connection... [19:26:22] Sock 10.Parse request [19:26:22]Sock 10.Check first char [19:26:22]Sock 10.First char is OK [19:26:22]request: POST /json_proto HTTP/1.0 [19:26:22]Method: POST [19:26:22]URL: /json_proto [19:26:22]Method is POST - this is cgi request [19:26:22]url: /json_proto [19:26:22]query_string will be loaded in cgi processing [19:26:22]execute_cgi json_proto POST (null) [19:26:22]execute_cgi path=json_proto method=POST [19:26:22]POST find Content-Length [19:26:22]Host: 172.17.56.4:8080 [19:26:22]Content-Length: 677 [19:26:22]Content-Type: application/json [19:26:22] [19:26:22]POST finish read [19:26:22]Found Content-Length = 677 [19:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:22]execute_script... [19:26:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:22]POST & json_proto [19:26:22]process_json_proto [19:26:22]json parsed OK: [19:26:22]protocol is kg_v1.0 [19:26:22]action value=close_receipt [19:26:22]process_action close_receipt [19:26:22]cmd_close_receipt [19:26:22]MH_GetDate [19:26:22]Write to MH i2c: F0 00 00 FF 02 F0 [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: F0 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: F0 09 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: F0 09 00 FF 02 00 5E 83 91 66 C9 DC B2 64 8C [19:26:22]GetLastDocTimeStamp 1720812360 [19:26:22]current date 1720812382 [19:26:22]FM_GetShiftState [19:26:22]SAM_PROTO_GetShiftState [19:26:22]wFMCommunicate request_size=4 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 13 01 00 [19:26:22]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 0E 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CA [19:26:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:26:22]wFMCommunicate OK [19:26:22]SAM_PROTO_GetShiftState done [19:26:22]FM_GetShiftState done [19:26:22]opened in 1720744654 [19:26:22]opened+sec_in_day 1720831054 [19:26:22]quantity*price = 20003 [19:26:22]sum+1 = 20004 [19:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 273 12.07.2024 19:26 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164352 ФПД: 9764829335235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T192623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164352&fm=9764829335235&tin=02508201610067®Number=0000000000090829&sum=20000 [19:26:23]StoreToDocumentArchive [19:26:23]shift 445 fd 164352 [19:26:23]save to /storage/0445/doc_00164352 [19:26:23]save last doc name /storage/0445/doc_00164352 to /storage/kkm_last_doc_name [19:26:23]save OK [19:26:23]Clear old archive folders... [19:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:23]tlvbuf is 01597400 [19:26:23]SAM_PROTO_ClearQueue [19:26:23]wFMCommunicate request_size=4 [19:26:23]MH_SAM_APDU [19:26:23]CAPDU: 80 09 00 00 [19:26:23]Write to MH i2c: E2 08 00 0D 03 80 09 00 00 00 00 00 00 82 [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:23]Read from MH i2c: E2 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [19:26:23]RAPDU: 90 00 [19:26:23]wFMCommunicate OK [19:26:23]SAM_PROTO_ClearQueue done [19:26:23]KKMCreateOFDPacket [19:26:23]OFDProtocolAddRootSTLVToBuf [19:26:23]FM_MakeSignedData [19:26:23]FM_MakeSignedData [19:26:23]SAM_PROTO_SignData [19:26:23]wFMCommunicate request_size=4 [19:26:23]MH_SAM_APDU [19:26:23]CAPDU: 80 0D 01 02 [19:26:23]Write to MH i2c: E2 08 00 0E 03 80 0D 01 02 00 00 00 00 8A [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:23]Read from MH i2c: E2 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [19:26:23]RAPDU: 90 00 [19:26:23]wFMCommunicate OK [19:26:23]wFMCommunicate request_size=255 [19:26:23]MH_SAM_APDU [19:26:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 11 01 00 00 F4 03 04 00 5F 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 82 02 00 35 04 06 00 08 [19:26:23]Write to MH i2c: E2 02 01 0F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 11 01 00 00 F4 03 04 00 5F 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 82 02 00 35 04 06 00 08 00 00 D9 [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 03 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [19:26:24]RAPDU: 90 00 [19:26:24]wFMCommunicate OK [19:26:24]wFMCommunicate request_size=10 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 0D 02 02 05 E1 8D 2F 0E C3 [19:26:24]Write to MH i2c: E2 0D 00 10 03 80 0D 02 02 05 00 E1 8D 2F 0E C3 00 00 05 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 03 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [19:26:24]RAPDU: 90 00 [19:26:24]wFMCommunicate OK [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 0D 03 02 [19:26:24]Write to MH i2c: E2 08 00 11 03 80 0D 03 02 00 00 00 00 8F [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0B 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 0B 00 11 03 00 E2 79 9B 57 0C A5 14 11 90 00 B3 [19:26:24]RAPDU: E2 79 9B 57 0C A5 14 11 90 00 [19:26:24]wFMCommunicate OK [19:26:24]SAM_PROTO_SignData done [19:26:24]FM_MakeSignedData done [19:26:24]CreateOFDProtocolMessage [19:26:24]wFMCommunicate request_size=4 [19:26:24]MH_SAM_APDU [19:26:24]CAPDU: 80 11 00 00 [19:26:24]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:24]Read from MH i2c: E2 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 17 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [19:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:26:24]wFMCommunicate OK [19:26:24]CreateOFDProtocolMessage done [19:26:24]OFDSenderStorePacket 164352 [19:26:24]StoreOFDPacket docnum=164352 [19:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF B1 07 01 6A 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 11 01 00 00 F4 03 04 00 5F 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 82 02 00 35 04 06 00 08 E1 8D 2F 0E C3 E2 79 9B 57 0C A5 14 11 [19:26:24]CheckFolder [19:26:24]dirname=/storage/ofd_packets [19:26:24]CheckFolder done [19:26:24]ProducePacketName [19:26:24]name=ofd_packets/00164352 [19:26:24]NVStorageSaveData ofd_packets/00164352 [19:26:24]File name is /storage/ofd_packets/00164352 [19:26:24]Write 301 bytes [19:26:24]NVStorageSaveData done [19:26:24]OFDSenderStorePacket done [19:26:24]KKMCreateOFDPacket done [19:26:24]NVStorageSaveData kkm_last_timestamp [19:26:24]File name is /storage/kkm_last_timestamp [19:26:24]Write 4 bytes [19:26:24]NVStorageSaveData done [19:26:24]ExternCall_PrintAddStr [19:26:24]wPrintStart [19:26:24]Write to MH i2c: 01 00 00 13 03 16 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 13 03 00 00 00 00 00 FF 0F 2B [19:26:24]RasterBufferAndPrint [19:26:24]line Счет N : (1)458436 [19:26:24]line ИНН: 02508201610067 [19:26:24]line Контрольно-Кассовый Чек [19:26:24]line ПРОДАЖА [19:26:24]line ТРК (МРК, ГНК) : 12 [19:26:24]line Товар: 2710124130 [19:26:24]line Аи-92-К-5 [19:26:24]line 3.040 * 65.80 [19:26:24]line = 200.03 [19:26:24]line НДС 12% НСП 1% [19:26:24]line > о реализуемом товаре [19:26:24]line ОКРУГЛЕНИЕ: -0.03 [19:26:24]line ИТОГО: 200.00 [19:26:24]line Внесено: 200.00 [19:26:24]line СДАЧА: 0.00 [19:26:24]line НСП 1% : 1.77 [19:26:24]line НДС 12% : 21.24 [19:26:24]line Наличными: 200.00 [19:26:24]line Безнал.: 0.00 [19:26:24]line Место: АЗС № 72 "Партнер Нефть" [19:26:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:26:24]line СНО: Общий режим [19:26:24]line Чек 273 12.07.2024 19:26 [19:26:24]line Смена: 445 ФФД: 1.0 [19:26:24]line ЗНМ: 0300000160 [19:26:24]line РНМ: 0000000000090829 [19:26:24]line Версия ККМ: 001 [19:26:24]line ФМ: 0000000000874718 [19:26:24]line ФД: 164352 [19:26:24]line ФПД: 9764829335235 [19:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T192623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164352&fm=9764829335235&tin=02508201610067®Number=0000000000090829&sum=20000 [19:26:24]written 0, free lines is 4095 [19:26:24]OFD Sender: Processing packet 164352 [packets to send 104, broken 103] [19:26:24]ProducePacketName [19:26:24]name=ofd_packets/00164352 [19:26:24]OFD Sender: To server: pG, [19:26:24]CommunicateWithHost lk.salyk.kg:30040 [19:26:24]ConnectInit lk.salyk.kg [19:26:24]Connected sock=9 [19:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF B1 07 01 6A 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 11 01 00 00 F4 03 04 00 5F 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 82 02 00 35 04 06 00 08 E1 8D 2F 0E C3 E2 79 9B 57 0C A5 14 11 [19:26:24]Write to MH i2c: 01 00 00 3D 03 40 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 F5 0C 48 [19:26:24]RasterBufferAndPrint [19:26:24]line [19:26:24]line [19:26:24]line [19:26:24]line [19:26:24]line [19:26:24]written 0, free lines is 3324 [19:26:24]MH_Cut [19:26:24]Write to MH i2c: D1 01 00 44 03 01 19 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: D1 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: D1 01 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: D1 01 00 44 03 00 18 [19:26:24]Write to MH i2c: 01 00 00 45 03 48 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5D 7F 47 00 04 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 82 02 00 F4 03 04 00 F2 29 91 66 B6 04 01 00 00 07 92 7E 98 51 D5 17 F3 [19:26:24]CommunicateWithHost err = 0 [19:26:24]CheckOFDResponse [19:26:24]1017 (14) - 77093643461234 [19:26:24]1041 (16) - 0000000000874718 [19:26:24]1040 (4) - 164352 [19:26:24]1012 (4) - 12.07.2024 13:04 [19:26:24]1206 (1) - 0 [19:26:24]OFD Sender: Remove packet 164352 [19:26:24]ProducePacketName [19:26:24]name=ofd_packets/00164352 [19:26:24]NVStorageDeleteData [19:26:25]*** Cut start [19:26:25]*** Partial cut [19:26:25]*** CUTSNS_PIN = 1 [19:26:25]OFD Sender: No OFD packet to send [19:26:25]*** CUTSNS_PIN = 0 [19:26:25]*** Brake cut motor [19:26:26]Read from MH i2c: 01 [19:26:26]MH_I2C_Read... [19:26:26]*** Stop cut motor [19:26:26]*** Cut end [19:26:26]Read from MH i2c: 01 07 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [19:26:26]process_action close_receipt done [19:26:26]requested_data is exist [19:26:26]produce_requested_data [19:26:26]requested_item fm.sn is exist - process it [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 11 00 00 [19:26:26]Write to MH i2c: E2 08 00 46 03 80 11 00 00 00 00 00 00 C3 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 17 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 17 00 46 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 19 [19:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:26:26]wFMCommunicate OK [19:26:26]requested_item fd.num is exist - process it [19:26:26]SAM_PROTO_GetFieldsCounters [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 13 00 00 [19:26:26]Write to MH i2c: E2 08 00 47 03 80 13 00 00 00 00 00 00 C6 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 62 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 62 00 47 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [19:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:26]wFMCommunicate OK [19:26:26]SAM_PROTO_GetFieldsCounters done [19:26:26]requested_item shift.num is exist - process it [19:26:26]requested_item shift.opened is exist - process it [19:26:26]req_shift_opened [19:26:26]FM_GetShiftState [19:26:26]SAM_PROTO_GetShiftState [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 13 01 00 [19:26:26]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 0E 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 12 [19:26:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:26:26]wFMCommunicate OK [19:26:26]SAM_PROTO_GetShiftState done [19:26:26]FM_GetShiftState done [19:26:26]req_shift_opened done [19:26:26]requested_item shift.open_date is exist - process it [19:26:26]req_shift_open_date [19:26:26]req_shift_open_date done [19:26:26]produce_requested_data done [19:26:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164352,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:26:26]process_action_free close_receipt [19:26:26]json_value_free [19:26:26]json_value_free done [19:26:26]process_json_proto returns [19:26:26]Send response to host [19:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164352,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:26:26]free response buf [19:26:26]execute_script done [19:26:26]execute_script returns [19:26:26]free content buf [19:26:26]Sock 10.Close socket [19:26:26]Sock 10.Thread stoped [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:32]accept exits with 7 [19:28:32]New connection [19:28:32]New thread 3067391332 created [19:28:32]Thread 3067534692 joined [19:28:32]Waiting for new connection... [19:28:32] Sock 7.Parse request [19:28:32]Sock 7.Check first char [19:28:32]Sock 7.First char is OK [19:28:32]request: POST /json_proto HTTP/1.0 [19:28:32]Method: POST [19:28:32]URL: /json_proto [19:28:32]Method is POST - this is cgi request [19:28:32]url: /json_proto [19:28:32]query_string will be loaded in cgi processing [19:28:32]execute_cgi json_proto POST (null) [19:28:32]execute_cgi path=json_proto method=POST [19:28:32]POST find Content-Length [19:28:32]Host: 172.17.56.4:8080 [19:28:32]Content-Length: 677 [19:28:32]Content-Type: application/json [19:28:32] [19:28:32]POST finish read [19:28:32]Found Content-Length = 677 [19:28:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:32]execute_script... [19: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)458437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:32]POST & json_proto [19:28:32]process_json_proto [19:28:32]json parsed OK: [19:28:32]protocol is kg_v1.0 [19:28:32]action value=close_receipt [19:28:32]process_action close_receipt [19:28:32]cmd_close_receipt [19:28:32]MH_GetDate [19:28:32]Write to MH i2c: F0 00 00 49 03 3B [19:28:32]Write i2c OK [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: F0 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: F0 09 00 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: F0 09 00 49 03 00 E0 83 91 66 C9 DC B2 64 59 [19:28:32]GetLastDocTimeStamp 1720812383 [19:28:32]current date 1720812512 [19:28:32]FM_GetShiftState [19:28:32]SAM_PROTO_GetShiftState [19:28:32]wFMCommunicate request_size=4 [19:28:32]MH_SAM_APDU [19:28:32]CAPDU: 80 13 01 00 [19:28:32]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [19:28:32]Write i2c OK [19:28:32]MH_I2C_Read... [19:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:32]Read from MH i2c: E2 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: E2 0E 00 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 14 [19:28:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:28:32]wFMCommunicate OK [19:28:32]SAM_PROTO_GetShiftState done [19:28:32]FM_GetShiftState done [19:28:32]opened in 1720744654 [19:28:32]opened+sec_in_day 1720831054 [19:28:32]quantity*price = 50008 [19:28:32]sum+1 = 50009 [19:28:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 274 12.07.2024 19:28 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164353 ФПД: 191905470218367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T192832&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164353&fm=191905470218367&tin=02508201610067®Number=0000000000090829&sum=50000 [19:28:33]StoreToDocumentArchive [19:28:33]shift 445 fd 164353 [19:28:33]save to /storage/0445/doc_00164353 [19:28:33]save last doc name /storage/0445/doc_00164353 to /storage/kkm_last_doc_name [19:28:33]save OK [19:28:33]Clear old archive folders... [19:28:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:33]tlvbuf is 01592B80 [19:28:33]SAM_PROTO_ClearQueue [19:28:33]wFMCommunicate request_size=4 [19:28:33]MH_SAM_APDU [19:28:33]CAPDU: 80 09 00 00 [19:28:33]Write to MH i2c: E2 08 00 57 03 80 09 00 00 00 00 00 00 CC [19:28:33]Write i2c OK [19:28:33]MH_I2C_Read... [19:28:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:33]Read from MH i2c: E2 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 03 00 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [19:28:33]RAPDU: 90 00 [19:28:33]wFMCommunicate OK [19:28:33]SAM_PROTO_ClearQueue done [19:28:33]KKMCreateOFDPacket [19:28:33]OFDProtocolAddRootSTLVToBuf [19:28:33]FM_MakeSignedData [19:28:33]FM_MakeSignedData [19:28:33]SAM_PROTO_SignData [19:28:33]wFMCommunicate request_size=4 [19:28:33]MH_SAM_APDU [19:28:33]CAPDU: 80 0D 01 02 [19:28:33]Write to MH i2c: E2 08 00 58 03 80 0D 01 02 00 00 00 00 D4 [19:28:33]Write i2c OK [19:28:33]MH_I2C_Read... [19:28:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:33]Read from MH i2c: E2 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 03 00 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [19:28:33]RAPDU: 90 00 [19:28:33]wFMCommunicate OK [19:28:33]wFMCommunicate request_size=255 [19:28:33]MH_SAM_APDU [19: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 12 01 00 00 F4 03 04 00 E0 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 82 02 00 35 04 06 00 AE [19:28:33]Write to MH i2c: E2 02 01 59 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 12 01 00 00 F4 03 04 00 E0 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 82 02 00 35 04 06 00 AE 00 00 AB [19:28:33]Write i2c OK [19:28:33]MH_I2C_Read... [19:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:33]Read from MH i2c: E2 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 03 00 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [19:28:33]RAPDU: 90 00 [19:28:33]wFMCommunicate OK [19:28:33]wFMCommunicate request_size=10 [19:28:33]MH_SAM_APDU [19:28:33]CAPDU: 80 0D 02 02 05 89 79 62 00 7F [19:28:33]Write to MH i2c: E2 0D 00 5A 03 80 0D 02 02 05 00 89 79 62 00 7F 00 00 C4 [19:28:33]Write i2c OK [19:28:33]MH_I2C_Read... [19:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:33]Read from MH i2c: E2 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 03 00 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [19:28:33]RAPDU: 90 00 [19:28:33]wFMCommunicate OK [19:28:33]wFMCommunicate request_size=4 [19:28:33]MH_SAM_APDU [19:28:33]CAPDU: 80 0D 03 02 [19:28:33]Write to MH i2c: E2 08 00 5B 03 80 0D 03 02 00 00 00 00 D9 [19:28:33]Write i2c OK [19:28:33]MH_I2C_Read... [19:28:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:33]Read from MH i2c: E2 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 0B 00 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 0B 00 5B 03 00 AE AD DE 35 D1 29 BE 59 90 00 59 [19:28:33]RAPDU: AE AD DE 35 D1 29 BE 59 90 00 [19:28:33]wFMCommunicate OK [19:28:33]SAM_PROTO_SignData done [19:28:33]FM_MakeSignedData done [19:28:33]CreateOFDProtocolMessage [19:28:33]wFMCommunicate request_size=4 [19:28:33]MH_SAM_APDU [19:28:33]CAPDU: 80 11 00 00 [19:28:33]Write to MH i2c: E2 08 00 5C 03 80 11 00 00 00 00 00 00 D9 [19:28:33]Write i2c OK [19:28:33]MH_I2C_Read... [19:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:33]Read from MH i2c: E2 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 17 00 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: E2 17 00 5C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [19:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:28:33]wFMCommunicate OK [19:28:33]CreateOFDProtocolMessage done [19:28:33]OFDSenderStorePacket 164353 [19:28:33]StoreOFDPacket docnum=164353 [19:28:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 AF 07 01 39 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 12 01 00 00 F4 03 04 00 E0 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 82 02 00 35 04 06 00 AE 89 79 62 00 7F AE AD DE 35 D1 29 BE 59 [19:28:33]CheckFolder [19:28:33]dirname=/storage/ofd_packets [19:28:33]CheckFolder done [19:28:33]ProducePacketName [19:28:33]name=ofd_packets/00164353 [19:28:33]NVStorageSaveData ofd_packets/00164353 [19:28:33]File name is /storage/ofd_packets/00164353 [19:28:33]Write 301 bytes [19:28:33]NVStorageSaveData done [19:28:33]OFDSenderStorePacket done [19:28:33]KKMCreateOFDPacket done [19:28:33]NVStorageSaveData kkm_last_timestamp [19:28:33]File name is /storage/kkm_last_timestamp [19:28:33]Write 4 bytes [19:28:33]NVStorageSaveData done [19:28:33]ExternCall_PrintAddStr [19:28:33]wPrintStart [19:28:33]Write to MH i2c: 01 00 00 5D 03 60 [19:28:33]Write i2c OK [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: 01 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: 01 07 00 [19:28:33]MH_I2C_Read... [19:28:33]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 FF 0F 75 [19:28:33]RasterBufferAndPrint [19:28:33]line Счет N : (1)458437 [19:28:33]line ИНН: 02508201610067 [19:28:33]line Контрольно-Кассовый Чек [19:28:33]line ПРОДАЖА [19:28:33]line ТРК (МРК, ГНК) : 12 [19:28:33]line Товар: 2710124130 [19:28:33]line Аи-92-К-5 [19:28:33]line 7.600 * 65.80 [19:28:33]line = 500.08 [19:28:33]line НДС 12% НСП 1% [19:28:33]line > о реализуемом товаре [19:28:33]line ОКРУГЛЕНИЕ: -0.08 [19:28:33]line ИТОГО: 500.00 [19:28:33]line Внесено: 500.00 [19:28:33]line СДАЧА: 0.00 [19:28:33]line НСП 1% : 4.42 [19:28:33]line НДС 12% : 53.11 [19:28:33]line Наличными: 500.00 [19:28:33]line Безнал.: 0.00 [19:28:33]line Место: АЗС № 72 "Партнер Нефть" [19:28:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:28:33]line СНО: Общий режим [19:28:33]line Чек 274 12.07.2024 19:28 [19:28:33]line Смена: 445 ФФД: 1.0 [19:28:33]line ЗНМ: 0300000160 [19:28:33]line РНМ: 0000000000090829 [19:28:33]line Версия ККМ: 001 [19:28:33]line ФМ: 0000000000874718 [19:28:33]line ФД: 164353 [19:28:34]line ФПД: 191905470218367 [19:28:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T192832&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164353&fm=191905470218367&tin=02508201610067®Number=0000000000090829&sum=50000 [19:28:34]OFD Sender: Processing packet 164353 [packets to send 104, broken 103] [19:28:34]ProducePacketName [19:28:34]name=ofd_packets/00164353 [19:28:34]OFD Sender: To server: pG, [19:28:34]CommunicateWithHost lk.salyk.kg:30040 [19:28:34]ConnectInit lk.salyk.kg [19:28:34]written 0, free lines is 4095 [19:28:34]Connected sock=10 [19: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 34 37 31 38 0F 01 00 00 36 AF 07 01 39 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 12 01 00 00 F4 03 04 00 E0 83 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 82 02 00 35 04 06 00 AE 89 79 62 00 7F AE AD DE 35 D1 29 BE 59 [19:28:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 92 D3 47 00 1A D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 82 02 00 F4 03 04 00 74 2A 91 66 B6 04 01 00 00 93 66 39 C0 0B 19 95 0B [19:28:34]CommunicateWithHost err = 0 [19:28:34]CheckOFDResponse [19:28:34]1017 (14) - 77093643461234 [19:28:34]1041 (16) - 0000000000874718 [19:28:34]1040 (4) - 164353 [19:28:34]1012 (4) - 12.07.2024 13:07 [19:28:34]1206 (1) - 0 [19:28:34]OFD Sender: Remove packet 164353 [19:28:34]ProducePacketName [19:28:34]name=ofd_packets/00164353 [19:28:34]NVStorageDeleteData [19:28:34]Write to MH i2c: 01 00 00 87 03 8A [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: 01 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: 01 07 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 FC 0C 99 [19:28:34]RasterBufferAndPrint [19:28:34]line [19:28:34]line [19:28:34]line [19:28:34]line [19:28:34]line [19:28:34]written 0, free lines is 3331 [19:28:34]MH_Cut [19:28:34]Write to MH i2c: D1 01 00 8E 03 01 63 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: D1 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: D1 01 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: D1 01 00 8E 03 00 62 [19:28:34]Write to MH i2c: 01 00 00 8F 03 92 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:35]OFD Sender: No OFD packet to send [19:28:35]*** Cut start [19:28:35]*** Partial cut [19:28:35]*** CUTSNS_PIN = 1 [19:28:35]*** CUTSNS_PIN = 0 [19:28:35]*** Brake cut motor [19:28:35]Read from MH i2c: 01 [19:28:35]MH_I2C_Read... [19:28:35]*** Stop cut motor [19:28:35]*** Cut end [19:28:35]Read from MH i2c: 01 07 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [19:28:35]process_action close_receipt done [19:28:35]requested_data is exist [19:28:35]produce_requested_data [19:28:35]requested_item fm.sn is exist - process it [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 11 00 00 [19:28:35]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:35]Read from MH i2c: E2 17 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 63 [19:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:28:35]wFMCommunicate OK [19:28:35]requested_item fd.num is exist - process it [19:28:35]SAM_PROTO_GetFieldsCounters [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 13 00 00 [19:28:35]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:36]Read from MH i2c: E2 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 62 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 62 00 91 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:36]wFMCommunicate OK [19:28:36]SAM_PROTO_GetFieldsCounters done [19:28:36]requested_item shift.num is exist - process it [19:28:36]requested_item shift.opened is exist - process it [19:28:36]req_shift_opened [19:28:36]FM_GetShiftState [19:28:36]SAM_PROTO_GetShiftState [19:28:36]wFMCommunicate request_size=4 [19:28:36]MH_SAM_APDU [19:28:36]CAPDU: 80 13 01 00 [19:28:36]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [19:28:36]Write i2c OK [19:28:36]MH_I2C_Read... [19:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:36]Read from MH i2c: E2 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 0E 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5C [19:28:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:28:36]wFMCommunicate OK [19:28:36]SAM_PROTO_GetShiftState done [19:28:36]FM_GetShiftState done [19:28:36]req_shift_opened done [19:28:36]requested_item shift.open_date is exist - process it [19:28:36]req_shift_open_date [19:28:36]req_shift_open_date done [19:28:36]produce_requested_data done [19:28:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164353,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:28:36]process_action_free close_receipt [19:28:36]json_value_free [19:28:36]json_value_free done [19:28:36]process_json_proto returns [19:28:36]Send response to host [19:28:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164353,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:28:36]free response buf [19:28:36]execute_script done [19:28:36]execute_script returns [19:28:36]free content buf [19:28:36]Sock 7.Close socket [19:28:36]Sock 7.Thread stoped [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:18]accept exits with 9 [19:32:18]New connection [19:32:18]New thread 3067534692 created [19:32:18]Thread 3067391332 joined [19:32:18]Waiting for new connection... [19:32:18] Sock 9.Parse request [19:32:18]Sock 9.Check first char [19:32:18]Sock 9.First char is OK [19:32:18]request: POST /json_proto HTTP/1.0 [19:32:18]Method: POST [19:32:18]URL: /json_proto [19:32:18]Method is POST - this is cgi request [19:32:18]url: /json_proto [19:32:18]query_string will be loaded in cgi processing [19:32:18]execute_cgi json_proto POST (null) [19:32:18]execute_cgi path=json_proto method=POST [19:32:18]POST find Content-Length [19:32:18]Host: 172.17.56.4:8080 [19:32:18]Content-Length: 677 [19:32:18]Content-Type: application/json [19:32:18] [19:32:18]POST finish read [19:32:18]Found Content-Length = 677 [19:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:18]execute_script... [19:32: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)458438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:18]POST & json_proto [19:32:18]process_json_proto [19:32:18]json parsed OK: [19:32:18]protocol is kg_v1.0 [19:32:18]action value=close_receipt [19:32:18]process_action close_receipt [19:32:18]cmd_close_receipt [19:32:18]MH_GetDate [19:32:18]Write to MH i2c: F0 00 00 93 03 85 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: F0 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: F0 09 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: F0 09 00 93 03 00 C3 84 91 66 C9 DC B2 64 87 [19:32:18]GetLastDocTimeStamp 1720812512 [19:32:18]current date 1720812739 [19:32:18]FM_GetShiftState [19:32:18]SAM_PROTO_GetShiftState [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 13 01 00 [19:32:18]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0E 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5E [19:32:18]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:32:18]wFMCommunicate OK [19:32:18]SAM_PROTO_GetShiftState done [19:32:18]FM_GetShiftState done [19:32:18]opened in 1720744654 [19:32:18]opened+sec_in_day 1720831054 [19:32:18]quantity*price = 40006 [19:32:18]sum+1 = 40007 [19:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 275 12.07.2024 19:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164354 ФПД: 4861027285509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T193219&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164354&fm=4861027285509&tin=02508201610067®Number=0000000000090829&sum=40000 [19:32:19]StoreToDocumentArchive [19:32:19]shift 445 fd 164354 [19:32:19]save to /storage/0445/doc_00164354 [19:32:19]save last doc name /storage/0445/doc_00164354 to /storage/kkm_last_doc_name [19:32:19]save OK [19:32:19]Clear old archive folders... [19:32:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:19]tlvbuf is 01562130 [19:32:19]SAM_PROTO_ClearQueue [19:32:19]wFMCommunicate request_size=4 [19:32:19]MH_SAM_APDU [19:32:19]CAPDU: 80 09 00 00 [19:32:19]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:19]Read from MH i2c: E2 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 03 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [19:32:19]RAPDU: 90 00 [19:32:19]wFMCommunicate OK [19:32:19]SAM_PROTO_ClearQueue done [19:32:19]KKMCreateOFDPacket [19:32:19]OFDProtocolAddRootSTLVToBuf [19:32:19]FM_MakeSignedData [19:32:19]FM_MakeSignedData [19:32:19]SAM_PROTO_SignData [19:32:19]wFMCommunicate request_size=4 [19:32:19]MH_SAM_APDU [19:32:19]CAPDU: 80 0D 01 02 [19:32:19]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [19:32:20]RAPDU: 90 00 [19:32:20]wFMCommunicate OK [19:32:20]wFMCommunicate request_size=255 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 B4 19 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 13 01 00 00 F4 03 04 00 C3 84 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 82 02 00 35 04 06 00 04 [19:32:20]Write to MH i2c: E2 02 01 A3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 13 01 00 00 F4 03 04 00 C3 84 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 82 02 00 35 04 06 00 04 00 00 11 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:20]Read from MH i2c: E2 03 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [19:32:20]RAPDU: 90 00 [19:32:20]wFMCommunicate OK [19:32:20]wFMCommunicate request_size=10 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 0D 02 02 05 6B CB CD FA 05 [19:32:20]Write to MH i2c: E2 0D 00 A4 03 80 0D 02 02 05 00 6B CB CD FA 05 00 00 2D [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:20]OFD Sender: No OFD packet to send [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [19:32:20]RAPDU: 90 00 [19:32:20]wFMCommunicate OK [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 0D 03 02 [19:32:20]Write to MH i2c: E2 08 00 A5 03 80 0D 03 02 00 00 00 00 23 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 0B 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 0B 00 A5 03 00 A1 25 F1 4F 68 58 C0 D1 90 00 7B [19:32:20]RAPDU: A1 25 F1 4F 68 58 C0 D1 90 00 [19:32:20]wFMCommunicate OK [19:32:20]SAM_PROTO_SignData done [19:32:20]FM_MakeSignedData done [19:32:20]CreateOFDProtocolMessage [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 A6 03 80 11 00 00 00 00 00 00 23 [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 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [19:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:32:20]wFMCommunicate OK [19:32:20]CreateOFDProtocolMessage done [19:32:20]OFDSenderStorePacket 164354 [19:32:20]StoreOFDPacket docnum=164354 [19:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5E 1A 07 01 D6 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 13 01 00 00 F4 03 04 00 C3 84 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 82 02 00 35 04 06 00 04 6B CB CD FA 05 A1 25 F1 4F 68 58 C0 D1 [19:32:20]CheckFolder [19:32:20]dirname=/storage/ofd_packets [19:32:20]CheckFolder done [19:32:20]ProducePacketName [19:32:20]name=ofd_packets/00164354 [19:32:20]NVStorageSaveData ofd_packets/00164354 [19:32:20]File name is /storage/ofd_packets/00164354 [19:32:20]Write 301 bytes [19:32:20]NVStorageSaveData done [19:32:20]OFDSenderStorePacket done [19:32:20]KKMCreateOFDPacket done [19:32:20]NVStorageSaveData kkm_last_timestamp [19:32:20]File name is /storage/kkm_last_timestamp [19:32:20]OFD Sender: Processing packet 164354 [packets to send 104, broken 103] [19:32:20]ProducePacketName [19:32:20]name=ofd_packets/00164354 [19:32:20]OFD Sender: To server: pG, [19:32:20]CommunicateWithHost lk.salyk.kg:30040 [19:32:20]ConnectInit lk.salyk.kg [19:32:20]Write 4 bytes [19:32:20]NVStorageSaveData done [19:32:20]ExternCall_PrintAddStr [19:32:20]wPrintStart [19:32:20]Write to MH i2c: 01 00 00 A7 03 AA [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 [19:32:20]MH_I2C_Read... [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 A7 03 00 00 00 00 00 FF 0F BF [19:32:20]RasterBufferAndPrint [19:32:20]line Счет N : (1)458438 [19:32:20]line ИНН: 02508201610067 [19:32:20]line Контрольно-Кассовый Чек [19:32:20]line ПРОДАЖА [19:32:20]line ТРК (МРК, ГНК) : 12 [19:32:20]line Товар: 2710124130 [19:32:20]line Аи-92-К-5 [19:32:20]line 6.080 * 65.80 [19:32:20]line = 400.06 [19:32:20]line НДС 12% НСП 1% [19:32:20]line > о реализуемом товаре [19:32:20]line ОКРУГЛЕНИЕ: -0.06 [19:32:20]line ИТОГО: 400.00 [19:32:20]line Внесено: 400.00 [19:32:20]line СДАЧА: 0.00 [19:32:20]line НСП 1% : 3.54 [19:32:20]line НДС 12% : 42.48 [19:32:20]line Наличными: 400.00 [19:32:20]line Безнал.: 0.00 [19:32:20]line Место: АЗС № 72 "Партнер Нефть" [19:32:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:32:20]line СНО: Общий режим [19:32:20]line Чек 275 12.07.2024 19:32 [19:32:20]line Смена: 445 ФФД: 1.0 [19:32:20]line ЗНМ: 0300000160 [19:32:20]line РНМ: 0000000000090829 [19:32:20]line Версия ККМ: 001 [19:32:20]line ФМ: 0000000000874718 [19:32:20]line ФД: 164354 [19:32:20]line ФПД: 4861027285509 [19:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T193219&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164354&fm=4861027285509&tin=02508201610067®Number=0000000000090829&sum=40000 [19:32:20]Connected sock=11 [19:32:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5E 1A 07 01 D6 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 13 01 00 00 F4 03 04 00 C3 84 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 82 02 00 35 04 06 00 04 6B CB CD FA 05 A1 25 F1 4F 68 58 C0 D1 [19:32:20]written 0, free lines is 4095 [19:32:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7F 8C 47 00 04 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 34 37 31 38 10 04 04 00 02 82 02 00 F4 03 04 00 56 2B 91 66 B6 04 01 00 00 F7 9B E6 06 A4 02 8A EF [19:32:20]CommunicateWithHost err = 0 [19:32:20]CheckOFDResponse [19:32:20]1017 (14) - 77093643461234 [19:32:20]1041 (16) - 0000000000874718 [19:32:20]1040 (4) - 164354 [19:32:20]1012 (4) - 12.07.2024 13:10 [19:32:20]1206 (1) - 0 [19:32:20]OFD Sender: Remove packet 164354 [19:32:20]ProducePacketName [19:32:20]name=ofd_packets/00164354 [19:32:20]NVStorageDeleteData [19:32:21]Write to MH i2c: 01 00 00 D1 03 D4 [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: 01 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: 01 07 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 F2 0C D9 [19:32:21]RasterBufferAndPrint [19:32:21]line [19:32:21]line [19:32:21]line [19:32:21]line [19:32:21]line [19:32:21]written 0, free lines is 3318 [19:32:21]MH_Cut [19:32:21]Write to MH i2c: D1 01 00 D8 03 01 AD [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: D1 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: D1 01 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: D1 01 00 D8 03 00 AC [19:32:21]Write to MH i2c: 01 00 00 D9 03 DC [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]OFD Sender: No OFD packet to send [19:32:21]*** Cut start [19:32:21]*** Partial cut [19:32:21]*** CUTSNS_PIN = 1 [19:32:21]*** CUTSNS_PIN = 0 [19:32:22]*** Brake cut motor [19:32:22]Read from MH i2c: 01 [19:32:22]MH_I2C_Read... [19:32:22]*** Stop cut motor [19:32:22]*** Cut end [19:32:22]Read from MH i2c: 01 07 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [19:32:22]process_action close_receipt done [19:32:22]requested_data is exist [19:32:22]produce_requested_data [19:32:22]requested_item fm.sn is exist - process it [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 11 00 00 [19:32:22]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 17 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [19:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:32:22]wFMCommunicate OK [19:32:22]requested_item fd.num is exist - process it [19:32:22]SAM_PROTO_GetFieldsCounters [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 13 00 00 [19:32:22]Write to MH i2c: E2 08 00 DB 03 80 13 00 00 00 00 00 00 5A [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 62 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 62 00 DB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [19:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:22]wFMCommunicate OK [19:32:22]SAM_PROTO_GetFieldsCounters done [19:32:22]requested_item shift.num is exist - process it [19:32:22]requested_item shift.opened is exist - process it [19:32:22]req_shift_opened [19:32:22]FM_GetShiftState [19:32:22]SAM_PROTO_GetShiftState [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 13 01 00 [19:32:22]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 0E 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A6 [19:32:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:32:22]wFMCommunicate OK [19:32:22]SAM_PROTO_GetShiftState done [19:32:22]FM_GetShiftState done [19:32:22]req_shift_opened done [19:32:22]requested_item shift.open_date is exist - process it [19:32:22]req_shift_open_date [19:32:22]req_shift_open_date done [19:32:22]produce_requested_data done [19:32:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164354,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:32:22]process_action_free close_receipt [19:32:22]json_value_free [19:32:22]json_value_free done [19:32:22]process_json_proto returns [19:32:22]Send response to host [19:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164354,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:32:22]free response buf [19:32:22]execute_script done [19:32:22]execute_script returns [19:32:22]free content buf [19:32:22]Sock 9.Close socket [19:32:22]Sock 9.Thread stoped [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:47]accept exits with 7 [19:36:47]New connection [19:36:47]New thread 3067391332 created [19:36:47]Thread 3067534692 joined [19:36:47]Waiting for new connection... [19:36:47] Sock 7.Parse request [19:36:47]Sock 7.Check first char [19:36:47]Sock 7.First char is OK [19:36:47]request: POST /json_proto HTTP/1.0 [19:36:47]Method: POST [19:36:47]URL: /json_proto [19:36:47]Method is POST - this is cgi request [19:36:47]url: /json_proto [19:36:47]query_string will be loaded in cgi processing [19:36:47]execute_cgi json_proto POST (null) [19:36:47]execute_cgi path=json_proto method=POST [19:36:47]POST find Content-Length [19:36:47]Host: 172.17.56.4:8080 [19:36:47]Content-Length: 841 [19:36:47]Content-Type: application/json [19:36:47] [19:36:47]POST finish read [19:36:47]Found Content-Length = 841 [19:36:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:47]execute_script... [19:36: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)458439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:47]POST & json_proto [19:36:47]process_json_proto [19:36:47]json parsed OK: [19:36:47]protocol is kg_v1.0 [19:36:47]action value=close_receipt [19:36:47]process_action close_receipt [19:36:47]cmd_close_receipt [19:36:47]MH_GetDate [19:36:47]Write to MH i2c: F0 00 00 DD 03 CF [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: F0 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: F0 09 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: F0 09 00 DD 03 00 CF 85 91 66 C9 DC B2 64 DE [19:36:47]GetLastDocTimeStamp 1720812739 [19:36:47]current date 1720813007 [19:36:47]FM_GetShiftState [19:36:47]SAM_PROTO_GetShiftState [19:36:47]wFMCommunicate request_size=4 [19:36:47]MH_SAM_APDU [19:36:47]CAPDU: 80 13 01 00 [19:36:47]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:47]Read from MH i2c: E2 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 0E 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A8 [19:36:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:36:47]wFMCommunicate OK [19:36:47]SAM_PROTO_GetShiftState done [19:36:47]FM_GetShiftState done [19:36:47]opened in 1720744654 [19:36:47]opened+sec_in_day 1720831054 [19:36:47]quantity*price = 65220 [19:36:47]sum+1 = 65221 [19:36:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 276 12.07.2024 19:36 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164355 ФПД: 8199639612961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T193647&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164355&fm=8199639612961&tin=02508201610067®Number=0000000000090829&sum=65220 [19:36:48]StoreToDocumentArchive [19:36:48]shift 445 fd 164355 [19:36:48]save to /storage/0445/doc_00164355 [19:36:48]save last doc name /storage/0445/doc_00164355 to /storage/kkm_last_doc_name [19:36:48]save OK [19:36:48]Clear old archive folders... [19:36:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:48]tlvbuf is 015A93D0 [19:36:48]SAM_PROTO_ClearQueue [19:36:48]wFMCommunicate request_size=4 [19:36:48]MH_SAM_APDU [19:36:48]CAPDU: 80 09 00 00 [19:36:48]Write to MH i2c: E2 08 00 EB 03 80 09 00 00 00 00 00 00 60 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 03 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [19:36:48]RAPDU: 90 00 [19:36:48]wFMCommunicate OK [19:36:48]SAM_PROTO_ClearQueue done [19:36:48]KKMCreateOFDPacket [19:36:48]OFDProtocolAddRootSTLVToBuf [19:36:48]FM_MakeSignedData [19:36:48]FM_MakeSignedData [19:36:48]SAM_PROTO_SignData [19:36:48]wFMCommunicate request_size=4 [19:36:48]MH_SAM_APDU [19:36:48]CAPDU: 80 0D 01 02 [19:36:48]Write to MH i2c: E2 08 00 EC 03 80 0D 01 02 00 00 00 00 68 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 03 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [19:36:48]RAPDU: 90 00 [19:36:48]wFMCommunicate OK [19:36:48]wFMCommunicate request_size=255 [19:36:48]MH_SAM_APDU [19:36: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CF 85 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 82 02 00 35 04 06 00 07 [19:36:48]Write to MH i2c: E2 02 01 ED 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CF 85 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 82 02 00 35 04 06 00 07 00 00 A0 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 03 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [19:36:48]RAPDU: 90 00 [19:36:48]wFMCommunicate OK [19:36:48]wFMCommunicate request_size=10 [19:36:48]MH_SAM_APDU [19:36:48]CAPDU: 80 0D 02 02 05 75 20 9B 3E 21 [19:36:48]Write to MH i2c: E2 0D 00 EE 03 80 0D 02 02 05 00 75 20 9B 3E 21 00 00 04 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 03 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [19:36:48]RAPDU: 90 00 [19:36:48]wFMCommunicate OK [19:36:48]wFMCommunicate request_size=4 [19:36:48]MH_SAM_APDU [19:36:48]CAPDU: 80 0D 03 02 [19:36:48]Write to MH i2c: E2 08 00 EF 03 80 0D 03 02 00 00 00 00 6D [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 0B 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 0B 00 EF 03 00 47 0D B9 72 54 3F B7 57 90 00 8E [19:36:48]RAPDU: 47 0D B9 72 54 3F B7 57 90 00 [19:36:48]wFMCommunicate OK [19:36:48]SAM_PROTO_SignData done [19:36:48]FM_MakeSignedData done [19:36:48]CreateOFDProtocolMessage [19:36:48]wFMCommunicate request_size=4 [19:36:48]MH_SAM_APDU [19:36:48]CAPDU: 80 11 00 00 [19:36:48]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 17 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [19:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:36:48]wFMCommunicate OK [19:36:48]CreateOFDProtocolMessage done [19:36:48]OFDSenderStorePacket 164355 [19:36:48]StoreOFDPacket docnum=164355 [19:36:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B AC 07 01 78 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CF 85 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 82 02 00 35 04 06 00 07 75 20 9B 3E 21 47 0D B9 72 54 3F B7 57 [19:36:48]CheckFolder [19:36:48]dirname=/storage/ofd_packets [19:36:48]CheckFolder done [19:36:48]ProducePacketName [19:36:48]name=ofd_packets/00164355 [19:36:48]NVStorageSaveData ofd_packets/00164355 [19:36:48]File name is /storage/ofd_packets/00164355 [19:36:48]Write 301 bytes [19:36:48]NVStorageSaveData done [19:36:48]OFDSenderStorePacket done [19:36:48]KKMCreateOFDPacket done [19:36:48]NVStorageSaveData kkm_last_timestamp [19:36:48]File name is /storage/kkm_last_timestamp [19:36:48]Write 4 bytes [19:36:48]NVStorageSaveData done [19:36:48]ExternCall_PrintAddStr [19:36:48]wPrintStart [19:36:48]Write to MH i2c: 01 00 00 F1 03 F4 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: 01 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: 01 07 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [19:36:48]RasterBufferAndPrint [19:36:48]line Счет N : (1)458439 [19:36:48]line ИНН: 02508201610067 [19:36:48]line Контрольно-Кассовый Чек [19:36:48]line ПРОДАЖА [19:36:48]line ТРК (МРК, ГНК) : 22 [19:36:48]line Товар: 2710124130 [19:36:48]line Аи-92-К-5 [19:36:48]line 10.000 * 65.22 [19:36:48]line = 652.20 [19:36:48]line НДС 12% НСП 1% [19:36:48]line > о реализуемом товаре [19:36:48]line ИТОГО: 652.20 [19:36:48]line НСП 1% : 5.77 [19:36:48]line НДС 12% : 69.26 [19:36:48]line Наличными: 0.00 [19:36:48]line Безнал.: 652.20 [19:36:48]line Место: АЗС № 72 "Партнер Нефть" [19:36:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:36:48]line СНО: Общий режим [19:36:48]line Чек 276 12.07.2024 19:36 [19:36:48]line Смена: 445 ФФД: 1.0 [19:36:48]line ЗНМ: 0300000160 [19:36:48]line РНМ: 0000000000090829 [19:36:48]line Версия ККМ: 001 [19:36:48]line Платежная система: АКБ Кыргызстан [19:36:48]line ФМ: 0000000000874718 [19:36:48]line ФД: 164355 [19:36:48]line ФПД: 8199639612961 [19:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T193647&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164355&fm=8199639612961&tin=02508201610067®Number=0000000000090829&sum=65220 [19:36:49]OFD Sender: Processing packet 164355 [packets to send 104, broken 103] [19:36:49]ProducePacketName [19:36:49]name=ofd_packets/00164355 [19:36:49]OFD Sender: To server: pG, [19:36:49]CommunicateWithHost lk.salyk.kg:30040 [19:36:49]ConnectInit lk.salyk.kg [19:36:49]written 0, free lines is 4095 [19:36:49]Connected sock=10 [19:36:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B AC 07 01 78 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CF 85 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 82 02 00 35 04 06 00 07 75 20 9B 3E 21 47 0D B9 72 54 3F B7 57 [19:36:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7D 50 47 00 29 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 34 37 31 38 10 04 04 00 03 82 02 00 F4 03 04 00 62 2C 91 66 B6 04 01 00 00 24 FB 7E E0 56 ED 82 8D [19:36:49]CommunicateWithHost err = 0 [19:36:49]CheckOFDResponse [19:36:49]1017 (14) - 77093643461234 [19:36:49]1041 (16) - 0000000000874718 [19:36:49]1040 (4) - 164355 [19:36:49]1012 (4) - 12.07.2024 13:15 [19:36:49]1206 (1) - 0 [19:36:49]OFD Sender: Remove packet 164355 [19:36:49]ProducePacketName [19:36:49]name=ofd_packets/00164355 [19:36:49]NVStorageDeleteData [19:36:49]Write to MH i2c: 01 00 00 1A 04 1E [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: 01 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: 01 07 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 09 0D 3B [19:36:49]RasterBufferAndPrint [19:36:49]line [19:36:49]line [19:36:49]line [19:36:49]line [19:36:49]line [19:36:49]written 0, free lines is 3344 [19:36:49]MH_Cut [19:36:49]Write to MH i2c: D1 01 00 21 04 01 F7 [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: D1 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: D1 01 00 [19:36:49]MH_I2C_Read... [19:36:49]Read from MH i2c: D1 01 00 21 04 00 F6 [19:36:49]Write to MH i2c: 01 00 00 22 04 26 [19:36:49]Write i2c OK [19:36:49]MH_I2C_Read... [19:36:49]OFD Sender: No OFD packet to send [19:36:50]*** Cut start [19:36:50]*** Partial cut [19:36:50]*** CUTSNS_PIN = 1 [19:36:50]*** CUTSNS_PIN = 0 [19:36:50]*** Brake cut motor [19:36:50]Read from MH i2c: 01 [19:36:50]MH_I2C_Read... [19:36:50]*** Stop cut motor [19:36:50]*** Cut end [19:36:50]Read from MH i2c: 01 07 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 FF 0F 3B [19:36:50]process_action close_receipt done [19:36:50]requested_data is exist [19:36:50]produce_requested_data [19:36:50]requested_item fm.sn is exist - process it [19:36:50]wFMCommunicate request_size=4 [19:36:50]MH_SAM_APDU [19:36:50]CAPDU: 80 11 00 00 [19:36:50]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:50]Read from MH i2c: E2 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 17 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [19:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:36:50]wFMCommunicate OK [19:36:50]requested_item fd.num is exist - process it [19:36:50]SAM_PROTO_GetFieldsCounters [19:36:50]wFMCommunicate request_size=4 [19:36:50]MH_SAM_APDU [19:36:50]CAPDU: 80 13 00 00 [19:36:50]Write to MH i2c: E2 08 00 24 04 80 13 00 00 00 00 00 00 A4 [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:51]Read from MH i2c: E2 [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: E2 62 00 [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: E2 62 00 24 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [19:36:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:51]wFMCommunicate OK [19:36:51]SAM_PROTO_GetFieldsCounters done [19:36:51]requested_item shift.num is exist - process it [19:36:51]requested_item shift.opened is exist - process it [19:36:51]req_shift_opened [19:36:51]FM_GetShiftState [19:36:51]SAM_PROTO_GetShiftState [19:36:51]wFMCommunicate request_size=4 [19:36:51]MH_SAM_APDU [19:36:51]CAPDU: 80 13 01 00 [19:36:51]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [19:36:51]Write i2c OK [19:36:51]MH_I2C_Read... [19:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:51]Read from MH i2c: E2 [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: E2 0E 00 [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F0 [19:36:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:36:51]wFMCommunicate OK [19:36:51]SAM_PROTO_GetShiftState done [19:36:51]FM_GetShiftState done [19:36:51]req_shift_opened done [19:36:51]requested_item shift.open_date is exist - process it [19:36:51]req_shift_open_date [19:36:51]req_shift_open_date done [19:36:51]produce_requested_data done [19:36:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164355,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:36:51]process_action_free close_receipt [19:36:51]json_value_free [19:36:51]json_value_free done [19:36:51]process_json_proto returns [19:36:51]Send response to host [19:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164355,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:36:51]free response buf [19:36:51]execute_script done [19:36:51]execute_script returns [19:36:51]free content buf [19:36:51]Sock 7.Close socket [19:36:51]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:27]accept exits with 9 [19:39:27]New connection [19:39:27]New thread 3067534692 created [19:39:27]Thread 3067391332 joined [19:39:27]Waiting for new connection... [19:39:27] Sock 9.Parse request [19:39:27]Sock 9.Check first char [19:39:27]Sock 9.First char is OK [19:39:27]request: POST /json_proto HTTP/1.0 [19:39:27]Method: POST [19:39:27]URL: /json_proto [19:39:27]Method is POST - this is cgi request [19:39:27]url: /json_proto [19:39:27]query_string will be loaded in cgi processing [19:39:27]execute_cgi json_proto POST (null) [19:39:27]execute_cgi path=json_proto method=POST [19:39:27]POST find Content-Length [19:39:27]Host: 172.17.56.4:8080 [19:39:27]Content-Length: 682 [19:39:27]Content-Type: application/json [19:39:27] [19:39:27]POST finish read [19:39:27]Found Content-Length = 682 [19:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:27]execute_script... [19:39: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)458440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:27]POST & json_proto [19:39:27]process_json_proto [19:39:27]json parsed OK: [19:39:27]protocol is kg_v1.0 [19:39:27]action value=close_receipt [19:39:27]process_action close_receipt [19:39:27]cmd_close_receipt [19:39:27]MH_GetDate [19:39:27]Write to MH i2c: F0 00 00 26 04 19 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: F0 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: F0 09 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: F0 09 00 26 04 00 6F 86 91 66 C9 DC B2 64 C9 [19:39:27]GetLastDocTimeStamp 1720813007 [19:39:27]current date 1720813167 [19:39:27]FM_GetShiftState [19:39:27]SAM_PROTO_GetShiftState [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 13 01 00 [19:39:27]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 0E 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F2 [19:39:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:39:27]wFMCommunicate OK [19:39:27]SAM_PROTO_GetShiftState done [19:39:27]FM_GetShiftState done [19:39:27]opened in 1720744654 [19:39:27]opened+sec_in_day 1720831054 [19:39:27]quantity*price = 100016 [19:39:27]sum+1 = 100017 [19:39:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 277 12.07.2024 19:39 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164356 ФПД: 86839643231240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T193927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164356&fm=86839643231240&tin=02508201610067®Number=0000000000090829&sum=100000 [19:39:28]StoreToDocumentArchive [19:39:28]shift 445 fd 164356 [19:39:28]save to /storage/0445/doc_00164356 [19:39:28]save last doc name /storage/0445/doc_00164356 to /storage/kkm_last_doc_name [19:39:28]save OK [19:39:28]Clear old archive folders... [19:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:28]tlvbuf is 015AB3B0 [19:39:28]SAM_PROTO_ClearQueue [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 09 00 00 [19:39:28]Write to MH i2c: E2 08 00 34 04 80 09 00 00 00 00 00 00 AA [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [19:39:28]RAPDU: 90 00 [19:39:28]wFMCommunicate OK [19:39:28]SAM_PROTO_ClearQueue done [19:39:28]KKMCreateOFDPacket [19:39:28]OFDProtocolAddRootSTLVToBuf [19:39:28]FM_MakeSignedData [19:39:28]FM_MakeSignedData [19:39:28]SAM_PROTO_SignData [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 0D 01 02 [19:39:28]Write to MH i2c: E2 08 00 35 04 80 0D 01 02 00 00 00 00 B2 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [19:39:28]RAPDU: 90 00 [19:39:28]wFMCommunicate OK [19:39:28]wFMCommunicate request_size=255 [19:39:28]MH_SAM_APDU [19:39: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 6F 86 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 82 02 00 35 04 06 00 4E [19:39:28]Write to MH i2c: E2 02 01 36 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 6F 86 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 82 02 00 35 04 06 00 4E 00 00 63 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [19:39:28]RAPDU: 90 00 [19:39:28]wFMCommunicate OK [19:39:28]wFMCommunicate request_size=10 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 0D 02 02 05 FA EE 16 54 08 [19:39:28]Write to MH i2c: E2 0D 00 37 04 80 0D 02 02 05 00 FA EE 16 54 08 00 00 19 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [19:39:28]RAPDU: 90 00 [19:39:28]wFMCommunicate OK [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 0D 03 02 [19:39:28]Write to MH i2c: E2 08 00 38 04 80 0D 03 02 00 00 00 00 B7 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 0B 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 0B 00 38 04 00 47 11 87 88 6C 35 1A 49 90 00 23 [19:39:28]RAPDU: 47 11 87 88 6C 35 1A 49 90 00 [19:39:28]wFMCommunicate OK [19:39:28]SAM_PROTO_SignData done [19:39:28]FM_MakeSignedData done [19:39:28]CreateOFDProtocolMessage [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 11 00 00 [19:39:28]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:29]Read from MH i2c: E2 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 17 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [19:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:39:29]wFMCommunicate OK [19:39:29]CreateOFDProtocolMessage done [19:39:29]OFDSenderStorePacket 164356 [19:39:29]StoreOFDPacket docnum=164356 [19:39:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA 48 07 01 B7 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 6F 86 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 82 02 00 35 04 06 00 4E FA EE 16 54 08 47 11 87 88 6C 35 1A 49 [19:39:29]CheckFolder [19:39:29]dirname=/storage/ofd_packets [19:39:29]CheckFolder done [19:39:29]ProducePacketName [19:39:29]name=ofd_packets/00164356 [19:39:29]NVStorageSaveData ofd_packets/00164356 [19:39:29]File name is /storage/ofd_packets/00164356 [19:39:29]Write 301 bytes [19:39:29]NVStorageSaveData done [19:39:29]OFDSenderStorePacket done [19:39:29]KKMCreateOFDPacket done [19:39:29]NVStorageSaveData kkm_last_timestamp [19:39:29]File name is /storage/kkm_last_timestamp [19:39:29]Write 4 bytes [19:39:29]NVStorageSaveData done [19:39:29]ExternCall_PrintAddStr [19:39:29]wPrintStart [19:39:29]Write to MH i2c: 01 00 00 3A 04 3E [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 07 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [19:39:29]RasterBufferAndPrint [19:39:29]line Счет N : (1)458440 [19:39:29]line ИНН: 02508201610067 [19:39:29]line Контрольно-Кассовый Чек [19:39:29]line ПРОДАЖА [19:39:29]line ТРК (МРК, ГНК) : 12 [19:39:29]line Товар: 2710124130 [19:39:29]line Аи-92-К-5 [19:39:29]line 15.200 * 65.80 [19:39:29]line = 1000.16 [19:39:29]line НДС 12% НСП 1% [19:39:29]line > о реализуемом товаре [19:39:29]line ОКРУГЛЕНИЕ: -0.16 [19:39:29]line ИТОГО: 1000.00 [19:39:29]line Внесено: 1000.00 [19:39:29]line СДАЧА: 0.00 [19:39:29]line НСП 1% : 8.85 [19:39:29]line НДС 12% : 106.21 [19:39:29]line Наличными: 1000.00 [19:39:29]line Безнал.: 0.00 [19:39:29]line Место: АЗС № 72 "Партнер Нефть" [19:39:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:39:29]line СНО: Общий режим [19:39:29]line Чек 277 12.07.2024 19:39 [19:39:29]line Смена: 445 ФФД: 1.0 [19:39:29]line ЗНМ: 0300000160 [19:39:29]line РНМ: 0000000000090829 [19:39:29]line Версия ККМ: 001 [19:39:29]line ФМ: 0000000000874718 [19:39:29]line ФД: 164356 [19:39:29]line ФПД: 86839643231240 [19:39:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T193927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164356&fm=86839643231240&tin=02508201610067®Number=0000000000090829&sum=100000 [19:39:29]OFD Sender: Processing packet 164356 [packets to send 104, broken 103] [19:39:29]ProducePacketName [19:39:29]name=ofd_packets/00164356 [19:39:29]OFD Sender: To server: pG, [19:39:29]CommunicateWithHost lk.salyk.kg:30040 [19:39:29]ConnectInit lk.salyk.kg [19:39:29]written 0, free lines is 4095 [19:39:29]Connected sock=10 [19:39:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA 48 07 01 B7 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 6F 86 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 82 02 00 35 04 06 00 4E FA EE 16 54 08 47 11 87 88 6C 35 1A 49 [19:39:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0F F3 47 00 1B 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 34 37 31 38 10 04 04 00 04 82 02 00 F4 03 04 00 03 2D 91 66 B6 04 01 00 00 E6 BD BE 9F 28 FD 59 5F [19:39:29]CommunicateWithHost err = 0 [19:39:29]CheckOFDResponse [19:39:29]1017 (14) - 77093643461234 [19:39:29]1041 (16) - 0000000000874718 [19:39:29]1040 (4) - 164356 [19:39:29]1012 (4) - 12.07.2024 13:17 [19:39:29]1206 (1) - 0 [19:39:29]OFD Sender: Remove packet 164356 [19:39:29]ProducePacketName [19:39:29]name=ofd_packets/00164356 [19:39:29]NVStorageDeleteData [19:39:29]Write to MH i2c: 01 00 00 64 04 68 [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 07 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 F2 0C 6D [19:39:29]RasterBufferAndPrint [19:39:29]line [19:39:29]line [19:39:29]line [19:39:29]line [19:39:29]line [19:39:29]written 0, free lines is 3322 [19:39:29]MH_Cut [19:39:29]Write to MH i2c: D1 01 00 6B 04 01 41 [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: D1 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: D1 01 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: D1 01 00 6B 04 00 40 [19:39:29]Write to MH i2c: 01 00 00 6C 04 70 [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:30]OFD Sender: No OFD packet to send [19:39:30]*** Cut start [19:39:30]*** Partial cut [19:39:30]*** CUTSNS_PIN = 1 [19:39:30]*** CUTSNS_PIN = 0 [19:39:30]*** Brake cut motor [19:39:31]Read from MH i2c: 01 [19:39:31]MH_I2C_Read... [19:39:31]*** Stop cut motor [19:39:31]*** Cut end [19:39:31]Read from MH i2c: 01 07 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [19:39:31]process_action close_receipt done [19:39:31]requested_data is exist [19:39:31]produce_requested_data [19:39:31]requested_item fm.sn is exist - process it [19:39:31]wFMCommunicate request_size=4 [19:39:31]MH_SAM_APDU [19:39:31]CAPDU: 80 11 00 00 [19:39:31]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:31]Read from MH i2c: E2 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 17 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [19:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:39:31]wFMCommunicate OK [19:39:31]requested_item fd.num is exist - process it [19:39:31]SAM_PROTO_GetFieldsCounters [19:39:31]wFMCommunicate request_size=4 [19:39:31]MH_SAM_APDU [19:39:31]CAPDU: 80 13 00 00 [19:39:31]Write to MH i2c: E2 08 00 6E 04 80 13 00 00 00 00 00 00 EE [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:31]Read from MH i2c: E2 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 62 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 62 00 6E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [19:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:31]wFMCommunicate OK [19:39:31]SAM_PROTO_GetFieldsCounters done [19:39:31]requested_item shift.num is exist - process it [19:39:31]requested_item shift.opened is exist - process it [19:39:31]req_shift_opened [19:39:31]FM_GetShiftState [19:39:31]SAM_PROTO_GetShiftState [19:39:31]wFMCommunicate request_size=4 [19:39:31]MH_SAM_APDU [19:39:31]CAPDU: 80 13 01 00 [19:39:31]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:31]Read from MH i2c: E2 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 0E 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3A [19:39:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:39:31]wFMCommunicate OK [19:39:31]SAM_PROTO_GetShiftState done [19:39:31]FM_GetShiftState done [19:39:31]req_shift_opened done [19:39:31]requested_item shift.open_date is exist - process it [19:39:31]req_shift_open_date [19:39:31]req_shift_open_date done [19:39:31]produce_requested_data done [19:39:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164356,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:39:31]process_action_free close_receipt [19:39:31]json_value_free [19:39:31]json_value_free done [19:39:31]process_json_proto returns [19:39:31]Send response to host [19:39:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164356,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:39:31]free response buf [19:39:31]execute_script done [19:39:31]execute_script returns [19:39:31]free content buf [19:39:31]Sock 9.Close socket [19:39:31]Sock 9.Thread stoped [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:34]accept exits with 7 [19:45:34]New connection [19:45:34]New thread 3067391332 created [19:45:34]Thread 3067534692 joined [19:45:34]Waiting for new connection... [19:45:34] Sock 7.Parse request [19:45:34]Sock 7.Check first char [19:45:34]Sock 7.First char is OK [19:45:34]request: POST /json_proto HTTP/1.0 [19:45:34]Method: POST [19:45:34]URL: /json_proto [19:45:34]Method is POST - this is cgi request [19:45:34]url: /json_proto [19:45:34]query_string will be loaded in cgi processing [19:45:34]execute_cgi json_proto POST (null) [19:45:34]execute_cgi path=json_proto method=POST [19:45:34]POST find Content-Length [19:45:34]Host: 172.17.56.4:8080 [19:45:34]Content-Length: 677 [19:45:34]Content-Type: application/json [19:45:34] [19:45:34]POST finish read [19:45:34]Found Content-Length = 677 [19:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:34]execute_script... [19:45:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:34]POST & json_proto [19:45:34]process_json_proto [19:45:34]json parsed OK: [19:45:34]protocol is kg_v1.0 [19:45:34]action value=close_receipt [19:45:34]process_action close_receipt [19:45:34]cmd_close_receipt [19:45:34]MH_GetDate [19:45:34]Write to MH i2c: F0 00 00 70 04 63 [19:45:34]Write i2c OK [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: F0 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: F0 09 00 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: F0 09 00 70 04 00 DE 87 91 66 C9 DC B2 64 83 [19:45:34]GetLastDocTimeStamp 1720813167 [19:45:34]current date 1720813534 [19:45:34]FM_GetShiftState [19:45:34]SAM_PROTO_GetShiftState [19:45:34]wFMCommunicate request_size=4 [19:45:34]MH_SAM_APDU [19:45:34]CAPDU: 80 13 01 00 [19:45:34]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [19:45:34]Write i2c OK [19:45:34]MH_I2C_Read... [19:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:34]Read from MH i2c: E2 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: E2 0E 00 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3C [19:45:34]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:45:34]wFMCommunicate OK [19:45:34]SAM_PROTO_GetShiftState done [19:45:34]FM_GetShiftState done [19:45:34]opened in 1720744654 [19:45:34]opened+sec_in_day 1720831054 [19:45:34]quantity*price = 20003 [19:45:34]sum+1 = 20004 [19:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 278 12.07.2024 19:45 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164357 ФПД: 277444262676371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T194535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164357&fm=277444262676371&tin=02508201610067®Number=0000000000090829&sum=20000 [19:45:35]StoreToDocumentArchive [19:45:35]shift 445 fd 164357 [19:45:35]save to /storage/0445/doc_00164357 [19:45:35]save last doc name /storage/0445/doc_00164357 to /storage/kkm_last_doc_name [19:45:35]save OK [19:45:35]Clear old archive folders... [19:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:35]tlvbuf is 015A6ED0 [19:45:35]SAM_PROTO_ClearQueue [19:45:35]wFMCommunicate request_size=4 [19:45:35]MH_SAM_APDU [19:45:35]CAPDU: 80 09 00 00 [19:45:35]Write to MH i2c: E2 08 00 7E 04 80 09 00 00 00 00 00 00 F4 [19:45:35]Write i2c OK [19:45:35]MH_I2C_Read... [19:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:35]Read from MH i2c: E2 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [19:45:35]RAPDU: 90 00 [19:45:35]wFMCommunicate OK [19:45:35]SAM_PROTO_ClearQueue done [19:45:35]KKMCreateOFDPacket [19:45:35]OFDProtocolAddRootSTLVToBuf [19:45:35]FM_MakeSignedData [19:45:35]FM_MakeSignedData [19:45:35]SAM_PROTO_SignData [19:45:35]wFMCommunicate request_size=4 [19:45:35]MH_SAM_APDU [19:45:35]CAPDU: 80 0D 01 02 [19:45:35]Write to MH i2c: E2 08 00 7F 04 80 0D 01 02 00 00 00 00 FC [19:45:35]Write i2c OK [19:45:35]MH_I2C_Read... [19:45:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:35]Read from MH i2c: E2 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [19:45:35]RAPDU: 90 00 [19:45:35]wFMCommunicate OK [19:45:35]wFMCommunicate request_size=255 [19:45:35]MH_SAM_APDU [19:45:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 16 01 00 00 F4 03 04 00 DF 87 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 82 02 00 35 04 06 00 FC [19:45:35]Write to MH i2c: E2 02 01 80 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 16 01 00 00 F4 03 04 00 DF 87 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 82 02 00 35 04 06 00 FC 00 00 CD [19:45:35]Write i2c OK [19:45:35]MH_I2C_Read... [19:45:35]OFD Sender: No OFD packet to send [19:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:35]Read from MH i2c: E2 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [19:45:35]RAPDU: 90 00 [19:45:35]wFMCommunicate OK [19:45:35]wFMCommunicate request_size=10 [19:45:35]MH_SAM_APDU [19:45:35]CAPDU: 80 0D 02 02 05 55 86 B8 C7 93 [19:45:35]Write to MH i2c: E2 0D 00 81 04 80 0D 02 02 05 00 55 86 B8 C7 93 00 00 F6 [19:45:35]Write i2c OK [19:45:35]MH_I2C_Read... [19:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:35]Read from MH i2c: E2 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [19:45:35]RAPDU: 90 00 [19:45:35]wFMCommunicate OK [19:45:35]wFMCommunicate request_size=4 [19:45:35]MH_SAM_APDU [19:45:35]CAPDU: 80 0D 03 02 [19:45:35]Write to MH i2c: E2 08 00 82 04 80 0D 03 02 00 00 00 00 01 [19:45:35]Write i2c OK [19:45:35]MH_I2C_Read... [19:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:35]Read from MH i2c: E2 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 0B 00 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 0B 00 82 04 00 E9 39 D5 15 A3 B4 B6 0C 90 00 27 [19:45:35]RAPDU: E9 39 D5 15 A3 B4 B6 0C 90 00 [19:45:35]wFMCommunicate OK [19:45:35]SAM_PROTO_SignData done [19:45:35]FM_MakeSignedData done [19:45:35]CreateOFDProtocolMessage [19:45:35]wFMCommunicate request_size=4 [19:45:35]MH_SAM_APDU [19:45:35]CAPDU: 80 11 00 00 [19:45:35]Write to MH i2c: E2 08 00 83 04 80 11 00 00 00 00 00 00 01 [19:45:35]Write i2c OK [19:45:35]MH_I2C_Read... [19:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:35]Read from MH i2c: E2 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 17 00 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 17 00 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 57 [19:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:45:35]wFMCommunicate OK [19:45:35]CreateOFDProtocolMessage done [19:45:35]OFDSenderStorePacket 164357 [19:45:35]StoreOFDPacket docnum=164357 [19:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D9 51 07 01 17 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 16 01 00 00 F4 03 04 00 DF 87 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 82 02 00 35 04 06 00 FC 55 86 B8 C7 93 E9 39 D5 15 A3 B4 B6 0C [19:45:35]CheckFolder [19:45:35]dirname=/storage/ofd_packets [19:45:35]CheckFolder done [19:45:35]ProducePacketName [19:45:35]name=ofd_packets/00164357 [19:45:35]NVStorageSaveData ofd_packets/00164357 [19:45:35]File name is /storage/ofd_packets/00164357 [19:45:35]Write 301 bytes [19:45:35]NVStorageSaveData done [19:45:35]OFDSenderStorePacket done [19:45:35]KKMCreateOFDPacket done [19:45:35]NVStorageSaveData kkm_last_timestamp [19:45:35]File name is /storage/kkm_last_timestamp [19:45:35]Write 4 bytes [19:45:35]NVStorageSaveData done [19:45:35]ExternCall_PrintAddStr [19:45:35]wPrintStart [19:45:35]Write to MH i2c: 01 00 00 84 04 88 [19:45:35]Write i2c OK [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: 01 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: 01 07 00 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: 01 07 00 84 04 00 00 00 00 00 FF 0F 9D [19:45:35]RasterBufferAndPrint [19:45:35]line Счет N : (1)458441 [19:45:35]line ИНН: 02508201610067 [19:45:35]line Контрольно-Кассовый Чек [19:45:35]line ПРОДАЖА [19:45:35]line ТРК (МРК, ГНК) : 12 [19:45:35]line Товар: 2710124130 [19:45:35]line Аи-92-К-5 [19:45:35]line 3.040 * 65.80 [19:45:35]line = 200.03 [19:45:35]line НДС 12% НСП 1% [19:45:35]line > о реализуемом товаре [19:45:35]line ОКРУГЛЕНИЕ: -0.03 [19:45:35]line ИТОГО: 200.00 [19:45:35]line Внесено: 200.00 [19:45:35]line СДАЧА: 0.00 [19:45:35]line НСП 1% : 1.77 [19:45:35]line НДС 12% : 21.24 [19:45:35]line Наличными: 200.00 [19:45:35]line Безнал.: 0.00 [19:45:35]line Место: АЗС № 72 "Партнер Нефть" [19:45:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:45:35]line СНО: Общий режим [19:45:35]line Чек 278 12.07.2024 19:45 [19:45:35]line Смена: 445 ФФД: 1.0 [19:45:35]line ЗНМ: 0300000160 [19:45:35]line РНМ: 0000000000090829 [19:45:35]line Версия ККМ: 001 [19:45:35]line ФМ: 0000000000874718 [19:45:35]line ФД: 164357 [19:45:35]line ФПД: 277444262676371 [19:45:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T194535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164357&fm=277444262676371&tin=02508201610067®Number=0000000000090829&sum=20000 [19:45:36]OFD Sender: Processing packet 164357 [packets to send 104, broken 103] [19:45:36]ProducePacketName [19:45:36]name=ofd_packets/00164357 [19:45:36]OFD Sender: To server: pG, [19:45:36]CommunicateWithHost lk.salyk.kg:30040 [19:45:36]ConnectInit lk.salyk.kg [19:45:36]written 0, free lines is 4095 [19:45:36]Connected sock=10 [19:45:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D9 51 07 01 17 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 16 01 00 00 F4 03 04 00 DF 87 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 82 02 00 35 04 06 00 FC 55 86 B8 C7 93 E9 39 D5 15 A3 B4 B6 0C [19:45:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2C EC 47 00 9B 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 34 37 31 38 10 04 04 00 05 82 02 00 F4 03 04 00 72 2E 91 66 B6 04 01 00 00 66 78 A0 EC 82 EF 64 FE [19:45:36]CommunicateWithHost err = 0 [19:45:36]CheckOFDResponse [19:45:36]1017 (14) - 77093643461234 [19:45:36]1041 (16) - 0000000000874718 [19:45:36]1040 (4) - 164357 [19:45:36]1012 (4) - 12.07.2024 13:24 [19:45:36]1206 (1) - 0 [19:45:36]OFD Sender: Remove packet 164357 [19:45:36]ProducePacketName [19:45:36]name=ofd_packets/00164357 [19:45:36]NVStorageDeleteData [19:45:36]Write to MH i2c: 01 00 00 AE 04 B2 [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: 01 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: 01 07 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: 01 07 00 AE 04 00 00 00 00 00 F1 0C B6 [19:45:36]RasterBufferAndPrint [19:45:36]line [19:45:36]line [19:45:36]line [19:45:36]line [19:45:36]line [19:45:36]written 0, free lines is 3319 [19:45:36]MH_Cut [19:45:36]Write to MH i2c: D1 01 00 B5 04 01 8B [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: D1 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: D1 01 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: D1 01 00 B5 04 00 8A [19:45:36]Write to MH i2c: 01 00 00 B6 04 BA [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:37]OFD Sender: No OFD packet to send [19:45:37]*** Cut start [19:45:37]*** Partial cut [19:45:37]*** CUTSNS_PIN = 1 [19:45:37]*** CUTSNS_PIN = 0 [19:45:37]*** Brake cut motor [19:45:37]Read from MH i2c: 01 [19:45:37]MH_I2C_Read... [19:45:37]*** Stop cut motor [19:45:37]*** Cut end [19:45:37]Read from MH i2c: 01 07 00 [19:45:37]MH_I2C_Read... [19:45:37]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 FF 0F CF [19:45:37]process_action close_receipt done [19:45:37]requested_data is exist [19:45:37]produce_requested_data [19:45:37]requested_item fm.sn is exist - process it [19:45:37]wFMCommunicate request_size=4 [19:45:37]MH_SAM_APDU [19:45:37]CAPDU: 80 11 00 00 [19:45:37]Write to MH i2c: E2 08 00 B7 04 80 11 00 00 00 00 00 00 35 [19:45:37]Write i2c OK [19:45:37]MH_I2C_Read... [19:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:38]Read from MH i2c: E2 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 17 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 17 00 B7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [19:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:45:38]wFMCommunicate OK [19:45:38]requested_item fd.num is exist - process it [19:45:38]SAM_PROTO_GetFieldsCounters [19:45:38]wFMCommunicate request_size=4 [19:45:38]MH_SAM_APDU [19:45:38]CAPDU: 80 13 00 00 [19:45:38]Write to MH i2c: E2 08 00 B8 04 80 13 00 00 00 00 00 00 38 [19:45:38]Write i2c OK [19:45:38]MH_I2C_Read... [19:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:38]Read from MH i2c: E2 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 62 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 62 00 B8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [19:45:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:38]wFMCommunicate OK [19:45:38]SAM_PROTO_GetFieldsCounters done [19:45:38]requested_item shift.num is exist - process it [19:45:38]requested_item shift.opened is exist - process it [19:45:38]req_shift_opened [19:45:38]FM_GetShiftState [19:45:38]SAM_PROTO_GetShiftState [19:45:38]wFMCommunicate request_size=4 [19:45:38]MH_SAM_APDU [19:45:38]CAPDU: 80 13 01 00 [19:45:38]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [19:45:38]Write i2c OK [19:45:38]MH_I2C_Read... [19:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:38]Read from MH i2c: E2 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 0E 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 84 [19:45:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:45:38]wFMCommunicate OK [19:45:38]SAM_PROTO_GetShiftState done [19:45:38]FM_GetShiftState done [19:45:38]req_shift_opened done [19:45:38]requested_item shift.open_date is exist - process it [19:45:38]req_shift_open_date [19:45:38]req_shift_open_date done [19:45:38]produce_requested_data done [19:45:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164357,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:45:38]process_action_free close_receipt [19:45:38]json_value_free [19:45:38]json_value_free done [19:45:38]process_json_proto returns [19:45:38]Send response to host [19:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164357,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:45:38]free response buf [19:45:38]execute_script done [19:45:38]execute_script returns [19:45:38]free content buf [19:45:38]Sock 7.Close socket [19:45:38]Sock 7.Thread stoped [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:05]accept exits with 9 [19:46:05]New connection [19:46:05]New thread 3067534692 created [19:46:05]Thread 3067391332 joined [19:46:05]Waiting for new connection... [19:46:05] Sock 9.Parse request [19:46:05]Sock 9.Check first char [19:46:05]Sock 9.First char is OK [19:46:05]request: POST /json_proto HTTP/1.0 [19:46:05]Method: POST [19:46:05]URL: /json_proto [19:46:05]Method is POST - this is cgi request [19:46:05]url: /json_proto [19:46:05]query_string will be loaded in cgi processing [19:46:05]execute_cgi json_proto POST (null) [19:46:05]execute_cgi path=json_proto method=POST [19:46:05]POST find Content-Length [19:46:05]Host: 172.17.56.4:8080 [19:46:05]Content-Length: 677 [19:46:05]Content-Type: application/json [19:46:05] [19:46:05]POST finish read [19:46:05]Found Content-Length = 677 [19:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:05]execute_script... [19:46: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)458442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:05]POST & json_proto [19:46:05]process_json_proto [19:46:05]json parsed OK: [19:46:05]protocol is kg_v1.0 [19:46:05]action value=close_receipt [19:46:05]process_action close_receipt [19:46:05]cmd_close_receipt [19:46:05]MH_GetDate [19:46:05]Write to MH i2c: F0 00 00 BA 04 AD [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: F0 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: F0 09 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: F0 09 00 BA 04 00 FE 87 91 66 C9 DC B2 64 ED [19:46:05]GetLastDocTimeStamp 1720813535 [19:46:05]current date 1720813566 [19:46:05]FM_GetShiftState [19:46:05]SAM_PROTO_GetShiftState [19:46:05]wFMCommunicate request_size=4 [19:46:05]MH_SAM_APDU [19:46:05]CAPDU: 80 13 01 00 [19:46:05]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:05]Read from MH i2c: E2 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 0E 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 86 [19:46:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:46:05]wFMCommunicate OK [19:46:05]SAM_PROTO_GetShiftState done [19:46:05]FM_GetShiftState done [19:46:05]opened in 1720744654 [19:46:05]opened+sec_in_day 1720831054 [19:46:05]quantity*price = 40006 [19:46:05]sum+1 = 40007 [19:46: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 279 12.07.2024 19:46 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164358 ФПД: 27155768725167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T194606&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164358&fm=27155768725167&tin=02508201610067®Number=0000000000090829&sum=40000 [19:46:06]StoreToDocumentArchive [19:46:06]shift 445 fd 164358 [19:46:06]save to /storage/0445/doc_00164358 [19:46:06]save last doc name /storage/0445/doc_00164358 to /storage/kkm_last_doc_name [19:46:06]save OK [19:46:06]Clear old archive folders... [19:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:06]tlvbuf is 015A6AB0 [19:46:06]SAM_PROTO_ClearQueue [19:46:06]wFMCommunicate request_size=4 [19:46:06]MH_SAM_APDU [19:46:06]CAPDU: 80 09 00 00 [19:46:06]Write to MH i2c: E2 08 00 C8 04 80 09 00 00 00 00 00 00 3E [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:06]Read from MH i2c: E2 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 03 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [19:46:06]RAPDU: 90 00 [19:46:06]wFMCommunicate OK [19:46:06]SAM_PROTO_ClearQueue done [19:46:06]KKMCreateOFDPacket [19:46:06]OFDProtocolAddRootSTLVToBuf [19:46:06]FM_MakeSignedData [19:46:06]FM_MakeSignedData [19:46:06]SAM_PROTO_SignData [19:46:06]wFMCommunicate request_size=4 [19:46:06]MH_SAM_APDU [19:46:06]CAPDU: 80 0D 01 02 [19:46:06]Write to MH i2c: E2 08 00 C9 04 80 0D 01 02 00 00 00 00 46 [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:06]Read from MH i2c: E2 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 03 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [19:46:06]RAPDU: 90 00 [19:46:06]wFMCommunicate OK [19:46:06]wFMCommunicate request_size=255 [19:46:06]MH_SAM_APDU [19:46: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 17 01 00 00 F4 03 04 00 FE 87 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 82 02 00 35 04 06 00 18 [19:46:06]Write to MH i2c: E2 02 01 CA 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 17 01 00 00 F4 03 04 00 FE 87 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 82 02 00 35 04 06 00 18 00 00 93 [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:07]Read from MH i2c: E2 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 03 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [19:46:07]RAPDU: 90 00 [19:46:07]wFMCommunicate OK [19:46:07]wFMCommunicate request_size=10 [19:46:07]MH_SAM_APDU [19:46:07]CAPDU: 80 0D 02 02 05 B2 B1 F2 CE AF [19:46:07]Write to MH i2c: E2 0D 00 CB 04 80 0D 02 02 05 00 B2 B1 F2 CE AF 00 00 25 [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:07]OFD Sender: No OFD packet to send [19:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:07]Read from MH i2c: E2 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 03 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [19:46:07]RAPDU: 90 00 [19:46:07]wFMCommunicate OK [19:46:07]wFMCommunicate request_size=4 [19:46:07]MH_SAM_APDU [19:46:07]CAPDU: 80 0D 03 02 [19:46:07]Write to MH i2c: E2 08 00 CC 04 80 0D 03 02 00 00 00 00 4B [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:07]Read from MH i2c: E2 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 0B 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 0B 00 CC 04 00 17 43 73 51 43 38 CC 2B 90 00 DC [19:46:07]RAPDU: 17 43 73 51 43 38 CC 2B 90 00 [19:46:07]wFMCommunicate OK [19:46:07]SAM_PROTO_SignData done [19:46:07]FM_MakeSignedData done [19:46:07]CreateOFDProtocolMessage [19:46:07]wFMCommunicate request_size=4 [19:46:07]MH_SAM_APDU [19:46:07]CAPDU: 80 11 00 00 [19:46:07]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:07]Read from MH i2c: E2 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 17 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [19:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:46:07]wFMCommunicate OK [19:46:07]CreateOFDProtocolMessage done [19:46:07]OFDSenderStorePacket 164358 [19:46:07]StoreOFDPacket docnum=164358 [19:46:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 25 07 01 64 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 17 01 00 00 F4 03 04 00 FE 87 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 82 02 00 35 04 06 00 18 B2 B1 F2 CE AF 17 43 73 51 43 38 CC 2B [19:46:07]CheckFolder [19:46:07]dirname=/storage/ofd_packets [19:46:07]CheckFolder done [19:46:07]ProducePacketName [19:46:07]name=ofd_packets/00164358 [19:46:07]NVStorageSaveData ofd_packets/00164358 [19:46:07]File name is /storage/ofd_packets/00164358 [19:46:07]Write 301 bytes [19:46:07]NVStorageSaveData done [19:46:07]OFDSenderStorePacket done [19:46:07]KKMCreateOFDPacket done [19:46:07]NVStorageSaveData kkm_last_timestamp [19:46:07]File name is /storage/kkm_last_timestamp [19:46:07]Write 4 bytes [19:46:07]NVStorageSaveData done [19:46:07]ExternCall_PrintAddStr [19:46:07]wPrintStart [19:46:07]Write to MH i2c: 01 00 00 CE 04 D2 [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: 01 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: 01 07 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [19:46:07]RasterBufferAndPrint [19:46:07]line Счет N : (1)458442 [19:46:07]line ИНН: 02508201610067 [19:46:07]line Контрольно-Кассовый Чек [19:46:07]line ПРОДАЖА [19:46:07]line ТРК (МРК, ГНК) : 12 [19:46:07]line Товар: 2710124130 [19:46:07]line Аи-92-К-5 [19:46:07]line 6.080 * 65.80 [19:46:07]line = 400.06 [19:46:07]line НДС 12% НСП 1% [19:46:07]line > о реализуемом товаре [19:46:07]line ОКРУГЛЕНИЕ: -0.06 [19:46:07]line ИТОГО: 400.00 [19:46:07]line Внесено: 400.00 [19:46:07]line СДАЧА: 0.00 [19:46:07]line НСП 1% : 3.54 [19:46:07]line НДС 12% : 42.48 [19:46:07]line Наличными: 400.00 [19:46:07]line Безнал.: 0.00 [19:46:07]line Место: АЗС № 72 "Партнер Нефть" [19:46:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:46:07]line СНО: Общий режим [19:46:07]line Чек 279 12.07.2024 19:46 [19:46:07]line Смена: 445 ФФД: 1.0 [19:46:07]line ЗНМ: 0300000160 [19:46:07]line РНМ: 0000000000090829 [19:46:07]line Версия ККМ: 001 [19:46:07]line ФМ: 0000000000874718 [19:46:07]line ФД: 164358 [19:46:07]line ФПД: 27155768725167 [19:46:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T194606&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164358&fm=27155768725167&tin=02508201610067®Number=0000000000090829&sum=40000 [19:46:07]OFD Sender: Processing packet 164358 [packets to send 104, broken 103] [19:46:07]ProducePacketName [19:46:07]name=ofd_packets/00164358 [19:46:07]OFD Sender: To server: pG, [19:46:07]CommunicateWithHost lk.salyk.kg:30040 [19:46:07]ConnectInit lk.salyk.kg [19:46:07]written 0, free lines is 4095 [19:46:07]Connected sock=10 [19:46:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 25 07 01 64 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 17 01 00 00 F4 03 04 00 FE 87 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 82 02 00 35 04 06 00 18 B2 B1 F2 CE AF 17 43 73 51 43 38 CC 2B [19:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 81 82 47 00 CB 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 34 37 31 38 10 04 04 00 06 82 02 00 F4 03 04 00 91 2E 91 66 B6 04 01 00 00 D8 36 4F 73 3C A9 E3 1D [19:46:07]CommunicateWithHost err = 0 [19:46:07]CheckOFDResponse [19:46:07]1017 (14) - 77093643461234 [19:46:07]1041 (16) - 0000000000874718 [19:46:07]1040 (4) - 164358 [19:46:07]1012 (4) - 12.07.2024 13:24 [19:46:07]1206 (1) - 0 [19:46:07]OFD Sender: Remove packet 164358 [19:46:07]ProducePacketName [19:46:07]name=ofd_packets/00164358 [19:46:07]NVStorageDeleteData [19:46:08]Write to MH i2c: 01 00 00 F8 04 FC [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 07 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 07 00 F8 04 00 00 00 00 00 F7 0C 06 [19:46:08]RasterBufferAndPrint [19:46:08]line [19:46:08]line [19:46:08]line [19:46:08]line [19:46:08]line [19:46:08]written 0, free lines is 3326 [19:46:08]MH_Cut [19:46:08]Write to MH i2c: D1 01 00 FF 04 01 D5 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: D1 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: D1 01 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: D1 01 00 FF 04 00 D4 [19:46:08]Write to MH i2c: 01 00 00 00 05 05 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]OFD Sender: No OFD packet to send [19:46:08]*** Cut start [19:46:08]*** Partial cut [19:46:08]*** CUTSNS_PIN = 1 [19:46:08]*** CUTSNS_PIN = 0 [19:46:08]*** Brake cut motor [19:46:09]Read from MH i2c: 01 [19:46:09]MH_I2C_Read... [19:46:09]*** Stop cut motor [19:46:09]*** Cut end [19:46:09]Read from MH i2c: 01 07 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 FF 0F 1A [19:46:09]process_action close_receipt done [19:46:09]requested_data is exist [19:46:09]produce_requested_data [19:46:09]requested_item fm.sn is exist - process it [19:46:09]wFMCommunicate request_size=4 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 11 00 00 [19:46:09]Write to MH i2c: E2 08 00 01 05 80 11 00 00 00 00 00 00 80 [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:09]Read from MH i2c: E2 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 17 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 17 00 01 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [19:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:46:09]wFMCommunicate OK [19:46:09]requested_item fd.num is exist - process it [19:46:09]SAM_PROTO_GetFieldsCounters [19:46:09]wFMCommunicate request_size=4 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 13 00 00 [19:46:09]Write to MH i2c: E2 08 00 02 05 80 13 00 00 00 00 00 00 83 [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:09]Read from MH i2c: E2 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 62 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 62 00 02 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [19:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:09]wFMCommunicate OK [19:46:09]SAM_PROTO_GetFieldsCounters done [19:46:09]requested_item shift.num is exist - process it [19:46:09]requested_item shift.opened is exist - process it [19:46:09]req_shift_opened [19:46:09]FM_GetShiftState [19:46:09]SAM_PROTO_GetShiftState [19:46:09]wFMCommunicate request_size=4 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 13 01 00 [19:46:09]Write to MH i2c: E2 08 00 03 05 80 13 01 00 00 00 00 00 85 [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:09]Read from MH i2c: E2 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 0E 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 0E 00 03 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CF [19:46:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:46:09]wFMCommunicate OK [19:46:09]SAM_PROTO_GetShiftState done [19:46:09]FM_GetShiftState done [19:46:09]req_shift_opened done [19:46:09]requested_item shift.open_date is exist - process it [19:46:09]req_shift_open_date [19:46:09]req_shift_open_date done [19:46:09]produce_requested_data done [19:46:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164358,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:46:09]process_action_free close_receipt [19:46:09]json_value_free [19:46:09]json_value_free done [19:46:09]process_json_proto returns [19:46:09]Send response to host [19:46:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164358,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:46:09]free response buf [19:46:09]execute_script done [19:46:09]execute_script returns [19:46:09]free content buf [19:46:09]Sock 9.Close socket [19:46:09]Sock 9.Thread stoped [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:25]accept exits with 7 [19:47:25]New connection [19:47:25]New thread 3067391332 created [19:47:25]Thread 3067534692 joined [19:47:25]Waiting for new connection... [19:47:25] Sock 7.Parse request [19:47:25]Sock 7.Check first char [19:47:25]Sock 7.First char is OK [19:47:25]request: POST /json_proto HTTP/1.0 [19:47:25]Method: POST [19:47:25]URL: /json_proto [19:47:25]Method is POST - this is cgi request [19:47:25]url: /json_proto [19:47:25]query_string will be loaded in cgi processing [19:47:25]execute_cgi json_proto POST (null) [19:47:25]execute_cgi path=json_proto method=POST [19:47:25]POST find Content-Length [19:47:25]Host: 172.17.56.4:8080 [19:47:25]Content-Length: 682 [19:47:25]Content-Type: application/json [19:47:25] [19:47:25]POST finish read [19:47:25]Found Content-Length = 682 [19:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 25.460, "sum" : 1675.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1675.00, "total" : 1675.00, "payments": [ { "type": 0, "sum" : 1675.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:25]execute_script... [19:47:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 25.460, "sum" : 1675.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1675.00, "total" : 1675.00, "payments": [ { "type": 0, "sum" : 1675.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:25]POST & json_proto [19:47:25]process_json_proto [19:47:25]json parsed OK: [19:47:25]protocol is kg_v1.0 [19:47:25]action value=close_receipt [19:47:25]process_action close_receipt [19:47:25]cmd_close_receipt [19:47:25]MH_GetDate [19:47:25]Write to MH i2c: F0 00 00 04 05 F8 [19:47:25]Write i2c OK [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: F0 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: F0 09 00 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: F0 09 00 04 05 00 4D 88 91 66 C9 DC B2 64 88 [19:47:25]GetLastDocTimeStamp 1720813566 [19:47:25]current date 1720813645 [19:47:25]FM_GetShiftState [19:47:25]SAM_PROTO_GetShiftState [19:47:25]wFMCommunicate request_size=4 [19:47:25]MH_SAM_APDU [19:47:25]CAPDU: 80 13 01 00 [19:47:25]Write to MH i2c: E2 08 00 05 05 80 13 01 00 00 00 00 00 87 [19:47:25]Write i2c OK [19:47:25]MH_I2C_Read... [19:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:25]Read from MH i2c: E2 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: E2 0E 00 [19:47:25]MH_I2C_Read... [19:47:25]Read from MH i2c: E2 0E 00 05 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D1 [19:47:25]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:47:25]wFMCommunicate OK [19:47:25]SAM_PROTO_GetShiftState done [19:47:25]FM_GetShiftState done [19:47:25]opened in 1720744654 [19:47:25]opened+sec_in_day 1720831054 [19:47:25]quantity*price = 167526 [19:47:25]sum+1 = 167528 [19:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1675.00 Внесено: 1675.00 СДАЧА: 0.00 НСП 1% : 14.82 НДС 12% : 177.90 Наличными: 1675.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 280 12.07.2024 19:47 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164359 ФПД: 12018424960796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T194725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164359&fm=12018424960796&tin=02508201610067®Number=0000000000090829&sum=167500 [19:47:26]StoreToDocumentArchive [19:47:26]shift 445 fd 164359 [19:47:26]save to /storage/0445/doc_00164359 [19:47:26]save last doc name /storage/0445/doc_00164359 to /storage/kkm_last_doc_name [19:47:26]save OK [19:47:26]Clear old archive folders... [19:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:26]tlvbuf is 01591A10 [19:47:26]SAM_PROTO_ClearQueue [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 09 00 00 [19:47:26]Write to MH i2c: E2 08 00 12 05 80 09 00 00 00 00 00 00 89 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]SAM_PROTO_ClearQueue done [19:47:26]KKMCreateOFDPacket [19:47:26]OFDProtocolAddRootSTLVToBuf [19:47:26]FM_MakeSignedData [19:47:26]FM_MakeSignedData [19:47:26]SAM_PROTO_SignData [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 0D 01 02 [19:47:26]Write to MH i2c: E2 08 00 13 05 80 0D 01 02 00 00 00 00 91 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]wFMCommunicate request_size=255 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 63 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 67 8E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 8E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 45 00 00 00 00 07 04 06 00 4C 8E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4D 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 82 02 00 35 04 06 00 0A [19:47:26]Write to MH i2c: E2 02 01 14 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 63 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 67 8E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 8E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 45 00 00 00 00 07 04 06 00 4C 8E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4D 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 82 02 00 35 04 06 00 0A 00 00 BE [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]wFMCommunicate request_size=10 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 0D 02 02 05 EE 41 F3 57 1C [19:47:26]Write to MH i2c: E2 0D 00 15 05 80 0D 02 02 05 00 EE 41 F3 57 1C 00 00 33 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [19:47:26]RAPDU: 90 00 [19:47:26]wFMCommunicate OK [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 0D 03 02 [19:47:26]Write to MH i2c: E2 08 00 16 05 80 0D 03 02 00 00 00 00 96 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 0B 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 0B 00 16 05 00 41 3B 5C 35 F0 75 F8 4B 90 00 4C [19:47:26]RAPDU: 41 3B 5C 35 F0 75 F8 4B 90 00 [19:47:26]wFMCommunicate OK [19:47:26]SAM_PROTO_SignData done [19:47:26]FM_MakeSignedData done [19:47:26]CreateOFDProtocolMessage [19:47:26]wFMCommunicate request_size=4 [19:47:26]MH_SAM_APDU [19:47:26]CAPDU: 80 11 00 00 [19:47:26]Write to MH i2c: E2 08 00 17 05 80 11 00 00 00 00 00 00 96 [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:26]Read from MH i2c: E2 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 17 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: E2 17 00 17 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [19:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:47:26]wFMCommunicate OK [19:47:26]CreateOFDProtocolMessage done [19:47:26]OFDSenderStorePacket 164359 [19:47:26]StoreOFDPacket docnum=164359 [19:47:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC FE 07 01 0D 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 74 63 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 67 8E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 8E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 45 00 00 00 00 07 04 06 00 4C 8E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4D 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 82 02 00 35 04 06 00 0A EE 41 F3 57 1C 41 3B 5C 35 F0 75 F8 4B [19:47:26]CheckFolder [19:47:26]dirname=/storage/ofd_packets [19:47:26]CheckFolder done [19:47:26]ProducePacketName [19:47:26]name=ofd_packets/00164359 [19:47:26]NVStorageSaveData ofd_packets/00164359 [19:47:26]File name is /storage/ofd_packets/00164359 [19:47:26]Write 301 bytes [19:47:26]NVStorageSaveData done [19:47:26]OFDSenderStorePacket done [19:47:26]KKMCreateOFDPacket done [19:47:26]NVStorageSaveData kkm_last_timestamp [19:47:26]File name is /storage/kkm_last_timestamp [19:47:26]Write 4 bytes [19:47:26]NVStorageSaveData done [19:47:26]ExternCall_PrintAddStr [19:47:26]wPrintStart [19:47:26]Write to MH i2c: 01 00 00 18 05 1D [19:47:26]Write i2c OK [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: 01 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: 01 07 00 [19:47:26]MH_I2C_Read... [19:47:26]Read from MH i2c: 01 07 00 18 05 00 00 00 00 00 FF 0F 32 [19:47:26]RasterBufferAndPrint [19:47:26]line Счет N : (1)458443 [19:47:26]line ИНН: 02508201610067 [19:47:26]line Контрольно-Кассовый Чек [19:47:26]line ПРОДАЖА [19:47:26]line ТРК (МРК, ГНК) : 22 [19:47:26]line Товар: 2710124130 [19:47:26]line Аи-92-К-5 [19:47:26]line 25.460 * 65.80 [19:47:26]line = 1675.27 [19:47:26]line НДС 12% НСП 1% [19:47:26]line > о реализуемом товаре [19:47:26]line ОКРУГЛЕНИЕ: -0.27 [19:47:26]line ИТОГО: 1675.00 [19:47:26]line Внесено: 1675.00 [19:47:26]line СДАЧА: 0.00 [19:47:26]line НСП 1% : 14.82 [19:47:26]line НДС 12% : 177.90 [19:47:26]line Наличными: 1675.00 [19:47:26]line Безнал.: 0.00 [19:47:26]line Место: АЗС № 72 "Партнер Нефть" [19:47:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:47:26]line СНО: Общий режим [19:47:26]line Чек 280 12.07.2024 19:47 [19:47:26]line Смена: 445 ФФД: 1.0 [19:47:26]line ЗНМ: 0300000160 [19:47:26]line РНМ: 0000000000090829 [19:47:26]line Версия ККМ: 001 [19:47:26]line ФМ: 0000000000874718 [19:47:26]line ФД: 164359 [19:47:26]line ФПД: 12018424960796 [19:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T194725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164359&fm=12018424960796&tin=02508201610067®Number=0000000000090829&sum=167500 [19:47:27]OFD Sender: Processing packet 164359 [packets to send 104, broken 103] [19:47:27]ProducePacketName [19:47:27]name=ofd_packets/00164359 [19:47:27]OFD Sender: To server: pG, [19:47:27]CommunicateWithHost lk.salyk.kg:30040 [19:47:27]ConnectInit lk.salyk.kg [19:47:27]written 0, free lines is 4095 [19:47:27]Connected sock=10 [19:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC FE 07 01 0D 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 74 63 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 67 8E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 8E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 45 00 00 00 00 07 04 06 00 4C 8E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4D 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 82 02 00 35 04 06 00 0A EE 41 F3 57 1C 41 3B 5C 35 F0 75 F8 4B [19:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 50 82 47 00 07 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 34 37 31 38 10 04 04 00 07 82 02 00 F4 03 04 00 E1 2E 91 66 B6 04 01 00 00 E5 5E ED 66 3B 1F F9 21 [19:47:27]CommunicateWithHost err = 0 [19:47:27]CheckOFDResponse [19:47:27]1017 (14) - 77093643461234 [19:47:27]1041 (16) - 0000000000874718 [19:47:27]1040 (4) - 164359 [19:47:27]1012 (4) - 12.07.2024 13:25 [19:47:27]1206 (1) - 0 [19:47:27]OFD Sender: Remove packet 164359 [19:47:27]ProducePacketName [19:47:27]name=ofd_packets/00164359 [19:47:27]NVStorageDeleteData [19:47:27]Write to MH i2c: 01 00 00 42 05 47 [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: 01 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: 01 07 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 0C 0D 67 [19:47:27]RasterBufferAndPrint [19:47:27]line [19:47:27]line [19:47:27]line [19:47:27]line [19:47:27]line [19:47:27]written 0, free lines is 3346 [19:47:27]MH_Cut [19:47:27]Write to MH i2c: D1 01 00 49 05 01 20 [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: D1 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: D1 01 00 [19:47:27]MH_I2C_Read... [19:47:27]Read from MH i2c: D1 01 00 49 05 00 1F [19:47:27]Write to MH i2c: 01 00 00 4A 05 4F [19:47:27]Write i2c OK [19:47:27]MH_I2C_Read... [19:47:28]OFD Sender: No OFD packet to send [19:47:28]*** Cut start [19:47:28]*** Partial cut [19:47:28]*** CUTSNS_PIN = 1 [19:47:28]*** CUTSNS_PIN = 0 [19:47:28]*** Brake cut motor [19:47:28]Read from MH i2c: 01 [19:47:28]MH_I2C_Read... [19:47:28]*** Stop cut motor [19:47:28]*** Cut end [19:47:28]Read from MH i2c: 01 07 00 [19:47:28]MH_I2C_Read... [19:47:28]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [19:47:28]process_action close_receipt done [19:47:28]requested_data is exist [19:47:28]produce_requested_data [19:47:28]requested_item fm.sn is exist - process it [19:47:28]wFMCommunicate request_size=4 [19:47:28]MH_SAM_APDU [19:47:28]CAPDU: 80 11 00 00 [19:47:28]Write to MH i2c: E2 08 00 4B 05 80 11 00 00 00 00 00 00 CA [19:47:28]Write i2c OK [19:47:28]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 17 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 17 00 4B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [19:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:47:29]wFMCommunicate OK [19:47:29]requested_item fd.num is exist - process it [19:47:29]SAM_PROTO_GetFieldsCounters [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 13 00 00 [19:47:29]Write to MH i2c: E2 08 00 4C 05 80 13 00 00 00 00 00 00 CD [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 62 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 62 00 4C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:29]wFMCommunicate OK [19:47:29]SAM_PROTO_GetFieldsCounters done [19:47:29]requested_item shift.num is exist - process it [19:47:29]requested_item shift.opened is exist - process it [19:47:29]req_shift_opened [19:47:29]FM_GetShiftState [19:47:29]SAM_PROTO_GetShiftState [19:47:29]wFMCommunicate request_size=4 [19:47:29]MH_SAM_APDU [19:47:29]CAPDU: 80 13 01 00 [19:47:29]Write to MH i2c: E2 08 00 4D 05 80 13 01 00 00 00 00 00 CF [19:47:29]Write i2c OK [19:47:29]MH_I2C_Read... [19:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:29]Read from MH i2c: E2 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0E 00 [19:47:29]MH_I2C_Read... [19:47:29]Read from MH i2c: E2 0E 00 4D 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 19 [19:47:29]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:47:29]wFMCommunicate OK [19:47:29]SAM_PROTO_GetShiftState done [19:47:29]FM_GetShiftState done [19:47:29]req_shift_opened done [19:47:29]requested_item shift.open_date is exist - process it [19:47:29]req_shift_open_date [19:47:29]req_shift_open_date done [19:47:29]produce_requested_data done [19:47:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164359,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:47:29]process_action_free close_receipt [19:47:29]json_value_free [19:47:29]json_value_free done [19:47:29]process_json_proto returns [19:47:29]Send response to host [19:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164359,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:47:29]free response buf [19:47:29]execute_script done [19:47:29]execute_script returns [19:47:29]free content buf [19:47:29]Sock 7.Close socket [19:47:29]Sock 7.Thread stoped [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:22]accept exits with 9 [19:49:22]New connection [19:49:22]New thread 3067534692 created [19:49:22]Thread 3067391332 joined [19:49:22]Waiting for new connection... [19:49:22] Sock 9.Parse request [19:49:22]Sock 9.Check first char [19:49:22]Sock 9.First char is OK [19:49:22]request: POST /json_proto HTTP/1.0 [19:49:22]Method: POST [19:49:22]URL: /json_proto [19:49:22]Method is POST - this is cgi request [19:49:22]url: /json_proto [19:49:22]query_string will be loaded in cgi processing [19:49:22]execute_cgi json_proto POST (null) [19:49:22]execute_cgi path=json_proto method=POST [19:49:22]POST find Content-Length [19:49:22]Host: 172.17.56.4:8080 [19:49:22]Content-Length: 677 [19:49:22]Content-Type: application/json [19:49:22] [19:49:22]POST finish read [19:49:22]Found Content-Length = 677 [19:49:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:22]execute_script... [19:49: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)458444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:22]POST & json_proto [19:49:22]process_json_proto [19:49:22]json parsed OK: [19:49:22]protocol is kg_v1.0 [19:49:22]action value=close_receipt [19:49:22]process_action close_receipt [19:49:22]cmd_close_receipt [19:49:22]MH_GetDate [19:49:22]Write to MH i2c: F0 00 00 4E 05 42 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: F0 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: F0 09 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: F0 09 00 4E 05 00 C3 88 91 66 C9 DC B2 64 48 [19:49:22]GetLastDocTimeStamp 1720813645 [19:49:22]current date 1720813763 [19:49:22]FM_GetShiftState [19:49:22]SAM_PROTO_GetShiftState [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 13 01 00 [19:49:22]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0E 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1B [19:49:22]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:49:22]wFMCommunicate OK [19:49:22]SAM_PROTO_GetShiftState done [19:49:22]FM_GetShiftState done [19:49:22]opened in 1720744654 [19:49:22]opened+sec_in_day 1720831054 [19:49:22]quantity*price = 40006 [19:49:22]sum+1 = 40007 [19:49:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 281 12.07.2024 19:49 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164360 ФПД: 88600310296773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T194923&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164360&fm=88600310296773&tin=02508201610067®Number=0000000000090829&sum=40000 [19:49:23]StoreToDocumentArchive [19:49:23]shift 445 fd 164360 [19:49:23]save to /storage/0445/doc_00164360 [19:49:23]save last doc name /storage/0445/doc_00164360 to /storage/kkm_last_doc_name [19:49:23]save OK [19:49:23]Clear old archive folders... [19:49:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:23]tlvbuf is 0155E620 [19:49:23]SAM_PROTO_ClearQueue [19:49:23]wFMCommunicate request_size=4 [19:49:23]MH_SAM_APDU [19:49:23]CAPDU: 80 09 00 00 [19:49:23]Write to MH i2c: E2 08 00 5C 05 80 09 00 00 00 00 00 00 D3 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:23]Read from MH i2c: E2 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 03 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [19:49:23]RAPDU: 90 00 [19:49:23]wFMCommunicate OK [19:49:23]SAM_PROTO_ClearQueue done [19:49:23]KKMCreateOFDPacket [19:49:23]OFDProtocolAddRootSTLVToBuf [19:49:23]FM_MakeSignedData [19:49:23]FM_MakeSignedData [19:49:23]SAM_PROTO_SignData [19:49:23]wFMCommunicate request_size=4 [19:49:23]MH_SAM_APDU [19:49:23]CAPDU: 80 0D 01 02 [19:49:23]Write to MH i2c: E2 08 00 5D 05 80 0D 01 02 00 00 00 00 DB [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:23]Read from MH i2c: E2 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 03 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [19:49:23]RAPDU: 90 00 [19:49:23]wFMCommunicate OK [19:49:23]wFMCommunicate request_size=255 [19:49:23]MH_SAM_APDU [19:49: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 19 01 00 00 F4 03 04 00 C3 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 82 02 00 35 04 06 00 50 [19:49:23]Write to MH i2c: E2 02 01 5E 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 19 01 00 00 F4 03 04 00 C3 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 82 02 00 35 04 06 00 50 00 00 2A [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 03 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [19:49:24]RAPDU: 90 00 [19:49:24]wFMCommunicate OK [19:49:24]wFMCommunicate request_size=10 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 0D 02 02 05 94 DE 05 B0 C5 [19:49:24]Write to MH i2c: E2 0D 00 5F 05 80 0D 02 02 05 00 94 DE 05 B0 C5 00 00 D4 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 03 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [19:49:24]RAPDU: 90 00 [19:49:24]wFMCommunicate OK [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 0D 03 02 [19:49:24]Write to MH i2c: E2 08 00 60 05 80 0D 03 02 00 00 00 00 E0 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 0B 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 0B 00 60 05 00 BF 73 FC DA 72 B6 12 33 90 00 56 [19:49:24]RAPDU: BF 73 FC DA 72 B6 12 33 90 00 [19:49:24]wFMCommunicate OK [19:49:24]SAM_PROTO_SignData done [19:49:24]FM_MakeSignedData done [19:49:24]CreateOFDProtocolMessage [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 11 00 00 [19:49:24]Write to MH i2c: E2 08 00 61 05 80 11 00 00 00 00 00 00 E0 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 17 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 17 00 61 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [19:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:49:24]wFMCommunicate OK [19:49:24]CreateOFDProtocolMessage done [19:49:24]OFDSenderStorePacket 164360 [19:49:24]StoreOFDPacket docnum=164360 [19:49:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB 8A 07 01 60 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 19 01 00 00 F4 03 04 00 C3 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 82 02 00 35 04 06 00 50 94 DE 05 B0 C5 BF 73 FC DA 72 B6 12 33 [19:49:24]CheckFolder [19:49:24]dirname=/storage/ofd_packets [19:49:24]CheckFolder done [19:49:24]ProducePacketName [19:49:24]name=ofd_packets/00164360 [19:49:24]NVStorageSaveData ofd_packets/00164360 [19:49:24]File name is /storage/ofd_packets/00164360 [19:49:24]Write 301 bytes [19:49:24]NVStorageSaveData done [19:49:24]OFDSenderStorePacket done [19:49:24]KKMCreateOFDPacket done [19:49:24]NVStorageSaveData kkm_last_timestamp [19:49:24]File name is /storage/kkm_last_timestamp [19:49:24]Write 4 bytes [19:49:24]NVStorageSaveData done [19:49:24]ExternCall_PrintAddStr [19:49:24]wPrintStart [19:49:24]Write to MH i2c: 01 00 00 62 05 67 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: 01 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: 01 07 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 FF 0F 7C [19:49:24]RasterBufferAndPrint [19:49:24]line Счет N : (1)458444 [19:49:24]line ИНН: 02508201610067 [19:49:24]line Контрольно-Кассовый Чек [19:49:24]line ПРОДАЖА [19:49:24]line ТРК (МРК, ГНК) : 22 [19:49:24]line Товар: 2710124130 [19:49:24]line Аи-92-К-5 [19:49:24]line 6.080 * 65.80 [19:49:24]line = 400.06 [19:49:24]line НДС 12% НСП 1% [19:49:24]line > о реализуемом товаре [19:49:24]line ОКРУГЛЕНИЕ: -0.06 [19:49:24]line ИТОГО: 400.00 [19:49:24]line Внесено: 400.00 [19:49:24]line СДАЧА: 0.00 [19:49:24]line НСП 1% : 3.54 [19:49:24]line НДС 12% : 42.48 [19:49:24]line Наличными: 400.00 [19:49:24]line Безнал.: 0.00 [19:49:24]line Место: АЗС № 72 "Партнер Нефть" [19:49:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:49:24]line СНО: Общий режим [19:49:24]line Чек 281 12.07.2024 19:49 [19:49:24]line Смена: 445 ФФД: 1.0 [19:49:24]line ЗНМ: 0300000160 [19:49:24]line РНМ: 0000000000090829 [19:49:24]line Версия ККМ: 001 [19:49:24]line ФМ: 0000000000874718 [19:49:24]line ФД: 164360 [19:49:24]line ФПД: 88600310296773 [19:49:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T194923&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164360&fm=88600310296773&tin=02508201610067®Number=0000000000090829&sum=40000 [19:49:24]written 0, free lines is 4095 [19:49:24]OFD Sender: Processing packet 164360 [packets to send 104, broken 103] [19:49:24]ProducePacketName [19:49:24]name=ofd_packets/00164360 [19:49:24]OFD Sender: To server: pG, [19:49:24]CommunicateWithHost lk.salyk.kg:30040 [19:49:24]ConnectInit lk.salyk.kg [19:49:24]Connected sock=10 [19:49:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB 8A 07 01 60 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 19 01 00 00 F4 03 04 00 C3 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 82 02 00 35 04 06 00 50 94 DE 05 B0 C5 BF 73 FC DA 72 B6 12 33 [19:49:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2C 7A 47 00 77 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 34 37 31 38 10 04 04 00 08 82 02 00 F4 03 04 00 56 2F 91 66 B6 04 01 00 00 06 D7 30 2A 29 10 9E 9A [19:49:24]CommunicateWithHost err = 0 [19:49:24]CheckOFDResponse [19:49:24]1017 (14) - 77093643461234 [19:49:24]1041 (16) - 0000000000874718 [19:49:24]1040 (4) - 164360 [19:49:24]1012 (4) - 12.07.2024 13:27 [19:49:24]1206 (1) - 0 [19:49:24]OFD Sender: Remove packet 164360 [19:49:24]ProducePacketName [19:49:24]name=ofd_packets/00164360 [19:49:24]NVStorageDeleteData [19:49:25]Write to MH i2c: 01 00 00 8C 05 91 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 07 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 FA 0C 9E [19:49:25]RasterBufferAndPrint [19:49:25]line [19:49:25]line [19:49:25]line [19:49:25]line [19:49:25]line [19:49:25]written 0, free lines is 3328 [19:49:25]MH_Cut [19:49:25]Write to MH i2c: D1 01 00 93 05 01 6A [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: D1 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: D1 01 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: D1 01 00 93 05 00 69 [19:49:25]Write to MH i2c: 01 00 00 94 05 99 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]OFD Sender: No OFD packet to send [19:49:25]*** Cut start [19:49:25]*** Partial cut [19:49:25]*** CUTSNS_PIN = 1 [19:49:25]*** CUTSNS_PIN = 0 [19:49:26]*** Brake cut motor [19:49:26]Read from MH i2c: 01 [19:49:26]MH_I2C_Read... [19:49:26]*** Stop cut motor [19:49:26]*** Cut end [19:49:26]Read from MH i2c: 01 07 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [19:49:26]process_action close_receipt done [19:49:26]requested_data is exist [19:49:26]produce_requested_data [19:49:26]requested_item fm.sn is exist - process it [19:49:26]wFMCommunicate request_size=4 [19:49:26]MH_SAM_APDU [19:49:26]CAPDU: 80 11 00 00 [19:49:26]Write to MH i2c: E2 08 00 95 05 80 11 00 00 00 00 00 00 14 [19:49:26]Write i2c OK [19:49:26]MH_I2C_Read... [19:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:26]Read from MH i2c: E2 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 17 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 17 00 95 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [19:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:49:26]wFMCommunicate OK [19:49:26]requested_item fd.num is exist - process it [19:49:26]SAM_PROTO_GetFieldsCounters [19:49:26]wFMCommunicate request_size=4 [19:49:26]MH_SAM_APDU [19:49:26]CAPDU: 80 13 00 00 [19:49:26]Write to MH i2c: E2 08 00 96 05 80 13 00 00 00 00 00 00 17 [19:49:26]Write i2c OK [19:49:26]MH_I2C_Read... [19:49:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:26]Read from MH i2c: E2 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 62 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 62 00 96 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19:49: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:26]wFMCommunicate OK [19:49:26]SAM_PROTO_GetFieldsCounters done [19:49:26]requested_item shift.num is exist - process it [19:49:26]requested_item shift.opened is exist - process it [19:49:26]req_shift_opened [19:49:26]FM_GetShiftState [19:49:26]SAM_PROTO_GetShiftState [19:49:26]wFMCommunicate request_size=4 [19:49:26]MH_SAM_APDU [19:49:26]CAPDU: 80 13 01 00 [19:49:26]Write to MH i2c: E2 08 00 97 05 80 13 01 00 00 00 00 00 19 [19:49:26]Write i2c OK [19:49:26]MH_I2C_Read... [19:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:26]Read from MH i2c: E2 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 0E 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 0E 00 97 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 63 [19:49:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:49:26]wFMCommunicate OK [19:49:26]SAM_PROTO_GetShiftState done [19:49:26]FM_GetShiftState done [19:49:26]req_shift_opened done [19:49:26]requested_item shift.open_date is exist - process it [19:49:26]req_shift_open_date [19:49:26]req_shift_open_date done [19:49:26]produce_requested_data done [19:49:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164360,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:49:26]process_action_free close_receipt [19:49:26]json_value_free [19:49:26]json_value_free done [19:49:26]process_json_proto returns [19:49:26]Send response to host [19:49:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164360,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:49:26]free response buf [19:49:26]execute_script done [19:49:26]execute_script returns [19:49:26]free content buf [19:49:26]Sock 9.Close socket [19:49:26]Sock 9.Thread stoped [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:19]accept exits with 7 [19:50:19]New connection [19:50:19]New thread 3067391332 created [19:50:19]Thread 3067534692 joined [19:50:19]Waiting for new connection... [19:50:19] Sock 7.Parse request [19:50:19]Sock 7.Check first char [19:50:19]Sock 7.First char is OK [19:50:19]request: POST /json_proto HTTP/1.0 [19:50:19]Method: POST [19:50:19]URL: /json_proto [19:50:19]Method is POST - this is cgi request [19:50:19]url: /json_proto [19:50:19]query_string will be loaded in cgi processing [19:50:19]execute_cgi json_proto POST (null) [19:50:19]execute_cgi path=json_proto method=POST [19:50:19]POST find Content-Length [19:50:19]Host: 172.17.56.4:8080 [19:50:19]Content-Length: 790 [19:50:19]Content-Type: application/json [19:50:19] [19:50:19]POST finish read [19:50:19]Found Content-Length = 790 [19:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:19]execute_script... [19:50: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)458445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:19]POST & json_proto [19:50:19]process_json_proto [19:50:19]json parsed OK: [19:50:19]protocol is kg_v1.0 [19:50:19]action value=close_receipt [19:50:19]process_action close_receipt [19:50:19]cmd_close_receipt [19:50:19]MH_GetDate [19:50:19]Write to MH i2c: F0 00 00 98 05 8C [19:50:19]Write i2c OK [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: F0 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: F0 09 00 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: F0 09 00 98 05 00 FC 88 91 66 C9 DC B2 64 CB [19:50:19]GetLastDocTimeStamp 1720813763 [19:50:19]current date 1720813820 [19:50:19]FM_GetShiftState [19:50:19]SAM_PROTO_GetShiftState [19:50:19]wFMCommunicate request_size=4 [19:50:19]MH_SAM_APDU [19:50:19]CAPDU: 80 13 01 00 [19:50:19]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [19:50:19]Write i2c OK [19:50:19]MH_I2C_Read... [19:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:19]Read from MH i2c: E2 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: E2 0E 00 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 65 [19:50:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:50:19]wFMCommunicate OK [19:50:19]SAM_PROTO_GetShiftState done [19:50:19]FM_GetShiftState done [19:50:19]opened in 1720744654 [19:50:19]opened+sec_in_day 1720831054 [19:50:19]quantity*price = 30001 [19:50:19]sum+1 = 30002 [19:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 282 12.07.2024 19:50 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164361 ФПД: 45425605935618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T195020&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164361&fm=45425605935618&tin=02508201610067®Number=0000000000090829&sum=30001 [19:50:20]StoreToDocumentArchive [19:50:20]shift 445 fd 164361 [19:50:20]save to /storage/0445/doc_00164361 [19:50:20]save last doc name /storage/0445/doc_00164361 to /storage/kkm_last_doc_name [19:50:20]save OK [19:50:20]Clear old archive folders... [19:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:20]tlvbuf is 015AB150 [19:50:20]SAM_PROTO_ClearQueue [19:50:20]wFMCommunicate request_size=4 [19:50:20]MH_SAM_APDU [19:50:20]CAPDU: 80 09 00 00 [19:50:20]Write to MH i2c: E2 08 00 A6 05 80 09 00 00 00 00 00 00 1D [19:50:20]Write i2c OK [19:50:20]MH_I2C_Read... [19:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:20]Read from MH i2c: E2 [19:50:20]MH_I2C_Read... [19:50:20]Read from MH i2c: E2 03 00 [19:50:20]MH_I2C_Read... [19:50:20]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [19:50:20]RAPDU: 90 00 [19:50:20]wFMCommunicate OK [19:50:20]SAM_PROTO_ClearQueue done [19:50:20]KKMCreateOFDPacket [19:50:20]OFDProtocolAddRootSTLVToBuf [19:50:20]FM_MakeSignedData [19:50:20]FM_MakeSignedData [19:50:20]SAM_PROTO_SignData [19:50:20]wFMCommunicate request_size=4 [19:50:20]MH_SAM_APDU [19:50:20]CAPDU: 80 0D 01 02 [19:50:20]Write to MH i2c: E2 08 00 A7 05 80 0D 01 02 00 00 00 00 25 [19:50:20]Write i2c OK [19:50:20]MH_I2C_Read... [19:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:20]Read from MH i2c: E2 [19:50:20]MH_I2C_Read... [19:50:20]Read from MH i2c: E2 03 00 [19:50:20]MH_I2C_Read... [19:50:20]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [19:50:20]RAPDU: 90 00 [19:50:20]wFMCommunicate OK [19:50:20]wFMCommunicate request_size=255 [19:50:20]MH_SAM_APDU [19:50: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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FC 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 82 02 00 35 04 06 00 29 [19:50:21]Write to MH i2c: E2 02 01 A8 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FC 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 82 02 00 35 04 06 00 29 00 00 55 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [19:50:21]RAPDU: 90 00 [19:50:21]wFMCommunicate OK [19:50:21]wFMCommunicate request_size=10 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 0D 02 02 05 50 79 1B 02 02 [19:50:21]Write to MH i2c: E2 0D 00 A9 05 80 0D 02 02 05 00 50 79 1B 02 02 00 00 1A [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [19:50:21]RAPDU: 90 00 [19:50:21]wFMCommunicate OK [19:50:21]wFMCommunicate request_size=4 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 0D 03 02 [19:50:21]Write to MH i2c: E2 08 00 AA 05 80 0D 03 02 00 00 00 00 2A [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 0B 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 0B 00 AA 05 00 05 F9 19 C3 D1 25 AC 6B 90 00 12 [19:50:21]RAPDU: 05 F9 19 C3 D1 25 AC 6B 90 00 [19:50:21]wFMCommunicate OK [19:50:21]SAM_PROTO_SignData done [19:50:21]FM_MakeSignedData done [19:50:21]CreateOFDProtocolMessage [19:50:21]wFMCommunicate request_size=4 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 11 00 00 [19:50:21]Write to MH i2c: E2 08 00 AB 05 80 11 00 00 00 00 00 00 2A [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 17 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 17 00 AB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [19:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:21]wFMCommunicate OK [19:50:21]CreateOFDProtocolMessage done [19:50:21]OFDSenderStorePacket 164361 [19:50:21]StoreOFDPacket docnum=164361 [19:50:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 83 07 01 8A 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FC 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 82 02 00 35 04 06 00 29 50 79 1B 02 02 05 F9 19 C3 D1 25 AC 6B [19:50:21]CheckFolder [19:50:21]dirname=/storage/ofd_packets [19:50:21]CheckFolder done [19:50:21]ProducePacketName [19:50:21]name=ofd_packets/00164361 [19:50:21]NVStorageSaveData ofd_packets/00164361 [19:50:21]File name is /storage/ofd_packets/00164361 [19:50:21]Write 301 bytes [19:50:21]NVStorageSaveData done [19:50:21]OFDSenderStorePacket done [19:50:21]KKMCreateOFDPacket done [19:50:21]NVStorageSaveData kkm_last_timestamp [19:50:21]File name is /storage/kkm_last_timestamp [19:50:21]Write 4 bytes [19:50:21]NVStorageSaveData done [19:50:21]ExternCall_PrintAddStr [19:50:21]wPrintStart [19:50:21]Write to MH i2c: 01 00 00 AC 05 B1 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 07 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [19:50:21]RasterBufferAndPrint [19:50:21]line Счет N : (1)458445 [19:50:21]line ИНН: 02508201610067 [19:50:21]line Контрольно-Кассовый Чек [19:50:21]line ПРОДАЖА [19:50:21]line ТРК (МРК, ГНК) : 12 [19:50:21]line Товар: 2710124130 [19:50:21]line Аи-92-К-5 [19:50:21]line 4.600 * 65.22 [19:50:21]line = 300.01 [19:50:21]line НДС 12% НСП 1% [19:50:21]line > о реализуемом товаре [19:50:21]line ИТОГО: 300.01 [19:50:21]line НСП 1% : 2.65 [19:50:21]line НДС 12% : 31.86 [19:50:21]line Наличными: 0.00 [19:50:21]line Безнал.: 300.01 [19:50:21]line Место: АЗС № 72 "Партнер Нефть" [19:50:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:50:21]line СНО: Общий режим [19:50:21]line Чек 282 12.07.2024 19:50 [19:50:21]line Смена: 445 ФФД: 1.0 [19:50:21]line ЗНМ: 0300000160 [19:50:21]line РНМ: 0000000000090829 [19:50:21]line Версия ККМ: 001 [19:50:21]line Платежная система: KICB Банк [19:50:21]line ФМ: 0000000000874718 [19:50:21]line ФД: 164361 [19:50:21]line ФПД: 45425605935618 [19:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T195020&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164361&fm=45425605935618&tin=02508201610067®Number=0000000000090829&sum=30001 [19:50:21]written 0, free lines is 4095 [19:50:21]OFD Sender: Processing packet 164361 [packets to send 104, broken 103] [19:50:21]ProducePacketName [19:50:21]name=ofd_packets/00164361 [19:50:21]OFD Sender: To server: pG, [19:50:21]CommunicateWithHost lk.salyk.kg:30040 [19:50:21]ConnectInit lk.salyk.kg [19:50:21]Connected sock=9 [19:50:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 83 07 01 8A 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FC 88 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 82 02 00 35 04 06 00 29 50 79 1B 02 02 05 F9 19 C3 D1 25 AC 6B [19:50:21]Write to MH i2c: 01 00 00 D5 05 DA [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 07 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 0A 0D F8 [19:50:21]RasterBufferAndPrint [19:50:21]line [19:50:21]line [19:50:21]line [19:50:21]line [19:50:21]line [19:50:21]written 0, free lines is 3344 [19:50:21]MH_Cut [19:50:21]Write to MH i2c: D1 01 00 DC 05 01 B3 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: D1 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: D1 01 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: D1 01 00 DC 05 00 B2 [19:50:21]Write to MH i2c: 01 00 00 DD 05 E2 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0B 26 47 00 3F A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 82 02 00 F4 03 04 00 8F 2F 91 66 B6 04 01 00 00 C9 FA 7C 65 9D 4C DF 69 [19:50:22]CommunicateWithHost err = 0 [19:50:22]CheckOFDResponse [19:50:22]1017 (14) - 77093643461234 [19:50:22]1041 (16) - 0000000000874718 [19:50:22]1040 (4) - 164361 [19:50:22]1012 (4) - 12.07.2024 13:28 [19:50:22]1206 (1) - 0 [19:50:22]OFD Sender: Remove packet 164361 [19:50:22]ProducePacketName [19:50:22]name=ofd_packets/00164361 [19:50:22]NVStorageDeleteData [19:50:22]*** Cut start [19:50:22]*** Partial cut [19:50:22]*** CUTSNS_PIN = 1 [19:50:22]*** CUTSNS_PIN = 0 [19:50:22]OFD Sender: No OFD packet to send [19:50:22]*** Brake cut motor [19:50:23]Read from MH i2c: 01 [19:50:23]MH_I2C_Read... [19:50:23]*** Stop cut motor [19:50:23]*** Cut end [19:50:23]Read from MH i2c: 01 07 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 FF 0F F7 [19:50:23]process_action close_receipt done [19:50:23]requested_data is exist [19:50:23]produce_requested_data [19:50:23]requested_item fm.sn is exist - process it [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 11 00 00 [19:50:23]Write to MH i2c: E2 08 00 DE 05 80 11 00 00 00 00 00 00 5D [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 17 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 17 00 DE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [19:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:23]wFMCommunicate OK [19:50:23]requested_item fd.num is exist - process it [19:50:23]SAM_PROTO_GetFieldsCounters [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 13 00 00 [19:50:23]Write to MH i2c: E2 08 00 DF 05 80 13 00 00 00 00 00 00 60 [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 62 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 62 00 DF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [19:50: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:23]wFMCommunicate OK [19:50:23]SAM_PROTO_GetFieldsCounters done [19:50:23]requested_item shift.num is exist - process it [19:50:23]requested_item shift.opened is exist - process it [19:50:23]req_shift_opened [19:50:23]FM_GetShiftState [19:50:23]SAM_PROTO_GetShiftState [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 13 01 00 [19:50:23]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 0E 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AC [19:50:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:50:23]wFMCommunicate OK [19:50:23]SAM_PROTO_GetShiftState done [19:50:23]FM_GetShiftState done [19:50:23]req_shift_opened done [19:50:23]requested_item shift.open_date is exist - process it [19:50:23]req_shift_open_date [19:50:23]req_shift_open_date done [19:50:23]produce_requested_data done [19:50:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164361,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:50:23]process_action_free close_receipt [19:50:23]json_value_free [19:50:23]json_value_free done [19:50:23]process_json_proto returns [19:50:23]Send response to host [19:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164361,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:50:23]free response buf [19:50:23]execute_script done [19:50:23]execute_script returns [19:50:23]free content buf [19:50:23]Sock 7.Close socket [19:50:23]Sock 7.Thread stoped [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:35]accept exits with 10 [19:50:35]New connection [19:50:35]New thread 3067534692 created [19:50:35]Thread 3067391332 joined [19:50:35]Waiting for new connection... [19:50:35] Sock 10.Parse request [19:50:35]Sock 10.Check first char [19:50:35]Sock 10.First char is OK [19:50:35]request: POST /json_proto HTTP/1.0 [19:50:35]Method: POST [19:50:35]URL: /json_proto [19:50:35]Method is POST - this is cgi request [19:50:35]url: /json_proto [19:50:35]query_string will be loaded in cgi processing [19:50:35]execute_cgi json_proto POST (null) [19:50:35]execute_cgi path=json_proto method=POST [19:50:35]POST find Content-Length [19:50:35]Host: 172.17.56.4:8080 [19:50:35]Content-Length: 677 [19:50:35]Content-Type: application/json [19:50:35] [19:50:35]POST finish read [19:50:35]Found Content-Length = 677 [19:50:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:35]execute_script... [19:50: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)458446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:35]POST & json_proto [19:50:35]process_json_proto [19:50:35]json parsed OK: [19:50:35]protocol is kg_v1.0 [19:50:35]action value=close_receipt [19:50:35]process_action close_receipt [19:50:35]cmd_close_receipt [19:50:35]MH_GetDate [19:50:35]Write to MH i2c: F0 00 00 E1 05 D5 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: F0 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: F0 09 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: F0 09 00 E1 05 00 0B 89 91 66 C9 DC B2 64 24 [19:50:35]GetLastDocTimeStamp 1720813820 [19:50:35]current date 1720813835 [19:50:35]FM_GetShiftState [19:50:35]SAM_PROTO_GetShiftState [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 13 01 00 [19:50:35]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0E 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AE [19:50:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:50:35]wFMCommunicate OK [19:50:35]SAM_PROTO_GetShiftState done [19:50:35]FM_GetShiftState done [19:50:35]opened in 1720744654 [19:50:35]opened+sec_in_day 1720831054 [19:50:35]quantity*price = 60009 [19:50:35]sum+1 = 60011 [19:50:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 283 12.07.2024 19:50 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164362 ФПД: 154087446131910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T195035&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164362&fm=154087446131910&tin=02508201610067®Number=0000000000090829&sum=60000 [19:50:36]StoreToDocumentArchive [19:50:36]shift 445 fd 164362 [19:50:36]save to /storage/0445/doc_00164362 [19:50:36]save last doc name /storage/0445/doc_00164362 to /storage/kkm_last_doc_name [19:50:36]save OK [19:50:36]Clear old archive folders... [19:50:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:36]tlvbuf is 01543E90 [19:50:36]SAM_PROTO_ClearQueue [19:50:36]wFMCommunicate request_size=4 [19:50:36]MH_SAM_APDU [19:50:36]CAPDU: 80 09 00 00 [19:50:36]Write to MH i2c: E2 08 00 EF 05 80 09 00 00 00 00 00 00 66 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 03 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [19:50:36]RAPDU: 90 00 [19:50:36]wFMCommunicate OK [19:50:36]SAM_PROTO_ClearQueue done [19:50:36]KKMCreateOFDPacket [19:50:36]OFDProtocolAddRootSTLVToBuf [19:50:36]FM_MakeSignedData [19:50:36]FM_MakeSignedData [19:50:36]SAM_PROTO_SignData [19:50:36]wFMCommunicate request_size=4 [19:50:36]MH_SAM_APDU [19:50:36]CAPDU: 80 0D 01 02 [19:50:36]Write to MH i2c: E2 08 00 F0 05 80 0D 01 02 00 00 00 00 6E [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 03 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [19:50:36]RAPDU: 90 00 [19:50:36]wFMCommunicate OK [19:50:36]wFMCommunicate request_size=255 [19:50:36]MH_SAM_APDU [19:50: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1B 01 00 00 F4 03 04 00 0B 89 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 82 02 00 35 04 06 00 8C [19:50:36]Write to MH i2c: E2 02 01 F1 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1B 01 00 00 F4 03 04 00 0B 89 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 82 02 00 35 04 06 00 8C 00 00 87 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 03 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [19:50:36]RAPDU: 90 00 [19:50:36]wFMCommunicate OK [19:50:36]wFMCommunicate request_size=10 [19:50:36]MH_SAM_APDU [19:50:36]CAPDU: 80 0D 02 02 05 24 47 7D B4 C6 [19:50:36]Write to MH i2c: E2 0D 00 F2 05 80 0D 02 02 05 00 24 47 7D B4 C6 00 00 DD [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 03 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [19:50:36]RAPDU: 90 00 [19:50:36]wFMCommunicate OK [19:50:36]wFMCommunicate request_size=4 [19:50:36]MH_SAM_APDU [19:50:36]CAPDU: 80 0D 03 02 [19:50:36]Write to MH i2c: E2 08 00 F3 05 80 0D 03 02 00 00 00 00 73 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 0B 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 0B 00 F3 05 00 C0 64 F6 C8 AA AC 36 6F 90 00 51 [19:50:36]RAPDU: C0 64 F6 C8 AA AC 36 6F 90 00 [19:50:36]wFMCommunicate OK [19:50:36]SAM_PROTO_SignData done [19:50:36]FM_MakeSignedData done [19:50:36]CreateOFDProtocolMessage [19:50:36]wFMCommunicate request_size=4 [19:50:36]MH_SAM_APDU [19:50:36]CAPDU: 80 11 00 00 [19:50:36]Write to MH i2c: E2 08 00 F4 05 80 11 00 00 00 00 00 00 73 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 17 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 17 00 F4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [19:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:36]wFMCommunicate OK [19:50:36]CreateOFDProtocolMessage done [19:50:36]OFDSenderStorePacket 164362 [19:50:36]StoreOFDPacket docnum=164362 [19:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3D 7A 07 01 4B 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1B 01 00 00 F4 03 04 00 0B 89 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 82 02 00 35 04 06 00 8C 24 47 7D B4 C6 C0 64 F6 C8 AA AC 36 6F [19:50:36]CheckFolder [19:50:36]dirname=/storage/ofd_packets [19:50:36]CheckFolder done [19:50:36]ProducePacketName [19:50:36]name=ofd_packets/00164362 [19:50:36]NVStorageSaveData ofd_packets/00164362 [19:50:36]File name is /storage/ofd_packets/00164362 [19:50:36]Write 301 bytes [19:50:36]NVStorageSaveData done [19:50:36]OFDSenderStorePacket done [19:50:36]KKMCreateOFDPacket done [19:50:36]NVStorageSaveData kkm_last_timestamp [19:50:36]File name is /storage/kkm_last_timestamp [19:50:36]Write 4 bytes [19:50:36]NVStorageSaveData done [19:50:36]ExternCall_PrintAddStr [19:50:36]wPrintStart [19:50:36]Write to MH i2c: 01 00 00 F5 05 FA [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: 01 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: 01 07 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: 01 07 00 F5 05 00 00 00 00 00 FF 0F 0F [19:50:36]RasterBufferAndPrint [19:50:36]line Счет N : (1)458446 [19:50:36]line ИНН: 02508201610067 [19:50:36]line Контрольно-Кассовый Чек [19:50:36]line ПРОДАЖА [19:50:36]line ТРК (МРК, ГНК) : 22 [19:50:36]line Товар: 2710124130 [19:50:36]line Аи-92-К-5 [19:50:36]line 9.120 * 65.80 [19:50:36]line = 600.10 [19:50:36]line НДС 12% НСП 1% [19:50:36]line > о реализуемом товаре [19:50:36]line ОКРУГЛЕНИЕ: -0.10 [19:50:36]line ИТОГО: 600.00 [19:50:36]line Внесено: 600.00 [19:50:36]line СДАЧА: 0.00 [19:50:36]line НСП 1% : 5.31 [19:50:36]line НДС 12% : 63.73 [19:50:36]line Наличными: 600.00 [19:50:36]line Безнал.: 0.00 [19:50:36]line Место: АЗС № 72 "Партнер Нефть" [19:50:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:50:36]line СНО: Общий режим [19:50:36]line Чек 283 12.07.2024 19:50 [19:50:36]line Смена: 445 ФФД: 1.0 [19:50:36]line ЗНМ: 0300000160 [19:50:36]line РНМ: 0000000000090829 [19:50:36]line Версия ККМ: 001 [19:50:36]line ФМ: 0000000000874718 [19:50:36]line ФД: 164362 [19:50:36]line ФПД: 154087446131910 [19:50:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T195035&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164362&fm=154087446131910&tin=02508201610067®Number=0000000000090829&sum=60000 [19:50:36]written 0, free lines is 4095 [19:50:37]OFD Sender: Processing packet 164362 [packets to send 104, broken 103] [19:50:37]ProducePacketName [19:50:37]name=ofd_packets/00164362 [19:50:37]OFD Sender: To server: pG, [19:50:37]CommunicateWithHost lk.salyk.kg:30040 [19:50:37]ConnectInit lk.salyk.kg [19:50:37]Connected sock=9 [19:50:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3D 7A 07 01 4B 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1B 01 00 00 F4 03 04 00 0B 89 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 82 02 00 35 04 06 00 8C 24 47 7D B4 C6 C0 64 F6 C8 AA AC 36 6F [19:50:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D8 6C 47 00 57 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 34 37 31 38 10 04 04 00 0A 82 02 00 F4 03 04 00 9E 2F 91 66 B6 04 01 00 00 93 AF E1 0F 2A 61 4C 71 [19:50:37]CommunicateWithHost err = 0 [19:50:37]CheckOFDResponse [19:50:37]1017 (14) - 77093643461234 [19:50:37]1041 (16) - 0000000000874718 [19:50:37]1040 (4) - 164362 [19:50:37]1012 (4) - 12.07.2024 13:29 [19:50:37]1206 (1) - 0 [19:50:37]OFD Sender: Remove packet 164362 [19:50:37]ProducePacketName [19:50:37]name=ofd_packets/00164362 [19:50:37]NVStorageDeleteData [19:50:37]Write to MH i2c: 01 00 00 1F 06 25 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: 01 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: 01 07 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 08 0D 41 [19:50:37]RasterBufferAndPrint [19:50:37]line [19:50:37]line [19:50:37]line [19:50:37]line [19:50:37]line [19:50:37]written 0, free lines is 3342 [19:50:37]MH_Cut [19:50:37]Write to MH i2c: D1 01 00 26 06 01 FE [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: D1 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: D1 01 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: D1 01 00 26 06 00 FD [19:50:37]Write to MH i2c: 01 00 00 27 06 2D [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]OFD Sender: No OFD packet to send [19:50:38]*** Cut start [19:50:38]*** Partial cut [19:50:38]*** CUTSNS_PIN = 1 [19:50:38]*** CUTSNS_PIN = 0 [19:50:38]*** Brake cut motor [19:50:38]Read from MH i2c: 01 [19:50:38]MH_I2C_Read... [19:50:38]*** Stop cut motor [19:50:38]*** Cut end [19:50:38]Read from MH i2c: 01 07 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 FF 0F 42 [19:50:38]process_action close_receipt done [19:50:38]requested_data is exist [19:50:38]produce_requested_data [19:50:38]requested_item fm.sn is exist - process it [19:50:38]wFMCommunicate request_size=4 [19:50:38]MH_SAM_APDU [19:50:38]CAPDU: 80 11 00 00 [19:50:38]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 17 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [19:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:38]wFMCommunicate OK [19:50:38]requested_item fd.num is exist - process it [19:50:38]SAM_PROTO_GetFieldsCounters [19:50:38]wFMCommunicate request_size=4 [19:50:38]MH_SAM_APDU [19:50:38]CAPDU: 80 13 00 00 [19:50:38]Write to MH i2c: E2 08 00 29 06 80 13 00 00 00 00 00 00 AB [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 62 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 62 00 29 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [19:50:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:38]wFMCommunicate OK [19:50:38]SAM_PROTO_GetFieldsCounters done [19:50:38]requested_item shift.num is exist - process it [19:50:38]requested_item shift.opened is exist - process it [19:50:38]req_shift_opened [19:50:38]FM_GetShiftState [19:50:38]SAM_PROTO_GetShiftState [19:50:38]wFMCommunicate request_size=4 [19:50:38]MH_SAM_APDU [19:50:38]CAPDU: 80 13 01 00 [19:50:38]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:38]Read from MH i2c: E2 0E 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F7 [19:50:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:50:38]wFMCommunicate OK [19:50:38]SAM_PROTO_GetShiftState done [19:50:38]FM_GetShiftState done [19:50:38]req_shift_opened done [19:50:38]requested_item shift.open_date is exist - process it [19:50:38]req_shift_open_date [19:50:38]req_shift_open_date done [19:50:38]produce_requested_data done [19:50:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164362,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:50:38]process_action_free close_receipt [19:50:38]json_value_free [19:50:38]json_value_free done [19:50:38]process_json_proto returns [19:50:38]Send response to host [19:50:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164362,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:50:38]free response buf [19:50:38]execute_script done [19:50:38]execute_script returns [19:50:38]free content buf [19:50:38]Sock 10.Close socket [19:50:38]Sock 10.Thread stoped [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:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:26]accept exits with 7 [19:54:26]New connection [19:54:26]New thread 3067391332 created [19:54:26]Thread 3067534692 joined [19:54:26]Waiting for new connection... [19:54:26] Sock 7.Parse request [19:54:26]Sock 7.Check first char [19:54:26]Sock 7.First char is OK [19:54:26]request: POST /json_proto HTTP/1.0 [19:54:26]Method: POST [19:54:26]URL: /json_proto [19:54:26]Method is POST - this is cgi request [19:54:26]url: /json_proto [19:54:26]query_string will be loaded in cgi processing [19:54:26]execute_cgi json_proto POST (null) [19:54:26]execute_cgi path=json_proto method=POST [19:54:26]POST find Content-Length [19:54:26]Host: 172.17.56.4:8080 [19:54:26]Content-Length: 674 [19:54:26]Content-Type: application/json [19:54:26] [19:54:26]POST finish read [19:54:26]Found Content-Length = 674 [19:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458447", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:26]execute_script... [19:54: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)458447", "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" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:26]POST & json_proto [19:54:26]process_json_proto [19:54:26]json parsed OK: [19:54:26]protocol is kg_v1.0 [19:54:26]action value=close_receipt [19:54:26]process_action close_receipt [19:54:26]cmd_close_receipt [19:54:26]MH_GetDate [19:54:26]Write to MH i2c: F0 00 00 2B 06 20 [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: F0 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: F0 09 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: F0 09 00 2B 06 00 F2 89 91 66 C9 DC B2 64 56 [19:54:26]GetLastDocTimeStamp 1720813835 [19:54:26]current date 1720814066 [19:54:26]FM_GetShiftState [19:54:26]SAM_PROTO_GetShiftState [19:54:26]wFMCommunicate request_size=4 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 13 01 00 [19:54:26]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 0E 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F9 [19:54:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:54:26]wFMCommunicate OK [19:54:26]SAM_PROTO_GetShiftState done [19:54:26]FM_GetShiftState done [19:54:26]opened in 1720744654 [19:54:26]opened+sec_in_day 1720831054 [19:54:26]quantity*price = 50042 [19:54:26]sum+1 = 50043 [19:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 284 12.07.2024 19:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164363 ФПД: 212976535305011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T195426&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164363&fm=212976535305011&tin=02508201610067®Number=0000000000090829&sum=50000 [19:54:27]StoreToDocumentArchive [19:54:27]shift 445 fd 164363 [19:54:27]save to /storage/0445/doc_00164363 [19:54:27]save last doc name /storage/0445/doc_00164363 to /storage/kkm_last_doc_name [19:54:27]save OK [19:54:27]Clear old archive folders... [19:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:27]tlvbuf is B6FE6B50 [19:54:27]SAM_PROTO_ClearQueue [19:54:27]wFMCommunicate request_size=4 [19:54:27]MH_SAM_APDU [19:54:27]CAPDU: 80 09 00 00 [19:54:27]Write to MH i2c: E2 08 00 39 06 80 09 00 00 00 00 00 00 B1 [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:27]Read from MH i2c: E2 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 03 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [19:54:27]RAPDU: 90 00 [19:54:27]wFMCommunicate OK [19:54:27]SAM_PROTO_ClearQueue done [19:54:27]KKMCreateOFDPacket [19:54:27]OFDProtocolAddRootSTLVToBuf [19:54:27]FM_MakeSignedData [19:54:27]FM_MakeSignedData [19:54:27]SAM_PROTO_SignData [19:54:27]wFMCommunicate request_size=4 [19:54:27]MH_SAM_APDU [19:54:27]CAPDU: 80 0D 01 02 [19:54:27]Write to MH i2c: E2 08 00 3A 06 80 0D 01 02 00 00 00 00 B9 [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:27]Read from MH i2c: E2 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 03 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [19:54:27]RAPDU: 90 00 [19:54:27]wFMCommunicate OK [19:54:27]wFMCommunicate request_size=255 [19:54:27]MH_SAM_APDU [19:54: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F2 89 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 82 02 00 35 04 06 00 C1 B3 76 BB [19:54:27]Write to MH i2c: E2 02 01 3B 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F2 89 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 82 02 00 35 04 06 00 C1 B3 76 BB 00 00 0F [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:27]Read from MH i2c: E2 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 03 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [19:54:27]RAPDU: 90 00 [19:54:27]wFMCommunicate OK [19:54:27]wFMCommunicate request_size=7 [19:54:27]MH_SAM_APDU [19:54:27]CAPDU: 80 0D 02 02 02 7B 33 [19:54:27]Write to MH i2c: E2 0A 00 3C 06 80 0D 02 02 02 00 7B 33 00 00 6E [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:27]Read from MH i2c: E2 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 03 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [19:54:27]RAPDU: 90 00 [19:54:27]wFMCommunicate OK [19:54:27]wFMCommunicate request_size=4 [19:54:27]MH_SAM_APDU [19:54:27]CAPDU: 80 0D 03 02 [19:54:27]Write to MH i2c: E2 08 00 3D 06 80 0D 03 02 00 00 00 00 BE [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:27]Read from MH i2c: E2 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 0B 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 0B 00 3D 06 00 9C 70 10 3B 0E E1 FA 78 90 00 77 [19:54:27]RAPDU: 9C 70 10 3B 0E E1 FA 78 90 00 [19:54:27]wFMCommunicate OK [19:54:27]SAM_PROTO_SignData done [19:54:27]FM_MakeSignedData done [19:54:27]CreateOFDProtocolMessage [19:54:27]wFMCommunicate request_size=4 [19:54:27]MH_SAM_APDU [19:54:27]CAPDU: 80 11 00 00 [19:54:27]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:27]Read from MH i2c: E2 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 17 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [19:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:54:27]wFMCommunicate OK [19:54:27]CreateOFDProtocolMessage done [19:54:27]OFDSenderStorePacket 164363 [19:54:27]StoreOFDPacket docnum=164363 [19:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 04 54 04 01 FD 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F2 89 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 82 02 00 35 04 06 00 C1 B3 76 BB 7B 33 9C 70 10 3B 0E E1 FA 78 [19:54:27]CheckFolder [19:54:27]dirname=/storage/ofd_packets [19:54:27]CheckFolder done [19:54:27]ProducePacketName [19:54:27]name=ofd_packets/00164363 [19:54:27]NVStorageSaveData ofd_packets/00164363 [19:54:27]File name is /storage/ofd_packets/00164363 [19:54:27]Write 298 bytes [19:54:27]NVStorageSaveData done [19:54:27]OFDSenderStorePacket done [19:54:27]KKMCreateOFDPacket done [19:54:27]NVStorageSaveData kkm_last_timestamp [19:54:27]File name is /storage/kkm_last_timestamp [19:54:27]Write 4 bytes [19:54:27]NVStorageSaveData done [19:54:27]ExternCall_PrintAddStr [19:54:27]wPrintStart [19:54:27]Write to MH i2c: 01 00 00 3F 06 45 [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: 01 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: 01 07 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: 01 07 00 3F 06 00 00 00 00 00 FF 0F 5A [19:54:27]RasterBufferAndPrint [19:54:27]line Счет N : (1)458447 [19:54:27]line ИНН: 02508201610067 [19:54:27]line Контрольно-Кассовый Чек [19:54:27]line ПРОДАЖА [19:54:27]line ТРК (МРК, ГНК) : 21 [19:54:27]line Товар: 2710194210 [19:54:27]line ДТ-К-5 [19:54:27]line 6.960 * 71.90 [19:54:27]line = 500.42 [19:54:27]line НДС 12% НСП 1% [19:54:27]line > о реализуемом товаре [19:54:27]line ОКРУГЛЕНИЕ: -0.42 [19:54:27]line ИТОГО: 500.00 [19:54:27]line Внесено: 500.00 [19:54:27]line СДАЧА: 0.00 [19:54:27]line НСП 1% : 4.43 [19:54:27]line НДС 12% : 53.14 [19:54:27]line Наличными: 500.00 [19:54:27]line Безнал.: 0.00 [19:54:27]line Место: АЗС № 72 "Партнер Нефть" [19:54:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:54:27]line СНО: Общий режим [19:54:27]line Чек 284 12.07.2024 19:54 [19:54:27]line Смена: 445 ФФД: 1.0 [19:54:27]line ЗНМ: 0300000160 [19:54:27]line РНМ: 0000000000090829 [19:54:27]line Версия ККМ: 001 [19:54:27]line ФМ: 0000000000874718 [19:54:27]line ФД: 164363 [19:54:27]line ФПД: 212976535305011 [19:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T195426&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164363&fm=212976535305011&tin=02508201610067®Number=0000000000090829&sum=50000 [19:54:28]OFD Sender: Processing packet 164363 [packets to send 104, broken 103] [19:54:28]ProducePacketName [19:54:28]name=ofd_packets/00164363 [19:54:28]OFD Sender: To server: pG, [19:54:28]CommunicateWithHost lk.salyk.kg:30040 [19:54:28]ConnectInit lk.salyk.kg [19:54:28]written 0, free lines is 4095 [19:54:28]Connected sock=10 [19:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 04 54 04 01 FD 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F2 89 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 82 02 00 35 04 06 00 C1 B3 76 BB 7B 33 9C 70 10 3B 0E E1 FA 78 [19:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 34 6D 47 00 47 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 34 37 31 38 10 04 04 00 0B 82 02 00 F4 03 04 00 85 30 91 66 B6 04 01 00 00 84 CF FA 75 67 A3 5E 32 [19:54:28]CommunicateWithHost err = 0 [19:54:28]CheckOFDResponse [19:54:28]1017 (14) - 77093643461234 [19:54:28]1041 (16) - 0000000000874718 [19:54:28]1040 (4) - 164363 [19:54:28]1012 (4) - 12.07.2024 13:32 [19:54:28]1206 (1) - 0 [19:54:28]OFD Sender: Remove packet 164363 [19:54:28]ProducePacketName [19:54:28]name=ofd_packets/00164363 [19:54:28]NVStorageDeleteData [19:54:28]Write to MH i2c: 01 00 00 69 06 6F [19:54:28]Write i2c OK [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: 01 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: 01 07 00 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: 01 07 00 69 06 00 00 00 00 00 F6 0C 78 [19:54:28]RasterBufferAndPrint [19:54:28]line [19:54:28]line [19:54:28]line [19:54:28]line [19:54:28]line [19:54:28]written 0, free lines is 3324 [19:54:28]MH_Cut [19:54:28]Write to MH i2c: D1 01 00 70 06 01 48 [19:54:28]Write i2c OK [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: D1 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: D1 01 00 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: D1 01 00 70 06 00 47 [19:54:28]Write to MH i2c: 01 00 00 71 06 77 [19:54:28]Write i2c OK [19:54:28]MH_I2C_Read... [19:54:28]OFD Sender: No OFD packet to send [19:54:29]*** Cut start [19:54:29]*** Partial cut [19:54:29]*** CUTSNS_PIN = 1 [19:54:29]*** CUTSNS_PIN = 0 [19:54:29]*** Brake cut motor [19:54:29]Read from MH i2c: 01 [19:54:29]MH_I2C_Read... [19:54:29]*** Stop cut motor [19:54:29]*** Cut end [19:54:29]Read from MH i2c: 01 07 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: 01 07 00 71 06 00 00 00 00 00 FF 0F 8C [19:54:29]process_action close_receipt done [19:54:29]requested_data is exist [19:54:29]produce_requested_data [19:54:29]requested_item fm.sn is exist - process it [19:54:29]wFMCommunicate request_size=4 [19:54:29]MH_SAM_APDU [19:54:29]CAPDU: 80 11 00 00 [19:54:29]Write to MH i2c: E2 08 00 72 06 80 11 00 00 00 00 00 00 F2 [19:54:29]Write i2c OK [19:54:29]MH_I2C_Read... [19:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:29]Read from MH i2c: E2 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 17 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 17 00 72 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 48 [19:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:54:29]wFMCommunicate OK [19:54:29]requested_item fd.num is exist - process it [19:54:29]SAM_PROTO_GetFieldsCounters [19:54:29]wFMCommunicate request_size=4 [19:54:29]MH_SAM_APDU [19:54:29]CAPDU: 80 13 00 00 [19:54:29]Write to MH i2c: E2 08 00 73 06 80 13 00 00 00 00 00 00 F5 [19:54:29]Write i2c OK [19:54:29]MH_I2C_Read... [19:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:29]Read from MH i2c: E2 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 62 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 62 00 73 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [19:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:29]wFMCommunicate OK [19:54:29]SAM_PROTO_GetFieldsCounters done [19:54:29]requested_item shift.num is exist - process it [19:54:29]requested_item shift.opened is exist - process it [19:54:29]req_shift_opened [19:54:29]FM_GetShiftState [19:54:29]SAM_PROTO_GetShiftState [19:54:29]wFMCommunicate request_size=4 [19:54:29]MH_SAM_APDU [19:54:29]CAPDU: 80 13 01 00 [19:54:29]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [19:54:29]Write i2c OK [19:54:29]MH_I2C_Read... [19:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:29]Read from MH i2c: E2 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 0E 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 0E 00 74 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 41 [19:54:29]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:54:29]wFMCommunicate OK [19:54:29]SAM_PROTO_GetShiftState done [19:54:29]FM_GetShiftState done [19:54:29]req_shift_opened done [19:54:29]requested_item shift.open_date is exist - process it [19:54:29]req_shift_open_date [19:54:29]req_shift_open_date done [19:54:29]produce_requested_data done [19:54:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164363,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:54:29]process_action_free close_receipt [19:54:29]json_value_free [19:54:29]json_value_free done [19:54:29]process_json_proto returns [19:54:29]Send response to host [19:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164363,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:54:29]free response buf [19:54:29]execute_script done [19:54:29]execute_script returns [19:54:29]free content buf [19:54:29]Sock 7.Close socket [19:54:29]Sock 7.Thread stoped [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:39]accept exits with 9 [19:55:39]New connection [19:55:39]New thread 3067534692 created [19:55:39]Thread 3067391332 joined [19:55:39]Waiting for new connection... [19:55:39] Sock 9.Parse request [19:55:39]Sock 9.Check first char [19:55:39]Sock 9.First char is OK [19:55:39]request: POST /json_proto HTTP/1.0 [19:55:39]Method: POST [19:55:39]URL: /json_proto [19:55:39]Method is POST - this is cgi request [19:55:39]url: /json_proto [19:55:39]query_string will be loaded in cgi processing [19:55:39]execute_cgi json_proto POST (null) [19:55:39]execute_cgi path=json_proto method=POST [19:55:39]POST find Content-Length [19:55:39]Host: 172.17.56.4:8080 [19:55:39]Content-Length: 674 [19:55:39]Content-Type: application/json [19:55:39] [19:55:39]POST finish read [19:55:39]Found Content-Length = 674 [19:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458448", "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" : 71.90, "quantity" : 5.010, "sum" : 360.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:39]execute_script... [19:55: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)458448", "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" : 71.90, "quantity" : 5.010, "sum" : 360.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:39]POST & json_proto [19:55:39]process_json_proto [19:55:39]json parsed OK: [19:55:39]protocol is kg_v1.0 [19:55:39]action value=close_receipt [19:55:39]process_action close_receipt [19:55:39]cmd_close_receipt [19:55:39]MH_GetDate [19:55:39]Write to MH i2c: F0 00 00 75 06 6A [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: F0 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: F0 09 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: F0 09 00 75 06 00 3B 8A 91 66 C9 DC B2 64 EA [19:55:39]GetLastDocTimeStamp 1720814066 [19:55:39]current date 1720814139 [19:55:39]FM_GetShiftState [19:55:39]SAM_PROTO_GetShiftState [19:55:39]wFMCommunicate request_size=4 [19:55:39]MH_SAM_APDU [19:55:39]CAPDU: 80 13 01 00 [19:55:39]Write to MH i2c: E2 08 00 76 06 80 13 01 00 00 00 00 00 F9 [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:39]Read from MH i2c: E2 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 0E 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 0E 00 76 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 43 [19:55:39]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:55:39]wFMCommunicate OK [19:55:39]SAM_PROTO_GetShiftState done [19:55:39]FM_GetShiftState done [19:55:39]opened in 1720744654 [19:55:39]opened+sec_in_day 1720831054 [19:55:39]quantity*price = 36021 [19:55:39]sum+1 = 36023 [19:55:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.25 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 285 12.07.2024 19:55 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164364 ФПД: 80775746723442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T195539&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164364&fm=80775746723442&tin=02508201610067®Number=0000000000090829&sum=36000 [19:55:40]StoreToDocumentArchive [19:55:40]shift 445 fd 164364 [19:55:40]save to /storage/0445/doc_00164364 [19:55:40]save last doc name /storage/0445/doc_00164364 to /storage/kkm_last_doc_name [19:55:40]save OK [19:55:40]Clear old archive folders... [19:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:55:40]tlvbuf is 015622E0 [19:55:40]SAM_PROTO_ClearQueue [19:55:40]wFMCommunicate request_size=4 [19:55:40]MH_SAM_APDU [19:55:40]CAPDU: 80 09 00 00 [19:55:40]Write to MH i2c: E2 08 00 83 06 80 09 00 00 00 00 00 00 FB [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [19:55:40]RAPDU: 90 00 [19:55:40]wFMCommunicate OK [19:55:40]SAM_PROTO_ClearQueue done [19:55:40]KKMCreateOFDPacket [19:55:40]OFDProtocolAddRootSTLVToBuf [19:55:40]FM_MakeSignedData [19:55:40]FM_MakeSignedData [19:55:40]SAM_PROTO_SignData [19:55:40]wFMCommunicate request_size=4 [19:55:40]MH_SAM_APDU [19:55:40]CAPDU: 80 0D 01 02 [19:55:40]Write to MH i2c: E2 08 00 84 06 80 0D 01 02 00 00 00 00 03 [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [19:55:40]RAPDU: 90 00 [19:55:40]wFMCommunicate OK [19:55:40]wFMCommunicate request_size=255 [19:55:40]MH_SAM_APDU [19:55:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B6 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 3B 8A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 82 02 00 35 04 06 00 49 77 11 B0 [19:55:40]Write to MH i2c: E2 02 01 85 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B6 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 3B 8A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 82 02 00 35 04 06 00 49 77 11 B0 00 00 BF [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [19:55:40]RAPDU: 90 00 [19:55:40]wFMCommunicate OK [19:55:40]wFMCommunicate request_size=7 [19:55:40]MH_SAM_APDU [19:55:40]CAPDU: 80 0D 02 02 02 9E 72 [19:55:40]Write to MH i2c: E2 0A 00 86 06 80 0D 02 02 02 00 9E 72 00 00 1A [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [19:55:40]RAPDU: 90 00 [19:55:40]wFMCommunicate OK [19:55:40]wFMCommunicate request_size=4 [19:55:40]MH_SAM_APDU [19:55:40]CAPDU: 80 0D 03 02 [19:55:40]Write to MH i2c: E2 08 00 87 06 80 0D 03 02 00 00 00 00 08 [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 0B 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 0B 00 87 06 00 E3 21 A4 F3 0F FE 46 87 90 00 7E [19:55:40]RAPDU: E3 21 A4 F3 0F FE 46 87 90 00 [19:55:40]wFMCommunicate OK [19:55:40]SAM_PROTO_SignData done [19:55:40]FM_MakeSignedData done [19:55:40]CreateOFDProtocolMessage [19:55:40]wFMCommunicate request_size=4 [19:55:40]MH_SAM_APDU [19:55:40]CAPDU: 80 11 00 00 [19:55:40]Write to MH i2c: E2 08 00 88 06 80 11 00 00 00 00 00 00 08 [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 17 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 17 00 88 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [19:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:55:40]wFMCommunicate OK [19:55:40]CreateOFDProtocolMessage done [19:55:40]OFDSenderStorePacket 164364 [19:55:40]StoreOFDPacket docnum=164364 [19:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 ED 3F 04 01 13 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B6 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 3B 8A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 82 02 00 35 04 06 00 49 77 11 B0 9E 72 E3 21 A4 F3 0F FE 46 87 [19:55:40]CheckFolder [19:55:40]dirname=/storage/ofd_packets [19:55:40]CheckFolder done [19:55:40]ProducePacketName [19:55:40]name=ofd_packets/00164364 [19:55:40]NVStorageSaveData ofd_packets/00164364 [19:55:40]File name is /storage/ofd_packets/00164364 [19:55:40]Write 298 bytes [19:55:40]NVStorageSaveData done [19:55:40]OFDSenderStorePacket done [19:55:40]KKMCreateOFDPacket done [19:55:40]NVStorageSaveData kkm_last_timestamp [19:55:40]File name is /storage/kkm_last_timestamp [19:55:40]Write 4 bytes [19:55:40]NVStorageSaveData done [19:55:40]ExternCall_PrintAddStr [19:55:40]wPrintStart [19:55:40]Write to MH i2c: 01 00 00 89 06 8F [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 07 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 07 00 89 06 00 00 00 00 00 FF 0F A4 [19:55:40]RasterBufferAndPrint [19:55:40]line Счет N : (1)458448 [19:55:40]line ИНН: 02508201610067 [19:55:40]line Контрольно-Кассовый Чек [19:55:40]line ПРОДАЖА [19:55:40]line ТРК (МРК, ГНК) : 21 [19:55:40]line Товар: 2710194210 [19:55:40]line ДТ-К-5 [19:55:40]line 5.010 * 71.90 [19:55:40]line = 360.22 [19:55:40]line НДС 12% НСП 1% [19:55:40]line > о реализуемом товаре [19:55:40]line ОКРУГЛЕНИЕ: -0.22 [19:55:40]line ИТОГО: 360.00 [19:55:40]line Внесено: 360.00 [19:55:40]line СДАЧА: 0.00 [19:55:40]line НСП 1% : 3.19 [19:55:40]line НДС 12% : 38.25 [19:55:40]line Наличными: 360.00 [19:55:40]line Безнал.: 0.00 [19:55:40]line Место: АЗС № 72 "Партнер Нефть" [19:55:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:55:40]line СНО: Общий режим [19:55:40]line Чек 285 12.07.2024 19:55 [19:55:40]line Смена: 445 ФФД: 1.0 [19:55:40]line ЗНМ: 0300000160 [19:55:40]line РНМ: 0000000000090829 [19:55:40]line Версия ККМ: 001 [19:55:40]line ФМ: 0000000000874718 [19:55:40]line ФД: 164364 [19:55:40]line ФПД: 80775746723442 [19:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T195539&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164364&fm=80775746723442&tin=02508201610067®Number=0000000000090829&sum=36000 [19:55:41]OFD Sender: Processing packet 164364 [packets to send 104, broken 103] [19:55:41]ProducePacketName [19:55:41]name=ofd_packets/00164364 [19:55:41]OFD Sender: To server: pG, [19:55:41]CommunicateWithHost lk.salyk.kg:30040 [19:55:41]ConnectInit lk.salyk.kg [19:55:41]written 0, free lines is 4095 [19:55:41]Connected sock=10 [19:55:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 ED 3F 04 01 13 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B6 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 3B 8A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 82 02 00 35 04 06 00 49 77 11 B0 9E 72 E3 21 A4 F3 0F FE 46 87 [19:55:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AE C8 47 00 51 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 34 37 31 38 10 04 04 00 0C 82 02 00 F4 03 04 00 CE 30 91 66 B6 04 01 00 00 CD DD 90 6F 04 94 39 10 [19:55:41]CommunicateWithHost err = 0 [19:55:41]CheckOFDResponse [19:55:41]1017 (14) - 77093643461234 [19:55:41]1041 (16) - 0000000000874718 [19:55:41]1040 (4) - 164364 [19:55:41]1012 (4) - 12.07.2024 13:34 [19:55:41]1206 (1) - 0 [19:55:41]OFD Sender: Remove packet 164364 [19:55:41]ProducePacketName [19:55:41]name=ofd_packets/00164364 [19:55:41]NVStorageDeleteData [19:55:41]Write to MH i2c: 01 00 00 B3 06 B9 [19:55:41]Write i2c OK [19:55:41]MH_I2C_Read... [19:55:41]Read from MH i2c: 01 [19:55:41]MH_I2C_Read... [19:55:41]Read from MH i2c: 01 07 00 [19:55:41]MH_I2C_Read... [19:55:41]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 01 0D CE [19:55:41]RasterBufferAndPrint [19:55:41]line [19:55:41]line [19:55:41]line [19:55:41]line [19:55:41]line [19:55:41]written 0, free lines is 3335 [19:55:41]MH_Cut [19:55:41]Write to MH i2c: D1 01 00 BA 06 01 92 [19:55:41]Write i2c OK [19:55:41]MH_I2C_Read... [19:55:41]Read from MH i2c: D1 [19:55:41]MH_I2C_Read... [19:55:41]Read from MH i2c: D1 01 00 [19:55:41]MH_I2C_Read... [19:55:41]Read from MH i2c: D1 01 00 BA 06 00 91 [19:55:41]Write to MH i2c: 01 00 00 BB 06 C1 [19:55:41]Write i2c OK [19:55:41]MH_I2C_Read... [19:55:41]OFD Sender: No OFD packet to send [19:55:42]*** Cut start [19:55:42]*** Partial cut [19:55:42]*** CUTSNS_PIN = 1 [19:55:42]*** CUTSNS_PIN = 0 [19:55:42]*** Brake cut motor [19:55:42]Read from MH i2c: 01 [19:55:42]MH_I2C_Read... [19:55:42]*** Stop cut motor [19:55:42]*** Cut end [19:55:42]Read from MH i2c: 01 07 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: 01 07 00 BB 06 00 00 00 00 00 FF 0F D6 [19:55:42]process_action close_receipt done [19:55:42]requested_data is exist [19:55:42]produce_requested_data [19:55:42]requested_item fm.sn is exist - process it [19:55:42]wFMCommunicate request_size=4 [19:55:42]MH_SAM_APDU [19:55:42]CAPDU: 80 11 00 00 [19:55:42]Write to MH i2c: E2 08 00 BC 06 80 11 00 00 00 00 00 00 3C [19:55:42]Write i2c OK [19:55:42]MH_I2C_Read... [19:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:42]Read from MH i2c: E2 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 17 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 17 00 BC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 92 [19:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:55:42]wFMCommunicate OK [19:55:42]requested_item fd.num is exist - process it [19:55:42]SAM_PROTO_GetFieldsCounters [19:55:42]wFMCommunicate request_size=4 [19:55:42]MH_SAM_APDU [19:55:42]CAPDU: 80 13 00 00 [19:55:42]Write to MH i2c: E2 08 00 BD 06 80 13 00 00 00 00 00 00 3F [19:55:42]Write i2c OK [19:55:42]MH_I2C_Read... [19:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:43]Read from MH i2c: E2 [19:55:43]MH_I2C_Read... [19:55:43]Read from MH i2c: E2 62 00 [19:55:43]MH_I2C_Read... [19:55:43]Read from MH i2c: E2 62 00 BD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:43]wFMCommunicate OK [19:55:43]SAM_PROTO_GetFieldsCounters done [19:55:43]requested_item shift.num is exist - process it [19:55:43]requested_item shift.opened is exist - process it [19:55:43]req_shift_opened [19:55:43]FM_GetShiftState [19:55:43]SAM_PROTO_GetShiftState [19:55:43]wFMCommunicate request_size=4 [19:55:43]MH_SAM_APDU [19:55:43]CAPDU: 80 13 01 00 [19:55:43]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [19:55:43]Write i2c OK [19:55:43]MH_I2C_Read... [19:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:43]Read from MH i2c: E2 [19:55:43]MH_I2C_Read... [19:55:43]Read from MH i2c: E2 0E 00 [19:55:43]MH_I2C_Read... [19:55:43]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8B [19:55:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [19:55:43]wFMCommunicate OK [19:55:43]SAM_PROTO_GetShiftState done [19:55:43]FM_GetShiftState done [19:55:43]req_shift_opened done [19:55:43]requested_item shift.open_date is exist - process it [19:55:43]req_shift_open_date [19:55:43]req_shift_open_date done [19:55:43]produce_requested_data done [19:55:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164364,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [19:55:43]process_action_free close_receipt [19:55:43]json_value_free [19:55:43]json_value_free done [19:55:43]process_json_proto returns [19:55:43]Send response to host [19:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164364,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [19:55:43]free response buf [19:55:43]execute_script done [19:55:43]execute_script returns [19:55:43]free content buf [19:55:43]Sock 9.Close socket [19:55:43]Sock 9.Thread stoped [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:27]accept exits with 7 [20:05:27]New connection [20:05:27]New thread 3067391332 created [20:05:27]Thread 3067534692 joined [20:05:27]Waiting for new connection... [20:05:27] Sock 7.Parse request [20:05:27]Sock 7.Check first char [20:05:27]Sock 7.First char is OK [20:05:27]request: POST /json_proto HTTP/1.0 [20:05:27]Method: POST [20:05:27]URL: /json_proto [20:05:27]Method is POST - this is cgi request [20:05:27]url: /json_proto [20:05:27]query_string will be loaded in cgi processing [20:05:27]execute_cgi json_proto POST (null) [20:05:27]execute_cgi path=json_proto method=POST [20:05:27]POST find Content-Length [20:05:27]Host: 172.17.56.4:8080 [20:05:27]Content-Length: 677 [20:05:27]Content-Type: application/json [20:05:27] [20:05:27]POST finish read [20:05:27]Found Content-Length = 677 [20:05:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:27]execute_script... [20:05: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)458449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:27]POST & json_proto [20:05:27]process_json_proto [20:05:27]json parsed OK: [20:05:27]protocol is kg_v1.0 [20:05:27]action value=close_receipt [20:05:27]process_action close_receipt [20:05:27]cmd_close_receipt [20:05:27]MH_GetDate [20:05:27]Write to MH i2c: F0 00 00 BF 06 B4 [20:05:27]Write i2c OK [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: F0 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: F0 09 00 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: F0 09 00 BF 06 00 88 8C 91 66 C9 DC B2 64 83 [20:05:27]GetLastDocTimeStamp 1720814139 [20:05:27]current date 1720814728 [20:05:27]FM_GetShiftState [20:05:27]SAM_PROTO_GetShiftState [20:05:27]wFMCommunicate request_size=4 [20:05:27]MH_SAM_APDU [20:05:27]CAPDU: 80 13 01 00 [20:05:27]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [20:05:27]Write i2c OK [20:05:27]MH_I2C_Read... [20:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:27]Read from MH i2c: E2 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 0E 00 [20:05:27]MH_I2C_Read... [20:05:27]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8D [20:05:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:05:27]wFMCommunicate OK [20:05:27]SAM_PROTO_GetShiftState done [20:05:27]FM_GetShiftState done [20:05:27]opened in 1720744654 [20:05:27]opened+sec_in_day 1720831054 [20:05:27]quantity*price = 40006 [20:05:27]sum+1 = 40007 [20:05: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 286 12.07.2024 20:05 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164365 ФПД: 196133904997288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T200528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164365&fm=196133904997288&tin=02508201610067®Number=0000000000090829&sum=40000 [20:05:29]StoreToDocumentArchive [20:05:29]shift 445 fd 164365 [20:05:29]save to /storage/0445/doc_00164365 [20:05:29]save last doc name /storage/0445/doc_00164365 to /storage/kkm_last_doc_name [20:05:29]save OK [20:05:29]Clear old archive folders... [20:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:29]tlvbuf is 0159BC10 [20:05:29]SAM_PROTO_ClearQueue [20:05:29]wFMCommunicate request_size=4 [20:05:29]MH_SAM_APDU [20:05:29]CAPDU: 80 09 00 00 [20:05:29]Write to MH i2c: E2 08 00 CD 06 80 09 00 00 00 00 00 00 45 [20:05:29]Write i2c OK [20:05:29]MH_I2C_Read... [20:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:29]Read from MH i2c: E2 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 03 00 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [20:05:29]RAPDU: 90 00 [20:05:29]wFMCommunicate OK [20:05:29]SAM_PROTO_ClearQueue done [20:05:29]KKMCreateOFDPacket [20:05:29]OFDProtocolAddRootSTLVToBuf [20:05:29]FM_MakeSignedData [20:05:29]FM_MakeSignedData [20:05:29]SAM_PROTO_SignData [20:05:29]wFMCommunicate request_size=4 [20:05:29]MH_SAM_APDU [20:05:29]CAPDU: 80 0D 01 02 [20:05:29]Write to MH i2c: E2 08 00 CE 06 80 0D 01 02 00 00 00 00 4D [20:05:29]Write i2c OK [20:05:29]MH_I2C_Read... [20:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:29]Read from MH i2c: E2 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 03 00 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [20:05:29]RAPDU: 90 00 [20:05:29]wFMCommunicate OK [20:05:29]wFMCommunicate request_size=255 [20:05:29]MH_SAM_APDU [20:05:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 B4 19 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 1E 01 00 00 F4 03 04 00 88 8C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 82 02 00 35 04 06 00 B2 [20:05:29]Write to MH i2c: E2 02 01 CF 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 1E 01 00 00 F4 03 04 00 88 8C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 82 02 00 35 04 06 00 B2 00 00 D1 [20:05:29]Write i2c OK [20:05:29]MH_I2C_Read... [20:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:29]Read from MH i2c: E2 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 03 00 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [20:05:29]RAPDU: 90 00 [20:05:29]wFMCommunicate OK [20:05:29]wFMCommunicate request_size=10 [20:05:29]MH_SAM_APDU [20:05:29]CAPDU: 80 0D 02 02 05 61 FB BC 5B A8 [20:05:29]Write to MH i2c: E2 0D 00 D0 06 80 0D 02 02 05 00 61 FB BC 5B A8 00 00 75 [20:05:29]Write i2c OK [20:05:29]MH_I2C_Read... [20:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:29]Read from MH i2c: E2 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 03 00 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [20:05:29]RAPDU: 90 00 [20:05:29]wFMCommunicate OK [20:05:29]wFMCommunicate request_size=4 [20:05:29]MH_SAM_APDU [20:05:29]CAPDU: 80 0D 03 02 [20:05:29]Write to MH i2c: E2 08 00 D1 06 80 0D 03 02 00 00 00 00 52 [20:05:29]Write i2c OK [20:05:29]MH_I2C_Read... [20:05:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:29]Read from MH i2c: E2 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 0B 00 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 0B 00 D1 06 00 26 B5 69 EF 63 4C A6 5A 90 00 35 [20:05:29]RAPDU: 26 B5 69 EF 63 4C A6 5A 90 00 [20:05:29]wFMCommunicate OK [20:05:29]SAM_PROTO_SignData done [20:05:29]FM_MakeSignedData done [20:05:29]CreateOFDProtocolMessage [20:05:29]wFMCommunicate request_size=4 [20:05:29]MH_SAM_APDU [20:05:29]CAPDU: 80 11 00 00 [20:05:29]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [20:05:29]Write i2c OK [20:05:29]MH_I2C_Read... [20:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:29]Read from MH i2c: E2 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 17 00 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [20:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:05:29]wFMCommunicate OK [20:05:29]CreateOFDProtocolMessage done [20:05:29]OFDSenderStorePacket 164365 [20:05:29]StoreOFDPacket docnum=164365 [20:05:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 01 1F 07 01 99 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 1E 01 00 00 F4 03 04 00 88 8C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 82 02 00 35 04 06 00 B2 61 FB BC 5B A8 26 B5 69 EF 63 4C A6 5A [20:05:29]CheckFolder [20:05:29]dirname=/storage/ofd_packets [20:05:29]CheckFolder done [20:05:29]ProducePacketName [20:05:29]name=ofd_packets/00164365 [20:05:29]NVStorageSaveData ofd_packets/00164365 [20:05:29]File name is /storage/ofd_packets/00164365 [20:05:29]Write 301 bytes [20:05:29]NVStorageSaveData done [20:05:29]OFDSenderStorePacket done [20:05:29]KKMCreateOFDPacket done [20:05:29]NVStorageSaveData kkm_last_timestamp [20:05:29]File name is /storage/kkm_last_timestamp [20:05:29]Write 4 bytes [20:05:29]NVStorageSaveData done [20:05:29]ExternCall_PrintAddStr [20:05:29]wPrintStart [20:05:29]Write to MH i2c: 01 00 00 D3 06 D9 [20:05:29]Write i2c OK [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: 01 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: 01 07 00 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: 01 07 00 D3 06 00 00 00 00 00 FF 0F EE [20:05:29]RasterBufferAndPrint [20:05:29]line Счет N : (1)458449 [20:05:29]line ИНН: 02508201610067 [20:05:29]line Контрольно-Кассовый Чек [20:05:29]line ПРОДАЖА [20:05:29]line ТРК (МРК, ГНК) : 12 [20:05:29]line Товар: 2710124130 [20:05:29]line Аи-92-К-5 [20:05:29]line 6.080 * 65.80 [20:05:29]line = 400.06 [20:05:29]line НДС 12% НСП 1% [20:05:29]line > о реализуемом товаре [20:05:29]line ОКРУГЛЕНИЕ: -0.06 [20:05:29]line ИТОГО: 400.00 [20:05:29]line Внесено: 400.00 [20:05:29]line СДАЧА: 0.00 [20:05:29]line НСП 1% : 3.54 [20:05:29]line НДС 12% : 42.48 [20:05:29]line Наличными: 400.00 [20:05:29]line Безнал.: 0.00 [20:05:29]line Место: АЗС № 72 "Партнер Нефть" [20:05:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:05:29]line СНО: Общий режим [20:05:29]line Чек 286 12.07.2024 20:05 [20:05:29]line Смена: 445 ФФД: 1.0 [20:05:29]line ЗНМ: 0300000160 [20:05:29]line РНМ: 0000000000090829 [20:05:29]line Версия ККМ: 001 [20:05:29]line ФМ: 0000000000874718 [20:05:29]line ФД: 164365 [20:05:29]line ФПД: 196133904997288 [20:05:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T200528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164365&fm=196133904997288&tin=02508201610067®Number=0000000000090829&sum=40000 [20:05:29]written 0, free lines is 4095 [20:05:29]OFD Sender: Processing packet 164365 [packets to send 104, broken 103] [20:05:29]ProducePacketName [20:05:29]name=ofd_packets/00164365 [20:05:29]OFD Sender: To server: pG, [20:05:29]CommunicateWithHost lk.salyk.kg:30040 [20:05:29]ConnectInit lk.salyk.kg [20:05:30]Connected sock=10 [20:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 01 1F 07 01 99 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 1E 01 00 00 F4 03 04 00 88 8C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 82 02 00 35 04 06 00 B2 61 FB BC 5B A8 26 B5 69 EF 63 4C A6 5A [20:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6E 45 47 00 27 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 82 02 00 F4 03 04 00 1B 33 91 66 B6 04 01 00 00 A4 A3 7F B8 E6 AC 96 0A [20:05:30]CommunicateWithHost err = 0 [20:05:30]CheckOFDResponse [20:05:30]1017 (14) - 77093643461234 [20:05:30]1041 (16) - 0000000000874718 [20:05:30]1040 (4) - 164365 [20:05:30]1012 (4) - 12.07.2024 13:43 [20:05:30]1206 (1) - 0 [20:05:30]OFD Sender: Remove packet 164365 [20:05:30]ProducePacketName [20:05:30]name=ofd_packets/00164365 [20:05:30]NVStorageDeleteData [20:05:30]Write to MH i2c: 01 00 00 FD 06 03 [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: 01 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: 01 07 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 0D 0D 24 [20:05:30]RasterBufferAndPrint [20:05:30]line [20:05:30]line [20:05:30]line [20:05:30]line [20:05:30]line [20:05:30]written 0, free lines is 3347 [20:05:30]MH_Cut [20:05:30]Write to MH i2c: D1 01 00 04 07 01 DD [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: D1 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: D1 01 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: D1 01 00 04 07 00 DC [20:05:30]Write to MH i2c: 01 00 00 05 07 0C [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]OFD Sender: No OFD packet to send [20:05:31]*** Cut start [20:05:31]*** Partial cut [20:05:31]*** CUTSNS_PIN = 1 [20:05:31]*** CUTSNS_PIN = 0 [20:05:31]*** Brake cut motor [20:05:31]Read from MH i2c: 01 [20:05:31]MH_I2C_Read... [20:05:31]*** Stop cut motor [20:05:31]*** Cut end [20:05:31]Read from MH i2c: 01 07 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: 01 07 00 05 07 00 00 00 00 00 FF 0F 21 [20:05:31]process_action close_receipt done [20:05:31]requested_data is exist [20:05:31]produce_requested_data [20:05:31]requested_item fm.sn is exist - process it [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 11 00 00 [20:05:31]Write to MH i2c: E2 08 00 06 07 80 11 00 00 00 00 00 00 87 [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 17 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 17 00 06 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [20:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:05:31]wFMCommunicate OK [20:05:31]requested_item fd.num is exist - process it [20:05:31]SAM_PROTO_GetFieldsCounters [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 13 00 00 [20:05:31]Write to MH i2c: E2 08 00 07 07 80 13 00 00 00 00 00 00 8A [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 62 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 62 00 07 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [20:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:31]wFMCommunicate OK [20:05:31]SAM_PROTO_GetFieldsCounters done [20:05:31]requested_item shift.num is exist - process it [20:05:31]requested_item shift.opened is exist - process it [20:05:31]req_shift_opened [20:05:31]FM_GetShiftState [20:05:31]SAM_PROTO_GetShiftState [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 13 01 00 [20:05:31]Write to MH i2c: E2 08 00 08 07 80 13 01 00 00 00 00 00 8C [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 0E 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 0E 00 08 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D6 [20:05:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:05:31]wFMCommunicate OK [20:05:31]SAM_PROTO_GetShiftState done [20:05:31]FM_GetShiftState done [20:05:31]req_shift_opened done [20:05:31]requested_item shift.open_date is exist - process it [20:05:31]req_shift_open_date [20:05:31]req_shift_open_date done [20:05:31]produce_requested_data done [20:05:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164365,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:05:31]process_action_free close_receipt [20:05:31]json_value_free [20:05:31]json_value_free done [20:05:31]process_json_proto returns [20:05:31]Send response to host [20:05:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164365,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:05:31]free response buf [20:05:31]execute_script done [20:05:31]execute_script returns [20:05:31]free content buf [20:05:31]Sock 7.Close socket [20:05:31]Sock 7.Thread stoped [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:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:22]accept exits with 9 [20:07:22]New connection [20:07:22]New thread 3067534692 created [20:07:22]Thread 3067391332 joined [20:07:22]Waiting for new connection... [20:07:22] Sock 9.Parse request [20:07:22]Sock 9.Check first char [20:07:22]Sock 9.First char is OK [20:07:22]request: POST /json_proto HTTP/1.0 [20:07:22]Method: POST [20:07:22]URL: /json_proto [20:07:22]Method is POST - this is cgi request [20:07:22]url: /json_proto [20:07:22]query_string will be loaded in cgi processing [20:07:22]execute_cgi json_proto POST (null) [20:07:22]execute_cgi path=json_proto method=POST [20:07:22]POST find Content-Length [20:07:22]Host: 172.17.56.4:8080 [20:07:22]Content-Length: 1187 [20:07:22]Content-Type: application/json [20:07:22] [20:07:22]POST finish read [20:07:22]Found Content-Length = 1187 [20:07:22]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458450\u000A12.07.2024 19:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114848;4114849\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:22]execute_script... [20:07:22]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458450\u000A12.07.2024 19:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114848;4114849\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:22]POST & json_proto [20:07:22]process_json_proto [20:07:22]json parsed OK: [20:07:22]protocol is kg_v1.0 [20:07:22]action value=print_text [20:07:22]process_action print_text [20:07:22]cmd_print_text [20:07:22]ExternCall_PrintAddStr [20:07:22]wPrintStart [20:07:22]Write to MH i2c: 01 00 00 09 07 10 [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 09 07 00 00 00 00 00 FF 0F 25 [20:07:22]RasterBufferAndPrint [20:07:22]line *****ТОВАРНЫЙ ЧЕК***** [20:07:22]line АЗС 72 [20:07:22]line Партнер нефть [20:07:22]line 02508201610067 [20:07:22]line Кассир : Садыков Н. [20:07:22]line Счет N : (1)458450 [20:07:22]line 12.07.2024 19:32 [20:07:22]line ПРОДАЖА [20:07:22]line ТРК (МРК, ГНК): 12 [20:07:22]line Вид ГСМ : 2710124130 [20:07:22]line Аи-92-К-5 [20:07:22]line 20.000 x 65.80 [20:07:22]line ИТОГ: 1316.00 [20:07:22]line Тип оплаты: Талоны: Партнер нефть [20:07:22]line 4114848;4114849 [20:07:22]line ______________________ [20:07:22]line (подпись) [20:07:22]written 0, free lines is 4095 [20:07:22]Write to MH i2c: 01 00 00 1D 07 24 [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: 01 07 00 1D 07 00 00 00 00 00 15 0E 4E [20:07:22]RasterBufferAndPrint [20:07:22]line [20:07:22]line [20:07:22]line [20:07:22]line [20:07:22]line [20:07:22]written 0, free lines is 3606 [20:07:22]MH_Cut [20:07:22]Write to MH i2c: D1 01 00 24 07 01 FD [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: D1 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: D1 01 00 [20:07:22]MH_I2C_Read... [20:07:22]Read from MH i2c: D1 01 00 24 07 00 FC [20:07:22]Write to MH i2c: 01 00 00 25 07 2C [20:07:22]Write i2c OK [20:07:22]MH_I2C_Read... [20:07:22]*** Cut start [20:07:22]*** Partial cut [20:07:22]*** CUTSNS_PIN = 1 [20:07:22]*** CUTSNS_PIN = 0 [20:07:23]*** Brake cut motor [20:07:23]Read from MH i2c: 01 [20:07:23]MH_I2C_Read... [20:07:23]*** Stop cut motor [20:07:23]*** Cut end [20:07:23]Read from MH i2c: 01 07 00 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: 01 07 00 25 07 00 00 00 00 00 FF 0F 41 [20:07:23]process_action print_text done [20:07:23]requested_data is exist [20:07:23]produce_requested_data [20:07:23]requested_item fm.sn is exist - process it [20:07:23]wFMCommunicate request_size=4 [20:07:23]MH_SAM_APDU [20:07:23]CAPDU: 80 11 00 00 [20:07:23]Write to MH i2c: E2 08 00 26 07 80 11 00 00 00 00 00 00 A7 [20:07:23]Write i2c OK [20:07:23]MH_I2C_Read... [20:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:23]Read from MH i2c: E2 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: E2 17 00 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: E2 17 00 26 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [20:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:07:23]wFMCommunicate OK [20:07:23]requested_item fd.num is exist - process it [20:07:23]SAM_PROTO_GetFieldsCounters [20:07:23]wFMCommunicate request_size=4 [20:07:23]MH_SAM_APDU [20:07:23]CAPDU: 80 13 00 00 [20:07:23]Write to MH i2c: E2 08 00 27 07 80 13 00 00 00 00 00 00 AA [20:07:23]Write i2c OK [20:07:23]MH_I2C_Read... [20:07:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:23]Read from MH i2c: E2 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: E2 62 00 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: E2 62 00 27 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [20:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:23]wFMCommunicate OK [20:07:23]SAM_PROTO_GetFieldsCounters done [20:07:23]requested_item shift.num is exist - process it [20:07:23]requested_item shift.opened is exist - process it [20:07:23]req_shift_opened [20:07:23]FM_GetShiftState [20:07:23]SAM_PROTO_GetShiftState [20:07:23]wFMCommunicate request_size=4 [20:07:23]MH_SAM_APDU [20:07:23]CAPDU: 80 13 01 00 [20:07:23]Write to MH i2c: E2 08 00 28 07 80 13 01 00 00 00 00 00 AC [20:07:23]Write i2c OK [20:07:23]MH_I2C_Read... [20:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:23]Read from MH i2c: E2 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: E2 0E 00 [20:07:23]MH_I2C_Read... [20:07:23]Read from MH i2c: E2 0E 00 28 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F6 [20:07:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:07:23]wFMCommunicate OK [20:07:23]SAM_PROTO_GetShiftState done [20:07:23]FM_GetShiftState done [20:07:23]req_shift_opened done [20:07:23]requested_item shift.open_date is exist - process it [20:07:23]req_shift_open_date [20:07:23]req_shift_open_date done [20:07:23]produce_requested_data done [20:07:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164365,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:07:23]process_action_free print_text [20:07:23]json_value_free [20:07:23]json_value_free done [20:07:23]process_json_proto returns [20:07:23]Send response to host [20:07:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164365,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:07:23]free response buf [20:07:23]execute_script done [20:07:23]execute_script returns [20:07:23]free content buf [20:07:23]Sock 9.Close socket [20:07:23]Sock 9.Thread stoped [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:36]accept exits with 7 [20:07:36]New connection [20:07:36]New thread 3067391332 created [20:07:36]Thread 3067534692 joined [20:07:36]Waiting for new connection... [20:07:36] Sock 7.Parse request [20:07:36]Sock 7.Check first char [20:07:36]Sock 7.First char is OK [20:07:36]request: POST /json_proto HTTP/1.0 [20:07:36]Method: POST [20:07:36]URL: /json_proto [20:07:36]Method is POST - this is cgi request [20:07:36]url: /json_proto [20:07:36]query_string will be loaded in cgi processing [20:07:36]execute_cgi json_proto POST (null) [20:07:36]execute_cgi path=json_proto method=POST [20:07:36]POST find Content-Length [20:07:36]Host: 172.17.56.4:8080 [20:07:36]Content-Length: 677 [20:07:36]Content-Type: application/json [20:07:36] [20:07:36]POST finish read [20:07:36]Found Content-Length = 677 [20:07:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:36]execute_script... [20:07:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:36]POST & json_proto [20:07:36]process_json_proto [20:07:36]json parsed OK: [20:07:36]protocol is kg_v1.0 [20:07:36]action value=close_receipt [20:07:36]process_action close_receipt [20:07:36]cmd_close_receipt [20:07:36]MH_GetDate [20:07:36]Write to MH i2c: F0 00 00 29 07 1F [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: F0 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: F0 09 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: F0 09 00 29 07 00 09 8D 91 66 C9 DC B2 64 70 [20:07:36]GetLastDocTimeStamp 1720814728 [20:07:36]current date 1720814857 [20:07:36]FM_GetShiftState [20:07:36]SAM_PROTO_GetShiftState [20:07:36]wFMCommunicate request_size=4 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 13 01 00 [20:07:36]Write to MH i2c: E2 08 00 2A 07 80 13 01 00 00 00 00 00 AE [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 0E 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 0E 00 2A 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F8 [20:07:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:07:36]wFMCommunicate OK [20:07:36]SAM_PROTO_GetShiftState done [20:07:36]FM_GetShiftState done [20:07:36]opened in 1720744654 [20:07:36]opened+sec_in_day 1720831054 [20:07:36]quantity*price = 30004 [20:07:36]sum+1 = 30006 [20:07:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 287 12.07.2024 20:07 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164366 ФПД: 262595281359934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T200737&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164366&fm=262595281359934&tin=02508201610067®Number=0000000000090829&sum=30000 [20:07:37]StoreToDocumentArchive [20:07:37]shift 445 fd 164366 [20:07:37]save to /storage/0445/doc_00164366 [20:07:37]save last doc name /storage/0445/doc_00164366 to /storage/kkm_last_doc_name [20:07:37]save OK [20:07:37]Clear old archive folders... [20:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:37]tlvbuf is 015600A0 [20:07:37]SAM_PROTO_ClearQueue [20:07:37]wFMCommunicate request_size=4 [20:07:37]MH_SAM_APDU [20:07:37]CAPDU: 80 09 00 00 [20:07:37]Write to MH i2c: E2 08 00 37 07 80 09 00 00 00 00 00 00 B0 [20:07:37]Write i2c OK [20:07:37]MH_I2C_Read... [20:07:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:38]Read from MH i2c: E2 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 03 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 03 00 37 07 00 90 00 B2 [20:07:38]RAPDU: 90 00 [20:07:38]wFMCommunicate OK [20:07:38]SAM_PROTO_ClearQueue done [20:07:38]KKMCreateOFDPacket [20:07:38]OFDProtocolAddRootSTLVToBuf [20:07:38]FM_MakeSignedData [20:07:38]FM_MakeSignedData [20:07:38]SAM_PROTO_SignData [20:07:38]wFMCommunicate request_size=4 [20:07:38]MH_SAM_APDU [20:07:38]CAPDU: 80 0D 01 02 [20:07:38]Write to MH i2c: E2 08 00 38 07 80 0D 01 02 00 00 00 00 B8 [20:07:38]Write i2c OK [20:07:38]MH_I2C_Read... [20:07:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:38]Read from MH i2c: E2 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 03 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [20:07:38]RAPDU: 90 00 [20:07:38]wFMCommunicate OK [20:07:38]wFMCommunicate request_size=255 [20:07:38]MH_SAM_APDU [20:07:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 09 8D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 82 02 00 35 04 06 00 EE [20:07:38]Write to MH i2c: E2 02 01 39 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 09 8D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 82 02 00 35 04 06 00 EE 00 00 DD [20:07:38]Write i2c OK [20:07:38]MH_I2C_Read... [20:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:38]Read from MH i2c: E2 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 03 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 03 00 39 07 00 90 00 B4 [20:07:38]RAPDU: 90 00 [20:07:38]wFMCommunicate OK [20:07:38]wFMCommunicate request_size=10 [20:07:38]MH_SAM_APDU [20:07:38]CAPDU: 80 0D 02 02 05 D4 3A 77 14 3E [20:07:38]Write to MH i2c: E2 0D 00 3A 07 80 0D 02 02 05 00 D4 3A 77 14 3E 00 00 9C [20:07:38]Write i2c OK [20:07:38]MH_I2C_Read... [20:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:38]Read from MH i2c: E2 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 03 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 03 00 3A 07 00 90 00 B5 [20:07:38]RAPDU: 90 00 [20:07:38]wFMCommunicate OK [20:07:38]wFMCommunicate request_size=4 [20:07:38]MH_SAM_APDU [20:07:38]CAPDU: 80 0D 03 02 [20:07:38]Write to MH i2c: E2 08 00 3B 07 80 0D 03 02 00 00 00 00 BD [20:07:38]Write i2c OK [20:07:38]MH_I2C_Read... [20:07:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:38]Read from MH i2c: E2 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 0B 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 0B 00 3B 07 00 E0 F0 49 21 89 83 14 26 90 00 3E [20:07:38]RAPDU: E0 F0 49 21 89 83 14 26 90 00 [20:07:38]wFMCommunicate OK [20:07:38]SAM_PROTO_SignData done [20:07:38]FM_MakeSignedData done [20:07:38]CreateOFDProtocolMessage [20:07:38]wFMCommunicate request_size=4 [20:07:38]MH_SAM_APDU [20:07:38]CAPDU: 80 11 00 00 [20:07:38]Write to MH i2c: E2 08 00 3C 07 80 11 00 00 00 00 00 00 BD [20:07:38]Write i2c OK [20:07:38]MH_I2C_Read... [20:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:38]Read from MH i2c: E2 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 17 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 17 00 3C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [20:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:07:38]wFMCommunicate OK [20:07:38]CreateOFDProtocolMessage done [20:07:38]OFDSenderStorePacket 164366 [20:07:38]StoreOFDPacket docnum=164366 [20:07:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D 8F 07 01 D2 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 09 8D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 82 02 00 35 04 06 00 EE D4 3A 77 14 3E E0 F0 49 21 89 83 14 26 [20:07:38]CheckFolder [20:07:38]dirname=/storage/ofd_packets [20:07:38]CheckFolder done [20:07:38]ProducePacketName [20:07:38]name=ofd_packets/00164366 [20:07:38]NVStorageSaveData ofd_packets/00164366 [20:07:38]File name is /storage/ofd_packets/00164366 [20:07:38]Write 301 bytes [20:07:38]NVStorageSaveData done [20:07:38]OFDSenderStorePacket done [20:07:38]KKMCreateOFDPacket done [20:07:38]NVStorageSaveData kkm_last_timestamp [20:07:38]File name is /storage/kkm_last_timestamp [20:07:38]Write 4 bytes [20:07:38]NVStorageSaveData done [20:07:38]ExternCall_PrintAddStr [20:07:38]wPrintStart [20:07:38]Write to MH i2c: 01 00 00 3D 07 44 [20:07:38]Write i2c OK [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: 01 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: 01 07 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: 01 07 00 3D 07 00 00 00 00 00 FF 0F 59 [20:07:38]RasterBufferAndPrint [20:07:38]line Счет N : (1)458451 [20:07:38]line ИНН: 02508201610067 [20:07:38]line Контрольно-Кассовый Чек [20:07:38]line ПРОДАЖА [20:07:38]line ТРК (МРК, ГНК) : 22 [20:07:38]line Товар: 2710124130 [20:07:38]line Аи-92-К-5 [20:07:38]line 4.560 * 65.80 [20:07:38]line = 300.05 [20:07:38]line НДС 12% НСП 1% [20:07:38]line > о реализуемом товаре [20:07:38]line ОКРУГЛЕНИЕ: -0.05 [20:07:38]line ИТОГО: 300.00 [20:07:38]line Внесено: 300.00 [20:07:38]line СДАЧА: 0.00 [20:07:38]line НСП 1% : 2.65 [20:07:38]line НДС 12% : 31.86 [20:07:38]line Наличными: 300.00 [20:07:38]line Безнал.: 0.00 [20:07:38]line Место: АЗС № 72 "Партнер Нефть" [20:07:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:07:38]line СНО: Общий режим [20:07:38]line Чек 287 12.07.2024 20:07 [20:07:38]line Смена: 445 ФФД: 1.0 [20:07:38]line ЗНМ: 0300000160 [20:07:38]line РНМ: 0000000000090829 [20:07:38]line Версия ККМ: 001 [20:07:38]line ФМ: 0000000000874718 [20:07:38]line ФД: 164366 [20:07:38]line ФПД: 262595281359934 [20:07:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T200737&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164366&fm=262595281359934&tin=02508201610067®Number=0000000000090829&sum=30000 [20:07:38]OFD Sender: Processing packet 164366 [packets to send 104, broken 103] [20:07:38]ProducePacketName [20:07:38]name=ofd_packets/00164366 [20:07:38]OFD Sender: To server: pG, [20:07:38]CommunicateWithHost lk.salyk.kg:30040 [20:07:38]ConnectInit lk.salyk.kg [20:07:38]written 0, free lines is 4095 [20:07:38]Connected sock=10 [20:07:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D 8F 07 01 D2 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 09 8D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 82 02 00 35 04 06 00 EE D4 3A 77 14 3E E0 F0 49 21 89 83 14 26 [20:07:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B6 79 47 00 E1 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 82 02 00 F4 03 04 00 9C 33 91 66 B6 04 01 00 00 78 4F 8A C9 3D 0A 59 84 [20:07:39]CommunicateWithHost err = 0 [20:07:39]CheckOFDResponse [20:07:39]1017 (14) - 77093643461234 [20:07:39]1041 (16) - 0000000000874718 [20:07:39]1040 (4) - 164366 [20:07:39]1012 (4) - 12.07.2024 13:46 [20:07:39]1206 (1) - 0 [20:07:39]OFD Sender: Remove packet 164366 [20:07:39]ProducePacketName [20:07:39]name=ofd_packets/00164366 [20:07:39]NVStorageDeleteData [20:07:39]Write to MH i2c: 01 00 00 67 07 6E [20:07:39]Write i2c OK [20:07:39]MH_I2C_Read... [20:07:39]Read from MH i2c: 01 [20:07:39]MH_I2C_Read... [20:07:39]Read from MH i2c: 01 07 00 [20:07:39]MH_I2C_Read... [20:07:39]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 F9 0C 7A [20:07:39]RasterBufferAndPrint [20:07:39]line [20:07:39]line [20:07:39]line [20:07:39]line [20:07:39]line [20:07:39]written 0, free lines is 3327 [20:07:39]MH_Cut [20:07:39]Write to MH i2c: D1 01 00 6E 07 01 47 [20:07:39]Write i2c OK [20:07:39]MH_I2C_Read... [20:07:39]Read from MH i2c: D1 [20:07:39]MH_I2C_Read... [20:07:39]Read from MH i2c: D1 01 00 [20:07:39]MH_I2C_Read... [20:07:39]Read from MH i2c: D1 01 00 6E 07 00 46 [20:07:39]Write to MH i2c: 01 00 00 6F 07 76 [20:07:39]Write i2c OK [20:07:39]MH_I2C_Read... [20:07:39]OFD Sender: No OFD packet to send [20:07:39]*** Cut start [20:07:39]*** Partial cut [20:07:39]*** CUTSNS_PIN = 1 [20:07:39]*** CUTSNS_PIN = 0 [20:07:40]*** Brake cut motor [20:07:40]Read from MH i2c: 01 [20:07:40]MH_I2C_Read... [20:07:40]*** Stop cut motor [20:07:40]*** Cut end [20:07:40]Read from MH i2c: 01 07 00 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 FF 0F 8B [20:07:40]process_action close_receipt done [20:07:40]requested_data is exist [20:07:40]produce_requested_data [20:07:40]requested_item fm.sn is exist - process it [20:07:40]wFMCommunicate request_size=4 [20:07:40]MH_SAM_APDU [20:07:40]CAPDU: 80 11 00 00 [20:07:40]Write to MH i2c: E2 08 00 70 07 80 11 00 00 00 00 00 00 F1 [20:07:40]Write i2c OK [20:07:40]MH_I2C_Read... [20:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:40]Read from MH i2c: E2 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: E2 17 00 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: E2 17 00 70 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [20:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:07:40]wFMCommunicate OK [20:07:40]requested_item fd.num is exist - process it [20:07:40]SAM_PROTO_GetFieldsCounters [20:07:40]wFMCommunicate request_size=4 [20:07:40]MH_SAM_APDU [20:07:40]CAPDU: 80 13 00 00 [20:07:40]Write to MH i2c: E2 08 00 71 07 80 13 00 00 00 00 00 00 F4 [20:07:40]Write i2c OK [20:07:40]MH_I2C_Read... [20:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:40]Read from MH i2c: E2 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: E2 62 00 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: E2 62 00 71 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [20:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:40]wFMCommunicate OK [20:07:40]SAM_PROTO_GetFieldsCounters done [20:07:40]requested_item shift.num is exist - process it [20:07:40]requested_item shift.opened is exist - process it [20:07:40]req_shift_opened [20:07:40]FM_GetShiftState [20:07:40]SAM_PROTO_GetShiftState [20:07:40]wFMCommunicate request_size=4 [20:07:40]MH_SAM_APDU [20:07:40]CAPDU: 80 13 01 00 [20:07:40]Write to MH i2c: E2 08 00 72 07 80 13 01 00 00 00 00 00 F6 [20:07:40]Write i2c OK [20:07:40]MH_I2C_Read... [20:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:40]Read from MH i2c: E2 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: E2 0E 00 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: E2 0E 00 72 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 40 [20:07:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:07:40]wFMCommunicate OK [20:07:40]SAM_PROTO_GetShiftState done [20:07:40]FM_GetShiftState done [20:07:40]req_shift_opened done [20:07:40]requested_item shift.open_date is exist - process it [20:07:40]req_shift_open_date [20:07:40]req_shift_open_date done [20:07:40]produce_requested_data done [20:07:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164366,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:07:40]process_action_free close_receipt [20:07:40]json_value_free [20:07:40]json_value_free done [20:07:40]process_json_proto returns [20:07:40]Send response to host [20:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164366,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:07:40]free response buf [20:07:40]execute_script done [20:07:40]execute_script returns [20:07:40]free content buf [20:07:40]Sock 7.Close socket [20:07:40]Sock 7.Thread stoped [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:36]accept exits with 9 [20:09:36]New connection [20:09:36]New thread 3067534692 created [20:09:36]Thread 3067391332 joined [20:09:36]Waiting for new connection... [20:09:36] Sock 9.Parse request [20:09:36]Sock 9.Check first char [20:09:36]Sock 9.First char is OK [20:09:36]request: POST /json_proto HTTP/1.0 [20:09:36]Method: POST [20:09:36]URL: /json_proto [20:09:36]Method is POST - this is cgi request [20:09:36]url: /json_proto [20:09:36]query_string will be loaded in cgi processing [20:09:36]execute_cgi json_proto POST (null) [20:09:36]execute_cgi path=json_proto method=POST [20:09:36]POST find Content-Length [20:09:36]Host: 172.17.56.4:8080 [20:09:36]Content-Length: 677 [20:09:36]Content-Type: application/json [20:09:36] [20:09:36]POST finish read [20:09:36]Found Content-Length = 677 [20:09:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:36]execute_script... [20:09: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)458452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:36]POST & json_proto [20:09:36]process_json_proto [20:09:36]json parsed OK: [20:09:36]protocol is kg_v1.0 [20:09:36]action value=close_receipt [20:09:36]process_action close_receipt [20:09:36]cmd_close_receipt [20:09:36]MH_GetDate [20:09:36]Write to MH i2c: F0 00 00 73 07 69 [20:09:36]Write i2c OK [20:09:36]MH_I2C_Read... [20:09:36]Read from MH i2c: F0 [20:09:36]MH_I2C_Read... [20:09:36]Read from MH i2c: F0 09 00 [20:09:36]MH_I2C_Read... [20:09:36]Read from MH i2c: F0 09 00 73 07 00 80 8D 91 66 C9 DC B2 64 31 [20:09:36]GetLastDocTimeStamp 1720814857 [20:09:36]current date 1720814976 [20:09:36]FM_GetShiftState [20:09:36]SAM_PROTO_GetShiftState [20:09:36]wFMCommunicate request_size=4 [20:09:36]MH_SAM_APDU [20:09:36]CAPDU: 80 13 01 00 [20:09:36]Write to MH i2c: E2 08 00 74 07 80 13 01 00 00 00 00 00 F8 [20:09:36]Write i2c OK [20:09:36]MH_I2C_Read... [20:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:36]Read from MH i2c: E2 [20:09:36]MH_I2C_Read... [20:09:36]Read from MH i2c: E2 0E 00 [20:09:36]MH_I2C_Read... [20:09:36]Read from MH i2c: E2 0E 00 74 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 42 [20:09:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:09:36]wFMCommunicate OK [20:09:36]SAM_PROTO_GetShiftState done [20:09:36]FM_GetShiftState done [20:09:36]opened in 1720744654 [20:09:36]opened+sec_in_day 1720831054 [20:09:36]quantity*price = 30004 [20:09:36]sum+1 = 30006 [20:09:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 288 12.07.2024 20:09 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164367 ФПД: 129647522593677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T200936&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164367&fm=129647522593677&tin=02508201610067®Number=0000000000090829&sum=30000 [20:09:37]StoreToDocumentArchive [20:09:37]shift 445 fd 164367 [20:09:37]save to /storage/0445/doc_00164367 [20:09:37]save last doc name /storage/0445/doc_00164367 to /storage/kkm_last_doc_name [20:09:37]save OK [20:09:37]Clear old archive folders... [20:09:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:37]tlvbuf is 015621C0 [20:09:37]SAM_PROTO_ClearQueue [20:09:37]wFMCommunicate request_size=4 [20:09:37]MH_SAM_APDU [20:09:37]CAPDU: 80 09 00 00 [20:09:37]Write to MH i2c: E2 08 00 81 07 80 09 00 00 00 00 00 00 FA [20:09:37]Write i2c OK [20:09:37]MH_I2C_Read... [20:09:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:37]Read from MH i2c: E2 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 03 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 03 00 81 07 00 90 00 FC [20:09:37]RAPDU: 90 00 [20:09:37]wFMCommunicate OK [20:09:37]SAM_PROTO_ClearQueue done [20:09:37]KKMCreateOFDPacket [20:09:37]OFDProtocolAddRootSTLVToBuf [20:09:37]FM_MakeSignedData [20:09:37]FM_MakeSignedData [20:09:37]SAM_PROTO_SignData [20:09:37]wFMCommunicate request_size=4 [20:09:37]MH_SAM_APDU [20:09:37]CAPDU: 80 0D 01 02 [20:09:37]Write to MH i2c: E2 08 00 82 07 80 0D 01 02 00 00 00 00 02 [20:09:37]Write i2c OK [20:09:37]MH_I2C_Read... [20:09:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:37]Read from MH i2c: E2 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 03 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 03 00 82 07 00 90 00 FD [20:09:37]RAPDU: 90 00 [20:09:37]wFMCommunicate OK [20:09:37]wFMCommunicate request_size=255 [20:09:37]MH_SAM_APDU [20:09: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 80 8D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 82 02 00 35 04 06 00 75 [20:09:37]Write to MH i2c: E2 02 01 83 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 80 8D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 82 02 00 35 04 06 00 75 00 00 27 [20:09:37]Write i2c OK [20:09:37]MH_I2C_Read... [20:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:37]Read from MH i2c: E2 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 03 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [20:09:37]RAPDU: 90 00 [20:09:37]wFMCommunicate OK [20:09:37]wFMCommunicate request_size=10 [20:09:37]MH_SAM_APDU [20:09:37]CAPDU: 80 0D 02 02 05 E9 EA 87 BB 8D [20:09:37]Write to MH i2c: E2 0D 00 84 07 80 0D 02 02 05 00 E9 EA 87 BB 8D 00 00 B1 [20:09:37]Write i2c OK [20:09:37]MH_I2C_Read... [20:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:37]Read from MH i2c: E2 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 03 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [20:09:37]RAPDU: 90 00 [20:09:37]wFMCommunicate OK [20:09:37]wFMCommunicate request_size=4 [20:09:37]MH_SAM_APDU [20:09:37]CAPDU: 80 0D 03 02 [20:09:37]Write to MH i2c: E2 08 00 85 07 80 0D 03 02 00 00 00 00 07 [20:09:37]Write i2c OK [20:09:37]MH_I2C_Read... [20:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:37]Read from MH i2c: E2 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 0B 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 0B 00 85 07 00 5B 47 47 2A 7E F1 2E E1 90 00 99 [20:09:37]RAPDU: 5B 47 47 2A 7E F1 2E E1 90 00 [20:09:37]wFMCommunicate OK [20:09:37]SAM_PROTO_SignData done [20:09:37]FM_MakeSignedData done [20:09:37]CreateOFDProtocolMessage [20:09:37]wFMCommunicate request_size=4 [20:09:37]MH_SAM_APDU [20:09:37]CAPDU: 80 11 00 00 [20:09:37]Write to MH i2c: E2 08 00 86 07 80 11 00 00 00 00 00 00 07 [20:09:37]Write i2c OK [20:09:37]MH_I2C_Read... [20:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:37]Read from MH i2c: E2 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 17 00 [20:09:37]MH_I2C_Read... [20:09:37]Read from MH i2c: E2 17 00 86 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [20:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:09:37]wFMCommunicate OK [20:09:37]CreateOFDProtocolMessage done [20:09:37]OFDSenderStorePacket 164367 [20:09:37]StoreOFDPacket docnum=164367 [20:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 24 50 07 01 47 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 80 8D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 82 02 00 35 04 06 00 75 E9 EA 87 BB 8D 5B 47 47 2A 7E F1 2E E1 [20:09:37]CheckFolder [20:09:37]dirname=/storage/ofd_packets [20:09:37]CheckFolder done [20:09:37]ProducePacketName [20:09:37]name=ofd_packets/00164367 [20:09:37]NVStorageSaveData ofd_packets/00164367 [20:09:37]File name is /storage/ofd_packets/00164367 [20:09:37]Write 301 bytes [20:09:37]NVStorageSaveData done [20:09:37]OFDSenderStorePacket done [20:09:37]KKMCreateOFDPacket done [20:09:37]NVStorageSaveData kkm_last_timestamp [20:09:37]File name is /storage/kkm_last_timestamp [20:09:37]Write 4 bytes [20:09:37]NVStorageSaveData done [20:09:38]ExternCall_PrintAddStr [20:09:38]wPrintStart [20:09:38]Write to MH i2c: 01 00 00 87 07 8E [20:09:38]Write i2c OK [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: 01 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: 01 07 00 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: 01 07 00 87 07 00 00 00 00 00 FF 0F A3 [20:09:38]RasterBufferAndPrint [20:09:38]line Счет N : (1)458452 [20:09:38]line ИНН: 02508201610067 [20:09:38]line Контрольно-Кассовый Чек [20:09:38]line ПРОДАЖА [20:09:38]line ТРК (МРК, ГНК) : 12 [20:09:38]line Товар: 2710124130 [20:09:38]line Аи-92-К-5 [20:09:38]line 4.560 * 65.80 [20:09:38]line = 300.05 [20:09:38]line НДС 12% НСП 1% [20:09:38]line > о реализуемом товаре [20:09:38]line ОКРУГЛЕНИЕ: -0.05 [20:09:38]line ИТОГО: 300.00 [20:09:38]line Внесено: 300.00 [20:09:38]line СДАЧА: 0.00 [20:09:38]line НСП 1% : 2.65 [20:09:38]line НДС 12% : 31.86 [20:09:38]line Наличными: 300.00 [20:09:38]line Безнал.: 0.00 [20:09:38]line Место: АЗС № 72 "Партнер Нефть" [20:09:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:09:38]line СНО: Общий режим [20:09:38]line Чек 288 12.07.2024 20:09 [20:09:38]line Смена: 445 ФФД: 1.0 [20:09:38]line ЗНМ: 0300000160 [20:09:38]line РНМ: 0000000000090829 [20:09:38]line Версия ККМ: 001 [20:09:38]line ФМ: 0000000000874718 [20:09:38]line ФД: 164367 [20:09:38]line ФПД: 129647522593677 [20:09:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T200936&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164367&fm=129647522593677&tin=02508201610067®Number=0000000000090829&sum=30000 [20:09:38]written 0, free lines is 4095 [20:09:38]OFD Sender: Processing packet 164367 [packets to send 104, broken 103] [20:09:38]ProducePacketName [20:09:38]name=ofd_packets/00164367 [20:09:38]OFD Sender: To server: pG, [20:09:38]CommunicateWithHost lk.salyk.kg:30040 [20:09:38]ConnectInit lk.salyk.kg [20:09:38]Connected sock=10 [20:09:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 24 50 07 01 47 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 80 8D 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 82 02 00 35 04 06 00 75 E9 EA 87 BB 8D 5B 47 47 2A 7E F1 2E E1 [20:09:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE DB 47 00 AE 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 34 37 31 38 10 04 04 00 0F 82 02 00 F4 03 04 00 13 34 91 66 B6 04 01 00 00 07 71 C6 AF 99 50 84 C0 [20:09:38]CommunicateWithHost err = 0 [20:09:38]CheckOFDResponse [20:09:38]1017 (14) - 77093643461234 [20:09:38]1041 (16) - 0000000000874718 [20:09:38]1040 (4) - 164367 [20:09:38]1012 (4) - 12.07.2024 13:48 [20:09:38]1206 (1) - 0 [20:09:38]OFD Sender: Remove packet 164367 [20:09:38]ProducePacketName [20:09:38]name=ofd_packets/00164367 [20:09:38]NVStorageDeleteData [20:09:38]Write to MH i2c: 01 00 00 B1 07 B8 [20:09:38]Write i2c OK [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: 01 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: 01 07 00 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: 01 07 00 B1 07 00 00 00 00 00 02 0D CE [20:09:38]RasterBufferAndPrint [20:09:38]line [20:09:38]line [20:09:38]line [20:09:38]line [20:09:38]line [20:09:38]written 0, free lines is 3336 [20:09:38]MH_Cut [20:09:38]Write to MH i2c: D1 01 00 B8 07 01 91 [20:09:38]Write i2c OK [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: D1 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: D1 01 00 [20:09:38]MH_I2C_Read... [20:09:38]Read from MH i2c: D1 01 00 B8 07 00 90 [20:09:38]Write to MH i2c: 01 00 00 B9 07 C0 [20:09:38]Write i2c OK [20:09:38]MH_I2C_Read... [20:09:38]OFD Sender: No OFD packet to send [20:09:39]*** Cut start [20:09:39]*** Partial cut [20:09:39]*** CUTSNS_PIN = 1 [20:09:39]*** CUTSNS_PIN = 0 [20:09:39]*** Brake cut motor [20:09:39]Read from MH i2c: 01 [20:09:39]MH_I2C_Read... [20:09:39]*** Stop cut motor [20:09:39]*** Cut end [20:09:39]Read from MH i2c: 01 07 00 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: 01 07 00 B9 07 00 00 00 00 00 FF 0F D5 [20:09:39]process_action close_receipt done [20:09:39]requested_data is exist [20:09:39]produce_requested_data [20:09:39]requested_item fm.sn is exist - process it [20:09:39]wFMCommunicate request_size=4 [20:09:39]MH_SAM_APDU [20:09:39]CAPDU: 80 11 00 00 [20:09:39]Write to MH i2c: E2 08 00 BA 07 80 11 00 00 00 00 00 00 3B [20:09:39]Write i2c OK [20:09:39]MH_I2C_Read... [20:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:39]Read from MH i2c: E2 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 17 00 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 17 00 BA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [20:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:09:39]wFMCommunicate OK [20:09:39]requested_item fd.num is exist - process it [20:09:39]SAM_PROTO_GetFieldsCounters [20:09:39]wFMCommunicate request_size=4 [20:09:39]MH_SAM_APDU [20:09:39]CAPDU: 80 13 00 00 [20:09:39]Write to MH i2c: E2 08 00 BB 07 80 13 00 00 00 00 00 00 3E [20:09:39]Write i2c OK [20:09:39]MH_I2C_Read... [20:09:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:39]Read from MH i2c: E2 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 62 00 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 62 00 BB 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [20:09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:39]wFMCommunicate OK [20:09:39]SAM_PROTO_GetFieldsCounters done [20:09:39]requested_item shift.num is exist - process it [20:09:39]requested_item shift.opened is exist - process it [20:09:39]req_shift_opened [20:09:39]FM_GetShiftState [20:09:39]SAM_PROTO_GetShiftState [20:09:39]wFMCommunicate request_size=4 [20:09:39]MH_SAM_APDU [20:09:39]CAPDU: 80 13 01 00 [20:09:39]Write to MH i2c: E2 08 00 BC 07 80 13 01 00 00 00 00 00 40 [20:09:39]Write i2c OK [20:09:39]MH_I2C_Read... [20:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:39]Read from MH i2c: E2 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 0E 00 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 0E 00 BC 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8A [20:09:39]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:09:39]wFMCommunicate OK [20:09:39]SAM_PROTO_GetShiftState done [20:09:39]FM_GetShiftState done [20:09:39]req_shift_opened done [20:09:39]requested_item shift.open_date is exist - process it [20:09:39]req_shift_open_date [20:09:39]req_shift_open_date done [20:09:39]produce_requested_data done [20:09:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164367,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:09:39]process_action_free close_receipt [20:09:39]json_value_free [20:09:39]json_value_free done [20:09:39]process_json_proto returns [20:09:39]Send response to host [20:09:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164367,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:09:39]free response buf [20:09:39]execute_script done [20:09:39]execute_script returns [20:09:39]free content buf [20:09:39]Sock 9.Close socket [20:09:39]Sock 9.Thread stoped [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:11:59]accept exits with 7 [20:11:59]New connection [20:11:59]New thread 3067391332 created [20:11:59]Thread 3067534692 joined [20:11:59]Waiting for new connection... [20:11:59] Sock 7.Parse request [20:11:59]Sock 7.Check first char [20:11:59]Sock 7.First char is OK [20:11:59]request: POST /json_proto HTTP/1.0 [20:11:59]Method: POST [20:11:59]URL: /json_proto [20:11:59]Method is POST - this is cgi request [20:11:59]url: /json_proto [20:11:59]query_string will be loaded in cgi processing [20:11:59]execute_cgi json_proto POST (null) [20:11:59]execute_cgi path=json_proto method=POST [20:11:59]POST find Content-Length [20:11:59]Host: 172.17.56.4:8080 [20:11:59]Content-Length: 679 [20:11:59]Content-Type: application/json [20:11:59] [20:11:59]POST finish read [20:11:59]Found Content-Length = 679 [20:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458453", "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" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:59]execute_script... [20:11: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)458453", "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" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:59]POST & json_proto [20:11:59]process_json_proto [20:11:59]json parsed OK: [20:11:59]protocol is kg_v1.0 [20:11:59]action value=close_receipt [20:11:59]process_action close_receipt [20:11:59]cmd_close_receipt [20:11:59]MH_GetDate [20:11:59]Write to MH i2c: F0 00 00 BD 07 B3 [20:11:59]Write i2c OK [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: F0 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: F0 09 00 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: F0 09 00 BD 07 00 10 8E 91 66 C9 DC B2 64 0C [20:11:59]GetLastDocTimeStamp 1720814976 [20:11:59]current date 1720815120 [20:11:59]FM_GetShiftState [20:11:59]SAM_PROTO_GetShiftState [20:11:59]wFMCommunicate request_size=4 [20:11:59]MH_SAM_APDU [20:11:59]CAPDU: 80 13 01 00 [20:11:59]Write to MH i2c: E2 08 00 BE 07 80 13 01 00 00 00 00 00 42 [20:11:59]Write i2c OK [20:11:59]MH_I2C_Read... [20:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:59]Read from MH i2c: E2 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 0E 00 [20:11:59]MH_I2C_Read... [20:11:59]Read from MH i2c: E2 0E 00 BE 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8C [20:11:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:11:59]wFMCommunicate OK [20:11:59]SAM_PROTO_GetShiftState done [20:11:59]FM_GetShiftState done [20:11:59]opened in 1720744654 [20:11:59]opened+sec_in_day 1720831054 [20:11:59]quantity*price = 140061 [20:11:59]sum+1 = 140062 [20:11:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 289 12.07.2024 20:12 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164368 ФПД: 173349361420257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164368&fm=173349361420257&tin=02508201610067®Number=0000000000090829&sum=140000 [20:12:00]StoreToDocumentArchive [20:12:00]shift 445 fd 164368 [20:12:00]save to /storage/0445/doc_00164368 [20:12:00]save last doc name /storage/0445/doc_00164368 to /storage/kkm_last_doc_name [20:12:00]save OK [20:12:00]Clear old archive folders... [20:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:12:00]tlvbuf is 01563330 [20:12:00]SAM_PROTO_ClearQueue [20:12:00]wFMCommunicate request_size=4 [20:12:00]MH_SAM_APDU [20:12:00]CAPDU: 80 09 00 00 [20:12:00]Write to MH i2c: E2 08 00 CB 07 80 09 00 00 00 00 00 00 44 [20:12:00]Write i2c OK [20:12:00]MH_I2C_Read... [20:12:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:00]Read from MH i2c: E2 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: E2 03 00 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [20:12:00]RAPDU: 90 00 [20:12:00]wFMCommunicate OK [20:12:00]SAM_PROTO_ClearQueue done [20:12:00]KKMCreateOFDPacket [20:12:00]OFDProtocolAddRootSTLVToBuf [20:12:00]FM_MakeSignedData [20:12:00]FM_MakeSignedData [20:12:00]SAM_PROTO_SignData [20:12:00]wFMCommunicate request_size=4 [20:12:00]MH_SAM_APDU [20:12:00]CAPDU: 80 0D 01 02 [20:12:00]Write to MH i2c: E2 08 00 CC 07 80 0D 01 02 00 00 00 00 4C [20:12:00]Write i2c OK [20:12:00]MH_I2C_Read... [20:12:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:00]Read from MH i2c: E2 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: E2 03 00 [20:12:00]MH_I2C_Read... [20:12:00]Read from MH i2c: E2 03 00 CC 07 00 90 00 47 [20:12:00]RAPDU: 90 00 [20:12:00]wFMCommunicate OK [20:12:00]wFMCommunicate request_size=255 [20:12:00]MH_SAM_APDU [20:12: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 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 10 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 82 02 00 35 04 06 00 9D A9 0B 1C [20:12:00]Write to MH i2c: E2 02 01 CD 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 10 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 82 02 00 35 04 06 00 9D A9 0B 1C 00 00 34 [20:12:00]Write i2c OK [20:12:00]MH_I2C_Read... [20:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:01]Read from MH i2c: E2 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 03 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 03 00 CD 07 00 90 00 48 [20:12:01]RAPDU: 90 00 [20:12:01]wFMCommunicate OK [20:12:01]wFMCommunicate request_size=7 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 0D 02 02 02 07 E1 [20:12:01]Write to MH i2c: E2 0A 00 CE 07 80 0D 02 02 02 00 07 E1 00 00 3B [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:01]Read from MH i2c: E2 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 03 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 03 00 CE 07 00 90 00 49 [20:12:01]RAPDU: 90 00 [20:12:01]wFMCommunicate OK [20:12:01]wFMCommunicate request_size=4 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 0D 03 02 [20:12:01]Write to MH i2c: E2 08 00 CF 07 80 0D 03 02 00 00 00 00 51 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:01]Read from MH i2c: E2 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 0B 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 0B 00 CF 07 00 A1 0A DE 8C BD AC 28 4A 90 00 42 [20:12:01]RAPDU: A1 0A DE 8C BD AC 28 4A 90 00 [20:12:01]wFMCommunicate OK [20:12:01]SAM_PROTO_SignData done [20:12:01]FM_MakeSignedData done [20:12:01]CreateOFDProtocolMessage [20:12:01]wFMCommunicate request_size=4 [20:12:01]MH_SAM_APDU [20:12:01]CAPDU: 80 11 00 00 [20:12:01]Write to MH i2c: E2 08 00 D0 07 80 11 00 00 00 00 00 00 51 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:01]Read from MH i2c: E2 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 17 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: E2 17 00 D0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [20:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:12:01]wFMCommunicate OK [20:12:01]CreateOFDProtocolMessage done [20:12:01]OFDSenderStorePacket 164368 [20:12:01]StoreOFDPacket docnum=164368 [20:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AA 53 04 01 B1 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 10 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 82 02 00 35 04 06 00 9D A9 0B 1C 07 E1 A1 0A DE 8C BD AC 28 4A [20:12:01]CheckFolder [20:12:01]dirname=/storage/ofd_packets [20:12:01]CheckFolder done [20:12:01]ProducePacketName [20:12:01]name=ofd_packets/00164368 [20:12:01]NVStorageSaveData ofd_packets/00164368 [20:12:01]File name is /storage/ofd_packets/00164368 [20:12:01]Write 298 bytes [20:12:01]NVStorageSaveData done [20:12:01]OFDSenderStorePacket done [20:12:01]KKMCreateOFDPacket done [20:12:01]NVStorageSaveData kkm_last_timestamp [20:12:01]File name is /storage/kkm_last_timestamp [20:12:01]Write 4 bytes [20:12:01]NVStorageSaveData done [20:12:01]ExternCall_PrintAddStr [20:12:01]wPrintStart [20:12:01]Write to MH i2c: 01 00 00 D1 07 D8 [20:12:01]Write i2c OK [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: 01 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: 01 07 00 [20:12:01]MH_I2C_Read... [20:12:01]Read from MH i2c: 01 07 00 D1 07 00 00 00 00 00 FF 0F ED [20:12:01]RasterBufferAndPrint [20:12:01]line Счет N : (1)458453 [20:12:01]line ИНН: 02508201610067 [20:12:01]line Контрольно-Кассовый Чек [20:12:01]line ПРОДАЖА [20:12:01]line ТРК (МРК, ГНК) : 21 [20:12:01]line Товар: 2710194210 [20:12:01]line ДТ-К-5 [20:12:01]line 19.480 * 71.90 [20:12:01]line = 1400.61 [20:12:01]line НДС 12% НСП 1% [20:12:01]line > о реализуемом товаре [20:12:01]line ОКРУГЛЕНИЕ: -0.61 [20:12:01]line ИТОГО: 1400.00 [20:12:01]line Внесено: 1400.00 [20:12:01]line СДАЧА: 0.00 [20:12:01]line НСП 1% : 12.39 [20:12:01]line НДС 12% : 148.74 [20:12:01]line Наличными: 1400.00 [20:12:01]line Безнал.: 0.00 [20:12:01]line Место: АЗС № 72 "Партнер Нефть" [20:12:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:12:01]line СНО: Общий режим [20:12:01]line Чек 289 12.07.2024 20:12 [20:12:01]line Смена: 445 ФФД: 1.0 [20:12:01]line ЗНМ: 0300000160 [20:12:01]line РНМ: 0000000000090829 [20:12:01]line Версия ККМ: 001 [20:12:01]line ФМ: 0000000000874718 [20:12:01]line ФД: 164368 [20:12:01]line ФПД: 173349361420257 [20:12:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164368&fm=173349361420257&tin=02508201610067®Number=0000000000090829&sum=140000 [20:12:01]OFD Sender: Processing packet 164368 [packets to send 104, broken 103] [20:12:01]ProducePacketName [20:12:01]name=ofd_packets/00164368 [20:12:01]OFD Sender: To server: pG, [20:12:01]CommunicateWithHost lk.salyk.kg:30040 [20:12:01]ConnectInit lk.salyk.kg [20:12:01]written 0, free lines is 4095 [20:12:01]Connected sock=10 [20:12:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AA 53 04 01 B1 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 10 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 82 02 00 35 04 06 00 9D A9 0B 1C 07 E1 A1 0A DE 8C BD AC 28 4A [20:12:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E5 45 47 00 97 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 34 37 31 38 10 04 04 00 10 82 02 00 F4 03 04 00 A3 34 91 66 B6 04 01 00 00 89 D9 48 43 BB 87 D5 A5 [20:12:02]CommunicateWithHost err = 0 [20:12:02]CheckOFDResponse [20:12:02]1017 (14) - 77093643461234 [20:12:02]1041 (16) - 0000000000874718 [20:12:02]1040 (4) - 164368 [20:12:02]1012 (4) - 12.07.2024 13:50 [20:12:02]1206 (1) - 0 [20:12:02]OFD Sender: Remove packet 164368 [20:12:02]ProducePacketName [20:12:02]name=ofd_packets/00164368 [20:12:02]NVStorageDeleteData [20:12:02]Write to MH i2c: 01 00 00 FB 07 02 [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: 01 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: 01 07 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 02 0D 18 [20:12:02]RasterBufferAndPrint [20:12:02]line [20:12:02]line [20:12:02]line [20:12:02]line [20:12:02]line [20:12:02]written 0, free lines is 3336 [20:12:02]MH_Cut [20:12:02]Write to MH i2c: D1 01 00 02 08 01 DC [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: D1 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: D1 01 00 [20:12:02]MH_I2C_Read... [20:12:02]Read from MH i2c: D1 01 00 02 08 00 DB [20:12:02]Write to MH i2c: 01 00 00 03 08 0B [20:12:02]Write i2c OK [20:12:02]MH_I2C_Read... [20:12:02]OFD Sender: No OFD packet to send [20:12:02]*** Cut start [20:12:02]*** Partial cut [20:12:02]*** CUTSNS_PIN = 1 [20:12:02]*** CUTSNS_PIN = 0 [20:12:03]*** Brake cut motor [20:12:03]Read from MH i2c: 01 [20:12:03]MH_I2C_Read... [20:12:03]*** Stop cut motor [20:12:03]*** Cut end [20:12:03]Read from MH i2c: 01 07 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 FF 0F 20 [20:12:03]process_action close_receipt done [20:12:03]requested_data is exist [20:12:03]produce_requested_data [20:12:03]requested_item fm.sn is exist - process it [20:12:03]wFMCommunicate request_size=4 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 11 00 00 [20:12:03]Write to MH i2c: E2 08 00 04 08 80 11 00 00 00 00 00 00 86 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 17 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 17 00 04 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DC [20:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:12:03]wFMCommunicate OK [20:12:03]requested_item fd.num is exist - process it [20:12:03]SAM_PROTO_GetFieldsCounters [20:12:03]wFMCommunicate request_size=4 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 13 00 00 [20:12:03]Write to MH i2c: E2 08 00 05 08 80 13 00 00 00 00 00 00 89 [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 62 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 62 00 05 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [20:12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:03]wFMCommunicate OK [20:12:03]SAM_PROTO_GetFieldsCounters done [20:12:03]requested_item shift.num is exist - process it [20:12:03]requested_item shift.opened is exist - process it [20:12:03]req_shift_opened [20:12:03]FM_GetShiftState [20:12:03]SAM_PROTO_GetShiftState [20:12:03]wFMCommunicate request_size=4 [20:12:03]MH_SAM_APDU [20:12:03]CAPDU: 80 13 01 00 [20:12:03]Write to MH i2c: E2 08 00 06 08 80 13 01 00 00 00 00 00 8B [20:12:03]Write i2c OK [20:12:03]MH_I2C_Read... [20:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:03]Read from MH i2c: E2 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 0E 00 [20:12:03]MH_I2C_Read... [20:12:03]Read from MH i2c: E2 0E 00 06 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D5 [20:12:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:12:03]wFMCommunicate OK [20:12:03]SAM_PROTO_GetShiftState done [20:12:03]FM_GetShiftState done [20:12:03]req_shift_opened done [20:12:03]requested_item shift.open_date is exist - process it [20:12:03]req_shift_open_date [20:12:03]req_shift_open_date done [20:12:03]produce_requested_data done [20:12:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164368,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:12:03]process_action_free close_receipt [20:12:03]json_value_free [20:12:03]json_value_free done [20:12:03]process_json_proto returns [20:12:03]Send response to host [20:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164368,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:12:03]free response buf [20:12:03]execute_script done [20:12:03]execute_script returns [20:12:03]free content buf [20:12:03]Sock 7.Close socket [20:12:03]Sock 7.Thread stoped [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:29]accept exits with 9 [20:12:29]New connection [20:12:29]New thread 3067534692 created [20:12:29]Thread 3067391332 joined [20:12:29]Waiting for new connection... [20:12:29] Sock 9.Parse request [20:12:29]Sock 9.Check first char [20:12:29]Sock 9.First char is OK [20:12:29]request: POST /json_proto HTTP/1.0 [20:12:29]Method: POST [20:12:29]URL: /json_proto [20:12:29]Method is POST - this is cgi request [20:12:29]url: /json_proto [20:12:29]query_string will be loaded in cgi processing [20:12:29]execute_cgi json_proto POST (null) [20:12:29]execute_cgi path=json_proto method=POST [20:12:29]POST find Content-Length [20:12:29]Host: 172.17.56.4:8080 [20:12:29]Content-Length: 682 [20:12:29]Content-Type: application/json [20:12:29] [20:12:29]POST finish read [20:12:29]Found Content-Length = 682 [20:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:12:29]execute_script... [20: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)458454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:12:29]POST & json_proto [20:12:29]process_json_proto [20:12:29]json parsed OK: [20:12:29]protocol is kg_v1.0 [20:12:29]action value=close_receipt [20:12:29]process_action close_receipt [20:12:29]cmd_close_receipt [20:12:29]MH_GetDate [20:12:29]Write to MH i2c: F0 00 00 07 08 FE [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: F0 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: F0 09 00 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: F0 09 00 07 08 00 2E 8E 91 66 C9 DC B2 64 75 [20:12:29]GetLastDocTimeStamp 1720815120 [20:12:29]current date 1720815150 [20:12:29]FM_GetShiftState [20:12:29]SAM_PROTO_GetShiftState [20:12:29]wFMCommunicate request_size=4 [20:12:29]MH_SAM_APDU [20:12:29]CAPDU: 80 13 01 00 [20:12:29]Write to MH i2c: E2 08 00 08 08 80 13 01 00 00 00 00 00 8D [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:29]Read from MH i2c: E2 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: E2 0E 00 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: E2 0E 00 08 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D7 [20:12:29]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:12:29]wFMCommunicate OK [20:12:29]SAM_PROTO_GetShiftState done [20:12:29]FM_GetShiftState done [20:12:29]opened in 1720744654 [20:12:29]opened+sec_in_day 1720831054 [20:12:29]quantity*price = 100016 [20:12:29]sum+1 = 100017 [20:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 290 12.07.2024 20:12 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164369 ФПД: 64116302936576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201230&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164369&fm=64116302936576&tin=02508201610067®Number=0000000000090829&sum=100000 [20:12:31]StoreToDocumentArchive [20:12:31]shift 445 fd 164369 [20:12:31]save to /storage/0445/doc_00164369 [20:12:31]save last doc name /storage/0445/doc_00164369 to /storage/kkm_last_doc_name [20:12:31]save OK [20:12:31]Clear old archive folders... [20:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:31]tlvbuf is 01562FE0 [20:12:31]SAM_PROTO_ClearQueue [20:12:31]wFMCommunicate request_size=4 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 09 00 00 [20:12:31]Write to MH i2c: E2 08 00 15 08 80 09 00 00 00 00 00 00 8F [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [20:12:31]RAPDU: 90 00 [20:12:31]wFMCommunicate OK [20:12:31]SAM_PROTO_ClearQueue done [20:12:31]KKMCreateOFDPacket [20:12:31]OFDProtocolAddRootSTLVToBuf [20:12:31]FM_MakeSignedData [20:12:31]FM_MakeSignedData [20:12:31]SAM_PROTO_SignData [20:12:31]wFMCommunicate request_size=4 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 0D 01 02 [20:12:31]Write to MH i2c: E2 08 00 16 08 80 0D 01 02 00 00 00 00 97 [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [20:12:31]RAPDU: 90 00 [20:12:31]wFMCommunicate OK [20:12:31]wFMCommunicate request_size=255 [20:12:31]MH_SAM_APDU [20:12: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 2E 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 82 02 00 35 04 06 00 3A [20:12:31]Write to MH i2c: E2 02 01 17 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 2E 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 82 02 00 35 04 06 00 3A 00 00 15 [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 17 08 00 90 00 93 [20:12:31]RAPDU: 90 00 [20:12:31]wFMCommunicate OK [20:12:31]wFMCommunicate request_size=10 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 0D 02 02 05 50 3D 75 FA 00 [20:12:31]Write to MH i2c: E2 0D 00 18 08 80 0D 02 02 05 00 50 3D 75 FA 00 00 00 A0 [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 18 08 00 90 00 94 [20:12:31]RAPDU: 90 00 [20:12:31]wFMCommunicate OK [20:12:31]wFMCommunicate request_size=4 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 0D 03 02 [20:12:31]Write to MH i2c: E2 08 00 19 08 80 0D 03 02 00 00 00 00 9C [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 0B 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 0B 00 19 08 00 14 12 DD F6 65 8B 89 4C 90 00 5B [20:12:31]RAPDU: 14 12 DD F6 65 8B 89 4C 90 00 [20:12:31]wFMCommunicate OK [20:12:31]SAM_PROTO_SignData done [20:12:31]FM_MakeSignedData done [20:12:31]CreateOFDProtocolMessage [20:12:31]wFMCommunicate request_size=4 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 11 00 00 [20:12:31]Write to MH i2c: E2 08 00 1A 08 80 11 00 00 00 00 00 00 9C [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 17 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 17 00 1A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [20:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:12:31]wFMCommunicate OK [20:12:31]CreateOFDProtocolMessage done [20:12:31]OFDSenderStorePacket 164369 [20:12:31]StoreOFDPacket docnum=164369 [20:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 D6 07 01 A6 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 2E 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 82 02 00 35 04 06 00 3A 50 3D 75 FA 00 14 12 DD F6 65 8B 89 4C [20:12:31]CheckFolder [20:12:31]dirname=/storage/ofd_packets [20:12:31]CheckFolder done [20:12:31]ProducePacketName [20:12:31]name=ofd_packets/00164369 [20:12:31]NVStorageSaveData ofd_packets/00164369 [20:12:31]File name is /storage/ofd_packets/00164369 [20:12:31]Write 301 bytes [20:12:31]NVStorageSaveData done [20:12:31]OFDSenderStorePacket done [20:12:31]KKMCreateOFDPacket done [20:12:31]NVStorageSaveData kkm_last_timestamp [20:12:31]File name is /storage/kkm_last_timestamp [20:12:31]Write 4 bytes [20:12:31]NVStorageSaveData done [20:12:31]ExternCall_PrintAddStr [20:12:31]wPrintStart [20:12:31]Write to MH i2c: 01 00 00 1B 08 23 [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: 01 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: 01 07 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 FF 0F 38 [20:12:31]RasterBufferAndPrint [20:12:31]line Счет N : (1)458454 [20:12:31]line ИНН: 02508201610067 [20:12:31]line Контрольно-Кассовый Чек [20:12:31]line ПРОДАЖА [20:12:31]line ТРК (МРК, ГНК) : 12 [20:12:31]line Товар: 2710124130 [20:12:31]line Аи-92-К-5 [20:12:31]line 15.200 * 65.80 [20:12:31]line = 1000.16 [20:12:31]line НДС 12% НСП 1% [20:12:31]line > о реализуемом товаре [20:12:31]line ОКРУГЛЕНИЕ: -0.16 [20:12:31]line ИТОГО: 1000.00 [20:12:31]line Внесено: 1000.00 [20:12:31]line СДАЧА: 0.00 [20:12:31]line НСП 1% : 8.85 [20:12:31]line НДС 12% : 106.21 [20:12:31]line Наличными: 1000.00 [20:12:31]line Безнал.: 0.00 [20:12:31]line Место: АЗС № 72 "Партнер Нефть" [20:12:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:12:31]line СНО: Общий режим [20:12:31]line Чек 290 12.07.2024 20:12 [20:12:31]line Смена: 445 ФФД: 1.0 [20:12:31]line ЗНМ: 0300000160 [20:12:31]line РНМ: 0000000000090829 [20:12:31]line Версия ККМ: 001 [20:12:31]line ФМ: 0000000000874718 [20:12:31]line ФД: 164369 [20:12:31]line ФПД: 64116302936576 [20:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201230&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164369&fm=64116302936576&tin=02508201610067®Number=0000000000090829&sum=100000 [20:12:32]OFD Sender: Processing packet 164369 [packets to send 104, broken 103] [20:12:32]ProducePacketName [20:12:32]name=ofd_packets/00164369 [20:12:32]OFD Sender: To server: pG, [20:12:32]CommunicateWithHost lk.salyk.kg:30040 [20:12:32]ConnectInit lk.salyk.kg [20:12:32]written 0, free lines is 4095 [20:12:32]Connected sock=10 [20:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 D6 07 01 A6 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 2E 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 82 02 00 35 04 06 00 3A 50 3D 75 FA 00 14 12 DD F6 65 8B 89 4C [20:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 58 32 47 00 30 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 34 37 31 38 10 04 04 00 11 82 02 00 F4 03 04 00 C1 34 91 66 B6 04 01 00 00 42 CA 08 AC C5 B2 16 23 [20:12:32]CommunicateWithHost err = 0 [20:12:32]CheckOFDResponse [20:12:32]1017 (14) - 77093643461234 [20:12:32]1041 (16) - 0000000000874718 [20:12:32]1040 (4) - 164369 [20:12:32]1012 (4) - 12.07.2024 13:50 [20:12:32]1206 (1) - 0 [20:12:32]OFD Sender: Remove packet 164369 [20:12:32]ProducePacketName [20:12:32]name=ofd_packets/00164369 [20:12:32]NVStorageDeleteData [20:12:32]Write to MH i2c: 01 00 00 45 08 4D [20:12:32]Write i2c OK [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: 01 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: 01 07 00 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: 01 07 00 45 08 00 00 00 00 00 FD 0C 5D [20:12:32]RasterBufferAndPrint [20:12:32]line [20:12:32]line [20:12:32]line [20:12:32]line [20:12:32]line [20:12:32]written 0, free lines is 3331 [20:12:32]MH_Cut [20:12:32]Write to MH i2c: D1 01 00 4C 08 01 26 [20:12:32]Write i2c OK [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: D1 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: D1 01 00 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: D1 01 00 4C 08 00 25 [20:12:32]Write to MH i2c: 01 00 00 4D 08 55 [20:12:32]Write i2c OK [20:12:32]MH_I2C_Read... [20:12:32]OFD Sender: No OFD packet to send [20:12:33]*** Cut start [20:12:33]*** Partial cut [20:12:33]*** CUTSNS_PIN = 1 [20:12:33]*** CUTSNS_PIN = 0 [20:12:33]*** Brake cut motor [20:12:33]Read from MH i2c: 01 [20:12:33]MH_I2C_Read... [20:12:33]*** Stop cut motor [20:12:33]*** Cut end [20:12:33]Read from MH i2c: 01 07 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [20:12:33]process_action close_receipt done [20:12:33]requested_data is exist [20:12:33]produce_requested_data [20:12:33]requested_item fm.sn is exist - process it [20:12:33]wFMCommunicate request_size=4 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 11 00 00 [20:12:33]Write to MH i2c: E2 08 00 4E 08 80 11 00 00 00 00 00 00 D0 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 17 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 17 00 4E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 26 [20:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:12:33]wFMCommunicate OK [20:12:33]requested_item fd.num is exist - process it [20:12:33]SAM_PROTO_GetFieldsCounters [20:12:33]wFMCommunicate request_size=4 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 13 00 00 [20:12:33]Write to MH i2c: E2 08 00 4F 08 80 13 00 00 00 00 00 00 D3 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 62 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 62 00 4F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 82 02 00 0E 04 04 00 BD 01 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 B6 [20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 82 02 00 0E 04 04 00 BD 01 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 [20:12:33]wFMCommunicate OK [20:12:33]SAM_PROTO_GetFieldsCounters done [20:12:33]requested_item shift.num is exist - process it [20:12:33]requested_item shift.opened is exist - process it [20:12:33]req_shift_opened [20:12:33]FM_GetShiftState [20:12:33]SAM_PROTO_GetShiftState [20:12:33]wFMCommunicate request_size=4 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 13 01 00 [20:12:33]Write to MH i2c: E2 08 00 50 08 80 13 01 00 00 00 00 00 D5 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 0E 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 0E 00 50 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1F [20:12:33]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:12:33]wFMCommunicate OK [20:12:33]SAM_PROTO_GetShiftState done [20:12:33]FM_GetShiftState done [20:12:33]req_shift_opened done [20:12:33]requested_item shift.open_date is exist - process it [20:12:33]req_shift_open_date [20:12:33]req_shift_open_date done [20:12:33]produce_requested_data done [20:12:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164369,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:12:33]process_action_free close_receipt [20:12:33]json_value_free [20:12:33]json_value_free done [20:12:33]process_json_proto returns [20:12:33]Send response to host [20:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164369,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:12:33]free response buf [20:12:33]execute_script done [20:12:33]execute_script returns [20:12:33]free content buf [20:12:33]Sock 9.Close socket [20:12:33]Sock 9.Thread stoped [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:20]accept exits with 7 [20:13:20]New connection [20:13:20]New thread 3067391332 created [20:13:20]Thread 3067534692 joined [20:13:20]Waiting for new connection... [20:13:20] Sock 7.Parse request [20:13:20]Sock 7.Check first char [20:13:20]Sock 7.First char is OK [20:13:20]request: POST /json_proto HTTP/1.0 [20:13:20]Method: POST [20:13:20]URL: /json_proto [20:13:20]Method is POST - this is cgi request [20:13:20]url: /json_proto [20:13:20]query_string will be loaded in cgi processing [20:13:20]execute_cgi json_proto POST (null) [20:13:20]execute_cgi path=json_proto method=POST [20:13:20]POST find Content-Length [20:13:20]Host: 172.17.56.4:8080 [20:13:20]Content-Length: 790 [20:13:20]Content-Type: application/json [20:13:20] [20:13:20]POST finish read [20:13:20]Found Content-Length = 790 [20:13:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.980, "sum" : 520.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 520.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:20]execute_script... [20:13: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)458455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.980, "sum" : 520.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 520.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:20]POST & json_proto [20:13:20]process_json_proto [20:13:20]json parsed OK: [20:13:20]protocol is kg_v1.0 [20:13:20]action value=close_receipt [20:13:20]process_action close_receipt [20:13:20]cmd_close_receipt [20:13:20]MH_GetDate [20:13:20]Write to MH i2c: F0 00 00 51 08 48 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: F0 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: F0 09 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: F0 09 00 51 08 00 61 8E 91 66 C9 DC B2 64 F2 [20:13:20]GetLastDocTimeStamp 1720815150 [20:13:20]current date 1720815201 [20:13:20]FM_GetShiftState [20:13:20]SAM_PROTO_GetShiftState [20:13:20]wFMCommunicate request_size=4 [20:13:20]MH_SAM_APDU [20:13:20]CAPDU: 80 13 01 00 [20:13:20]Write to MH i2c: E2 08 00 52 08 80 13 01 00 00 00 00 00 D7 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:20]Read from MH i2c: E2 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 0E 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 0E 00 52 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 21 [20:13:20]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:13:20]wFMCommunicate OK [20:13:20]SAM_PROTO_GetShiftState done [20:13:20]FM_GetShiftState done [20:13:20]opened in 1720744654 [20:13:20]opened+sec_in_day 1720831054 [20:13:20]quantity*price = 52045 [20:13:20]sum+1 = 52047 [20:13:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 520.46 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 0.00 Безнал.: 520.46 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 291 12.07.2024 20:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164370 ФПД: 263677479119056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201321&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164370&fm=263677479119056&tin=02508201610067®Number=0000000000090829&sum=52046 [20:13:21]StoreToDocumentArchive [20:13:21]shift 445 fd 164370 [20:13:21]save to /storage/0445/doc_00164370 [20:13:21]save last doc name /storage/0445/doc_00164370 to /storage/kkm_last_doc_name [20:13:21]save OK [20:13:21]Clear old archive folders... [20:13:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:21]tlvbuf is 0159B3A0 [20:13:21]SAM_PROTO_ClearQueue [20:13:21]wFMCommunicate request_size=4 [20:13:21]MH_SAM_APDU [20:13:21]CAPDU: 80 09 00 00 [20:13:21]Write to MH i2c: E2 08 00 5F 08 80 09 00 00 00 00 00 00 D9 [20:13:21]Write i2c OK [20:13:21]MH_I2C_Read... [20:13:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:21]Read from MH i2c: E2 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: E2 03 00 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [20:13:21]RAPDU: 90 00 [20:13:21]wFMCommunicate OK [20:13:21]SAM_PROTO_ClearQueue done [20:13:21]KKMCreateOFDPacket [20:13:21]OFDProtocolAddRootSTLVToBuf [20:13:21]FM_MakeSignedData [20:13:21]FM_MakeSignedData [20:13:21]SAM_PROTO_SignData [20:13:21]wFMCommunicate request_size=4 [20:13:21]MH_SAM_APDU [20:13:21]CAPDU: 80 0D 01 02 [20:13:21]Write to MH i2c: E2 08 00 60 08 80 0D 01 02 00 00 00 00 E1 [20:13:21]Write i2c OK [20:13:21]MH_I2C_Read... [20:13:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:21]Read from MH i2c: E2 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: E2 03 00 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [20:13:21]RAPDU: 90 00 [20:13:21]wFMCommunicate OK [20:13:21]wFMCommunicate request_size=255 [20:13:21]MH_SAM_APDU [20:13: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 2C 1F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 4E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 61 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 82 02 00 35 04 06 00 EF [20:13:21]Write to MH i2c: E2 02 01 61 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 1F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 4E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 61 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 82 02 00 35 04 06 00 EF 00 00 E1 [20:13:21]Write i2c OK [20:13:21]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 61 08 00 90 00 DD [20:13:22]RAPDU: 90 00 [20:13:22]wFMCommunicate OK [20:13:22]wFMCommunicate request_size=10 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 0D 02 02 05 D0 32 7A 68 D0 [20:13:22]Write to MH i2c: E2 0D 00 62 08 80 0D 02 02 05 00 D0 32 7A 68 D0 00 00 A2 [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 03 00 62 08 00 90 00 DE [20:13:22]RAPDU: 90 00 [20:13:22]wFMCommunicate OK [20:13:22]wFMCommunicate request_size=4 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 0D 03 02 [20:13:22]Write to MH i2c: E2 08 00 63 08 80 0D 03 02 00 00 00 00 E6 [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 0B 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 0B 00 63 08 00 46 F4 E7 10 FD 5A 79 A9 90 00 91 [20:13:22]RAPDU: 46 F4 E7 10 FD 5A 79 A9 90 00 [20:13:22]wFMCommunicate OK [20:13:22]SAM_PROTO_SignData done [20:13:22]FM_MakeSignedData done [20:13:22]CreateOFDProtocolMessage [20:13:22]wFMCommunicate request_size=4 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 11 00 00 [20:13:22]Write to MH i2c: E2 08 00 64 08 80 11 00 00 00 00 00 00 E6 [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 17 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 17 00 64 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [20:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:13:22]wFMCommunicate OK [20:13:22]CreateOFDProtocolMessage done [20:13:22]OFDSenderStorePacket 164370 [20:13:22]StoreOFDPacket docnum=164370 [20:13:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD CD 07 01 06 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 1F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 4E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 61 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 82 02 00 35 04 06 00 EF D0 32 7A 68 D0 46 F4 E7 10 FD 5A 79 A9 [20:13:22]CheckFolder [20:13:22]dirname=/storage/ofd_packets [20:13:22]CheckFolder done [20:13:22]ProducePacketName [20:13:22]name=ofd_packets/00164370 [20:13:22]NVStorageSaveData ofd_packets/00164370 [20:13:22]File name is /storage/ofd_packets/00164370 [20:13:22]Write 301 bytes [20:13:22]NVStorageSaveData done [20:13:22]OFDSenderStorePacket done [20:13:22]KKMCreateOFDPacket done [20:13:22]NVStorageSaveData kkm_last_timestamp [20:13:22]File name is /storage/kkm_last_timestamp [20:13:22]Write 4 bytes [20:13:22]NVStorageSaveData done [20:13:22]ExternCall_PrintAddStr [20:13:22]wPrintStart [20:13:22]Write to MH i2c: 01 00 00 65 08 6D [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 07 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 07 00 65 08 00 00 00 00 00 FF 0F 82 [20:13:22]RasterBufferAndPrint [20:13:22]line Счет N : (1)458455 [20:13:22]line ИНН: 02508201610067 [20:13:22]line Контрольно-Кассовый Чек [20:13:22]line ПРОДАЖА [20:13:22]line ТРК (МРК, ГНК) : 12 [20:13:22]line Товар: 2710124130 [20:13:22]line Аи-92-К-5 [20:13:22]line 7.980 * 65.22 [20:13:22]line = 520.46 [20:13:22]line НДС 12% НСП 1% [20:13:22]line > о реализуемом товаре [20:13:22]line ИТОГО: 520.46 [20:13:22]line НСП 1% : 4.61 [20:13:22]line НДС 12% : 55.27 [20:13:22]line Наличными: 0.00 [20:13:22]line Безнал.: 520.46 [20:13:22]line Место: АЗС № 72 "Партнер Нефть" [20:13:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:13:22]line СНО: Общий режим [20:13:22]line Чек 291 12.07.2024 20:13 [20:13:22]line Смена: 445 ФФД: 1.0 [20:13:22]line ЗНМ: 0300000160 [20:13:22]line РНМ: 0000000000090829 [20:13:22]line Версия ККМ: 001 [20:13:22]line Платежная система: KICB Банк [20:13:22]line ФМ: 0000000000874718 [20:13:22]line ФД: 164370 [20:13:22]line ФПД: 263677479119056 [20:13:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201321&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164370&fm=263677479119056&tin=02508201610067®Number=0000000000090829&sum=52046 [20:13:22]written 0, free lines is 4095 [20:13:22]OFD Sender: Processing packet 164370 [packets to send 104, broken 103] [20:13:22]ProducePacketName [20:13:22]name=ofd_packets/00164370 [20:13:22]OFD Sender: To server: pG, [20:13:22]CommunicateWithHost lk.salyk.kg:30040 [20:13:22]ConnectInit lk.salyk.kg [20:13:22]Connected sock=9 [20:13:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD CD 07 01 06 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 1F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 4E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 61 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 82 02 00 35 04 06 00 EF D0 32 7A 68 D0 46 F4 E7 10 FD 5A 79 A9 [20:13:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 17 72 47 00 E4 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 34 37 31 38 10 04 04 00 12 82 02 00 F4 03 04 00 F4 34 91 66 B6 04 01 00 00 88 7D 2E 17 03 2D AD 70 [20:13:22]CommunicateWithHost err = 0 [20:13:22]CheckOFDResponse [20:13:22]1017 (14) - 77093643461234 [20:13:22]1041 (16) - 0000000000874718 [20:13:22]1040 (4) - 164370 [20:13:22]1012 (4) - 12.07.2024 13:51 [20:13:22]1206 (1) - 0 [20:13:22]OFD Sender: Remove packet 164370 [20:13:22]ProducePacketName [20:13:22]name=ofd_packets/00164370 [20:13:22]NVStorageDeleteData [20:13:22]Write to MH i2c: 01 00 00 8E 08 96 [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 07 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 07 00 8E 08 00 00 00 00 00 18 0D C2 [20:13:22]RasterBufferAndPrint [20:13:22]line [20:13:22]line [20:13:22]line [20:13:22]line [20:13:22]line [20:13:22]written 0, free lines is 3358 [20:13:22]MH_Cut [20:13:22]Write to MH i2c: D1 01 00 95 08 01 6F [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: D1 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: D1 01 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: D1 01 00 95 08 00 6E [20:13:22]Write to MH i2c: 01 00 00 96 08 9E [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:23]OFD Sender: No OFD packet to send [20:13:23]*** Cut start [20:13:23]*** Partial cut [20:13:23]*** CUTSNS_PIN = 1 [20:13:23]*** CUTSNS_PIN = 0 [20:13:23]*** Brake cut motor [20:13:23]Read from MH i2c: 01 [20:13:23]MH_I2C_Read... [20:13:23]*** Stop cut motor [20:13:23]*** Cut end [20:13:23]Read from MH i2c: 01 07 00 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [20:13:23]process_action close_receipt done [20:13:23]requested_data is exist [20:13:23]produce_requested_data [20:13:23]requested_item fm.sn is exist - process it [20:13:23]wFMCommunicate request_size=4 [20:13:23]MH_SAM_APDU [20:13:23]CAPDU: 80 11 00 00 [20:13:23]Write to MH i2c: E2 08 00 97 08 80 11 00 00 00 00 00 00 19 [20:13:23]Write i2c OK [20:13:23]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 17 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 17 00 97 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [20:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:13:24]wFMCommunicate OK [20:13:24]requested_item fd.num is exist - process it [20:13:24]SAM_PROTO_GetFieldsCounters [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 13 00 00 [20:13:24]Write to MH i2c: E2 08 00 98 08 80 13 00 00 00 00 00 00 1C [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 62 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 62 00 98 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [20:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:24]wFMCommunicate OK [20:13:24]SAM_PROTO_GetFieldsCounters done [20:13:24]requested_item shift.num is exist - process it [20:13:24]requested_item shift.opened is exist - process it [20:13:24]req_shift_opened [20:13:24]FM_GetShiftState [20:13:24]SAM_PROTO_GetShiftState [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 13 01 00 [20:13:24]Write to MH i2c: E2 08 00 99 08 80 13 01 00 00 00 00 00 1E [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:24]Read from MH i2c: E2 0E 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 0E 00 99 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 68 [20:13:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:13:24]wFMCommunicate OK [20:13:24]SAM_PROTO_GetShiftState done [20:13:24]FM_GetShiftState done [20:13:24]req_shift_opened done [20:13:24]requested_item shift.open_date is exist - process it [20:13:24]req_shift_open_date [20:13:24]req_shift_open_date done [20:13:24]produce_requested_data done [20:13:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164370,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:13:24]process_action_free close_receipt [20:13:24]json_value_free [20:13:24]json_value_free done [20:13:24]process_json_proto returns [20:13:24]Send response to host [20:13:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164370,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:13:24]free response buf [20:13:24]execute_script done [20:13:24]execute_script returns [20:13:24]free content buf [20:13:24]Sock 7.Close socket [20:13:24]Sock 7.Thread stoped [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:55]accept exits with 10 [20:14:55]New connection [20:14:55]New thread 3067534692 created [20:14:55]Thread 3067391332 joined [20:14:55]Waiting for new connection... [20:14:55] Sock 10.Parse request [20:14:55]Sock 10.Check first char [20:14:55]Sock 10.First char is OK [20:14:55]request: POST /json_proto HTTP/1.0 [20:14:55]Method: POST [20:14:55]URL: /json_proto [20:14:55]Method is POST - this is cgi request [20:14:55]url: /json_proto [20:14:55]query_string will be loaded in cgi processing [20:14:55]execute_cgi json_proto POST (null) [20:14:55]execute_cgi path=json_proto method=POST [20:14:55]POST find Content-Length [20:14:55]Host: 172.17.56.4:8080 [20:14:55]Content-Length: 678 [20:14:55]Content-Type: application/json [20:14:55] [20:14:55]POST finish read [20:14:55]Found Content-Length = 678 [20:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.190, "sum" : 670.50, "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" ] } } [20:14:55]execute_script... [20:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.190, "sum" : 670.50, "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" ] } } [20:14:55]POST & json_proto [20:14:55]process_json_proto [20:14:55]json parsed OK: [20:14:55]protocol is kg_v1.0 [20:14:55]action value=close_receipt [20:14:55]process_action close_receipt [20:14:55]cmd_close_receipt [20:14:55]MH_GetDate [20:14:55]Write to MH i2c: F0 00 00 9A 08 91 [20:14:55]Write i2c OK [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: F0 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: F0 09 00 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: F0 09 00 9A 08 00 C0 8E 91 66 C9 DC B2 64 9A [20:14:55]GetLastDocTimeStamp 1720815201 [20:14:55]current date 1720815296 [20:14:55]FM_GetShiftState [20:14:55]SAM_PROTO_GetShiftState [20:14:55]wFMCommunicate request_size=4 [20:14:55]MH_SAM_APDU [20:14:55]CAPDU: 80 13 01 00 [20:14:55]Write to MH i2c: E2 08 00 9B 08 80 13 01 00 00 00 00 00 20 [20:14:55]Write i2c OK [20:14:55]MH_I2C_Read... [20:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:55]Read from MH i2c: E2 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: E2 0E 00 [20:14:55]MH_I2C_Read... [20:14:55]Read from MH i2c: E2 0E 00 9B 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6A [20:14:55]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:14:55]wFMCommunicate OK [20:14:55]SAM_PROTO_GetShiftState done [20:14:55]FM_GetShiftState done [20:14:55]opened in 1720744654 [20:14:55]opened+sec_in_day 1720831054 [20:14:55]quantity*price = 67050 [20:14:55]sum+1 = 67051 [20:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.20 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 292 12.07.2024 20:14 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164371 ФПД: 248280461680355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201456&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164371&fm=248280461680355&tin=02508201610067®Number=0000000000090829&sum=67000 [20:14:56]StoreToDocumentArchive [20:14:56]shift 445 fd 164371 [20:14:56]save to /storage/0445/doc_00164371 [20:14:56]save last doc name /storage/0445/doc_00164371 to /storage/kkm_last_doc_name [20:14:56]save OK [20:14:56]Clear old archive folders... [20:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:56]tlvbuf is 0159B3B0 [20:14:56]SAM_PROTO_ClearQueue [20:14:56]wFMCommunicate request_size=4 [20:14:56]MH_SAM_APDU [20:14:56]CAPDU: 80 09 00 00 [20:14:56]Write to MH i2c: E2 08 00 A8 08 80 09 00 00 00 00 00 00 22 [20:14:56]Write i2c OK [20:14:56]MH_I2C_Read... [20:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:56]Read from MH i2c: E2 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 03 00 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 03 00 A8 08 00 90 00 24 [20:14:56]RAPDU: 90 00 [20:14:56]wFMCommunicate OK [20:14:56]SAM_PROTO_ClearQueue done [20:14:56]KKMCreateOFDPacket [20:14:56]OFDProtocolAddRootSTLVToBuf [20:14:56]FM_MakeSignedData [20:14:56]FM_MakeSignedData [20:14:56]SAM_PROTO_SignData [20:14:56]wFMCommunicate request_size=4 [20:14:56]MH_SAM_APDU [20:14:56]CAPDU: 80 0D 01 02 [20:14:56]Write to MH i2c: E2 08 00 A9 08 80 0D 01 02 00 00 00 00 2A [20:14:56]Write i2c OK [20:14:56]MH_I2C_Read... [20:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:56]Read from MH i2c: E2 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 03 00 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 03 00 A9 08 00 90 00 25 [20:14:56]RAPDU: 90 00 [20:14:56]wFMCommunicate OK [20:14:56]wFMCommunicate request_size=255 [20:14:56]MH_SAM_APDU [20:14: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 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 24 01 00 00 F4 03 04 00 C0 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 82 02 00 35 04 06 00 E1 [20:14:56]Write to MH i2c: E2 02 01 AA 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 24 01 00 00 F4 03 04 00 C0 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 82 02 00 35 04 06 00 E1 00 00 46 [20:14:56]Write i2c OK [20:14:56]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=10 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 02 02 05 CF 4C B9 1E E3 [20:14:57]Write to MH i2c: E2 0D 00 AB 08 80 0D 02 02 05 00 CF 4C B9 1E E3 00 00 0C [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 03 02 [20:14:57]Write to MH i2c: E2 08 00 AC 08 80 0D 03 02 00 00 00 00 2F [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 0B 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 0B 00 AC 08 00 4A 33 FF 34 CE 81 C2 65 90 00 56 [20:14:57]RAPDU: 4A 33 FF 34 CE 81 C2 65 90 00 [20:14:57]wFMCommunicate OK [20:14:57]SAM_PROTO_SignData done [20:14:57]FM_MakeSignedData done [20:14:57]CreateOFDProtocolMessage [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 11 00 00 [20:14:57]Write to MH i2c: E2 08 00 AD 08 80 11 00 00 00 00 00 00 2F [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 17 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 17 00 AD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [20:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:14:57]wFMCommunicate OK [20:14:57]CreateOFDProtocolMessage done [20:14:57]OFDSenderStorePacket 164371 [20:14:57]StoreOFDPacket docnum=164371 [20:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B CA 07 01 CD 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 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 24 01 00 00 F4 03 04 00 C0 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 82 02 00 35 04 06 00 E1 CF 4C B9 1E E3 4A 33 FF 34 CE 81 C2 65 [20:14:57]CheckFolder [20:14:57]dirname=/storage/ofd_packets [20:14:57]CheckFolder done [20:14:57]ProducePacketName [20:14:57]name=ofd_packets/00164371 [20:14:57]NVStorageSaveData ofd_packets/00164371 [20:14:57]File name is /storage/ofd_packets/00164371 [20:14:57]Write 301 bytes [20:14:57]NVStorageSaveData done [20:14:57]OFDSenderStorePacket done [20:14:57]KKMCreateOFDPacket done [20:14:57]NVStorageSaveData kkm_last_timestamp [20:14:57]File name is /storage/kkm_last_timestamp [20:14:57]Write 4 bytes [20:14:57]NVStorageSaveData done [20:14:57]ExternCall_PrintAddStr [20:14:57]wPrintStart [20:14:57]Write to MH i2c: 01 00 00 AE 08 B6 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: 01 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: 01 07 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: 01 07 00 AE 08 00 00 00 00 00 FF 0F CB [20:14:57]RasterBufferAndPrint [20:14:57]line Счет N : (1)458456 [20:14:57]line ИНН: 02508201610067 [20:14:57]line Контрольно-Кассовый Чек [20:14:57]line ПРОДАЖА [20:14:57]line ТРК (МРК, ГНК) : 22 [20:14:57]line Товар: 2710124130 [20:14:57]line Аи-92-К-5 [20:14:57]line 10.190 * 65.80 [20:14:57]line = 670.50 [20:14:57]line НДС 12% НСП 1% [20:14:57]line > о реализуемом товаре [20:14:57]line ОКРУГЛЕНИЕ: -0.50 [20:14:57]line ИТОГО: 670.00 [20:14:57]line Внесено: 670.00 [20:14:57]line СДАЧА: 0.00 [20:14:57]line НСП 1% : 5.93 [20:14:57]line НДС 12% : 71.20 [20:14:57]line Наличными: 670.00 [20:14:57]line Безнал.: 0.00 [20:14:57]line Место: АЗС № 72 "Партнер Нефть" [20:14:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:14:57]line СНО: Общий режим [20:14:57]line Чек 292 12.07.2024 20:14 [20:14:57]line Смена: 445 ФФД: 1.0 [20:14:57]line ЗНМ: 0300000160 [20:14:57]line РНМ: 0000000000090829 [20:14:57]line Версия ККМ: 001 [20:14:57]line ФМ: 0000000000874718 [20:14:57]line ФД: 164371 [20:14:57]line ФПД: 248280461680355 [20:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201456&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164371&fm=248280461680355&tin=02508201610067®Number=0000000000090829&sum=67000 [20:14:57]OFD Sender: Processing packet 164371 [packets to send 104, broken 103] [20:14:57]ProducePacketName [20:14:57]name=ofd_packets/00164371 [20:14:57]OFD Sender: To server: pG, [20:14:57]CommunicateWithHost lk.salyk.kg:30040 [20:14:57]ConnectInit lk.salyk.kg [20:14:57]written 0, free lines is 4095 [20:14:57]Connected sock=9 [20:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B CA 07 01 CD 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 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 24 01 00 00 F4 03 04 00 C0 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 82 02 00 35 04 06 00 E1 CF 4C B9 1E E3 4A 33 FF 34 CE 81 C2 65 [20:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 22 D8 47 00 EE 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 34 37 31 38 10 04 04 00 13 82 02 00 F4 03 04 00 53 35 91 66 B6 04 01 00 00 69 CD DE 6E 03 54 A6 57 [20:14:58]CommunicateWithHost err = 0 [20:14:58]CheckOFDResponse [20:14:58]1017 (14) - 77093643461234 [20:14:58]1041 (16) - 0000000000874718 [20:14:58]1040 (4) - 164371 [20:14:58]1012 (4) - 12.07.2024 13:53 [20:14:58]1206 (1) - 0 [20:14:58]OFD Sender: Remove packet 164371 [20:14:58]ProducePacketName [20:14:58]name=ofd_packets/00164371 [20:14:58]NVStorageDeleteData [20:14:58]Write to MH i2c: 01 00 00 D8 08 E0 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 08 0D FC [20:14:58]RasterBufferAndPrint [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]written 0, free lines is 3342 [20:14:58]MH_Cut [20:14:58]Write to MH i2c: D1 01 00 DF 08 01 B9 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 01 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 01 00 DF 08 00 B8 [20:14:58]Write to MH i2c: 01 00 00 E0 08 E8 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]OFD Sender: No OFD packet to send [20:14:58]*** Cut start [20:14:58]*** Partial cut [20:14:58]*** CUTSNS_PIN = 1 [20:14:58]*** CUTSNS_PIN = 0 [20:14:59]*** Brake cut motor [20:14:59]Read from MH i2c: 01 [20:14:59]MH_I2C_Read... [20:14:59]*** Stop cut motor [20:14:59]*** Cut end [20:14:59]Read from MH i2c: 01 07 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 FF 0F FD [20:14:59]process_action close_receipt done [20:14:59]requested_data is exist [20:14:59]produce_requested_data [20:14:59]requested_item fm.sn is exist - process it [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 11 00 00 [20:14:59]Write to MH i2c: E2 08 00 E1 08 80 11 00 00 00 00 00 00 63 [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 17 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 17 00 E1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [20:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:14:59]wFMCommunicate OK [20:14:59]requested_item fd.num is exist - process it [20:14:59]SAM_PROTO_GetFieldsCounters [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 13 00 00 [20:14:59]Write to MH i2c: E2 08 00 E2 08 80 13 00 00 00 00 00 00 66 [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 62 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 62 00 E2 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [20:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:59]wFMCommunicate OK [20:14:59]SAM_PROTO_GetFieldsCounters done [20:14:59]requested_item shift.num is exist - process it [20:14:59]requested_item shift.opened is exist - process it [20:14:59]req_shift_opened [20:14:59]FM_GetShiftState [20:14:59]SAM_PROTO_GetShiftState [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 13 01 00 [20:14:59]Write to MH i2c: E2 08 00 E3 08 80 13 01 00 00 00 00 00 68 [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 0E 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 0E 00 E3 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B2 [20:14:59]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:14:59]wFMCommunicate OK [20:14:59]SAM_PROTO_GetShiftState done [20:14:59]FM_GetShiftState done [20:14:59]req_shift_opened done [20:14:59]requested_item shift.open_date is exist - process it [20:14:59]req_shift_open_date [20:14:59]req_shift_open_date done [20:14:59]produce_requested_data done [20:14:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164371,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:14:59]process_action_free close_receipt [20:14:59]json_value_free [20:14:59]json_value_free done [20:14:59]process_json_proto returns [20:14:59]Send response to host [20:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164371,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:14:59]free response buf [20:14:59]execute_script done [20:14:59]execute_script returns [20:14:59]free content buf [20:14:59]Sock 10.Close socket [20:14:59]Sock 10.Thread stoped [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:12]accept exits with 7 [20:15:12]New connection [20:15:12]New thread 3067391332 created [20:15:12]Thread 3067534692 joined [20:15:12]Waiting for new connection... [20:15:12] Sock 7.Parse request [20:15:12]Sock 7.Check first char [20:15:12]Sock 7.First char is OK [20:15:12]request: POST /json_proto HTTP/1.0 [20:15:12]Method: POST [20:15:12]URL: /json_proto [20:15:12]Method is POST - this is cgi request [20:15:12]url: /json_proto [20:15:12]query_string will be loaded in cgi processing [20:15:12]execute_cgi json_proto POST (null) [20:15:12]execute_cgi path=json_proto method=POST [20:15:12]POST find Content-Length [20:15:12]Host: 172.17.56.4:8080 [20:15:12]Content-Length: 675 [20:15:12]Content-Type: application/json [20:15:12] [20:15:12]POST finish read [20:15:12]Found Content-Length = 675 [20:15:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:12]execute_script... [20:15: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)458457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:12]POST & json_proto [20:15:12]process_json_proto [20:15:12]json parsed OK: [20:15:12]protocol is kg_v1.0 [20:15:12]action value=close_receipt [20:15:12]process_action close_receipt [20:15:12]cmd_close_receipt [20:15:12]MH_GetDate [20:15:12]Write to MH i2c: F0 00 00 E4 08 DB [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: F0 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: F0 09 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: F0 09 00 E4 08 00 D1 8E 91 66 C9 DC B2 64 F5 [20:15:12]GetLastDocTimeStamp 1720815296 [20:15:12]current date 1720815313 [20:15:12]FM_GetShiftState [20:15:12]SAM_PROTO_GetShiftState [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 13 01 00 [20:15:12]Write to MH i2c: E2 08 00 E5 08 80 13 01 00 00 00 00 00 6A [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 0E 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 0E 00 E5 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B4 [20:15:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:15:12]wFMCommunicate OK [20:15:12]SAM_PROTO_GetShiftState done [20:15:12]FM_GetShiftState done [20:15:12]opened in 1720744654 [20:15:12]opened+sec_in_day 1720831054 [20:15:12]quantity*price = 72043 [20:15:12]sum+1 = 72045 [20:15:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 293 12.07.2024 20:15 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164372 ФПД: 185914575365508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201513&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164372&fm=185914575365508&tin=02508201610067®Number=0000000000090829&sum=72000 [20:15:14]StoreToDocumentArchive [20:15:14]shift 445 fd 164372 [20:15:14]save to /storage/0445/doc_00164372 [20:15:14]save last doc name /storage/0445/doc_00164372 to /storage/kkm_last_doc_name [20:15:14]save OK [20:15:14]Clear old archive folders... [20:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:15:14]tlvbuf is 01543890 [20:15:14]SAM_PROTO_ClearQueue [20:15:14]wFMCommunicate request_size=4 [20:15:14]MH_SAM_APDU [20:15:14]CAPDU: 80 09 00 00 [20:15:14]Write to MH i2c: E2 08 00 F2 08 80 09 00 00 00 00 00 00 6C [20:15:14]Write i2c OK [20:15:14]MH_I2C_Read... [20:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:14]Read from MH i2c: E2 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 03 00 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 03 00 F2 08 00 90 00 6E [20:15:14]RAPDU: 90 00 [20:15:14]wFMCommunicate OK [20:15:14]SAM_PROTO_ClearQueue done [20:15:14]KKMCreateOFDPacket [20:15:14]OFDProtocolAddRootSTLVToBuf [20:15:14]FM_MakeSignedData [20:15:14]FM_MakeSignedData [20:15:14]SAM_PROTO_SignData [20:15:14]wFMCommunicate request_size=4 [20:15:14]MH_SAM_APDU [20:15:14]CAPDU: 80 0D 01 02 [20:15:14]Write to MH i2c: E2 08 00 F3 08 80 0D 01 02 00 00 00 00 74 [20:15:14]Write i2c OK [20:15:14]MH_I2C_Read... [20:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:14]Read from MH i2c: E2 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 03 00 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [20:15:14]RAPDU: 90 00 [20:15:14]wFMCommunicate OK [20:15:14]wFMCommunicate request_size=255 [20:15:14]MH_SAM_APDU [20:15: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 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D1 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 82 02 00 35 04 06 00 A9 16 9C 39 [20:15:14]Write to MH i2c: E2 02 01 F4 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D1 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 82 02 00 35 04 06 00 A9 16 9C 39 00 00 74 [20:15:14]Write i2c OK [20:15:14]MH_I2C_Read... [20:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:14]Read from MH i2c: E2 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 03 00 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [20:15:14]RAPDU: 90 00 [20:15:14]wFMCommunicate OK [20:15:14]wFMCommunicate request_size=7 [20:15:14]MH_SAM_APDU [20:15:14]CAPDU: 80 0D 02 02 02 25 84 [20:15:14]Write to MH i2c: E2 0A 00 F5 08 80 0D 02 02 02 00 25 84 00 00 24 [20:15:14]Write i2c OK [20:15:14]MH_I2C_Read... [20:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:14]Read from MH i2c: E2 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 03 00 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [20:15:14]RAPDU: 90 00 [20:15:14]wFMCommunicate OK [20:15:14]wFMCommunicate request_size=4 [20:15:14]MH_SAM_APDU [20:15:14]CAPDU: 80 0D 03 02 [20:15:14]Write to MH i2c: E2 08 00 F6 08 80 0D 03 02 00 00 00 00 79 [20:15:14]Write i2c OK [20:15:14]MH_I2C_Read... [20:15:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:14]Read from MH i2c: E2 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 0B 00 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 0B 00 F6 08 00 AB DF 7B 5E FE A4 20 27 90 00 C6 [20:15:14]RAPDU: AB DF 7B 5E FE A4 20 27 90 00 [20:15:14]wFMCommunicate OK [20:15:14]SAM_PROTO_SignData done [20:15:14]FM_MakeSignedData done [20:15:14]CreateOFDProtocolMessage [20:15:14]wFMCommunicate request_size=4 [20:15:14]MH_SAM_APDU [20:15:14]CAPDU: 80 11 00 00 [20:15:14]Write to MH i2c: E2 08 00 F7 08 80 11 00 00 00 00 00 00 79 [20:15:14]Write i2c OK [20:15:14]MH_I2C_Read... [20:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:14]Read from MH i2c: E2 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 17 00 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: E2 17 00 F7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [20:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:15:14]wFMCommunicate OK [20:15:14]CreateOFDProtocolMessage done [20:15:14]OFDSenderStorePacket 164372 [20:15:14]StoreOFDPacket docnum=164372 [20:15:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 37 02 04 01 E3 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D1 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 82 02 00 35 04 06 00 A9 16 9C 39 25 84 AB DF 7B 5E FE A4 20 27 [20:15:14]CheckFolder [20:15:14]dirname=/storage/ofd_packets [20:15:14]CheckFolder done [20:15:14]ProducePacketName [20:15:14]name=ofd_packets/00164372 [20:15:14]NVStorageSaveData ofd_packets/00164372 [20:15:14]File name is /storage/ofd_packets/00164372 [20:15:14]Write 298 bytes [20:15:14]NVStorageSaveData done [20:15:14]OFDSenderStorePacket done [20:15:14]KKMCreateOFDPacket done [20:15:14]NVStorageSaveData kkm_last_timestamp [20:15:14]File name is /storage/kkm_last_timestamp [20:15:14]Write 4 bytes [20:15:14]NVStorageSaveData done [20:15:14]ExternCall_PrintAddStr [20:15:14]wPrintStart [20:15:14]Write to MH i2c: 01 00 00 F8 08 00 [20:15:14]Write i2c OK [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: 01 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: 01 07 00 [20:15:14]MH_I2C_Read... [20:15:14]Read from MH i2c: 01 07 00 F8 08 00 00 00 00 00 FF 0F 15 [20:15:14]RasterBufferAndPrint [20:15:14]line Счет N : (1)458457 [20:15:14]line ИНН: 02508201610067 [20:15:14]line Контрольно-Кассовый Чек [20:15:14]line ПРОДАЖА [20:15:14]line ТРК (МРК, ГНК) : 11 [20:15:14]line Товар: 2710194210 [20:15:14]line ДТ-К-5 [20:15:14]line 10.020 * 71.90 [20:15:14]line = 720.44 [20:15:14]line НДС 12% НСП 1% [20:15:14]line > о реализуемом товаре [20:15:14]line ОКРУГЛЕНИЕ: -0.44 [20:15:14]line ИТОГО: 720.00 [20:15:14]line Внесено: 720.00 [20:15:14]line СДАЧА: 0.00 [20:15:14]line НСП 1% : 6.38 [20:15:14]line НДС 12% : 76.51 [20:15:14]line Наличными: 720.00 [20:15:14]line Безнал.: 0.00 [20:15:14]line Место: АЗС № 72 "Партнер Нефть" [20:15:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:15:14]line СНО: Общий режим [20:15:14]line Чек 293 12.07.2024 20:15 [20:15:14]line Смена: 445 ФФД: 1.0 [20:15:14]line ЗНМ: 0300000160 [20:15:14]line РНМ: 0000000000090829 [20:15:14]line Версия ККМ: 001 [20:15:14]line ФМ: 0000000000874718 [20:15:14]line ФД: 164372 [20:15:14]line ФПД: 185914575365508 [20:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201513&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164372&fm=185914575365508&tin=02508201610067®Number=0000000000090829&sum=72000 [20:15:14]OFD Sender: Processing packet 164372 [packets to send 104, broken 103] [20:15:14]ProducePacketName [20:15:14]name=ofd_packets/00164372 [20:15:14]OFD Sender: To server: pG, [20:15:14]CommunicateWithHost lk.salyk.kg:30040 [20:15:14]ConnectInit lk.salyk.kg [20:15:14]written 0, free lines is 4095 [20:15:15]Connected sock=10 [20:15:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 37 02 04 01 E3 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D1 8E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 82 02 00 35 04 06 00 A9 16 9C 39 25 84 AB DF 7B 5E FE A4 20 27 [20:15:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 11 B2 47 00 79 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 34 37 31 38 10 04 04 00 14 82 02 00 F4 03 04 00 64 35 91 66 B6 04 01 00 00 80 6A 4D 99 95 02 81 89 [20:15:15]CommunicateWithHost err = 0 [20:15:15]CheckOFDResponse [20:15:15]1017 (14) - 77093643461234 [20:15:15]1041 (16) - 0000000000874718 [20:15:15]1040 (4) - 164372 [20:15:15]1012 (4) - 12.07.2024 13:53 [20:15:15]1206 (1) - 0 [20:15:15]OFD Sender: Remove packet 164372 [20:15:15]ProducePacketName [20:15:15]name=ofd_packets/00164372 [20:15:15]NVStorageDeleteData [20:15:15]Write to MH i2c: 01 00 00 22 09 2B [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: 01 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: 01 07 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 0D 0D 4C [20:15:15]RasterBufferAndPrint [20:15:15]line [20:15:15]line [20:15:15]line [20:15:15]line [20:15:15]line [20:15:15]written 0, free lines is 3347 [20:15:15]MH_Cut [20:15:15]Write to MH i2c: D1 01 00 29 09 01 04 [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: D1 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: D1 01 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: D1 01 00 29 09 00 03 [20:15:15]Write to MH i2c: 01 00 00 2A 09 33 [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]OFD Sender: No OFD packet to send [20:15:16]*** Cut start [20:15:16]*** Partial cut [20:15:16]*** CUTSNS_PIN = 1 [20:15:16]*** CUTSNS_PIN = 0 [20:15:16]*** Brake cut motor [20:15:16]Read from MH i2c: 01 [20:15:16]MH_I2C_Read... [20:15:16]*** Stop cut motor [20:15:16]*** Cut end [20:15:16]Read from MH i2c: 01 07 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: 01 07 00 2A 09 00 00 00 00 00 FF 0F 48 [20:15:16]process_action close_receipt done [20:15:16]requested_data is exist [20:15:16]produce_requested_data [20:15:16]requested_item fm.sn is exist - process it [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 11 00 00 [20:15:16]Write to MH i2c: E2 08 00 2B 09 80 11 00 00 00 00 00 00 AE [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 17 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 17 00 2B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [20:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:15:16]wFMCommunicate OK [20:15:16]requested_item fd.num is exist - process it [20:15:16]SAM_PROTO_GetFieldsCounters [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 13 00 00 [20:15:16]Write to MH i2c: E2 08 00 2C 09 80 13 00 00 00 00 00 00 B1 [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 62 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 62 00 2C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [20:15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:16]wFMCommunicate OK [20:15:16]SAM_PROTO_GetFieldsCounters done [20:15:16]requested_item shift.num is exist - process it [20:15:16]requested_item shift.opened is exist - process it [20:15:16]req_shift_opened [20:15:16]FM_GetShiftState [20:15:16]SAM_PROTO_GetShiftState [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 13 01 00 [20:15:16]Write to MH i2c: E2 08 00 2D 09 80 13 01 00 00 00 00 00 B3 [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 0E 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 0E 00 2D 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FD [20:15:16]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:15:16]wFMCommunicate OK [20:15:16]SAM_PROTO_GetShiftState done [20:15:16]FM_GetShiftState done [20:15:16]req_shift_opened done [20:15:16]requested_item shift.open_date is exist - process it [20:15:16]req_shift_open_date [20:15:16]req_shift_open_date done [20:15:16]produce_requested_data done [20:15:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164372,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:15:16]process_action_free close_receipt [20:15:16]json_value_free [20:15:16]json_value_free done [20:15:16]process_json_proto returns [20:15:16]Send response to host [20:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164372,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:15:16]free response buf [20:15:16]execute_script done [20:15:16]execute_script returns [20:15:16]free content buf [20:15:16]Sock 7.Close socket [20:15:16]Sock 7.Thread stoped [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:52]accept exits with 9 [20:17:52]New connection [20:17:52]New thread 3067534692 created [20:17:52]Thread 3067391332 joined [20:17:52]Waiting for new connection... [20:17:52] Sock 9.Parse request [20:17:52]Sock 9.Check first char [20:17:52]Sock 9.First char is OK [20:17:52]request: POST /json_proto HTTP/1.0 [20:17:52]Method: POST [20:17:52]URL: /json_proto [20:17:52]Method is POST - this is cgi request [20:17:52]url: /json_proto [20:17:52]query_string will be loaded in cgi processing [20:17:52]execute_cgi json_proto POST (null) [20:17:52]execute_cgi path=json_proto method=POST [20:17:52]POST find Content-Length [20:17:52]Host: 172.17.56.4:8080 [20:17:52]Content-Length: 674 [20:17:52]Content-Type: application/json [20:17:52] [20:17:52]POST finish read [20:17:52]Found Content-Length = 674 [20:17:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 7.500, "sum" : 539.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 539.00, "total" : 539.00, "payments": [ { "type": 0, "sum" : 539.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:52]execute_script... [20:17:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 7.500, "sum" : 539.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 539.00, "total" : 539.00, "payments": [ { "type": 0, "sum" : 539.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:52]POST & json_proto [20:17:52]process_json_proto [20:17:52]json parsed OK: [20:17:52]protocol is kg_v1.0 [20:17:52]action value=close_receipt [20:17:52]process_action close_receipt [20:17:52]cmd_close_receipt [20:17:52]MH_GetDate [20:17:52]Write to MH i2c: F0 00 00 2E 09 26 [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: F0 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: F0 09 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: F0 09 00 2E 09 00 71 8F 91 66 C9 DC B2 64 E1 [20:17:52]GetLastDocTimeStamp 1720815313 [20:17:52]current date 1720815473 [20:17:52]FM_GetShiftState [20:17:52]SAM_PROTO_GetShiftState [20:17:52]wFMCommunicate request_size=4 [20:17:52]MH_SAM_APDU [20:17:52]CAPDU: 80 13 01 00 [20:17:52]Write to MH i2c: E2 08 00 2F 09 80 13 01 00 00 00 00 00 B5 [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:52]Read from MH i2c: E2 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 0E 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 0E 00 2F 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FF [20:17:52]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:17:52]wFMCommunicate OK [20:17:52]SAM_PROTO_GetShiftState done [20:17:52]FM_GetShiftState done [20:17:52]opened in 1720744654 [20:17:52]opened+sec_in_day 1720831054 [20:17:52]quantity*price = 53925 [20:17:52]sum+1 = 53926 [20:17:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 539.00 Внесено: 539.00 СДАЧА: 0.00 НСП 1% : 4.77 НДС 12% : 57.26 Наличными: 539.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 294 12.07.2024 20:17 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164373 ФПД: 122838349837669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201753&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164373&fm=122838349837669&tin=02508201610067®Number=0000000000090829&sum=53900 [20:17:53]StoreToDocumentArchive [20:17:53]shift 445 fd 164373 [20:17:53]save to /storage/0445/doc_00164373 [20:17:53]save last doc name /storage/0445/doc_00164373 to /storage/kkm_last_doc_name [20:17:53]save OK [20:17:53]Clear old archive folders... [20:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:17:53]tlvbuf is 0159EAE0 [20:17:53]SAM_PROTO_ClearQueue [20:17:53]wFMCommunicate request_size=4 [20:17:53]MH_SAM_APDU [20:17:53]CAPDU: 80 09 00 00 [20:17:53]Write to MH i2c: E2 08 00 3C 09 80 09 00 00 00 00 00 00 B7 [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:53]Read from MH i2c: E2 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: E2 03 00 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: E2 03 00 3C 09 00 90 00 B9 [20:17:53]RAPDU: 90 00 [20:17:53]wFMCommunicate OK [20:17:53]SAM_PROTO_ClearQueue done [20:17:53]KKMCreateOFDPacket [20:17:53]OFDProtocolAddRootSTLVToBuf [20:17:53]FM_MakeSignedData [20:17:53]FM_MakeSignedData [20:17:53]SAM_PROTO_SignData [20:17:53]wFMCommunicate request_size=4 [20:17:53]MH_SAM_APDU [20:17:53]CAPDU: 80 0D 01 02 [20:17:53]Write to MH i2c: E2 08 00 3D 09 80 0D 01 02 00 00 00 00 BF [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:53]Read from MH i2c: E2 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: E2 03 00 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: E2 03 00 3D 09 00 90 00 BA [20:17:53]RAPDU: 90 00 [20:17:53]wFMCommunicate OK [20:17:53]wFMCommunicate request_size=255 [20:17:53]MH_SAM_APDU [20:17: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 4C 1D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A5 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 71 8F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 82 02 00 35 04 06 00 6F B8 88 34 [20:17:53]Write to MH i2c: E2 02 01 3E 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 1D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A5 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 71 8F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 82 02 00 35 04 06 00 6F B8 88 34 00 00 9A [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 3E 09 00 90 00 BB [20:17:54]RAPDU: 90 00 [20:17:54]wFMCommunicate OK [20:17:54]wFMCommunicate request_size=7 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 0D 02 02 02 F5 65 [20:17:54]Write to MH i2c: E2 0A 00 3F 09 80 0D 02 02 02 00 F5 65 00 00 20 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 3F 09 00 90 00 BC [20:17:54]RAPDU: 90 00 [20:17:54]wFMCommunicate OK [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 0D 03 02 [20:17:54]Write to MH i2c: E2 08 00 40 09 80 0D 03 02 00 00 00 00 C4 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0B 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0B 00 40 09 00 85 1D 54 23 31 50 A3 E5 90 00 E7 [20:17:54]RAPDU: 85 1D 54 23 31 50 A3 E5 90 00 [20:17:54]wFMCommunicate OK [20:17:54]SAM_PROTO_SignData done [20:17:54]FM_MakeSignedData done [20:17:54]CreateOFDProtocolMessage [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 11 00 00 [20:17:54]Write to MH i2c: E2 08 00 41 09 80 11 00 00 00 00 00 00 C4 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 17 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 17 00 41 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [20:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:17:54]wFMCommunicate OK [20:17:54]CreateOFDProtocolMessage done [20:17:54]OFDSenderStorePacket 164373 [20:17:54]StoreOFDPacket docnum=164373 [20:17:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1A 8C 04 01 A6 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 1D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A5 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 71 8F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 82 02 00 35 04 06 00 6F B8 88 34 F5 65 85 1D 54 23 31 50 A3 E5 [20:17:54]CheckFolder [20:17:54]dirname=/storage/ofd_packets [20:17:54]CheckFolder done [20:17:54]ProducePacketName [20:17:54]name=ofd_packets/00164373 [20:17:54]NVStorageSaveData ofd_packets/00164373 [20:17:54]File name is /storage/ofd_packets/00164373 [20:17:54]Write 298 bytes [20:17:54]NVStorageSaveData done [20:17:54]OFDSenderStorePacket done [20:17:54]KKMCreateOFDPacket done [20:17:54]NVStorageSaveData kkm_last_timestamp [20:17:54]File name is /storage/kkm_last_timestamp [20:17:54]Write 4 bytes [20:17:54]NVStorageSaveData done [20:17:54]ExternCall_PrintAddStr [20:17:54]wPrintStart [20:17:54]Write to MH i2c: 01 00 00 42 09 4B [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 07 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 07 00 42 09 00 00 00 00 00 FF 0F 60 [20:17:54]RasterBufferAndPrint [20:17:54]line Счет N : (1)458458 [20:17:54]line ИНН: 02508201610067 [20:17:54]line Контрольно-Кассовый Чек [20:17:54]line ПРОДАЖА [20:17:54]line ТРК (МРК, ГНК) : 11 [20:17:54]line Товар: 2710194210 [20:17:54]line ДТ-К-5 [20:17:54]line 7.500 * 71.90 [20:17:54]line = 539.25 [20:17:54]line НДС 12% НСП 1% [20:17:54]line > о реализуемом товаре [20:17:54]line ОКРУГЛЕНИЕ: -0.25 [20:17:54]line ИТОГО: 539.00 [20:17:54]line Внесено: 539.00 [20:17:54]line СДАЧА: 0.00 [20:17:54]line НСП 1% : 4.77 [20:17:54]line НДС 12% : 57.26 [20:17:54]line Наличными: 539.00 [20:17:54]line Безнал.: 0.00 [20:17:54]line Место: АЗС № 72 "Партнер Нефть" [20:17:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:17:54]line СНО: Общий режим [20:17:54]line Чек 294 12.07.2024 20:17 [20:17:54]line Смена: 445 ФФД: 1.0 [20:17:54]line ЗНМ: 0300000160 [20:17:54]line РНМ: 0000000000090829 [20:17:54]line Версия ККМ: 001 [20:17:54]line ФМ: 0000000000874718 [20:17:54]line ФД: 164373 [20:17:54]line ФПД: 122838349837669 [20:17:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T201753&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164373&fm=122838349837669&tin=02508201610067®Number=0000000000090829&sum=53900 [20:17:54]written 0, free lines is 4095 [20:17:54]OFD Sender: Processing packet 164373 [packets to send 104, broken 103] [20:17:54]ProducePacketName [20:17:54]name=ofd_packets/00164373 [20:17:54]OFD Sender: To server: pG, [20:17:54]CommunicateWithHost lk.salyk.kg:30040 [20:17:54]ConnectInit lk.salyk.kg [20:17:54]Connected sock=11 [20:17:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1A 8C 04 01 A6 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 1D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A5 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 71 8F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 82 02 00 35 04 06 00 6F B8 88 34 F5 65 85 1D 54 23 31 50 A3 E5 [20:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CC 9C 47 00 96 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 82 02 00 F4 03 04 00 04 36 91 66 B6 04 01 00 00 3C 01 0D DB DC C1 BD 01 [20:17:54]CommunicateWithHost err = 0 [20:17:54]CheckOFDResponse [20:17:54]1017 (14) - 77093643461234 [20:17:54]1041 (16) - 0000000000874718 [20:17:54]1040 (4) - 164373 [20:17:54]1012 (4) - 12.07.2024 13:56 [20:17:54]1206 (1) - 0 [20:17:54]OFD Sender: Remove packet 164373 [20:17:54]ProducePacketName [20:17:54]name=ofd_packets/00164373 [20:17:54]NVStorageDeleteData [20:17:54]Write to MH i2c: 01 00 00 6C 09 75 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 07 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 07 00 6C 09 00 00 00 00 00 FB 0C 83 [20:17:54]RasterBufferAndPrint [20:17:54]line [20:17:54]line [20:17:54]line [20:17:54]line [20:17:54]line [20:17:54]written 0, free lines is 3329 [20:17:54]MH_Cut [20:17:54]Write to MH i2c: D1 01 00 73 09 01 4E [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: D1 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: D1 01 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: D1 01 00 73 09 00 4D [20:17:54]Write to MH i2c: 01 00 00 74 09 7D [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:55]OFD Sender: No OFD packet to send [20:17:55]*** Cut start [20:17:55]*** Partial cut [20:17:55]*** CUTSNS_PIN = 1 [20:17:55]*** CUTSNS_PIN = 0 [20:17:55]*** Brake cut motor [20:17:56]Read from MH i2c: 01 [20:17:56]MH_I2C_Read... [20:17:56]*** Stop cut motor [20:17:56]*** Cut end [20:17:56]Read from MH i2c: 01 07 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 74 09 00 00 00 00 00 FF 0F 92 [20:17:56]process_action close_receipt done [20:17:56]requested_data is exist [20:17:56]produce_requested_data [20:17:56]requested_item fm.sn is exist - process it [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 11 00 00 [20:17:56]Write to MH i2c: E2 08 00 75 09 80 11 00 00 00 00 00 00 F8 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 17 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 17 00 75 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [20:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:17:56]wFMCommunicate OK [20:17:56]requested_item fd.num is exist - process it [20:17:56]SAM_PROTO_GetFieldsCounters [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 13 00 00 [20:17:56]Write to MH i2c: E2 08 00 76 09 80 13 00 00 00 00 00 00 FB [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 62 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 62 00 76 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [20:17:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:56]wFMCommunicate OK [20:17:56]SAM_PROTO_GetFieldsCounters done [20:17:56]requested_item shift.num is exist - process it [20:17:56]requested_item shift.opened is exist - process it [20:17:56]req_shift_opened [20:17:56]FM_GetShiftState [20:17:56]SAM_PROTO_GetShiftState [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 13 01 00 [20:17:56]Write to MH i2c: E2 08 00 77 09 80 13 01 00 00 00 00 00 FD [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 0E 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 0E 00 77 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 47 [20:17:56]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:17:56]wFMCommunicate OK [20:17:56]SAM_PROTO_GetShiftState done [20:17:56]FM_GetShiftState done [20:17:56]req_shift_opened done [20:17:56]requested_item shift.open_date is exist - process it [20:17:56]req_shift_open_date [20:17:56]req_shift_open_date done [20:17:56]produce_requested_data done [20:17:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164373,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:17:56]process_action_free close_receipt [20:17:56]json_value_free [20:17:56]json_value_free done [20:17:56]process_json_proto returns [20:17:56]Send response to host [20:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164373,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:17:56]free response buf [20:17:56]execute_script done [20:17:56]execute_script returns [20:17:56]free content buf [20:17:56]Sock 9.Close socket [20:17:56]Sock 9.Thread stoped [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:11]accept exits with 7 [20:22:11]New connection [20:22:11]New thread 3067391332 created [20:22:11]Thread 3067534692 joined [20:22:11]Waiting for new connection... [20:22:11] Sock 7.Parse request [20:22:11]Sock 7.Check first char [20:22:11]Sock 7.First char is OK [20:22:11]request: POST /json_proto HTTP/1.0 [20:22:11]Method: POST [20:22:11]URL: /json_proto [20:22:11]Method is POST - this is cgi request [20:22:11]url: /json_proto [20:22:11]query_string will be loaded in cgi processing [20:22:11]execute_cgi json_proto POST (null) [20:22:11]execute_cgi path=json_proto method=POST [20:22:11]POST find Content-Length [20:22:11]Host: 172.17.56.4:8080 [20:22:11]Content-Length: 677 [20:22:11]Content-Type: application/json [20:22:11] [20:22:11]POST finish read [20:22:11]Found Content-Length = 677 [20:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:22:11]execute_script... [20:22: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)458460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:22:11]POST & json_proto [20:22:11]process_json_proto [20:22:11]json parsed OK: [20:22:11]protocol is kg_v1.0 [20:22:11]action value=close_receipt [20:22:11]process_action close_receipt [20:22:11]cmd_close_receipt [20:22:11]MH_GetDate [20:22:11]Write to MH i2c: F0 00 00 78 09 70 [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: F0 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: F0 09 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: F0 09 00 78 09 00 74 90 91 66 C9 DC B2 64 2F [20:22:11]GetLastDocTimeStamp 1720815473 [20:22:11]current date 1720815732 [20:22:11]FM_GetShiftState [20:22:11]SAM_PROTO_GetShiftState [20:22:11]wFMCommunicate request_size=4 [20:22:11]MH_SAM_APDU [20:22:11]CAPDU: 80 13 01 00 [20:22:11]Write to MH i2c: E2 08 00 79 09 80 13 01 00 00 00 00 00 FF [20:22:11]Write i2c OK [20:22:11]MH_I2C_Read... [20:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:11]Read from MH i2c: E2 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 0E 00 [20:22:11]MH_I2C_Read... [20:22:11]Read from MH i2c: E2 0E 00 79 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 49 [20:22:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:22:11]wFMCommunicate OK [20:22:11]SAM_PROTO_GetShiftState done [20:22:11]FM_GetShiftState done [20:22:11]opened in 1720744654 [20:22:11]opened+sec_in_day 1720831054 [20:22:11]quantity*price = 20003 [20:22:11]sum+1 = 20004 [20:22:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 295 12.07.2024 20:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164374 ФПД: 103446616005117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T202212&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164374&fm=103446616005117&tin=02508201610067®Number=0000000000090829&sum=20000 [20:22:12]StoreToDocumentArchive [20:22:12]shift 445 fd 164374 [20:22:12]save to /storage/0445/doc_00164374 [20:22:12]save last doc name /storage/0445/doc_00164374 to /storage/kkm_last_doc_name [20:22:12]save OK [20:22:12]Clear old archive folders... [20:22:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:12]tlvbuf is 015A44F0 [20:22:12]SAM_PROTO_ClearQueue [20:22:12]wFMCommunicate request_size=4 [20:22:12]MH_SAM_APDU [20:22:12]CAPDU: 80 09 00 00 [20:22:12]Write to MH i2c: E2 08 00 86 09 80 09 00 00 00 00 00 00 01 [20:22:12]Write i2c OK [20:22:12]MH_I2C_Read... [20:22:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:12]Read from MH i2c: E2 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 03 00 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [20:22:12]RAPDU: 90 00 [20:22:12]wFMCommunicate OK [20:22:12]SAM_PROTO_ClearQueue done [20:22:12]KKMCreateOFDPacket [20:22:12]OFDProtocolAddRootSTLVToBuf [20:22:12]FM_MakeSignedData [20:22:12]FM_MakeSignedData [20:22:12]SAM_PROTO_SignData [20:22:12]wFMCommunicate request_size=4 [20:22:12]MH_SAM_APDU [20:22:12]CAPDU: 80 0D 01 02 [20:22:12]Write to MH i2c: E2 08 00 87 09 80 0D 01 02 00 00 00 00 09 [20:22:12]Write i2c OK [20:22:12]MH_I2C_Read... [20:22:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:12]Read from MH i2c: E2 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 03 00 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [20:22:12]RAPDU: 90 00 [20:22:12]wFMCommunicate OK [20:22:12]wFMCommunicate request_size=255 [20:22:12]MH_SAM_APDU [20:22: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 74 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 82 02 00 35 04 06 00 5E [20:22:12]Write to MH i2c: E2 02 01 88 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 74 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 82 02 00 35 04 06 00 5E 00 00 FC [20:22:12]Write i2c OK [20:22:12]MH_I2C_Read... [20:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:13]Read from MH i2c: E2 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 03 00 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 03 00 88 09 00 90 00 05 [20:22:13]RAPDU: 90 00 [20:22:13]wFMCommunicate OK [20:22:13]wFMCommunicate request_size=10 [20:22:13]MH_SAM_APDU [20:22:13]CAPDU: 80 0D 02 02 05 15 8A CC D9 FD [20:22:13]Write to MH i2c: E2 0D 00 89 09 80 0D 02 02 05 00 15 8A CC D9 FD 00 00 57 [20:22:13]Write i2c OK [20:22:13]MH_I2C_Read... [20:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:13]Read from MH i2c: E2 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 03 00 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 03 00 89 09 00 90 00 06 [20:22:13]RAPDU: 90 00 [20:22:13]wFMCommunicate OK [20:22:13]wFMCommunicate request_size=4 [20:22:13]MH_SAM_APDU [20:22:13]CAPDU: 80 0D 03 02 [20:22:13]Write to MH i2c: E2 08 00 8A 09 80 0D 03 02 00 00 00 00 0E [20:22:13]Write i2c OK [20:22:13]MH_I2C_Read... [20:22:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:13]Read from MH i2c: E2 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 0B 00 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 0B 00 8A 09 00 6B 35 95 47 93 CF A5 E6 90 00 78 [20:22:13]RAPDU: 6B 35 95 47 93 CF A5 E6 90 00 [20:22:13]wFMCommunicate OK [20:22:13]SAM_PROTO_SignData done [20:22:13]FM_MakeSignedData done [20:22:13]CreateOFDProtocolMessage [20:22:13]wFMCommunicate request_size=4 [20:22:13]MH_SAM_APDU [20:22:13]CAPDU: 80 11 00 00 [20:22:13]Write to MH i2c: E2 08 00 8B 09 80 11 00 00 00 00 00 00 0E [20:22:13]Write i2c OK [20:22:13]MH_I2C_Read... [20:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:13]Read from MH i2c: E2 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 17 00 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: E2 17 00 8B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [20:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:22:13]wFMCommunicate OK [20:22:13]CreateOFDProtocolMessage done [20:22:13]OFDSenderStorePacket 164374 [20:22:13]StoreOFDPacket docnum=164374 [20:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DC FD 07 01 BD 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 74 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 82 02 00 35 04 06 00 5E 15 8A CC D9 FD 6B 35 95 47 93 CF A5 E6 [20:22:13]CheckFolder [20:22:13]dirname=/storage/ofd_packets [20:22:13]CheckFolder done [20:22:13]ProducePacketName [20:22:13]name=ofd_packets/00164374 [20:22:13]NVStorageSaveData ofd_packets/00164374 [20:22:13]File name is /storage/ofd_packets/00164374 [20:22:13]Write 301 bytes [20:22:13]NVStorageSaveData done [20:22:13]OFDSenderStorePacket done [20:22:13]KKMCreateOFDPacket done [20:22:13]NVStorageSaveData kkm_last_timestamp [20:22:13]File name is /storage/kkm_last_timestamp [20:22:13]Write 4 bytes [20:22:13]NVStorageSaveData done [20:22:13]ExternCall_PrintAddStr [20:22:13]wPrintStart [20:22:13]Write to MH i2c: 01 00 00 8C 09 95 [20:22:13]Write i2c OK [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: 01 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: 01 07 00 [20:22:13]MH_I2C_Read... [20:22:13]Read from MH i2c: 01 07 00 8C 09 00 00 00 00 00 FF 0F AA [20:22:13]RasterBufferAndPrint [20:22:13]line Счет N : (1)458460 [20:22:13]line ИНН: 02508201610067 [20:22:13]line Контрольно-Кассовый Чек [20:22:13]line ПРОДАЖА [20:22:13]line ТРК (МРК, ГНК) : 12 [20:22:13]line Товар: 2710124130 [20:22:13]line Аи-92-К-5 [20:22:13]line 3.040 * 65.80 [20:22:13]line = 200.03 [20:22:13]line НДС 12% НСП 1% [20:22:13]line > о реализуемом товаре [20:22:13]line ОКРУГЛЕНИЕ: -0.03 [20:22:13]line ИТОГО: 200.00 [20:22:13]line Внесено: 200.00 [20:22:13]line СДАЧА: 0.00 [20:22:13]line НСП 1% : 1.77 [20:22:13]line НДС 12% : 21.24 [20:22:13]line Наличными: 200.00 [20:22:13]line Безнал.: 0.00 [20:22:13]line Место: АЗС № 72 "Партнер Нефть" [20:22:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:22:13]line СНО: Общий режим [20:22:13]line Чек 295 12.07.2024 20:22 [20:22:13]line Смена: 445 ФФД: 1.0 [20:22:13]line ЗНМ: 0300000160 [20:22:13]line РНМ: 0000000000090829 [20:22:13]line Версия ККМ: 001 [20:22:13]line ФМ: 0000000000874718 [20:22:13]line ФД: 164374 [20:22:13]line ФПД: 103446616005117 [20:22:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T202212&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164374&fm=103446616005117&tin=02508201610067®Number=0000000000090829&sum=20000 [20:22:13]OFD Sender: Processing packet 164374 [packets to send 104, broken 103] [20:22:13]ProducePacketName [20:22:13]name=ofd_packets/00164374 [20:22:13]OFD Sender: To server: pG, [20:22:13]CommunicateWithHost lk.salyk.kg:30040 [20:22:13]ConnectInit lk.salyk.kg [20:22:13]written 0, free lines is 4095 [20:22:13]Connected sock=10 [20:22:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DC FD 07 01 BD 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 74 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 82 02 00 35 04 06 00 5E 15 8A CC D9 FD 6B 35 95 47 93 CF A5 E6 [20:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 78 B8 47 00 2F 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 34 37 31 38 10 04 04 00 16 82 02 00 F4 03 04 00 07 37 91 66 B6 04 01 00 00 4C 8E B2 E8 59 D5 9D DC [20:22:13]CommunicateWithHost err = 0 [20:22:13]CheckOFDResponse [20:22:13]1017 (14) - 77093643461234 [20:22:13]1041 (16) - 0000000000874718 [20:22:13]1040 (4) - 164374 [20:22:13]1012 (4) - 12.07.2024 14:00 [20:22:13]1206 (1) - 0 [20:22:13]OFD Sender: Remove packet 164374 [20:22:13]ProducePacketName [20:22:13]name=ofd_packets/00164374 [20:22:13]NVStorageDeleteData [20:22:14]Write to MH i2c: 01 00 00 B6 09 BF [20:22:14]Write i2c OK [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: 01 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: 01 07 00 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 04 0D D7 [20:22:14]RasterBufferAndPrint [20:22:14]line [20:22:14]line [20:22:14]line [20:22:14]line [20:22:14]line [20:22:14]written 0, free lines is 3338 [20:22:14]MH_Cut [20:22:14]Write to MH i2c: D1 01 00 BD 09 01 98 [20:22:14]Write i2c OK [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: D1 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: D1 01 00 [20:22:14]MH_I2C_Read... [20:22:14]Read from MH i2c: D1 01 00 BD 09 00 97 [20:22:14]Write to MH i2c: 01 00 00 BE 09 C7 [20:22:14]Write i2c OK [20:22:14]MH_I2C_Read... [20:22:14]OFD Sender: No OFD packet to send [20:22:14]*** Cut start [20:22:14]*** Partial cut [20:22:14]*** CUTSNS_PIN = 1 [20:22:14]*** CUTSNS_PIN = 0 [20:22:14]*** Brake cut motor [20:22:15]Read from MH i2c: 01 [20:22:15]MH_I2C_Read... [20:22:15]*** Stop cut motor [20:22:15]*** Cut end [20:22:15]Read from MH i2c: 01 07 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 07 00 BE 09 00 00 00 00 00 FF 0F DC [20:22:15]process_action close_receipt done [20:22:15]requested_data is exist [20:22:15]produce_requested_data [20:22:15]requested_item fm.sn is exist - process it [20:22:15]wFMCommunicate request_size=4 [20:22:15]MH_SAM_APDU [20:22:15]CAPDU: 80 11 00 00 [20:22:15]Write to MH i2c: E2 08 00 BF 09 80 11 00 00 00 00 00 00 42 [20:22:15]Write i2c OK [20:22:15]MH_I2C_Read... [20:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:15]Read from MH i2c: E2 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 17 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 17 00 BF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [20:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:22:15]wFMCommunicate OK [20:22:15]requested_item fd.num is exist - process it [20:22:15]SAM_PROTO_GetFieldsCounters [20:22:15]wFMCommunicate request_size=4 [20:22:15]MH_SAM_APDU [20:22:15]CAPDU: 80 13 00 00 [20:22:15]Write to MH i2c: E2 08 00 C0 09 80 13 00 00 00 00 00 00 45 [20:22:15]Write i2c OK [20:22:15]MH_I2C_Read... [20:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:15]Read from MH i2c: E2 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 62 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 62 00 C0 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [20:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:15]wFMCommunicate OK [20:22:15]SAM_PROTO_GetFieldsCounters done [20:22:15]requested_item shift.num is exist - process it [20:22:15]requested_item shift.opened is exist - process it [20:22:15]req_shift_opened [20:22:15]FM_GetShiftState [20:22:15]SAM_PROTO_GetShiftState [20:22:15]wFMCommunicate request_size=4 [20:22:15]MH_SAM_APDU [20:22:15]CAPDU: 80 13 01 00 [20:22:15]Write to MH i2c: E2 08 00 C1 09 80 13 01 00 00 00 00 00 47 [20:22:15]Write i2c OK [20:22:15]MH_I2C_Read... [20:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:15]Read from MH i2c: E2 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 0E 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: E2 0E 00 C1 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 91 [20:22:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:22:15]wFMCommunicate OK [20:22:15]SAM_PROTO_GetShiftState done [20:22:15]FM_GetShiftState done [20:22:15]req_shift_opened done [20:22:15]requested_item shift.open_date is exist - process it [20:22:15]req_shift_open_date [20:22:15]req_shift_open_date done [20:22:15]produce_requested_data done [20:22:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164374,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:22:15]process_action_free close_receipt [20:22:15]json_value_free [20:22:15]json_value_free done [20:22:15]process_json_proto returns [20:22:15]Send response to host [20:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164374,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:22:15]free response buf [20:22:15]execute_script done [20:22:15]execute_script returns [20:22:15]free content buf [20:22:15]Sock 7.Close socket [20:22:15]Sock 7.Thread stoped [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]accept exits with 9 [20:22:54]New connection [20:22:54]New thread 3067534692 created [20:22:54]Thread 3067391332 joined [20:22:54]Waiting for new connection... [20:22:54] Sock 9.Parse request [20:22:54]Sock 9.Check first char [20:22:54]Sock 9.First char is OK [20:22:54]request: POST /json_proto HTTP/1.0 [20:22:54]Method: POST [20:22:54]URL: /json_proto [20:22:54]Method is POST - this is cgi request [20:22:54]url: /json_proto [20:22:54]query_string will be loaded in cgi processing [20:22:54]execute_cgi json_proto POST (null) [20:22:54]execute_cgi path=json_proto method=POST [20:22:54]POST find Content-Length [20:22:54]Host: 172.17.56.4:8080 [20:22:54]Content-Length: 674 [20:22:54]Content-Type: application/json [20:22:54] [20:22:54]POST finish read [20:22:54]Found Content-Length = 674 [20:22:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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:22:54]execute_script... [20:22:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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:22:54]POST & json_proto [20:22:54]process_json_proto [20:22:54]json parsed OK: [20:22:54]protocol is kg_v1.0 [20:22:54]action value=close_receipt [20:22:54]process_action close_receipt [20:22:54]cmd_close_receipt [20:22:54]MH_GetDate [20:22:54]Write to MH i2c: F0 00 00 C2 09 BA [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: F0 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: F0 09 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: F0 09 00 C2 09 00 9E 90 91 66 C9 DC B2 64 A3 [20:22:54]GetLastDocTimeStamp 1720815732 [20:22:54]current date 1720815774 [20:22:54]FM_GetShiftState [20:22:54]SAM_PROTO_GetShiftState [20:22:54]wFMCommunicate request_size=4 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 13 01 00 [20:22:54]Write to MH i2c: E2 08 00 C3 09 80 13 01 00 00 00 00 00 49 [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 0E 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 0E 00 C3 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 93 [20:22:54]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:22:54]wFMCommunicate OK [20:22:54]SAM_PROTO_GetShiftState done [20:22:54]FM_GetShiftState done [20:22:54]opened in 1720744654 [20:22:54]opened+sec_in_day 1720831054 [20:22:54]quantity*price = 60036 [20:22:54]sum+1 = 60038 [20:22:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 296 12.07.2024 20:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164375 ФПД: 80311360756542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T202254&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164375&fm=80311360756542&tin=02508201610067®Number=0000000000090829&sum=60000 [20:22:55]StoreToDocumentArchive [20:22:55]shift 445 fd 164375 [20:22:55]save to /storage/0445/doc_00164375 [20:22:55]save last doc name /storage/0445/doc_00164375 to /storage/kkm_last_doc_name [20:22:55]save OK [20:22:55]Clear old archive folders... [20:22:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:22:55]tlvbuf is 015D2160 [20:22:55]SAM_PROTO_ClearQueue [20:22:55]wFMCommunicate request_size=4 [20:22:55]MH_SAM_APDU [20:22:55]CAPDU: 80 09 00 00 [20:22:55]Write to MH i2c: E2 08 00 D0 09 80 09 00 00 00 00 00 00 4B [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:55]Read from MH i2c: E2 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 03 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [20:22:55]RAPDU: 90 00 [20:22:55]wFMCommunicate OK [20:22:55]SAM_PROTO_ClearQueue done [20:22:55]KKMCreateOFDPacket [20:22:55]OFDProtocolAddRootSTLVToBuf [20:22:55]FM_MakeSignedData [20:22:55]FM_MakeSignedData [20:22:55]SAM_PROTO_SignData [20:22:55]wFMCommunicate request_size=4 [20:22:55]MH_SAM_APDU [20:22:55]CAPDU: 80 0D 01 02 [20:22:55]Write to MH i2c: E2 08 00 D1 09 80 0D 01 02 00 00 00 00 53 [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:55]Read from MH i2c: E2 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 03 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 03 00 D1 09 00 90 00 4E [20:22:55]RAPDU: 90 00 [20:22:55]wFMCommunicate OK [20:22:55]wFMCommunicate request_size=255 [20:22:55]MH_SAM_APDU [20:22:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 9E 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 82 02 00 35 04 06 00 49 0A F2 21 [20:22:55]Write to MH i2c: E2 02 01 D2 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 9E 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 82 02 00 35 04 06 00 49 0A F2 21 00 00 CB [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:55]Read from MH i2c: E2 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 03 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [20:22:55]RAPDU: 90 00 [20:22:55]wFMCommunicate OK [20:22:55]wFMCommunicate request_size=7 [20:22:55]MH_SAM_APDU [20:22:55]CAPDU: 80 0D 02 02 02 1B 3E [20:22:55]Write to MH i2c: E2 0A 00 D3 09 80 0D 02 02 02 00 1B 3E 00 00 B3 [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:55]Read from MH i2c: E2 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 03 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 03 00 D3 09 00 90 00 50 [20:22:55]RAPDU: 90 00 [20:22:55]wFMCommunicate OK [20:22:55]wFMCommunicate request_size=4 [20:22:55]MH_SAM_APDU [20:22:55]CAPDU: 80 0D 03 02 [20:22:55]Write to MH i2c: E2 08 00 D4 09 80 0D 03 02 00 00 00 00 58 [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:55]Read from MH i2c: E2 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 0B 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 0B 00 D4 09 00 23 DA 88 08 0A B5 C2 90 90 00 F7 [20:22:55]RAPDU: 23 DA 88 08 0A B5 C2 90 90 00 [20:22:55]wFMCommunicate OK [20:22:55]SAM_PROTO_SignData done [20:22:55]FM_MakeSignedData done [20:22:55]CreateOFDProtocolMessage [20:22:55]wFMCommunicate request_size=4 [20:22:55]MH_SAM_APDU [20:22:55]CAPDU: 80 11 00 00 [20:22:55]Write to MH i2c: E2 08 00 D5 09 80 11 00 00 00 00 00 00 58 [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:55]Read from MH i2c: E2 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 17 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: E2 17 00 D5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [20:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:22:55]wFMCommunicate OK [20:22:55]CreateOFDProtocolMessage done [20:22:55]OFDSenderStorePacket 164375 [20:22:55]StoreOFDPacket docnum=164375 [20:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 74 B4 04 01 0A 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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 9E 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 82 02 00 35 04 06 00 49 0A F2 21 1B 3E 23 DA 88 08 0A B5 C2 90 [20:22:55]CheckFolder [20:22:55]dirname=/storage/ofd_packets [20:22:55]CheckFolder done [20:22:55]ProducePacketName [20:22:55]name=ofd_packets/00164375 [20:22:55]NVStorageSaveData ofd_packets/00164375 [20:22:55]File name is /storage/ofd_packets/00164375 [20:22:55]Write 298 bytes [20:22:55]NVStorageSaveData done [20:22:55]OFDSenderStorePacket done [20:22:55]KKMCreateOFDPacket done [20:22:55]NVStorageSaveData kkm_last_timestamp [20:22:55]File name is /storage/kkm_last_timestamp [20:22:55]Write 4 bytes [20:22:55]NVStorageSaveData done [20:22:55]ExternCall_PrintAddStr [20:22:55]wPrintStart [20:22:55]Write to MH i2c: 01 00 00 D6 09 DF [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 07 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 07 00 D6 09 00 00 00 00 00 FF 0F F4 [20:22:55]RasterBufferAndPrint [20:22:55]line Счет N : (1)458459 [20:22:55]line ИНН: 02508201610067 [20:22:55]line Контрольно-Кассовый Чек [20:22:55]line ПРОДАЖА [20:22:55]line ТРК (МРК, ГНК) : 11 [20:22:55]line Товар: 2710194210 [20:22:55]line ДТ-К-5 [20:22:55]line 8.350 * 71.90 [20:22:55]line = 600.37 [20:22:55]line НДС 12% НСП 1% [20:22:55]line > о реализуемом товаре [20:22:55]line ОКРУГЛЕНИЕ: -0.37 [20:22:55]line ИТОГО: 600.00 [20:22:55]line Внесено: 600.00 [20:22:55]line СДАЧА: 0.00 [20:22:55]line НСП 1% : 5.31 [20:22:55]line НДС 12% : 63.76 [20:22:55]line Наличными: 600.00 [20:22:55]line Безнал.: 0.00 [20:22:55]line Место: АЗС № 72 "Партнер Нефть" [20:22:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:22:55]line СНО: Общий режим [20:22:55]line Чек 296 12.07.2024 20:22 [20:22:55]line Смена: 445 ФФД: 1.0 [20:22:55]line ЗНМ: 0300000160 [20:22:55]line РНМ: 0000000000090829 [20:22:55]line Версия ККМ: 001 [20:22:55]line ФМ: 0000000000874718 [20:22:55]line ФД: 164375 [20:22:55]line ФПД: 80311360756542 [20:22:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T202254&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164375&fm=80311360756542&tin=02508201610067®Number=0000000000090829&sum=60000 [20:22:56]OFD Sender: Processing packet 164375 [packets to send 104, broken 103] [20:22:56]ProducePacketName [20:22:56]name=ofd_packets/00164375 [20:22:56]OFD Sender: To server: pG, [20:22:56]CommunicateWithHost lk.salyk.kg:30040 [20:22:56]ConnectInit lk.salyk.kg [20:22:56]written 0, free lines is 4095 [20:22:56]Connected sock=10 [20:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 74 B4 04 01 0A 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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 9E 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 82 02 00 35 04 06 00 49 0A F2 21 1B 3E 23 DA 88 08 0A B5 C2 90 [20:22:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9A E2 47 00 5E A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 82 02 00 F4 03 04 00 32 37 91 66 B6 04 01 00 00 16 82 29 FC 48 4E 49 C0 [20:22:56]CommunicateWithHost err = 0 [20:22:56]CheckOFDResponse [20:22:56]1017 (14) - 77093643461234 [20:22:56]1041 (16) - 0000000000874718 [20:22:56]1040 (4) - 164375 [20:22:56]1012 (4) - 12.07.2024 14:01 [20:22:56]1206 (1) - 0 [20:22:56]OFD Sender: Remove packet 164375 [20:22:56]ProducePacketName [20:22:56]name=ofd_packets/00164375 [20:22:56]NVStorageDeleteData [20:22:56]Write to MH i2c: 01 00 00 00 0A 0A [20:22:56]Write i2c OK [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: 01 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: 01 07 00 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 02 0D 20 [20:22:56]RasterBufferAndPrint [20:22:56]line [20:22:56]line [20:22:56]line [20:22:56]line [20:22:56]line [20:22:56]written 0, free lines is 3336 [20:22:56]MH_Cut [20:22:56]Write to MH i2c: D1 01 00 07 0A 01 E3 [20:22:56]Write i2c OK [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: D1 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: D1 01 00 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: D1 01 00 07 0A 00 E2 [20:22:56]Write to MH i2c: 01 00 00 08 0A 12 [20:22:56]Write i2c OK [20:22:56]MH_I2C_Read... [20:22:57]OFD Sender: No OFD packet to send [20:22:57]*** Cut start [20:22:57]*** Partial cut [20:22:57]*** CUTSNS_PIN = 1 [20:22:57]*** CUTSNS_PIN = 0 [20:22:57]*** Brake cut motor [20:22:57]Read from MH i2c: 01 [20:22:57]MH_I2C_Read... [20:22:57]*** Stop cut motor [20:22:57]*** Cut end [20:22:57]Read from MH i2c: 01 07 00 [20:22:57]MH_I2C_Read... [20:22:57]Read from MH i2c: 01 07 00 08 0A 00 00 00 00 00 FF 0F 27 [20:22:57]process_action close_receipt done [20:22:57]requested_data is exist [20:22:57]produce_requested_data [20:22:57]requested_item fm.sn is exist - process it [20:22:57]wFMCommunicate request_size=4 [20:22:57]MH_SAM_APDU [20:22:57]CAPDU: 80 11 00 00 [20:22:57]Write to MH i2c: E2 08 00 09 0A 80 11 00 00 00 00 00 00 8D [20:22:57]Write i2c OK [20:22:57]MH_I2C_Read... [20:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:57]Read from MH i2c: E2 [20:22:57]MH_I2C_Read... [20:22:57]Read from MH i2c: E2 17 00 [20:22:57]MH_I2C_Read... [20:22:57]Read from MH i2c: E2 17 00 09 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [20:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:22:57]wFMCommunicate OK [20:22:57]requested_item fd.num is exist - process it [20:22:57]SAM_PROTO_GetFieldsCounters [20:22:57]wFMCommunicate request_size=4 [20:22:57]MH_SAM_APDU [20:22:57]CAPDU: 80 13 00 00 [20:22:57]Write to MH i2c: E2 08 00 0A 0A 80 13 00 00 00 00 00 00 90 [20:22:57]Write i2c OK [20:22:57]MH_I2C_Read... [20:22:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:58]Read from MH i2c: E2 [20:22:58]MH_I2C_Read... [20:22:58]Read from MH i2c: E2 62 00 [20:22:58]MH_I2C_Read... [20:22:58]Read from MH i2c: E2 62 00 0A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [20:22:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:58]wFMCommunicate OK [20:22:58]SAM_PROTO_GetFieldsCounters done [20:22:58]requested_item shift.num is exist - process it [20:22:58]requested_item shift.opened is exist - process it [20:22:58]req_shift_opened [20:22:58]FM_GetShiftState [20:22:58]SAM_PROTO_GetShiftState [20:22:58]wFMCommunicate request_size=4 [20:22:58]MH_SAM_APDU [20:22:58]CAPDU: 80 13 01 00 [20:22:58]Write to MH i2c: E2 08 00 0B 0A 80 13 01 00 00 00 00 00 92 [20:22:58]Write i2c OK [20:22:58]MH_I2C_Read... [20:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:58]Read from MH i2c: E2 [20:22:58]MH_I2C_Read... [20:22:58]Read from MH i2c: E2 0E 00 [20:22:58]MH_I2C_Read... [20:22:58]Read from MH i2c: E2 0E 00 0B 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DC [20:22:58]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:22:58]wFMCommunicate OK [20:22:58]SAM_PROTO_GetShiftState done [20:22:58]FM_GetShiftState done [20:22:58]req_shift_opened done [20:22:58]requested_item shift.open_date is exist - process it [20:22:58]req_shift_open_date [20:22:58]req_shift_open_date done [20:22:58]produce_requested_data done [20:22:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164375,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:22:58]process_action_free close_receipt [20:22:58]json_value_free [20:22:58]json_value_free done [20:22:58]process_json_proto returns [20:22:58]Send response to host [20:22:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164375,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:22:58]free response buf [20:22:58]execute_script done [20:22:58]execute_script returns [20:22:58]free content buf [20:22:58]Sock 9.Close socket [20:22:58]Sock 9.Thread stoped [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:17]accept exits with 7 [20:24:17]New connection [20:24:17]New thread 3067391332 created [20:24:17]Thread 3067534692 joined [20:24:17]Waiting for new connection... [20:24:17] Sock 7.Parse request [20:24:17]Sock 7.Check first char [20:24:17]Sock 7.First char is OK [20:24:17]request: POST /json_proto HTTP/1.0 [20:24:17]Method: POST [20:24:17]URL: /json_proto [20:24:17]Method is POST - this is cgi request [20:24:17]url: /json_proto [20:24:17]query_string will be loaded in cgi processing [20:24:17]execute_cgi json_proto POST (null) [20:24:17]execute_cgi path=json_proto method=POST [20:24:17]POST find Content-Length [20:24:17]Host: 172.17.56.4:8080 [20:24:17]Content-Length: 677 [20:24:17]Content-Type: application/json [20:24:17] [20:24:17]POST finish read [20:24:17]Found Content-Length = 677 [20:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:17]execute_script... [20:24: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)458461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:17]POST & json_proto [20:24:17]process_json_proto [20:24:17]json parsed OK: [20:24:17]protocol is kg_v1.0 [20:24:17]action value=close_receipt [20:24:17]process_action close_receipt [20:24:17]cmd_close_receipt [20:24:17]MH_GetDate [20:24:17]Write to MH i2c: F0 00 00 0C 0A 05 [20:24:17]Write i2c OK [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: F0 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: F0 09 00 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: F0 09 00 0C 0A 00 F2 90 91 66 C9 DC B2 64 42 [20:24:17]GetLastDocTimeStamp 1720815774 [20:24:17]current date 1720815858 [20:24:17]FM_GetShiftState [20:24:17]SAM_PROTO_GetShiftState [20:24:17]wFMCommunicate request_size=4 [20:24:17]MH_SAM_APDU [20:24:17]CAPDU: 80 13 01 00 [20:24:17]Write to MH i2c: E2 08 00 0D 0A 80 13 01 00 00 00 00 00 94 [20:24:17]Write i2c OK [20:24:17]MH_I2C_Read... [20:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:17]Read from MH i2c: E2 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: E2 0E 00 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: E2 0E 00 0D 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DE [20:24:17]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:24:17]wFMCommunicate OK [20:24:17]SAM_PROTO_GetShiftState done [20:24:17]FM_GetShiftState done [20:24:17]opened in 1720744654 [20:24:17]opened+sec_in_day 1720831054 [20:24:17]quantity*price = 30004 [20:24:17]sum+1 = 30006 [20:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 297 12.07.2024 20:24 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164376 ФПД: 36961704983659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T202418&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164376&fm=36961704983659&tin=02508201610067®Number=0000000000090829&sum=30000 [20:24:18]StoreToDocumentArchive [20:24:18]shift 445 fd 164376 [20:24:18]save to /storage/0445/doc_00164376 [20:24:18]save last doc name /storage/0445/doc_00164376 to /storage/kkm_last_doc_name [20:24:18]save OK [20:24:18]Clear old archive folders... [20:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:24:18]tlvbuf is 0159E6F0 [20:24:18]SAM_PROTO_ClearQueue [20:24:18]wFMCommunicate request_size=4 [20:24:18]MH_SAM_APDU [20:24:18]CAPDU: 80 09 00 00 [20:24:18]Write to MH i2c: E2 08 00 1A 0A 80 09 00 00 00 00 00 00 96 [20:24:18]Write i2c OK [20:24:18]MH_I2C_Read... [20:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:18]Read from MH i2c: E2 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: E2 03 00 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [20:24:18]RAPDU: 90 00 [20:24:18]wFMCommunicate OK [20:24:18]SAM_PROTO_ClearQueue done [20:24:18]KKMCreateOFDPacket [20:24:18]OFDProtocolAddRootSTLVToBuf [20:24:18]FM_MakeSignedData [20:24:18]FM_MakeSignedData [20:24:18]SAM_PROTO_SignData [20:24:18]wFMCommunicate request_size=4 [20:24:18]MH_SAM_APDU [20:24:18]CAPDU: 80 0D 01 02 [20:24:19]Write to MH i2c: E2 08 00 1B 0A 80 0D 01 02 00 00 00 00 9E [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [20:24:19]RAPDU: 90 00 [20:24:19]wFMCommunicate OK [20:24:19]wFMCommunicate request_size=255 [20:24:19]MH_SAM_APDU [20:24: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 F2 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 82 02 00 35 04 06 00 21 [20:24:19]Write to MH i2c: E2 02 01 1C 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 F2 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 82 02 00 35 04 06 00 21 00 00 F6 [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [20:24:19]RAPDU: 90 00 [20:24:19]wFMCommunicate OK [20:24:19]wFMCommunicate request_size=10 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 0D 02 02 05 9D D1 4B BC 6B [20:24:19]Write to MH i2c: E2 0D 00 1D 0A 80 0D 02 02 05 00 9D D1 4B BC 6B 00 00 8B [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [20:24:19]RAPDU: 90 00 [20:24:19]wFMCommunicate OK [20:24:19]wFMCommunicate request_size=4 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 0D 03 02 [20:24:19]Write to MH i2c: E2 08 00 1E 0A 80 0D 03 02 00 00 00 00 A3 [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 0B 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 0B 00 1E 0A 00 64 77 4E EA AA 72 E0 32 90 00 E5 [20:24:19]RAPDU: 64 77 4E EA AA 72 E0 32 90 00 [20:24:19]wFMCommunicate OK [20:24:19]SAM_PROTO_SignData done [20:24:19]FM_MakeSignedData done [20:24:19]CreateOFDProtocolMessage [20:24:19]wFMCommunicate request_size=4 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 11 00 00 [20:24:19]Write to MH i2c: E2 08 00 1F 0A 80 11 00 00 00 00 00 00 A3 [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 17 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 17 00 1F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F9 [20:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:24:19]wFMCommunicate OK [20:24:19]CreateOFDProtocolMessage done [20:24:19]OFDSenderStorePacket 164376 [20:24:19]StoreOFDPacket docnum=164376 [20:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 03 CA 07 01 91 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 F2 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 82 02 00 35 04 06 00 21 9D D1 4B BC 6B 64 77 4E EA AA 72 E0 32 [20:24:19]CheckFolder [20:24:19]dirname=/storage/ofd_packets [20:24:19]CheckFolder done [20:24:19]ProducePacketName [20:24:19]name=ofd_packets/00164376 [20:24:19]NVStorageSaveData ofd_packets/00164376 [20:24:19]File name is /storage/ofd_packets/00164376 [20:24:19]Write 301 bytes [20:24:19]NVStorageSaveData done [20:24:19]OFDSenderStorePacket done [20:24:19]KKMCreateOFDPacket done [20:24:19]NVStorageSaveData kkm_last_timestamp [20:24:19]File name is /storage/kkm_last_timestamp [20:24:19]Write 4 bytes [20:24:19]NVStorageSaveData done [20:24:19]ExternCall_PrintAddStr [20:24:19]wPrintStart [20:24:19]Write to MH i2c: 01 00 00 20 0A 2A [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: 01 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: 01 07 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: 01 07 00 20 0A 00 00 00 00 00 FF 0F 3F [20:24:19]RasterBufferAndPrint [20:24:19]line Счет N : (1)458461 [20:24:19]line ИНН: 02508201610067 [20:24:19]line Контрольно-Кассовый Чек [20:24:19]line ПРОДАЖА [20:24:19]line ТРК (МРК, ГНК) : 22 [20:24:19]line Товар: 2710124130 [20:24:19]line Аи-92-К-5 [20:24:19]line 4.560 * 65.80 [20:24:19]line = 300.05 [20:24:19]line НДС 12% НСП 1% [20:24:19]line > о реализуемом товаре [20:24:19]line ОКРУГЛЕНИЕ: -0.05 [20:24:19]line ИТОГО: 300.00 [20:24:19]line Внесено: 300.00 [20:24:19]line СДАЧА: 0.00 [20:24:19]line НСП 1% : 2.65 [20:24:19]line НДС 12% : 31.86 [20:24:19]line Наличными: 300.00 [20:24:19]line Безнал.: 0.00 [20:24:19]line Место: АЗС № 72 "Партнер Нефть" [20:24:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:24:19]line СНО: Общий режим [20:24:19]line Чек 297 12.07.2024 20:24 [20:24:19]line Смена: 445 ФФД: 1.0 [20:24:19]line ЗНМ: 0300000160 [20:24:19]line РНМ: 0000000000090829 [20:24:19]line Версия ККМ: 001 [20:24:19]line ФМ: 0000000000874718 [20:24:19]line ФД: 164376 [20:24:19]line ФПД: 36961704983659 [20:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T202418&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164376&fm=36961704983659&tin=02508201610067®Number=0000000000090829&sum=30000 [20:24:19]OFD Sender: Processing packet 164376 [packets to send 104, broken 103] [20:24:19]ProducePacketName [20:24:19]name=ofd_packets/00164376 [20:24:19]OFD Sender: To server: pG, [20:24:19]CommunicateWithHost lk.salyk.kg:30040 [20:24:19]ConnectInit lk.salyk.kg [20:24:19]written 0, free lines is 4095 [20:24:19]Connected sock=10 [20:24:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 03 CA 07 01 91 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 F2 90 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 82 02 00 35 04 06 00 21 9D D1 4B BC 6B 64 77 4E EA AA 72 E0 32 [20:24:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4E 06 47 00 C9 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 34 37 31 38 10 04 04 00 18 82 02 00 F4 03 04 00 85 37 91 66 B6 04 01 00 00 9F C9 84 79 58 74 81 2A [20:24:20]CommunicateWithHost err = 0 [20:24:20]CheckOFDResponse [20:24:20]1017 (14) - 77093643461234 [20:24:20]1041 (16) - 0000000000874718 [20:24:20]1040 (4) - 164376 [20:24:20]1012 (4) - 12.07.2024 14:02 [20:24:20]1206 (1) - 0 [20:24:20]OFD Sender: Remove packet 164376 [20:24:20]ProducePacketName [20:24:20]name=ofd_packets/00164376 [20:24:20]NVStorageDeleteData [20:24:20]Write to MH i2c: 01 00 00 4A 0A 54 [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 07 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 14 0D 7C [20:24:20]RasterBufferAndPrint [20:24:20]line [20:24:20]line [20:24:20]line [20:24:20]line [20:24:20]line [20:24:20]written 0, free lines is 3354 [20:24:20]MH_Cut [20:24:20]Write to MH i2c: D1 01 00 51 0A 01 2D [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: D1 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: D1 01 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: D1 01 00 51 0A 00 2C [20:24:20]Write to MH i2c: 01 00 00 52 0A 5C [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]OFD Sender: No OFD packet to send [20:24:20]*** Cut start [20:24:20]*** Partial cut [20:24:20]*** CUTSNS_PIN = 1 [20:24:20]*** CUTSNS_PIN = 0 [20:24:21]*** Brake cut motor [20:24:21]Read from MH i2c: 01 [20:24:21]MH_I2C_Read... [20:24:21]*** Stop cut motor [20:24:21]*** Cut end [20:24:21]Read from MH i2c: 01 07 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: 01 07 00 52 0A 00 00 00 00 00 FF 0F 71 [20:24:21]process_action close_receipt done [20:24:21]requested_data is exist [20:24:21]produce_requested_data [20:24:21]requested_item fm.sn is exist - process it [20:24:21]wFMCommunicate request_size=4 [20:24:21]MH_SAM_APDU [20:24:21]CAPDU: 80 11 00 00 [20:24:21]Write to MH i2c: E2 08 00 53 0A 80 11 00 00 00 00 00 00 D7 [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:21]Read from MH i2c: E2 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 17 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 17 00 53 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [20:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:24:21]wFMCommunicate OK [20:24:21]requested_item fd.num is exist - process it [20:24:21]SAM_PROTO_GetFieldsCounters [20:24:21]wFMCommunicate request_size=4 [20:24:21]MH_SAM_APDU [20:24:21]CAPDU: 80 13 00 00 [20:24:21]Write to MH i2c: E2 08 00 54 0A 80 13 00 00 00 00 00 00 DA [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:21]Read from MH i2c: E2 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 62 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 62 00 54 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [20:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:21]wFMCommunicate OK [20:24:21]SAM_PROTO_GetFieldsCounters done [20:24:21]requested_item shift.num is exist - process it [20:24:21]requested_item shift.opened is exist - process it [20:24:21]req_shift_opened [20:24:21]FM_GetShiftState [20:24:21]SAM_PROTO_GetShiftState [20:24:21]wFMCommunicate request_size=4 [20:24:21]MH_SAM_APDU [20:24:21]CAPDU: 80 13 01 00 [20:24:21]Write to MH i2c: E2 08 00 55 0A 80 13 01 00 00 00 00 00 DC [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:21]Read from MH i2c: E2 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 0E 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 0E 00 55 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 26 [20:24:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:24:21]wFMCommunicate OK [20:24:21]SAM_PROTO_GetShiftState done [20:24:21]FM_GetShiftState done [20:24:21]req_shift_opened done [20:24:21]requested_item shift.open_date is exist - process it [20:24:21]req_shift_open_date [20:24:21]req_shift_open_date done [20:24:21]produce_requested_data done [20:24:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164376,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:24:21]process_action_free close_receipt [20:24:21]json_value_free [20:24:21]json_value_free done [20:24:21]process_json_proto returns [20:24:21]Send response to host [20:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164376,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:24:21]free response buf [20:24:21]execute_script done [20:24:21]execute_script returns [20:24:21]free content buf [20:24:21]Sock 7.Close socket [20:24:21]Sock 7.Thread stoped [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:45]accept exits with 9 [20:30:45]New connection [20:30:45]New thread 3067534692 created [20:30:45]Thread 3067391332 joined [20:30:45]Waiting for new connection... [20:30:45] Sock 9.Parse request [20:30:45]Sock 9.Check first char [20:30:45]Sock 9.First char is OK [20:30:45]request: POST /json_proto HTTP/1.0 [20:30:45]Method: POST [20:30:45]URL: /json_proto [20:30:45]Method is POST - this is cgi request [20:30:45]url: /json_proto [20:30:45]query_string will be loaded in cgi processing [20:30:45]execute_cgi json_proto POST (null) [20:30:45]execute_cgi path=json_proto method=POST [20:30:45]POST find Content-Length [20:30:45]Host: 172.17.56.4:8080 [20:30:45]Content-Length: 679 [20:30:45]Content-Type: application/json [20:30:45] [20:30:45]POST finish read [20:30:45]Found Content-Length = 679 [20:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 58.420, "sum" : 4200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4200.00, "total" : 4200.00, "payments": [ { "type": 0, "sum" : 4200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:45]execute_script... [20:30:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 58.420, "sum" : 4200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4200.00, "total" : 4200.00, "payments": [ { "type": 0, "sum" : 4200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:45]POST & json_proto [20:30:45]process_json_proto [20:30:45]json parsed OK: [20:30:45]protocol is kg_v1.0 [20:30:45]action value=close_receipt [20:30:45]process_action close_receipt [20:30:45]cmd_close_receipt [20:30:45]MH_GetDate [20:30:45]Write to MH i2c: F0 00 00 56 0A 4F [20:30:45]Write i2c OK [20:30:45]MH_I2C_Read... [20:30:45]Read from MH i2c: F0 [20:30:45]MH_I2C_Read... [20:30:45]Read from MH i2c: F0 09 00 [20:30:45]MH_I2C_Read... [20:30:45]Read from MH i2c: F0 09 00 56 0A 00 75 92 91 66 C9 DC B2 64 11 [20:30:45]GetLastDocTimeStamp 1720815858 [20:30:45]current date 1720816245 [20:30:45]FM_GetShiftState [20:30:45]SAM_PROTO_GetShiftState [20:30:45]wFMCommunicate request_size=4 [20:30:45]MH_SAM_APDU [20:30:45]CAPDU: 80 13 01 00 [20:30:45]Write to MH i2c: E2 08 00 57 0A 80 13 01 00 00 00 00 00 DE [20:30:45]Write i2c OK [20:30:45]MH_I2C_Read... [20:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:45]Read from MH i2c: E2 [20:30:45]MH_I2C_Read... [20:30:45]Read from MH i2c: E2 0E 00 [20:30:45]MH_I2C_Read... [20:30:45]Read from MH i2c: E2 0E 00 57 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 28 [20:30:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:30:45]wFMCommunicate OK [20:30:45]SAM_PROTO_GetShiftState done [20:30:45]FM_GetShiftState done [20:30:45]opened in 1720744654 [20:30:45]opened+sec_in_day 1720831054 [20:30:45]quantity*price = 420039 [20:30:45]sum+1 = 420041 [20:30:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 4200.00 Внесено: 4200.00 СДАЧА: 0.00 НСП 1% : 37.17 НДС 12% : 446.06 Наличными: 4200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 298 12.07.2024 20:30 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164377 ФПД: 59866042007817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T203045&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164377&fm=59866042007817&tin=02508201610067®Number=0000000000090829&sum=420000 [20:30:46]StoreToDocumentArchive [20:30:46]shift 445 fd 164377 [20:30:46]save to /storage/0445/doc_00164377 [20:30:46]save last doc name /storage/0445/doc_00164377 to /storage/kkm_last_doc_name [20:30:46]save OK [20:30:46]Clear old archive folders... [20:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:30:46]tlvbuf is 015AD280 [20:30:46]SAM_PROTO_ClearQueue [20:30:46]wFMCommunicate request_size=4 [20:30:46]MH_SAM_APDU [20:30:46]CAPDU: 80 09 00 00 [20:30:46]Write to MH i2c: E2 08 00 64 0A 80 09 00 00 00 00 00 00 E0 [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:46]Read from MH i2c: E2 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 03 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [20:30:46]RAPDU: 90 00 [20:30:46]wFMCommunicate OK [20:30:46]SAM_PROTO_ClearQueue done [20:30:46]KKMCreateOFDPacket [20:30:46]OFDProtocolAddRootSTLVToBuf [20:30:46]FM_MakeSignedData [20:30:46]FM_MakeSignedData [20:30:46]SAM_PROTO_SignData [20:30:46]wFMCommunicate request_size=4 [20:30:46]MH_SAM_APDU [20:30:46]CAPDU: 80 0D 01 02 [20:30:46]Write to MH i2c: E2 08 00 65 0A 80 0D 01 02 00 00 00 00 E8 [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:46]Read from MH i2c: E2 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 03 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [20:30:46]RAPDU: 90 00 [20:30:46]wFMCommunicate OK [20:30:46]wFMCommunicate request_size=255 [20:30:46]MH_SAM_APDU [20:30:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 E4 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C8 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E AE 00 00 00 00 07 04 06 00 A0 68 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 75 92 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 82 02 00 35 04 06 00 36 72 A6 2B [20:30:46]Write to MH i2c: E2 02 01 66 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 E4 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C8 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E AE 00 00 00 00 07 04 06 00 A0 68 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 75 92 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 82 02 00 35 04 06 00 36 72 A6 2B 00 00 63 [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:46]Read from MH i2c: E2 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 03 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [20:30:46]RAPDU: 90 00 [20:30:46]wFMCommunicate OK [20:30:46]wFMCommunicate request_size=7 [20:30:46]MH_SAM_APDU [20:30:46]CAPDU: 80 0D 02 02 02 01 09 [20:30:46]Write to MH i2c: E2 0A 00 67 0A 80 0D 02 02 02 00 01 09 00 00 F9 [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:46]Read from MH i2c: E2 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 03 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [20:30:46]RAPDU: 90 00 [20:30:46]wFMCommunicate OK [20:30:46]wFMCommunicate request_size=4 [20:30:46]MH_SAM_APDU [20:30:46]CAPDU: 80 0D 03 02 [20:30:46]Write to MH i2c: E2 08 00 68 0A 80 0D 03 02 00 00 00 00 ED [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:46]Read from MH i2c: E2 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 0B 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 0B 00 68 0A 00 24 43 3C 46 D7 D0 CD 02 90 00 4D [20:30:46]RAPDU: 24 43 3C 46 D7 D0 CD 02 90 00 [20:30:46]wFMCommunicate OK [20:30:46]SAM_PROTO_SignData done [20:30:46]FM_MakeSignedData done [20:30:46]CreateOFDProtocolMessage [20:30:46]wFMCommunicate request_size=4 [20:30:46]MH_SAM_APDU [20:30:46]CAPDU: 80 11 00 00 [20:30:46]Write to MH i2c: E2 08 00 69 0A 80 11 00 00 00 00 00 00 ED [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:46]Read from MH i2c: E2 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 17 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 17 00 69 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 43 [20:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:30:46]wFMCommunicate OK [20:30:46]CreateOFDProtocolMessage done [20:30:46]OFDSenderStorePacket 164377 [20:30:46]StoreOFDPacket docnum=164377 [20:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A2 B0 04 01 22 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 34 E4 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C8 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E AE 00 00 00 00 07 04 06 00 A0 68 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 75 92 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 82 02 00 35 04 06 00 36 72 A6 2B 01 09 24 43 3C 46 D7 D0 CD 02 [20:30:46]CheckFolder [20:30:46]dirname=/storage/ofd_packets [20:30:46]CheckFolder done [20:30:46]ProducePacketName [20:30:46]name=ofd_packets/00164377 [20:30:46]NVStorageSaveData ofd_packets/00164377 [20:30:46]File name is /storage/ofd_packets/00164377 [20:30:46]Write 298 bytes [20:30:46]NVStorageSaveData done [20:30:46]OFDSenderStorePacket done [20:30:46]KKMCreateOFDPacket done [20:30:46]NVStorageSaveData kkm_last_timestamp [20:30:46]File name is /storage/kkm_last_timestamp [20:30:46]Write 4 bytes [20:30:46]NVStorageSaveData done [20:30:46]ExternCall_PrintAddStr [20:30:46]wPrintStart [20:30:46]Write to MH i2c: 01 00 00 6A 0A 74 [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: 01 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: 01 07 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: 01 07 00 6A 0A 00 00 00 00 00 FF 0F 89 [20:30:46]RasterBufferAndPrint [20:30:46]line Счет N : (1)458462 [20:30:46]line ИНН: 02508201610067 [20:30:46]line Контрольно-Кассовый Чек [20:30:46]line ПРОДАЖА [20:30:46]line ТРК (МРК, ГНК) : 11 [20:30:46]line Товар: 2710194210 [20:30:46]line ДТ-К-5 [20:30:46]line 58.420 * 71.90 [20:30:46]line = 4200.40 [20:30:46]line НДС 12% НСП 1% [20:30:46]line > о реализуемом товаре [20:30:46]line ОКРУГЛЕНИЕ: -0.40 [20:30:46]line ИТОГО: 4200.00 [20:30:46]line Внесено: 4200.00 [20:30:46]line СДАЧА: 0.00 [20:30:46]line НСП 1% : 37.17 [20:30:46]line НДС 12% : 446.06 [20:30:46]line Наличными: 4200.00 [20:30:46]line Безнал.: 0.00 [20:30:46]line Место: АЗС № 72 "Партнер Нефть" [20:30:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:30:46]line СНО: Общий режим [20:30:46]line Чек 298 12.07.2024 20:30 [20:30:46]line Смена: 445 ФФД: 1.0 [20:30:46]line ЗНМ: 0300000160 [20:30:46]line РНМ: 0000000000090829 [20:30:46]line Версия ККМ: 001 [20:30:46]line ФМ: 0000000000874718 [20:30:46]line ФД: 164377 [20:30:46]line ФПД: 59866042007817 [20:30:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T203045&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164377&fm=59866042007817&tin=02508201610067®Number=0000000000090829&sum=420000 [20:30:47]OFD Sender: Processing packet 164377 [packets to send 104, broken 103] [20:30:47]ProducePacketName [20:30:47]name=ofd_packets/00164377 [20:30:47]OFD Sender: To server: pG, [20:30:47]CommunicateWithHost lk.salyk.kg:30040 [20:30:47]ConnectInit lk.salyk.kg [20:30:47]written 0, free lines is 4095 [20:30:47]Connected sock=10 [20:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A2 B0 04 01 22 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 34 E4 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C8 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E AE 00 00 00 00 07 04 06 00 A0 68 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 75 92 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 82 02 00 35 04 06 00 36 72 A6 2B 01 09 24 43 3C 46 D7 D0 CD 02 [20:30:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE CC 47 00 12 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 82 02 00 F4 03 04 00 09 39 91 66 B6 04 01 00 00 F1 14 3D 74 0E A5 62 16 [20:30:47]CommunicateWithHost err = 0 [20:30:47]CheckOFDResponse [20:30:47]1017 (14) - 77093643461234 [20:30:47]1041 (16) - 0000000000874718 [20:30:47]1040 (4) - 164377 [20:30:47]1012 (4) - 12.07.2024 14:09 [20:30:47]1206 (1) - 0 [20:30:47]OFD Sender: Remove packet 164377 [20:30:47]ProducePacketName [20:30:47]name=ofd_packets/00164377 [20:30:47]NVStorageDeleteData [20:30:47]Write to MH i2c: 01 00 00 94 0A 9E [20:30:47]Write i2c OK [20:30:47]MH_I2C_Read... [20:30:47]Read from MH i2c: 01 [20:30:47]MH_I2C_Read... [20:30:47]Read from MH i2c: 01 07 00 [20:30:47]MH_I2C_Read... [20:30:47]Read from MH i2c: 01 07 00 94 0A 00 00 00 00 00 0A 0D BC [20:30:47]RasterBufferAndPrint [20:30:47]line [20:30:47]line [20:30:47]line [20:30:47]line [20:30:47]line [20:30:47]written 0, free lines is 3344 [20:30:47]MH_Cut [20:30:47]Write to MH i2c: D1 01 00 9B 0A 01 77 [20:30:47]Write i2c OK [20:30:47]MH_I2C_Read... [20:30:47]Read from MH i2c: D1 [20:30:47]MH_I2C_Read... [20:30:47]Read from MH i2c: D1 01 00 [20:30:47]MH_I2C_Read... [20:30:47]Read from MH i2c: D1 01 00 9B 0A 00 76 [20:30:47]Write to MH i2c: 01 00 00 9C 0A A6 [20:30:47]Write i2c OK [20:30:47]MH_I2C_Read... [20:30:48]OFD Sender: No OFD packet to send [20:30:48]*** Cut start [20:30:48]*** Partial cut [20:30:48]*** CUTSNS_PIN = 1 [20:30:48]*** CUTSNS_PIN = 0 [20:30:48]*** Brake cut motor [20:30:48]Read from MH i2c: 01 [20:30:48]MH_I2C_Read... [20:30:48]*** Stop cut motor [20:30:48]*** Cut end [20:30:48]Read from MH i2c: 01 07 00 [20:30:48]MH_I2C_Read... [20:30:48]Read from MH i2c: 01 07 00 9C 0A 00 00 00 00 00 FF 0F BB [20:30:48]process_action close_receipt done [20:30:48]requested_data is exist [20:30:48]produce_requested_data [20:30:48]requested_item fm.sn is exist - process it [20:30:48]wFMCommunicate request_size=4 [20:30:48]MH_SAM_APDU [20:30:48]CAPDU: 80 11 00 00 [20:30:48]Write to MH i2c: E2 08 00 9D 0A 80 11 00 00 00 00 00 00 21 [20:30:48]Write i2c OK [20:30:48]MH_I2C_Read... [20:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:48]Read from MH i2c: E2 [20:30:48]MH_I2C_Read... [20:30:48]Read from MH i2c: E2 17 00 [20:30:48]MH_I2C_Read... [20:30:48]Read from MH i2c: E2 17 00 9D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [20:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:30:48]wFMCommunicate OK [20:30:48]requested_item fd.num is exist - process it [20:30:48]SAM_PROTO_GetFieldsCounters [20:30:48]wFMCommunicate request_size=4 [20:30:48]MH_SAM_APDU [20:30:48]CAPDU: 80 13 00 00 [20:30:48]Write to MH i2c: E2 08 00 9E 0A 80 13 00 00 00 00 00 00 24 [20:30:48]Write i2c OK [20:30:48]MH_I2C_Read... [20:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:49]Read from MH i2c: E2 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 62 00 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 62 00 9E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [20:30: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:49]wFMCommunicate OK [20:30:49]SAM_PROTO_GetFieldsCounters done [20:30:49]requested_item shift.num is exist - process it [20:30:49]requested_item shift.opened is exist - process it [20:30:49]req_shift_opened [20:30:49]FM_GetShiftState [20:30:49]SAM_PROTO_GetShiftState [20:30:49]wFMCommunicate request_size=4 [20:30:49]MH_SAM_APDU [20:30:49]CAPDU: 80 13 01 00 [20:30:49]Write to MH i2c: E2 08 00 9F 0A 80 13 01 00 00 00 00 00 26 [20:30:49]Write i2c OK [20:30:49]MH_I2C_Read... [20:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:49]Read from MH i2c: E2 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 0E 00 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 0E 00 9F 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 70 [20:30:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:30:49]wFMCommunicate OK [20:30:49]SAM_PROTO_GetShiftState done [20:30:49]FM_GetShiftState done [20:30:49]req_shift_opened done [20:30:49]requested_item shift.open_date is exist - process it [20:30:49]req_shift_open_date [20:30:49]req_shift_open_date done [20:30:49]produce_requested_data done [20:30:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164377,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:30:49]process_action_free close_receipt [20:30:49]json_value_free [20:30:49]json_value_free done [20:30:49]process_json_proto returns [20:30:49]Send response to host [20:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164377,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:30:49]free response buf [20:30:49]execute_script done [20:30:49]execute_script returns [20:30:49]free content buf [20:30:49]Sock 9.Close socket [20:30:49]Sock 9.Thread stoped [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:10]accept exits with 7 [20:34:10]New connection [20:34:10]New thread 3067391332 created [20:34:10]Thread 3067534692 joined [20:34:10]Waiting for new connection... [20:34:10] Sock 7.Parse request [20:34:10]Sock 7.Check first char [20:34:10]Sock 7.First char is OK [20:34:10]request: POST /json_proto HTTP/1.0 [20:34:10]Method: POST [20:34:10]URL: /json_proto [20:34:10]Method is POST - this is cgi request [20:34:10]url: /json_proto [20:34:10]query_string will be loaded in cgi processing [20:34:10]execute_cgi json_proto POST (null) [20:34:10]execute_cgi path=json_proto method=POST [20:34:10]POST find Content-Length [20:34:10]Host: 172.17.56.4:8080 [20:34:10]Content-Length: 677 [20:34:10]Content-Type: application/json [20:34:10] [20:34:10]POST finish read [20:34:10]Found Content-Length = 677 [20:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.280, "sum" : 610.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:10]execute_script... [20:34: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)458463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.280, "sum" : 610.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:10]POST & json_proto [20:34:10]process_json_proto [20:34:10]json parsed OK: [20:34:10]protocol is kg_v1.0 [20:34:10]action value=close_receipt [20:34:10]process_action close_receipt [20:34:10]cmd_close_receipt [20:34:10]MH_GetDate [20:34:10]Write to MH i2c: F0 00 00 A0 0A 99 [20:34:10]Write i2c OK [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: F0 [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: F0 09 00 [20:34:10]MH_I2C_Read... [20:34:10]Read from MH i2c: F0 09 00 A0 0A 00 43 93 91 66 C9 DC B2 64 2A [20:34:10]GetLastDocTimeStamp 1720816245 [20:34:10]current date 1720816451 [20:34:10]FM_GetShiftState [20:34:10]SAM_PROTO_GetShiftState [20:34:10]wFMCommunicate request_size=4 [20:34:10]MH_SAM_APDU [20:34:10]CAPDU: 80 13 01 00 [20:34:10]Write to MH i2c: E2 08 00 A1 0A 80 13 01 00 00 00 00 00 28 [20:34:10]Write i2c OK [20:34:10]MH_I2C_Read... [20:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:11]Read from MH i2c: E2 [20:34:11]MH_I2C_Read... [20:34:11]Read from MH i2c: E2 0E 00 [20:34:11]MH_I2C_Read... [20:34:11]Read from MH i2c: E2 0E 00 A1 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 72 [20:34:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:34:11]wFMCommunicate OK [20:34:11]SAM_PROTO_GetShiftState done [20:34:11]FM_GetShiftState done [20:34:11]opened in 1720744654 [20:34:11]opened+sec_in_day 1720831054 [20:34:11]quantity*price = 61062 [20:34:11]sum+1 = 61063 [20:34:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.84 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 299 12.07.2024 20:34 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164378 ФПД: 223603164321411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T203411&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164378&fm=223603164321411&tin=02508201610067®Number=0000000000090829&sum=61000 [20:34:12]StoreToDocumentArchive [20:34:12]shift 445 fd 164378 [20:34:12]save to /storage/0445/doc_00164378 [20:34:12]save last doc name /storage/0445/doc_00164378 to /storage/kkm_last_doc_name [20:34:12]save OK [20:34:12]Clear old archive folders... [20:34:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:12]tlvbuf is 015A2230 [20:34:12]SAM_PROTO_ClearQueue [20:34:12]wFMCommunicate request_size=4 [20:34:12]MH_SAM_APDU [20:34:12]CAPDU: 80 09 00 00 [20:34:12]Write to MH i2c: E2 08 00 AE 0A 80 09 00 00 00 00 00 00 2A [20:34:12]Write i2c OK [20:34:12]MH_I2C_Read... [20:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:12]Read from MH i2c: E2 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 03 00 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [20:34:12]RAPDU: 90 00 [20:34:12]wFMCommunicate OK [20:34:12]SAM_PROTO_ClearQueue done [20:34:12]KKMCreateOFDPacket [20:34:12]OFDProtocolAddRootSTLVToBuf [20:34:12]FM_MakeSignedData [20:34:12]FM_MakeSignedData [20:34:12]SAM_PROTO_SignData [20:34:12]wFMCommunicate request_size=4 [20:34:12]MH_SAM_APDU [20:34:12]CAPDU: 80 0D 01 02 [20:34:12]Write to MH i2c: E2 08 00 AF 0A 80 0D 01 02 00 00 00 00 32 [20:34:12]Write i2c OK [20:34:12]MH_I2C_Read... [20:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:12]Read from MH i2c: E2 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 03 00 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [20:34:12]RAPDU: 90 00 [20:34:12]wFMCommunicate OK [20:34:12]wFMCommunicate request_size=255 [20:34:12]MH_SAM_APDU [20:34: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 40 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 86 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 43 93 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 82 02 00 35 04 06 00 CB [20:34:12]Write to MH i2c: E2 02 01 B0 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 86 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 43 93 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 82 02 00 35 04 06 00 CB 00 00 FE [20:34:12]Write i2c OK [20:34:12]MH_I2C_Read... [20:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:12]Read from MH i2c: E2 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 03 00 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [20:34:12]RAPDU: 90 00 [20:34:12]wFMCommunicate OK [20:34:12]wFMCommunicate request_size=10 [20:34:12]MH_SAM_APDU [20:34:12]CAPDU: 80 0D 02 02 05 5D AB 2E 16 83 [20:34:12]Write to MH i2c: E2 0D 00 B1 0A 80 0D 02 02 05 00 5D AB 2E 16 83 00 00 0E [20:34:12]Write i2c OK [20:34:12]MH_I2C_Read... [20:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:12]Read from MH i2c: E2 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 03 00 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [20:34:12]RAPDU: 90 00 [20:34:12]wFMCommunicate OK [20:34:12]wFMCommunicate request_size=4 [20:34:12]MH_SAM_APDU [20:34:12]CAPDU: 80 0D 03 02 [20:34:12]Write to MH i2c: E2 08 00 B2 0A 80 0D 03 02 00 00 00 00 37 [20:34:12]Write i2c OK [20:34:12]MH_I2C_Read... [20:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:12]Read from MH i2c: E2 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 0B 00 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 0B 00 B2 0A 00 87 C1 C9 60 43 D2 42 03 90 00 03 [20:34:12]RAPDU: 87 C1 C9 60 43 D2 42 03 90 00 [20:34:12]wFMCommunicate OK [20:34:12]SAM_PROTO_SignData done [20:34:12]FM_MakeSignedData done [20:34:12]CreateOFDProtocolMessage [20:34:12]wFMCommunicate request_size=4 [20:34:12]MH_SAM_APDU [20:34:12]CAPDU: 80 11 00 00 [20:34:12]Write to MH i2c: E2 08 00 B3 0A 80 11 00 00 00 00 00 00 37 [20:34:12]Write i2c OK [20:34:12]MH_I2C_Read... [20:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:12]Read from MH i2c: E2 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 17 00 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: E2 17 00 B3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [20:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:34:12]wFMCommunicate OK [20:34:12]CreateOFDProtocolMessage done [20:34:12]OFDSenderStorePacket 164378 [20:34:12]StoreOFDPacket docnum=164378 [20:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 34 07 01 EC 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 40 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 86 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 43 93 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 82 02 00 35 04 06 00 CB 5D AB 2E 16 83 87 C1 C9 60 43 D2 42 03 [20:34:12]CheckFolder [20:34:12]dirname=/storage/ofd_packets [20:34:12]CheckFolder done [20:34:12]ProducePacketName [20:34:12]name=ofd_packets/00164378 [20:34:12]NVStorageSaveData ofd_packets/00164378 [20:34:12]File name is /storage/ofd_packets/00164378 [20:34:12]Write 301 bytes [20:34:12]NVStorageSaveData done [20:34:12]OFDSenderStorePacket done [20:34:12]KKMCreateOFDPacket done [20:34:12]NVStorageSaveData kkm_last_timestamp [20:34:12]File name is /storage/kkm_last_timestamp [20:34:12]Write 4 bytes [20:34:12]NVStorageSaveData done [20:34:12]ExternCall_PrintAddStr [20:34:12]wPrintStart [20:34:12]Write to MH i2c: 01 00 00 B4 0A BE [20:34:12]Write i2c OK [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: 01 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: 01 07 00 [20:34:12]MH_I2C_Read... [20:34:12]Read from MH i2c: 01 07 00 B4 0A 00 00 00 00 00 FF 0F D3 [20:34:12]RasterBufferAndPrint [20:34:12]line Счет N : (1)458463 [20:34:12]line ИНН: 02508201610067 [20:34:12]line Контрольно-Кассовый Чек [20:34:12]line ПРОДАЖА [20:34:12]line ТРК (МРК, ГНК) : 12 [20:34:12]line Товар: 2710124130 [20:34:12]line Аи-92-К-5 [20:34:12]line 9.280 * 65.80 [20:34:12]line = 610.62 [20:34:12]line НДС 12% НСП 1% [20:34:12]line > о реализуемом товаре [20:34:12]line ОКРУГЛЕНИЕ: -0.62 [20:34:12]line ИТОГО: 610.00 [20:34:12]line Внесено: 610.00 [20:34:12]line СДАЧА: 0.00 [20:34:12]line НСП 1% : 5.40 [20:34:12]line НДС 12% : 64.84 [20:34:12]line Наличными: 610.00 [20:34:12]line Безнал.: 0.00 [20:34:12]line Место: АЗС № 72 "Партнер Нефть" [20:34:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:34:12]line СНО: Общий режим [20:34:12]line Чек 299 12.07.2024 20:34 [20:34:12]line Смена: 445 ФФД: 1.0 [20:34:12]line ЗНМ: 0300000160 [20:34:12]line РНМ: 0000000000090829 [20:34:12]line Версия ККМ: 001 [20:34:12]line ФМ: 0000000000874718 [20:34:12]line ФД: 164378 [20:34:12]line ФПД: 223603164321411 [20:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T203411&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164378&fm=223603164321411&tin=02508201610067®Number=0000000000090829&sum=61000 [20:34:13]OFD Sender: Processing packet 164378 [packets to send 104, broken 103] [20:34:13]ProducePacketName [20:34:13]name=ofd_packets/00164378 [20:34:13]OFD Sender: To server: pG, [20:34:13]CommunicateWithHost lk.salyk.kg:30040 [20:34:13]ConnectInit lk.salyk.kg [20:34:13]written 0, free lines is 4095 [20:34:13]Connected sock=10 [20:34:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 34 07 01 EC 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 40 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 86 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 43 93 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 82 02 00 35 04 06 00 CB 5D AB 2E 16 83 87 C1 C9 60 43 D2 42 03 [20:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 62 68 47 00 F0 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 82 02 00 F4 03 04 00 D6 39 91 66 B6 04 01 00 00 DC AE 42 BD 6E 31 AF BF [20:34:13]CommunicateWithHost err = 0 [20:34:13]CheckOFDResponse [20:34:13]1017 (14) - 77093643461234 [20:34:13]1041 (16) - 0000000000874718 [20:34:13]1040 (4) - 164378 [20:34:13]1012 (4) - 12.07.2024 14:12 [20:34:13]1206 (1) - 0 [20:34:13]OFD Sender: Remove packet 164378 [20:34:13]ProducePacketName [20:34:13]name=ofd_packets/00164378 [20:34:13]NVStorageDeleteData [20:34:13]Write to MH i2c: 01 00 00 DE 0A E8 [20:34:13]Write i2c OK [20:34:13]MH_I2C_Read... [20:34:13]Read from MH i2c: 01 [20:34:13]MH_I2C_Read... [20:34:13]Read from MH i2c: 01 07 00 [20:34:13]MH_I2C_Read... [20:34:13]Read from MH i2c: 01 07 00 DE 0A 00 00 00 00 00 FD 0C F8 [20:34:13]RasterBufferAndPrint [20:34:13]line [20:34:13]line [20:34:13]line [20:34:13]line [20:34:13]line [20:34:13]written 0, free lines is 3331 [20:34:13]MH_Cut [20:34:13]Write to MH i2c: D1 01 00 E5 0A 01 C1 [20:34:13]Write i2c OK [20:34:13]MH_I2C_Read... [20:34:13]Read from MH i2c: D1 [20:34:13]MH_I2C_Read... [20:34:13]Read from MH i2c: D1 01 00 [20:34:13]MH_I2C_Read... [20:34:13]Read from MH i2c: D1 01 00 E5 0A 00 C0 [20:34:13]Write to MH i2c: 01 00 00 E6 0A F0 [20:34:13]Write i2c OK [20:34:13]MH_I2C_Read... [20:34:13]OFD Sender: No OFD packet to send [20:34:14]*** Cut start [20:34:14]*** Partial cut [20:34:14]*** CUTSNS_PIN = 1 [20:34:14]*** CUTSNS_PIN = 0 [20:34:14]*** Brake cut motor [20:34:14]Read from MH i2c: 01 [20:34:14]MH_I2C_Read... [20:34:14]*** Stop cut motor [20:34:14]*** Cut end [20:34:14]Read from MH i2c: 01 07 00 [20:34:14]MH_I2C_Read... [20:34:14]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 FF 0F 05 [20:34:14]process_action close_receipt done [20:34:14]requested_data is exist [20:34:14]produce_requested_data [20:34:14]requested_item fm.sn is exist - process it [20:34:14]wFMCommunicate request_size=4 [20:34:14]MH_SAM_APDU [20:34:14]CAPDU: 80 11 00 00 [20:34:14]Write to MH i2c: E2 08 00 E7 0A 80 11 00 00 00 00 00 00 6B [20:34:14]Write i2c OK [20:34:14]MH_I2C_Read... [20:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:14]Read from MH i2c: E2 [20:34:14]MH_I2C_Read... [20:34:14]Read from MH i2c: E2 17 00 [20:34:14]MH_I2C_Read... [20:34:14]Read from MH i2c: E2 17 00 E7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [20:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:34:14]wFMCommunicate OK [20:34:14]requested_item fd.num is exist - process it [20:34:14]SAM_PROTO_GetFieldsCounters [20:34:14]wFMCommunicate request_size=4 [20:34:14]MH_SAM_APDU [20:34:14]CAPDU: 80 13 00 00 [20:34:14]Write to MH i2c: E2 08 00 E8 0A 80 13 00 00 00 00 00 00 6E [20:34:14]Write i2c OK [20:34:14]MH_I2C_Read... [20:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:14]Read from MH i2c: E2 [20:34:14]MH_I2C_Read... [20:34:14]Read from MH i2c: E2 62 00 [20:34:14]MH_I2C_Read... [20:34:14]Read from MH i2c: E2 62 00 E8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [20:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:14]wFMCommunicate OK [20:34:14]SAM_PROTO_GetFieldsCounters done [20:34:14]requested_item shift.num is exist - process it [20:34:14]requested_item shift.opened is exist - process it [20:34:14]req_shift_opened [20:34:14]FM_GetShiftState [20:34:14]SAM_PROTO_GetShiftState [20:34:14]wFMCommunicate request_size=4 [20:34:14]MH_SAM_APDU [20:34:14]CAPDU: 80 13 01 00 [20:34:14]Write to MH i2c: E2 08 00 E9 0A 80 13 01 00 00 00 00 00 70 [20:34:14]Write i2c OK [20:34:14]MH_I2C_Read... [20:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:14]Read from MH i2c: E2 [20:34:14]MH_I2C_Read... [20:34:14]Read from MH i2c: E2 0E 00 [20:34:14]MH_I2C_Read... [20:34:14]Read from MH i2c: E2 0E 00 E9 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BA [20:34:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:34:14]wFMCommunicate OK [20:34:14]SAM_PROTO_GetShiftState done [20:34:14]FM_GetShiftState done [20:34:14]req_shift_opened done [20:34:14]requested_item shift.open_date is exist - process it [20:34:14]req_shift_open_date [20:34:14]req_shift_open_date done [20:34:14]produce_requested_data done [20:34:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164378,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:34:14]process_action_free close_receipt [20:34:14]json_value_free [20:34:14]json_value_free done [20:34:14]process_json_proto returns [20:34:14]Send response to host [20:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164378,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:34:14]free response buf [20:34:14]execute_script done [20:34:14]execute_script returns [20:34:14]free content buf [20:34:14]Sock 7.Close socket [20:34:14]Sock 7.Thread stoped [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:34]accept exits with 9 [20:34:34]New connection [20:34:34]New thread 3067534692 created [20:34:34]Thread 3067391332 joined [20:34:34]Waiting for new connection... [20:34:34] Sock 9.Parse request [20:34:34]Sock 9.Check first char [20:34:34]Sock 9.First char is OK [20:34:34]request: POST /json_proto HTTP/1.0 [20:34:34]Method: POST [20:34:34]URL: /json_proto [20:34:34]Method is POST - this is cgi request [20:34:34]url: /json_proto [20:34:34]query_string will be loaded in cgi processing [20:34:34]execute_cgi json_proto POST (null) [20:34:34]execute_cgi path=json_proto method=POST [20:34:34]POST find Content-Length [20:34:34]Host: 172.17.56.4:8080 [20:34:34]Content-Length: 682 [20:34:34]Content-Type: application/json [20:34:34] [20:34:34]POST finish read [20:34:34]Found Content-Length = 682 [20:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:34:34]execute_script... [20:34:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:34:34]POST & json_proto [20:34:34]process_json_proto [20:34:34]json parsed OK: [20:34:34]protocol is kg_v1.0 [20:34:34]action value=close_receipt [20:34:34]process_action close_receipt [20:34:34]cmd_close_receipt [20:34:34]MH_GetDate [20:34:34]Write to MH i2c: F0 00 00 EA 0A E3 [20:34:34]Write i2c OK [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: F0 [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: F0 09 00 [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: F0 09 00 EA 0A 00 5B 93 91 66 C9 DC B2 64 8C [20:34:34]GetLastDocTimeStamp 1720816451 [20:34:34]current date 1720816475 [20:34:34]FM_GetShiftState [20:34:34]SAM_PROTO_GetShiftState [20:34:34]wFMCommunicate request_size=4 [20:34:34]MH_SAM_APDU [20:34:34]CAPDU: 80 13 01 00 [20:34:34]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [20:34:34]Write i2c OK [20:34:34]MH_I2C_Read... [20:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:34]Read from MH i2c: E2 [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: E2 0E 00 [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BC [20:34:34]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:34:34]wFMCommunicate OK [20:34:34]SAM_PROTO_GetShiftState done [20:34:34]FM_GetShiftState done [20:34:34]opened in 1720744654 [20:34:34]opened+sec_in_day 1720831054 [20:34:34]quantity*price = 100016 [20:34:34]sum+1 = 100017 [20:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 300 12.07.2024 20:34 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164379 ФПД: 12793676997492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T203435&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164379&fm=12793676997492&tin=02508201610067®Number=0000000000090829&sum=100000 [20:34:35]StoreToDocumentArchive [20:34:35]shift 445 fd 164379 [20:34:35]save to /storage/0445/doc_00164379 [20:34:35]save last doc name /storage/0445/doc_00164379 to /storage/kkm_last_doc_name [20:34:35]save OK [20:34:35]Clear old archive folders... [20:34:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:35]tlvbuf is 015D1D40 [20:34:35]SAM_PROTO_ClearQueue [20:34:35]wFMCommunicate request_size=4 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 09 00 00 [20:34:35]Write to MH i2c: E2 08 00 F8 0A 80 09 00 00 00 00 00 00 74 [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:35]Read from MH i2c: E2 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 03 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 03 00 F8 0A 00 90 00 76 [20:34:35]RAPDU: 90 00 [20:34:35]wFMCommunicate OK [20:34:35]SAM_PROTO_ClearQueue done [20:34:35]KKMCreateOFDPacket [20:34:35]OFDProtocolAddRootSTLVToBuf [20:34:35]FM_MakeSignedData [20:34:35]FM_MakeSignedData [20:34:35]SAM_PROTO_SignData [20:34:35]wFMCommunicate request_size=4 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 0D 01 02 [20:34:35]Write to MH i2c: E2 08 00 F9 0A 80 0D 01 02 00 00 00 00 7C [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:35]Read from MH i2c: E2 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 03 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 03 00 F9 0A 00 90 00 77 [20:34:35]RAPDU: 90 00 [20:34:35]wFMCommunicate OK [20:34:35]wFMCommunicate request_size=255 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 5B 93 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 82 02 00 35 04 06 00 0B [20:34:35]Write to MH i2c: E2 02 01 FA 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 5B 93 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 82 02 00 35 04 06 00 0B 00 00 11 [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:35]Read from MH i2c: E2 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 03 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [20:34:35]RAPDU: 90 00 [20:34:35]wFMCommunicate OK [20:34:35]wFMCommunicate request_size=10 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 0D 02 02 05 A2 C2 92 A3 74 [20:34:35]Write to MH i2c: E2 0D 00 FB 0A 80 0D 02 02 05 00 A2 C2 92 A3 74 00 00 96 [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:35]Read from MH i2c: E2 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 03 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [20:34:35]RAPDU: 90 00 [20:34:35]wFMCommunicate OK [20:34:35]wFMCommunicate request_size=4 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 0D 03 02 [20:34:35]Write to MH i2c: E2 08 00 FC 0A 80 0D 03 02 00 00 00 00 81 [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:36]Read from MH i2c: E2 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: E2 0B 00 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: E2 0B 00 FC 0A 00 AB 65 D1 FB 1F 11 73 C2 90 00 C3 [20:34:36]RAPDU: AB 65 D1 FB 1F 11 73 C2 90 00 [20:34:36]wFMCommunicate OK [20:34:36]SAM_PROTO_SignData done [20:34:36]FM_MakeSignedData done [20:34:36]CreateOFDProtocolMessage [20:34:36]wFMCommunicate request_size=4 [20:34:36]MH_SAM_APDU [20:34:36]CAPDU: 80 11 00 00 [20:34:36]Write to MH i2c: E2 08 00 FD 0A 80 11 00 00 00 00 00 00 81 [20:34:36]Write i2c OK [20:34:36]MH_I2C_Read... [20:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:36]Read from MH i2c: E2 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: E2 17 00 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: E2 17 00 FD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [20:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:34:36]wFMCommunicate OK [20:34:36]CreateOFDProtocolMessage done [20:34:36]OFDSenderStorePacket 164379 [20:34:36]StoreOFDPacket docnum=164379 [20:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 78 28 07 01 B1 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 5B 93 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 82 02 00 35 04 06 00 0B A2 C2 92 A3 74 AB 65 D1 FB 1F 11 73 C2 [20:34:36]CheckFolder [20:34:36]dirname=/storage/ofd_packets [20:34:36]CheckFolder done [20:34:36]ProducePacketName [20:34:36]name=ofd_packets/00164379 [20:34:36]NVStorageSaveData ofd_packets/00164379 [20:34:36]File name is /storage/ofd_packets/00164379 [20:34:36]Write 301 bytes [20:34:36]NVStorageSaveData done [20:34:36]OFDSenderStorePacket done [20:34:36]KKMCreateOFDPacket done [20:34:36]NVStorageSaveData kkm_last_timestamp [20:34:36]File name is /storage/kkm_last_timestamp [20:34:36]Write 4 bytes [20:34:36]NVStorageSaveData done [20:34:36]ExternCall_PrintAddStr [20:34:36]wPrintStart [20:34:36]Write to MH i2c: 01 00 00 FE 0A 08 [20:34:36]Write i2c OK [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: 01 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: 01 07 00 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: 01 07 00 FE 0A 00 00 00 00 00 FF 0F 1D [20:34:36]RasterBufferAndPrint [20:34:36]line Счет N : (1)458464 [20:34:36]line ИНН: 02508201610067 [20:34:36]line Контрольно-Кассовый Чек [20:34:36]line ПРОДАЖА [20:34:36]line ТРК (МРК, ГНК) : 22 [20:34:36]line Товар: 2710124130 [20:34:36]line Аи-92-К-5 [20:34:36]line 15.200 * 65.80 [20:34:36]line = 1000.16 [20:34:36]line НДС 12% НСП 1% [20:34:36]line > о реализуемом товаре [20:34:36]line ОКРУГЛЕНИЕ: -0.16 [20:34:36]line ИТОГО: 1000.00 [20:34:36]line Внесено: 1000.00 [20:34:36]line СДАЧА: 0.00 [20:34:36]line НСП 1% : 8.85 [20:34:36]line НДС 12% : 106.21 [20:34:36]line Наличными: 1000.00 [20:34:36]line Безнал.: 0.00 [20:34:36]line Место: АЗС № 72 "Партнер Нефть" [20:34:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:34:36]line СНО: Общий режим [20:34:36]line Чек 300 12.07.2024 20:34 [20:34:36]line Смена: 445 ФФД: 1.0 [20:34:36]line ЗНМ: 0300000160 [20:34:36]line РНМ: 0000000000090829 [20:34:36]line Версия ККМ: 001 [20:34:36]line ФМ: 0000000000874718 [20:34:36]line ФД: 164379 [20:34:36]line ФПД: 12793676997492 [20:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T203435&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164379&fm=12793676997492&tin=02508201610067®Number=0000000000090829&sum=100000 [20:34:36]OFD Sender: Processing packet 164379 [packets to send 104, broken 103] [20:34:36]ProducePacketName [20:34:36]name=ofd_packets/00164379 [20:34:36]OFD Sender: To server: pG, [20:34:36]CommunicateWithHost lk.salyk.kg:30040 [20:34:36]ConnectInit lk.salyk.kg [20:34:36]written 0, free lines is 4095 [20:34:36]Connected sock=10 [20:34:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 78 28 07 01 B1 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 5B 93 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 82 02 00 35 04 06 00 0B A2 C2 92 A3 74 AB 65 D1 FB 1F 11 73 C2 [20:34:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A3 E8 47 00 EB 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 34 37 31 38 10 04 04 00 1B 82 02 00 F4 03 04 00 EE 39 91 66 B6 04 01 00 00 8C C0 24 52 10 32 EB AF [20:34:36]CommunicateWithHost err = 0 [20:34:36]CheckOFDResponse [20:34:36]1017 (14) - 77093643461234 [20:34:36]1041 (16) - 0000000000874718 [20:34:36]1040 (4) - 164379 [20:34:36]1012 (4) - 12.07.2024 14:13 [20:34:36]1206 (1) - 0 [20:34:36]OFD Sender: Remove packet 164379 [20:34:36]ProducePacketName [20:34:36]name=ofd_packets/00164379 [20:34:36]NVStorageDeleteData [20:34:36]Write to MH i2c: 01 00 00 28 0B 33 [20:34:36]Write i2c OK [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: 01 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: 01 07 00 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: 01 07 00 28 0B 00 00 00 00 00 FA 0C 40 [20:34:36]RasterBufferAndPrint [20:34:36]line [20:34:36]line [20:34:36]line [20:34:36]line [20:34:36]line [20:34:36]written 0, free lines is 3328 [20:34:36]MH_Cut [20:34:36]Write to MH i2c: D1 01 00 2F 0B 01 0C [20:34:36]Write i2c OK [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: D1 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: D1 01 00 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: D1 01 00 2F 0B 00 0B [20:34:36]Write to MH i2c: 01 00 00 30 0B 3B [20:34:36]Write i2c OK [20:34:36]MH_I2C_Read... [20:34:37]OFD Sender: No OFD packet to send [20:34:37]*** Cut start [20:34:37]*** Partial cut [20:34:37]*** CUTSNS_PIN = 1 [20:34:37]*** CUTSNS_PIN = 0 [20:34:37]*** Brake cut motor [20:34:38]Read from MH i2c: 01 [20:34:38]MH_I2C_Read... [20:34:38]*** Stop cut motor [20:34:38]*** Cut end [20:34:38]Read from MH i2c: 01 07 00 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: 01 07 00 30 0B 00 00 00 00 00 FF 0F 50 [20:34:38]process_action close_receipt done [20:34:38]requested_data is exist [20:34:38]produce_requested_data [20:34:38]requested_item fm.sn is exist - process it [20:34:38]wFMCommunicate request_size=4 [20:34:38]MH_SAM_APDU [20:34:38]CAPDU: 80 11 00 00 [20:34:38]Write to MH i2c: E2 08 00 31 0B 80 11 00 00 00 00 00 00 B6 [20:34:38]Write i2c OK [20:34:38]MH_I2C_Read... [20:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:38]Read from MH i2c: E2 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: E2 17 00 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: E2 17 00 31 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [20:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:34:38]wFMCommunicate OK [20:34:38]requested_item fd.num is exist - process it [20:34:38]SAM_PROTO_GetFieldsCounters [20:34:38]wFMCommunicate request_size=4 [20:34:38]MH_SAM_APDU [20:34:38]CAPDU: 80 13 00 00 [20:34:38]Write to MH i2c: E2 08 00 32 0B 80 13 00 00 00 00 00 00 B9 [20:34:38]Write i2c OK [20:34:38]MH_I2C_Read... [20:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:38]Read from MH i2c: E2 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: E2 62 00 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: E2 62 00 32 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [20:34:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:38]wFMCommunicate OK [20:34:38]SAM_PROTO_GetFieldsCounters done [20:34:38]requested_item shift.num is exist - process it [20:34:38]requested_item shift.opened is exist - process it [20:34:38]req_shift_opened [20:34:38]FM_GetShiftState [20:34:38]SAM_PROTO_GetShiftState [20:34:38]wFMCommunicate request_size=4 [20:34:38]MH_SAM_APDU [20:34:38]CAPDU: 80 13 01 00 [20:34:38]Write to MH i2c: E2 08 00 33 0B 80 13 01 00 00 00 00 00 BB [20:34:38]Write i2c OK [20:34:38]MH_I2C_Read... [20:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:38]Read from MH i2c: E2 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: E2 0E 00 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: E2 0E 00 33 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 05 [20:34:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:34:38]wFMCommunicate OK [20:34:38]SAM_PROTO_GetShiftState done [20:34:38]FM_GetShiftState done [20:34:38]req_shift_opened done [20:34:38]requested_item shift.open_date is exist - process it [20:34:38]req_shift_open_date [20:34:38]req_shift_open_date done [20:34:38]produce_requested_data done [20:34:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164379,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:34:38]process_action_free close_receipt [20:34:38]json_value_free [20:34:38]json_value_free done [20:34:38]process_json_proto returns [20:34:38]Send response to host [20:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164379,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:34:38]free response buf [20:34:38]execute_script done [20:34:38]execute_script returns [20:34:38]free content buf [20:34:38]Sock 9.Close socket [20:34:38]Sock 9.Thread stoped [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:11]accept exits with 7 [20:38:11]New connection [20:38:11]New thread 3067391332 created [20:38:11]Thread 3067534692 joined [20:38:11]Waiting for new connection... [20:38:11] Sock 7.Parse request [20:38:11]Sock 7.Check first char [20:38:11]Sock 7.First char is OK [20:38:11]request: POST /json_proto HTTP/1.0 [20:38:11]Method: POST [20:38:11]URL: /json_proto [20:38:11]Method is POST - this is cgi request [20:38:11]url: /json_proto [20:38:11]query_string will be loaded in cgi processing [20:38:11]execute_cgi json_proto POST (null) [20:38:11]execute_cgi path=json_proto method=POST [20:38:11]POST find Content-Length [20:38:11]Host: 172.17.56.4:8080 [20:38:11]Content-Length: 677 [20:38:11]Content-Type: application/json [20:38:11] [20:38:11]POST finish read [20:38:11]Found Content-Length = 677 [20:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:11]execute_script... [20:38: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)458465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:11]POST & json_proto [20:38:11]process_json_proto [20:38:11]json parsed OK: [20:38:11]protocol is kg_v1.0 [20:38:11]action value=close_receipt [20:38:11]process_action close_receipt [20:38:11]cmd_close_receipt [20:38:11]MH_GetDate [20:38:11]Write to MH i2c: F0 00 00 34 0B 2E [20:38:11]Write i2c OK [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: F0 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: F0 09 00 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: F0 09 00 34 0B 00 34 94 91 66 C9 DC B2 64 B1 [20:38:11]GetLastDocTimeStamp 1720816475 [20:38:11]current date 1720816692 [20:38:11]FM_GetShiftState [20:38:11]SAM_PROTO_GetShiftState [20:38:11]wFMCommunicate request_size=4 [20:38:11]MH_SAM_APDU [20:38:11]CAPDU: 80 13 01 00 [20:38:11]Write to MH i2c: E2 08 00 35 0B 80 13 01 00 00 00 00 00 BD [20:38:11]Write i2c OK [20:38:11]MH_I2C_Read... [20:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:11]Read from MH i2c: E2 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: E2 0E 00 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: E2 0E 00 35 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 07 [20:38:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:38:11]wFMCommunicate OK [20:38:11]SAM_PROTO_GetShiftState done [20:38:11]FM_GetShiftState done [20:38:11]opened in 1720744654 [20:38:11]opened+sec_in_day 1720831054 [20:38:11]quantity*price = 30004 [20:38:11]sum+1 = 30006 [20:38:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 301 12.07.2024 20:38 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164380 ФПД: 116906771062387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T203812&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164380&fm=116906771062387&tin=02508201610067®Number=0000000000090829&sum=30000 [20:38:13]StoreToDocumentArchive [20:38:13]shift 445 fd 164380 [20:38:13]save to /storage/0445/doc_00164380 [20:38:13]save last doc name /storage/0445/doc_00164380 to /storage/kkm_last_doc_name [20:38:13]save OK [20:38:13]Clear old archive folders... [20:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:13]tlvbuf is 01544BB0 [20:38:13]SAM_PROTO_ClearQueue [20:38:13]wFMCommunicate request_size=4 [20:38:13]MH_SAM_APDU [20:38:13]CAPDU: 80 09 00 00 [20:38:13]Write to MH i2c: E2 08 00 42 0B 80 09 00 00 00 00 00 00 BF [20:38:13]Write i2c OK [20:38:13]MH_I2C_Read... [20:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:13]Read from MH i2c: E2 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 03 00 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 03 00 42 0B 00 90 00 C1 [20:38:13]RAPDU: 90 00 [20:38:13]wFMCommunicate OK [20:38:13]SAM_PROTO_ClearQueue done [20:38:13]KKMCreateOFDPacket [20:38:13]OFDProtocolAddRootSTLVToBuf [20:38:13]FM_MakeSignedData [20:38:13]FM_MakeSignedData [20:38:13]SAM_PROTO_SignData [20:38:13]wFMCommunicate request_size=4 [20:38:13]MH_SAM_APDU [20:38:13]CAPDU: 80 0D 01 02 [20:38:13]Write to MH i2c: E2 08 00 43 0B 80 0D 01 02 00 00 00 00 C7 [20:38:13]Write i2c OK [20:38:13]MH_I2C_Read... [20:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:13]Read from MH i2c: E2 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 03 00 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [20:38:13]RAPDU: 90 00 [20:38:13]wFMCommunicate OK [20:38:13]wFMCommunicate request_size=255 [20:38:13]MH_SAM_APDU [20:38: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 34 94 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 82 02 00 35 04 06 00 6A [20:38:13]Write to MH i2c: E2 02 01 44 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 34 94 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 82 02 00 35 04 06 00 6A 00 00 B6 [20:38:13]Write i2c OK [20:38:13]MH_I2C_Read... [20:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:13]Read from MH i2c: E2 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 03 00 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [20:38:13]RAPDU: 90 00 [20:38:13]wFMCommunicate OK [20:38:13]wFMCommunicate request_size=10 [20:38:13]MH_SAM_APDU [20:38:13]CAPDU: 80 0D 02 02 05 53 7A 8F 9E 73 [20:38:13]Write to MH i2c: E2 0D 00 45 0B 80 0D 02 02 05 00 53 7A 8F 9E 73 00 00 41 [20:38:13]Write i2c OK [20:38:13]MH_I2C_Read... [20:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:13]Read from MH i2c: E2 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 03 00 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [20:38:13]RAPDU: 90 00 [20:38:13]wFMCommunicate OK [20:38:13]wFMCommunicate request_size=4 [20:38:13]MH_SAM_APDU [20:38:13]CAPDU: 80 0D 03 02 [20:38:13]Write to MH i2c: E2 08 00 46 0B 80 0D 03 02 00 00 00 00 CC [20:38:13]Write i2c OK [20:38:13]MH_I2C_Read... [20:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:13]Read from MH i2c: E2 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 0B 00 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 0B 00 46 0B 00 C8 C2 F2 67 E9 34 7F 01 90 00 4D [20:38:13]RAPDU: C8 C2 F2 67 E9 34 7F 01 90 00 [20:38:13]wFMCommunicate OK [20:38:13]SAM_PROTO_SignData done [20:38:13]FM_MakeSignedData done [20:38:13]CreateOFDProtocolMessage [20:38:13]wFMCommunicate request_size=4 [20:38:13]MH_SAM_APDU [20:38:13]CAPDU: 80 11 00 00 [20:38:13]Write to MH i2c: E2 08 00 47 0B 80 11 00 00 00 00 00 00 CC [20:38:13]Write i2c OK [20:38:13]MH_I2C_Read... [20:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:13]Read from MH i2c: E2 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 17 00 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: E2 17 00 47 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 22 [20:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:38:13]wFMCommunicate OK [20:38:13]CreateOFDProtocolMessage done [20:38:13]OFDSenderStorePacket 164380 [20:38:13]StoreOFDPacket docnum=164380 [20:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4A 8F 07 01 77 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 34 94 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 82 02 00 35 04 06 00 6A 53 7A 8F 9E 73 C8 C2 F2 67 E9 34 7F 01 [20:38:13]CheckFolder [20:38:13]dirname=/storage/ofd_packets [20:38:13]CheckFolder done [20:38:13]ProducePacketName [20:38:13]name=ofd_packets/00164380 [20:38:13]NVStorageSaveData ofd_packets/00164380 [20:38:13]File name is /storage/ofd_packets/00164380 [20:38:13]Write 301 bytes [20:38:13]NVStorageSaveData done [20:38:13]OFDSenderStorePacket done [20:38:13]KKMCreateOFDPacket done [20:38:13]NVStorageSaveData kkm_last_timestamp [20:38:13]File name is /storage/kkm_last_timestamp [20:38:13]Write 4 bytes [20:38:13]NVStorageSaveData done [20:38:13]ExternCall_PrintAddStr [20:38:13]wPrintStart [20:38:13]Write to MH i2c: 01 00 00 48 0B 53 [20:38:13]Write i2c OK [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: 01 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: 01 07 00 [20:38:13]MH_I2C_Read... [20:38:13]Read from MH i2c: 01 07 00 48 0B 00 00 00 00 00 FF 0F 68 [20:38:13]RasterBufferAndPrint [20:38:13]line Счет N : (1)458465 [20:38:13]line ИНН: 02508201610067 [20:38:13]line Контрольно-Кассовый Чек [20:38:13]line ПРОДАЖА [20:38:13]line ТРК (МРК, ГНК) : 12 [20:38:13]line Товар: 2710124130 [20:38:13]line Аи-92-К-5 [20:38:13]line 4.560 * 65.80 [20:38:13]line = 300.05 [20:38:13]line НДС 12% НСП 1% [20:38:13]line > о реализуемом товаре [20:38:13]line ОКРУГЛЕНИЕ: -0.05 [20:38:13]line ИТОГО: 300.00 [20:38:13]line Внесено: 300.00 [20:38:13]line СДАЧА: 0.00 [20:38:13]line НСП 1% : 2.65 [20:38:13]line НДС 12% : 31.86 [20:38:13]line Наличными: 300.00 [20:38:13]line Безнал.: 0.00 [20:38:13]line Место: АЗС № 72 "Партнер Нефть" [20:38:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:38:13]line СНО: Общий режим [20:38:13]line Чек 301 12.07.2024 20:38 [20:38:13]line Смена: 445 ФФД: 1.0 [20:38:13]line ЗНМ: 0300000160 [20:38:13]line РНМ: 0000000000090829 [20:38:13]line Версия ККМ: 001 [20:38:13]line ФМ: 0000000000874718 [20:38:13]line ФД: 164380 [20:38:13]line ФПД: 116906771062387 [20:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T203812&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164380&fm=116906771062387&tin=02508201610067®Number=0000000000090829&sum=30000 [20:38:13]written 0, free lines is 4095 [20:38:13]OFD Sender: Processing packet 164380 [packets to send 104, broken 103] [20:38:13]ProducePacketName [20:38:13]name=ofd_packets/00164380 [20:38:13]OFD Sender: To server: pG, [20:38:13]CommunicateWithHost lk.salyk.kg:30040 [20:38:13]ConnectInit lk.salyk.kg [20:38:13]Connected sock=9 [20:38:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4A 8F 07 01 77 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 34 94 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 82 02 00 35 04 06 00 6A 53 7A 8F 9E 73 C8 C2 F2 67 E9 34 7F 01 [20:38:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BF 9B 47 00 C3 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 82 02 00 F4 03 04 00 C7 3A 91 66 B6 04 01 00 00 4A 38 62 44 9B 1E AE 27 [20:38:13]CommunicateWithHost err = 0 [20:38:13]CheckOFDResponse [20:38:13]1017 (14) - 77093643461234 [20:38:13]1041 (16) - 0000000000874718 [20:38:13]1040 (4) - 164380 [20:38:13]1012 (4) - 12.07.2024 14:16 [20:38:13]1206 (1) - 0 [20:38:13]OFD Sender: Remove packet 164380 [20:38:13]ProducePacketName [20:38:13]name=ofd_packets/00164380 [20:38:13]NVStorageDeleteData [20:38:14]Write to MH i2c: 01 00 00 72 0B 7D [20:38:14]Write i2c OK [20:38:14]MH_I2C_Read... [20:38:14]Read from MH i2c: 01 [20:38:14]MH_I2C_Read... [20:38:14]Read from MH i2c: 01 07 00 [20:38:14]MH_I2C_Read... [20:38:14]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 02 0D 93 [20:38:14]RasterBufferAndPrint [20:38:14]line [20:38:14]line [20:38:14]line [20:38:14]line [20:38:14]line [20:38:14]written 0, free lines is 3336 [20:38:14]MH_Cut [20:38:14]Write to MH i2c: D1 01 00 79 0B 01 56 [20:38:14]Write i2c OK [20:38:14]MH_I2C_Read... [20:38:14]Read from MH i2c: D1 [20:38:14]MH_I2C_Read... [20:38:14]Read from MH i2c: D1 01 00 [20:38:14]MH_I2C_Read... [20:38:14]Read from MH i2c: D1 01 00 79 0B 00 55 [20:38:14]Write to MH i2c: 01 00 00 7A 0B 85 [20:38:14]Write i2c OK [20:38:14]MH_I2C_Read... [20:38:14]OFD Sender: No OFD packet to send [20:38:14]*** Cut start [20:38:14]*** Partial cut [20:38:14]*** CUTSNS_PIN = 1 [20:38:14]*** CUTSNS_PIN = 0 [20:38:14]*** Brake cut motor [20:38:15]Read from MH i2c: 01 [20:38:15]MH_I2C_Read... [20:38:15]*** Stop cut motor [20:38:15]*** Cut end [20:38:15]Read from MH i2c: 01 07 00 [20:38:15]MH_I2C_Read... [20:38:15]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [20:38:15]process_action close_receipt done [20:38:15]requested_data is exist [20:38:15]produce_requested_data [20:38:15]requested_item fm.sn is exist - process it [20:38:15]wFMCommunicate request_size=4 [20:38:15]MH_SAM_APDU [20:38:15]CAPDU: 80 11 00 00 [20:38:15]Write to MH i2c: E2 08 00 7B 0B 80 11 00 00 00 00 00 00 00 [20:38:15]Write i2c OK [20:38:15]MH_I2C_Read... [20:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:15]Read from MH i2c: E2 [20:38:15]MH_I2C_Read... [20:38:15]Read from MH i2c: E2 17 00 [20:38:15]MH_I2C_Read... [20:38:15]Read from MH i2c: E2 17 00 7B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [20:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:38:15]wFMCommunicate OK [20:38:15]requested_item fd.num is exist - process it [20:38:15]SAM_PROTO_GetFieldsCounters [20:38:15]wFMCommunicate request_size=4 [20:38:15]MH_SAM_APDU [20:38:15]CAPDU: 80 13 00 00 [20:38:15]Write to MH i2c: E2 08 00 7C 0B 80 13 00 00 00 00 00 00 03 [20:38:15]Write i2c OK [20:38:15]MH_I2C_Read... [20:38:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:15]Read from MH i2c: E2 [20:38:15]MH_I2C_Read... [20:38:15]Read from MH i2c: E2 62 00 [20:38:15]MH_I2C_Read... [20:38:15]Read from MH i2c: E2 62 00 7C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [20:38: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:15]wFMCommunicate OK [20:38:15]SAM_PROTO_GetFieldsCounters done [20:38:15]requested_item shift.num is exist - process it [20:38:15]requested_item shift.opened is exist - process it [20:38:15]req_shift_opened [20:38:15]FM_GetShiftState [20:38:15]SAM_PROTO_GetShiftState [20:38:15]wFMCommunicate request_size=4 [20:38:15]MH_SAM_APDU [20:38:15]CAPDU: 80 13 01 00 [20:38:15]Write to MH i2c: E2 08 00 7D 0B 80 13 01 00 00 00 00 00 05 [20:38:15]Write i2c OK [20:38:15]MH_I2C_Read... [20:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:15]Read from MH i2c: E2 [20:38:15]MH_I2C_Read... [20:38:15]Read from MH i2c: E2 0E 00 [20:38:15]MH_I2C_Read... [20:38:15]Read from MH i2c: E2 0E 00 7D 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4F [20:38:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:38:15]wFMCommunicate OK [20:38:15]SAM_PROTO_GetShiftState done [20:38:15]FM_GetShiftState done [20:38:15]req_shift_opened done [20:38:15]requested_item shift.open_date is exist - process it [20:38:15]req_shift_open_date [20:38:15]req_shift_open_date done [20:38:15]produce_requested_data done [20:38:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164380,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:38:15]process_action_free close_receipt [20:38:15]json_value_free [20:38:15]json_value_free done [20:38:15]process_json_proto returns [20:38:15]Send response to host [20:38:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164380,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:38:15]free response buf [20:38:15]execute_script done [20:38:15]execute_script returns [20:38:15]free content buf [20:38:15]Sock 7.Close socket [20:38:15]Sock 7.Thread stoped [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:19]accept exits with 10 [20:43:19]New connection [20:43:19]New thread 3067534692 created [20:43:19]Thread 3067391332 joined [20:43:19]Waiting for new connection... [20:43:19] Sock 10.Parse request [20:43:19]Sock 10.Check first char [20:43:19]Sock 10.First char is OK [20:43:19]request: POST /json_proto HTTP/1.0 [20:43:19]Method: POST [20:43:19]URL: /json_proto [20:43:19]Method is POST - this is cgi request [20:43:19]url: /json_proto [20:43:19]query_string will be loaded in cgi processing [20:43:19]execute_cgi json_proto POST (null) [20:43:19]execute_cgi path=json_proto method=POST [20:43:19]POST find Content-Length [20:43:19]Host: 172.17.56.4:8080 [20:43:19]Content-Length: 677 [20:43:19]Content-Type: application/json [20:43:19] [20:43:19]POST finish read [20:43:19]Found Content-Length = 677 [20:43:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:43:19]execute_script... [20:43:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:43:19]POST & json_proto [20:43:19]process_json_proto [20:43:19]json parsed OK: [20:43:19]protocol is kg_v1.0 [20:43:19]action value=close_receipt [20:43:19]process_action close_receipt [20:43:19]cmd_close_receipt [20:43:19]MH_GetDate [20:43:19]Write to MH i2c: F0 00 00 7E 0B 78 [20:43:19]Write i2c OK [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: F0 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: F0 09 00 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: F0 09 00 7E 0B 00 68 95 91 66 C9 DC B2 64 30 [20:43:19]GetLastDocTimeStamp 1720816692 [20:43:19]current date 1720817000 [20:43:19]FM_GetShiftState [20:43:19]SAM_PROTO_GetShiftState [20:43:19]wFMCommunicate request_size=4 [20:43:19]MH_SAM_APDU [20:43:19]CAPDU: 80 13 01 00 [20:43:19]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [20:43:19]Write i2c OK [20:43:19]MH_I2C_Read... [20:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:19]Read from MH i2c: E2 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: E2 0E 00 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 51 [20:43:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:43:19]wFMCommunicate OK [20:43:19]SAM_PROTO_GetShiftState done [20:43:19]FM_GetShiftState done [20:43:19]opened in 1720744654 [20:43:19]opened+sec_in_day 1720831054 [20:43:19]quantity*price = 20003 [20:43:19]sum+1 = 20004 [20:43: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 302 12.07.2024 20:43 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164381 ФПД: 218251315788602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T204320&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164381&fm=218251315788602&tin=02508201610067®Number=0000000000090829&sum=20000 [20:43:21]StoreToDocumentArchive [20:43:21]shift 445 fd 164381 [20:43:21]save to /storage/0445/doc_00164381 [20:43:21]save last doc name /storage/0445/doc_00164381 to /storage/kkm_last_doc_name [20:43:21]save OK [20:43:21]Clear old archive folders... [20:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:43:21]tlvbuf is 0159BDA0 [20:43:21]SAM_PROTO_ClearQueue [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 09 00 00 [20:43:21]Write to MH i2c: E2 08 00 8C 0B 80 09 00 00 00 00 00 00 09 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 8C 0B 00 90 00 0B [20:43:21]RAPDU: 90 00 [20:43:21]wFMCommunicate OK [20:43:21]SAM_PROTO_ClearQueue done [20:43:21]KKMCreateOFDPacket [20:43:21]OFDProtocolAddRootSTLVToBuf [20:43:21]FM_MakeSignedData [20:43:21]FM_MakeSignedData [20:43:21]SAM_PROTO_SignData [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 0D 01 02 [20:43:21]Write to MH i2c: E2 08 00 8D 0B 80 0D 01 02 00 00 00 00 11 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [20:43:21]RAPDU: 90 00 [20:43:21]wFMCommunicate OK [20:43:21]wFMCommunicate request_size=255 [20:43:21]MH_SAM_APDU [20:43: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 2E 01 00 00 F4 03 04 00 68 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 82 02 00 35 04 06 00 C6 [20:43:21]Write to MH i2c: E2 02 01 8E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 2E 01 00 00 F4 03 04 00 68 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 82 02 00 35 04 06 00 C6 00 00 73 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [20:43:21]RAPDU: 90 00 [20:43:21]wFMCommunicate OK [20:43:21]wFMCommunicate request_size=10 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 0D 02 02 05 7F 98 26 3B 3A [20:43:21]Write to MH i2c: E2 0D 00 8F 0B 80 0D 02 02 05 00 7F 98 26 3B 3A 00 00 D0 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [20:43:21]RAPDU: 90 00 [20:43:21]wFMCommunicate OK [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 0D 03 02 [20:43:21]Write to MH i2c: E2 08 00 90 0B 80 0D 03 02 00 00 00 00 16 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 0B 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 0B 00 90 0B 00 17 83 79 23 1B BC FE EC 90 00 0E [20:43:21]RAPDU: 17 83 79 23 1B BC FE EC 90 00 [20:43:21]wFMCommunicate OK [20:43:21]SAM_PROTO_SignData done [20:43:21]FM_MakeSignedData done [20:43:21]CreateOFDProtocolMessage [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 11 00 00 [20:43:21]Write to MH i2c: E2 08 00 91 0B 80 11 00 00 00 00 00 00 16 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 17 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 17 00 91 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6C [20:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:43:21]wFMCommunicate OK [20:43:21]CreateOFDProtocolMessage done [20:43:21]OFDSenderStorePacket 164381 [20:43:21]StoreOFDPacket docnum=164381 [20:43:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 4A 07 01 11 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 2E 01 00 00 F4 03 04 00 68 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 82 02 00 35 04 06 00 C6 7F 98 26 3B 3A 17 83 79 23 1B BC FE EC [20:43:21]CheckFolder [20:43:21]dirname=/storage/ofd_packets [20:43:21]CheckFolder done [20:43:21]ProducePacketName [20:43:21]name=ofd_packets/00164381 [20:43:21]NVStorageSaveData ofd_packets/00164381 [20:43:21]File name is /storage/ofd_packets/00164381 [20:43:21]Write 301 bytes [20:43:21]NVStorageSaveData done [20:43:21]OFDSenderStorePacket done [20:43:21]KKMCreateOFDPacket done [20:43:21]NVStorageSaveData kkm_last_timestamp [20:43:21]File name is /storage/kkm_last_timestamp [20:43:21]Write 4 bytes [20:43:21]NVStorageSaveData done [20:43:21]ExternCall_PrintAddStr [20:43:21]wPrintStart [20:43:21]Write to MH i2c: 01 00 00 92 0B 9D [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: 01 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: 01 07 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: 01 07 00 92 0B 00 00 00 00 00 FF 0F B2 [20:43:21]RasterBufferAndPrint [20:43:21]line Счет N : (1)458467 [20:43:21]line ИНН: 02508201610067 [20:43:21]line Контрольно-Кассовый Чек [20:43:21]line ПРОДАЖА [20:43:21]line ТРК (МРК, ГНК) : 22 [20:43:21]line Товар: 2710124130 [20:43:21]line Аи-92-К-5 [20:43:21]line 3.040 * 65.80 [20:43:21]line = 200.03 [20:43:21]line НДС 12% НСП 1% [20:43:21]line > о реализуемом товаре [20:43:21]line ОКРУГЛЕНИЕ: -0.03 [20:43:21]line ИТОГО: 200.00 [20:43:21]line Внесено: 200.00 [20:43:21]line СДАЧА: 0.00 [20:43:21]line НСП 1% : 1.77 [20:43:21]line НДС 12% : 21.24 [20:43:21]line Наличными: 200.00 [20:43:21]line Безнал.: 0.00 [20:43:21]line Место: АЗС № 72 "Партнер Нефть" [20:43:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:43:21]line СНО: Общий режим [20:43:21]line Чек 302 12.07.2024 20:43 [20:43:21]line Смена: 445 ФФД: 1.0 [20:43:21]line ЗНМ: 0300000160 [20:43:21]line РНМ: 0000000000090829 [20:43:21]line Версия ККМ: 001 [20:43:21]line ФМ: 0000000000874718 [20:43:21]line ФД: 164381 [20:43:21]line ФПД: 218251315788602 [20:43:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T204320&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164381&fm=218251315788602&tin=02508201610067®Number=0000000000090829&sum=20000 [20:43:21]written 0, free lines is 4095 [20:43:21]OFD Sender: Processing packet 164381 [packets to send 104, broken 103] [20:43:21]ProducePacketName [20:43:21]name=ofd_packets/00164381 [20:43:21]OFD Sender: To server: pG, [20:43:21]CommunicateWithHost lk.salyk.kg:30040 [20:43:21]ConnectInit lk.salyk.kg [20:43:21]Connected sock=9 [20:43:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 4A 07 01 11 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 2E 01 00 00 F4 03 04 00 68 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 82 02 00 35 04 06 00 C6 7F 98 26 3B 3A 17 83 79 23 1B BC FE EC [20:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5B 98 47 00 49 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 34 37 31 38 10 04 04 00 1D 82 02 00 F4 03 04 00 FB 3B 91 66 B6 04 01 00 00 6C 4D 10 40 11 15 41 FA [20:43:22]CommunicateWithHost err = 0 [20:43:22]CheckOFDResponse [20:43:22]1017 (14) - 77093643461234 [20:43:22]1041 (16) - 0000000000874718 [20:43:22]1040 (4) - 164381 [20:43:22]1012 (4) - 12.07.2024 14:21 [20:43:22]1206 (1) - 0 [20:43:22]OFD Sender: Remove packet 164381 [20:43:22]ProducePacketName [20:43:22]name=ofd_packets/00164381 [20:43:22]NVStorageDeleteData [20:43:22]Write to MH i2c: 01 00 00 BC 0B C7 [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 07 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 07 00 BC 0B 00 00 00 00 00 F3 0C CD [20:43:22]RasterBufferAndPrint [20:43:22]line [20:43:22]line [20:43:22]line [20:43:22]line [20:43:22]line [20:43:22]written 0, free lines is 3321 [20:43:22]MH_Cut [20:43:22]Write to MH i2c: D1 01 00 C3 0B 01 A0 [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: D1 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: D1 01 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: D1 01 00 C3 0B 00 9F [20:43:22]Write to MH i2c: 01 00 00 C4 0B CF [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]OFD Sender: No OFD packet to send [20:43:23]*** Cut start [20:43:23]*** Partial cut [20:43:23]*** CUTSNS_PIN = 1 [20:43:23]*** CUTSNS_PIN = 0 [20:43:23]*** Brake cut motor [20:43:23]Read from MH i2c: 01 [20:43:23]MH_I2C_Read... [20:43:23]*** Stop cut motor [20:43:23]*** Cut end [20:43:23]Read from MH i2c: 01 07 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 FF 0F E4 [20:43:23]process_action close_receipt done [20:43:23]requested_data is exist [20:43:23]produce_requested_data [20:43:23]requested_item fm.sn is exist - process it [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 11 00 00 [20:43:23]Write to MH i2c: E2 08 00 C5 0B 80 11 00 00 00 00 00 00 4A [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 17 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 17 00 C5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [20:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:43:23]wFMCommunicate OK [20:43:23]requested_item fd.num is exist - process it [20:43:23]SAM_PROTO_GetFieldsCounters [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 13 00 00 [20:43:23]Write to MH i2c: E2 08 00 C6 0B 80 13 00 00 00 00 00 00 4D [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 62 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 62 00 C6 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [20:43:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:23]wFMCommunicate OK [20:43:23]SAM_PROTO_GetFieldsCounters done [20:43:23]requested_item shift.num is exist - process it [20:43:23]requested_item shift.opened is exist - process it [20:43:23]req_shift_opened [20:43:23]FM_GetShiftState [20:43:23]SAM_PROTO_GetShiftState [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 13 01 00 [20:43:23]Write to MH i2c: E2 08 00 C7 0B 80 13 01 00 00 00 00 00 4F [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 0E 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 0E 00 C7 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 99 [20:43:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:43:23]wFMCommunicate OK [20:43:23]SAM_PROTO_GetShiftState done [20:43:23]FM_GetShiftState done [20:43:23]req_shift_opened done [20:43:23]requested_item shift.open_date is exist - process it [20:43:23]req_shift_open_date [20:43:23]req_shift_open_date done [20:43:23]produce_requested_data done [20:43:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164381,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:43:23]process_action_free close_receipt [20:43:23]json_value_free [20:43:23]json_value_free done [20:43:23]process_json_proto returns [20:43:23]Send response to host [20:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164381,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:43:23]free response buf [20:43:23]execute_script done [20:43:23]execute_script returns [20:43:23]free content buf [20:43:23]Sock 10.Close socket [20:43:23]Sock 10.Thread stoped [20:43:27]accept exits with 7 [20:43:27]New connection [20:43:27]New thread 3067391332 created [20:43:27]Thread 3067534692 joined [20:43:27]Waiting for new connection... [20:43:27] Sock 7.Parse request [20:43:27]Sock 7.Check first char [20:43:27]Sock 7.First char is OK [20:43:27]request: POST /json_proto HTTP/1.0 [20:43:27]Method: POST [20:43:27]URL: /json_proto [20:43:27]Method is POST - this is cgi request [20:43:27]url: /json_proto [20:43:27]query_string will be loaded in cgi processing [20:43:27]execute_cgi json_proto POST (null) [20:43:27]execute_cgi path=json_proto method=POST [20:43:27]POST find Content-Length [20:43:27]Host: 172.17.56.4:8080 [20:43:27]Content-Length: 674 [20:43:27]Content-Type: application/json [20:43:27] [20:43:27]POST finish read [20:43:27]Found Content-Length = 674 [20:43:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:27]execute_script... [20:43: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)458466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:27]POST & json_proto [20:43:27]process_json_proto [20:43:27]json parsed OK: [20:43:27]protocol is kg_v1.0 [20:43:27]action value=close_receipt [20:43:27]process_action close_receipt [20:43:27]cmd_close_receipt [20:43:27]MH_GetDate [20:43:27]Write to MH i2c: F0 00 00 C8 0B C2 [20:43:27]Write i2c OK [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: F0 [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: F0 09 00 [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: F0 09 00 C8 0B 00 6F 95 91 66 C9 DC B2 64 81 [20:43:27]GetLastDocTimeStamp 1720817000 [20:43:27]current date 1720817007 [20:43:27]FM_GetShiftState [20:43:27]SAM_PROTO_GetShiftState [20:43:27]wFMCommunicate request_size=4 [20:43:27]MH_SAM_APDU [20:43:27]CAPDU: 80 13 01 00 [20:43:27]Write to MH i2c: E2 08 00 C9 0B 80 13 01 00 00 00 00 00 51 [20:43:27]Write i2c OK [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: E2 [20:43:27]MH_I2C_Read... [20:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:27]Read from MH i2c: E2 0E 00 [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: E2 0E 00 C9 0B 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9B [20:43:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:43:27]wFMCommunicate OK [20:43:27]SAM_PROTO_GetShiftState done [20:43:27]FM_GetShiftState done [20:43:27]opened in 1720744654 [20:43:27]opened+sec_in_day 1720831054 [20:43:27]quantity*price = 20060 [20:43:27]sum+1 = 20061 [20:43:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 303 12.07.2024 20:43 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164382 ФПД: 104007819352124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T204327&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164382&fm=104007819352124&tin=02508201610067®Number=0000000000090829&sum=20000 [20:43:28]StoreToDocumentArchive [20:43:28]shift 445 fd 164382 [20:43:28]save to /storage/0445/doc_00164382 [20:43:28]save last doc name /storage/0445/doc_00164382 to /storage/kkm_last_doc_name [20:43:28]save OK [20:43:28]Clear old archive folders... [20:43:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:43:28]tlvbuf is 015AE620 [20:43:28]SAM_PROTO_ClearQueue [20:43:28]wFMCommunicate request_size=4 [20:43:28]MH_SAM_APDU [20:43:28]CAPDU: 80 09 00 00 [20:43:28]Write to MH i2c: E2 08 00 D6 0B 80 09 00 00 00 00 00 00 53 [20:43:28]Write i2c OK [20:43:28]MH_I2C_Read... [20:43:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:28]Read from MH i2c: E2 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 03 00 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 03 00 D6 0B 00 90 00 55 [20:43:28]RAPDU: 90 00 [20:43:28]wFMCommunicate OK [20:43:28]SAM_PROTO_ClearQueue done [20:43:28]KKMCreateOFDPacket [20:43:28]OFDProtocolAddRootSTLVToBuf [20:43:28]FM_MakeSignedData [20:43:28]FM_MakeSignedData [20:43:28]SAM_PROTO_SignData [20:43:28]wFMCommunicate request_size=4 [20:43:28]MH_SAM_APDU [20:43:28]CAPDU: 80 0D 01 02 [20:43:28]Write to MH i2c: E2 08 00 D7 0B 80 0D 01 02 00 00 00 00 5B [20:43:28]Write i2c OK [20:43:28]MH_I2C_Read... [20:43:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:28]Read from MH i2c: E2 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 03 00 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [20:43:28]RAPDU: 90 00 [20:43:28]wFMCommunicate OK [20:43:28]wFMCommunicate request_size=255 [20:43:28]MH_SAM_APDU [20:43: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 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 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 6F 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 82 02 00 35 04 06 00 5E 98 35 20 [20:43:28]Write to MH i2c: E2 02 01 D8 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 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 6F 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 82 02 00 35 04 06 00 5E 98 35 20 00 00 47 [20:43:28]Write i2c OK [20:43:28]MH_I2C_Read... [20:43:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:28]Read from MH i2c: E2 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 03 00 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [20:43:28]RAPDU: 90 00 [20:43:28]wFMCommunicate OK [20:43:28]wFMCommunicate request_size=7 [20:43:28]MH_SAM_APDU [20:43:28]CAPDU: 80 0D 02 02 02 58 3C [20:43:28]Write to MH i2c: E2 0A 00 D9 0B 80 0D 02 02 02 00 58 3C 00 00 F6 [20:43:28]Write i2c OK [20:43:28]MH_I2C_Read... [20:43:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:28]Read from MH i2c: E2 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 03 00 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [20:43:28]RAPDU: 90 00 [20:43:28]wFMCommunicate OK [20:43:28]wFMCommunicate request_size=4 [20:43:28]MH_SAM_APDU [20:43:28]CAPDU: 80 0D 03 02 [20:43:28]Write to MH i2c: E2 08 00 DA 0B 80 0D 03 02 00 00 00 00 60 [20:43:28]Write i2c OK [20:43:28]MH_I2C_Read... [20:43:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:28]Read from MH i2c: E2 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 0B 00 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 0B 00 DA 0B 00 C5 34 11 23 3C A2 DE 57 90 00 A1 [20:43:28]RAPDU: C5 34 11 23 3C A2 DE 57 90 00 [20:43:28]wFMCommunicate OK [20:43:28]SAM_PROTO_SignData done [20:43:28]FM_MakeSignedData done [20:43:28]CreateOFDProtocolMessage [20:43:28]wFMCommunicate request_size=4 [20:43:28]MH_SAM_APDU [20:43:28]CAPDU: 80 11 00 00 [20:43:28]Write to MH i2c: E2 08 00 DB 0B 80 11 00 00 00 00 00 00 60 [20:43:28]Write i2c OK [20:43:28]MH_I2C_Read... [20:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:28]Read from MH i2c: E2 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 17 00 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: E2 17 00 DB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [20:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:43:28]wFMCommunicate OK [20:43:28]CreateOFDProtocolMessage done [20:43:28]OFDSenderStorePacket 164382 [20:43:28]StoreOFDPacket docnum=164382 [20:43:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 86 62 04 01 39 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 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 6F 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 82 02 00 35 04 06 00 5E 98 35 20 58 3C C5 34 11 23 3C A2 DE 57 [20:43:28]CheckFolder [20:43:28]dirname=/storage/ofd_packets [20:43:28]CheckFolder done [20:43:28]ProducePacketName [20:43:28]name=ofd_packets/00164382 [20:43:28]NVStorageSaveData ofd_packets/00164382 [20:43:28]File name is /storage/ofd_packets/00164382 [20:43:28]Write 298 bytes [20:43:28]NVStorageSaveData done [20:43:28]OFDSenderStorePacket done [20:43:28]KKMCreateOFDPacket done [20:43:28]NVStorageSaveData kkm_last_timestamp [20:43:28]File name is /storage/kkm_last_timestamp [20:43:28]Write 4 bytes [20:43:28]NVStorageSaveData done [20:43:28]ExternCall_PrintAddStr [20:43:28]wPrintStart [20:43:28]Write to MH i2c: 01 00 00 DC 0B E7 [20:43:28]Write i2c OK [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: 01 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: 01 07 00 [20:43:28]MH_I2C_Read... [20:43:28]Read from MH i2c: 01 07 00 DC 0B 00 00 00 00 00 FF 0F FC [20:43:28]RasterBufferAndPrint [20:43:28]line Счет N : (1)458466 [20:43:28]line ИНН: 02508201610067 [20:43:28]line Контрольно-Кассовый Чек [20:43:28]line ПРОДАЖА [20:43:28]line ТРК (МРК, ГНК) : 11 [20:43:28]line Товар: 2710194210 [20:43:28]line ДТ-К-5 [20:43:28]line 2.790 * 71.90 [20:43:28]line = 200.60 [20:43:28]line НДС 12% НСП 1% [20:43:28]line > о реализуемом товаре [20:43:28]line ОКРУГЛЕНИЕ: -0.60 [20:43:28]line ИТОГО: 200.00 [20:43:28]line Внесено: 200.00 [20:43:28]line СДАЧА: 0.00 [20:43:28]line НСП 1% : 1.77 [20:43:28]line НДС 12% : 21.30 [20:43:28]line Наличными: 200.00 [20:43:28]line Безнал.: 0.00 [20:43:28]line Место: АЗС № 72 "Партнер Нефть" [20:43:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:43:28]line СНО: Общий режим [20:43:28]line Чек 303 12.07.2024 20:43 [20:43:28]line Смена: 445 ФФД: 1.0 [20:43:28]line ЗНМ: 0300000160 [20:43:28]line РНМ: 0000000000090829 [20:43:28]line Версия ККМ: 001 [20:43:28]line ФМ: 0000000000874718 [20:43:28]line ФД: 164382 [20:43:28]line ФПД: 104007819352124 [20:43:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T204327&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164382&fm=104007819352124&tin=02508201610067®Number=0000000000090829&sum=20000 [20:43:28]written 0, free lines is 4095 [20:43:29]OFD Sender: Processing packet 164382 [packets to send 104, broken 103] [20:43:29]ProducePacketName [20:43:29]name=ofd_packets/00164382 [20:43:29]OFD Sender: To server: pG, [20:43:29]CommunicateWithHost lk.salyk.kg:30040 [20:43:29]ConnectInit lk.salyk.kg [20:43:29]Connected sock=10 [20:43:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 86 62 04 01 39 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 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 6F 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 82 02 00 35 04 06 00 5E 98 35 20 58 3C C5 34 11 23 3C A2 DE 57 [20:43:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 35 D2 47 00 E2 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 82 02 00 F4 03 04 00 02 3C 91 66 B6 04 01 00 00 0F EB 98 1A D7 14 A9 A5 [20:43:29]CommunicateWithHost err = 0 [20:43:29]CheckOFDResponse [20:43:29]1017 (14) - 77093643461234 [20:43:29]1041 (16) - 0000000000874718 [20:43:29]1040 (4) - 164382 [20:43:29]1012 (4) - 12.07.2024 14:21 [20:43:29]1206 (1) - 0 [20:43:29]OFD Sender: Remove packet 164382 [20:43:29]ProducePacketName [20:43:29]name=ofd_packets/00164382 [20:43:29]NVStorageDeleteData [20:43:29]Write to MH i2c: 01 00 00 06 0C 12 [20:43:29]Write i2c OK [20:43:29]MH_I2C_Read... [20:43:29]Read from MH i2c: 01 [20:43:29]MH_I2C_Read... [20:43:29]Read from MH i2c: 01 07 00 [20:43:29]MH_I2C_Read... [20:43:29]Read from MH i2c: 01 07 00 06 0C 00 00 00 00 00 0A 0D 30 [20:43:29]RasterBufferAndPrint [20:43:29]line [20:43:29]line [20:43:29]line [20:43:29]line [20:43:29]line [20:43:29]written 0, free lines is 3350 [20:43:29]MH_Cut [20:43:29]Write to MH i2c: D1 01 00 0D 0C 01 EB [20:43:29]Write i2c OK [20:43:29]MH_I2C_Read... [20:43:29]Read from MH i2c: D1 [20:43:29]MH_I2C_Read... [20:43:29]Read from MH i2c: D1 01 00 [20:43:29]MH_I2C_Read... [20:43:29]Read from MH i2c: D1 01 00 0D 0C 00 EA [20:43:29]Write to MH i2c: 01 00 00 0E 0C 1A [20:43:29]Write i2c OK [20:43:29]MH_I2C_Read... [20:43:29]OFD Sender: No OFD packet to send [20:43:30]*** Cut start [20:43:30]*** Partial cut [20:43:30]*** CUTSNS_PIN = 1 [20:43:30]*** CUTSNS_PIN = 0 [20:43:30]*** Brake cut motor [20:43:30]Read from MH i2c: 01 [20:43:30]MH_I2C_Read... [20:43:30]*** Stop cut motor [20:43:30]*** Cut end [20:43:30]Read from MH i2c: 01 07 00 [20:43:30]MH_I2C_Read... [20:43:30]Read from MH i2c: 01 07 00 0E 0C 00 00 00 00 00 FF 0F 2F [20:43:30]process_action close_receipt done [20:43:30]requested_data is exist [20:43:30]produce_requested_data [20:43:30]requested_item fm.sn is exist - process it [20:43:30]wFMCommunicate request_size=4 [20:43:30]MH_SAM_APDU [20:43:30]CAPDU: 80 11 00 00 [20:43:30]Write to MH i2c: E2 08 00 0F 0C 80 11 00 00 00 00 00 00 95 [20:43:30]Write i2c OK [20:43:30]MH_I2C_Read... [20:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:30]Read from MH i2c: E2 [20:43:30]MH_I2C_Read... [20:43:30]Read from MH i2c: E2 17 00 [20:43:30]MH_I2C_Read... [20:43:30]Read from MH i2c: E2 17 00 0F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [20:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:43:30]wFMCommunicate OK [20:43:30]requested_item fd.num is exist - process it [20:43:30]SAM_PROTO_GetFieldsCounters [20:43:30]wFMCommunicate request_size=4 [20:43:30]MH_SAM_APDU [20:43:30]CAPDU: 80 13 00 00 [20:43:30]Write to MH i2c: E2 08 00 10 0C 80 13 00 00 00 00 00 00 98 [20:43:30]Write i2c OK [20:43:30]MH_I2C_Read... [20:43:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:30]Read from MH i2c: E2 [20:43:30]MH_I2C_Read... [20:43:30]Read from MH i2c: E2 62 00 [20:43:30]MH_I2C_Read... [20:43:30]Read from MH i2c: E2 62 00 10 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [20:43: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:30]wFMCommunicate OK [20:43:30]SAM_PROTO_GetFieldsCounters done [20:43:30]requested_item shift.num is exist - process it [20:43:30]requested_item shift.opened is exist - process it [20:43:30]req_shift_opened [20:43:30]FM_GetShiftState [20:43:30]SAM_PROTO_GetShiftState [20:43:30]wFMCommunicate request_size=4 [20:43:30]MH_SAM_APDU [20:43:30]CAPDU: 80 13 01 00 [20:43:30]Write to MH i2c: E2 08 00 11 0C 80 13 01 00 00 00 00 00 9A [20:43:30]Write i2c OK [20:43:30]MH_I2C_Read... [20:43:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:30]Read from MH i2c: E2 [20:43:30]MH_I2C_Read... [20:43:30]Read from MH i2c: E2 0E 00 [20:43:30]MH_I2C_Read... [20:43:30]Read from MH i2c: E2 0E 00 11 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E4 [20:43:30]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:43:30]wFMCommunicate OK [20:43:30]SAM_PROTO_GetShiftState done [20:43:30]FM_GetShiftState done [20:43:30]req_shift_opened done [20:43:30]requested_item shift.open_date is exist - process it [20:43:30]req_shift_open_date [20:43:30]req_shift_open_date done [20:43:30]produce_requested_data done [20:43:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164382,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:43:30]process_action_free close_receipt [20:43:30]json_value_free [20:43:30]json_value_free done [20:43:30]process_json_proto returns [20:43:30]Send response to host [20:43:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164382,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:43:30]free response buf [20:43:30]execute_script done [20:43:30]execute_script returns [20:43:30]free content buf [20:43:30]Sock 7.Close socket [20:43:30]Sock 7.Thread stoped [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]accept exits with 9 [20:44:09]New connection [20:44:09]New thread 3067534692 created [20:44:09]Thread 3067391332 joined [20:44:09]Waiting for new connection... [20:44:09] Sock 9.Parse request [20:44:09]Sock 9.Check first char [20:44:09]Sock 9.First char is OK [20:44:09]request: POST /json_proto HTTP/1.0 [20:44:09]Method: POST [20:44:09]URL: /json_proto [20:44:09]Method is POST - this is cgi request [20:44:09]url: /json_proto [20:44:09]query_string will be loaded in cgi processing [20:44:09]execute_cgi json_proto POST (null) [20:44:09]execute_cgi path=json_proto method=POST [20:44:09]POST find Content-Length [20:44:09]Host: 172.17.56.4:8080 [20:44:09]Content-Length: 677 [20:44:09]Content-Type: application/json [20:44:09] [20:44:09]POST finish read [20:44:09]Found Content-Length = 677 [20:44:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:09]execute_script... [20:44: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)458468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:09]POST & json_proto [20:44:09]process_json_proto [20:44:09]json parsed OK: [20:44:09]protocol is kg_v1.0 [20:44:09]action value=close_receipt [20:44:09]process_action close_receipt [20:44:09]cmd_close_receipt [20:44:09]MH_GetDate [20:44:09]Write to MH i2c: F0 00 00 12 0C 0D [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: F0 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: F0 09 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: F0 09 00 12 0C 00 99 95 91 66 C9 DC B2 64 F6 [20:44:09]GetLastDocTimeStamp 1720817007 [20:44:09]current date 1720817049 [20:44:09]FM_GetShiftState [20:44:09]SAM_PROTO_GetShiftState [20:44:09]wFMCommunicate request_size=4 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 13 01 00 [20:44:09]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 0E 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E6 [20:44:09]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:44:09]wFMCommunicate OK [20:44:09]SAM_PROTO_GetShiftState done [20:44:09]FM_GetShiftState done [20:44:09]opened in 1720744654 [20:44:09]opened+sec_in_day 1720831054 [20:44:09]quantity*price = 50008 [20:44:09]sum+1 = 50009 [20:44:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 304 12.07.2024 20:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164383 ФПД: 265618633660806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T204409&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164383&fm=265618633660806&tin=02508201610067®Number=0000000000090829&sum=50000 [20:44:10]StoreToDocumentArchive [20:44:10]shift 445 fd 164383 [20:44:10]save to /storage/0445/doc_00164383 [20:44:10]save last doc name /storage/0445/doc_00164383 to /storage/kkm_last_doc_name [20:44:10]save OK [20:44:10]Clear old archive folders... [20:44:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:10]tlvbuf is B6E36230 [20:44:10]SAM_PROTO_ClearQueue [20:44:10]wFMCommunicate request_size=4 [20:44:10]MH_SAM_APDU [20:44:10]CAPDU: 80 09 00 00 [20:44:10]Write to MH i2c: E2 08 00 20 0C 80 09 00 00 00 00 00 00 9E [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 03 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [20:44:10]RAPDU: 90 00 [20:44:10]wFMCommunicate OK [20:44:10]SAM_PROTO_ClearQueue done [20:44:10]KKMCreateOFDPacket [20:44:10]OFDProtocolAddRootSTLVToBuf [20:44:10]FM_MakeSignedData [20:44:10]FM_MakeSignedData [20:44:10]SAM_PROTO_SignData [20:44:10]wFMCommunicate request_size=4 [20:44:10]MH_SAM_APDU [20:44:10]CAPDU: 80 0D 01 02 [20:44:10]Write to MH i2c: E2 08 00 21 0C 80 0D 01 02 00 00 00 00 A6 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 03 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 03 00 21 0C 00 90 00 A1 [20:44:10]RAPDU: 90 00 [20:44:10]wFMCommunicate OK [20:44:10]wFMCommunicate request_size=255 [20:44:10]MH_SAM_APDU [20:44: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 30 01 00 00 F4 03 04 00 99 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 82 02 00 35 04 06 00 F1 [20:44:10]Write to MH i2c: E2 02 01 22 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 30 01 00 00 F4 03 04 00 99 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 82 02 00 35 04 06 00 F1 00 00 C7 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 03 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [20:44:10]RAPDU: 90 00 [20:44:10]wFMCommunicate OK [20:44:10]wFMCommunicate request_size=10 [20:44:10]MH_SAM_APDU [20:44:10]CAPDU: 80 0D 02 02 05 94 28 4E 19 86 [20:44:10]Write to MH i2c: E2 0D 00 23 0C 80 0D 02 02 05 00 94 28 4E 19 86 00 00 5C [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 03 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [20:44:10]RAPDU: 90 00 [20:44:10]wFMCommunicate OK [20:44:10]wFMCommunicate request_size=4 [20:44:10]MH_SAM_APDU [20:44:10]CAPDU: 80 0D 03 02 [20:44:10]Write to MH i2c: E2 08 00 24 0C 80 0D 03 02 00 00 00 00 AB [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 0B 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 0B 00 24 0C 00 45 2A 36 17 6C 68 7A A0 90 00 56 [20:44:10]RAPDU: 45 2A 36 17 6C 68 7A A0 90 00 [20:44:10]wFMCommunicate OK [20:44:10]SAM_PROTO_SignData done [20:44:10]FM_MakeSignedData done [20:44:10]CreateOFDProtocolMessage [20:44:10]wFMCommunicate request_size=4 [20:44:10]MH_SAM_APDU [20:44:10]CAPDU: 80 11 00 00 [20:44:10]Write to MH i2c: E2 08 00 25 0C 80 11 00 00 00 00 00 00 AB [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 17 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 17 00 25 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 01 [20:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:44:10]wFMCommunicate OK [20:44:10]CreateOFDProtocolMessage done [20:44:10]OFDSenderStorePacket 164383 [20:44:10]StoreOFDPacket docnum=164383 [20:44:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 70 DF 07 01 8A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 30 01 00 00 F4 03 04 00 99 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 82 02 00 35 04 06 00 F1 94 28 4E 19 86 45 2A 36 17 6C 68 7A A0 [20:44:10]CheckFolder [20:44:10]dirname=/storage/ofd_packets [20:44:10]CheckFolder done [20:44:10]ProducePacketName [20:44:10]name=ofd_packets/00164383 [20:44:10]NVStorageSaveData ofd_packets/00164383 [20:44:10]File name is /storage/ofd_packets/00164383 [20:44:10]Write 301 bytes [20:44:10]NVStorageSaveData done [20:44:10]OFDSenderStorePacket done [20:44:10]KKMCreateOFDPacket done [20:44:10]NVStorageSaveData kkm_last_timestamp [20:44:10]File name is /storage/kkm_last_timestamp [20:44:10]Write 4 bytes [20:44:10]NVStorageSaveData done [20:44:10]ExternCall_PrintAddStr [20:44:10]wPrintStart [20:44:10]Write to MH i2c: 01 00 00 26 0C 32 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 07 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 07 00 26 0C 00 00 00 00 00 FF 0F 47 [20:44:10]RasterBufferAndPrint [20:44:10]line Счет N : (1)458468 [20:44:10]line ИНН: 02508201610067 [20:44:10]line Контрольно-Кассовый Чек [20:44:10]line ПРОДАЖА [20:44:10]line ТРК (МРК, ГНК) : 12 [20:44:10]line Товар: 2710124130 [20:44:10]line Аи-92-К-5 [20:44:10]line 7.600 * 65.80 [20:44:10]line = 500.08 [20:44:10]line НДС 12% НСП 1% [20:44:10]line > о реализуемом товаре [20:44:10]line ОКРУГЛЕНИЕ: -0.08 [20:44:10]line ИТОГО: 500.00 [20:44:10]line Внесено: 500.00 [20:44:10]line СДАЧА: 0.00 [20:44:10]line НСП 1% : 4.42 [20:44:10]line НДС 12% : 53.11 [20:44:10]line Наличными: 500.00 [20:44:10]line Безнал.: 0.00 [20:44:10]line Место: АЗС № 72 "Партнер Нефть" [20:44:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:44:10]line СНО: Общий режим [20:44:10]line Чек 304 12.07.2024 20:44 [20:44:10]line Смена: 445 ФФД: 1.0 [20:44:10]line ЗНМ: 0300000160 [20:44:10]line РНМ: 0000000000090829 [20:44:10]line Версия ККМ: 001 [20:44:10]line ФМ: 0000000000874718 [20:44:10]line ФД: 164383 [20:44:10]line ФПД: 265618633660806 [20:44:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T204409&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164383&fm=265618633660806&tin=02508201610067®Number=0000000000090829&sum=50000 [20:44:11]OFD Sender: Processing packet 164383 [packets to send 104, broken 103] [20:44:11]ProducePacketName [20:44:11]name=ofd_packets/00164383 [20:44:11]OFD Sender: To server: pG, [20:44:11]CommunicateWithHost lk.salyk.kg:30040 [20:44:11]ConnectInit lk.salyk.kg [20:44:11]written 0, free lines is 4095 [20:44:11]Connected sock=10 [20:44:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 70 DF 07 01 8A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 30 01 00 00 F4 03 04 00 99 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 82 02 00 35 04 06 00 F1 94 28 4E 19 86 45 2A 36 17 6C 68 7A A0 [20:44:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 93 5F 47 00 27 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 34 37 31 38 10 04 04 00 1F 82 02 00 F4 03 04 00 2D 3C 91 66 B6 04 01 00 00 5D 5E 8B BD 05 99 85 2E [20:44:11]CommunicateWithHost err = 0 [20:44:11]CheckOFDResponse [20:44:11]1017 (14) - 77093643461234 [20:44:11]1041 (16) - 0000000000874718 [20:44:11]1040 (4) - 164383 [20:44:11]1012 (4) - 12.07.2024 14:22 [20:44:11]1206 (1) - 0 [20:44:11]OFD Sender: Remove packet 164383 [20:44:11]ProducePacketName [20:44:11]name=ofd_packets/00164383 [20:44:11]NVStorageDeleteData [20:44:11]Write to MH i2c: 01 00 00 50 0C 5C [20:44:11]Write i2c OK [20:44:11]MH_I2C_Read... [20:44:11]Read from MH i2c: 01 [20:44:11]MH_I2C_Read... [20:44:11]Read from MH i2c: 01 07 00 [20:44:11]MH_I2C_Read... [20:44:11]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 0A 0D 7A [20:44:11]RasterBufferAndPrint [20:44:11]line [20:44:11]line [20:44:11]line [20:44:11]line [20:44:11]line [20:44:11]written 0, free lines is 3344 [20:44:11]MH_Cut [20:44:11]Write to MH i2c: D1 01 00 57 0C 01 35 [20:44:11]Write i2c OK [20:44:11]MH_I2C_Read... [20:44:11]Read from MH i2c: D1 [20:44:11]MH_I2C_Read... [20:44:11]Read from MH i2c: D1 01 00 [20:44:11]MH_I2C_Read... [20:44:11]Read from MH i2c: D1 01 00 57 0C 00 34 [20:44:11]Write to MH i2c: 01 00 00 58 0C 64 [20:44:11]Write i2c OK [20:44:11]MH_I2C_Read... [20:44:12]OFD Sender: No OFD packet to send [20:44:12]*** Cut start [20:44:12]*** Partial cut [20:44:12]*** CUTSNS_PIN = 1 [20:44:12]*** CUTSNS_PIN = 0 [20:44:12]*** Brake cut motor [20:44:12]Read from MH i2c: 01 [20:44:12]MH_I2C_Read... [20:44:12]*** Stop cut motor [20:44:12]*** Cut end [20:44:12]Read from MH i2c: 01 07 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: 01 07 00 58 0C 00 00 00 00 00 FF 0F 79 [20:44:12]process_action close_receipt done [20:44:12]requested_data is exist [20:44:12]produce_requested_data [20:44:12]requested_item fm.sn is exist - process it [20:44:12]wFMCommunicate request_size=4 [20:44:12]MH_SAM_APDU [20:44:12]CAPDU: 80 11 00 00 [20:44:12]Write to MH i2c: E2 08 00 59 0C 80 11 00 00 00 00 00 00 DF [20:44:12]Write i2c OK [20:44:12]MH_I2C_Read... [20:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 17 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 17 00 59 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 35 [20:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:44:13]wFMCommunicate OK [20:44:13]requested_item fd.num is exist - process it [20:44:13]SAM_PROTO_GetFieldsCounters [20:44:13]wFMCommunicate request_size=4 [20:44:13]MH_SAM_APDU [20:44:13]CAPDU: 80 13 00 00 [20:44:13]Write to MH i2c: E2 08 00 5A 0C 80 13 00 00 00 00 00 00 E2 [20:44:13]Write i2c OK [20:44:13]MH_I2C_Read... [20:44:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 62 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 62 00 5A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [20:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:13]wFMCommunicate OK [20:44:13]SAM_PROTO_GetFieldsCounters done [20:44:13]requested_item shift.num is exist - process it [20:44:13]requested_item shift.opened is exist - process it [20:44:13]req_shift_opened [20:44:13]FM_GetShiftState [20:44:13]SAM_PROTO_GetShiftState [20:44:13]wFMCommunicate request_size=4 [20:44:13]MH_SAM_APDU [20:44:13]CAPDU: 80 13 01 00 [20:44:13]Write to MH i2c: E2 08 00 5B 0C 80 13 01 00 00 00 00 00 E4 [20:44:13]Write i2c OK [20:44:13]MH_I2C_Read... [20:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 0E 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 0E 00 5B 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2E [20:44:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:44:13]wFMCommunicate OK [20:44:13]SAM_PROTO_GetShiftState done [20:44:13]FM_GetShiftState done [20:44:13]req_shift_opened done [20:44:13]requested_item shift.open_date is exist - process it [20:44:13]req_shift_open_date [20:44:13]req_shift_open_date done [20:44:13]produce_requested_data done [20:44:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164383,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:44:13]process_action_free close_receipt [20:44:13]json_value_free [20:44:13]json_value_free done [20:44:13]process_json_proto returns [20:44:13]Send response to host [20:44:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164383,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:44:13]free response buf [20:44:13]execute_script done [20:44:13]execute_script returns [20:44:13]free content buf [20:44:13]Sock 9.Close socket [20:44:13]Sock 9.Thread stoped [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:41]accept exits with 7 [20:44:41]New connection [20:44:41]New thread 3067391332 created [20:44:41]Thread 3067534692 joined [20:44:41]Waiting for new connection... [20:44:41] Sock 7.Parse request [20:44:41]Sock 7.Check first char [20:44:41]Sock 7.First char is OK [20:44:41]request: POST /json_proto HTTP/1.0 [20:44:41]Method: POST [20:44:41]URL: /json_proto [20:44:41]Method is POST - this is cgi request [20:44:41]url: /json_proto [20:44:41]query_string will be loaded in cgi processing [20:44:41]execute_cgi json_proto POST (null) [20:44:41]execute_cgi path=json_proto method=POST [20:44:41]POST find Content-Length [20:44:41]Host: 172.17.56.4:8080 [20:44:41]Content-Length: 677 [20:44:41]Content-Type: application/json [20:44:41] [20:44:41]POST finish read [20:44:41]Found Content-Length = 677 [20:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:41]execute_script... [20: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)458469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:41]POST & json_proto [20:44:41]process_json_proto [20:44:41]json parsed OK: [20:44:41]protocol is kg_v1.0 [20:44:41]action value=close_receipt [20:44:41]process_action close_receipt [20:44:41]cmd_close_receipt [20:44:41]MH_GetDate [20:44:41]Write to MH i2c: F0 00 00 5C 0C 57 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: F0 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: F0 09 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: F0 09 00 5C 0C 00 B9 95 91 66 C9 DC B2 64 60 [20:44:41]GetLastDocTimeStamp 1720817049 [20:44:41]current date 1720817081 [20:44:41]FM_GetShiftState [20:44:41]SAM_PROTO_GetShiftState [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 13 01 00 [20:44:41]Write to MH i2c: E2 08 00 5D 0C 80 13 01 00 00 00 00 00 E6 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 5D 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 30 [20:44:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:44:41]wFMCommunicate OK [20:44:41]SAM_PROTO_GetShiftState done [20:44:41]FM_GetShiftState done [20:44:41]opened in 1720744654 [20:44:41]opened+sec_in_day 1720831054 [20:44:41]quantity*price = 50008 [20:44:41]sum+1 = 50009 [20:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 305 12.07.2024 20:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164384 ФПД: 144760249958689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T204441&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164384&fm=144760249958689&tin=02508201610067®Number=0000000000090829&sum=50000 [20:44:42]StoreToDocumentArchive [20:44:42]shift 445 fd 164384 [20:44:42]save to /storage/0445/doc_00164384 [20:44:42]save last doc name /storage/0445/doc_00164384 to /storage/kkm_last_doc_name [20:44:42]save OK [20:44:42]Clear old archive folders... [20:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:42]tlvbuf is 0158C850 [20:44:42]SAM_PROTO_ClearQueue [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 09 00 00 [20:44:42]Write to MH i2c: E2 08 00 6A 0C 80 09 00 00 00 00 00 00 E8 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 6A 0C 00 90 00 EA [20:44:42]RAPDU: 90 00 [20:44:42]wFMCommunicate OK [20:44:42]SAM_PROTO_ClearQueue done [20:44:42]KKMCreateOFDPacket [20:44:42]OFDProtocolAddRootSTLVToBuf [20:44:42]FM_MakeSignedData [20:44:42]FM_MakeSignedData [20:44:42]SAM_PROTO_SignData [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 0D 01 02 [20:44:42]Write to MH i2c: E2 08 00 6B 0C 80 0D 01 02 00 00 00 00 F0 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 6B 0C 00 90 00 EB [20:44:42]RAPDU: 90 00 [20:44:42]wFMCommunicate OK [20:44:42]wFMCommunicate request_size=255 [20:44:42]MH_SAM_APDU [20: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 31 01 00 00 F4 03 04 00 B9 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 82 02 00 35 04 06 00 83 [20:44:42]Write to MH i2c: E2 02 01 6C 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 31 01 00 00 F4 03 04 00 B9 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 82 02 00 35 04 06 00 83 00 00 C5 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 6C 0C 00 90 00 EC [20:44:42]RAPDU: 90 00 [20:44:42]wFMCommunicate OK [20:44:42]wFMCommunicate request_size=10 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 0D 02 02 05 A8 9F 46 C1 21 [20:44:42]Write to MH i2c: E2 0D 00 6D 0C 80 0D 02 02 05 00 A8 9F 46 C1 21 00 00 6C [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 03 00 6D 0C 00 90 00 ED [20:44:42]RAPDU: 90 00 [20:44:42]wFMCommunicate OK [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 0D 03 02 [20:44:42]Write to MH i2c: E2 08 00 6E 0C 80 0D 03 02 00 00 00 00 F5 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 0B 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 0B 00 6E 0C 00 7F A3 88 7B 73 F8 44 D7 90 00 A1 [20:44:42]RAPDU: 7F A3 88 7B 73 F8 44 D7 90 00 [20:44:42]wFMCommunicate OK [20:44:42]SAM_PROTO_SignData done [20:44:42]FM_MakeSignedData done [20:44:42]CreateOFDProtocolMessage [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 11 00 00 [20:44:42]Write to MH i2c: E2 08 00 6F 0C 80 11 00 00 00 00 00 00 F5 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 17 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 17 00 6F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4B [20:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:44:42]wFMCommunicate OK [20:44:42]CreateOFDProtocolMessage done [20:44:42]OFDSenderStorePacket 164384 [20:44:42]StoreOFDPacket docnum=164384 [20:44:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 D1 07 01 76 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 31 01 00 00 F4 03 04 00 B9 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 82 02 00 35 04 06 00 83 A8 9F 46 C1 21 7F A3 88 7B 73 F8 44 D7 [20:44:42]CheckFolder [20:44:42]dirname=/storage/ofd_packets [20:44:42]CheckFolder done [20:44:42]ProducePacketName [20:44:42]name=ofd_packets/00164384 [20:44:42]NVStorageSaveData ofd_packets/00164384 [20:44:42]File name is /storage/ofd_packets/00164384 [20:44:42]Write 301 bytes [20:44:42]NVStorageSaveData done [20:44:42]OFDSenderStorePacket done [20:44:42]KKMCreateOFDPacket done [20:44:42]NVStorageSaveData kkm_last_timestamp [20:44:42]File name is /storage/kkm_last_timestamp [20:44:42]Write 4 bytes [20:44:42]NVStorageSaveData done [20:44:42]ExternCall_PrintAddStr [20:44:42]wPrintStart [20:44:42]Write to MH i2c: 01 00 00 70 0C 7C [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 07 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 07 00 70 0C 00 00 00 00 00 FF 0F 91 [20:44:42]RasterBufferAndPrint [20:44:42]line Счет N : (1)458469 [20:44:42]line ИНН: 02508201610067 [20:44:42]line Контрольно-Кассовый Чек [20:44:42]line ПРОДАЖА [20:44:42]line ТРК (МРК, ГНК) : 12 [20:44:42]line Товар: 2710124130 [20:44:42]line Аи-92-К-5 [20:44:42]line 7.600 * 65.80 [20:44:42]line = 500.08 [20:44:42]line НДС 12% НСП 1% [20:44:42]line > о реализуемом товаре [20:44:42]line ОКРУГЛЕНИЕ: -0.08 [20:44:42]line ИТОГО: 500.00 [20:44:42]line Внесено: 500.00 [20:44:42]line СДАЧА: 0.00 [20:44:42]line НСП 1% : 4.42 [20:44:42]line НДС 12% : 53.11 [20:44:42]line Наличными: 500.00 [20:44:42]line Безнал.: 0.00 [20:44:42]line Место: АЗС № 72 "Партнер Нефть" [20:44:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:44:42]line СНО: Общий режим [20:44:42]line Чек 305 12.07.2024 20:44 [20:44:42]line Смена: 445 ФФД: 1.0 [20:44:42]line ЗНМ: 0300000160 [20:44:42]line РНМ: 0000000000090829 [20:44:42]line Версия ККМ: 001 [20:44:42]line ФМ: 0000000000874718 [20:44:42]line ФД: 164384 [20:44:42]line ФПД: 144760249958689 [20:44:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T204441&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164384&fm=144760249958689&tin=02508201610067®Number=0000000000090829&sum=50000 [20:44:43]written 0, free lines is 4095 [20:44:43]OFD Sender: Processing packet 164384 [packets to send 104, broken 103] [20:44:43]ProducePacketName [20:44:43]name=ofd_packets/00164384 [20:44:43]OFD Sender: To server: pG, [20:44:43]CommunicateWithHost lk.salyk.kg:30040 [20:44:43]ConnectInit lk.salyk.kg [20:44:43]Connected sock=10 [20: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 34 37 31 38 0F 01 00 00 C6 D1 07 01 76 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 31 01 00 00 F4 03 04 00 B9 95 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 82 02 00 35 04 06 00 83 A8 9F 46 C1 21 7F A3 88 7B 73 F8 44 D7 [20:44:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 64 8F 47 00 9E 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 82 02 00 F4 03 04 00 4D 3C 91 66 B6 04 01 00 00 FB 7F 17 E5 05 03 0A 47 [20:44:43]CommunicateWithHost err = 0 [20:44:43]CheckOFDResponse [20:44:43]1017 (14) - 77093643461234 [20:44:43]1041 (16) - 0000000000874718 [20:44:43]1040 (4) - 164384 [20:44:43]1012 (4) - 12.07.2024 14:23 [20:44:43]1206 (1) - 0 [20:44:43]OFD Sender: Remove packet 164384 [20:44:43]ProducePacketName [20:44:43]name=ofd_packets/00164384 [20:44:43]NVStorageDeleteData [20:44:43]Write to MH i2c: 01 00 00 9A 0C A6 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: 01 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: 01 07 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: 01 07 00 9A 0C 00 00 00 00 00 02 0D BC [20:44:43]RasterBufferAndPrint [20:44:43]line [20:44:43]line [20:44:43]line [20:44:43]line [20:44:43]line [20:44:43]written 0, free lines is 3336 [20:44:43]MH_Cut [20:44:43]Write to MH i2c: D1 01 00 A1 0C 01 7F [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: D1 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: D1 01 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: D1 01 00 A1 0C 00 7E [20:44:43]Write to MH i2c: 01 00 00 A2 0C AE [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]OFD Sender: No OFD packet to send [20:44:44]*** Cut start [20:44:44]*** Partial cut [20:44:44]*** CUTSNS_PIN = 1 [20:44:44]*** CUTSNS_PIN = 0 [20:44:44]*** Brake cut motor [20:44:44]Read from MH i2c: 01 [20:44:44]MH_I2C_Read... [20:44:44]*** Stop cut motor [20:44:44]*** Cut end [20:44:44]Read from MH i2c: 01 07 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 07 00 A2 0C 00 00 00 00 00 FF 0F C3 [20:44:44]process_action close_receipt done [20:44:44]requested_data is exist [20:44:44]produce_requested_data [20:44:44]requested_item fm.sn is exist - process it [20:44:44]wFMCommunicate request_size=4 [20:44:44]MH_SAM_APDU [20:44:44]CAPDU: 80 11 00 00 [20:44:44]Write to MH i2c: E2 08 00 A3 0C 80 11 00 00 00 00 00 00 29 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:44]Read from MH i2c: E2 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 17 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 17 00 A3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7F [20:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:44:44]wFMCommunicate OK [20:44:44]requested_item fd.num is exist - process it [20:44:44]SAM_PROTO_GetFieldsCounters [20:44:44]wFMCommunicate request_size=4 [20:44:44]MH_SAM_APDU [20:44:44]CAPDU: 80 13 00 00 [20:44:44]Write to MH i2c: E2 08 00 A4 0C 80 13 00 00 00 00 00 00 2C [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:45]Read from MH i2c: E2 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 62 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 62 00 A4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:45]wFMCommunicate OK [20:44:45]SAM_PROTO_GetFieldsCounters done [20:44:45]requested_item shift.num is exist - process it [20:44:45]requested_item shift.opened is exist - process it [20:44:45]req_shift_opened [20:44:45]FM_GetShiftState [20:44:45]SAM_PROTO_GetShiftState [20:44:45]wFMCommunicate request_size=4 [20:44:45]MH_SAM_APDU [20:44:45]CAPDU: 80 13 01 00 [20:44:45]Write to MH i2c: E2 08 00 A5 0C 80 13 01 00 00 00 00 00 2E [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:45]Read from MH i2c: E2 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 0E 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 0E 00 A5 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 78 [20:44:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:44:45]wFMCommunicate OK [20:44:45]SAM_PROTO_GetShiftState done [20:44:45]FM_GetShiftState done [20:44:45]req_shift_opened done [20:44:45]requested_item shift.open_date is exist - process it [20:44:45]req_shift_open_date [20:44:45]req_shift_open_date done [20:44:45]produce_requested_data done [20:44:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164384,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:44:45]process_action_free close_receipt [20:44:45]json_value_free [20:44:45]json_value_free done [20:44:45]process_json_proto returns [20:44:45]Send response to host [20:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164384,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:44:45]free response buf [20:44:45]execute_script done [20:44:45]execute_script returns [20:44:45]free content buf [20:44:45]Sock 7.Close socket [20:44:45]Sock 7.Thread stoped [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:23]accept exits with 9 [20:51:23]New connection [20:51:23]New thread 3067534692 created [20:51:23]Thread 3067391332 joined [20:51:23]Waiting for new connection... [20:51:23] Sock 9.Parse request [20:51:23]Sock 9.Check first char [20:51:23]Sock 9.First char is OK [20:51:23]request: POST /json_proto HTTP/1.0 [20:51:23]Method: POST [20:51:23]URL: /json_proto [20:51:23]Method is POST - this is cgi request [20:51:23]url: /json_proto [20:51:23]query_string will be loaded in cgi processing [20:51:23]execute_cgi json_proto POST (null) [20:51:23]execute_cgi path=json_proto method=POST [20:51:23]POST find Content-Length [20:51:23]Host: 172.17.56.4:8080 [20:51:23]Content-Length: 677 [20:51:23]Content-Type: application/json [20:51:23] [20:51:23]POST finish read [20:51:23]Found Content-Length = 677 [20:51:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:23]execute_script... [20:51:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:23]POST & json_proto [20:51:23]process_json_proto [20:51:23]json parsed OK: [20:51:23]protocol is kg_v1.0 [20:51:23]action value=close_receipt [20:51:23]process_action close_receipt [20:51:23]cmd_close_receipt [20:51:23]MH_GetDate [20:51:23]Write to MH i2c: F0 00 00 A6 0C A1 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: F0 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: F0 09 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: F0 09 00 A6 0C 00 4C 97 91 66 C9 DC B2 64 3F [20:51:23]GetLastDocTimeStamp 1720817081 [20:51:23]current date 1720817484 [20:51:23]FM_GetShiftState [20:51:23]SAM_PROTO_GetShiftState [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 13 01 00 [20:51:23]Write to MH i2c: E2 08 00 A7 0C 80 13 01 00 00 00 00 00 30 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 0E 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 0E 00 A7 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7A [20:51:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:51:23]wFMCommunicate OK [20:51:23]SAM_PROTO_GetShiftState done [20:51:23]FM_GetShiftState done [20:51:23]opened in 1720744654 [20:51:23]opened+sec_in_day 1720831054 [20:51:23]quantity*price = 55008 [20:51:23]sum+1 = 55010 [20:51:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 306 12.07.2024 20:51 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164385 ФПД: 210742766424559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205124&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164385&fm=210742766424559&tin=02508201610067®Number=0000000000090829&sum=55000 [20:51:24]StoreToDocumentArchive [20:51:24]shift 445 fd 164385 [20:51:24]save to /storage/0445/doc_00164385 [20:51:24]save last doc name /storage/0445/doc_00164385 to /storage/kkm_last_doc_name [20:51:24]save OK [20:51:24]Clear old archive folders... [20:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:51:24]tlvbuf is B6F36180 [20:51:24]SAM_PROTO_ClearQueue [20:51:24]wFMCommunicate request_size=4 [20:51:24]MH_SAM_APDU [20:51:24]CAPDU: 80 09 00 00 [20:51:24]Write to MH i2c: E2 08 00 B4 0C 80 09 00 00 00 00 00 00 32 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:24]Read from MH i2c: E2 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 B4 0C 00 90 00 34 [20:51:24]RAPDU: 90 00 [20:51:24]wFMCommunicate OK [20:51:24]SAM_PROTO_ClearQueue done [20:51:24]KKMCreateOFDPacket [20:51:24]OFDProtocolAddRootSTLVToBuf [20:51:24]FM_MakeSignedData [20:51:24]FM_MakeSignedData [20:51:24]SAM_PROTO_SignData [20:51:24]wFMCommunicate request_size=4 [20:51:24]MH_SAM_APDU [20:51:24]CAPDU: 80 0D 01 02 [20:51:24]Write to MH i2c: E2 08 00 B5 0C 80 0D 01 02 00 00 00 00 3A [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:24]Read from MH i2c: E2 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: E2 03 00 B5 0C 00 90 00 35 [20:51:24]RAPDU: 90 00 [20:51:24]wFMCommunicate OK [20:51:24]wFMCommunicate request_size=255 [20:51:24]MH_SAM_APDU [20:51:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 4C 97 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 82 02 00 35 04 06 00 BF [20:51:24]Write to MH i2c: E2 02 01 B6 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 4C 97 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 82 02 00 35 04 06 00 BF 00 00 F1 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:25]Read from MH i2c: E2 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 03 00 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 03 00 B6 0C 00 90 00 36 [20:51:25]RAPDU: 90 00 [20:51:25]wFMCommunicate OK [20:51:25]wFMCommunicate request_size=10 [20:51:25]MH_SAM_APDU [20:51:25]CAPDU: 80 0D 02 02 05 AB 5F BB 51 EF [20:51:25]Write to MH i2c: E2 0D 00 B7 0C 80 0D 02 02 05 00 AB 5F BB 51 EF 00 00 4C [20:51:25]Write i2c OK [20:51:25]MH_I2C_Read... [20:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:25]Read from MH i2c: E2 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 03 00 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [20:51:25]RAPDU: 90 00 [20:51:25]wFMCommunicate OK [20:51:25]wFMCommunicate request_size=4 [20:51:25]MH_SAM_APDU [20:51:25]CAPDU: 80 0D 03 02 [20:51:25]Write to MH i2c: E2 08 00 B8 0C 80 0D 03 02 00 00 00 00 3F [20:51:25]Write i2c OK [20:51:25]MH_I2C_Read... [20:51:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:25]Read from MH i2c: E2 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 0B 00 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 0B 00 B8 0C 00 48 B0 C5 E2 66 AF 4A D7 90 00 15 [20:51:25]RAPDU: 48 B0 C5 E2 66 AF 4A D7 90 00 [20:51:25]wFMCommunicate OK [20:51:25]SAM_PROTO_SignData done [20:51:25]FM_MakeSignedData done [20:51:25]CreateOFDProtocolMessage [20:51:25]wFMCommunicate request_size=4 [20:51:25]MH_SAM_APDU [20:51:25]CAPDU: 80 11 00 00 [20:51:25]Write to MH i2c: E2 08 00 B9 0C 80 11 00 00 00 00 00 00 3F [20:51:25]Write i2c OK [20:51:25]MH_I2C_Read... [20:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:25]Read from MH i2c: E2 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 17 00 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: E2 17 00 B9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 95 [20:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:51:25]wFMCommunicate OK [20:51:25]CreateOFDProtocolMessage done [20:51:25]OFDSenderStorePacket 164385 [20:51:25]StoreOFDPacket docnum=164385 [20:51:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C0 50 07 01 DF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 4C 97 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 82 02 00 35 04 06 00 BF AB 5F BB 51 EF 48 B0 C5 E2 66 AF 4A D7 [20:51:25]CheckFolder [20:51:25]dirname=/storage/ofd_packets [20:51:25]CheckFolder done [20:51:25]ProducePacketName [20:51:25]name=ofd_packets/00164385 [20:51:25]NVStorageSaveData ofd_packets/00164385 [20:51:25]File name is /storage/ofd_packets/00164385 [20:51:25]Write 301 bytes [20:51:25]NVStorageSaveData done [20:51:25]OFDSenderStorePacket done [20:51:25]KKMCreateOFDPacket done [20:51:25]NVStorageSaveData kkm_last_timestamp [20:51:25]File name is /storage/kkm_last_timestamp [20:51:25]Write 4 bytes [20:51:25]NVStorageSaveData done [20:51:25]ExternCall_PrintAddStr [20:51:25]wPrintStart [20:51:25]Write to MH i2c: 01 00 00 BA 0C C6 [20:51:25]Write i2c OK [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: 01 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: 01 07 00 [20:51:25]MH_I2C_Read... [20:51:25]Read from MH i2c: 01 07 00 BA 0C 00 00 00 00 00 FF 0F DB [20:51:25]RasterBufferAndPrint [20:51:25]line Счет N : (1)458470 [20:51:25]line ИНН: 02508201610067 [20:51:25]line Контрольно-Кассовый Чек [20:51:25]line ПРОДАЖА [20:51:25]line ТРК (МРК, ГНК) : 12 [20:51:25]line Товар: 2710124130 [20:51:25]line Аи-92-К-5 [20:51:25]line 8.360 * 65.80 [20:51:25]line = 550.09 [20:51:25]line НДС 12% НСП 1% [20:51:25]line > о реализуемом товаре [20:51:25]line ОКРУГЛЕНИЕ: -0.09 [20:51:25]line ИТОГО: 550.00 [20:51:25]line Внесено: 550.00 [20:51:25]line СДАЧА: 0.00 [20:51:25]line НСП 1% : 4.87 [20:51:25]line НДС 12% : 58.42 [20:51:25]line Наличными: 550.00 [20:51:25]line Безнал.: 0.00 [20:51:25]line Место: АЗС № 72 "Партнер Нефть" [20:51:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:51:25]line СНО: Общий режим [20:51:25]line Чек 306 12.07.2024 20:51 [20:51:25]line Смена: 445 ФФД: 1.0 [20:51:25]line ЗНМ: 0300000160 [20:51:25]line РНМ: 0000000000090829 [20:51:25]line Версия ККМ: 001 [20:51:25]line ФМ: 0000000000874718 [20:51:25]line ФД: 164385 [20:51:25]line ФПД: 210742766424559 [20:51:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205124&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164385&fm=210742766424559&tin=02508201610067®Number=0000000000090829&sum=55000 [20:51:25]OFD Sender: Processing packet 164385 [packets to send 104, broken 103] [20:51:25]ProducePacketName [20:51:25]name=ofd_packets/00164385 [20:51:25]OFD Sender: To server: pG, [20:51:25]CommunicateWithHost lk.salyk.kg:30040 [20:51:25]ConnectInit lk.salyk.kg [20:51:25]written 0, free lines is 4095 [20:51:25]Connected sock=10 [20:51:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C0 50 07 01 DF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 4C 97 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 82 02 00 35 04 06 00 BF AB 5F BB 51 EF 48 B0 C5 E2 66 AF 4A D7 [20:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 80 83 47 00 FB 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 34 37 31 38 10 04 04 00 21 82 02 00 F4 03 04 00 DF 3D 91 66 B6 04 01 00 00 4B F2 35 97 37 13 EF F2 [20:51:25]CommunicateWithHost err = 0 [20:51:25]CheckOFDResponse [20:51:25]1017 (14) - 77093643461234 [20:51:25]1041 (16) - 0000000000874718 [20:51:25]1040 (4) - 164385 [20:51:25]1012 (4) - 12.07.2024 14:29 [20:51:25]1206 (1) - 0 [20:51:25]OFD Sender: Remove packet 164385 [20:51:25]ProducePacketName [20:51:25]name=ofd_packets/00164385 [20:51:25]NVStorageDeleteData [20:51:26]Write to MH i2c: 01 00 00 E4 0C F0 [20:51:26]Write i2c OK [20:51:26]MH_I2C_Read... [20:51:26]Read from MH i2c: 01 [20:51:26]MH_I2C_Read... [20:51:26]Read from MH i2c: 01 07 00 [20:51:26]MH_I2C_Read... [20:51:26]Read from MH i2c: 01 07 00 E4 0C 00 00 00 00 00 F3 0C F6 [20:51:26]RasterBufferAndPrint [20:51:26]line [20:51:26]line [20:51:26]line [20:51:26]line [20:51:26]line [20:51:26]written 0, free lines is 3321 [20:51:26]MH_Cut [20:51:26]Write to MH i2c: D1 01 00 EB 0C 01 C9 [20:51:26]Write i2c OK [20:51:26]MH_I2C_Read... [20:51:26]Read from MH i2c: D1 [20:51:26]MH_I2C_Read... [20:51:26]Read from MH i2c: D1 01 00 [20:51:26]MH_I2C_Read... [20:51:26]Read from MH i2c: D1 01 00 EB 0C 00 C8 [20:51:26]Write to MH i2c: 01 00 00 EC 0C F8 [20:51:26]Write i2c OK [20:51:26]MH_I2C_Read... [20:51:26]OFD Sender: No OFD packet to send [20:51:26]*** Cut start [20:51:26]*** Partial cut [20:51:26]*** CUTSNS_PIN = 1 [20:51:26]*** CUTSNS_PIN = 0 [20:51:27]*** Brake cut motor [20:51:27]Read from MH i2c: 01 [20:51:27]MH_I2C_Read... [20:51:27]*** Stop cut motor [20:51:27]*** Cut end [20:51:27]Read from MH i2c: 01 07 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: 01 07 00 EC 0C 00 00 00 00 00 FF 0F 0D [20:51:27]process_action close_receipt done [20:51:27]requested_data is exist [20:51:27]produce_requested_data [20:51:27]requested_item fm.sn is exist - process it [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 11 00 00 [20:51:27]Write to MH i2c: E2 08 00 ED 0C 80 11 00 00 00 00 00 00 73 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 17 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 17 00 ED 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [20:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:51:27]wFMCommunicate OK [20:51:27]requested_item fd.num is exist - process it [20:51:27]SAM_PROTO_GetFieldsCounters [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 13 00 00 [20:51:27]Write to MH i2c: E2 08 00 EE 0C 80 13 00 00 00 00 00 00 76 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 62 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 62 00 EE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [20:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:27]wFMCommunicate OK [20:51:27]SAM_PROTO_GetFieldsCounters done [20:51:27]requested_item shift.num is exist - process it [20:51:27]requested_item shift.opened is exist - process it [20:51:27]req_shift_opened [20:51:27]FM_GetShiftState [20:51:27]SAM_PROTO_GetShiftState [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 13 01 00 [20:51:27]Write to MH i2c: E2 08 00 EF 0C 80 13 01 00 00 00 00 00 78 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 EF 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C2 [20:51:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:51:27]wFMCommunicate OK [20:51:27]SAM_PROTO_GetShiftState done [20:51:27]FM_GetShiftState done [20:51:27]req_shift_opened done [20:51:27]requested_item shift.open_date is exist - process it [20:51:27]req_shift_open_date [20:51:27]req_shift_open_date done [20:51:27]produce_requested_data done [20:51:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164385,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:51:27]process_action_free close_receipt [20:51:27]json_value_free [20:51:27]json_value_free done [20:51:27]process_json_proto returns [20:51:27]Send response to host [20:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164385,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:51:27]free response buf [20:51:27]execute_script done [20:51:27]execute_script returns [20:51:27]free content buf [20:51:27]Sock 9.Close socket [20:51:27]Sock 9.Thread stoped [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:25]accept exits with 7 [20:54:25]New connection [20:54:25]New thread 3067391332 created [20:54:25]Thread 3067534692 joined [20:54:25]Waiting for new connection... [20:54:25] Sock 7.Parse request [20:54:25]Sock 7.Check first char [20:54:25]Sock 7.First char is OK [20:54:25]request: POST /json_proto HTTP/1.0 [20:54:25]Method: POST [20:54:25]URL: /json_proto [20:54:25]Method is POST - this is cgi request [20:54:25]url: /json_proto [20:54:25]query_string will be loaded in cgi processing [20:54:25]execute_cgi json_proto POST (null) [20:54:25]execute_cgi path=json_proto method=POST [20:54:25]POST find Content-Length [20:54:25]Host: 172.17.56.4:8080 [20:54:25]Content-Length: 677 [20:54:25]Content-Type: application/json [20:54:25] [20:54:25]POST finish read [20:54:25]Found Content-Length = 677 [20:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.430, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:25]execute_script... [20:54:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.430, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:25]POST & json_proto [20:54:25]process_json_proto [20:54:25]json parsed OK: [20:54:25]protocol is kg_v1.0 [20:54:25]action value=close_receipt [20:54:25]process_action close_receipt [20:54:25]cmd_close_receipt [20:54:25]MH_GetDate [20:54:25]Write to MH i2c: F0 00 00 F0 0C EB [20:54:25]Write i2c OK [20:54:25]MH_I2C_Read... [20:54:25]Read from MH i2c: F0 [20:54:25]MH_I2C_Read... [20:54:25]Read from MH i2c: F0 09 00 [20:54:25]MH_I2C_Read... [20:54:25]Read from MH i2c: F0 09 00 F0 0C 00 02 98 91 66 C9 DC B2 64 40 [20:54:25]GetLastDocTimeStamp 1720817484 [20:54:25]current date 1720817666 [20:54:25]FM_GetShiftState [20:54:25]SAM_PROTO_GetShiftState [20:54:25]wFMCommunicate request_size=4 [20:54:25]MH_SAM_APDU [20:54:25]CAPDU: 80 13 01 00 [20:54:25]Write to MH i2c: E2 08 00 F1 0C 80 13 01 00 00 00 00 00 7A [20:54:25]Write i2c OK [20:54:25]MH_I2C_Read... [20:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:25]Read from MH i2c: E2 [20:54:25]MH_I2C_Read... [20:54:25]Read from MH i2c: E2 0E 00 [20:54:25]MH_I2C_Read... [20:54:25]Read from MH i2c: E2 0E 00 F1 0C 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C4 [20:54:25]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:54:25]wFMCommunicate OK [20:54:25]SAM_PROTO_GetShiftState done [20:54:25]FM_GetShiftState done [20:54:25]opened in 1720744654 [20:54:25]opened+sec_in_day 1720831054 [20:54:25]quantity*price = 62049 [20:54:25]sum+1 = 62050 [20:54:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 307 12.07.2024 20:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164386 ФПД: 147413895877937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205426&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164386&fm=147413895877937&tin=02508201610067®Number=0000000000090829&sum=62000 [20:54:26]StoreToDocumentArchive [20:54:26]shift 445 fd 164386 [20:54:26]save to /storage/0445/doc_00164386 [20:54:26]save last doc name /storage/0445/doc_00164386 to /storage/kkm_last_doc_name [20:54:26]save OK [20:54:26]Clear old archive folders... [20:54:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:26]tlvbuf is 0158CBD0 [20:54:26]SAM_PROTO_ClearQueue [20:54:26]wFMCommunicate request_size=4 [20:54:26]MH_SAM_APDU [20:54:26]CAPDU: 80 09 00 00 [20:54:26]Write to MH i2c: E2 08 00 FE 0C 80 09 00 00 00 00 00 00 7C [20:54:26]Write i2c OK [20:54:26]MH_I2C_Read... [20:54:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:26]Read from MH i2c: E2 [20:54:26]MH_I2C_Read... [20:54:26]Read from MH i2c: E2 03 00 [20:54:26]MH_I2C_Read... [20:54:26]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [20:54:26]RAPDU: 90 00 [20:54:26]wFMCommunicate OK [20:54:26]SAM_PROTO_ClearQueue done [20:54:26]KKMCreateOFDPacket [20:54:26]OFDProtocolAddRootSTLVToBuf [20:54:26]FM_MakeSignedData [20:54:26]FM_MakeSignedData [20:54:26]SAM_PROTO_SignData [20:54:26]wFMCommunicate request_size=4 [20:54:26]MH_SAM_APDU [20:54:26]CAPDU: 80 0D 01 02 [20:54:26]Write to MH i2c: E2 08 00 FF 0C 80 0D 01 02 00 00 00 00 84 [20:54:26]Write i2c OK [20:54:26]MH_I2C_Read... [20:54:26]OFD Sender: No OFD packet to send [20:54:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:26]Read from MH i2c: E2 [20:54:26]MH_I2C_Read... [20:54:26]Read from MH i2c: E2 03 00 [20:54:26]MH_I2C_Read... [20:54:26]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [20:54:26]RAPDU: 90 00 [20:54:26]wFMCommunicate OK [20:54:26]wFMCommunicate request_size=255 [20:54:26]MH_SAM_APDU [20:54: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 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 02 98 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 82 02 00 35 04 06 00 86 [20:54:26]Write to MH i2c: E2 02 01 00 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 02 98 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 82 02 00 35 04 06 00 86 00 00 9F [20:54:26]Write i2c OK [20:54:26]MH_I2C_Read... [20:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:27]Read from MH i2c: E2 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: E2 03 00 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [20:54:27]RAPDU: 90 00 [20:54:27]wFMCommunicate OK [20:54:27]wFMCommunicate request_size=10 [20:54:27]MH_SAM_APDU [20:54:27]CAPDU: 80 0D 02 02 05 12 78 E6 15 31 [20:54:27]Write to MH i2c: E2 0D 00 01 0D 80 0D 02 02 05 00 12 78 E6 15 31 00 00 48 [20:54:27]Write i2c OK [20:54:27]MH_I2C_Read... [20:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:27]Read from MH i2c: E2 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: E2 03 00 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [20:54:27]RAPDU: 90 00 [20:54:27]wFMCommunicate OK [20:54:27]wFMCommunicate request_size=4 [20:54:27]MH_SAM_APDU [20:54:27]CAPDU: 80 0D 03 02 [20:54:27]Write to MH i2c: E2 08 00 02 0D 80 0D 03 02 00 00 00 00 8A [20:54:27]Write i2c OK [20:54:27]MH_I2C_Read... [20:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:27]Read from MH i2c: E2 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: E2 0B 00 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: E2 0B 00 02 0D 00 C5 D3 BE 12 38 FD 5E DC 90 00 62 [20:54:27]RAPDU: C5 D3 BE 12 38 FD 5E DC 90 00 [20:54:27]wFMCommunicate OK [20:54:27]SAM_PROTO_SignData done [20:54:27]FM_MakeSignedData done [20:54:27]CreateOFDProtocolMessage [20:54:27]wFMCommunicate request_size=4 [20:54:27]MH_SAM_APDU [20:54:27]CAPDU: 80 11 00 00 [20:54:27]Write to MH i2c: E2 08 00 03 0D 80 11 00 00 00 00 00 00 8A [20:54:27]Write i2c OK [20:54:27]MH_I2C_Read... [20:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:27]Read from MH i2c: E2 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: E2 17 00 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: E2 17 00 03 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [20:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:54:27]wFMCommunicate OK [20:54:27]CreateOFDProtocolMessage done [20:54:27]OFDSenderStorePacket 164386 [20:54:27]StoreOFDPacket docnum=164386 [20:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 6E 07 01 CE 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 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 02 98 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 82 02 00 35 04 06 00 86 12 78 E6 15 31 C5 D3 BE 12 38 FD 5E DC [20:54:27]CheckFolder [20:54:27]dirname=/storage/ofd_packets [20:54:27]CheckFolder done [20:54:27]ProducePacketName [20:54:27]name=ofd_packets/00164386 [20:54:27]NVStorageSaveData ofd_packets/00164386 [20:54:27]File name is /storage/ofd_packets/00164386 [20:54:27]Write 301 bytes [20:54:27]NVStorageSaveData done [20:54:27]OFDSenderStorePacket done [20:54:27]KKMCreateOFDPacket done [20:54:27]NVStorageSaveData kkm_last_timestamp [20:54:27]File name is /storage/kkm_last_timestamp [20:54:27]Write 4 bytes [20:54:27]NVStorageSaveData done [20:54:27]ExternCall_PrintAddStr [20:54:27]wPrintStart [20:54:27]Write to MH i2c: 01 00 00 04 0D 11 [20:54:27]Write i2c OK [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: 01 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: 01 07 00 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: 01 07 00 04 0D 00 00 00 00 00 FF 0F 26 [20:54:27]RasterBufferAndPrint [20:54:27]line Счет N : (1)458471 [20:54:27]line ИНН: 02508201610067 [20:54:27]line Контрольно-Кассовый Чек [20:54:27]line ПРОДАЖА [20:54:27]line ТРК (МРК, ГНК) : 12 [20:54:27]line Товар: 2710124130 [20:54:27]line Аи-92-К-5 [20:54:27]line 9.430 * 65.80 [20:54:27]line = 620.49 [20:54:27]line НДС 12% НСП 1% [20:54:27]line > о реализуемом товаре [20:54:27]line ОКРУГЛЕНИЕ: -0.49 [20:54:27]line ИТОГО: 620.00 [20:54:27]line Внесено: 620.00 [20:54:27]line СДАЧА: 0.00 [20:54:27]line НСП 1% : 5.49 [20:54:27]line НДС 12% : 65.89 [20:54:27]line Наличными: 620.00 [20:54:27]line Безнал.: 0.00 [20:54:27]line Место: АЗС № 72 "Партнер Нефть" [20:54:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:54:27]line СНО: Общий режим [20:54:27]line Чек 307 12.07.2024 20:54 [20:54:27]line Смена: 445 ФФД: 1.0 [20:54:27]line ЗНМ: 0300000160 [20:54:27]line РНМ: 0000000000090829 [20:54:27]line Версия ККМ: 001 [20:54:27]line ФМ: 0000000000874718 [20:54:27]line ФД: 164386 [20:54:27]line ФПД: 147413895877937 [20:54:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205426&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164386&fm=147413895877937&tin=02508201610067®Number=0000000000090829&sum=62000 [20:54:27]OFD Sender: Processing packet 164386 [packets to send 104, broken 103] [20:54:27]ProducePacketName [20:54:27]name=ofd_packets/00164386 [20:54:27]OFD Sender: To server: pG, [20:54:27]CommunicateWithHost lk.salyk.kg:30040 [20:54:27]ConnectInit lk.salyk.kg [20:54:27]written 0, free lines is 4095 [20:54:27]Connected sock=10 [20:54:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 6E 07 01 CE 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 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 02 98 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 82 02 00 35 04 06 00 86 12 78 E6 15 31 C5 D3 BE 12 38 FD 5E DC [20:54:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8E CF 47 00 26 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 34 37 31 38 10 04 04 00 22 82 02 00 F4 03 04 00 95 3E 91 66 B6 04 01 00 00 24 29 6E 41 23 15 9E 9C [20:54:27]CommunicateWithHost err = 0 [20:54:27]CheckOFDResponse [20:54:27]1017 (14) - 77093643461234 [20:54:27]1041 (16) - 0000000000874718 [20:54:27]1040 (4) - 164386 [20:54:27]1012 (4) - 12.07.2024 14:32 [20:54:27]1206 (1) - 0 [20:54:27]OFD Sender: Remove packet 164386 [20:54:27]ProducePacketName [20:54:27]name=ofd_packets/00164386 [20:54:27]NVStorageDeleteData [20:54:27]Write to MH i2c: 01 00 00 2E 0D 3B [20:54:27]Write i2c OK [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: 01 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: 01 07 00 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 F8 0C 46 [20:54:27]RasterBufferAndPrint [20:54:27]line [20:54:27]line [20:54:27]line [20:54:27]line [20:54:27]line [20:54:27]written 0, free lines is 3328 [20:54:27]MH_Cut [20:54:27]Write to MH i2c: D1 01 00 35 0D 01 14 [20:54:27]Write i2c OK [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: D1 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: D1 01 00 [20:54:27]MH_I2C_Read... [20:54:27]Read from MH i2c: D1 01 00 35 0D 00 13 [20:54:27]Write to MH i2c: 01 00 00 36 0D 43 [20:54:27]Write i2c OK [20:54:27]MH_I2C_Read... [20:54:28]OFD Sender: No OFD packet to send [20:54:28]*** Cut start [20:54:28]*** Partial cut [20:54:28]*** CUTSNS_PIN = 1 [20:54:28]*** CUTSNS_PIN = 0 [20:54:28]*** Brake cut motor [20:54:29]Read from MH i2c: 01 [20:54:29]MH_I2C_Read... [20:54:29]*** Stop cut motor [20:54:29]*** Cut end [20:54:29]Read from MH i2c: 01 07 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: 01 07 00 36 0D 00 00 00 00 00 FF 0F 58 [20:54:29]process_action close_receipt done [20:54:29]requested_data is exist [20:54:29]produce_requested_data [20:54:29]requested_item fm.sn is exist - process it [20:54:29]wFMCommunicate request_size=4 [20:54:29]MH_SAM_APDU [20:54:29]CAPDU: 80 11 00 00 [20:54:29]Write to MH i2c: E2 08 00 37 0D 80 11 00 00 00 00 00 00 BE [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:29]Read from MH i2c: E2 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 17 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 17 00 37 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [20:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:54:29]wFMCommunicate OK [20:54:29]requested_item fd.num is exist - process it [20:54:29]SAM_PROTO_GetFieldsCounters [20:54:29]wFMCommunicate request_size=4 [20:54:29]MH_SAM_APDU [20:54:29]CAPDU: 80 13 00 00 [20:54:29]Write to MH i2c: E2 08 00 38 0D 80 13 00 00 00 00 00 00 C1 [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:29]Read from MH i2c: E2 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 62 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 62 00 38 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [20:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:29]wFMCommunicate OK [20:54:29]SAM_PROTO_GetFieldsCounters done [20:54:29]requested_item shift.num is exist - process it [20:54:29]requested_item shift.opened is exist - process it [20:54:29]req_shift_opened [20:54:29]FM_GetShiftState [20:54:29]SAM_PROTO_GetShiftState [20:54:29]wFMCommunicate request_size=4 [20:54:29]MH_SAM_APDU [20:54:29]CAPDU: 80 13 01 00 [20:54:29]Write to MH i2c: E2 08 00 39 0D 80 13 01 00 00 00 00 00 C3 [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:29]Read from MH i2c: E2 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 0E 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 0E 00 39 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0D [20:54:29]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:54:29]wFMCommunicate OK [20:54:29]SAM_PROTO_GetShiftState done [20:54:29]FM_GetShiftState done [20:54:29]req_shift_opened done [20:54:29]requested_item shift.open_date is exist - process it [20:54:29]req_shift_open_date [20:54:29]req_shift_open_date done [20:54:29]produce_requested_data done [20:54:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164386,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:54:29]process_action_free close_receipt [20:54:29]json_value_free [20:54:29]json_value_free done [20:54:29]process_json_proto returns [20:54:29]Send response to host [20:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164386,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:54:29]free response buf [20:54:29]execute_script done [20:54:29]execute_script returns [20:54:29]free content buf [20:54:29]Sock 7.Close socket [20:54:29]Sock 7.Thread stoped [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:10]accept exits with 9 [20:56:10]New connection [20:56:10]New thread 3067534692 created [20:56:10]Thread 3067391332 joined [20:56:10]Waiting for new connection... [20:56:10] Sock 9.Parse request [20:56:10]Sock 9.Check first char [20:56:10]Sock 9.First char is OK [20:56:10]request: POST /json_proto HTTP/1.0 [20:56:10]Method: POST [20:56:10]URL: /json_proto [20:56:10]Method is POST - this is cgi request [20:56:10]url: /json_proto [20:56:10]query_string will be loaded in cgi processing [20:56:10]execute_cgi json_proto POST (null) [20:56:10]execute_cgi path=json_proto method=POST [20:56:10]POST find Content-Length [20:56:10]Host: 172.17.56.4:8080 [20:56:10]Content-Length: 677 [20:56:10]Content-Type: application/json [20:56:10] [20:56:10]POST finish read [20:56:10]Found Content-Length = 677 [20:56:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.430, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:10]execute_script... [20:56: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)458472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.430, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:10]POST & json_proto [20:56:10]process_json_proto [20:56:10]json parsed OK: [20:56:10]protocol is kg_v1.0 [20:56:10]action value=close_receipt [20:56:10]process_action close_receipt [20:56:10]cmd_close_receipt [20:56:10]MH_GetDate [20:56:10]Write to MH i2c: F0 00 00 3A 0D 36 [20:56:10]Write i2c OK [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: F0 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: F0 09 00 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: F0 09 00 3A 0D 00 6A 98 91 66 C9 DC B2 64 F3 [20:56:10]GetLastDocTimeStamp 1720817666 [20:56:10]current date 1720817770 [20:56:10]FM_GetShiftState [20:56:10]SAM_PROTO_GetShiftState [20:56:10]wFMCommunicate request_size=4 [20:56:10]MH_SAM_APDU [20:56:10]CAPDU: 80 13 01 00 [20:56:10]Write to MH i2c: E2 08 00 3B 0D 80 13 01 00 00 00 00 00 C5 [20:56:10]Write i2c OK [20:56:10]MH_I2C_Read... [20:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:10]Read from MH i2c: E2 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: E2 0E 00 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: E2 0E 00 3B 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0F [20:56:10]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:56:10]wFMCommunicate OK [20:56:10]SAM_PROTO_GetShiftState done [20:56:10]FM_GetShiftState done [20:56:10]opened in 1720744654 [20:56:10]opened+sec_in_day 1720831054 [20:56:10]quantity*price = 62049 [20:56:10]sum+1 = 62050 [20:56:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 308 12.07.2024 20:56 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164387 ФПД: 19416352607098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205610&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164387&fm=19416352607098&tin=02508201610067®Number=0000000000090829&sum=62000 [20:56:11]StoreToDocumentArchive [20:56:11]shift 445 fd 164387 [20:56:11]save to /storage/0445/doc_00164387 [20:56:11]save last doc name /storage/0445/doc_00164387 to /storage/kkm_last_doc_name [20:56:11]save OK [20:56:11]Clear old archive folders... [20:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:11]tlvbuf is 015953B0 [20:56:11]SAM_PROTO_ClearQueue [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 09 00 00 [20:56:11]Write to MH i2c: E2 08 00 48 0D 80 09 00 00 00 00 00 00 C7 [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [20:56:11]RAPDU: 90 00 [20:56:11]wFMCommunicate OK [20:56:11]SAM_PROTO_ClearQueue done [20:56:11]KKMCreateOFDPacket [20:56:11]OFDProtocolAddRootSTLVToBuf [20:56:11]FM_MakeSignedData [20:56:11]FM_MakeSignedData [20:56:11]SAM_PROTO_SignData [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 0D 01 02 [20:56:11]Write to MH i2c: E2 08 00 49 0D 80 0D 01 02 00 00 00 00 CF [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 49 0D 00 90 00 CA [20:56:11]RAPDU: 90 00 [20:56:11]wFMCommunicate OK [20:56:11]wFMCommunicate request_size=255 [20:56:11]MH_SAM_APDU [20:56: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 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 6A 98 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 82 02 00 35 04 06 00 11 [20:56:11]Write to MH i2c: E2 02 01 4A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 6A 98 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 82 02 00 35 04 06 00 11 00 00 DE [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [20:56:11]RAPDU: 90 00 [20:56:11]wFMCommunicate OK [20:56:11]wFMCommunicate request_size=10 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 0D 02 02 05 A8 B8 CC CB 7A [20:56:11]Write to MH i2c: E2 0D 00 4B 0D 80 0D 02 02 05 00 A8 B8 CC CB 7A 00 00 4D [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [20:56:11]RAPDU: 90 00 [20:56:11]wFMCommunicate OK [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 0D 03 02 [20:56:11]Write to MH i2c: E2 08 00 4C 0D 80 0D 03 02 00 00 00 00 D4 [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 0B 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 0B 00 4C 0D 00 C9 22 4C F9 59 BB 7E 86 90 00 1D [20:56:11]RAPDU: C9 22 4C F9 59 BB 7E 86 90 00 [20:56:11]wFMCommunicate OK [20:56:11]SAM_PROTO_SignData done [20:56:11]FM_MakeSignedData done [20:56:11]CreateOFDProtocolMessage [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 11 00 00 [20:56:11]Write to MH i2c: E2 08 00 4D 0D 80 11 00 00 00 00 00 00 D4 [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 17 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 17 00 4D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2A [20:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:56:11]wFMCommunicate OK [20:56:11]CreateOFDProtocolMessage done [20:56:11]OFDSenderStorePacket 164387 [20:56:11]StoreOFDPacket docnum=164387 [20:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 15 BF 07 01 EF 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 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 6A 98 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 82 02 00 35 04 06 00 11 A8 B8 CC CB 7A C9 22 4C F9 59 BB 7E 86 [20:56:11]CheckFolder [20:56:11]dirname=/storage/ofd_packets [20:56:11]CheckFolder done [20:56:11]ProducePacketName [20:56:11]name=ofd_packets/00164387 [20:56:11]NVStorageSaveData ofd_packets/00164387 [20:56:11]File name is /storage/ofd_packets/00164387 [20:56:11]Write 301 bytes [20:56:11]NVStorageSaveData done [20:56:11]OFDSenderStorePacket done [20:56:11]KKMCreateOFDPacket done [20:56:11]NVStorageSaveData kkm_last_timestamp [20:56:11]File name is /storage/kkm_last_timestamp [20:56:11]Write 4 bytes [20:56:11]NVStorageSaveData done [20:56:11]OFD Sender: Processing packet 164387 [packets to send 104, broken 103] [20:56:11]ProducePacketName [20:56:11]name=ofd_packets/00164387 [20:56:11]OFD Sender: To server: pG, [20:56:11]CommunicateWithHost lk.salyk.kg:30040 [20:56:11]ConnectInit lk.salyk.kg [20:56:11]ExternCall_PrintAddStr [20:56:11]wPrintStart [20:56:11]Write to MH i2c: 01 00 00 4E 0D 5B [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: 01 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: 01 07 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: 01 07 00 4E 0D 00 00 00 00 00 FF 0F 70 [20:56:11]RasterBufferAndPrint [20:56:11]line Счет N : (1)458472 [20:56:11]line ИНН: 02508201610067 [20:56:11]line Контрольно-Кассовый Чек [20:56:11]line ПРОДАЖА [20:56:11]line ТРК (МРК, ГНК) : 22 [20:56:11]line Товар: 2710124130 [20:56:11]line Аи-92-К-5 [20:56:11]line 9.430 * 65.80 [20:56:11]line = 620.49 [20:56:11]line НДС 12% НСП 1% [20:56:11]line > о реализуемом товаре [20:56:11]line ОКРУГЛЕНИЕ: -0.49 [20:56:11]line ИТОГО: 620.00 [20:56:11]line Внесено: 620.00 [20:56:11]line СДАЧА: 0.00 [20:56:11]line НСП 1% : 5.49 [20:56:11]line НДС 12% : 65.89 [20:56:11]line Наличными: 620.00 [20:56:11]line Безнал.: 0.00 [20:56:11]line Место: АЗС № 72 "Партнер Нефть" [20:56:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:56:11]line СНО: Общий режим [20:56:11]line Чек 308 12.07.2024 20:56 [20:56:11]line Смена: 445 ФФД: 1.0 [20:56:11]line ЗНМ: 0300000160 [20:56:11]line РНМ: 0000000000090829 [20:56:11]line Версия ККМ: 001 [20:56:11]line ФМ: 0000000000874718 [20:56:11]line ФД: 164387 [20:56:11]line ФПД: 19416352607098 [20:56:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205610&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164387&fm=19416352607098&tin=02508201610067®Number=0000000000090829&sum=62000 [20:56:12]Connected sock=11 [20:56:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 15 BF 07 01 EF 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 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 6A 98 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 82 02 00 35 04 06 00 11 A8 B8 CC CB 7A C9 22 4C F9 59 BB 7E 86 [20:56:12]written 0, free lines is 4095 [20:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2A B5 47 00 60 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 34 37 31 38 10 04 04 00 23 82 02 00 F4 03 04 00 FD 3E 91 66 B6 04 01 00 00 A8 C9 41 57 60 0D 2B E4 [20:56:12]CommunicateWithHost err = 0 [20:56:12]CheckOFDResponse [20:56:12]1017 (14) - 77093643461234 [20:56:12]1041 (16) - 0000000000874718 [20:56:12]1040 (4) - 164387 [20:56:12]1012 (4) - 12.07.2024 14:34 [20:56:12]1206 (1) - 0 [20:56:12]OFD Sender: Remove packet 164387 [20:56:12]ProducePacketName [20:56:12]name=ofd_packets/00164387 [20:56:12]NVStorageDeleteData [20:56:12]Write to MH i2c: 01 00 00 78 0D 85 [20:56:12]Write i2c OK [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: 01 [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: 01 07 00 [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: 01 07 00 78 0D 00 00 00 00 00 02 0D 9B [20:56:12]RasterBufferAndPrint [20:56:12]line [20:56:12]line [20:56:12]line [20:56:12]line [20:56:12]line [20:56:12]written 0, free lines is 3336 [20:56:12]MH_Cut [20:56:12]Write to MH i2c: D1 01 00 7F 0D 01 5E [20:56:12]Write i2c OK [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: D1 [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: D1 01 00 [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: D1 01 00 7F 0D 00 5D [20:56:12]Write to MH i2c: 01 00 00 80 0D 8D [20:56:12]Write i2c OK [20:56:12]MH_I2C_Read... [20:56:12]OFD Sender: No OFD packet to send [20:56:13]*** Cut start [20:56:13]*** Partial cut [20:56:13]*** CUTSNS_PIN = 1 [20:56:13]*** CUTSNS_PIN = 0 [20:56:13]*** Brake cut motor [20:56:13]Read from MH i2c: 01 [20:56:13]MH_I2C_Read... [20:56:13]*** Stop cut motor [20:56:13]*** Cut end [20:56:13]Read from MH i2c: 01 07 00 [20:56:13]MH_I2C_Read... [20:56:13]Read from MH i2c: 01 07 00 80 0D 00 00 00 00 00 FF 0F A2 [20:56:13]process_action close_receipt done [20:56:13]requested_data is exist [20:56:13]produce_requested_data [20:56:13]requested_item fm.sn is exist - process it [20:56:13]wFMCommunicate request_size=4 [20:56:13]MH_SAM_APDU [20:56:13]CAPDU: 80 11 00 00 [20:56:13]Write to MH i2c: E2 08 00 81 0D 80 11 00 00 00 00 00 00 08 [20:56:13]Write i2c OK [20:56:13]MH_I2C_Read... [20:56:13]Read from MH i2c: E2 [20:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:13]MH_I2C_Read... [20:56:13]Read from MH i2c: E2 17 00 [20:56:13]MH_I2C_Read... [20:56:13]Read from MH i2c: E2 17 00 81 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [20:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:56:13]wFMCommunicate OK [20:56:13]requested_item fd.num is exist - process it [20:56:13]SAM_PROTO_GetFieldsCounters [20:56:13]wFMCommunicate request_size=4 [20:56:13]MH_SAM_APDU [20:56:13]CAPDU: 80 13 00 00 [20:56:13]Write to MH i2c: E2 08 00 82 0D 80 13 00 00 00 00 00 00 0B [20:56:13]Write i2c OK [20:56:13]MH_I2C_Read... [20:56:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:13]Read from MH i2c: E2 [20:56:13]MH_I2C_Read... [20:56:13]Read from MH i2c: E2 62 00 [20:56:13]MH_I2C_Read... [20:56:13]Read from MH i2c: E2 62 00 82 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [20:56: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:14]wFMCommunicate OK [20:56:14]SAM_PROTO_GetFieldsCounters done [20:56:14]requested_item shift.num is exist - process it [20:56:14]requested_item shift.opened is exist - process it [20:56:14]req_shift_opened [20:56:14]FM_GetShiftState [20:56:14]SAM_PROTO_GetShiftState [20:56:14]wFMCommunicate request_size=4 [20:56:14]MH_SAM_APDU [20:56:14]CAPDU: 80 13 01 00 [20:56:14]Write to MH i2c: E2 08 00 83 0D 80 13 01 00 00 00 00 00 0D [20:56:14]Write i2c OK [20:56:14]MH_I2C_Read... [20:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:14]Read from MH i2c: E2 [20:56:14]MH_I2C_Read... [20:56:14]Read from MH i2c: E2 0E 00 [20:56:14]MH_I2C_Read... [20:56:14]Read from MH i2c: E2 0E 00 83 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 57 [20:56:14]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:56:14]wFMCommunicate OK [20:56:14]SAM_PROTO_GetShiftState done [20:56:14]FM_GetShiftState done [20:56:14]req_shift_opened done [20:56:14]requested_item shift.open_date is exist - process it [20:56:14]req_shift_open_date [20:56:14]req_shift_open_date done [20:56:14]produce_requested_data done [20:56:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164387,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:56:14]process_action_free close_receipt [20:56:14]json_value_free [20:56:14]json_value_free done [20:56:14]process_json_proto returns [20:56:14]Send response to host [20:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164387,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:56:14]free response buf [20:56:14]execute_script done [20:56:14]execute_script returns [20:56:14]free content buf [20:56:14]Sock 9.Close socket [20:56:14]Sock 9.Thread stoped [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:33]accept exits with 7 [20:58:33]New connection [20:58:33]New thread 3067391332 created [20:58:33]Thread 3067534692 joined [20:58:33]Waiting for new connection... [20:58:33] Sock 7.Parse request [20:58:33]Sock 7.Check first char [20:58:33]Sock 7.First char is OK [20:58:33]request: POST /json_proto HTTP/1.0 [20:58:33]Method: POST [20:58:33]URL: /json_proto [20:58:33]Method is POST - this is cgi request [20:58:33]url: /json_proto [20:58:33]query_string will be loaded in cgi processing [20:58:33]execute_cgi json_proto POST (null) [20:58:33]execute_cgi path=json_proto method=POST [20:58:33]POST find Content-Length [20:58:33]Host: 172.17.56.4:8080 [20:58:33]Content-Length: 1178 [20:58:33]Content-Type: application/json [20:58:33] [20:58:33]POST finish read [20:58:33]Found Content-Length = 1178 [20:58:33]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458473\u000A12.07.2024 20:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114479\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:33]execute_script... [20:58:33]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458473\u000A12.07.2024 20:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114479\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:33]POST & json_proto [20:58:33]process_json_proto [20:58:33]json parsed OK: [20:58:33]protocol is kg_v1.0 [20:58:33]action value=print_text [20:58:33]process_action print_text [20:58:33]cmd_print_text [20:58:33]ExternCall_PrintAddStr [20:58:33]wPrintStart [20:58:33]Write to MH i2c: 01 00 00 84 0D 91 [20:58:33]Write i2c OK [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: 01 [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: 01 07 00 [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: 01 07 00 84 0D 00 00 00 00 00 FF 0F A6 [20:58:33]RasterBufferAndPrint [20:58:33]line *****ТОВАРНЫЙ ЧЕК***** [20:58:33]line АЗС 72 [20:58:33]line Партнер нефть [20:58:33]line 02508201610067 [20:58:33]line Кассир : Садыков Н. [20:58:33]line Счет N : (1)458473 [20:58:33]line 12.07.2024 20:24 [20:58:33]line ПРОДАЖА [20:58:33]line ТРК (МРК, ГНК): 22 [20:58:33]line Вид ГСМ : 2710124130 [20:58:33]line Аи-92-К-5 [20:58:33]line 10.000 x 65.80 [20:58:33]line ИТОГ: 658.00 [20:58:33]line Тип оплаты: Талоны: Партнер нефть [20:58:33]line 4114479 [20:58:33]line ______________________ [20:58:33]line (подпись) [20:58:33]written 0, free lines is 4095 [20:58:33]Write to MH i2c: 01 00 00 98 0D A5 [20:58:33]Write i2c OK [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: 01 [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: 01 07 00 [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: 01 07 00 98 0D 00 00 00 00 00 0F 0E C9 [20:58:33]RasterBufferAndPrint [20:58:33]line [20:58:33]line [20:58:33]line [20:58:33]line [20:58:33]line [20:58:33]written 0, free lines is 3601 [20:58:33]MH_Cut [20:58:33]Write to MH i2c: D1 01 00 9F 0D 01 7E [20:58:33]Write i2c OK [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: D1 [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: D1 01 00 [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: D1 01 00 9F 0D 00 7D [20:58:33]Write to MH i2c: 01 00 00 A0 0D AD [20:58:33]Write i2c OK [20:58:33]MH_I2C_Read... [20:58:33]*** Cut start [20:58:33]*** Partial cut [20:58:33]*** CUTSNS_PIN = 1 [20:58:34]*** CUTSNS_PIN = 0 [20:58:34]*** Brake cut motor [20:58:34]Read from MH i2c: 01 [20:58:34]MH_I2C_Read... [20:58:34]*** Stop cut motor [20:58:34]*** Cut end [20:58:34]Read from MH i2c: 01 07 00 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: 01 07 00 A0 0D 00 00 00 00 00 FF 0F C2 [20:58:34]process_action print_text done [20:58:34]requested_data is exist [20:58:34]produce_requested_data [20:58:34]requested_item fm.sn is exist - process it [20:58:34]wFMCommunicate request_size=4 [20:58:34]MH_SAM_APDU [20:58:34]CAPDU: 80 11 00 00 [20:58:34]Write to MH i2c: E2 08 00 A1 0D 80 11 00 00 00 00 00 00 28 [20:58:34]Write i2c OK [20:58:34]MH_I2C_Read... [20:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:34]Read from MH i2c: E2 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: E2 17 00 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: E2 17 00 A1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [20:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:58:34]wFMCommunicate OK [20:58:34]requested_item fd.num is exist - process it [20:58:34]SAM_PROTO_GetFieldsCounters [20:58:34]wFMCommunicate request_size=4 [20:58:34]MH_SAM_APDU [20:58:34]CAPDU: 80 13 00 00 [20:58:34]Write to MH i2c: E2 08 00 A2 0D 80 13 00 00 00 00 00 00 2B [20:58:34]Write i2c OK [20:58:34]MH_I2C_Read... [20:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:34]Read from MH i2c: E2 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: E2 62 00 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: E2 62 00 A2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [20:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:34]wFMCommunicate OK [20:58:34]SAM_PROTO_GetFieldsCounters done [20:58:34]requested_item shift.num is exist - process it [20:58:34]requested_item shift.opened is exist - process it [20:58:34]req_shift_opened [20:58:34]FM_GetShiftState [20:58:34]SAM_PROTO_GetShiftState [20:58:34]wFMCommunicate request_size=4 [20:58:34]MH_SAM_APDU [20:58:34]CAPDU: 80 13 01 00 [20:58:34]Write to MH i2c: E2 08 00 A3 0D 80 13 01 00 00 00 00 00 2D [20:58:34]Write i2c OK [20:58:34]MH_I2C_Read... [20:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:34]Read from MH i2c: E2 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: E2 0E 00 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: E2 0E 00 A3 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 77 [20:58:34]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:58:34]wFMCommunicate OK [20:58:34]SAM_PROTO_GetShiftState done [20:58:34]FM_GetShiftState done [20:58:34]req_shift_opened done [20:58:34]requested_item shift.open_date is exist - process it [20:58:34]req_shift_open_date [20:58:34]req_shift_open_date done [20:58:34]produce_requested_data done [20:58:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164387,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:58:34]process_action_free print_text [20:58:34]json_value_free [20:58:34]json_value_free done [20:58:34]process_json_proto returns [20:58:34]Send response to host [20:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164387,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:58:34]free response buf [20:58:34]execute_script done [20:58:34]execute_script returns [20:58:34]free content buf [20:58:34]Sock 7.Close socket [20:58:34]Sock 7.Thread stoped [20:58:37]OFD Sender: No OFD packet to send [20:58:40]accept exits with 9 [20:58:40]New connection [20:58:40]New thread 3067534692 created [20:58:40]Thread 3067391332 joined [20:58:40]Waiting for new connection... [20:58:40] Sock 9.Parse request [20:58:40]Sock 9.Check first char [20:58:40]Sock 9.First char is OK [20:58:40]request: POST /json_proto HTTP/1.0 [20:58:40]Method: POST [20:58:40]URL: /json_proto [20:58:40]Method is POST - this is cgi request [20:58:40]url: /json_proto [20:58:40]query_string will be loaded in cgi processing [20:58:40]execute_cgi json_proto POST (null) [20:58:40]execute_cgi path=json_proto method=POST [20:58:40]POST find Content-Length [20:58:40]Host: 172.17.56.4:8080 [20:58:40]Content-Length: 677 [20:58:40]Content-Type: application/json [20:58:40] [20:58:40]POST finish read [20:58:40]Found Content-Length = 677 [20:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:58:40]execute_script... [20:58: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)458474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:58:40]POST & json_proto [20:58:40]process_json_proto [20:58:40]json parsed OK: [20:58:40]protocol is kg_v1.0 [20:58:40]action value=close_receipt [20:58:40]process_action close_receipt [20:58:40]cmd_close_receipt [20:58:40]MH_GetDate [20:58:40]Write to MH i2c: F0 00 00 A4 0D A0 [20:58:40]Write i2c OK [20:58:40]MH_I2C_Read... [20:58:40]Read from MH i2c: F0 [20:58:40]MH_I2C_Read... [20:58:40]Read from MH i2c: F0 09 00 [20:58:40]MH_I2C_Read... [20:58:40]Read from MH i2c: F0 09 00 A4 0D 00 01 99 91 66 C9 DC B2 64 F5 [20:58:40]GetLastDocTimeStamp 1720817770 [20:58:40]current date 1720817921 [20:58:40]FM_GetShiftState [20:58:40]SAM_PROTO_GetShiftState [20:58:40]wFMCommunicate request_size=4 [20:58:40]MH_SAM_APDU [20:58:40]CAPDU: 80 13 01 00 [20:58:40]Write to MH i2c: E2 08 00 A5 0D 80 13 01 00 00 00 00 00 2F [20:58:40]Write i2c OK [20:58:40]MH_I2C_Read... [20:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:40]Read from MH i2c: E2 [20:58:40]MH_I2C_Read... [20:58:40]Read from MH i2c: E2 0E 00 [20:58:40]MH_I2C_Read... [20:58:40]Read from MH i2c: E2 0E 00 A5 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 79 [20:58:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:58:40]wFMCommunicate OK [20:58:40]SAM_PROTO_GetShiftState done [20:58:40]FM_GetShiftState done [20:58:40]opened in 1720744654 [20:58:40]opened+sec_in_day 1720831054 [20:58:40]quantity*price = 20003 [20:58:40]sum+1 = 20004 [20:58:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 309 12.07.2024 20:58 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164388 ФПД: 201429532449221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205841&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164388&fm=201429532449221&tin=02508201610067®Number=0000000000090829&sum=20000 [20:58:41]StoreToDocumentArchive [20:58:41]shift 445 fd 164388 [20:58:41]save to /storage/0445/doc_00164388 [20:58:41]save last doc name /storage/0445/doc_00164388 to /storage/kkm_last_doc_name [20:58:41]save OK [20:58:41]Clear old archive folders... [20:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:41]tlvbuf is 015F67D0 [20:58:41]SAM_PROTO_ClearQueue [20:58:41]wFMCommunicate request_size=4 [20:58:41]MH_SAM_APDU [20:58:41]CAPDU: 80 09 00 00 [20:58:41]Write to MH i2c: E2 08 00 B2 0D 80 09 00 00 00 00 00 00 31 [20:58:41]Write i2c OK [20:58:41]MH_I2C_Read... [20:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:42]Read from MH i2c: E2 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 03 00 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 03 00 B2 0D 00 90 00 33 [20:58:42]RAPDU: 90 00 [20:58:42]wFMCommunicate OK [20:58:42]SAM_PROTO_ClearQueue done [20:58:42]KKMCreateOFDPacket [20:58:42]OFDProtocolAddRootSTLVToBuf [20:58:42]FM_MakeSignedData [20:58:42]FM_MakeSignedData [20:58:42]SAM_PROTO_SignData [20:58:42]wFMCommunicate request_size=4 [20:58:42]MH_SAM_APDU [20:58:42]CAPDU: 80 0D 01 02 [20:58:42]Write to MH i2c: E2 08 00 B3 0D 80 0D 01 02 00 00 00 00 39 [20:58:42]Write i2c OK [20:58:42]MH_I2C_Read... [20:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:42]Read from MH i2c: E2 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 03 00 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 03 00 B3 0D 00 90 00 34 [20:58:42]RAPDU: 90 00 [20:58:42]wFMCommunicate OK [20:58:42]wFMCommunicate request_size=255 [20:58:42]MH_SAM_APDU [20:58: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 35 01 00 00 F4 03 04 00 01 99 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 82 02 00 35 04 06 00 B7 [20:58:42]Write to MH i2c: E2 02 01 B4 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 35 01 00 00 F4 03 04 00 01 99 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 82 02 00 35 04 06 00 B7 00 00 37 [20:58:42]Write i2c OK [20:58:42]MH_I2C_Read... [20:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:42]Read from MH i2c: E2 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 03 00 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 03 00 B4 0D 00 90 00 35 [20:58:42]RAPDU: 90 00 [20:58:42]wFMCommunicate OK [20:58:42]wFMCommunicate request_size=10 [20:58:42]MH_SAM_APDU [20:58:42]CAPDU: 80 0D 02 02 05 32 F7 BA 99 C5 [20:58:42]Write to MH i2c: E2 0D 00 B5 0D 80 0D 02 02 05 00 32 F7 BA 99 C5 00 00 87 [20:58:42]Write i2c OK [20:58:42]MH_I2C_Read... [20:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:42]Read from MH i2c: E2 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 03 00 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 03 00 B5 0D 00 90 00 36 [20:58:42]RAPDU: 90 00 [20:58:42]wFMCommunicate OK [20:58:42]wFMCommunicate request_size=4 [20:58:42]MH_SAM_APDU [20:58:42]CAPDU: 80 0D 03 02 [20:58:42]Write to MH i2c: E2 08 00 B6 0D 80 0D 03 02 00 00 00 00 3E [20:58:42]Write i2c OK [20:58:42]MH_I2C_Read... [20:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:42]Read from MH i2c: E2 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 0B 00 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 0B 00 B6 0D 00 0D A8 E0 44 1C B9 42 B9 90 00 E8 [20:58:42]RAPDU: 0D A8 E0 44 1C B9 42 B9 90 00 [20:58:42]wFMCommunicate OK [20:58:42]SAM_PROTO_SignData done [20:58:42]FM_MakeSignedData done [20:58:42]CreateOFDProtocolMessage [20:58:42]wFMCommunicate request_size=4 [20:58:42]MH_SAM_APDU [20:58:42]CAPDU: 80 11 00 00 [20:58:42]Write to MH i2c: E2 08 00 B7 0D 80 11 00 00 00 00 00 00 3E [20:58:42]Write i2c OK [20:58:42]MH_I2C_Read... [20:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:42]Read from MH i2c: E2 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 17 00 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: E2 17 00 B7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [20:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:58:42]wFMCommunicate OK [20:58:42]CreateOFDProtocolMessage done [20:58:42]OFDSenderStorePacket 164388 [20:58:42]StoreOFDPacket docnum=164388 [20:58:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 C7 07 01 36 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 35 01 00 00 F4 03 04 00 01 99 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 82 02 00 35 04 06 00 B7 32 F7 BA 99 C5 0D A8 E0 44 1C B9 42 B9 [20:58:42]CheckFolder [20:58:42]dirname=/storage/ofd_packets [20:58:42]CheckFolder done [20:58:42]ProducePacketName [20:58:42]name=ofd_packets/00164388 [20:58:42]NVStorageSaveData ofd_packets/00164388 [20:58:42]File name is /storage/ofd_packets/00164388 [20:58:42]Write 301 bytes [20:58:42]NVStorageSaveData done [20:58:42]OFDSenderStorePacket done [20:58:42]KKMCreateOFDPacket done [20:58:42]NVStorageSaveData kkm_last_timestamp [20:58:42]File name is /storage/kkm_last_timestamp [20:58:42]Write 4 bytes [20:58:42]NVStorageSaveData done [20:58:42]ExternCall_PrintAddStr [20:58:42]wPrintStart [20:58:42]Write to MH i2c: 01 00 00 B8 0D C5 [20:58:42]Write i2c OK [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: 01 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: 01 07 00 [20:58:42]MH_I2C_Read... [20:58:42]Read from MH i2c: 01 07 00 B8 0D 00 00 00 00 00 FF 0F DA [20:58:42]RasterBufferAndPrint [20:58:42]line Счет N : (1)458474 [20:58:42]line ИНН: 02508201610067 [20:58:42]line Контрольно-Кассовый Чек [20:58:42]line ПРОДАЖА [20:58:42]line ТРК (МРК, ГНК) : 12 [20:58:42]line Товар: 2710124130 [20:58:42]line Аи-92-К-5 [20:58:42]line 3.040 * 65.80 [20:58:42]line = 200.03 [20:58:42]line НДС 12% НСП 1% [20:58:42]line > о реализуемом товаре [20:58:42]line ОКРУГЛЕНИЕ: -0.03 [20:58:42]line ИТОГО: 200.00 [20:58:42]line Внесено: 200.00 [20:58:42]line СДАЧА: 0.00 [20:58:42]line НСП 1% : 1.77 [20:58:42]line НДС 12% : 21.24 [20:58:42]line Наличными: 200.00 [20:58:42]line Безнал.: 0.00 [20:58:42]line Место: АЗС № 72 "Партнер Нефть" [20:58:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:58:42]line СНО: Общий режим [20:58:42]line Чек 309 12.07.2024 20:58 [20:58:42]line Смена: 445 ФФД: 1.0 [20:58:42]line ЗНМ: 0300000160 [20:58:42]line РНМ: 0000000000090829 [20:58:42]line Версия ККМ: 001 [20:58:42]line ФМ: 0000000000874718 [20:58:42]line ФД: 164388 [20:58:42]line ФПД: 201429532449221 [20:58:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205841&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164388&fm=201429532449221&tin=02508201610067®Number=0000000000090829&sum=20000 [20:58:42]OFD Sender: Processing packet 164388 [packets to send 104, broken 103] [20:58:42]ProducePacketName [20:58:42]name=ofd_packets/00164388 [20:58:42]OFD Sender: To server: pG, [20:58:42]CommunicateWithHost lk.salyk.kg:30040 [20:58:42]ConnectInit lk.salyk.kg [20:58:42]written 0, free lines is 4095 [20:58:42]Connected sock=10 [20:58:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 C7 07 01 36 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 35 01 00 00 F4 03 04 00 01 99 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 82 02 00 35 04 06 00 B7 32 F7 BA 99 C5 0D A8 E0 44 1C B9 42 B9 [20:58:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 49 6D 47 00 DC D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 82 02 00 F4 03 04 00 94 3F 91 66 B6 04 01 00 00 93 AC 80 A5 ED DE 2C 2F [20:58:43]CommunicateWithHost err = 0 [20:58:43]CheckOFDResponse [20:58:43]1017 (14) - 77093643461234 [20:58:43]1041 (16) - 0000000000874718 [20:58:43]1040 (4) - 164388 [20:58:43]1012 (4) - 12.07.2024 14:37 [20:58:43]1206 (1) - 0 [20:58:43]OFD Sender: Remove packet 164388 [20:58:43]ProducePacketName [20:58:43]name=ofd_packets/00164388 [20:58:43]NVStorageDeleteData [20:58:43]Write to MH i2c: 01 00 00 E2 0D EF [20:58:43]Write i2c OK [20:58:43]MH_I2C_Read... [20:58:43]Read from MH i2c: 01 [20:58:43]MH_I2C_Read... [20:58:43]Read from MH i2c: 01 07 00 [20:58:43]MH_I2C_Read... [20:58:43]Read from MH i2c: 01 07 00 E2 0D 00 00 00 00 00 02 0D 05 [20:58:43]RasterBufferAndPrint [20:58:43]line [20:58:43]line [20:58:43]line [20:58:43]line [20:58:43]line [20:58:43]written 0, free lines is 3336 [20:58:43]MH_Cut [20:58:43]Write to MH i2c: D1 01 00 E9 0D 01 C8 [20:58:43]Write i2c OK [20:58:43]MH_I2C_Read... [20:58:43]Read from MH i2c: D1 [20:58:43]MH_I2C_Read... [20:58:43]Read from MH i2c: D1 01 00 [20:58:43]MH_I2C_Read... [20:58:43]Read from MH i2c: D1 01 00 E9 0D 00 C7 [20:58:43]Write to MH i2c: 01 00 00 EA 0D F7 [20:58:43]Write i2c OK [20:58:43]MH_I2C_Read... [20:58:43]OFD Sender: No OFD packet to send [20:58:43]*** Cut start [20:58:43]*** Partial cut [20:58:43]*** CUTSNS_PIN = 1 [20:58:44]*** CUTSNS_PIN = 0 [20:58:44]*** Brake cut motor [20:58:44]Read from MH i2c: 01 [20:58:44]MH_I2C_Read... [20:58:44]*** Stop cut motor [20:58:44]*** Cut end [20:58:44]Read from MH i2c: 01 07 00 [20:58:44]MH_I2C_Read... [20:58:44]Read from MH i2c: 01 07 00 EA 0D 00 00 00 00 00 FF 0F 0C [20:58:44]process_action close_receipt done [20:58:44]requested_data is exist [20:58:44]produce_requested_data [20:58:44]requested_item fm.sn is exist - process it [20:58:44]wFMCommunicate request_size=4 [20:58:44]MH_SAM_APDU [20:58:44]CAPDU: 80 11 00 00 [20:58:44]Write to MH i2c: E2 08 00 EB 0D 80 11 00 00 00 00 00 00 72 [20:58:44]Write i2c OK [20:58:44]MH_I2C_Read... [20:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:44]Read from MH i2c: E2 [20:58:44]MH_I2C_Read... [20:58:44]Read from MH i2c: E2 17 00 [20:58:44]MH_I2C_Read... [20:58:44]Read from MH i2c: E2 17 00 EB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [20:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:58:44]wFMCommunicate OK [20:58:44]requested_item fd.num is exist - process it [20:58:44]SAM_PROTO_GetFieldsCounters [20:58:44]wFMCommunicate request_size=4 [20:58:44]MH_SAM_APDU [20:58:44]CAPDU: 80 13 00 00 [20:58:44]Write to MH i2c: E2 08 00 EC 0D 80 13 00 00 00 00 00 00 75 [20:58:44]Write i2c OK [20:58:44]MH_I2C_Read... [20:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:44]Read from MH i2c: E2 [20:58:44]MH_I2C_Read... [20:58:44]Read from MH i2c: E2 62 00 [20:58:44]MH_I2C_Read... [20:58:44]Read from MH i2c: E2 62 00 EC 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [20:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:44]wFMCommunicate OK [20:58:44]SAM_PROTO_GetFieldsCounters done [20:58:44]requested_item shift.num is exist - process it [20:58:44]requested_item shift.opened is exist - process it [20:58:44]req_shift_opened [20:58:44]FM_GetShiftState [20:58:44]SAM_PROTO_GetShiftState [20:58:44]wFMCommunicate request_size=4 [20:58:44]MH_SAM_APDU [20:58:44]CAPDU: 80 13 01 00 [20:58:44]Write to MH i2c: E2 08 00 ED 0D 80 13 01 00 00 00 00 00 77 [20:58:44]Write i2c OK [20:58:44]MH_I2C_Read... [20:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:44]Read from MH i2c: E2 [20:58:44]MH_I2C_Read... [20:58:44]Read from MH i2c: E2 0E 00 [20:58:44]MH_I2C_Read... [20:58:44]Read from MH i2c: E2 0E 00 ED 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C1 [20:58:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:58:44]wFMCommunicate OK [20:58:44]SAM_PROTO_GetShiftState done [20:58:44]FM_GetShiftState done [20:58:44]req_shift_opened done [20:58:44]requested_item shift.open_date is exist - process it [20:58:44]req_shift_open_date [20:58:44]req_shift_open_date done [20:58:44]produce_requested_data done [20:58:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164388,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:58:44]process_action_free close_receipt [20:58:44]json_value_free [20:58:44]json_value_free done [20:58:44]process_json_proto returns [20:58:44]Send response to host [20:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164388,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:58:44]free response buf [20:58:44]execute_script done [20:58:44]execute_script returns [20:58:44]free content buf [20:58:44]Sock 9.Close socket [20:58:44]Sock 9.Thread stoped [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:11]accept exits with 7 [20:59:11]New connection [20:59:11]New thread 3067391332 created [20:59:11]Thread 3067534692 joined [20:59:11]Waiting for new connection... [20:59:11] Sock 7.Parse request [20:59:11]Sock 7.Check first char [20:59:11]Sock 7.First char is OK [20:59:11]request: POST /json_proto HTTP/1.0 [20:59:11]Method: POST [20:59:11]URL: /json_proto [20:59:11]Method is POST - this is cgi request [20:59:11]url: /json_proto [20:59:11]query_string will be loaded in cgi processing [20:59:11]execute_cgi json_proto POST (null) [20:59:11]execute_cgi path=json_proto method=POST [20:59:11]POST find Content-Length [20:59:11]Host: 172.17.56.4:8080 [20:59:11]Content-Length: 677 [20:59:11]Content-Type: application/json [20:59:11] [20:59:11]POST finish read [20:59:11]Found Content-Length = 677 [20:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:11]execute_script... [20:59: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)458475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:11]POST & json_proto [20:59:11]process_json_proto [20:59:11]json parsed OK: [20:59:11]protocol is kg_v1.0 [20:59:11]action value=close_receipt [20:59:11]process_action close_receipt [20:59:11]cmd_close_receipt [20:59:11]MH_GetDate [20:59:11]Write to MH i2c: F0 00 00 EE 0D EA [20:59:11]Write i2c OK [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: F0 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: F0 09 00 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: F0 09 00 EE 0D 00 1F 99 91 66 C9 DC B2 64 5D [20:59:11]GetLastDocTimeStamp 1720817921 [20:59:11]current date 1720817951 [20:59:11]FM_GetShiftState [20:59:11]SAM_PROTO_GetShiftState [20:59:11]wFMCommunicate request_size=4 [20:59:11]MH_SAM_APDU [20:59:11]CAPDU: 80 13 01 00 [20:59:11]Write to MH i2c: E2 08 00 EF 0D 80 13 01 00 00 00 00 00 79 [20:59:11]Write i2c OK [20:59:11]MH_I2C_Read... [20:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:11]Read from MH i2c: E2 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 0E 00 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 0E 00 EF 0D 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C3 [20:59:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:59:11]wFMCommunicate OK [20:59:11]SAM_PROTO_GetShiftState done [20:59:11]FM_GetShiftState done [20:59:11]opened in 1720744654 [20:59:11]opened+sec_in_day 1720831054 [20:59:11]quantity*price = 30004 [20:59:11]sum+1 = 30006 [20:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 310 12.07.2024 20:59 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164389 ФПД: 216164913419135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164389&fm=216164913419135&tin=02508201610067®Number=0000000000090829&sum=30000 [20:59:12]StoreToDocumentArchive [20:59:12]shift 445 fd 164389 [20:59:12]save to /storage/0445/doc_00164389 [20:59:12]save last doc name /storage/0445/doc_00164389 to /storage/kkm_last_doc_name [20:59:12]save OK [20:59:12]Clear old archive folders... [20:59:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:12]tlvbuf is B6F36440 [20:59:12]SAM_PROTO_ClearQueue [20:59:12]wFMCommunicate request_size=4 [20:59:12]MH_SAM_APDU [20:59:12]CAPDU: 80 09 00 00 [20:59:12]Write to MH i2c: E2 08 00 FC 0D 80 09 00 00 00 00 00 00 7B [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 FC 0D 00 90 00 7D [20:59:12]RAPDU: 90 00 [20:59:12]wFMCommunicate OK [20:59:12]SAM_PROTO_ClearQueue done [20:59:12]KKMCreateOFDPacket [20:59:12]OFDProtocolAddRootSTLVToBuf [20:59:12]FM_MakeSignedData [20:59:12]FM_MakeSignedData [20:59:12]SAM_PROTO_SignData [20:59:12]wFMCommunicate request_size=4 [20:59:12]MH_SAM_APDU [20:59:12]CAPDU: 80 0D 01 02 [20:59:12]Write to MH i2c: E2 08 00 FD 0D 80 0D 01 02 00 00 00 00 83 [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 FD 0D 00 90 00 7E [20:59:12]RAPDU: 90 00 [20:59:12]wFMCommunicate OK [20:59:12]wFMCommunicate request_size=255 [20:59:12]MH_SAM_APDU [20:59:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 1F 99 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 82 02 00 35 04 06 00 C4 [20:59:12]Write to MH i2c: E2 02 01 FE 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 1F 99 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 82 02 00 35 04 06 00 C4 00 00 CE [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 FE 0D 00 90 00 7F [20:59:12]RAPDU: 90 00 [20:59:12]wFMCommunicate OK [20:59:12]wFMCommunicate request_size=10 [20:59:12]MH_SAM_APDU [20:59:12]CAPDU: 80 0D 02 02 05 99 D0 E0 93 7F [20:59:12]Write to MH i2c: E2 0D 00 FF 0D 80 0D 02 02 05 00 99 D0 E0 93 7F 00 00 EB [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 03 00 FF 0D 00 90 00 80 [20:59:12]RAPDU: 90 00 [20:59:12]wFMCommunicate OK [20:59:12]wFMCommunicate request_size=4 [20:59:12]MH_SAM_APDU [20:59:12]CAPDU: 80 0D 03 02 [20:59:12]Write to MH i2c: E2 08 00 00 0E 80 0D 03 02 00 00 00 00 89 [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 0B 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 0B 00 00 0E 00 53 6D 9E 21 C4 DD 64 85 90 00 93 [20:59:12]RAPDU: 53 6D 9E 21 C4 DD 64 85 90 00 [20:59:12]wFMCommunicate OK [20:59:12]SAM_PROTO_SignData done [20:59:12]FM_MakeSignedData done [20:59:12]CreateOFDProtocolMessage [20:59:12]wFMCommunicate request_size=4 [20:59:12]MH_SAM_APDU [20:59:12]CAPDU: 80 11 00 00 [20:59:12]Write to MH i2c: E2 08 00 01 0E 80 11 00 00 00 00 00 00 89 [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:12]Read from MH i2c: E2 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 17 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: E2 17 00 01 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [20:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:59:12]wFMCommunicate OK [20:59:12]CreateOFDProtocolMessage done [20:59:12]OFDSenderStorePacket 164389 [20:59:12]StoreOFDPacket docnum=164389 [20:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 75 07 01 27 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 1F 99 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 82 02 00 35 04 06 00 C4 99 D0 E0 93 7F 53 6D 9E 21 C4 DD 64 85 [20:59:12]CheckFolder [20:59:12]dirname=/storage/ofd_packets [20:59:12]CheckFolder done [20:59:12]ProducePacketName [20:59:12]name=ofd_packets/00164389 [20:59:12]NVStorageSaveData ofd_packets/00164389 [20:59:12]File name is /storage/ofd_packets/00164389 [20:59:12]Write 301 bytes [20:59:12]NVStorageSaveData done [20:59:12]OFDSenderStorePacket done [20:59:12]KKMCreateOFDPacket done [20:59:12]NVStorageSaveData kkm_last_timestamp [20:59:12]File name is /storage/kkm_last_timestamp [20:59:12]Write 4 bytes [20:59:12]NVStorageSaveData done [20:59:12]ExternCall_PrintAddStr [20:59:12]wPrintStart [20:59:12]Write to MH i2c: 01 00 00 02 0E 10 [20:59:12]Write i2c OK [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: 01 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: 01 07 00 [20:59:12]MH_I2C_Read... [20:59:12]Read from MH i2c: 01 07 00 02 0E 00 00 00 00 00 FF 0F 25 [20:59:12]RasterBufferAndPrint [20:59:12]line Счет N : (1)458475 [20:59:12]line ИНН: 02508201610067 [20:59:12]line Контрольно-Кассовый Чек [20:59:12]line ПРОДАЖА [20:59:12]line ТРК (МРК, ГНК) : 12 [20:59:12]line Товар: 2710124130 [20:59:12]line Аи-92-К-5 [20:59:12]line 4.560 * 65.80 [20:59:12]line = 300.05 [20:59:12]line НДС 12% НСП 1% [20:59:12]line > о реализуемом товаре [20:59:12]line ОКРУГЛЕНИЕ: -0.05 [20:59:12]line ИТОГО: 300.00 [20:59:12]line Внесено: 300.00 [20:59:12]line СДАЧА: 0.00 [20:59:12]line НСП 1% : 2.65 [20:59:12]line НДС 12% : 31.86 [20:59:12]line Наличными: 300.00 [20:59:12]line Безнал.: 0.00 [20:59:12]line Место: АЗС № 72 "Партнер Нефть" [20:59:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:59:12]line СНО: Общий режим [20:59:12]line Чек 310 12.07.2024 20:59 [20:59:12]line Смена: 445 ФФД: 1.0 [20:59:12]line ЗНМ: 0300000160 [20:59:12]line РНМ: 0000000000090829 [20:59:12]line Версия ККМ: 001 [20:59:12]line ФМ: 0000000000874718 [20:59:12]line ФД: 164389 [20:59:12]line ФПД: 216164913419135 [20:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T205911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164389&fm=216164913419135&tin=02508201610067®Number=0000000000090829&sum=30000 [20:59:13]written 0, free lines is 4095 [20:59:13]OFD Sender: Processing packet 164389 [packets to send 104, broken 103] [20:59:13]ProducePacketName [20:59:13]name=ofd_packets/00164389 [20:59:13]OFD Sender: To server: pG, [20:59:13]CommunicateWithHost lk.salyk.kg:30040 [20:59:13]ConnectInit lk.salyk.kg [20:59:13]Connected sock=10 [20:59:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 75 07 01 27 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 1F 99 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 82 02 00 35 04 06 00 C4 99 D0 E0 93 7F 53 6D 9E 21 C4 DD 64 85 [20:59:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BA D6 47 00 D4 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 82 02 00 F4 03 04 00 B3 3F 91 66 B6 04 01 00 00 EC 40 41 3A EA 26 59 0A [20:59:13]CommunicateWithHost err = 0 [20:59:13]CheckOFDResponse [20:59:13]1017 (14) - 77093643461234 [20:59:13]1041 (16) - 0000000000874718 [20:59:13]1040 (4) - 164389 [20:59:13]1012 (4) - 12.07.2024 14:37 [20:59:13]1206 (1) - 0 [20:59:13]OFD Sender: Remove packet 164389 [20:59:13]ProducePacketName [20:59:13]name=ofd_packets/00164389 [20:59:13]NVStorageDeleteData [20:59:13]Write to MH i2c: 01 00 00 2C 0E 3A [20:59:13]Write i2c OK [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: 01 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: 01 07 00 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: 01 07 00 2C 0E 00 00 00 00 00 F2 0C 3F [20:59:13]RasterBufferAndPrint [20:59:13]line [20:59:13]line [20:59:13]line [20:59:13]line [20:59:13]line [20:59:13]written 0, free lines is 3320 [20:59:13]MH_Cut [20:59:13]Write to MH i2c: D1 01 00 33 0E 01 13 [20:59:13]Write i2c OK [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: D1 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: D1 01 00 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: D1 01 00 33 0E 00 12 [20:59:13]Write to MH i2c: 01 00 00 34 0E 42 [20:59:13]Write i2c OK [20:59:13]MH_I2C_Read... [20:59:13]OFD Sender: No OFD packet to send [20:59:14]*** Cut start [20:59:14]*** Partial cut [20:59:14]*** CUTSNS_PIN = 1 [20:59:14]*** CUTSNS_PIN = 0 [20:59:14]*** Brake cut motor [20:59:14]Read from MH i2c: 01 [20:59:14]MH_I2C_Read... [20:59:14]*** Stop cut motor [20:59:14]*** Cut end [20:59:14]Read from MH i2c: 01 07 00 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 FF 0F 57 [20:59:14]process_action close_receipt done [20:59:14]requested_data is exist [20:59:14]produce_requested_data [20:59:14]requested_item fm.sn is exist - process it [20:59:14]wFMCommunicate request_size=4 [20:59:14]MH_SAM_APDU [20:59:14]CAPDU: 80 11 00 00 [20:59:14]Write to MH i2c: E2 08 00 35 0E 80 11 00 00 00 00 00 00 BD [20:59:14]Write i2c OK [20:59:14]MH_I2C_Read... [20:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:14]Read from MH i2c: E2 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 17 00 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 17 00 35 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [20:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:59:14]wFMCommunicate OK [20:59:14]requested_item fd.num is exist - process it [20:59:14]SAM_PROTO_GetFieldsCounters [20:59:14]wFMCommunicate request_size=4 [20:59:14]MH_SAM_APDU [20:59:14]CAPDU: 80 13 00 00 [20:59:14]Write to MH i2c: E2 08 00 36 0E 80 13 00 00 00 00 00 00 C0 [20:59:14]Write i2c OK [20:59:14]MH_I2C_Read... [20:59:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:15]Read from MH i2c: E2 [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: E2 62 00 [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: E2 62 00 36 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [20:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:15]wFMCommunicate OK [20:59:15]SAM_PROTO_GetFieldsCounters done [20:59:15]requested_item shift.num is exist - process it [20:59:15]requested_item shift.opened is exist - process it [20:59:15]req_shift_opened [20:59:15]FM_GetShiftState [20:59:15]SAM_PROTO_GetShiftState [20:59:15]wFMCommunicate request_size=4 [20:59:15]MH_SAM_APDU [20:59:15]CAPDU: 80 13 01 00 [20:59:15]Write to MH i2c: E2 08 00 37 0E 80 13 01 00 00 00 00 00 C2 [20:59:15]Write i2c OK [20:59:15]MH_I2C_Read... [20:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:15]Read from MH i2c: E2 [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: E2 0E 00 [20:59:15]MH_I2C_Read... [20:59:15]Read from MH i2c: E2 0E 00 37 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0C [20:59:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [20:59:15]wFMCommunicate OK [20:59:15]SAM_PROTO_GetShiftState done [20:59:15]FM_GetShiftState done [20:59:15]req_shift_opened done [20:59:15]requested_item shift.open_date is exist - process it [20:59:15]req_shift_open_date [20:59:15]req_shift_open_date done [20:59:15]produce_requested_data done [20:59:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164389,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [20:59:15]process_action_free close_receipt [20:59:15]json_value_free [20:59:15]json_value_free done [20:59:15]process_json_proto returns [20:59:15]Send response to host [20:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164389,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [20:59:15]free response buf [20:59:15]execute_script done [20:59:15]execute_script returns [20:59:15]free content buf [20:59:15]Sock 7.Close socket [20:59:15]Sock 7.Thread stoped [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]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:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:34]accept exits with 9 [21:05:34]New connection [21:05:34]New thread 3067534692 created [21:05:34]Thread 3067391332 joined [21:05:34]Waiting for new connection... [21:05:34] Sock 9.Parse request [21:05:34]Sock 9.Check first char [21:05:34]Sock 9.First char is OK [21:05:34]request: POST /json_proto HTTP/1.0 [21:05:34]Method: POST [21:05:34]URL: /json_proto [21:05:34]Method is POST - this is cgi request [21:05:34]url: /json_proto [21:05:34]query_string will be loaded in cgi processing [21:05:34]execute_cgi json_proto POST (null) [21:05:34]execute_cgi path=json_proto method=POST [21:05:34]POST find Content-Length [21:05:34]Host: 172.17.56.4:8080 [21:05:34]Content-Length: 678 [21:05:34]Content-Type: application/json [21:05:34] [21:05:34]POST finish read [21:05:34]Found Content-Length = 678 [21:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [21:05:34]execute_script... [21:05: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)458476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [21:05:34]POST & json_proto [21:05:34]process_json_proto [21:05:34]json parsed OK: [21:05:34]protocol is kg_v1.0 [21:05:34]action value=close_receipt [21:05:34]process_action close_receipt [21:05:34]cmd_close_receipt [21:05:34]MH_GetDate [21:05:34]Write to MH i2c: F0 00 00 38 0E 35 [21:05:34]Write i2c OK [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: F0 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: F0 09 00 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: F0 09 00 38 0E 00 9F 9A 91 66 C9 DC B2 64 29 [21:05:34]GetLastDocTimeStamp 1720817951 [21:05:34]current date 1720818335 [21:05:34]FM_GetShiftState [21:05:34]SAM_PROTO_GetShiftState [21:05:34]wFMCommunicate request_size=4 [21:05:34]MH_SAM_APDU [21:05:34]CAPDU: 80 13 01 00 [21:05:34]Write to MH i2c: E2 08 00 39 0E 80 13 01 00 00 00 00 00 C4 [21:05:34]Write i2c OK [21:05:34]MH_I2C_Read... [21:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:34]Read from MH i2c: E2 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: E2 0E 00 [21:05:34]MH_I2C_Read... [21:05:34]Read from MH i2c: E2 0E 00 39 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0E [21:05:34]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:05:34]wFMCommunicate OK [21:05:34]SAM_PROTO_GetShiftState done [21:05:34]FM_GetShiftState done [21:05:34]opened in 1720744654 [21:05:34]opened+sec_in_day 1720831054 [21:05:34]quantity*price = 70011 [21:05:34]sum+1 = 70012 [21:05:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 311 12.07.2024 21:05 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164390 ФПД: 267372310187409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T210535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164390&fm=267372310187409&tin=02508201610067®Number=0000000000090829&sum=70000 [21:05:36]StoreToDocumentArchive [21:05:36]shift 445 fd 164390 [21:05:36]save to /storage/0445/doc_00164390 [21:05:36]save last doc name /storage/0445/doc_00164390 to /storage/kkm_last_doc_name [21:05:36]save OK [21:05:36]Clear old archive folders... [21:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:36]tlvbuf is 01588D20 [21:05:36]SAM_PROTO_ClearQueue [21:05:36]wFMCommunicate request_size=4 [21:05:36]MH_SAM_APDU [21:05:36]CAPDU: 80 09 00 00 [21:05:36]Write to MH i2c: E2 08 00 46 0E 80 09 00 00 00 00 00 00 C6 [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:36]Read from MH i2c: E2 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 03 00 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 03 00 46 0E 00 90 00 C8 [21:05:36]RAPDU: 90 00 [21:05:36]wFMCommunicate OK [21:05:36]SAM_PROTO_ClearQueue done [21:05:36]KKMCreateOFDPacket [21:05:36]OFDProtocolAddRootSTLVToBuf [21:05:36]FM_MakeSignedData [21:05:36]FM_MakeSignedData [21:05:36]SAM_PROTO_SignData [21:05:36]wFMCommunicate request_size=4 [21:05:36]MH_SAM_APDU [21:05:36]CAPDU: 80 0D 01 02 [21:05:36]Write to MH i2c: E2 08 00 47 0E 80 0D 01 02 00 00 00 00 CE [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:36]Read from MH i2c: E2 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 03 00 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [21:05:36]RAPDU: 90 00 [21:05:36]wFMCommunicate OK [21:05:36]wFMCommunicate request_size=255 [21:05:36]MH_SAM_APDU [21:05: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 9F 9A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 82 02 00 35 04 06 00 F3 [21:05:36]Write to MH i2c: E2 02 01 48 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 9F 9A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 82 02 00 35 04 06 00 F3 00 00 4E [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:36]Read from MH i2c: E2 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 03 00 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 03 00 48 0E 00 90 00 CA [21:05:36]RAPDU: 90 00 [21:05:36]wFMCommunicate OK [21:05:36]wFMCommunicate request_size=10 [21:05:36]MH_SAM_APDU [21:05:36]CAPDU: 80 0D 02 02 05 2C 77 92 4D 91 [21:05:36]Write to MH i2c: E2 0D 00 49 0E 80 0D 02 02 05 00 2C 77 92 4D 91 00 00 EE [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:36]Read from MH i2c: E2 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 03 00 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 03 00 49 0E 00 90 00 CB [21:05:36]RAPDU: 90 00 [21:05:36]wFMCommunicate OK [21:05:36]wFMCommunicate request_size=4 [21:05:36]MH_SAM_APDU [21:05:36]CAPDU: 80 0D 03 02 [21:05:36]Write to MH i2c: E2 08 00 4A 0E 80 0D 03 02 00 00 00 00 D3 [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:36]Read from MH i2c: E2 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 0B 00 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 0B 00 4A 0E 00 39 0A 53 79 1C B0 0A B9 90 00 72 [21:05:36]RAPDU: 39 0A 53 79 1C B0 0A B9 90 00 [21:05:36]wFMCommunicate OK [21:05:36]SAM_PROTO_SignData done [21:05:36]FM_MakeSignedData done [21:05:36]CreateOFDProtocolMessage [21:05:36]wFMCommunicate request_size=4 [21:05:36]MH_SAM_APDU [21:05:36]CAPDU: 80 11 00 00 [21:05:36]Write to MH i2c: E2 08 00 4B 0E 80 11 00 00 00 00 00 00 D3 [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:36]Read from MH i2c: E2 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 17 00 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: E2 17 00 4B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [21:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:05:36]wFMCommunicate OK [21:05:36]CreateOFDProtocolMessage done [21:05:36]OFDSenderStorePacket 164390 [21:05:36]StoreOFDPacket docnum=164390 [21:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 96 9A 07 01 95 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 9F 9A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 82 02 00 35 04 06 00 F3 2C 77 92 4D 91 39 0A 53 79 1C B0 0A B9 [21:05:36]CheckFolder [21:05:36]dirname=/storage/ofd_packets [21:05:36]CheckFolder done [21:05:36]ProducePacketName [21:05:36]name=ofd_packets/00164390 [21:05:36]NVStorageSaveData ofd_packets/00164390 [21:05:36]File name is /storage/ofd_packets/00164390 [21:05:36]Write 301 bytes [21:05:36]NVStorageSaveData done [21:05:36]OFDSenderStorePacket done [21:05:36]KKMCreateOFDPacket done [21:05:36]NVStorageSaveData kkm_last_timestamp [21:05:36]File name is /storage/kkm_last_timestamp [21:05:36]Write 4 bytes [21:05:36]NVStorageSaveData done [21:05:36]ExternCall_PrintAddStr [21:05:36]wPrintStart [21:05:36]Write to MH i2c: 01 00 00 4C 0E 5A [21:05:36]Write i2c OK [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: 01 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: 01 07 00 [21:05:36]MH_I2C_Read... [21:05:36]Read from MH i2c: 01 07 00 4C 0E 00 00 00 00 00 FF 0F 6F [21:05:36]RasterBufferAndPrint [21:05:36]line Счет N : (1)458476 [21:05:36]line ИНН: 02508201610067 [21:05:36]line Контрольно-Кассовый Чек [21:05:36]line ПРОДАЖА [21:05:36]line ТРК (МРК, ГНК) : 22 [21:05:36]line Товар: 2710124130 [21:05:36]line Аи-92-К-5 [21:05:36]line 10.640 * 65.80 [21:05:36]line = 700.11 [21:05:36]line НДС 12% НСП 1% [21:05:36]line > о реализуемом товаре [21:05:36]line ОКРУГЛЕНИЕ: -0.11 [21:05:36]line ИТОГО: 700.00 [21:05:36]line Внесено: 700.00 [21:05:36]line СДАЧА: 0.00 [21:05:36]line НСП 1% : 6.20 [21:05:36]line НДС 12% : 74.35 [21:05:36]line Наличными: 700.00 [21:05:36]line Безнал.: 0.00 [21:05:36]line Место: АЗС № 72 "Партнер Нефть" [21:05:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:05:36]line СНО: Общий режим [21:05:36]line Чек 311 12.07.2024 21:05 [21:05:36]line Смена: 445 ФФД: 1.0 [21:05:36]line ЗНМ: 0300000160 [21:05:36]line РНМ: 0000000000090829 [21:05:36]line Версия ККМ: 001 [21:05:36]line ФМ: 0000000000874718 [21:05:36]line ФД: 164390 [21:05:36]line ФПД: 267372310187409 [21:05:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T210535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164390&fm=267372310187409&tin=02508201610067®Number=0000000000090829&sum=70000 [21:05:36]OFD Sender: Processing packet 164390 [packets to send 104, broken 103] [21:05:36]ProducePacketName [21:05:36]name=ofd_packets/00164390 [21:05:36]OFD Sender: To server: pG, [21:05:36]CommunicateWithHost lk.salyk.kg:30040 [21:05:36]ConnectInit lk.salyk.kg [21:05:36]written 0, free lines is 4095 [21:05:37]Connected sock=10 [21:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 96 9A 07 01 95 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 9F 9A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 82 02 00 35 04 06 00 F3 2C 77 92 4D 91 39 0A 53 79 1C B0 0A B9 [21:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 29 2F 47 00 56 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 34 37 31 38 10 04 04 00 26 82 02 00 F4 03 04 00 32 41 91 66 B6 04 01 00 00 FF 81 CE 84 C1 AA EE CA [21:05:37]CommunicateWithHost err = 0 [21:05:37]CheckOFDResponse [21:05:37]1017 (14) - 77093643461234 [21:05:37]1041 (16) - 0000000000874718 [21:05:37]1040 (4) - 164390 [21:05:37]1012 (4) - 12.07.2024 14:44 [21:05:37]1206 (1) - 0 [21:05:37]OFD Sender: Remove packet 164390 [21:05:37]ProducePacketName [21:05:37]name=ofd_packets/00164390 [21:05:37]NVStorageDeleteData [21:05:37]Write to MH i2c: 01 00 00 76 0E 84 [21:05:37]Write i2c OK [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: 01 [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: 01 07 00 [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 F6 0C 8D [21:05:37]RasterBufferAndPrint [21:05:37]line [21:05:37]line [21:05:37]line [21:05:37]line [21:05:37]line [21:05:37]written 0, free lines is 3324 [21:05:37]MH_Cut [21:05:37]Write to MH i2c: D1 01 00 7D 0E 01 5D [21:05:37]Write i2c OK [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: D1 [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: D1 01 00 [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: D1 01 00 7D 0E 00 5C [21:05:37]Write to MH i2c: 01 00 00 7E 0E 8C [21:05:37]Write i2c OK [21:05:37]MH_I2C_Read... [21:05:37]OFD Sender: No OFD packet to send [21:05:38]*** Cut start [21:05:38]*** Partial cut [21:05:38]*** CUTSNS_PIN = 1 [21:05:38]*** CUTSNS_PIN = 0 [21:05:38]*** Brake cut motor [21:05:38]Read from MH i2c: 01 [21:05:38]MH_I2C_Read... [21:05:38]*** Stop cut motor [21:05:38]*** Cut end [21:05:38]Read from MH i2c: 01 07 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: 01 07 00 7E 0E 00 00 00 00 00 FF 0F A1 [21:05:38]process_action close_receipt done [21:05:38]requested_data is exist [21:05:38]produce_requested_data [21:05:38]requested_item fm.sn is exist - process it [21:05:38]wFMCommunicate request_size=4 [21:05:38]MH_SAM_APDU [21:05:38]CAPDU: 80 11 00 00 [21:05:38]Write to MH i2c: E2 08 00 7F 0E 80 11 00 00 00 00 00 00 07 [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:38]Read from MH i2c: E2 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 17 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 17 00 7F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [21:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:05:38]wFMCommunicate OK [21:05:38]requested_item fd.num is exist - process it [21:05:38]SAM_PROTO_GetFieldsCounters [21:05:38]wFMCommunicate request_size=4 [21:05:38]MH_SAM_APDU [21:05:38]CAPDU: 80 13 00 00 [21:05:38]Write to MH i2c: E2 08 00 80 0E 80 13 00 00 00 00 00 00 0A [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:38]Read from MH i2c: E2 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 62 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 62 00 80 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [21:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:38]wFMCommunicate OK [21:05:38]SAM_PROTO_GetFieldsCounters done [21:05:38]requested_item shift.num is exist - process it [21:05:38]requested_item shift.opened is exist - process it [21:05:38]req_shift_opened [21:05:38]FM_GetShiftState [21:05:38]SAM_PROTO_GetShiftState [21:05:38]wFMCommunicate request_size=4 [21:05:38]MH_SAM_APDU [21:05:38]CAPDU: 80 13 01 00 [21:05:38]Write to MH i2c: E2 08 00 81 0E 80 13 01 00 00 00 00 00 0C [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:38]Read from MH i2c: E2 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 0E 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 0E 00 81 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 56 [21:05:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:05:38]wFMCommunicate OK [21:05:38]SAM_PROTO_GetShiftState done [21:05:38]FM_GetShiftState done [21:05:38]req_shift_opened done [21:05:38]requested_item shift.open_date is exist - process it [21:05:38]req_shift_open_date [21:05:38]req_shift_open_date done [21:05:38]produce_requested_data done [21:05:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164390,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:05:38]process_action_free close_receipt [21:05:38]json_value_free [21:05:38]json_value_free done [21:05:38]process_json_proto returns [21:05:38]Send response to host [21:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164390,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:05:38]free response buf [21:05:38]execute_script done [21:05:38]execute_script returns [21:05:38]free content buf [21:05:38]Sock 9.Close socket [21:05:38]Sock 9.Thread stoped [21:05:39]accept exits with 7 [21:05:39]New connection [21:05:39]New thread 3067391332 created [21:05:39]Thread 3067534692 joined [21:05:39]Waiting for new connection... [21:05:39] Sock 7.Parse request [21:05:39]Sock 7.Check first char [21:05:39]Sock 7.First char is OK [21:05:39]request: POST /json_proto HTTP/1.0 [21:05:39]Method: POST [21:05:39]URL: /json_proto [21:05:39]Method is POST - this is cgi request [21:05:39]url: /json_proto [21:05:39]query_string will be loaded in cgi processing [21:05:39]execute_cgi json_proto POST (null) [21:05:39]execute_cgi path=json_proto method=POST [21:05:39]POST find Content-Length [21:05:39]Host: 172.17.56.4:8080 [21:05:39]Content-Length: 677 [21:05:39]Content-Type: application/json [21:05:39] [21:05:39]POST finish read [21:05:39]Found Content-Length = 677 [21:05:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:05:39]execute_script... [21:05: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)458477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:05:39]POST & json_proto [21:05:39]process_json_proto [21:05:39]json parsed OK: [21:05:39]protocol is kg_v1.0 [21:05:39]action value=close_receipt [21:05:39]process_action close_receipt [21:05:39]cmd_close_receipt [21:05:39]MH_GetDate [21:05:39]Write to MH i2c: F0 00 00 82 0E 7F [21:05:39]Write i2c OK [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: F0 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: F0 09 00 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: F0 09 00 82 0E 00 A3 9A 91 66 C9 DC B2 64 77 [21:05:39]GetLastDocTimeStamp 1720818335 [21:05:39]current date 1720818339 [21:05:39]FM_GetShiftState [21:05:39]SAM_PROTO_GetShiftState [21:05:39]wFMCommunicate request_size=4 [21:05:39]MH_SAM_APDU [21:05:39]CAPDU: 80 13 01 00 [21:05:39]Write to MH i2c: E2 08 00 83 0E 80 13 01 00 00 00 00 00 0E [21:05:39]Write i2c OK [21:05:39]MH_I2C_Read... [21:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:39]Read from MH i2c: E2 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 0E 00 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 0E 00 83 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 58 [21:05:39]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:05:39]wFMCommunicate OK [21:05:39]SAM_PROTO_GetShiftState done [21:05:39]FM_GetShiftState done [21:05:39]opened in 1720744654 [21:05:39]opened+sec_in_day 1720831054 [21:05:39]quantity*price = 20003 [21:05:39]sum+1 = 20004 [21:05: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 312 12.07.2024 21:05 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164391 ФПД: 98684757252974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T210539&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164391&fm=98684757252974&tin=02508201610067®Number=0000000000090829&sum=20000 [21:05:40]StoreToDocumentArchive [21:05:40]shift 445 fd 164391 [21:05:40]save to /storage/0445/doc_00164391 [21:05:40]save last doc name /storage/0445/doc_00164391 to /storage/kkm_last_doc_name [21:05:40]save OK [21:05:40]Clear old archive folders... [21:05:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:40]tlvbuf is 015EC710 [21:05:40]SAM_PROTO_ClearQueue [21:05:40]wFMCommunicate request_size=4 [21:05:40]MH_SAM_APDU [21:05:40]CAPDU: 80 09 00 00 [21:05:40]Write to MH i2c: E2 08 00 90 0E 80 09 00 00 00 00 00 00 10 [21:05:40]Write i2c OK [21:05:40]MH_I2C_Read... [21:05:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:40]Read from MH i2c: E2 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: E2 03 00 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: E2 03 00 90 0E 00 90 00 12 [21:05:40]RAPDU: 90 00 [21:05:40]wFMCommunicate OK [21:05:40]SAM_PROTO_ClearQueue done [21:05:40]KKMCreateOFDPacket [21:05:40]OFDProtocolAddRootSTLVToBuf [21:05:40]FM_MakeSignedData [21:05:40]FM_MakeSignedData [21:05:40]SAM_PROTO_SignData [21:05:40]wFMCommunicate request_size=4 [21:05:40]MH_SAM_APDU [21:05:40]CAPDU: 80 0D 01 02 [21:05:40]Write to MH i2c: E2 08 00 91 0E 80 0D 01 02 00 00 00 00 18 [21:05:40]Write i2c OK [21:05:40]MH_I2C_Read... [21:05:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:40]Read from MH i2c: E2 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: E2 03 00 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: E2 03 00 91 0E 00 90 00 13 [21:05:40]RAPDU: 90 00 [21:05:40]wFMCommunicate OK [21:05:40]wFMCommunicate request_size=255 [21:05:40]MH_SAM_APDU [21:05: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 38 01 00 00 F4 03 04 00 A3 9A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 82 02 00 35 04 06 00 59 [21:05:40]Write to MH i2c: E2 02 01 92 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 38 01 00 00 F4 03 04 00 A3 9A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 82 02 00 35 04 06 00 59 00 00 61 [21:05:40]Write i2c OK [21:05:40]MH_I2C_Read... [21:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:41]Read from MH i2c: E2 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 03 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 03 00 92 0E 00 90 00 14 [21:05:41]RAPDU: 90 00 [21:05:41]wFMCommunicate OK [21:05:41]wFMCommunicate request_size=10 [21:05:41]MH_SAM_APDU [21:05:41]CAPDU: 80 0D 02 02 05 C0 D5 E6 9B 6E [21:05:41]Write to MH i2c: E2 0D 00 93 0E 80 0D 02 02 05 00 C0 D5 E6 9B 6E 00 00 A9 [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:41]Read from MH i2c: E2 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 03 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 03 00 93 0E 00 90 00 15 [21:05:41]RAPDU: 90 00 [21:05:41]wFMCommunicate OK [21:05:41]wFMCommunicate request_size=4 [21:05:41]MH_SAM_APDU [21:05:41]CAPDU: 80 0D 03 02 [21:05:41]Write to MH i2c: E2 08 00 94 0E 80 0D 03 02 00 00 00 00 1D [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:41]Read from MH i2c: E2 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 0B 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 0B 00 94 0E 00 17 88 2E F8 09 FA 4D B0 90 00 E3 [21:05:41]RAPDU: 17 88 2E F8 09 FA 4D B0 90 00 [21:05:41]wFMCommunicate OK [21:05:41]SAM_PROTO_SignData done [21:05:41]FM_MakeSignedData done [21:05:41]CreateOFDProtocolMessage [21:05:41]wFMCommunicate request_size=4 [21:05:41]MH_SAM_APDU [21:05:41]CAPDU: 80 11 00 00 [21:05:41]Write to MH i2c: E2 08 00 95 0E 80 11 00 00 00 00 00 00 1D [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:41]Read from MH i2c: E2 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 17 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 17 00 95 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [21:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:05:41]wFMCommunicate OK [21:05:41]CreateOFDProtocolMessage done [21:05:41]OFDSenderStorePacket 164391 [21:05:41]StoreOFDPacket docnum=164391 [21:05:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FF 47 07 01 79 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 38 01 00 00 F4 03 04 00 A3 9A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 82 02 00 35 04 06 00 59 C0 D5 E6 9B 6E 17 88 2E F8 09 FA 4D B0 [21:05:41]CheckFolder [21:05:41]dirname=/storage/ofd_packets [21:05:41]CheckFolder done [21:05:41]ProducePacketName [21:05:41]name=ofd_packets/00164391 [21:05:41]NVStorageSaveData ofd_packets/00164391 [21:05:41]File name is /storage/ofd_packets/00164391 [21:05:41]Write 301 bytes [21:05:41]NVStorageSaveData done [21:05:41]OFDSenderStorePacket done [21:05:41]KKMCreateOFDPacket done [21:05:41]NVStorageSaveData kkm_last_timestamp [21:05:41]File name is /storage/kkm_last_timestamp [21:05:41]Write 4 bytes [21:05:41]NVStorageSaveData done [21:05:41]ExternCall_PrintAddStr [21:05:41]wPrintStart [21:05:41]Write to MH i2c: 01 00 00 96 0E A4 [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: 01 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: 01 07 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: 01 07 00 96 0E 00 00 00 00 00 FF 0F B9 [21:05:41]RasterBufferAndPrint [21:05:41]line Счет N : (1)458477 [21:05:41]line ИНН: 02508201610067 [21:05:41]line Контрольно-Кассовый Чек [21:05:41]line ПРОДАЖА [21:05:41]line ТРК (МРК, ГНК) : 12 [21:05:41]line Товар: 2710124130 [21:05:41]line Аи-92-К-5 [21:05:41]line 3.040 * 65.80 [21:05:41]line = 200.03 [21:05:41]line НДС 12% НСП 1% [21:05:41]line > о реализуемом товаре [21:05:41]line ОКРУГЛЕНИЕ: -0.03 [21:05:41]line ИТОГО: 200.00 [21:05:41]line Внесено: 200.00 [21:05:41]line СДАЧА: 0.00 [21:05:41]line НСП 1% : 1.77 [21:05:41]line НДС 12% : 21.24 [21:05:41]line Наличными: 200.00 [21:05:41]line Безнал.: 0.00 [21:05:41]line Место: АЗС № 72 "Партнер Нефть" [21:05:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:05:41]line СНО: Общий режим [21:05:41]line Чек 312 12.07.2024 21:05 [21:05:41]line Смена: 445 ФФД: 1.0 [21:05:41]line ЗНМ: 0300000160 [21:05:41]line РНМ: 0000000000090829 [21:05:41]line Версия ККМ: 001 [21:05:41]line ФМ: 0000000000874718 [21:05:41]line ФД: 164391 [21:05:41]line ФПД: 98684757252974 [21:05:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T210539&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164391&fm=98684757252974&tin=02508201610067®Number=0000000000090829&sum=20000 [21:05:41]OFD Sender: Processing packet 164391 [packets to send 104, broken 103] [21:05:41]ProducePacketName [21:05:41]name=ofd_packets/00164391 [21:05:41]OFD Sender: To server: pG, [21:05:41]CommunicateWithHost lk.salyk.kg:30040 [21:05:41]ConnectInit lk.salyk.kg [21:05:41]written 0, free lines is 4095 [21:05:41]Connected sock=10 [21:05:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FF 47 07 01 79 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 38 01 00 00 F4 03 04 00 A3 9A 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 82 02 00 35 04 06 00 59 C0 D5 E6 9B 6E 17 88 2E F8 09 FA 4D B0 [21:05:41]Write to MH i2c: 01 00 00 C0 0E CE [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: 01 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: 01 07 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: 01 07 00 C0 0E 00 00 00 00 00 02 0D E4 [21:05:41]RasterBufferAndPrint [21:05:41]line [21:05:41]line [21:05:41]line [21:05:41]line [21:05:41]line [21:05:41]written 0, free lines is 3339 [21:05:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8E 72 47 00 01 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 34 37 31 38 10 04 04 00 27 82 02 00 F4 03 04 00 37 41 91 66 B6 04 01 00 00 97 87 74 4C 7E 38 37 6C [21:05:41]CommunicateWithHost err = 0 [21:05:41]CheckOFDResponse [21:05:41]1017 (14) - 77093643461234 [21:05:41]1041 (16) - 0000000000874718 [21:05:41]1040 (4) - 164391 [21:05:41]1012 (4) - 12.07.2024 14:44 [21:05:41]1206 (1) - 0 [21:05:41]OFD Sender: Remove packet 164391 [21:05:41]ProducePacketName [21:05:41]name=ofd_packets/00164391 [21:05:41]NVStorageDeleteData [21:05:41]MH_Cut [21:05:41]Write to MH i2c: D1 01 00 C7 0E 01 A7 [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: D1 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: D1 01 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: D1 01 00 C7 0E 00 A6 [21:05:41]Write to MH i2c: 01 00 00 C8 0E D6 [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:42]OFD Sender: No OFD packet to send [21:05:42]*** Cut start [21:05:42]*** Partial cut [21:05:42]*** CUTSNS_PIN = 1 [21:05:42]*** CUTSNS_PIN = 0 [21:05:42]*** Brake cut motor [21:05:43]Read from MH i2c: 01 [21:05:43]MH_I2C_Read... [21:05:43]*** Stop cut motor [21:05:43]*** Cut end [21:05:43]Read from MH i2c: 01 07 00 [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: 01 07 00 C8 0E 00 00 00 00 00 FF 0F EB [21:05:43]process_action close_receipt done [21:05:43]requested_data is exist [21:05:43]produce_requested_data [21:05:43]requested_item fm.sn is exist - process it [21:05:43]wFMCommunicate request_size=4 [21:05:43]MH_SAM_APDU [21:05:43]CAPDU: 80 11 00 00 [21:05:43]Write to MH i2c: E2 08 00 C9 0E 80 11 00 00 00 00 00 00 51 [21:05:43]Write i2c OK [21:05:43]MH_I2C_Read... [21:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:43]Read from MH i2c: E2 [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: E2 17 00 [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: E2 17 00 C9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [21:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:05:43]wFMCommunicate OK [21:05:43]requested_item fd.num is exist - process it [21:05:43]SAM_PROTO_GetFieldsCounters [21:05:43]wFMCommunicate request_size=4 [21:05:43]MH_SAM_APDU [21:05:43]CAPDU: 80 13 00 00 [21:05:43]Write to MH i2c: E2 08 00 CA 0E 80 13 00 00 00 00 00 00 54 [21:05:43]Write i2c OK [21:05:43]MH_I2C_Read... [21:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:43]Read from MH i2c: E2 [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: E2 62 00 [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: E2 62 00 CA 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [21:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:43]wFMCommunicate OK [21:05:43]SAM_PROTO_GetFieldsCounters done [21:05:43]requested_item shift.num is exist - process it [21:05:43]requested_item shift.opened is exist - process it [21:05:43]req_shift_opened [21:05:43]FM_GetShiftState [21:05:43]SAM_PROTO_GetShiftState [21:05:43]wFMCommunicate request_size=4 [21:05:43]MH_SAM_APDU [21:05:43]CAPDU: 80 13 01 00 [21:05:43]Write to MH i2c: E2 08 00 CB 0E 80 13 01 00 00 00 00 00 56 [21:05:43]Write i2c OK [21:05:43]MH_I2C_Read... [21:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:43]Read from MH i2c: E2 [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: E2 0E 00 [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: E2 0E 00 CB 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A0 [21:05:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:05:43]wFMCommunicate OK [21:05:43]SAM_PROTO_GetShiftState done [21:05:43]FM_GetShiftState done [21:05:43]req_shift_opened done [21:05:43]requested_item shift.open_date is exist - process it [21:05:43]req_shift_open_date [21:05:43]req_shift_open_date done [21:05:43]produce_requested_data done [21:05:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164391,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:05:43]process_action_free close_receipt [21:05:43]json_value_free [21:05:43]json_value_free done [21:05:43]process_json_proto returns [21:05:43]Send response to host [21:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164391,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:05:43]free response buf [21:05:43]execute_script done [21:05:43]execute_script returns [21:05:43]free content buf [21:05:43]Sock 7.Close socket [21:05:43]Sock 7.Thread stoped [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [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:11]accept exits with 9 [21:13:11]New connection [21:13:11]New thread 3067534692 created [21:13:11]Thread 3067391332 joined [21:13:11]Waiting for new connection... [21:13:11] Sock 9.Parse request [21:13:11]Sock 9.Check first char [21:13:11]Sock 9.First char is OK [21:13:11]request: POST /json_proto HTTP/1.0 [21:13:11]Method: POST [21:13:11]URL: /json_proto [21:13:11]Method is POST - this is cgi request [21:13:11]url: /json_proto [21:13:11]query_string will be loaded in cgi processing [21:13:11]execute_cgi json_proto POST (null) [21:13:11]execute_cgi path=json_proto method=POST [21:13:11]POST find Content-Length [21:13:11]Host: 172.17.56.4:8080 [21:13:11]Content-Length: 791 [21:13:11]Content-Type: application/json [21:13:11] [21:13:11]POST finish read [21:13:11]Found Content-Length = 791 [21:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.740, "sum" : 700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:11]execute_script... [21:13: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)458478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.740, "sum" : 700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:11]POST & json_proto [21:13:11]process_json_proto [21:13:11]json parsed OK: [21:13:11]protocol is kg_v1.0 [21:13:11]action value=close_receipt [21:13:11]process_action close_receipt [21:13:11]cmd_close_receipt [21:13:11]MH_GetDate [21:13:11]Write to MH i2c: F0 00 00 CC 0E C9 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: F0 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: F0 09 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: F0 09 00 CC 0E 00 67 9C 91 66 C9 DC B2 64 87 [21:13:11]GetLastDocTimeStamp 1720818339 [21:13:11]current date 1720818791 [21:13:11]FM_GetShiftState [21:13:11]SAM_PROTO_GetShiftState [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 13 01 00 [21:13:11]Write to MH i2c: E2 08 00 CD 0E 80 13 01 00 00 00 00 00 58 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0E 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0E 00 CD 0E 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A2 [21:13:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:13:11]wFMCommunicate OK [21:13:11]SAM_PROTO_GetShiftState done [21:13:11]FM_GetShiftState done [21:13:11]opened in 1720744654 [21:13:11]opened+sec_in_day 1720831054 [21:13:11]quantity*price = 70046 [21:13:11]sum+1 = 70047 [21:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.46 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.46 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 313 12.07.2024 21:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164392 ФПД: 10280542281699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T211312&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164392&fm=10280542281699&tin=02508201610067®Number=0000000000090829&sum=70046 [21:13:12]StoreToDocumentArchive [21:13:12]shift 445 fd 164392 [21:13:12]save to /storage/0445/doc_00164392 [21:13:12]save last doc name /storage/0445/doc_00164392 to /storage/kkm_last_doc_name [21:13:12]save OK [21:13:12]Clear old archive folders... [21:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:12]tlvbuf is 015A7340 [21:13:12]SAM_PROTO_ClearQueue [21:13:12]wFMCommunicate request_size=4 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 09 00 00 [21:13:12]Write to MH i2c: E2 08 00 DA 0E 80 09 00 00 00 00 00 00 5A [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 DA 0E 00 90 00 5C [21:13:12]RAPDU: 90 00 [21:13:12]wFMCommunicate OK [21:13:12]SAM_PROTO_ClearQueue done [21:13:12]KKMCreateOFDPacket [21:13:12]OFDProtocolAddRootSTLVToBuf [21:13:12]FM_MakeSignedData [21:13:12]FM_MakeSignedData [21:13:12]SAM_PROTO_SignData [21:13:12]wFMCommunicate request_size=4 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 0D 01 02 [21:13:12]Write to MH i2c: E2 08 00 DB 0E 80 0D 01 02 00 00 00 00 62 [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 DB 0E 00 90 00 5D [21:13:12]RAPDU: 90 00 [21:13:12]wFMCommunicate OK [21:13:12]wFMCommunicate request_size=255 [21:13:12]MH_SAM_APDU [21:13: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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 68 9C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 82 02 00 35 04 06 00 09 [21:13:12]Write to MH i2c: E2 02 01 DC 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 68 9C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 82 02 00 35 04 06 00 09 00 00 73 [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 DC 0E 00 90 00 5E [21:13:12]RAPDU: 90 00 [21:13:12]wFMCommunicate OK [21:13:12]wFMCommunicate request_size=10 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 0D 02 02 05 59 A0 12 1F E3 [21:13:12]Write to MH i2c: E2 0D 00 DD 0E 80 0D 02 02 05 00 59 A0 12 1F E3 00 00 7C [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 DD 0E 00 90 00 5F [21:13:12]RAPDU: 90 00 [21:13:12]wFMCommunicate OK [21:13:12]wFMCommunicate request_size=4 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 0D 03 02 [21:13:12]Write to MH i2c: E2 08 00 DE 0E 80 0D 03 02 00 00 00 00 67 [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 0B 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 0B 00 DE 0E 00 E2 87 A5 FA 18 1B A2 1A 90 00 5F [21:13:12]RAPDU: E2 87 A5 FA 18 1B A2 1A 90 00 [21:13:12]wFMCommunicate OK [21:13:12]SAM_PROTO_SignData done [21:13:12]FM_MakeSignedData done [21:13:12]CreateOFDProtocolMessage [21:13:12]wFMCommunicate request_size=4 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 11 00 00 [21:13:12]Write to MH i2c: E2 08 00 DF 0E 80 11 00 00 00 00 00 00 67 [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 17 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 17 00 DF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [21:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:13:12]wFMCommunicate OK [21:13:12]CreateOFDProtocolMessage done [21:13:12]OFDSenderStorePacket 164392 [21:13:12]StoreOFDPacket docnum=164392 [21:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 A4 07 01 61 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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 68 9C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 82 02 00 35 04 06 00 09 59 A0 12 1F E3 E2 87 A5 FA 18 1B A2 1A [21:13:12]CheckFolder [21:13:12]dirname=/storage/ofd_packets [21:13:12]CheckFolder done [21:13:12]ProducePacketName [21:13:12]name=ofd_packets/00164392 [21:13:12]NVStorageSaveData ofd_packets/00164392 [21:13:12]File name is /storage/ofd_packets/00164392 [21:13:12]Write 301 bytes [21:13:12]NVStorageSaveData done [21:13:12]OFDSenderStorePacket done [21:13:12]KKMCreateOFDPacket done [21:13:12]NVStorageSaveData kkm_last_timestamp [21:13:12]File name is /storage/kkm_last_timestamp [21:13:12]Write 4 bytes [21:13:12]NVStorageSaveData done [21:13:12]ExternCall_PrintAddStr [21:13:12]wPrintStart [21:13:12]Write to MH i2c: 01 00 00 E0 0E EE [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: 01 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: 01 07 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: 01 07 00 E0 0E 00 00 00 00 00 FF 0F 03 [21:13:12]RasterBufferAndPrint [21:13:12]line Счет N : (1)458478 [21:13:12]line ИНН: 02508201610067 [21:13:12]line Контрольно-Кассовый Чек [21:13:12]line ПРОДАЖА [21:13:12]line ТРК (МРК, ГНК) : 22 [21:13:12]line Товар: 2710124130 [21:13:12]line Аи-92-К-5 [21:13:12]line 10.740 * 65.22 [21:13:12]line = 700.46 [21:13:12]line НДС 12% НСП 1% [21:13:12]line > о реализуемом товаре [21:13:12]line ИТОГО: 700.46 [21:13:12]line НСП 1% : 6.20 [21:13:12]line НДС 12% : 74.38 [21:13:12]line Наличными: 0.00 [21:13:12]line Безнал.: 700.46 [21:13:12]line Место: АЗС № 72 "Партнер Нефть" [21:13:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:13:12]line СНО: Общий режим [21:13:12]line Чек 313 12.07.2024 21:13 [21:13:12]line Смена: 445 ФФД: 1.0 [21:13:12]line ЗНМ: 0300000160 [21:13:12]line РНМ: 0000000000090829 [21:13:12]line Версия ККМ: 001 [21:13:12]line Платежная система: KICB Банк [21:13:12]line ФМ: 0000000000874718 [21:13:12]line ФД: 164392 [21:13:12]line ФПД: 10280542281699 [21:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T211312&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164392&fm=10280542281699&tin=02508201610067®Number=0000000000090829&sum=70046 [21:13:13]OFD Sender: Processing packet 164392 [packets to send 104, broken 103] [21:13:13]ProducePacketName [21:13:13]name=ofd_packets/00164392 [21:13:13]OFD Sender: To server: pG, [21:13:13]CommunicateWithHost lk.salyk.kg:30040 [21:13:13]ConnectInit lk.salyk.kg [21:13:13]written 0, free lines is 4095 [21:13:13]Connected sock=10 [21:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 A4 07 01 61 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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 68 9C 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 82 02 00 35 04 06 00 09 59 A0 12 1F E3 E2 87 A5 FA 18 1B A2 1A [21:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 10 A7 47 00 47 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 82 02 00 F4 03 04 00 FB 42 91 66 B6 04 01 00 00 33 FA 9F 46 47 24 F6 5D [21:13:13]CommunicateWithHost err = 0 [21:13:13]CheckOFDResponse [21:13:13]1017 (14) - 77093643461234 [21:13:13]1041 (16) - 0000000000874718 [21:13:13]1040 (4) - 164392 [21:13:13]1012 (4) - 12.07.2024 14:51 [21:13:13]1206 (1) - 0 [21:13:13]OFD Sender: Remove packet 164392 [21:13:13]ProducePacketName [21:13:13]name=ofd_packets/00164392 [21:13:13]NVStorageDeleteData [21:13:13]Write to MH i2c: 01 00 00 09 0F 18 [21:13:13]Write i2c OK [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: 01 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: 01 07 00 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: 01 07 00 09 0F 00 00 00 00 00 1D 0D 49 [21:13:13]RasterBufferAndPrint [21:13:13]line [21:13:13]line [21:13:13]line [21:13:13]line [21:13:13]line [21:13:13]written 0, free lines is 3362 [21:13:13]MH_Cut [21:13:13]Write to MH i2c: D1 01 00 10 0F 01 F1 [21:13:13]Write i2c OK [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: D1 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: D1 01 00 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: D1 01 00 10 0F 00 F0 [21:13:13]Write to MH i2c: 01 00 00 11 0F 20 [21:13:13]Write i2c OK [21:13:13]MH_I2C_Read... [21:13:14]OFD Sender: No OFD packet to send [21:13:14]*** Cut start [21:13:14]*** Partial cut [21:13:14]*** CUTSNS_PIN = 1 [21:13:14]*** CUTSNS_PIN = 0 [21:13:14]*** Brake cut motor [21:13:14]Read from MH i2c: 01 [21:13:14]MH_I2C_Read... [21:13:14]*** Stop cut motor [21:13:14]*** Cut end [21:13:14]Read from MH i2c: 01 07 00 [21:13:14]MH_I2C_Read... [21:13:14]Read from MH i2c: 01 07 00 11 0F 00 00 00 00 00 FF 0F 35 [21:13:14]process_action close_receipt done [21:13:14]requested_data is exist [21:13:14]produce_requested_data [21:13:14]requested_item fm.sn is exist - process it [21:13:14]wFMCommunicate request_size=4 [21:13:14]MH_SAM_APDU [21:13:14]CAPDU: 80 11 00 00 [21:13:14]Write to MH i2c: E2 08 00 12 0F 80 11 00 00 00 00 00 00 9B [21:13:14]Write i2c OK [21:13:14]MH_I2C_Read... [21:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:15]Read from MH i2c: E2 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 17 00 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 17 00 12 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [21:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:13:15]wFMCommunicate OK [21:13:15]requested_item fd.num is exist - process it [21:13:15]SAM_PROTO_GetFieldsCounters [21:13:15]wFMCommunicate request_size=4 [21:13:15]MH_SAM_APDU [21:13:15]CAPDU: 80 13 00 00 [21:13:15]Write to MH i2c: E2 08 00 13 0F 80 13 00 00 00 00 00 00 9E [21:13:15]Write i2c OK [21:13:15]MH_I2C_Read... [21:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:15]Read from MH i2c: E2 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 62 00 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 62 00 13 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [21:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:15]wFMCommunicate OK [21:13:15]SAM_PROTO_GetFieldsCounters done [21:13:15]requested_item shift.num is exist - process it [21:13:15]requested_item shift.opened is exist - process it [21:13:15]req_shift_opened [21:13:15]FM_GetShiftState [21:13:15]SAM_PROTO_GetShiftState [21:13:15]wFMCommunicate request_size=4 [21:13:15]MH_SAM_APDU [21:13:15]CAPDU: 80 13 01 00 [21:13:15]Write to MH i2c: E2 08 00 14 0F 80 13 01 00 00 00 00 00 A0 [21:13:15]Write i2c OK [21:13:15]MH_I2C_Read... [21:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:15]Read from MH i2c: E2 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 0E 00 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 0E 00 14 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EA [21:13:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:13:15]wFMCommunicate OK [21:13:15]SAM_PROTO_GetShiftState done [21:13:15]FM_GetShiftState done [21:13:15]req_shift_opened done [21:13:15]requested_item shift.open_date is exist - process it [21:13:15]req_shift_open_date [21:13:15]req_shift_open_date done [21:13:15]produce_requested_data done [21:13:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164392,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:13:15]process_action_free close_receipt [21:13:15]json_value_free [21:13:15]json_value_free done [21:13:15]process_json_proto returns [21:13:15]Send response to host [21:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164392,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:13:15]free response buf [21:13:15]execute_script done [21:13:15]execute_script returns [21:13:15]free content buf [21:13:15]Sock 9.Close socket [21:13:15]Sock 9.Thread stoped [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:12]accept exits with 7 [21:22:12]New connection [21:22:12]New thread 3067391332 created [21:22:12]Thread 3067534692 joined [21:22:12]Waiting for new connection... [21:22:12] Sock 7.Parse request [21:22:12]Sock 7.Check first char [21:22:12]Sock 7.First char is OK [21:22:12]request: POST /json_proto HTTP/1.0 [21:22:12]Method: POST [21:22:12]URL: /json_proto [21:22:12]Method is POST - this is cgi request [21:22:12]url: /json_proto [21:22:12]query_string will be loaded in cgi processing [21:22:12]execute_cgi json_proto POST (null) [21:22:12]execute_cgi path=json_proto method=POST [21:22:12]POST find Content-Length [21:22:12]Host: 172.17.56.4:8080 [21:22:12]Content-Length: 677 [21:22:12]Content-Type: application/json [21:22:12] [21:22:12]POST finish read [21:22:12]Found Content-Length = 677 [21:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:12]execute_script... [21:22: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)458479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:12]POST & json_proto [21:22:12]process_json_proto [21:22:12]json parsed OK: [21:22:12]protocol is kg_v1.0 [21:22:12]action value=close_receipt [21:22:12]process_action close_receipt [21:22:12]cmd_close_receipt [21:22:12]MH_GetDate [21:22:12]Write to MH i2c: F0 00 00 15 0F 13 [21:22:12]Write i2c OK [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: F0 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: F0 09 00 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: F0 09 00 15 0F 00 85 9E 91 66 C9 DC B2 64 F1 [21:22:12]GetLastDocTimeStamp 1720818792 [21:22:12]current date 1720819333 [21:22:12]FM_GetShiftState [21:22:12]SAM_PROTO_GetShiftState [21:22:12]wFMCommunicate request_size=4 [21:22:12]MH_SAM_APDU [21:22:12]CAPDU: 80 13 01 00 [21:22:12]Write to MH i2c: E2 08 00 16 0F 80 13 01 00 00 00 00 00 A2 [21:22:12]Write i2c OK [21:22:12]MH_I2C_Read... [21:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:12]Read from MH i2c: E2 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: E2 0E 00 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: E2 0E 00 16 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EC [21:22:12]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:22:12]wFMCommunicate OK [21:22:12]SAM_PROTO_GetShiftState done [21:22:12]FM_GetShiftState done [21:22:12]opened in 1720744654 [21:22:12]opened+sec_in_day 1720831054 [21:22:12]quantity*price = 60009 [21:22:12]sum+1 = 60011 [21:22:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 314 12.07.2024 21:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164393 ФПД: 10317998096758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212213&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164393&fm=10317998096758&tin=02508201610067®Number=0000000000090829&sum=60000 [21:22:13]StoreToDocumentArchive [21:22:13]shift 445 fd 164393 [21:22:13]save to /storage/0445/doc_00164393 [21:22:13]save last doc name /storage/0445/doc_00164393 to /storage/kkm_last_doc_name [21:22:13]save OK [21:22:13]Clear old archive folders... [21:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:13]tlvbuf is B6F363F0 [21:22:13]SAM_PROTO_ClearQueue [21:22:13]wFMCommunicate request_size=4 [21:22:13]MH_SAM_APDU [21:22:13]CAPDU: 80 09 00 00 [21:22:13]Write to MH i2c: E2 08 00 23 0F 80 09 00 00 00 00 00 00 A4 [21:22:13]Write i2c OK [21:22:13]MH_I2C_Read... [21:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:13]Read from MH i2c: E2 [21:22:13]MH_I2C_Read... [21:22:13]Read from MH i2c: E2 03 00 [21:22:13]MH_I2C_Read... [21:22:13]Read from MH i2c: E2 03 00 23 0F 00 90 00 A6 [21:22:13]RAPDU: 90 00 [21:22:13]wFMCommunicate OK [21:22:13]SAM_PROTO_ClearQueue done [21:22:13]KKMCreateOFDPacket [21:22:13]OFDProtocolAddRootSTLVToBuf [21:22:13]FM_MakeSignedData [21:22:13]FM_MakeSignedData [21:22:13]SAM_PROTO_SignData [21:22:13]wFMCommunicate request_size=4 [21:22:13]MH_SAM_APDU [21:22:13]CAPDU: 80 0D 01 02 [21:22:13]Write to MH i2c: E2 08 00 24 0F 80 0D 01 02 00 00 00 00 AC [21:22:13]Write i2c OK [21:22:13]MH_I2C_Read... [21:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:14]Read from MH i2c: E2 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 03 00 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 03 00 24 0F 00 90 00 A7 [21:22:14]RAPDU: 90 00 [21:22:14]wFMCommunicate OK [21:22:14]wFMCommunicate request_size=255 [21:22:14]MH_SAM_APDU [21:22: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3A 01 00 00 F4 03 04 00 85 9E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 82 02 00 35 04 06 00 09 [21:22:14]Write to MH i2c: E2 02 01 25 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3A 01 00 00 F4 03 04 00 85 9E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 82 02 00 35 04 06 00 09 00 00 0F [21:22:14]Write i2c OK [21:22:14]MH_I2C_Read... [21:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:14]Read from MH i2c: E2 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 03 00 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 03 00 25 0F 00 90 00 A8 [21:22:14]RAPDU: 90 00 [21:22:14]wFMCommunicate OK [21:22:14]wFMCommunicate request_size=10 [21:22:14]MH_SAM_APDU [21:22:14]CAPDU: 80 0D 02 02 05 62 58 9C 81 76 [21:22:14]Write to MH i2c: E2 0D 00 26 0F 80 0D 02 02 05 00 62 58 9C 81 76 00 00 06 [21:22:14]Write i2c OK [21:22:14]MH_I2C_Read... [21:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:14]Read from MH i2c: E2 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 03 00 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 03 00 26 0F 00 90 00 A9 [21:22:14]RAPDU: 90 00 [21:22:14]wFMCommunicate OK [21:22:14]wFMCommunicate request_size=4 [21:22:14]MH_SAM_APDU [21:22:14]CAPDU: 80 0D 03 02 [21:22:14]Write to MH i2c: E2 08 00 27 0F 80 0D 03 02 00 00 00 00 B1 [21:22:14]Write i2c OK [21:22:14]MH_I2C_Read... [21:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:14]Read from MH i2c: E2 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 0B 00 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 0B 00 27 0F 00 AB 2D 70 A1 5F 36 30 1B 90 00 7B [21:22:14]RAPDU: AB 2D 70 A1 5F 36 30 1B 90 00 [21:22:14]wFMCommunicate OK [21:22:14]SAM_PROTO_SignData done [21:22:14]FM_MakeSignedData done [21:22:14]CreateOFDProtocolMessage [21:22:14]wFMCommunicate request_size=4 [21:22:14]MH_SAM_APDU [21:22:14]CAPDU: 80 11 00 00 [21:22:14]Write to MH i2c: E2 08 00 28 0F 80 11 00 00 00 00 00 00 B1 [21:22:14]Write i2c OK [21:22:14]MH_I2C_Read... [21:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:14]Read from MH i2c: E2 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 17 00 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: E2 17 00 28 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [21:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:22:14]wFMCommunicate OK [21:22:14]CreateOFDProtocolMessage done [21:22:14]OFDSenderStorePacket 164393 [21:22:14]StoreOFDPacket docnum=164393 [21:22:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 66 65 07 01 8B 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3A 01 00 00 F4 03 04 00 85 9E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 82 02 00 35 04 06 00 09 62 58 9C 81 76 AB 2D 70 A1 5F 36 30 1B [21:22:14]CheckFolder [21:22:14]dirname=/storage/ofd_packets [21:22:14]CheckFolder done [21:22:14]ProducePacketName [21:22:14]name=ofd_packets/00164393 [21:22:14]NVStorageSaveData ofd_packets/00164393 [21:22:14]File name is /storage/ofd_packets/00164393 [21:22:14]Write 301 bytes [21:22:14]NVStorageSaveData done [21:22:14]OFDSenderStorePacket done [21:22:14]KKMCreateOFDPacket done [21:22:14]NVStorageSaveData kkm_last_timestamp [21:22:14]File name is /storage/kkm_last_timestamp [21:22:14]Write 4 bytes [21:22:14]NVStorageSaveData done [21:22:14]ExternCall_PrintAddStr [21:22:14]wPrintStart [21:22:14]Write to MH i2c: 01 00 00 29 0F 38 [21:22:14]Write i2c OK [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: 01 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: 01 07 00 [21:22:14]MH_I2C_Read... [21:22:14]Read from MH i2c: 01 07 00 29 0F 00 00 00 00 00 FF 0F 4D [21:22:14]RasterBufferAndPrint [21:22:14]line Счет N : (1)458479 [21:22:14]line ИНН: 02508201610067 [21:22:14]line Контрольно-Кассовый Чек [21:22:14]line ПРОДАЖА [21:22:14]line ТРК (МРК, ГНК) : 22 [21:22:14]line Товар: 2710124130 [21:22:14]line Аи-92-К-5 [21:22:14]line 9.120 * 65.80 [21:22:14]line = 600.10 [21:22:14]line НДС 12% НСП 1% [21:22:14]line > о реализуемом товаре [21:22:14]line ОКРУГЛЕНИЕ: -0.10 [21:22:14]line ИТОГО: 600.00 [21:22:14]line Внесено: 600.00 [21:22:14]line СДАЧА: 0.00 [21:22:14]line НСП 1% : 5.31 [21:22:14]line НДС 12% : 63.73 [21:22:14]line Наличными: 600.00 [21:22:14]line Безнал.: 0.00 [21:22:14]line Место: АЗС № 72 "Партнер Нефть" [21:22:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:22:14]line СНО: Общий режим [21:22:14]line Чек 314 12.07.2024 21:22 [21:22:14]line Смена: 445 ФФД: 1.0 [21:22:14]line ЗНМ: 0300000160 [21:22:14]line РНМ: 0000000000090829 [21:22:14]line Версия ККМ: 001 [21:22:14]line ФМ: 0000000000874718 [21:22:14]line ФД: 164393 [21:22:14]line ФПД: 10317998096758 [21:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212213&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164393&fm=10317998096758&tin=02508201610067®Number=0000000000090829&sum=60000 [21:22:14]written 0, free lines is 4095 [21:22:14]OFD Sender: Processing packet 164393 [packets to send 104, broken 103] [21:22:14]ProducePacketName [21:22:14]name=ofd_packets/00164393 [21:22:14]OFD Sender: To server: pG, [21:22:14]CommunicateWithHost lk.salyk.kg:30040 [21:22:14]ConnectInit lk.salyk.kg [21:22:14]Connected sock=10 [21:22:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 66 65 07 01 8B 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3A 01 00 00 F4 03 04 00 85 9E 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 82 02 00 35 04 06 00 09 62 58 9C 81 76 AB 2D 70 A1 5F 36 30 1B [21:22:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E0 2C 47 00 C1 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 34 37 31 38 10 04 04 00 29 82 02 00 F4 03 04 00 18 45 91 66 B6 04 01 00 00 99 A1 EF CF B8 A9 9C A3 [21:22:15]CommunicateWithHost err = 0 [21:22:15]CheckOFDResponse [21:22:15]1017 (14) - 77093643461234 [21:22:15]1041 (16) - 0000000000874718 [21:22:15]1040 (4) - 164393 [21:22:15]1012 (4) - 12.07.2024 15:00 [21:22:15]1206 (1) - 0 [21:22:15]OFD Sender: Remove packet 164393 [21:22:15]ProducePacketName [21:22:15]name=ofd_packets/00164393 [21:22:15]NVStorageDeleteData [21:22:15]Write to MH i2c: 01 00 00 53 0F 62 [21:22:15]Write i2c OK [21:22:15]MH_I2C_Read... [21:22:15]Read from MH i2c: 01 [21:22:15]MH_I2C_Read... [21:22:15]Read from MH i2c: 01 07 00 [21:22:15]MH_I2C_Read... [21:22:15]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 F6 0C 6B [21:22:15]RasterBufferAndPrint [21:22:15]line [21:22:15]line [21:22:15]line [21:22:15]line [21:22:15]line [21:22:15]written 0, free lines is 3325 [21:22:15]MH_Cut [21:22:15]Write to MH i2c: D1 01 00 5A 0F 01 3B [21:22:15]Write i2c OK [21:22:15]MH_I2C_Read... [21:22:15]Read from MH i2c: D1 [21:22:15]MH_I2C_Read... [21:22:15]Read from MH i2c: D1 01 00 [21:22:15]MH_I2C_Read... [21:22:15]Read from MH i2c: D1 01 00 5A 0F 00 3A [21:22:15]Write to MH i2c: 01 00 00 5B 0F 6A [21:22:15]Write i2c OK [21:22:15]MH_I2C_Read... [21:22:15]OFD Sender: No OFD packet to send [21:22:15]*** Cut start [21:22:15]*** Partial cut [21:22:15]*** CUTSNS_PIN = 1 [21:22:15]*** CUTSNS_PIN = 0 [21:22:16]*** Brake cut motor [21:22:16]Read from MH i2c: 01 [21:22:16]MH_I2C_Read... [21:22:16]*** Stop cut motor [21:22:16]*** Cut end [21:22:16]Read from MH i2c: 01 07 00 [21:22:16]MH_I2C_Read... [21:22:16]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 FF 0F 7F [21:22:16]process_action close_receipt done [21:22:16]requested_data is exist [21:22:16]produce_requested_data [21:22:16]requested_item fm.sn is exist - process it [21:22:16]wFMCommunicate request_size=4 [21:22:16]MH_SAM_APDU [21:22:16]CAPDU: 80 11 00 00 [21:22:16]Write to MH i2c: E2 08 00 5C 0F 80 11 00 00 00 00 00 00 E5 [21:22:16]Write i2c OK [21:22:16]MH_I2C_Read... [21:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:16]Read from MH i2c: E2 [21:22:16]MH_I2C_Read... [21:22:16]Read from MH i2c: E2 17 00 [21:22:16]MH_I2C_Read... [21:22:16]Read from MH i2c: E2 17 00 5C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3B [21:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:22:16]wFMCommunicate OK [21:22:16]requested_item fd.num is exist - process it [21:22:16]SAM_PROTO_GetFieldsCounters [21:22:16]wFMCommunicate request_size=4 [21:22:16]MH_SAM_APDU [21:22:16]CAPDU: 80 13 00 00 [21:22:16]Write to MH i2c: E2 08 00 5D 0F 80 13 00 00 00 00 00 00 E8 [21:22:16]Write i2c OK [21:22:16]MH_I2C_Read... [21:22:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:16]Read from MH i2c: E2 [21:22:16]MH_I2C_Read... [21:22:16]Read from MH i2c: E2 62 00 [21:22:16]MH_I2C_Read... [21:22:16]Read from MH i2c: E2 62 00 5D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [21:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:16]wFMCommunicate OK [21:22:16]SAM_PROTO_GetFieldsCounters done [21:22:16]requested_item shift.num is exist - process it [21:22:16]requested_item shift.opened is exist - process it [21:22:16]req_shift_opened [21:22:16]FM_GetShiftState [21:22:16]SAM_PROTO_GetShiftState [21:22:16]wFMCommunicate request_size=4 [21:22:16]MH_SAM_APDU [21:22:16]CAPDU: 80 13 01 00 [21:22:16]Write to MH i2c: E2 08 00 5E 0F 80 13 01 00 00 00 00 00 EA [21:22:16]Write i2c OK [21:22:16]MH_I2C_Read... [21:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:16]Read from MH i2c: E2 [21:22:16]MH_I2C_Read... [21:22:16]Read from MH i2c: E2 0E 00 [21:22:16]MH_I2C_Read... [21:22:16]Read from MH i2c: E2 0E 00 5E 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 34 [21:22:16]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:22:16]wFMCommunicate OK [21:22:16]SAM_PROTO_GetShiftState done [21:22:16]FM_GetShiftState done [21:22:16]req_shift_opened done [21:22:16]requested_item shift.open_date is exist - process it [21:22:16]req_shift_open_date [21:22:16]req_shift_open_date done [21:22:16]produce_requested_data done [21:22:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164393,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:22:16]process_action_free close_receipt [21:22:16]json_value_free [21:22:16]json_value_free done [21:22:16]process_json_proto returns [21:22:16]Send response to host [21:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164393,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:22:16]free response buf [21:22:16]execute_script done [21:22:16]execute_script returns [21:22:16]free content buf [21:22:16]Sock 7.Close socket [21:22:16]Sock 7.Thread stoped [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:38]accept exits with 9 [21:24:38]New connection [21:24:38]New thread 3067534692 created [21:24:38]Thread 3067391332 joined [21:24:38]Waiting for new connection... [21:24:38] Sock 9.Parse request [21:24:38]Sock 9.Check first char [21:24:38]Sock 9.First char is OK [21:24:38]request: POST /json_proto HTTP/1.0 [21:24:38]Method: POST [21:24:38]URL: /json_proto [21:24:38]Method is POST - this is cgi request [21:24:38]url: /json_proto [21:24:38]query_string will be loaded in cgi processing [21:24:38]execute_cgi json_proto POST (null) [21:24:38]execute_cgi path=json_proto method=POST [21:24:38]POST find Content-Length [21:24:38]Host: 172.17.56.4:8080 [21:24:38]Content-Length: 678 [21:24:38]Content-Type: application/json [21:24:38] [21:24:38]POST finish read [21:24:38]Found Content-Length = 678 [21:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:38]execute_script... [21:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:38]POST & json_proto [21:24:38]process_json_proto [21:24:38]json parsed OK: [21:24:38]protocol is kg_v1.0 [21:24:38]action value=close_receipt [21:24:38]process_action close_receipt [21:24:38]cmd_close_receipt [21:24:38]MH_GetDate [21:24:38]Write to MH i2c: F0 00 00 5F 0F 5D [21:24:38]Write i2c OK [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: F0 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: F0 09 00 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: F0 09 00 5F 0F 00 17 9F 91 66 C9 DC B2 64 CE [21:24:38]GetLastDocTimeStamp 1720819333 [21:24:38]current date 1720819479 [21:24:38]FM_GetShiftState [21:24:38]SAM_PROTO_GetShiftState [21:24:38]wFMCommunicate request_size=4 [21:24:38]MH_SAM_APDU [21:24:38]CAPDU: 80 13 01 00 [21:24:38]Write to MH i2c: E2 08 00 60 0F 80 13 01 00 00 00 00 00 EC [21:24:38]Write i2c OK [21:24:38]MH_I2C_Read... [21:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:38]Read from MH i2c: E2 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: E2 0E 00 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: E2 0E 00 60 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 36 [21:24:38]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:24:38]wFMCommunicate OK [21:24:38]SAM_PROTO_GetShiftState done [21:24:38]FM_GetShiftState done [21:24:38]opened in 1720744654 [21:24:38]opened+sec_in_day 1720831054 [21:24:38]quantity*price = 66063 [21:24:38]sum+1 = 66064 [21:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 315 12.07.2024 21:24 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164394 ФПД: 76231707827452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212439&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164394&fm=76231707827452&tin=02508201610067®Number=0000000000090829&sum=66000 [21:24:40]StoreToDocumentArchive [21:24:40]shift 445 fd 164394 [21:24:40]save to /storage/0445/doc_00164394 [21:24:40]save last doc name /storage/0445/doc_00164394 to /storage/kkm_last_doc_name [21:24:40]save OK [21:24:40]Clear old archive folders... [21:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:40]tlvbuf is 0158C550 [21:24:40]SAM_PROTO_ClearQueue [21:24:40]wFMCommunicate request_size=4 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 09 00 00 [21:24:40]Write to MH i2c: E2 08 00 6D 0F 80 09 00 00 00 00 00 00 EE [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:40]Read from MH i2c: E2 03 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 6D 0F 00 90 00 F0 [21:24:40]RAPDU: 90 00 [21:24:40]wFMCommunicate OK [21:24:40]SAM_PROTO_ClearQueue done [21:24:40]KKMCreateOFDPacket [21:24:40]OFDProtocolAddRootSTLVToBuf [21:24:40]FM_MakeSignedData [21:24:40]FM_MakeSignedData [21:24:40]SAM_PROTO_SignData [21:24:40]wFMCommunicate request_size=4 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 0D 01 02 [21:24:40]Write to MH i2c: E2 08 00 6E 0F 80 0D 01 02 00 00 00 00 F6 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 6E 0F 00 90 00 F1 [21:24:40]RAPDU: 90 00 [21:24:40]wFMCommunicate OK [21:24:40]wFMCommunicate request_size=255 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 17 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 82 02 00 35 04 06 00 45 [21:24:40]Write to MH i2c: E2 02 01 6F 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 17 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 82 02 00 35 04 06 00 45 00 00 4F [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 6F 0F 00 90 00 F2 [21:24:40]RAPDU: 90 00 [21:24:40]wFMCommunicate OK [21:24:40]wFMCommunicate request_size=10 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 0D 02 02 05 55 13 DD 9C FC [21:24:40]Write to MH i2c: E2 0D 00 70 0F 80 0D 02 02 05 00 55 13 DD 9C FC 00 00 E0 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 03 00 70 0F 00 90 00 F3 [21:24:40]RAPDU: 90 00 [21:24:40]wFMCommunicate OK [21:24:40]wFMCommunicate request_size=4 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 0D 03 02 [21:24:40]Write to MH i2c: E2 08 00 71 0F 80 0D 03 02 00 00 00 00 FB [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 0B 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 0B 00 71 0F 00 43 CA 9F 24 C6 7A A4 FC 90 00 AC [21:24:40]RAPDU: 43 CA 9F 24 C6 7A A4 FC 90 00 [21:24:40]wFMCommunicate OK [21:24:40]SAM_PROTO_SignData done [21:24:40]FM_MakeSignedData done [21:24:40]CreateOFDProtocolMessage [21:24:40]wFMCommunicate request_size=4 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 11 00 00 [21:24:40]Write to MH i2c: E2 08 00 72 0F 80 11 00 00 00 00 00 00 FB [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 17 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 17 00 72 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [21:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:24:40]wFMCommunicate OK [21:24:40]CreateOFDProtocolMessage done [21:24:40]OFDSenderStorePacket 164394 [21:24:40]StoreOFDPacket docnum=164394 [21:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 C9 07 01 0B CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 17 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 82 02 00 35 04 06 00 45 55 13 DD 9C FC 43 CA 9F 24 C6 7A A4 FC [21:24:40]CheckFolder [21:24:40]dirname=/storage/ofd_packets [21:24:40]CheckFolder done [21:24:40]ProducePacketName [21:24:40]name=ofd_packets/00164394 [21:24:40]NVStorageSaveData ofd_packets/00164394 [21:24:40]File name is /storage/ofd_packets/00164394 [21:24:40]Write 301 bytes [21:24:40]NVStorageSaveData done [21:24:40]OFDSenderStorePacket done [21:24:40]KKMCreateOFDPacket done [21:24:40]NVStorageSaveData kkm_last_timestamp [21:24:40]File name is /storage/kkm_last_timestamp [21:24:40]Write 4 bytes [21:24:40]NVStorageSaveData done [21:24:40]ExternCall_PrintAddStr [21:24:40]wPrintStart [21:24:40]Write to MH i2c: 01 00 00 73 0F 82 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 07 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 07 00 73 0F 00 00 00 00 00 FF 0F 97 [21:24:40]RasterBufferAndPrint [21:24:40]line Счет N : (1)458480 [21:24:40]line ИНН: 02508201610067 [21:24:40]line Контрольно-Кассовый Чек [21:24:40]line ПРОДАЖА [21:24:40]line ТРК (МРК, ГНК) : 12 [21:24:40]line Товар: 2710124130 [21:24:40]line Аи-92-К-5 [21:24:40]line 10.040 * 65.80 [21:24:40]line = 660.63 [21:24:40]line НДС 12% НСП 1% [21:24:40]line > о реализуемом товаре [21:24:40]line ОКРУГЛЕНИЕ: -0.63 [21:24:40]line ИТОГО: 660.00 [21:24:40]line Внесено: 660.00 [21:24:40]line СДАЧА: 0.00 [21:24:40]line НСП 1% : 5.85 [21:24:40]line НДС 12% : 70.15 [21:24:40]line Наличными: 660.00 [21:24:40]line Безнал.: 0.00 [21:24:40]line Место: АЗС № 72 "Партнер Нефть" [21:24:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:24:40]line СНО: Общий режим [21:24:40]line Чек 315 12.07.2024 21:24 [21:24:40]line Смена: 445 ФФД: 1.0 [21:24:40]line ЗНМ: 0300000160 [21:24:40]line РНМ: 0000000000090829 [21:24:40]line Версия ККМ: 001 [21:24:40]line ФМ: 0000000000874718 [21:24:40]line ФД: 164394 [21:24:40]line ФПД: 76231707827452 [21:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212439&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164394&fm=76231707827452&tin=02508201610067®Number=0000000000090829&sum=66000 [21:24:40]OFD Sender: Processing packet 164394 [packets to send 104, broken 103] [21:24:40]ProducePacketName [21:24:40]name=ofd_packets/00164394 [21:24:40]OFD Sender: To server: pG, [21:24:40]CommunicateWithHost lk.salyk.kg:30040 [21:24:40]ConnectInit lk.salyk.kg [21:24:40]written 0, free lines is 4095 [21:24:41]Connected sock=10 [21:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 C9 07 01 0B CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 17 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 82 02 00 35 04 06 00 45 55 13 DD 9C FC 43 CA 9F 24 C6 7A A4 FC [21:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DC 54 47 00 A6 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 34 37 31 38 10 04 04 00 2A 82 02 00 F4 03 04 00 AA 45 91 66 B6 04 01 00 00 D2 18 78 BD 12 EA A4 06 [21:24:41]CommunicateWithHost err = 0 [21:24:41]CheckOFDResponse [21:24:41]1017 (14) - 77093643461234 [21:24:41]1041 (16) - 0000000000874718 [21:24:41]1040 (4) - 164394 [21:24:41]1012 (4) - 12.07.2024 15:03 [21:24:41]1206 (1) - 0 [21:24:41]OFD Sender: Remove packet 164394 [21:24:41]ProducePacketName [21:24:41]name=ofd_packets/00164394 [21:24:41]NVStorageDeleteData [21:24:41]Write to MH i2c: 01 00 00 9D 0F AC [21:24:41]Write i2c OK [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: 01 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: 01 07 00 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: 01 07 00 9D 0F 00 00 00 00 00 0A 0D CA [21:24:41]RasterBufferAndPrint [21:24:41]line [21:24:41]line [21:24:41]line [21:24:41]line [21:24:41]line [21:24:41]written 0, free lines is 3344 [21:24:41]MH_Cut [21:24:41]Write to MH i2c: D1 01 00 A4 0F 01 85 [21:24:41]Write i2c OK [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: D1 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: D1 01 00 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: D1 01 00 A4 0F 00 84 [21:24:41]Write to MH i2c: 01 00 00 A5 0F B4 [21:24:41]Write i2c OK [21:24:41]MH_I2C_Read... [21:24:41]OFD Sender: No OFD packet to send [21:24:42]*** Cut start [21:24:42]*** Partial cut [21:24:42]*** CUTSNS_PIN = 1 [21:24:42]*** CUTSNS_PIN = 0 [21:24:42]*** Brake cut motor [21:24:42]Read from MH i2c: 01 [21:24:42]MH_I2C_Read... [21:24:42]*** Stop cut motor [21:24:42]*** Cut end [21:24:42]Read from MH i2c: 01 07 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: 01 07 00 A5 0F 00 00 00 00 00 FF 0F C9 [21:24:42]process_action close_receipt done [21:24:42]requested_data is exist [21:24:42]produce_requested_data [21:24:42]requested_item fm.sn is exist - process it [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 11 00 00 [21:24:42]Write to MH i2c: E2 08 00 A6 0F 80 11 00 00 00 00 00 00 2F [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 17 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 17 00 A6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [21:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:24:42]wFMCommunicate OK [21:24:42]requested_item fd.num is exist - process it [21:24:42]SAM_PROTO_GetFieldsCounters [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 13 00 00 [21:24:42]Write to MH i2c: E2 08 00 A7 0F 80 13 00 00 00 00 00 00 32 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 62 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 62 00 A7 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [21:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_GetFieldsCounters done [21:24:42]requested_item shift.num is exist - process it [21:24:42]requested_item shift.opened is exist - process it [21:24:42]req_shift_opened [21:24:42]FM_GetShiftState [21:24:42]SAM_PROTO_GetShiftState [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 13 01 00 [21:24:42]Write to MH i2c: E2 08 00 A8 0F 80 13 01 00 00 00 00 00 34 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 A8 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7E [21:24:42]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_GetShiftState done [21:24:42]FM_GetShiftState done [21:24:42]req_shift_opened done [21:24:42]requested_item shift.open_date is exist - process it [21:24:42]req_shift_open_date [21:24:42]req_shift_open_date done [21:24:42]produce_requested_data done [21:24:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164394,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:24:42]process_action_free close_receipt [21:24:42]json_value_free [21:24:42]json_value_free done [21:24:42]process_json_proto returns [21:24:42]Send response to host [21:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164394,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:24:42]free response buf [21:24:42]execute_script done [21:24:42]execute_script returns [21:24:42]free content buf [21:24:42]Sock 9.Close socket [21:24:42]Sock 9.Thread stoped [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]accept exits with 7 [21:27:11]New connection [21:27:11]New thread 3067391332 created [21:27:11]Thread 3067534692 joined [21:27:11]Waiting for new connection... [21:27:11] Sock 7.Parse request [21:27:11]Sock 7.Check first char [21:27:11]Sock 7.First char is OK [21:27:11]request: POST /json_proto HTTP/1.0 [21:27:11]Method: POST [21:27:11]URL: /json_proto [21:27:11]Method is POST - this is cgi request [21:27:11]url: /json_proto [21:27:11]query_string will be loaded in cgi processing [21:27:11]execute_cgi json_proto POST (null) [21:27:11]execute_cgi path=json_proto method=POST [21:27:11]POST find Content-Length [21:27:11]Host: 172.17.56.4:8080 [21:27:11]Content-Length: 677 [21:27:11]Content-Type: application/json [21:27:11] [21:27:11]POST finish read [21:27:11]Found Content-Length = 677 [21:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:27:11]execute_script... [21:27:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:27:11]POST & json_proto [21:27:11]process_json_proto [21:27:11]json parsed OK: [21:27:11]protocol is kg_v1.0 [21:27:11]action value=close_receipt [21:27:11]process_action close_receipt [21:27:11]cmd_close_receipt [21:27:11]MH_GetDate [21:27:11]Write to MH i2c: F0 00 00 A9 0F A7 [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: F0 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: F0 09 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: F0 09 00 A9 0F 00 AF 9F 91 66 C9 DC B2 64 B0 [21:27:11]GetLastDocTimeStamp 1720819479 [21:27:11]current date 1720819631 [21:27:11]FM_GetShiftState [21:27:11]SAM_PROTO_GetShiftState [21:27:11]wFMCommunicate request_size=4 [21:27:11]MH_SAM_APDU [21:27:11]CAPDU: 80 13 01 00 [21:27:11]Write to MH i2c: E2 08 00 AA 0F 80 13 01 00 00 00 00 00 36 [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:11]Read from MH i2c: E2 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 0E 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 0E 00 AA 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 80 [21:27:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:27:11]wFMCommunicate OK [21:27:11]SAM_PROTO_GetShiftState done [21:27:11]FM_GetShiftState done [21:27:11]opened in 1720744654 [21:27:11]opened+sec_in_day 1720831054 [21:27:11]quantity*price = 20003 [21:27:11]sum+1 = 20004 [21:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 316 12.07.2024 21:27 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164395 ФПД: 168911664390481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212712&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164395&fm=168911664390481&tin=02508201610067®Number=0000000000090829&sum=20000 [21:27:12]StoreToDocumentArchive [21:27:12]shift 445 fd 164395 [21:27:12]save to /storage/0445/doc_00164395 [21:27:12]save last doc name /storage/0445/doc_00164395 to /storage/kkm_last_doc_name [21:27:12]save OK [21:27:12]Clear old archive folders... [21:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:12]tlvbuf is 015DBE30 [21:27:12]SAM_PROTO_ClearQueue [21:27:12]wFMCommunicate request_size=4 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 09 00 00 [21:27:12]Write to MH i2c: E2 08 00 B7 0F 80 09 00 00 00 00 00 00 38 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 B7 0F 00 90 00 3A [21:27:12]RAPDU: 90 00 [21:27:12]wFMCommunicate OK [21:27:12]SAM_PROTO_ClearQueue done [21:27:12]KKMCreateOFDPacket [21:27:12]OFDProtocolAddRootSTLVToBuf [21:27:12]FM_MakeSignedData [21:27:12]FM_MakeSignedData [21:27:12]SAM_PROTO_SignData [21:27:12]wFMCommunicate request_size=4 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 0D 01 02 [21:27:12]Write to MH i2c: E2 08 00 B8 0F 80 0D 01 02 00 00 00 00 40 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:12]Read from MH i2c: E2 03 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 B8 0F 00 90 00 3B [21:27:12]RAPDU: 90 00 [21:27:12]wFMCommunicate OK [21:27:12]wFMCommunicate request_size=255 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 B0 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 82 02 00 35 04 06 00 99 [21:27:12]Write to MH i2c: E2 02 01 B9 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 B0 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 82 02 00 35 04 06 00 99 00 00 E3 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [21:27:12]RAPDU: 90 00 [21:27:12]wFMCommunicate OK [21:27:12]wFMCommunicate request_size=10 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 0D 02 02 05 9F CF C1 21 51 [21:27:12]Write to MH i2c: E2 0D 00 BA 0F 80 0D 02 02 05 00 9F CF C1 21 51 00 00 EE [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [21:27:12]RAPDU: 90 00 [21:27:12]wFMCommunicate OK [21:27:12]wFMCommunicate request_size=4 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 0D 03 02 [21:27:12]Write to MH i2c: E2 08 00 BB 0F 80 0D 03 02 00 00 00 00 45 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 0B 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 0B 00 BB 0F 00 AE DE DE DF 79 92 95 E9 90 00 18 [21:27:12]RAPDU: AE DE DE DF 79 92 95 E9 90 00 [21:27:12]wFMCommunicate OK [21:27:12]SAM_PROTO_SignData done [21:27:12]FM_MakeSignedData done [21:27:12]CreateOFDProtocolMessage [21:27:12]wFMCommunicate request_size=4 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 11 00 00 [21:27:12]Write to MH i2c: E2 08 00 BC 0F 80 11 00 00 00 00 00 00 45 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 17 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 17 00 BC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [21:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:27:12]wFMCommunicate OK [21:27:12]CreateOFDProtocolMessage done [21:27:12]OFDSenderStorePacket 164395 [21:27:12]StoreOFDPacket docnum=164395 [21:27:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 70 86 07 01 46 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 B0 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 82 02 00 35 04 06 00 99 9F CF C1 21 51 AE DE DE DF 79 92 95 E9 [21:27:12]CheckFolder [21:27:12]dirname=/storage/ofd_packets [21:27:12]CheckFolder done [21:27:12]ProducePacketName [21:27:12]name=ofd_packets/00164395 [21:27:12]NVStorageSaveData ofd_packets/00164395 [21:27:12]File name is /storage/ofd_packets/00164395 [21:27:12]Write 301 bytes [21:27:12]NVStorageSaveData done [21:27:12]OFDSenderStorePacket done [21:27:12]KKMCreateOFDPacket done [21:27:12]NVStorageSaveData kkm_last_timestamp [21:27:12]File name is /storage/kkm_last_timestamp [21:27:12]Write 4 bytes [21:27:12]NVStorageSaveData done [21:27:12]ExternCall_PrintAddStr [21:27:12]wPrintStart [21:27:12]Write to MH i2c: 01 00 00 BD 0F CC [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: 01 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: 01 07 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: 01 07 00 BD 0F 00 00 00 00 00 FF 0F E1 [21:27:12]RasterBufferAndPrint [21:27:12]line Счет N : (1)458482 [21:27:12]line ИНН: 02508201610067 [21:27:12]line Контрольно-Кассовый Чек [21:27:12]line ПРОДАЖА [21:27:12]line ТРК (МРК, ГНК) : 22 [21:27:12]line Товар: 2710124130 [21:27:12]line Аи-92-К-5 [21:27:12]line 3.040 * 65.80 [21:27:12]line = 200.03 [21:27:12]line НДС 12% НСП 1% [21:27:12]line > о реализуемом товаре [21:27:12]line ОКРУГЛЕНИЕ: -0.03 [21:27:12]line ИТОГО: 200.00 [21:27:12]line Внесено: 200.00 [21:27:12]line СДАЧА: 0.00 [21:27:12]line НСП 1% : 1.77 [21:27:12]line НДС 12% : 21.24 [21:27:12]line Наличными: 200.00 [21:27:12]line Безнал.: 0.00 [21:27:12]line Место: АЗС № 72 "Партнер Нефть" [21:27:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:27:12]line СНО: Общий режим [21:27:12]line Чек 316 12.07.2024 21:27 [21:27:12]line Смена: 445 ФФД: 1.0 [21:27:12]line ЗНМ: 0300000160 [21:27:12]line РНМ: 0000000000090829 [21:27:12]line Версия ККМ: 001 [21:27:12]line ФМ: 0000000000874718 [21:27:12]line ФД: 164395 [21:27:12]line ФПД: 168911664390481 [21:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212712&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164395&fm=168911664390481&tin=02508201610067®Number=0000000000090829&sum=20000 [21:27:13]OFD Sender: Processing packet 164395 [packets to send 104, broken 103] [21:27:13]ProducePacketName [21:27:13]name=ofd_packets/00164395 [21:27:13]OFD Sender: To server: pG, [21:27:13]CommunicateWithHost lk.salyk.kg:30040 [21:27:13]ConnectInit lk.salyk.kg [21:27:13]written 0, free lines is 4095 [21:27:13]Connected sock=10 [21:27:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 70 86 07 01 46 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 B0 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 82 02 00 35 04 06 00 99 9F CF C1 21 51 AE DE DE DF 79 92 95 E9 [21:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 06 D7 47 00 27 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 34 37 31 38 10 04 04 00 2B 82 02 00 F4 03 04 00 43 46 91 66 B6 04 01 00 00 1F 7F 60 55 F1 ED 11 99 [21:27:13]CommunicateWithHost err = 0 [21:27:13]CheckOFDResponse [21:27:13]1017 (14) - 77093643461234 [21:27:13]1041 (16) - 0000000000874718 [21:27:13]1040 (4) - 164395 [21:27:13]1012 (4) - 12.07.2024 15:05 [21:27:13]1206 (1) - 0 [21:27:13]OFD Sender: Remove packet 164395 [21:27:13]ProducePacketName [21:27:13]name=ofd_packets/00164395 [21:27:13]NVStorageDeleteData [21:27:13]Write to MH i2c: 01 00 00 E7 0F F6 [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 07 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 07 00 E7 0F 00 00 00 00 00 FA 0C 03 [21:27:13]RasterBufferAndPrint [21:27:13]line [21:27:13]line [21:27:13]line [21:27:13]line [21:27:13]line [21:27:13]written 0, free lines is 3328 [21:27:13]MH_Cut [21:27:13]Write to MH i2c: D1 01 00 EE 0F 01 CF [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: D1 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: D1 01 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: D1 01 00 EE 0F 00 CE [21:27:13]Write to MH i2c: 01 00 00 EF 0F FE [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]OFD Sender: No OFD packet to send [21:27:14]*** Cut start [21:27:14]*** Partial cut [21:27:14]*** CUTSNS_PIN = 1 [21:27:14]*** CUTSNS_PIN = 0 [21:27:14]*** Brake cut motor [21:27:14]Read from MH i2c: 01 [21:27:14]MH_I2C_Read... [21:27:14]*** Stop cut motor [21:27:14]*** Cut end [21:27:14]Read from MH i2c: 01 07 00 [21:27:14]MH_I2C_Read... [21:27:14]Read from MH i2c: 01 07 00 EF 0F 00 00 00 00 00 FF 0F 13 [21:27:14]process_action close_receipt done [21:27:14]requested_data is exist [21:27:14]produce_requested_data [21:27:14]requested_item fm.sn is exist - process it [21:27:14]wFMCommunicate request_size=4 [21:27:14]MH_SAM_APDU [21:27:14]CAPDU: 80 11 00 00 [21:27:14]Write to MH i2c: E2 08 00 F0 0F 80 11 00 00 00 00 00 00 79 [21:27:14]Write i2c OK [21:27:14]MH_I2C_Read... [21:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:14]Read from MH i2c: E2 [21:27:14]MH_I2C_Read... [21:27:14]Read from MH i2c: E2 17 00 [21:27:14]MH_I2C_Read... [21:27:14]Read from MH i2c: E2 17 00 F0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [21:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:27:14]wFMCommunicate OK [21:27:14]requested_item fd.num is exist - process it [21:27:14]SAM_PROTO_GetFieldsCounters [21:27:14]wFMCommunicate request_size=4 [21:27:14]MH_SAM_APDU [21:27:14]CAPDU: 80 13 00 00 [21:27:14]Write to MH i2c: E2 08 00 F1 0F 80 13 00 00 00 00 00 00 7C [21:27:14]Write i2c OK [21:27:14]MH_I2C_Read... [21:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:15]Read from MH i2c: E2 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 62 00 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 62 00 F1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [21:27:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:15]wFMCommunicate OK [21:27:15]SAM_PROTO_GetFieldsCounters done [21:27:15]requested_item shift.num is exist - process it [21:27:15]requested_item shift.opened is exist - process it [21:27:15]req_shift_opened [21:27:15]FM_GetShiftState [21:27:15]SAM_PROTO_GetShiftState [21:27:15]wFMCommunicate request_size=4 [21:27:15]MH_SAM_APDU [21:27:15]CAPDU: 80 13 01 00 [21:27:15]Write to MH i2c: E2 08 00 F2 0F 80 13 01 00 00 00 00 00 7E [21:27:15]Write i2c OK [21:27:15]MH_I2C_Read... [21:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:15]Read from MH i2c: E2 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 0E 00 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 0E 00 F2 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C8 [21:27:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:27:15]wFMCommunicate OK [21:27:15]SAM_PROTO_GetShiftState done [21:27:15]FM_GetShiftState done [21:27:15]req_shift_opened done [21:27:15]requested_item shift.open_date is exist - process it [21:27:15]req_shift_open_date [21:27:15]req_shift_open_date done [21:27:15]produce_requested_data done [21:27:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164395,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:27:15]process_action_free close_receipt [21:27:15]json_value_free [21:27:15]json_value_free done [21:27:15]process_json_proto returns [21:27:15]Send response to host [21:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164395,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:27:15]free response buf [21:27:15]execute_script done [21:27:15]execute_script returns [21:27:15]free content buf [21:27:15]Sock 7.Close socket [21:27:15]Sock 7.Thread stoped [21:27:15]accept exits with 9 [21:27:15]New connection [21:27:15]New thread 3067534692 created [21:27:15]Thread 3067391332 joined [21:27:15]Waiting for new connection... [21:27:15] Sock 9.Parse request [21:27:15]Sock 9.Check first char [21:27:15]Sock 9.First char is OK [21:27:15]request: POST /json_proto HTTP/1.0 [21:27:15]Method: POST [21:27:15]URL: /json_proto [21:27:15]Method is POST - this is cgi request [21:27:15]url: /json_proto [21:27:15]query_string will be loaded in cgi processing [21:27:15]execute_cgi json_proto POST (null) [21:27:15]execute_cgi path=json_proto method=POST [21:27:15]POST find Content-Length [21:27:15]Host: 172.17.56.4:8080 [21:27:15]Content-Length: 677 [21:27:15]Content-Type: application/json [21:27:15] [21:27:15]POST finish read [21:27:15]Found Content-Length = 677 [21:27:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:15]execute_script... [21:27: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)458481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:15]POST & json_proto [21:27:15]process_json_proto [21:27:15]json parsed OK: [21:27:15]protocol is kg_v1.0 [21:27:15]action value=close_receipt [21:27:15]process_action close_receipt [21:27:15]cmd_close_receipt [21:27:15]MH_GetDate [21:27:15]Write to MH i2c: F0 00 00 F3 0F F1 [21:27:15]Write i2c OK [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: F0 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: F0 09 00 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: F0 09 00 F3 0F 00 B4 9F 91 66 C9 DC B2 64 FF [21:27:15]GetLastDocTimeStamp 1720819632 [21:27:15]current date 1720819636 [21:27:15]FM_GetShiftState [21:27:15]SAM_PROTO_GetShiftState [21:27:15]wFMCommunicate request_size=4 [21:27:15]MH_SAM_APDU [21:27:15]CAPDU: 80 13 01 00 [21:27:15]Write to MH i2c: E2 08 00 F4 0F 80 13 01 00 00 00 00 00 80 [21:27:15]Write i2c OK [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 [21:27:15]MH_I2C_Read... [21:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:15]Read from MH i2c: E2 0E 00 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 0E 00 F4 0F 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CA [21:27:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:27:15]wFMCommunicate OK [21:27:15]SAM_PROTO_GetShiftState done [21:27:15]FM_GetShiftState done [21:27:15]opened in 1720744654 [21:27:15]opened+sec_in_day 1720831054 [21:27:15]quantity*price = 60009 [21:27:15]sum+1 = 60011 [21:27:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 317 12.07.2024 21:27 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164396 ФПД: 16491146196603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212716&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164396&fm=16491146196603&tin=02508201610067®Number=0000000000090829&sum=60000 [21:27:17]StoreToDocumentArchive [21:27:17]shift 445 fd 164396 [21:27:17]save to /storage/0445/doc_00164396 [21:27:17]save last doc name /storage/0445/doc_00164396 to /storage/kkm_last_doc_name [21:27:17]save OK [21:27:17]Clear old archive folders... [21:27:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:17]tlvbuf is 015EEFA0 [21:27:17]SAM_PROTO_ClearQueue [21:27:17]wFMCommunicate request_size=4 [21:27:17]MH_SAM_APDU [21:27:17]CAPDU: 80 09 00 00 [21:27:17]Write to MH i2c: E2 08 00 01 10 80 09 00 00 00 00 00 00 83 [21:27:17]Write i2c OK [21:27:17]MH_I2C_Read... [21:27:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:17]Read from MH i2c: E2 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 03 00 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 03 00 01 10 00 90 00 85 [21:27:17]RAPDU: 90 00 [21:27:17]wFMCommunicate OK [21:27:17]SAM_PROTO_ClearQueue done [21:27:17]KKMCreateOFDPacket [21:27:17]OFDProtocolAddRootSTLVToBuf [21:27:17]FM_MakeSignedData [21:27:17]FM_MakeSignedData [21:27:17]SAM_PROTO_SignData [21:27:17]wFMCommunicate request_size=4 [21:27:17]MH_SAM_APDU [21:27:17]CAPDU: 80 0D 01 02 [21:27:17]Write to MH i2c: E2 08 00 02 10 80 0D 01 02 00 00 00 00 8B [21:27:17]Write i2c OK [21:27:17]MH_I2C_Read... [21:27:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:17]Read from MH i2c: E2 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 03 00 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 03 00 02 10 00 90 00 86 [21:27:17]RAPDU: 90 00 [21:27:17]wFMCommunicate OK [21:27:17]wFMCommunicate request_size=255 [21:27:17]MH_SAM_APDU [21:27: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 01 00 00 F4 03 04 00 B4 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 82 02 00 35 04 06 00 0E [21:27:17]Write to MH i2c: E2 02 01 03 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 01 00 00 F4 03 04 00 B4 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 82 02 00 35 04 06 00 0E 00 00 29 [21:27:17]Write i2c OK [21:27:17]MH_I2C_Read... [21:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:17]Read from MH i2c: E2 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 03 00 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [21:27:17]RAPDU: 90 00 [21:27:17]wFMCommunicate OK [21:27:17]wFMCommunicate request_size=10 [21:27:17]MH_SAM_APDU [21:27:17]CAPDU: 80 0D 02 02 05 FF A4 E9 36 7B [21:27:17]Write to MH i2c: E2 0D 00 04 10 80 0D 02 02 05 00 FF A4 E9 36 7B 00 00 D5 [21:27:17]Write i2c OK [21:27:17]MH_I2C_Read... [21:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:17]Read from MH i2c: E2 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 03 00 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 03 00 04 10 00 90 00 88 [21:27:17]RAPDU: 90 00 [21:27:17]wFMCommunicate OK [21:27:17]wFMCommunicate request_size=4 [21:27:17]MH_SAM_APDU [21:27:17]CAPDU: 80 0D 03 02 [21:27:17]Write to MH i2c: E2 08 00 05 10 80 0D 03 02 00 00 00 00 90 [21:27:17]Write i2c OK [21:27:17]MH_I2C_Read... [21:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:17]Read from MH i2c: E2 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 0B 00 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 0B 00 05 10 00 E9 7A 71 4B F8 E8 E0 B2 90 00 22 [21:27:17]RAPDU: E9 7A 71 4B F8 E8 E0 B2 90 00 [21:27:17]wFMCommunicate OK [21:27:17]SAM_PROTO_SignData done [21:27:17]FM_MakeSignedData done [21:27:17]CreateOFDProtocolMessage [21:27:17]wFMCommunicate request_size=4 [21:27:17]MH_SAM_APDU [21:27:17]CAPDU: 80 11 00 00 [21:27:17]Write to MH i2c: E2 08 00 06 10 80 11 00 00 00 00 00 00 90 [21:27:17]Write i2c OK [21:27:17]MH_I2C_Read... [21:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:17]Read from MH i2c: E2 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 17 00 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: E2 17 00 06 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [21:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:27:17]wFMCommunicate OK [21:27:17]CreateOFDProtocolMessage done [21:27:17]OFDSenderStorePacket 164396 [21:27:17]StoreOFDPacket docnum=164396 [21:27:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E5 D6 07 01 42 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 01 00 00 F4 03 04 00 B4 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 82 02 00 35 04 06 00 0E FF A4 E9 36 7B E9 7A 71 4B F8 E8 E0 B2 [21:27:17]CheckFolder [21:27:17]dirname=/storage/ofd_packets [21:27:17]CheckFolder done [21:27:17]ProducePacketName [21:27:17]name=ofd_packets/00164396 [21:27:17]NVStorageSaveData ofd_packets/00164396 [21:27:17]File name is /storage/ofd_packets/00164396 [21:27:17]Write 301 bytes [21:27:17]NVStorageSaveData done [21:27:17]OFDSenderStorePacket done [21:27:17]KKMCreateOFDPacket done [21:27:17]NVStorageSaveData kkm_last_timestamp [21:27:17]File name is /storage/kkm_last_timestamp [21:27:17]Write 4 bytes [21:27:17]NVStorageSaveData done [21:27:17]ExternCall_PrintAddStr [21:27:17]wPrintStart [21:27:17]Write to MH i2c: 01 00 00 07 10 17 [21:27:17]Write i2c OK [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: 01 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: 01 07 00 [21:27:17]MH_I2C_Read... [21:27:17]Read from MH i2c: 01 07 00 07 10 00 00 00 00 00 FF 0F 2C [21:27:17]RasterBufferAndPrint [21:27:17]line Счет N : (1)458481 [21:27:17]line ИНН: 02508201610067 [21:27:17]line Контрольно-Кассовый Чек [21:27:17]line ПРОДАЖА [21:27:17]line ТРК (МРК, ГНК) : 12 [21:27:17]line Товар: 2710124130 [21:27:17]line Аи-92-К-5 [21:27:17]line 9.120 * 65.80 [21:27:17]line = 600.10 [21:27:17]line НДС 12% НСП 1% [21:27:17]line > о реализуемом товаре [21:27:17]line ОКРУГЛЕНИЕ: -0.10 [21:27:17]line ИТОГО: 600.00 [21:27:17]line Внесено: 600.00 [21:27:17]line СДАЧА: 0.00 [21:27:17]line НСП 1% : 5.31 [21:27:17]line НДС 12% : 63.73 [21:27:17]line Наличными: 600.00 [21:27:17]line Безнал.: 0.00 [21:27:17]line Место: АЗС № 72 "Партнер Нефть" [21:27:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:27:17]line СНО: Общий режим [21:27:17]line Чек 317 12.07.2024 21:27 [21:27:17]line Смена: 445 ФФД: 1.0 [21:27:17]line ЗНМ: 0300000160 [21:27:17]line РНМ: 0000000000090829 [21:27:17]line Версия ККМ: 001 [21:27:17]line ФМ: 0000000000874718 [21:27:17]line ФД: 164396 [21:27:17]line ФПД: 16491146196603 [21:27:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212716&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164396&fm=16491146196603&tin=02508201610067®Number=0000000000090829&sum=60000 [21:27:17]OFD Sender: Processing packet 164396 [packets to send 104, broken 103] [21:27:17]ProducePacketName [21:27:17]name=ofd_packets/00164396 [21:27:17]OFD Sender: To server: pG, [21:27:17]CommunicateWithHost lk.salyk.kg:30040 [21:27:17]ConnectInit lk.salyk.kg [21:27:17]written 0, free lines is 4095 [21:27:18]Connected sock=10 [21:27:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E5 D6 07 01 42 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 01 00 00 F4 03 04 00 B4 9F 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 82 02 00 35 04 06 00 0E FF A4 E9 36 7B E9 7A 71 4B F8 E8 E0 B2 [21:27:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 16 B5 47 00 E9 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 34 37 31 38 10 04 04 00 2C 82 02 00 F4 03 04 00 47 46 91 66 B6 04 01 00 00 8D CC 32 0F 14 2E F7 82 [21:27:18]CommunicateWithHost err = 0 [21:27:18]CheckOFDResponse [21:27:18]1017 (14) - 77093643461234 [21:27:18]1041 (16) - 0000000000874718 [21:27:18]1040 (4) - 164396 [21:27:18]1012 (4) - 12.07.2024 15:05 [21:27:18]1206 (1) - 0 [21:27:18]OFD Sender: Remove packet 164396 [21:27:18]ProducePacketName [21:27:18]name=ofd_packets/00164396 [21:27:18]NVStorageDeleteData [21:27:18]Write to MH i2c: 01 00 00 31 10 41 [21:27:18]Write i2c OK [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: 01 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: 01 07 00 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 02 0D 57 [21:27:18]RasterBufferAndPrint [21:27:18]line [21:27:18]line [21:27:18]line [21:27:18]line [21:27:18]line [21:27:18]written 0, free lines is 3342 [21:27:18]MH_Cut [21:27:18]Write to MH i2c: D1 01 00 38 10 01 1A [21:27:18]Write i2c OK [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: D1 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: D1 01 00 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: D1 01 00 38 10 00 19 [21:27:18]Write to MH i2c: 01 00 00 39 10 49 [21:27:18]Write i2c OK [21:27:18]MH_I2C_Read... [21:27:18]OFD Sender: No OFD packet to send [21:27:19]*** Cut start [21:27:19]*** Partial cut [21:27:19]*** CUTSNS_PIN = 1 [21:27:19]*** CUTSNS_PIN = 0 [21:27:19]*** Brake cut motor [21:27:19]Read from MH i2c: 01 [21:27:19]MH_I2C_Read... [21:27:19]*** Stop cut motor [21:27:19]*** Cut end [21:27:19]Read from MH i2c: 01 07 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: 01 07 00 39 10 00 00 00 00 00 FF 0F 5E [21:27:19]process_action close_receipt done [21:27:19]requested_data is exist [21:27:19]produce_requested_data [21:27:19]requested_item fm.sn is exist - process it [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 11 00 00 [21:27:19]Write to MH i2c: E2 08 00 3A 10 80 11 00 00 00 00 00 00 C4 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 17 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 17 00 3A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [21:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:27:19]wFMCommunicate OK [21:27:19]requested_item fd.num is exist - process it [21:27:19]SAM_PROTO_GetFieldsCounters [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 13 00 00 [21:27:19]Write to MH i2c: E2 08 00 3B 10 80 13 00 00 00 00 00 00 C7 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 62 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 62 00 3B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [21:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:19]wFMCommunicate OK [21:27:19]SAM_PROTO_GetFieldsCounters done [21:27:19]requested_item shift.num is exist - process it [21:27:19]requested_item shift.opened is exist - process it [21:27:19]req_shift_opened [21:27:19]FM_GetShiftState [21:27:19]SAM_PROTO_GetShiftState [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 13 01 00 [21:27:19]Write to MH i2c: E2 08 00 3C 10 80 13 01 00 00 00 00 00 C9 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 0E 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 0E 00 3C 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 13 [21:27:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:27:19]wFMCommunicate OK [21:27:19]SAM_PROTO_GetShiftState done [21:27:19]FM_GetShiftState done [21:27:19]req_shift_opened done [21:27:19]requested_item shift.open_date is exist - process it [21:27:19]req_shift_open_date [21:27:19]req_shift_open_date done [21:27:19]produce_requested_data done [21:27:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164396,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:27:19]process_action_free close_receipt [21:27:19]json_value_free [21:27:19]json_value_free done [21:27:19]process_json_proto returns [21:27:19]Send response to host [21:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164396,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:27:19]free response buf [21:27:19]execute_script done [21:27:19]execute_script returns [21:27:19]free content buf [21:27:19]Sock 9.Close socket [21:27:19]Sock 9.Thread stoped [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]accept exits with 7 [21:28:43]New connection [21:28:43]New thread 3067391332 created [21:28:43]Thread 3067534692 joined [21:28:43]Waiting for new connection... [21:28:43] Sock 7.Parse request [21:28:43]Sock 7.Check first char [21:28:43]Sock 7.First char is OK [21:28:43]request: POST /json_proto HTTP/1.0 [21:28:43]Method: POST [21:28:43]URL: /json_proto [21:28:43]Method is POST - this is cgi request [21:28:43]url: /json_proto [21:28:43]query_string will be loaded in cgi processing [21:28:43]execute_cgi json_proto POST (null) [21:28:43]execute_cgi path=json_proto method=POST [21:28:43]POST find Content-Length [21:28:43]Host: 172.17.56.4:8080 [21:28:43]Content-Length: 677 [21:28:43]Content-Type: application/json [21:28:43] [21:28:43]POST finish read [21:28:43]Found Content-Length = 677 [21:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:28:43]execute_script... [21:28:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:28:43]POST & json_proto [21:28:43]process_json_proto [21:28:43]json parsed OK: [21:28:43]protocol is kg_v1.0 [21:28:43]action value=close_receipt [21:28:43]process_action close_receipt [21:28:43]cmd_close_receipt [21:28:43]MH_GetDate [21:28:43]Write to MH i2c: F0 00 00 3D 10 3C [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: F0 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: F0 09 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: F0 09 00 3D 10 00 0C A0 91 66 C9 DC B2 64 A3 [21:28:43]GetLastDocTimeStamp 1720819636 [21:28:43]current date 1720819724 [21:28:43]FM_GetShiftState [21:28:43]SAM_PROTO_GetShiftState [21:28:43]wFMCommunicate request_size=4 [21:28:43]MH_SAM_APDU [21:28:43]CAPDU: 80 13 01 00 [21:28:43]Write to MH i2c: E2 08 00 3E 10 80 13 01 00 00 00 00 00 CB [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:43]Read from MH i2c: E2 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 0E 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 0E 00 3E 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 15 [21:28:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:28:43]wFMCommunicate OK [21:28:43]SAM_PROTO_GetShiftState done [21:28:43]FM_GetShiftState done [21:28:43]opened in 1720744654 [21:28:43]opened+sec_in_day 1720831054 [21:28:43]quantity*price = 20003 [21:28:43]sum+1 = 20004 [21:28:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 318 12.07.2024 21:28 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164397 ФПД: 226879483260132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164397&fm=226879483260132&tin=02508201610067®Number=0000000000090829&sum=20000 [21:28:44]StoreToDocumentArchive [21:28:44]shift 445 fd 164397 [21:28:44]save to /storage/0445/doc_00164397 [21:28:44]save last doc name /storage/0445/doc_00164397 to /storage/kkm_last_doc_name [21:28:44]save OK [21:28:44]Clear old archive folders... [21:28:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:28:44]tlvbuf is 015B0670 [21:28:44]SAM_PROTO_ClearQueue [21:28:44]wFMCommunicate request_size=4 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 09 00 00 [21:28:44]Write to MH i2c: E2 08 00 4B 10 80 09 00 00 00 00 00 00 CD [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:44]Read from MH i2c: E2 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [21:28:44]RAPDU: 90 00 [21:28:44]wFMCommunicate OK [21:28:44]SAM_PROTO_ClearQueue done [21:28:44]KKMCreateOFDPacket [21:28:44]OFDProtocolAddRootSTLVToBuf [21:28:44]FM_MakeSignedData [21:28:44]FM_MakeSignedData [21:28:44]SAM_PROTO_SignData [21:28:44]wFMCommunicate request_size=4 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 0D 01 02 [21:28:44]Write to MH i2c: E2 08 00 4C 10 80 0D 01 02 00 00 00 00 D5 [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [21:28:45]RAPDU: 90 00 [21:28:45]wFMCommunicate OK [21:28:45]wFMCommunicate request_size=255 [21:28:45]MH_SAM_APDU [21:28: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 3E 01 00 00 F4 03 04 00 0C A0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 82 02 00 35 04 06 00 CE [21:28:45]Write to MH i2c: E2 02 01 4D 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 3E 01 00 00 F4 03 04 00 0C A0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 82 02 00 35 04 06 00 CE 00 00 0E [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 4D 10 00 90 00 D1 [21:28:45]RAPDU: 90 00 [21:28:45]wFMCommunicate OK [21:28:45]wFMCommunicate request_size=10 [21:28:45]MH_SAM_APDU [21:28:45]CAPDU: 80 0D 02 02 05 58 7F 01 AC E4 [21:28:45]Write to MH i2c: E2 0D 00 4E 10 80 0D 02 02 05 00 58 7F 01 AC E4 00 00 4A [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 4E 10 00 90 00 D2 [21:28:45]RAPDU: 90 00 [21:28:45]wFMCommunicate OK [21:28:45]wFMCommunicate request_size=4 [21:28:45]MH_SAM_APDU [21:28:45]CAPDU: 80 0D 03 02 [21:28:45]Write to MH i2c: E2 08 00 4F 10 80 0D 03 02 00 00 00 00 DA [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 0B 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 0B 00 4F 10 00 FE AC A2 B6 9D 64 5C 67 90 00 A1 [21:28:45]RAPDU: FE AC A2 B6 9D 64 5C 67 90 00 [21:28:45]wFMCommunicate OK [21:28:45]SAM_PROTO_SignData done [21:28:45]FM_MakeSignedData done [21:28:45]CreateOFDProtocolMessage [21:28:45]wFMCommunicate request_size=4 [21:28:45]MH_SAM_APDU [21:28:45]CAPDU: 80 11 00 00 [21:28:45]Write to MH i2c: E2 08 00 50 10 80 11 00 00 00 00 00 00 DA [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 17 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 17 00 50 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [21:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:28:45]wFMCommunicate OK [21:28:45]CreateOFDProtocolMessage done [21:28:45]OFDSenderStorePacket 164397 [21:28:45]StoreOFDPacket docnum=164397 [21:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7E B8 07 01 C6 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 3E 01 00 00 F4 03 04 00 0C A0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 82 02 00 35 04 06 00 CE 58 7F 01 AC E4 FE AC A2 B6 9D 64 5C 67 [21:28:45]CheckFolder [21:28:45]dirname=/storage/ofd_packets [21:28:45]CheckFolder done [21:28:45]ProducePacketName [21:28:45]name=ofd_packets/00164397 [21:28:45]NVStorageSaveData ofd_packets/00164397 [21:28:45]File name is /storage/ofd_packets/00164397 [21:28:45]Write 301 bytes [21:28:45]NVStorageSaveData done [21:28:45]OFDSenderStorePacket done [21:28:45]KKMCreateOFDPacket done [21:28:45]NVStorageSaveData kkm_last_timestamp [21:28:45]File name is /storage/kkm_last_timestamp [21:28:45]Write 4 bytes [21:28:45]NVStorageSaveData done [21:28:45]ExternCall_PrintAddStr [21:28:45]wPrintStart [21:28:45]Write to MH i2c: 01 00 00 51 10 61 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 07 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 07 00 51 10 00 00 00 00 00 FF 0F 76 [21:28:45]RasterBufferAndPrint [21:28:45]line Счет N : (1)458483 [21:28:45]line ИНН: 02508201610067 [21:28:45]line Контрольно-Кассовый Чек [21:28:45]line ПРОДАЖА [21:28:45]line ТРК (МРК, ГНК) : 22 [21:28:45]line Товар: 2710124130 [21:28:45]line Аи-92-К-5 [21:28:45]line 3.040 * 65.80 [21:28:45]line = 200.03 [21:28:45]line НДС 12% НСП 1% [21:28:45]line > о реализуемом товаре [21:28:45]line ОКРУГЛЕНИЕ: -0.03 [21:28:45]line ИТОГО: 200.00 [21:28:45]line Внесено: 200.00 [21:28:45]line СДАЧА: 0.00 [21:28:45]line НСП 1% : 1.77 [21:28:45]line НДС 12% : 21.24 [21:28:45]line Наличными: 200.00 [21:28:45]line Безнал.: 0.00 [21:28:45]line Место: АЗС № 72 "Партнер Нефть" [21:28:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:28:45]line СНО: Общий режим [21:28:45]line Чек 318 12.07.2024 21:28 [21:28:45]line Смена: 445 ФФД: 1.0 [21:28:45]line ЗНМ: 0300000160 [21:28:45]line РНМ: 0000000000090829 [21:28:45]line Версия ККМ: 001 [21:28:45]line ФМ: 0000000000874718 [21:28:45]line ФД: 164397 [21:28:45]line ФПД: 226879483260132 [21:28:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T212844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164397&fm=226879483260132&tin=02508201610067®Number=0000000000090829&sum=20000 [21:28:45]OFD Sender: Processing packet 164397 [packets to send 104, broken 103] [21:28:45]ProducePacketName [21:28:45]name=ofd_packets/00164397 [21:28:45]OFD Sender: To server: pG, [21:28:45]CommunicateWithHost lk.salyk.kg:30040 [21:28:45]ConnectInit lk.salyk.kg [21:28:45]written 0, free lines is 4095 [21:28:45]Connected sock=10 [21:28:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7E B8 07 01 C6 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 3E 01 00 00 F4 03 04 00 0C A0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 82 02 00 35 04 06 00 CE 58 7F 01 AC E4 FE AC A2 B6 9D 64 5C 67 [21:28:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FC 1B 47 00 36 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 34 37 31 38 10 04 04 00 2D 82 02 00 F4 03 04 00 9F 46 91 66 B6 04 01 00 00 A3 32 D5 19 21 32 E0 18 [21:28:46]CommunicateWithHost err = 0 [21:28:46]CheckOFDResponse [21:28:46]1017 (14) - 77093643461234 [21:28:46]1041 (16) - 0000000000874718 [21:28:46]1040 (4) - 164397 [21:28:46]1012 (4) - 12.07.2024 15:07 [21:28:46]1206 (1) - 0 [21:28:46]OFD Sender: Remove packet 164397 [21:28:46]ProducePacketName [21:28:46]name=ofd_packets/00164397 [21:28:46]NVStorageDeleteData [21:28:46]Write to MH i2c: 01 00 00 7B 10 8B [21:28:46]Write i2c OK [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: 01 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: 01 07 00 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: 01 07 00 7B 10 00 00 00 00 00 02 0D A1 [21:28:46]RasterBufferAndPrint [21:28:46]line [21:28:46]line [21:28:46]line [21:28:46]line [21:28:46]line [21:28:46]written 0, free lines is 3336 [21:28:46]MH_Cut [21:28:46]Write to MH i2c: D1 01 00 82 10 01 64 [21:28:46]Write i2c OK [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: D1 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: D1 01 00 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: D1 01 00 82 10 00 63 [21:28:46]Write to MH i2c: 01 00 00 83 10 93 [21:28:46]Write i2c OK [21:28:46]MH_I2C_Read... [21:28:46]OFD Sender: No OFD packet to send [21:28:46]*** Cut start [21:28:46]*** Partial cut [21:28:46]*** CUTSNS_PIN = 1 [21:28:46]*** CUTSNS_PIN = 0 [21:28:47]*** Brake cut motor [21:28:47]Read from MH i2c: 01 [21:28:47]MH_I2C_Read... [21:28:47]*** Stop cut motor [21:28:47]*** Cut end [21:28:47]Read from MH i2c: 01 07 00 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: 01 07 00 83 10 00 00 00 00 00 FF 0F A8 [21:28:47]process_action close_receipt done [21:28:47]requested_data is exist [21:28:47]produce_requested_data [21:28:47]requested_item fm.sn is exist - process it [21:28:47]wFMCommunicate request_size=4 [21:28:47]MH_SAM_APDU [21:28:47]CAPDU: 80 11 00 00 [21:28:47]Write to MH i2c: E2 08 00 84 10 80 11 00 00 00 00 00 00 0E [21:28:47]Write i2c OK [21:28:47]MH_I2C_Read... [21:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:47]Read from MH i2c: E2 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 17 00 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 17 00 84 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [21:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:28:47]wFMCommunicate OK [21:28:47]requested_item fd.num is exist - process it [21:28:47]SAM_PROTO_GetFieldsCounters [21:28:47]wFMCommunicate request_size=4 [21:28:47]MH_SAM_APDU [21:28:47]CAPDU: 80 13 00 00 [21:28:47]Write to MH i2c: E2 08 00 85 10 80 13 00 00 00 00 00 00 11 [21:28:47]Write i2c OK [21:28:47]MH_I2C_Read... [21:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:47]Read from MH i2c: E2 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 62 00 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 62 00 85 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [21:28: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:47]wFMCommunicate OK [21:28:47]SAM_PROTO_GetFieldsCounters done [21:28:47]requested_item shift.num is exist - process it [21:28:47]requested_item shift.opened is exist - process it [21:28:47]req_shift_opened [21:28:47]FM_GetShiftState [21:28:47]SAM_PROTO_GetShiftState [21:28:47]wFMCommunicate request_size=4 [21:28:47]MH_SAM_APDU [21:28:47]CAPDU: 80 13 01 00 [21:28:47]Write to MH i2c: E2 08 00 86 10 80 13 01 00 00 00 00 00 13 [21:28:47]Write i2c OK [21:28:47]MH_I2C_Read... [21:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:47]Read from MH i2c: E2 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 0E 00 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 0E 00 86 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5D [21:28:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:28:47]wFMCommunicate OK [21:28:47]SAM_PROTO_GetShiftState done [21:28:47]FM_GetShiftState done [21:28:47]req_shift_opened done [21:28:47]requested_item shift.open_date is exist - process it [21:28:47]req_shift_open_date [21:28:47]req_shift_open_date done [21:28:47]produce_requested_data done [21:28:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164397,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:28:47]process_action_free close_receipt [21:28:47]json_value_free [21:28:47]json_value_free done [21:28:47]process_json_proto returns [21:28:47]Send response to host [21:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164397,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:28:47]free response buf [21:28:47]execute_script done [21:28:47]execute_script returns [21:28:47]free content buf [21:28:47]Sock 7.Close socket [21:28:47]Sock 7.Thread stoped [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:47]accept exits with 9 [21:32:47]New connection [21:32:47]New thread 3067534692 created [21:32:47]Thread 3067391332 joined [21:32:47]Waiting for new connection... [21:32:47] Sock 9.Parse request [21:32:47]Sock 9.Check first char [21:32:47]Sock 9.First char is OK [21:32:47]request: POST /json_proto HTTP/1.0 [21:32:47]Method: POST [21:32:47]URL: /json_proto [21:32:47]Method is POST - this is cgi request [21:32:47]url: /json_proto [21:32:47]query_string will be loaded in cgi processing [21:32:47]execute_cgi json_proto POST (null) [21:32:47]execute_cgi path=json_proto method=POST [21:32:47]POST find Content-Length [21:32:47]Host: 172.17.56.4:8080 [21:32:47]Content-Length: 677 [21:32:47]Content-Type: application/json [21:32:47] [21:32:47]POST finish read [21:32:47]Found Content-Length = 677 [21:32:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:47]execute_script... [21:32: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)458484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:47]POST & json_proto [21:32:47]process_json_proto [21:32:47]json parsed OK: [21:32:47]protocol is kg_v1.0 [21:32:47]action value=close_receipt [21:32:47]process_action close_receipt [21:32:47]cmd_close_receipt [21:32:47]MH_GetDate [21:32:47]Write to MH i2c: F0 00 00 87 10 86 [21:32:47]Write i2c OK [21:32:47]MH_I2C_Read... [21:32:47]Read from MH i2c: F0 [21:32:47]MH_I2C_Read... [21:32:47]Read from MH i2c: F0 09 00 [21:32:47]MH_I2C_Read... [21:32:47]Read from MH i2c: F0 09 00 87 10 00 00 A1 91 66 C9 DC B2 64 E2 [21:32:47]GetLastDocTimeStamp 1720819724 [21:32:47]current date 1720819968 [21:32:47]FM_GetShiftState [21:32:47]SAM_PROTO_GetShiftState [21:32:47]wFMCommunicate request_size=4 [21:32:47]MH_SAM_APDU [21:32:47]CAPDU: 80 13 01 00 [21:32:47]Write to MH i2c: E2 08 00 88 10 80 13 01 00 00 00 00 00 15 [21:32:47]Write i2c OK [21:32:47]MH_I2C_Read... [21:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:47]Read from MH i2c: E2 [21:32:47]MH_I2C_Read... [21:32:47]Read from MH i2c: E2 0E 00 [21:32:47]MH_I2C_Read... [21:32:47]Read from MH i2c: E2 0E 00 88 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5F [21:32:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:32:47]wFMCommunicate OK [21:32:47]SAM_PROTO_GetShiftState done [21:32:47]FM_GetShiftState done [21:32:47]opened in 1720744654 [21:32:47]opened+sec_in_day 1720831054 [21:32:47]quantity*price = 60009 [21:32:47]sum+1 = 60011 [21:32:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 319 12.07.2024 21:32 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164398 ФПД: 161393208776709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T213248&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164398&fm=161393208776709&tin=02508201610067®Number=0000000000090829&sum=60000 [21:32:48]StoreToDocumentArchive [21:32:48]shift 445 fd 164398 [21:32:48]save to /storage/0445/doc_00164398 [21:32:48]save last doc name /storage/0445/doc_00164398 to /storage/kkm_last_doc_name [21:32:48]save OK [21:32:48]Clear old archive folders... [21:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:48]tlvbuf is 01565E70 [21:32:48]SAM_PROTO_ClearQueue [21:32:48]wFMCommunicate request_size=4 [21:32:48]MH_SAM_APDU [21:32:48]CAPDU: 80 09 00 00 [21:32:48]Write to MH i2c: E2 08 00 95 10 80 09 00 00 00 00 00 00 17 [21:32:48]Write i2c OK [21:32:48]MH_I2C_Read... [21:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:48]Read from MH i2c: E2 [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: E2 03 00 [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [21:32:48]RAPDU: 90 00 [21:32:48]wFMCommunicate OK [21:32:48]SAM_PROTO_ClearQueue done [21:32:48]KKMCreateOFDPacket [21:32:48]OFDProtocolAddRootSTLVToBuf [21:32:48]FM_MakeSignedData [21:32:48]FM_MakeSignedData [21:32:48]SAM_PROTO_SignData [21:32:48]wFMCommunicate request_size=4 [21:32:48]MH_SAM_APDU [21:32:48]CAPDU: 80 0D 01 02 [21:32:48]Write to MH i2c: E2 08 00 96 10 80 0D 01 02 00 00 00 00 1F [21:32:48]Write i2c OK [21:32:48]MH_I2C_Read... [21:32:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:49]Read from MH i2c: E2 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 03 00 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 03 00 96 10 00 90 00 1A [21:32:49]RAPDU: 90 00 [21:32:49]wFMCommunicate OK [21:32:49]wFMCommunicate request_size=255 [21:32:49]MH_SAM_APDU [21:32:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 01 00 00 F4 03 04 00 00 A1 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 82 02 00 35 04 06 00 92 [21:32:49]Write to MH i2c: E2 02 01 97 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 01 00 00 F4 03 04 00 00 A1 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 82 02 00 35 04 06 00 92 00 00 93 [21:32:49]Write i2c OK [21:32:49]MH_I2C_Read... [21:32:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:49]Read from MH i2c: E2 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 03 00 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 03 00 97 10 00 90 00 1B [21:32:49]RAPDU: 90 00 [21:32:49]wFMCommunicate OK [21:32:49]wFMCommunicate request_size=10 [21:32:49]MH_SAM_APDU [21:32:49]CAPDU: 80 0D 02 02 05 C9 48 E0 D8 05 [21:32:49]Write to MH i2c: E2 0D 00 98 10 80 0D 02 02 05 00 C9 48 E0 D8 05 00 00 FA [21:32:49]Write i2c OK [21:32:49]MH_I2C_Read... [21:32:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:49]Read from MH i2c: E2 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 03 00 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 03 00 98 10 00 90 00 1C [21:32:49]RAPDU: 90 00 [21:32:49]wFMCommunicate OK [21:32:49]wFMCommunicate request_size=4 [21:32:49]MH_SAM_APDU [21:32:49]CAPDU: 80 0D 03 02 [21:32:49]Write to MH i2c: E2 08 00 99 10 80 0D 03 02 00 00 00 00 24 [21:32:49]Write i2c OK [21:32:49]MH_I2C_Read... [21:32:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:49]Read from MH i2c: E2 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 0B 00 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 0B 00 99 10 00 B0 D5 1F AA AF EA 6D 0B 90 00 84 [21:32:49]RAPDU: B0 D5 1F AA AF EA 6D 0B 90 00 [21:32:49]wFMCommunicate OK [21:32:49]SAM_PROTO_SignData done [21:32:49]FM_MakeSignedData done [21:32:49]CreateOFDProtocolMessage [21:32:49]wFMCommunicate request_size=4 [21:32:49]MH_SAM_APDU [21:32:49]CAPDU: 80 11 00 00 [21:32:49]Write to MH i2c: E2 08 00 9A 10 80 11 00 00 00 00 00 00 24 [21:32:49]Write i2c OK [21:32:49]MH_I2C_Read... [21:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:49]Read from MH i2c: E2 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 17 00 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: E2 17 00 9A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [21:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:32:49]wFMCommunicate OK [21:32:49]CreateOFDProtocolMessage done [21:32:49]OFDSenderStorePacket 164398 [21:32:49]StoreOFDPacket docnum=164398 [21:32:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 38 16 07 01 D4 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 01 00 00 F4 03 04 00 00 A1 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 82 02 00 35 04 06 00 92 C9 48 E0 D8 05 B0 D5 1F AA AF EA 6D 0B [21:32:49]CheckFolder [21:32:49]dirname=/storage/ofd_packets [21:32:49]CheckFolder done [21:32:49]ProducePacketName [21:32:49]name=ofd_packets/00164398 [21:32:49]NVStorageSaveData ofd_packets/00164398 [21:32:49]File name is /storage/ofd_packets/00164398 [21:32:49]Write 301 bytes [21:32:49]NVStorageSaveData done [21:32:49]OFDSenderStorePacket done [21:32:49]KKMCreateOFDPacket done [21:32:49]NVStorageSaveData kkm_last_timestamp [21:32:49]File name is /storage/kkm_last_timestamp [21:32:49]Write 4 bytes [21:32:49]NVStorageSaveData done [21:32:49]ExternCall_PrintAddStr [21:32:49]wPrintStart [21:32:49]Write to MH i2c: 01 00 00 9B 10 AB [21:32:49]Write i2c OK [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: 01 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: 01 07 00 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: 01 07 00 9B 10 00 00 00 00 00 FF 0F C0 [21:32:49]RasterBufferAndPrint [21:32:49]line Счет N : (1)458484 [21:32:49]line ИНН: 02508201610067 [21:32:49]line Контрольно-Кассовый Чек [21:32:49]line ПРОДАЖА [21:32:49]line ТРК (МРК, ГНК) : 22 [21:32:49]line Товар: 2710124130 [21:32:49]line Аи-92-К-5 [21:32:49]line 9.120 * 65.80 [21:32:49]line = 600.10 [21:32:49]line НДС 12% НСП 1% [21:32:49]line > о реализуемом товаре [21:32:49]line ОКРУГЛЕНИЕ: -0.10 [21:32:49]line ИТОГО: 600.00 [21:32:49]line Внесено: 600.00 [21:32:49]line СДАЧА: 0.00 [21:32:49]line НСП 1% : 5.31 [21:32:49]line НДС 12% : 63.73 [21:32:49]line Наличными: 600.00 [21:32:49]line Безнал.: 0.00 [21:32:49]line Место: АЗС № 72 "Партнер Нефть" [21:32:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:32:49]line СНО: Общий режим [21:32:49]line Чек 319 12.07.2024 21:32 [21:32:49]line Смена: 445 ФФД: 1.0 [21:32:49]line ЗНМ: 0300000160 [21:32:49]line РНМ: 0000000000090829 [21:32:49]line Версия ККМ: 001 [21:32:49]line ФМ: 0000000000874718 [21:32:49]line ФД: 164398 [21:32:49]line ФПД: 161393208776709 [21:32:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T213248&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164398&fm=161393208776709&tin=02508201610067®Number=0000000000090829&sum=60000 [21:32:49]written 0, free lines is 4095 [21:32:49]OFD Sender: Processing packet 164398 [packets to send 104, broken 103] [21:32:49]ProducePacketName [21:32:49]name=ofd_packets/00164398 [21:32:49]OFD Sender: To server: pG, [21:32:49]CommunicateWithHost lk.salyk.kg:30040 [21:32:49]ConnectInit lk.salyk.kg [21:32:49]Connected sock=11 [21:32:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 38 16 07 01 D4 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 01 00 00 F4 03 04 00 00 A1 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 82 02 00 35 04 06 00 92 C9 48 E0 D8 05 B0 D5 1F AA AF EA 6D 0B [21:32:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2E F9 47 00 64 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 34 37 31 38 10 04 04 00 2E 82 02 00 F4 03 04 00 93 47 91 66 B6 04 01 00 00 86 65 E4 FB 23 82 62 CC [21:32:49]CommunicateWithHost err = 0 [21:32:49]CheckOFDResponse [21:32:49]1017 (14) - 77093643461234 [21:32:49]1041 (16) - 0000000000874718 [21:32:49]1040 (4) - 164398 [21:32:49]1012 (4) - 12.07.2024 15:11 [21:32:49]1206 (1) - 0 [21:32:49]OFD Sender: Remove packet 164398 [21:32:49]ProducePacketName [21:32:49]name=ofd_packets/00164398 [21:32:49]NVStorageDeleteData [21:32:49]Write to MH i2c: 01 00 00 C5 10 D5 [21:32:49]Write i2c OK [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: 01 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: 01 07 00 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: 01 07 00 C5 10 00 00 00 00 00 FE 0C E6 [21:32:49]RasterBufferAndPrint [21:32:49]line [21:32:49]line [21:32:49]line [21:32:49]line [21:32:49]line [21:32:49]written 0, free lines is 3332 [21:32:49]MH_Cut [21:32:49]Write to MH i2c: D1 01 00 CC 10 01 AE [21:32:49]Write i2c OK [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: D1 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: D1 01 00 [21:32:49]MH_I2C_Read... [21:32:49]Read from MH i2c: D1 01 00 CC 10 00 AD [21:32:49]Write to MH i2c: 01 00 00 CD 10 DD [21:32:49]Write i2c OK [21:32:49]MH_I2C_Read... [21:32:50]OFD Sender: No OFD packet to send [21:32:50]*** Cut start [21:32:50]*** Partial cut [21:32:50]*** CUTSNS_PIN = 1 [21:32:50]*** CUTSNS_PIN = 0 [21:32:50]*** Brake cut motor [21:32:51]Read from MH i2c: 01 [21:32:51]MH_I2C_Read... [21:32:51]*** Stop cut motor [21:32:51]*** Cut end [21:32:51]Read from MH i2c: 01 07 00 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: 01 07 00 CD 10 00 00 00 00 00 FF 0F F2 [21:32:51]process_action close_receipt done [21:32:51]requested_data is exist [21:32:51]produce_requested_data [21:32:51]requested_item fm.sn is exist - process it [21:32:51]wFMCommunicate request_size=4 [21:32:51]MH_SAM_APDU [21:32:51]CAPDU: 80 11 00 00 [21:32:51]Write to MH i2c: E2 08 00 CE 10 80 11 00 00 00 00 00 00 58 [21:32:51]Write i2c OK [21:32:51]MH_I2C_Read... [21:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:51]Read from MH i2c: E2 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: E2 17 00 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: E2 17 00 CE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [21:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:32:51]wFMCommunicate OK [21:32:51]requested_item fd.num is exist - process it [21:32:51]SAM_PROTO_GetFieldsCounters [21:32:51]wFMCommunicate request_size=4 [21:32:51]MH_SAM_APDU [21:32:51]CAPDU: 80 13 00 00 [21:32:51]Write to MH i2c: E2 08 00 CF 10 80 13 00 00 00 00 00 00 5B [21:32:51]Write i2c OK [21:32:51]MH_I2C_Read... [21:32:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:51]Read from MH i2c: E2 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: E2 62 00 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: E2 62 00 CF 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [21:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:51]wFMCommunicate OK [21:32:51]SAM_PROTO_GetFieldsCounters done [21:32:51]requested_item shift.num is exist - process it [21:32:51]requested_item shift.opened is exist - process it [21:32:51]req_shift_opened [21:32:51]FM_GetShiftState [21:32:51]SAM_PROTO_GetShiftState [21:32:51]wFMCommunicate request_size=4 [21:32:51]MH_SAM_APDU [21:32:51]CAPDU: 80 13 01 00 [21:32:51]Write to MH i2c: E2 08 00 D0 10 80 13 01 00 00 00 00 00 5D [21:32:51]Write i2c OK [21:32:51]MH_I2C_Read... [21:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:51]Read from MH i2c: E2 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: E2 0E 00 [21:32:51]MH_I2C_Read... [21:32:51]Read from MH i2c: E2 0E 00 D0 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A7 [21:32:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:32:51]wFMCommunicate OK [21:32:51]SAM_PROTO_GetShiftState done [21:32:51]FM_GetShiftState done [21:32:51]req_shift_opened done [21:32:51]requested_item shift.open_date is exist - process it [21:32:51]req_shift_open_date [21:32:51]req_shift_open_date done [21:32:51]produce_requested_data done [21:32:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164398,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:32:51]process_action_free close_receipt [21:32:51]json_value_free [21:32:51]json_value_free done [21:32:51]process_json_proto returns [21:32:51]Send response to host [21:32:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164398,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:32:51]free response buf [21:32:51]execute_script done [21:32:51]execute_script returns [21:32:51]free content buf [21:32:51]Sock 9.Close socket [21:32:51]Sock 9.Thread stoped [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:31]accept exits with 7 [21:38:31]New connection [21:38:31]New thread 3067391332 created [21:38:31]Thread 3067534692 joined [21:38:31]Waiting for new connection... [21:38:31] Sock 7.Parse request [21:38:31]Sock 7.Check first char [21:38:31]Sock 7.First char is OK [21:38:31]request: POST /json_proto HTTP/1.0 [21:38:31]Method: POST [21:38:31]URL: /json_proto [21:38:31]Method is POST - this is cgi request [21:38:31]url: /json_proto [21:38:31]query_string will be loaded in cgi processing [21:38:31]execute_cgi json_proto POST (null) [21:38:31]execute_cgi path=json_proto method=POST [21:38:31]POST find Content-Length [21:38:31]Host: 172.17.56.4:8080 [21:38:31]Content-Length: 841 [21:38:31]Content-Type: application/json [21:38:31] [21:38:31]POST finish read [21:38:31]Found Content-Length = 841 [21:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:31]execute_script... [21:38: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)458486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:31]POST & json_proto [21:38:31]process_json_proto [21:38:31]json parsed OK: [21:38:31]protocol is kg_v1.0 [21:38:31]action value=close_receipt [21:38:31]process_action close_receipt [21:38:31]cmd_close_receipt [21:38:31]MH_GetDate [21:38:31]Write to MH i2c: F0 00 00 D1 10 D0 [21:38:31]Write i2c OK [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: F0 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: F0 09 00 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: F0 09 00 D1 10 00 58 A2 91 66 C9 DC B2 64 85 [21:38:31]GetLastDocTimeStamp 1720819968 [21:38:31]current date 1720820312 [21:38:31]FM_GetShiftState [21:38:31]SAM_PROTO_GetShiftState [21:38:31]wFMCommunicate request_size=4 [21:38:31]MH_SAM_APDU [21:38:31]CAPDU: 80 13 01 00 [21:38:31]Write to MH i2c: E2 08 00 D2 10 80 13 01 00 00 00 00 00 5F [21:38:31]Write i2c OK [21:38:31]MH_I2C_Read... [21:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:31]Read from MH i2c: E2 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: E2 0E 00 [21:38:31]MH_I2C_Read... [21:38:31]Read from MH i2c: E2 0E 00 D2 10 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A9 [21:38:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:38:31]wFMCommunicate OK [21:38:31]SAM_PROTO_GetShiftState done [21:38:31]FM_GetShiftState done [21:38:31]opened in 1720744654 [21:38:31]opened+sec_in_day 1720831054 [21:38:31]quantity*price = 65220 [21:38:31]sum+1 = 65221 [21:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 320 12.07.2024 21:38 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164399 ФПД: 255955083474993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T213832&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164399&fm=255955083474993&tin=02508201610067®Number=0000000000090829&sum=65220 [21:38:33]StoreToDocumentArchive [21:38:33]shift 445 fd 164399 [21:38:33]save to /storage/0445/doc_00164399 [21:38:33]save last doc name /storage/0445/doc_00164399 to /storage/kkm_last_doc_name [21:38:33]save OK [21:38:33]Clear old archive folders... [21:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:33]tlvbuf is B6FE6300 [21:38:33]SAM_PROTO_ClearQueue [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 09 00 00 [21:38:33]Write to MH i2c: E2 08 00 DF 10 80 09 00 00 00 00 00 00 61 [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 DF 10 00 90 00 63 [21:38:33]RAPDU: 90 00 [21:38:33]wFMCommunicate OK [21:38:33]SAM_PROTO_ClearQueue done [21:38:33]KKMCreateOFDPacket [21:38:33]OFDProtocolAddRootSTLVToBuf [21:38:33]FM_MakeSignedData [21:38:33]FM_MakeSignedData [21:38:33]SAM_PROTO_SignData [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 0D 01 02 [21:38:33]Write to MH i2c: E2 08 00 E0 10 80 0D 01 02 00 00 00 00 69 [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 E0 10 00 90 00 64 [21:38:33]RAPDU: 90 00 [21:38:33]wFMCommunicate OK [21:38:33]wFMCommunicate request_size=255 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 58 A2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 82 02 00 35 04 06 00 E8 [21:38:33]Write to MH i2c: E2 02 01 E1 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 58 A2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 82 02 00 35 04 06 00 E8 00 00 80 [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 E1 10 00 90 00 65 [21:38:33]RAPDU: 90 00 [21:38:33]wFMCommunicate OK [21:38:33]wFMCommunicate request_size=10 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 0D 02 02 05 CA 2F D4 38 31 [21:38:33]Write to MH i2c: E2 0D 00 E2 10 80 0D 02 02 05 00 CA 2F D4 38 31 00 00 AC [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 E2 10 00 90 00 66 [21:38:33]RAPDU: 90 00 [21:38:33]wFMCommunicate OK [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 0D 03 02 [21:38:33]Write to MH i2c: E2 08 00 E3 10 80 0D 03 02 00 00 00 00 6E [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 0B 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 0B 00 E3 10 00 11 2F 51 78 DA FF 92 DB 90 00 BE [21:38:33]RAPDU: 11 2F 51 78 DA FF 92 DB 90 00 [21:38:33]wFMCommunicate OK [21:38:33]SAM_PROTO_SignData done [21:38:33]FM_MakeSignedData done [21:38:33]CreateOFDProtocolMessage [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 11 00 00 [21:38:33]Write to MH i2c: E2 08 00 E4 10 80 11 00 00 00 00 00 00 6E [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 17 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 17 00 E4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [21:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:38:33]wFMCommunicate OK [21:38:33]CreateOFDProtocolMessage done [21:38:33]OFDSenderStorePacket 164399 [21:38:33]StoreOFDPacket docnum=164399 [21:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 FD 07 01 2C 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 58 A2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 82 02 00 35 04 06 00 E8 CA 2F D4 38 31 11 2F 51 78 DA FF 92 DB [21:38:33]CheckFolder [21:38:33]dirname=/storage/ofd_packets [21:38:33]CheckFolder done [21:38:33]ProducePacketName [21:38:33]name=ofd_packets/00164399 [21:38:33]NVStorageSaveData ofd_packets/00164399 [21:38:33]File name is /storage/ofd_packets/00164399 [21:38:33]Write 301 bytes [21:38:33]NVStorageSaveData done [21:38:33]OFDSenderStorePacket done [21:38:33]KKMCreateOFDPacket done [21:38:33]NVStorageSaveData kkm_last_timestamp [21:38:33]File name is /storage/kkm_last_timestamp [21:38:33]Write 4 bytes [21:38:33]NVStorageSaveData done [21:38:33]ExternCall_PrintAddStr [21:38:33]wPrintStart [21:38:33]Write to MH i2c: 01 00 00 E5 10 F5 [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: 01 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: 01 07 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: 01 07 00 E5 10 00 00 00 00 00 FF 0F 0A [21:38:33]RasterBufferAndPrint [21:38:33]line Счет N : (1)458486 [21:38:33]line ИНН: 02508201610067 [21:38:33]line Контрольно-Кассовый Чек [21:38:33]line ПРОДАЖА [21:38:33]line ТРК (МРК, ГНК) : 12 [21:38:33]line Товар: 2710124130 [21:38:33]line Аи-92-К-5 [21:38:33]line 10.000 * 65.22 [21:38:33]line = 652.20 [21:38:33]line НДС 12% НСП 1% [21:38:33]line > о реализуемом товаре [21:38:33]line ИТОГО: 652.20 [21:38:33]line НСП 1% : 5.77 [21:38:33]line НДС 12% : 69.26 [21:38:33]line Наличными: 0.00 [21:38:33]line Безнал.: 652.20 [21:38:33]line Место: АЗС № 72 "Партнер Нефть" [21:38:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:38:33]line СНО: Общий режим [21:38:33]line Чек 320 12.07.2024 21:38 [21:38:33]line Смена: 445 ФФД: 1.0 [21:38:33]line ЗНМ: 0300000160 [21:38:33]line РНМ: 0000000000090829 [21:38:33]line Версия ККМ: 001 [21:38:33]line Платежная система: АКБ Кыргызстан [21:38:33]line ФМ: 0000000000874718 [21:38:33]line ФД: 164399 [21:38:33]line ФПД: 255955083474993 [21:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T213832&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164399&fm=255955083474993&tin=02508201610067®Number=0000000000090829&sum=65220 [21:38:33]written 0, free lines is 4095 [21:38:33]OFD Sender: Processing packet 164399 [packets to send 104, broken 103] [21:38:33]ProducePacketName [21:38:33]name=ofd_packets/00164399 [21:38:33]OFD Sender: To server: pG, [21:38:33]CommunicateWithHost lk.salyk.kg:30040 [21:38:33]ConnectInit lk.salyk.kg [21:38:33]Connected sock=9 [21:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 FD 07 01 2C 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 58 A2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 82 02 00 35 04 06 00 E8 CA 2F D4 38 31 11 2F 51 78 DA FF 92 DB [21:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4E AF 47 00 C3 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 34 37 31 38 10 04 04 00 2F 82 02 00 F4 03 04 00 EB 48 91 66 B6 04 01 00 00 44 6F DE 24 32 A1 3E 05 [21:38:34]CommunicateWithHost err = 0 [21:38:34]CheckOFDResponse [21:38:34]1017 (14) - 77093643461234 [21:38:34]1041 (16) - 0000000000874718 [21:38:34]1040 (4) - 164399 [21:38:34]1012 (4) - 12.07.2024 15:16 [21:38:34]1206 (1) - 0 [21:38:34]OFD Sender: Remove packet 164399 [21:38:34]ProducePacketName [21:38:34]name=ofd_packets/00164399 [21:38:34]NVStorageDeleteData [21:38:34]Write to MH i2c: 01 00 00 0E 11 1F [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: 01 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: 01 07 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 20 0D 53 [21:38:34]RasterBufferAndPrint [21:38:34]line [21:38:34]line [21:38:34]line [21:38:34]line [21:38:34]line [21:38:34]written 0, free lines is 3366 [21:38:34]MH_Cut [21:38:34]Write to MH i2c: D1 01 00 15 11 01 F8 [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: D1 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: D1 01 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: D1 01 00 15 11 00 F7 [21:38:34]Write to MH i2c: 01 00 00 16 11 27 [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]OFD Sender: No OFD packet to send [21:38:34]*** Cut start [21:38:34]*** Partial cut [21:38:34]*** CUTSNS_PIN = 1 [21:38:34]*** CUTSNS_PIN = 0 [21:38:34]*** Brake cut motor [21:38:35]Read from MH i2c: 01 [21:38:35]MH_I2C_Read... [21:38:35]*** Stop cut motor [21:38:35]*** Cut end [21:38:35]Read from MH i2c: 01 07 00 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 FF 0F 3C [21:38:35]process_action close_receipt done [21:38:35]requested_data is exist [21:38:35]produce_requested_data [21:38:35]requested_item fm.sn is exist - process it [21:38:35]wFMCommunicate request_size=4 [21:38:35]MH_SAM_APDU [21:38:35]CAPDU: 80 11 00 00 [21:38:35]Write to MH i2c: E2 08 00 17 11 80 11 00 00 00 00 00 00 A2 [21:38:35]Write i2c OK [21:38:35]MH_I2C_Read... [21:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:35]Read from MH i2c: E2 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: E2 17 00 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: E2 17 00 17 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F8 [21:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:38:35]wFMCommunicate OK [21:38:35]requested_item fd.num is exist - process it [21:38:35]SAM_PROTO_GetFieldsCounters [21:38:35]wFMCommunicate request_size=4 [21:38:35]MH_SAM_APDU [21:38:35]CAPDU: 80 13 00 00 [21:38:35]Write to MH i2c: E2 08 00 18 11 80 13 00 00 00 00 00 00 A5 [21:38:35]Write i2c OK [21:38:35]MH_I2C_Read... [21:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:35]Read from MH i2c: E2 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: E2 62 00 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: E2 62 00 18 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [21:38: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:35]wFMCommunicate OK [21:38:35]SAM_PROTO_GetFieldsCounters done [21:38:35]requested_item shift.num is exist - process it [21:38:35]requested_item shift.opened is exist - process it [21:38:35]req_shift_opened [21:38:35]FM_GetShiftState [21:38:35]SAM_PROTO_GetShiftState [21:38:35]wFMCommunicate request_size=4 [21:38:35]MH_SAM_APDU [21:38:35]CAPDU: 80 13 01 00 [21:38:35]Write to MH i2c: E2 08 00 19 11 80 13 01 00 00 00 00 00 A7 [21:38:35]Write i2c OK [21:38:35]MH_I2C_Read... [21:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:35]Read from MH i2c: E2 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: E2 0E 00 [21:38:35]MH_I2C_Read... [21:38:35]Read from MH i2c: E2 0E 00 19 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F1 [21:38:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:38:35]wFMCommunicate OK [21:38:35]SAM_PROTO_GetShiftState done [21:38:35]FM_GetShiftState done [21:38:35]req_shift_opened done [21:38:35]requested_item shift.open_date is exist - process it [21:38:35]req_shift_open_date [21:38:35]req_shift_open_date done [21:38:35]produce_requested_data done [21:38:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164399,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:38:35]process_action_free close_receipt [21:38:35]json_value_free [21:38:35]json_value_free done [21:38:35]process_json_proto returns [21:38:35]Send response to host [21:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164399,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:38:35]free response buf [21:38:35]execute_script done [21:38:35]execute_script returns [21:38:35]free content buf [21:38:35]Sock 7.Close socket [21:38:35]Sock 7.Thread stoped [21:38:39]OFD Sender: No OFD packet to send [21:38:44]accept exits with 10 [21:38:44]New connection [21:38:44]New thread 3067534692 created [21:38:44]Thread 3067391332 joined [21:38:44]Waiting for new connection... [21:38:44] Sock 10.Parse request [21:38:44]Sock 10.Check first char [21:38:44]Sock 10.First char is OK [21:38:44]request: POST /json_proto HTTP/1.0 [21:38:44]Method: POST [21:38:44]URL: /json_proto [21:38:44]Method is POST - this is cgi request [21:38:44]url: /json_proto [21:38:44]query_string will be loaded in cgi processing [21:38:44]execute_cgi json_proto POST (null) [21:38:44]execute_cgi path=json_proto method=POST [21:38:44]POST find Content-Length [21:38:44]Host: 172.17.56.4:8080 [21:38:44]Content-Length: 1184 [21:38:44]Content-Type: application/json [21:38:44] [21:38:44]POST finish read [21:38:44]Found Content-Length = 1184 [21:38:44]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458485\u000A12.07.2024 21:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 2876.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092083;4092084\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:44]execute_script... [21:38:44]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458485\u000A12.07.2024 21:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 2876.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092083;4092084\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:44]POST & json_proto [21:38:44]process_json_proto [21:38:44]json parsed OK: [21:38:44]protocol is kg_v1.0 [21:38:44]action value=print_text [21:38:44]process_action print_text [21:38:44]cmd_print_text [21:38:44]ExternCall_PrintAddStr [21:38:44]wPrintStart [21:38:44]Write to MH i2c: 01 00 00 1A 11 2B [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: 01 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: 01 07 00 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: 01 07 00 1A 11 00 00 00 00 00 FF 0F 40 [21:38:44]RasterBufferAndPrint [21:38:44]line *****ТОВАРНЫЙ ЧЕК***** [21:38:44]line АЗС 72 [21:38:44]line Партнер нефть [21:38:44]line 02508201610067 [21:38:44]line Кассир : Садыков Н. [21:38:44]line Счет N : (1)458485 [21:38:44]line 12.07.2024 21:04 [21:38:44]line ПРОДАЖА [21:38:44]line ТРК (МРК, ГНК): 11 [21:38:44]line Вид ГСМ : 2710194210 [21:38:44]line ДТ-К-5 [21:38:44]line 40.000 x 71.90 [21:38:44]line ИТОГ: 2876.00 [21:38:44]line Тип оплаты: Талоны: Партнер нефть [21:38:44]line 4092083;4092084 [21:38:44]line ______________________ [21:38:44]line (подпись) [21:38:44]written 0, free lines is 4095 [21:38:44]Write to MH i2c: 01 00 00 2E 11 3F [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: 01 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: 01 07 00 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 14 0E 68 [21:38:44]RasterBufferAndPrint [21:38:44]line [21:38:44]line [21:38:44]line [21:38:44]line [21:38:44]line [21:38:44]written 0, free lines is 3606 [21:38:44]MH_Cut [21:38:44]Write to MH i2c: D1 01 00 35 11 01 18 [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: D1 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: D1 01 00 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: D1 01 00 35 11 00 17 [21:38:44]Write to MH i2c: 01 00 00 36 11 47 [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]OFD Sender: No OFD packet to send [21:38:44]*** Cut start [21:38:44]*** Partial cut [21:38:44]*** CUTSNS_PIN = 1 [21:38:44]*** CUTSNS_PIN = 0 [21:38:45]*** Brake cut motor [21:38:45]Read from MH i2c: 01 [21:38:45]MH_I2C_Read... [21:38:45]*** Stop cut motor [21:38:45]*** Cut end [21:38:45]Read from MH i2c: 01 07 00 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: 01 07 00 36 11 00 00 00 00 00 FF 0F 5C [21:38:45]process_action print_text done [21:38:45]requested_data is exist [21:38:45]produce_requested_data [21:38:45]requested_item fm.sn is exist - process it [21:38:45]wFMCommunicate request_size=4 [21:38:45]MH_SAM_APDU [21:38:45]CAPDU: 80 11 00 00 [21:38:45]Write to MH i2c: E2 08 00 37 11 80 11 00 00 00 00 00 00 C2 [21:38:45]Write i2c OK [21:38:45]MH_I2C_Read... [21:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:45]Read from MH i2c: E2 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: E2 17 00 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: E2 17 00 37 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [21:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:38:45]wFMCommunicate OK [21:38:45]requested_item fd.num is exist - process it [21:38:45]SAM_PROTO_GetFieldsCounters [21:38:45]wFMCommunicate request_size=4 [21:38:45]MH_SAM_APDU [21:38:45]CAPDU: 80 13 00 00 [21:38:45]Write to MH i2c: E2 08 00 38 11 80 13 00 00 00 00 00 00 C5 [21:38:45]Write i2c OK [21:38:45]MH_I2C_Read... [21:38:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:45]Read from MH i2c: E2 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: E2 62 00 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: E2 62 00 38 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [21:38: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:45]wFMCommunicate OK [21:38:45]SAM_PROTO_GetFieldsCounters done [21:38:45]requested_item shift.num is exist - process it [21:38:45]requested_item shift.opened is exist - process it [21:38:45]req_shift_opened [21:38:45]FM_GetShiftState [21:38:45]SAM_PROTO_GetShiftState [21:38:45]wFMCommunicate request_size=4 [21:38:45]MH_SAM_APDU [21:38:45]CAPDU: 80 13 01 00 [21:38:45]Write to MH i2c: E2 08 00 39 11 80 13 01 00 00 00 00 00 C7 [21:38:45]Write i2c OK [21:38:45]MH_I2C_Read... [21:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:45]Read from MH i2c: E2 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: E2 0E 00 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: E2 0E 00 39 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 11 [21:38:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:38:45]wFMCommunicate OK [21:38:45]SAM_PROTO_GetShiftState done [21:38:45]FM_GetShiftState done [21:38:45]req_shift_opened done [21:38:45]requested_item shift.open_date is exist - process it [21:38:45]req_shift_open_date [21:38:45]req_shift_open_date done [21:38:45]produce_requested_data done [21:38:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164399,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:38:45]process_action_free print_text [21:38:45]json_value_free [21:38:45]json_value_free done [21:38:45]process_json_proto returns [21:38:45]Send response to host [21:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164399,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:38:45]free response buf [21:38:45]execute_script done [21:38:45]execute_script returns [21:38:45]free content buf [21:38:45]Sock 10.Close socket [21:38:45]Sock 10.Thread stoped [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:31]accept exits with 7 [21:39:31]New connection [21:39:31]New thread 3067391332 created [21:39:31]Thread 3067534692 joined [21:39:31]Waiting for new connection... [21:39:31] Sock 7.Parse request [21:39:31]Sock 7.Check first char [21:39:31]Sock 7.First char is OK [21:39:31]request: POST /json_proto HTTP/1.0 [21:39:31]Method: POST [21:39:31]URL: /json_proto [21:39:31]Method is POST - this is cgi request [21:39:31]url: /json_proto [21:39:31]query_string will be loaded in cgi processing [21:39:31]execute_cgi json_proto POST (null) [21:39:31]execute_cgi path=json_proto method=POST [21:39:31]POST find Content-Length [21:39:31]Host: 172.17.56.4:8080 [21:39:31]Content-Length: 682 [21:39:31]Content-Type: application/json [21:39:31] [21:39:31]POST finish read [21:39:31]Found Content-Length = 682 [21:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:31]execute_script... [21:39: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)458487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:31]POST & json_proto [21:39:31]process_json_proto [21:39:31]json parsed OK: [21:39:31]protocol is kg_v1.0 [21:39:31]action value=close_receipt [21:39:31]process_action close_receipt [21:39:31]cmd_close_receipt [21:39:31]MH_GetDate [21:39:31]Write to MH i2c: F0 00 00 3A 11 3A [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: F0 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: F0 09 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: F0 09 00 3A 11 00 94 A2 91 66 C9 DC B2 64 2B [21:39:31]GetLastDocTimeStamp 1720820312 [21:39:31]current date 1720820372 [21:39:31]FM_GetShiftState [21:39:31]SAM_PROTO_GetShiftState [21:39:31]wFMCommunicate request_size=4 [21:39:31]MH_SAM_APDU [21:39:31]CAPDU: 80 13 01 00 [21:39:31]Write to MH i2c: E2 08 00 3B 11 80 13 01 00 00 00 00 00 C9 [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:31]Read from MH i2c: E2 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 0E 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 0E 00 3B 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 13 [21:39:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:39:31]wFMCommunicate OK [21:39:31]SAM_PROTO_GetShiftState done [21:39:31]FM_GetShiftState done [21:39:31]opened in 1720744654 [21:39:31]opened+sec_in_day 1720831054 [21:39:31]quantity*price = 100016 [21:39:31]sum+1 = 100017 [21:39: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 321 12.07.2024 21:39 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164400 ФПД: 278153442399498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T213932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164400&fm=278153442399498&tin=02508201610067®Number=0000000000090829&sum=100000 [21:39:32]StoreToDocumentArchive [21:39:32]shift 445 fd 164400 [21:39:32]save to /storage/0445/doc_00164400 [21:39:32]save last doc name /storage/0445/doc_00164400 to /storage/kkm_last_doc_name [21:39:32]save OK [21:39:32]Clear old archive folders... [21:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:32]tlvbuf is 015B9020 [21:39:32]SAM_PROTO_ClearQueue [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 09 00 00 [21:39:32]Write to MH i2c: E2 08 00 48 11 80 09 00 00 00 00 00 00 CB [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 48 11 00 90 00 CD [21:39:32]RAPDU: 90 00 [21:39:32]wFMCommunicate OK [21:39:32]SAM_PROTO_ClearQueue done [21:39:32]KKMCreateOFDPacket [21:39:32]OFDProtocolAddRootSTLVToBuf [21:39:32]FM_MakeSignedData [21:39:32]FM_MakeSignedData [21:39:32]SAM_PROTO_SignData [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 0D 01 02 [21:39:32]Write to MH i2c: E2 08 00 49 11 80 0D 01 02 00 00 00 00 D3 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 49 11 00 90 00 CE [21:39:32]RAPDU: 90 00 [21:39:32]wFMCommunicate OK [21:39:32]wFMCommunicate request_size=255 [21:39:32]MH_SAM_APDU [21:39: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 94 A2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 82 02 00 35 04 06 00 FC [21:39:32]Write to MH i2c: E2 02 01 4A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 94 A2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 82 02 00 35 04 06 00 FC 00 00 CB [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 4A 11 00 90 00 CF [21:39:32]RAPDU: 90 00 [21:39:32]wFMCommunicate OK [21:39:32]wFMCommunicate request_size=10 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 0D 02 02 05 FA A5 20 95 0A [21:39:32]Write to MH i2c: E2 0D 00 4B 11 80 0D 02 02 05 00 FA A5 20 95 0A 00 00 3E [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 03 00 4B 11 00 90 00 D0 [21:39:32]RAPDU: 90 00 [21:39:32]wFMCommunicate OK [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 0D 03 02 [21:39:32]Write to MH i2c: E2 08 00 4C 11 80 0D 03 02 00 00 00 00 D8 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 0B 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 0B 00 4C 11 00 21 1C 3B 00 CF 6C AB B1 90 00 E8 [21:39:32]RAPDU: 21 1C 3B 00 CF 6C AB B1 90 00 [21:39:32]wFMCommunicate OK [21:39:32]SAM_PROTO_SignData done [21:39:32]FM_MakeSignedData done [21:39:32]CreateOFDProtocolMessage [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 11 00 00 [21:39:32]Write to MH i2c: E2 08 00 4D 11 80 11 00 00 00 00 00 00 D8 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:33]Read from MH i2c: E2 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 17 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 17 00 4D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2E [21:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:39:33]wFMCommunicate OK [21:39:33]CreateOFDProtocolMessage done [21:39:33]OFDSenderStorePacket 164400 [21:39:33]StoreOFDPacket docnum=164400 [21:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC 62 07 01 39 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 94 A2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 82 02 00 35 04 06 00 FC FA A5 20 95 0A 21 1C 3B 00 CF 6C AB B1 [21:39:33]CheckFolder [21:39:33]dirname=/storage/ofd_packets [21:39:33]CheckFolder done [21:39:33]ProducePacketName [21:39:33]name=ofd_packets/00164400 [21:39:33]NVStorageSaveData ofd_packets/00164400 [21:39:33]File name is /storage/ofd_packets/00164400 [21:39:33]Write 301 bytes [21:39:33]NVStorageSaveData done [21:39:33]OFDSenderStorePacket done [21:39:33]KKMCreateOFDPacket done [21:39:33]NVStorageSaveData kkm_last_timestamp [21:39:33]File name is /storage/kkm_last_timestamp [21:39:33]Write 4 bytes [21:39:33]NVStorageSaveData done [21:39:33]ExternCall_PrintAddStr [21:39:33]wPrintStart [21:39:33]Write to MH i2c: 01 00 00 4E 11 5F [21:39:33]OFD Sender: Processing packet 164400 [packets to send 104, broken 103] [21:39:33]ProducePacketName [21:39:33]name=ofd_packets/00164400 [21:39:33]OFD Sender: To server: pG, [21:39:33]CommunicateWithHost lk.salyk.kg:30040 [21:39:33]ConnectInit lk.salyk.kg [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 07 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 07 00 4E 11 00 00 00 00 00 FF 0F 74 [21:39:33]RasterBufferAndPrint [21:39:33]line Счет N : (1)458487 [21:39:33]line ИНН: 02508201610067 [21:39:33]line Контрольно-Кассовый Чек [21:39:33]line ПРОДАЖА [21:39:33]line ТРК (МРК, ГНК) : 22 [21:39:33]line Товар: 2710124130 [21:39:33]line Аи-92-К-5 [21:39:33]line 15.200 * 65.80 [21:39:33]line = 1000.16 [21:39:33]line НДС 12% НСП 1% [21:39:33]line > о реализуемом товаре [21:39:33]line ОКРУГЛЕНИЕ: -0.16 [21:39:33]line ИТОГО: 1000.00 [21:39:33]line Внесено: 1000.00 [21:39:33]line СДАЧА: 0.00 [21:39:33]line НСП 1% : 8.85 [21:39:33]line НДС 12% : 106.21 [21:39:33]line Наличными: 1000.00 [21:39:33]line Безнал.: 0.00 [21:39:33]line Место: АЗС № 72 "Партнер Нефть" [21:39:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:39:33]line СНО: Общий режим [21:39:33]line Чек 321 12.07.2024 21:39 [21:39:33]line Смена: 445 ФФД: 1.0 [21:39:33]line ЗНМ: 0300000160 [21:39:33]line РНМ: 0000000000090829 [21:39:33]line Версия ККМ: 001 [21:39:33]line ФМ: 0000000000874718 [21:39:33]line ФД: 164400 [21:39:33]line ФПД: 278153442399498 [21:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T213932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164400&fm=278153442399498&tin=02508201610067®Number=0000000000090829&sum=100000 [21:39:33]Connected sock=10 [21:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC 62 07 01 39 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 94 A2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 82 02 00 35 04 06 00 FC FA A5 20 95 0A 21 1C 3B 00 CF 6C AB B1 [21:39:33]written 0, free lines is 4095 [21:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 16 9E 47 00 22 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 82 02 00 F4 03 04 00 27 49 91 66 B6 04 01 00 00 F5 DF B8 39 AB 3F B3 C4 [21:39:33]CommunicateWithHost err = 0 [21:39:33]CheckOFDResponse [21:39:33]1017 (14) - 77093643461234 [21:39:33]1041 (16) - 0000000000874718 [21:39:33]1040 (4) - 164400 [21:39:33]1012 (4) - 12.07.2024 15:17 [21:39:33]1206 (1) - 0 [21:39:33]OFD Sender: Remove packet 164400 [21:39:33]ProducePacketName [21:39:33]name=ofd_packets/00164400 [21:39:33]NVStorageDeleteData [21:39:33]Write to MH i2c: 01 00 00 78 11 89 [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 07 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 07 00 78 11 00 00 00 00 00 FD 0C 99 [21:39:33]RasterBufferAndPrint [21:39:33]line [21:39:33]line [21:39:33]line [21:39:33]line [21:39:33]line [21:39:33]written 0, free lines is 3332 [21:39:33]MH_Cut [21:39:33]Write to MH i2c: D1 01 00 7F 11 01 62 [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: D1 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: D1 01 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: D1 01 00 7F 11 00 61 [21:39:33]Write to MH i2c: 01 00 00 80 11 91 [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:34]OFD Sender: No OFD packet to send [21:39:34]*** Cut start [21:39:34]*** Partial cut [21:39:34]*** CUTSNS_PIN = 1 [21:39:34]*** CUTSNS_PIN = 0 [21:39:34]*** Brake cut motor [21:39:35]Read from MH i2c: 01 [21:39:35]MH_I2C_Read... [21:39:35]*** Stop cut motor [21:39:35]*** Cut end [21:39:35]Read from MH i2c: 01 07 00 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: 01 07 00 80 11 00 00 00 00 00 FF 0F A6 [21:39:35]process_action close_receipt done [21:39:35]requested_data is exist [21:39:35]produce_requested_data [21:39:35]requested_item fm.sn is exist - process it [21:39:35]wFMCommunicate request_size=4 [21:39:35]MH_SAM_APDU [21:39:35]CAPDU: 80 11 00 00 [21:39:35]Write to MH i2c: E2 08 00 81 11 80 11 00 00 00 00 00 00 0C [21:39:35]Write i2c OK [21:39:35]MH_I2C_Read... [21:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:35]Read from MH i2c: E2 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 17 00 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 17 00 81 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [21:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:39:35]wFMCommunicate OK [21:39:35]requested_item fd.num is exist - process it [21:39:35]SAM_PROTO_GetFieldsCounters [21:39:35]wFMCommunicate request_size=4 [21:39:35]MH_SAM_APDU [21:39:35]CAPDU: 80 13 00 00 [21:39:35]Write to MH i2c: E2 08 00 82 11 80 13 00 00 00 00 00 00 0F [21:39:35]Write i2c OK [21:39:35]MH_I2C_Read... [21:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:35]Read from MH i2c: E2 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 62 00 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 62 00 82 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [21:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:35]wFMCommunicate OK [21:39:35]SAM_PROTO_GetFieldsCounters done [21:39:35]requested_item shift.num is exist - process it [21:39:35]requested_item shift.opened is exist - process it [21:39:35]req_shift_opened [21:39:35]FM_GetShiftState [21:39:35]SAM_PROTO_GetShiftState [21:39:35]wFMCommunicate request_size=4 [21:39:35]MH_SAM_APDU [21:39:35]CAPDU: 80 13 01 00 [21:39:35]Write to MH i2c: E2 08 00 83 11 80 13 01 00 00 00 00 00 11 [21:39:35]Write i2c OK [21:39:35]MH_I2C_Read... [21:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:35]Read from MH i2c: E2 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 0E 00 [21:39:35]MH_I2C_Read... [21:39:35]Read from MH i2c: E2 0E 00 83 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5B [21:39:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:39:35]wFMCommunicate OK [21:39:35]SAM_PROTO_GetShiftState done [21:39:35]FM_GetShiftState done [21:39:35]req_shift_opened done [21:39:35]requested_item shift.open_date is exist - process it [21:39:35]req_shift_open_date [21:39:35]req_shift_open_date done [21:39:35]produce_requested_data done [21:39:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164400,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:39:35]process_action_free close_receipt [21:39:35]json_value_free [21:39:35]json_value_free done [21:39:35]process_json_proto returns [21:39:35]Send response to host [21:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164400,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:39:35]free response buf [21:39:35]execute_script done [21:39:35]execute_script returns [21:39:35]free content buf [21:39:35]Sock 7.Close socket [21:39:35]Sock 7.Thread stoped [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:47]accept exits with 9 [21:39:47]New connection [21:39:47]New thread 3067534692 created [21:39:47]Thread 3067391332 joined [21:39:47]Waiting for new connection... [21:39:47] Sock 9.Parse request [21:39:47]Sock 9.Check first char [21:39:47]Sock 9.First char is OK [21:39:47]request: POST /json_proto HTTP/1.0 [21:39:47]Method: POST [21:39:47]URL: /json_proto [21:39:47]Method is POST - this is cgi request [21:39:47]url: /json_proto [21:39:47]query_string will be loaded in cgi processing [21:39:47]execute_cgi json_proto POST (null) [21:39:47]execute_cgi path=json_proto method=POST [21:39:47]POST find Content-Length [21:39:47]Host: 172.17.56.4:8080 [21:39:47]Content-Length: 1176 [21:39:47]Content-Type: application/json [21:39:47] [21:39:47]POST finish read [21:39:47]Found Content-Length = 1176 [21:39: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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458488\u000A12.07.2024 21:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 1438.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092085\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:47]execute_script... [21:39: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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458488\u000A12.07.2024 21:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 1438.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092085\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:47]POST & json_proto [21:39:47]process_json_proto [21:39:47]json parsed OK: [21:39:47]protocol is kg_v1.0 [21:39:47]action value=print_text [21:39:47]process_action print_text [21:39:47]cmd_print_text [21:39:47]ExternCall_PrintAddStr [21:39:47]wPrintStart [21:39:47]Write to MH i2c: 01 00 00 84 11 95 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 07 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 07 00 84 11 00 00 00 00 00 FF 0F AA [21:39:47]RasterBufferAndPrint [21:39:47]line *****ТОВАРНЫЙ ЧЕК***** [21:39:47]line АЗС 72 [21:39:47]line Партнер нефть [21:39:47]line 02508201610067 [21:39:47]line Кассир : Садыков Н. [21:39:47]line Счет N : (1)458488 [21:39:47]line 12.07.2024 21:05 [21:39:47]line ПРОДАЖА [21:39:47]line ТРК (МРК, ГНК): 11 [21:39:47]line Вид ГСМ : 2710194210 [21:39:47]line ДТ-К-5 [21:39:47]line 20.000 x 71.90 [21:39:47]line ИТОГ: 1438.00 [21:39:47]line Тип оплаты: Талоны: Партнер нефть [21:39:47]line 4092085 [21:39:47]line ______________________ [21:39:47]line (подпись) [21:39:47]written 0, free lines is 4095 [21:39:47]Write to MH i2c: 01 00 00 98 11 A9 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 07 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 07 00 98 11 00 00 00 00 00 0F 0E CD [21:39:47]RasterBufferAndPrint [21:39:47]line [21:39:47]line [21:39:47]line [21:39:47]line [21:39:47]line [21:39:47]written 0, free lines is 3601 [21:39:47]MH_Cut [21:39:47]Write to MH i2c: D1 01 00 9F 11 01 82 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: D1 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: D1 01 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: D1 01 00 9F 11 00 81 [21:39:47]Write to MH i2c: 01 00 00 A0 11 B1 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:48]*** Cut start [21:39:48]*** Partial cut [21:39:48]*** CUTSNS_PIN = 1 [21:39:48]*** CUTSNS_PIN = 0 [21:39:48]*** Brake cut motor [21:39:48]Read from MH i2c: 01 [21:39:48]MH_I2C_Read... [21:39:48]*** Stop cut motor [21:39:48]*** Cut end [21:39:48]Read from MH i2c: 01 07 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: 01 07 00 A0 11 00 00 00 00 00 FF 0F C6 [21:39:48]process_action print_text done [21:39:48]requested_data is exist [21:39:48]produce_requested_data [21:39:48]requested_item fm.sn is exist - process it [21:39:48]wFMCommunicate request_size=4 [21:39:48]MH_SAM_APDU [21:39:48]CAPDU: 80 11 00 00 [21:39:48]Write to MH i2c: E2 08 00 A1 11 80 11 00 00 00 00 00 00 2C [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 17 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 17 00 A1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [21:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:39:49]wFMCommunicate OK [21:39:49]requested_item fd.num is exist - process it [21:39:49]SAM_PROTO_GetFieldsCounters [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 13 00 00 [21:39:49]Write to MH i2c: E2 08 00 A2 11 80 13 00 00 00 00 00 00 2F [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]OFD Sender: No OFD packet to send [21:39:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 62 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 62 00 A2 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [21:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:49]wFMCommunicate OK [21:39:49]SAM_PROTO_GetFieldsCounters done [21:39:49]requested_item shift.num is exist - process it [21:39:49]requested_item shift.opened is exist - process it [21:39:49]req_shift_opened [21:39:49]FM_GetShiftState [21:39:49]SAM_PROTO_GetShiftState [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 13 01 00 [21:39:49]Write to MH i2c: E2 08 00 A3 11 80 13 01 00 00 00 00 00 31 [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 0E 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 0E 00 A3 11 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7B [21:39:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:39:49]wFMCommunicate OK [21:39:49]SAM_PROTO_GetShiftState done [21:39:49]FM_GetShiftState done [21:39:49]req_shift_opened done [21:39:49]requested_item shift.open_date is exist - process it [21:39:49]req_shift_open_date [21:39:49]req_shift_open_date done [21:39:49]produce_requested_data done [21:39:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164400,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:39:49]process_action_free print_text [21:39:49]json_value_free [21:39:49]json_value_free done [21:39:49]process_json_proto returns [21:39:49]Send response to host [21:39:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164400,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:39:49]free response buf [21:39:49]execute_script done [21:39:49]execute_script returns [21:39:49]free content buf [21:39:49]Sock 9.Close socket [21:39:49]Sock 9.Thread stoped [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:48:09]ConnectInit Can't connect to host [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:36]accept exits with 9 [21:48:36]New connection [21:48:36]New thread 3067608420 created [21:48:36]Waiting for new connection... [21:48:36] Sock 9.Parse request [21:48:36]Sock 9.Check first char [21:48:36]Sock 9.First char is OK [21:48:36]request: POST /json_proto HTTP/1.0 [21:48:36]Method: POST [21:48:36]URL: /json_proto [21:48:36]Method is POST - this is cgi request [21:48:36]url: /json_proto [21:48:36]query_string will be loaded in cgi processing [21:48:36]execute_cgi json_proto POST (null) [21:48:36]execute_cgi path=json_proto method=POST [21:48:36]POST find Content-Length [21:48:36]Host: 172.17.56.4:8080 [21:48:36]Content-Length: 215 [21:48:36]Content-Type: application/json [21:48:36] [21:48:36]POST finish read [21:48:36]Found Content-Length = 215 [21:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:36]execute_script... [21:48:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:36]POST & json_proto [21:48:36]process_json_proto [21:48:36]json parsed OK: [21:48:36]protocol is kg_v1.0 [21:48:36]action value=get_value [21:48:36]process_action get_value [21:48:36]cmd_get_value [21:48:36]process_action get_value done [21:48:36]requested_data is exist [21:48:36]produce_requested_data [21:48:36]requested_item kkm.sn is exist - process it [21:48:36]requested_item kkm.ver is exist - process it [21:48:36]requested_item fm.sn is exist - process it [21:48:36]wFMCommunicate request_size=4 [21:48:36]MH_SAM_APDU [21:48:36]CAPDU: 80 11 00 00 [21:48:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:36]Read from MH i2c: E2 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 17 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [21:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:48:36]wFMCommunicate OK [21:48:36]requested_item fd.num is exist - process it [21:48:36]SAM_PROTO_GetFieldsCounters [21:48:36]wFMCommunicate request_size=4 [21:48:36]MH_SAM_APDU [21:48:36]CAPDU: 80 13 00 00 [21:48:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:36]Read from MH i2c: E2 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 62 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [21:48: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:36]wFMCommunicate OK [21:48:36]SAM_PROTO_GetFieldsCounters done [21:48:36]requested_item shift.num is exist - process it [21:48:36]requested_item shift.opened is exist - process it [21:48:36]req_shift_opened [21:48:36]FM_GetShiftState [21:48:36]SAM_PROTO_GetShiftState [21:48:36]wFMCommunicate request_size=4 [21:48:36]MH_SAM_APDU [21:48:36]CAPDU: 80 13 01 00 [21:48:36]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:36]Read from MH i2c: E2 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 0E 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D9 [21:48:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:48:36]wFMCommunicate OK [21:48:36]SAM_PROTO_GetShiftState done [21:48:36]FM_GetShiftState done [21:48:36]req_shift_opened done [21:48:36]requested_item shift.open_date is exist - process it [21:48:36]req_shift_open_date [21:48:36]req_shift_open_date done [21:48:36]produce_requested_data done [21:48:36]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164400,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:48:36]process_action_free get_value [21:48:36]json_value_free [21:48:36]json_value_free done [21:48:36]process_json_proto returns [21:48:36]Send response to host [21:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164400,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:48:36]free response buf [21:48:36]execute_script done [21:48:36]execute_script returns [21:48:36]free content buf [21:48:36]Sock 9.Close socket [21:48:36]Sock 9.Thread stoped [21:48:36]accept exits with 7 [21:48:36]New connection [21:48:36]New thread 3067465060 created [21:48:36]Thread 3067608420 joined [21:48:36]Waiting for new connection... [21:48:36] Sock 7.Parse request [21:48:36]Sock 7.Check first char [21:48:36]Sock 7.First char is OK [21:48:36]request: POST /json_proto HTTP/1.0 [21:48:36]Method: POST [21:48:36]URL: /json_proto [21:48:36]Method is POST - this is cgi request [21:48:36]url: /json_proto [21:48:36]query_string will be loaded in cgi processing [21:48:36]execute_cgi json_proto POST (null) [21:48:36]execute_cgi path=json_proto method=POST [21:48:36]POST find Content-Length [21:48:36]Host: 172.17.56.4:8080 [21:48:36]Content-Length: 331 [21:48:36]Content-Type: application/json [21:48:36] [21:48:36]POST finish read [21:48:36]Found Content-Length = 331 [21:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:48:36]execute_script... [21:48:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:48:37]POST & json_proto [21:48:37]process_json_proto [21:48:37]json parsed OK: [21:48:37]protocol is kg_v1.0 [21:48:37]action value=get_value [21:48:37]process_action get_value [21:48:37]cmd_get_value [21:48:37]process_action get_value done [21:48:37]requested_data is exist [21:48:37]produce_requested_data [21:48:37]requested_item fm.sale.total is exist - process it [21:48:37]SAM_PROTO_GetFMData [21:48:37]wFMCommunicate request_size=4 [21:48:37]MH_SAM_APDU [21:48:37]CAPDU: 80 13 03 00 [21:48:37]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:48:37]Write i2c OK [21:48:37]MH_I2C_Read... [21:48:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:48:37]Read from MH i2c: E2 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 FD 00 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 B3 7E 02 00 69 04 A3 00 6F 04 04 00 A6 7D 02 00 B1 04 05 00 93 0D 81 56 02 70 04 05 00 55 D1 8C 34 02 72 04 04 00 3E 3C F4 21 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 47 23 95 3F 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 64 3D 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 08 [21:48:37]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 B3 7E 02 00 69 04 A3 00 6F 04 04 00 A6 7D 02 00 B1 04 05 00 93 0D 81 56 02 70 04 05 00 55 D1 8C 34 02 72 04 04 00 3E 3C F4 21 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 47 23 95 3F 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 64 3D 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 [21:48:37]wFMCommunicate OK [21:48:37]wFMCommunicate request_size=4 [21:48:37]MH_SAM_APDU [21:48:37]CAPDU: 80 17 00 00 [21:48:37]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:48:37]Write i2c OK [21:48:37]MH_I2C_Read... [21:48:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:37]Read from MH i2c: E2 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 FD 00 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 DD [21:48:37]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [21:48:37]wFMCommunicate OK [21:48:37]wFMCommunicate request_size=4 [21:48:37]MH_SAM_APDU [21:48:37]CAPDU: 80 17 00 00 [21:48:37]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:48:37]Write i2c OK [21:48:37]MH_I2C_Read... [21:48:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:38]Read from MH i2c: E2 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 FD 00 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [21:48:38]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [21:48:38]wFMCommunicate OK [21:48:38]wFMCommunicate request_size=4 [21:48:38]MH_SAM_APDU [21:48:38]CAPDU: 80 17 00 00 [21:48:38]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:48:38]Write i2c OK [21:48:38]MH_I2C_Read... [21:48:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:38]Read from MH i2c: E2 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 FD 00 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [21:48:38]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [21:48:38]wFMCommunicate OK [21:48:38]wFMCommunicate request_size=4 [21:48:38]MH_SAM_APDU [21:48:38]CAPDU: 80 17 00 00 [21:48:38]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:48:38]Write i2c OK [21:48:38]MH_I2C_Read... [21:48:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [21:48:38]Read from MH i2c: E2 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 E1 00 [21:48:38]MH_I2C_Read... [21:48:38]OFD Sender: No OFD packet to send [21:48:38]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [21:48:38]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:48:38]wFMCommunicate OK [21:48:38]SAM_PROTO_GetFMData done [21:48:38]requested_item fm.sale_refund.total is exist - process it [21:48:38]requested_item fm.buy.total is exist - process it [21:48:38]requested_item shift.sale.total is exist - process it [21:48:38]SAM_PROTO_GetShiftData [21:48:38]wFMCommunicate request_size=4 [21:48:38]MH_SAM_APDU [21:48:38]CAPDU: 80 13 02 00 [21:48:38]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:48:38]Write i2c OK [21:48:38]MH_I2C_Read... [21:48:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:48:39]Read from MH i2c: E2 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 FD 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 41 01 00 00 69 04 9E 00 6F 04 04 00 40 01 00 00 B1 04 04 00 F8 02 5E 01 70 04 04 00 C8 82 27 01 72 04 03 00 30 80 36 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 B4 2D 25 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 FD 18 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 A6 [21:48:39]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 41 01 00 00 69 04 9E 00 6F 04 04 00 40 01 00 00 B1 04 04 00 F8 02 5E 01 70 04 04 00 C8 82 27 01 72 04 03 00 30 80 36 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 B4 2D 25 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 FD 18 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [21:48:39]wFMCommunicate OK [21:48:39]wFMCommunicate request_size=4 [21:48:39]MH_SAM_APDU [21:48:39]CAPDU: 80 17 00 00 [21:48:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:39]Read from MH i2c: E2 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 FD 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 62 [21:48:39]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [21:48:39]wFMCommunicate OK [21:48:39]wFMCommunicate request_size=4 [21:48:39]MH_SAM_APDU [21:48:39]CAPDU: 80 17 00 00 [21:48:39]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:39]Read from MH i2c: E2 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 FD 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [21:48:39]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [21:48:39]wFMCommunicate OK [21:48:39]wFMCommunicate request_size=4 [21:48:39]MH_SAM_APDU [21:48:39]CAPDU: 80 17 00 00 [21:48:39]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:48:39]Read from MH i2c: E2 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 FD 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [21:48:40]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [21:48:40]wFMCommunicate OK [21:48:40]wFMCommunicate request_size=4 [21:48:40]MH_SAM_APDU [21:48:40]CAPDU: 80 17 00 00 [21:48:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:48:40]Write i2c OK [21:48:40]MH_I2C_Read... [21:48:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [21:48:40]Read from MH i2c: E2 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 D6 00 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [21:48:40]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:48:40]wFMCommunicate OK [21:48:40]SAM_PROTO_GetShiftData done [21:48:40]requested_item shift.sale.total_cash is exist - process it [21:48:40]requested_item shift.sale_refund.total is exist - process it [21:48:40]requested_item shift.sale_refund.total_cash is exist - process it [21:48:40]requested_item shift.buy.total is exist - process it [21:48:40]requested_item shift.buy.total_cash is exist - process it [21:48:40]produce_requested_data done [21:48:40]produce_requested_data return {"fm.sale.total":100412327.87,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":229383.60,"shift.sale.total_cash":193666.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:48:40]process_action_free get_value [21:48:40]json_value_free [21:48:40]json_value_free done [21:48:40]process_json_proto returns [21:48:40]Send response to host [21:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100412327.87,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":229383.60,"shift.sale.total_cash":193666.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:48:40]free response buf [21:48:40]execute_script done [21:48:40]execute_script returns [21:48:40]free content buf [21:48:40]Sock 7.Close socket [21:48:40]Sock 7.Thread stoped [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:50:24]ConnectInit Can't connect to host [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:08]accept exits with 9 [21:51:08]New connection [21:51:08]New thread 3067632996 created [21:51:08]Waiting for new connection... [21:51:08] Sock 9.Parse request [21:51:08]Sock 9.Check first char [21:51:08]Sock 9.First char is OK [21:51:08]request: POST /json_proto HTTP/1.0 [21:51:08]Method: POST [21:51:08]URL: /json_proto [21:51:08]Method is POST - this is cgi request [21:51:08]url: /json_proto [21:51:08]query_string will be loaded in cgi processing [21:51:08]execute_cgi json_proto POST (null) [21:51:08]execute_cgi path=json_proto method=POST [21:51:08]POST find Content-Length [21:51:08]Host: 172.17.56.4:8080 [21:51:08]Content-Length: 215 [21:51:08]Content-Type: application/json [21:51:08] [21:51:08]POST finish read [21:51:08]Found Content-Length = 215 [21:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:08]execute_script... [21:51:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:08]POST & json_proto [21:51:08]process_json_proto [21:51:08]json parsed OK: [21:51:08]protocol is kg_v1.0 [21:51:08]action value=get_value [21:51:08]process_action get_value [21:51:08]cmd_get_value [21:51:08]process_action get_value done [21:51:08]requested_data is exist [21:51:08]produce_requested_data [21:51:08]requested_item kkm.sn is exist - process it [21:51:08]requested_item kkm.ver is exist - process it [21:51:08]requested_item fm.sn is exist - process it [21:51:08]wFMCommunicate request_size=4 [21:51:08]MH_SAM_APDU [21:51:08]CAPDU: 80 11 00 00 [21:51:08]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:08]Read from MH i2c: E2 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 17 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [21:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:51:08]wFMCommunicate OK [21:51:08]requested_item fd.num is exist - process it [21:51:08]SAM_PROTO_GetFieldsCounters [21:51:08]wFMCommunicate request_size=4 [21:51:08]MH_SAM_APDU [21:51:08]CAPDU: 80 13 00 00 [21:51:08]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:08]Read from MH i2c: E2 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 62 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [21:51:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:08]wFMCommunicate OK [21:51:08]SAM_PROTO_GetFieldsCounters done [21:51:08]requested_item shift.num is exist - process it [21:51:08]requested_item shift.opened is exist - process it [21:51:08]req_shift_opened [21:51:08]FM_GetShiftState [21:51:08]SAM_PROTO_GetShiftState [21:51:08]wFMCommunicate request_size=4 [21:51:08]MH_SAM_APDU [21:51:08]CAPDU: 80 13 01 00 [21:51:08]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:08]Read from MH i2c: E2 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 0E 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D9 [21:51:08]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:51:08]wFMCommunicate OK [21:51:08]SAM_PROTO_GetShiftState done [21:51:08]FM_GetShiftState done [21:51:08]req_shift_opened done [21:51:08]requested_item shift.open_date is exist - process it [21:51:08]req_shift_open_date [21:51:08]req_shift_open_date done [21:51:08]produce_requested_data done [21:51:08]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164400,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:51:08]process_action_free get_value [21:51:08]json_value_free [21:51:08]json_value_free done [21:51:08]process_json_proto returns [21:51:08]Send response to host [21:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164400,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:51:08]free response buf [21:51:08]execute_script done [21:51:08]execute_script returns [21:51:08]free content buf [21:51:08]Sock 9.Close socket [21:51:08]Sock 9.Thread stoped [21:51:08]accept exits with 7 [21:51:08]New connection [21:51:08]New thread 3067489636 created [21:51:08]Thread 3067632996 joined [21:51:08]Waiting for new connection... [21:51:08] Sock 7.Parse request [21:51:08]Sock 7.Check first char [21:51:08]Sock 7.First char is OK [21:51:08]request: POST /json_proto HTTP/1.0 [21:51:08]Method: POST [21:51:08]URL: /json_proto [21:51:08]Method is POST - this is cgi request [21:51:08]url: /json_proto [21:51:08]query_string will be loaded in cgi processing [21:51:08]execute_cgi json_proto POST (null) [21:51:08]execute_cgi path=json_proto method=POST [21:51:08]POST find Content-Length [21:51:08]Host: 172.17.56.4:8080 [21:51:08]Content-Length: 331 [21:51:08]Content-Type: application/json [21:51:08] [21:51:08]POST finish read [21:51:08]Found Content-Length = 331 [21:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:51:08]execute_script... [21:51:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:51:08]POST & json_proto [21:51:08]process_json_proto [21:51:08]json parsed OK: [21:51:08]protocol is kg_v1.0 [21:51:08]action value=get_value [21:51:08]process_action get_value [21:51:08]cmd_get_value [21:51:08]process_action get_value done [21:51:08]requested_data is exist [21:51:08]produce_requested_data [21:51:08]requested_item fm.sale.total is exist - process it [21:51:08]SAM_PROTO_GetFMData [21:51:08]wFMCommunicate request_size=4 [21:51:08]MH_SAM_APDU [21:51:08]CAPDU: 80 13 03 00 [21:51:08]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:51:09]Read from MH i2c: E2 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 FD 00 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 B3 7E 02 00 69 04 A3 00 6F 04 04 00 A6 7D 02 00 B1 04 05 00 93 0D 81 56 02 70 04 05 00 55 D1 8C 34 02 72 04 04 00 3E 3C F4 21 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 47 23 95 3F 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 64 3D 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 08 [21:51:09]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 B3 7E 02 00 69 04 A3 00 6F 04 04 00 A6 7D 02 00 B1 04 05 00 93 0D 81 56 02 70 04 05 00 55 D1 8C 34 02 72 04 04 00 3E 3C F4 21 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 47 23 95 3F 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 64 3D 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 [21:51:09]wFMCommunicate OK [21:51:09]wFMCommunicate request_size=4 [21:51:09]MH_SAM_APDU [21:51:09]CAPDU: 80 17 00 00 [21:51:09]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:51:09]Read from MH i2c: E2 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 FD 00 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 DD [21:51:09]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [21:51:09]wFMCommunicate OK [21:51:09]wFMCommunicate request_size=4 [21:51:09]MH_SAM_APDU [21:51:09]CAPDU: 80 17 00 00 [21:51:09]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:51:09]Read from MH i2c: E2 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 FD 00 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [21:51:09]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [21:51:09]wFMCommunicate OK [21:51:09]wFMCommunicate request_size=4 [21:51:09]MH_SAM_APDU [21:51:09]CAPDU: 80 17 00 00 [21:51:09]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 FD 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [21:51:10]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [21:51:10]wFMCommunicate OK [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 17 00 00 [21:51:10]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 E1 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [21:51:10]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:51:10]wFMCommunicate OK [21:51:10]SAM_PROTO_GetFMData done [21:51:10]requested_item fm.sale_refund.total is exist - process it [21:51:10]requested_item fm.buy.total is exist - process it [21:51:10]requested_item shift.sale.total is exist - process it [21:51:10]SAM_PROTO_GetShiftData [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 13 02 00 [21:51:10]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 FD 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 41 01 00 00 69 04 9E 00 6F 04 04 00 40 01 00 00 B1 04 04 00 F8 02 5E 01 70 04 04 00 C8 82 27 01 72 04 03 00 30 80 36 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 B4 2D 25 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 FD 18 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 A6 [21:51:10]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 41 01 00 00 69 04 9E 00 6F 04 04 00 40 01 00 00 B1 04 04 00 F8 02 5E 01 70 04 04 00 C8 82 27 01 72 04 03 00 30 80 36 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 B4 2D 25 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 FD 18 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [21:51:10]wFMCommunicate OK [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 17 00 00 [21:51:10]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 FD 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 62 [21:51:11]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [21:51:11]wFMCommunicate OK [21:51:11]wFMCommunicate request_size=4 [21:51:11]MH_SAM_APDU [21:51:11]CAPDU: 80 17 00 00 [21:51:11]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:51:11]Write i2c OK [21:51:11]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 FD 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [21:51:11]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [21:51:11]wFMCommunicate OK [21:51:11]wFMCommunicate request_size=4 [21:51:11]MH_SAM_APDU [21:51:11]CAPDU: 80 17 00 00 [21:51:11]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:51:11]Write i2c OK [21:51:11]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 FD 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [21:51:11]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [21:51:11]wFMCommunicate OK [21:51:11]wFMCommunicate request_size=4 [21:51:11]MH_SAM_APDU [21:51:11]CAPDU: 80 17 00 00 [21:51:11]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:51:11]Write i2c OK [21:51:11]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 D6 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [21:51:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:51:11]wFMCommunicate OK [21:51:11]SAM_PROTO_GetShiftData done [21:51:11]requested_item shift.sale.total_cash is exist - process it [21:51:11]requested_item shift.sale_refund.total is exist - process it [21:51:11]requested_item shift.sale_refund.total_cash is exist - process it [21:51:11]requested_item shift.buy.total is exist - process it [21:51:11]requested_item shift.buy.total_cash is exist - process it [21:51:11]produce_requested_data done [21:51:11]produce_requested_data return {"fm.sale.total":100412327.87,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":229383.60,"shift.sale.total_cash":193666.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:51:11]process_action_free get_value [21:51:11]json_value_free [21:51:11]json_value_free done [21:51:11]process_json_proto returns [21:51:11]Send response to host [21:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100412327.87,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":229383.60,"shift.sale.total_cash":193666.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:51:11]free response buf [21:51:11]execute_script done [21:51:11]execute_script returns [21:51:11]free content buf [21:51:11]Sock 7.Close socket [21:51:11]Sock 7.Thread stoped [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:03]accept exits with 9 [21:52:03]New connection [21:52:03]New thread 3067632996 created [21:52:03]Thread 3067489636 joined [21:52:03]Waiting for new connection... [21:52:03] Sock 9.Parse request [21:52:03]Sock 9.Check first char [21:52:03]Sock 9.First char is OK [21:52:03]request: POST /json_proto HTTP/1.0 [21:52:03]Method: POST [21:52:03]URL: /json_proto [21:52:03]Method is POST - this is cgi request [21:52:03]url: /json_proto [21:52:03]query_string will be loaded in cgi processing [21:52:03]execute_cgi json_proto POST (null) [21:52:03]execute_cgi path=json_proto method=POST [21:52:03]POST find Content-Length [21:52:03]Host: 172.17.56.4:8080 [21:52:03]Content-Length: 682 [21:52:03]Content-Type: application/json [21:52:03] [21:52:03]POST finish read [21:52:03]Found Content-Length = 682 [21:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:03]execute_script... [21:52:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:03]POST & json_proto [21:52:03]process_json_proto [21:52:03]json parsed OK: [21:52:03]protocol is kg_v1.0 [21:52:03]action value=close_receipt [21:52:03]process_action close_receipt [21:52:03]cmd_close_receipt [21:52:03]MH_GetDate [21:52:03]Write to MH i2c: F0 00 00 1D 00 0C [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: F0 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: F0 09 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: F0 09 00 1D 00 00 84 A5 91 66 C9 DC B2 64 F0 [21:52:03]GetLastDocTimeStamp 1720820372 [21:52:03]current date 1720821124 [21:52:03]FM_GetShiftState [21:52:03]SAM_PROTO_GetShiftState [21:52:03]wFMCommunicate request_size=4 [21:52:03]MH_SAM_APDU [21:52:03]CAPDU: 80 13 01 00 [21:52:03]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:03]Read from MH i2c: E2 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 0E 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E5 [21:52:03]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:52:03]wFMCommunicate OK [21:52:03]SAM_PROTO_GetShiftState done [21:52:03]FM_GetShiftState done [21:52:03]opened in 1720744654 [21:52:03]opened+sec_in_day 1720831054 [21:52:03]quantity*price = 100016 [21:52:03]sum+1 = 100017 [21:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 322 12.07.2024 21:52 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164401 ФПД: 171645719619692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215204&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164401&fm=171645719619692&tin=02508201610067®Number=0000000000090829&sum=100000 [21:52:05]StoreToDocumentArchive [21:52:05]shift 445 fd 164401 [21:52:05]save to /storage/0445/doc_00164401 [21:52:05]save last doc name /storage/0445/doc_00164401 to /storage/kkm_last_doc_name [21:52:05]save OK [21:52:05]Clear old archive folders... [21:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:05]tlvbuf is B6F80690 [21:52:05]SAM_PROTO_ClearQueue [21:52:05]wFMCommunicate request_size=4 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 09 00 00 [21:52:05]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 03 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [21:52:05]RAPDU: 90 00 [21:52:05]wFMCommunicate OK [21:52:05]SAM_PROTO_ClearQueue done [21:52:05]KKMCreateOFDPacket [21:52:05]OFDProtocolAddRootSTLVToBuf [21:52:05]FM_MakeSignedData [21:52:05]FM_MakeSignedData [21:52:05]SAM_PROTO_SignData [21:52:05]wFMCommunicate request_size=4 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 0D 01 02 [21:52:05]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 03 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [21:52:05]RAPDU: 90 00 [21:52:05]wFMCommunicate OK [21:52:05]wFMCommunicate request_size=255 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 84 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 82 02 00 35 04 06 00 9C [21:52:05]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 84 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 82 02 00 35 04 06 00 9C 00 00 32 [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 03 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [21:52:05]RAPDU: 90 00 [21:52:05]wFMCommunicate OK [21:52:05]wFMCommunicate request_size=10 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 0D 02 02 05 1C 62 25 28 6C [21:52:05]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 1C 62 25 28 6C 00 00 E9 [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 03 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [21:52:05]RAPDU: 90 00 [21:52:05]wFMCommunicate OK [21:52:05]wFMCommunicate request_size=4 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 0D 03 02 [21:52:05]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 0B 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 0B 00 2F 00 00 83 4F F0 5B CA AB DF EC 90 00 08 [21:52:05]RAPDU: 83 4F F0 5B CA AB DF EC 90 00 [21:52:05]wFMCommunicate OK [21:52:05]SAM_PROTO_SignData done [21:52:05]FM_MakeSignedData done [21:52:05]CreateOFDProtocolMessage [21:52:05]wFMCommunicate request_size=4 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 11 00 00 [21:52:05]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 17 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [21:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:52:05]wFMCommunicate OK [21:52:05]CreateOFDProtocolMessage done [21:52:05]OFDSenderStorePacket 164401 [21:52:05]StoreOFDPacket docnum=164401 [21:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3D B9 07 01 E7 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 84 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 82 02 00 35 04 06 00 9C 1C 62 25 28 6C 83 4F F0 5B CA AB DF EC [21:52:05]CheckFolder [21:52:05]dirname=/storage/ofd_packets [21:52:05]CheckFolder done [21:52:05]ProducePacketName [21:52:05]name=ofd_packets/00164401 [21:52:05]NVStorageSaveData ofd_packets/00164401 [21:52:05]File name is /storage/ofd_packets/00164401 [21:52:05]Write 301 bytes [21:52:05]NVStorageSaveData done [21:52:05]OFDSenderStorePacket done [21:52:05]KKMCreateOFDPacket done [21:52:05]NVStorageSaveData kkm_last_timestamp [21:52:05]File name is /storage/kkm_last_timestamp [21:52:05]Write 4 bytes [21:52:05]NVStorageSaveData done [21:52:05]ExternCall_PrintAddStr [21:52:05]wPrintStart [21:52:05]Write to MH i2c: 01 00 00 31 00 31 [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: 01 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: 01 07 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [21:52:05]RasterBufferAndPrint [21:52:05]line Счет N : (1)458489 [21:52:05]line ИНН: 02508201610067 [21:52:05]line Контрольно-Кассовый Чек [21:52:05]line ПРОДАЖА [21:52:05]line ТРК (МРК, ГНК) : 12 [21:52:05]line Товар: 2710124130 [21:52:05]line Аи-92-К-5 [21:52:05]line 15.200 * 65.80 [21:52:05]line = 1000.16 [21:52:05]line НДС 12% НСП 1% [21:52:05]line > о реализуемом товаре [21:52:05]line ОКРУГЛЕНИЕ: -0.16 [21:52:05]line ИТОГО: 1000.00 [21:52:05]line Внесено: 1000.00 [21:52:05]line СДАЧА: 0.00 [21:52:05]line НСП 1% : 8.85 [21:52:05]line НДС 12% : 106.21 [21:52:05]line Наличными: 1000.00 [21:52:05]line Безнал.: 0.00 [21:52:05]line Место: АЗС № 72 "Партнер Нефть" [21:52:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:52:05]line СНО: Общий режим [21:52:05]line Чек 322 12.07.2024 21:52 [21:52:05]line Смена: 445 ФФД: 1.0 [21:52:05]line ЗНМ: 0300000160 [21:52:05]line РНМ: 0000000000090829 [21:52:05]line Версия ККМ: 001 [21:52:05]line ФМ: 0000000000874718 [21:52:05]line ФД: 164401 [21:52:05]line ФПД: 171645719619692 [21:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215204&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164401&fm=171645719619692&tin=02508201610067®Number=0000000000090829&sum=100000 [21:52:05]written 0, free lines is 4095 [21:52:05]OFD Sender: Processing packet 164401 [packets to send 104, broken 103] [21:52:05]ProducePacketName [21:52:05]name=ofd_packets/00164401 [21:52:05]OFD Sender: To server: pG, [21:52:05]CommunicateWithHost lk.salyk.kg:30040 [21:52:05]ConnectInit lk.salyk.kg [21:52:05]Connected sock=10 [21:52:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3D B9 07 01 E7 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 84 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 82 02 00 35 04 06 00 9C 1C 62 25 28 6C 83 4F F0 5B CA AB DF EC [21:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C9 48 47 00 C4 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 34 37 31 38 10 04 04 00 31 82 02 00 F4 03 04 00 17 4C 91 66 B6 04 01 00 00 6B 60 40 7B 8B 7A 15 08 [21:52:05]CommunicateWithHost err = 0 [21:52:05]CheckOFDResponse [21:52:05]1017 (14) - 77093643461234 [21:52:05]1041 (16) - 0000000000874718 [21:52:05]1040 (4) - 164401 [21:52:05]1012 (4) - 12.07.2024 15:30 [21:52:05]1206 (1) - 0 [21:52:05]OFD Sender: Remove packet 164401 [21:52:05]ProducePacketName [21:52:05]name=ofd_packets/00164401 [21:52:05]NVStorageDeleteData [21:52:06]Write to MH i2c: 01 00 00 5B 00 5B [21:52:06]Write i2c OK [21:52:06]MH_I2C_Read... [21:52:06]Read from MH i2c: 01 [21:52:06]MH_I2C_Read... [21:52:06]Read from MH i2c: 01 07 00 [21:52:06]MH_I2C_Read... [21:52:06]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 0C 0D 7B [21:52:06]RasterBufferAndPrint [21:52:06]line [21:52:06]line [21:52:06]line [21:52:06]line [21:52:06]line [21:52:06]written 0, free lines is 3346 [21:52:06]MH_Cut [21:52:06]Write to MH i2c: D1 01 00 62 00 01 34 [21:52:06]Write i2c OK [21:52:06]MH_I2C_Read... [21:52:06]Read from MH i2c: D1 [21:52:06]MH_I2C_Read... [21:52:06]Read from MH i2c: D1 01 00 [21:52:06]MH_I2C_Read... [21:52:06]Read from MH i2c: D1 01 00 62 00 00 33 [21:52:06]Write to MH i2c: 01 00 00 63 00 63 [21:52:06]Write i2c OK [21:52:06]MH_I2C_Read... [21:52:06]OFD Sender: No OFD packet to send [21:52:06]*** Cut start [21:52:06]*** Partial cut [21:52:06]*** CUTSNS_PIN = 1 [21:52:06]*** CUTSNS_PIN = 0 [21:52:06]*** Brake cut motor [21:52:07]Read from MH i2c: 01 [21:52:07]MH_I2C_Read... [21:52:07]*** Stop cut motor [21:52:07]*** Cut end [21:52:07]Read from MH i2c: 01 07 00 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [21:52:07]process_action close_receipt done [21:52:07]requested_data is exist [21:52:07]produce_requested_data [21:52:07]requested_item fm.sn is exist - process it [21:52:07]wFMCommunicate request_size=4 [21:52:07]MH_SAM_APDU [21:52:07]CAPDU: 80 11 00 00 [21:52:07]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [21:52:07]Write i2c OK [21:52:07]MH_I2C_Read... [21:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:07]Read from MH i2c: E2 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: E2 17 00 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [21:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:52:07]wFMCommunicate OK [21:52:07]requested_item fd.num is exist - process it [21:52:07]SAM_PROTO_GetFieldsCounters [21:52:07]wFMCommunicate request_size=4 [21:52:07]MH_SAM_APDU [21:52:07]CAPDU: 80 13 00 00 [21:52:07]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [21:52:07]Write i2c OK [21:52:07]MH_I2C_Read... [21:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:07]Read from MH i2c: E2 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: E2 62 00 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [21:52: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:07]wFMCommunicate OK [21:52:07]SAM_PROTO_GetFieldsCounters done [21:52:07]requested_item shift.num is exist - process it [21:52:07]requested_item shift.opened is exist - process it [21:52:07]req_shift_opened [21:52:07]FM_GetShiftState [21:52:07]SAM_PROTO_GetShiftState [21:52:07]wFMCommunicate request_size=4 [21:52:07]MH_SAM_APDU [21:52:07]CAPDU: 80 13 01 00 [21:52:07]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [21:52:07]Write i2c OK [21:52:07]MH_I2C_Read... [21:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:07]Read from MH i2c: E2 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: E2 0E 00 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2D [21:52:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:52:07]wFMCommunicate OK [21:52:07]SAM_PROTO_GetShiftState done [21:52:07]FM_GetShiftState done [21:52:07]req_shift_opened done [21:52:07]requested_item shift.open_date is exist - process it [21:52:07]req_shift_open_date [21:52:07]req_shift_open_date done [21:52:07]produce_requested_data done [21:52:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164401,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:52:07]process_action_free close_receipt [21:52:07]json_value_free [21:52:07]json_value_free done [21:52:07]process_json_proto returns [21:52:07]Send response to host [21:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164401,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:52:07]free response buf [21:52:07]execute_script done [21:52:07]execute_script returns [21:52:07]free content buf [21:52:07]Sock 9.Close socket [21:52:07]Sock 9.Thread stoped [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:19]accept exits with 7 [21:52:19]New connection [21:52:19]New thread 3067489636 created [21:52:19]Thread 3067632996 joined [21:52:19]Waiting for new connection... [21:52:19] Sock 7.Parse request [21:52:19]Sock 7.Check first char [21:52:19]Sock 7.First char is OK [21:52:19]request: POST /json_proto HTTP/1.0 [21:52:19]Method: POST [21:52:19]URL: /json_proto [21:52:19]Method is POST - this is cgi request [21:52:19]url: /json_proto [21:52:19]query_string will be loaded in cgi processing [21:52:19]execute_cgi json_proto POST (null) [21:52:19]execute_cgi path=json_proto method=POST [21:52:19]POST find Content-Length [21:52:19]Host: 172.17.56.4:8080 [21:52:19]Content-Length: 679 [21:52:19]Content-Type: application/json [21:52:19] [21:52:19]POST finish read [21:52:19]Found Content-Length = 679 [21:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458490", "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" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:19]execute_script... [21:52: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)458490", "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" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:19]POST & json_proto [21:52:19]process_json_proto [21:52:19]json parsed OK: [21:52:19]protocol is kg_v1.0 [21:52:19]action value=close_receipt [21:52:19]process_action close_receipt [21:52:19]cmd_close_receipt [21:52:19]MH_GetDate [21:52:19]Write to MH i2c: F0 00 00 67 00 56 [21:52:19]Write i2c OK [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: F0 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: F0 09 00 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: F0 09 00 67 00 00 94 A5 91 66 C9 DC B2 64 4A [21:52:19]GetLastDocTimeStamp 1720821124 [21:52:19]current date 1720821140 [21:52:19]FM_GetShiftState [21:52:19]SAM_PROTO_GetShiftState [21:52:19]wFMCommunicate request_size=4 [21:52:19]MH_SAM_APDU [21:52:19]CAPDU: 80 13 01 00 [21:52:19]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [21:52:19]Write i2c OK [21:52:19]MH_I2C_Read... [21:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:19]Read from MH i2c: E2 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 0E 00 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2F [21:52:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:52:19]wFMCommunicate OK [21:52:19]SAM_PROTO_GetShiftState done [21:52:19]FM_GetShiftState done [21:52:19]opened in 1720744654 [21:52:19]opened+sec_in_day 1720831054 [21:52:19]quantity*price = 100012 [21:52:19]sum+1 = 100014 [21:52:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 323 12.07.2024 21:52 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164402 ФПД: 76378493218493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164402&fm=76378493218493&tin=02508201610067®Number=0000000000090829&sum=100000 [21:52:20]StoreToDocumentArchive [21:52:20]shift 445 fd 164402 [21:52:20]save to /storage/0445/doc_00164402 [21:52:20]save last doc name /storage/0445/doc_00164402 to /storage/kkm_last_doc_name [21:52:20]save OK [21:52:20]Clear old archive folders... [21:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:52:20]tlvbuf is 00CAA320 [21:52:20]SAM_PROTO_ClearQueue [21:52:20]wFMCommunicate request_size=4 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 09 00 00 [21:52:20]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [21:52:20]RAPDU: 90 00 [21:52:20]wFMCommunicate OK [21:52:20]SAM_PROTO_ClearQueue done [21:52:20]KKMCreateOFDPacket [21:52:20]OFDProtocolAddRootSTLVToBuf [21:52:20]FM_MakeSignedData [21:52:20]FM_MakeSignedData [21:52:20]SAM_PROTO_SignData [21:52:20]wFMCommunicate request_size=4 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 0D 01 02 [21:52:20]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [21:52:20]RAPDU: 90 00 [21:52:20]wFMCommunicate OK [21:52:20]wFMCommunicate request_size=255 [21:52:20]MH_SAM_APDU [21:52: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 94 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 82 02 00 35 04 06 00 45 77 40 F4 [21:52:20]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 94 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 82 02 00 35 04 06 00 45 77 40 F4 00 00 88 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [21:52:20]RAPDU: 90 00 [21:52:20]wFMCommunicate OK [21:52:20]wFMCommunicate request_size=7 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 0D 02 02 02 EE BD [21:52:20]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 EE BD 00 00 A1 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [21:52:20]RAPDU: 90 00 [21:52:20]wFMCommunicate OK [21:52:20]wFMCommunicate request_size=4 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 0D 03 02 [21:52:20]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 0B 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 0B 00 79 00 00 A2 C9 6D DF 4D 8C B8 1C 90 00 59 [21:52:20]RAPDU: A2 C9 6D DF 4D 8C B8 1C 90 00 [21:52:20]wFMCommunicate OK [21:52:20]SAM_PROTO_SignData done [21:52:20]FM_MakeSignedData done [21:52:20]CreateOFDProtocolMessage [21:52:20]wFMCommunicate request_size=4 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 11 00 00 [21:52:20]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 17 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [21:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:52:20]wFMCommunicate OK [21:52:20]CreateOFDProtocolMessage done [21:52:20]OFDSenderStorePacket 164402 [21:52:20]StoreOFDPacket docnum=164402 [21:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A1 2C 04 01 37 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 94 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 82 02 00 35 04 06 00 45 77 40 F4 EE BD A2 C9 6D DF 4D 8C B8 1C [21:52:20]CheckFolder [21:52:20]dirname=/storage/ofd_packets [21:52:20]CheckFolder done [21:52:20]ProducePacketName [21:52:20]name=ofd_packets/00164402 [21:52:20]NVStorageSaveData ofd_packets/00164402 [21:52:20]File name is /storage/ofd_packets/00164402 [21:52:20]Write 298 bytes [21:52:20]NVStorageSaveData done [21:52:20]OFDSenderStorePacket done [21:52:20]KKMCreateOFDPacket done [21:52:20]NVStorageSaveData kkm_last_timestamp [21:52:20]File name is /storage/kkm_last_timestamp [21:52:20]Write 4 bytes [21:52:20]NVStorageSaveData done [21:52:20]ExternCall_PrintAddStr [21:52:20]wPrintStart [21:52:20]Write to MH i2c: 01 00 00 7B 00 7B [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: 01 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: 01 07 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [21:52:20]RasterBufferAndPrint [21:52:20]line Счет N : (1)458490 [21:52:20]line ИНН: 02508201610067 [21:52:20]line Контрольно-Кассовый Чек [21:52:20]line ПРОДАЖА [21:52:20]line ТРК (МРК, ГНК) : 21 [21:52:20]line Товар: 2710194210 [21:52:20]line ДТ-К-5 [21:52:20]line 13.910 * 71.90 [21:52:20]line = 1000.13 [21:52:20]line НДС 12% НСП 1% [21:52:20]line > о реализуемом товаре [21:52:20]line ОКРУГЛЕНИЕ: -0.13 [21:52:20]line ИТОГО: 1000.00 [21:52:20]line Внесено: 1000.00 [21:52:20]line СДАЧА: 0.00 [21:52:20]line НСП 1% : 8.85 [21:52:20]line НДС 12% : 106.21 [21:52:20]line Наличными: 1000.00 [21:52:20]line Безнал.: 0.00 [21:52:20]line Место: АЗС № 72 "Партнер Нефть" [21:52:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:52:20]line СНО: Общий режим [21:52:20]line Чек 323 12.07.2024 21:52 [21:52:20]line Смена: 445 ФФД: 1.0 [21:52:20]line ЗНМ: 0300000160 [21:52:20]line РНМ: 0000000000090829 [21:52:20]line Версия ККМ: 001 [21:52:20]line ФМ: 0000000000874718 [21:52:20]line ФД: 164402 [21:52:20]line ФПД: 76378493218493 [21:52:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164402&fm=76378493218493&tin=02508201610067®Number=0000000000090829&sum=100000 [21:52:21]OFD Sender: Processing packet 164402 [packets to send 104, broken 103] [21:52:21]ProducePacketName [21:52:21]name=ofd_packets/00164402 [21:52:21]OFD Sender: To server: pG, [21:52:21]CommunicateWithHost lk.salyk.kg:30040 [21:52:21]ConnectInit lk.salyk.kg [21:52:21]written 0, free lines is 4095 [21:52:21]Connected sock=10 [21:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A1 2C 04 01 37 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 94 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 82 02 00 35 04 06 00 45 77 40 F4 EE BD A2 C9 6D DF 4D 8C B8 1C [21:52:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D2 D1 47 00 EF 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 34 37 31 38 10 04 04 00 32 82 02 00 F4 03 04 00 27 4C 91 66 B6 04 01 00 00 F9 D5 DC BD 53 75 BE DE [21:52:21]CommunicateWithHost err = 0 [21:52:21]CheckOFDResponse [21:52:21]1017 (14) - 77093643461234 [21:52:21]1041 (16) - 0000000000874718 [21:52:21]1040 (4) - 164402 [21:52:21]1012 (4) - 12.07.2024 15:30 [21:52:21]1206 (1) - 0 [21:52:21]OFD Sender: Remove packet 164402 [21:52:21]ProducePacketName [21:52:21]name=ofd_packets/00164402 [21:52:21]NVStorageDeleteData [21:52:21]Write to MH i2c: 01 00 00 A5 00 A5 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: 01 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: 01 07 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 F6 0C AE [21:52:21]RasterBufferAndPrint [21:52:21]line [21:52:21]line [21:52:21]line [21:52:21]line [21:52:21]line [21:52:21]written 0, free lines is 3324 [21:52:21]MH_Cut [21:52:21]Write to MH i2c: D1 01 00 AC 00 01 7E [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: D1 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: D1 01 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: D1 01 00 AC 00 00 7D [21:52:21]Write to MH i2c: 01 00 00 AD 00 AD [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]OFD Sender: No OFD packet to send [21:52:22]*** Cut start [21:52:22]*** Partial cut [21:52:22]*** CUTSNS_PIN = 1 [21:52:22]*** CUTSNS_PIN = 0 [21:52:22]*** Brake cut motor [21:52:22]Read from MH i2c: 01 [21:52:22]MH_I2C_Read... [21:52:22]*** Stop cut motor [21:52:22]*** Cut end [21:52:22]Read from MH i2c: 01 07 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [21:52:22]process_action close_receipt done [21:52:22]requested_data is exist [21:52:22]produce_requested_data [21:52:22]requested_item fm.sn is exist - process it [21:52:22]wFMCommunicate request_size=4 [21:52:22]MH_SAM_APDU [21:52:22]CAPDU: 80 11 00 00 [21:52:22]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:22]Read from MH i2c: E2 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 17 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [21:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:52:22]wFMCommunicate OK [21:52:22]requested_item fd.num is exist - process it [21:52:22]SAM_PROTO_GetFieldsCounters [21:52:22]wFMCommunicate request_size=4 [21:52:22]MH_SAM_APDU [21:52:22]CAPDU: 80 13 00 00 [21:52:22]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:23]Read from MH i2c: E2 [21:52:23]MH_I2C_Read... [21:52:23]Read from MH i2c: E2 62 00 [21:52:23]MH_I2C_Read... [21:52:23]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [21:52: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:23]wFMCommunicate OK [21:52:23]SAM_PROTO_GetFieldsCounters done [21:52:23]requested_item shift.num is exist - process it [21:52:23]requested_item shift.opened is exist - process it [21:52:23]req_shift_opened [21:52:23]FM_GetShiftState [21:52:23]SAM_PROTO_GetShiftState [21:52:23]wFMCommunicate request_size=4 [21:52:23]MH_SAM_APDU [21:52:23]CAPDU: 80 13 01 00 [21:52:23]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [21:52:23]Write i2c OK [21:52:23]MH_I2C_Read... [21:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:23]Read from MH i2c: E2 [21:52:23]MH_I2C_Read... [21:52:23]Read from MH i2c: E2 0E 00 [21:52:23]MH_I2C_Read... [21:52:23]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 77 [21:52:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:52:23]wFMCommunicate OK [21:52:23]SAM_PROTO_GetShiftState done [21:52:23]FM_GetShiftState done [21:52:23]req_shift_opened done [21:52:23]requested_item shift.open_date is exist - process it [21:52:23]req_shift_open_date [21:52:23]req_shift_open_date done [21:52:23]produce_requested_data done [21:52:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164402,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:52:23]process_action_free close_receipt [21:52:23]json_value_free [21:52:23]json_value_free done [21:52:23]process_json_proto returns [21:52:23]Send response to host [21:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164402,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:52:23]free response buf [21:52:23]execute_script done [21:52:23]execute_script returns [21:52:23]free content buf [21:52:23]Sock 7.Close socket [21:52:23]Sock 7.Thread stoped [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:24]accept exits with 9 [21:53:24]New connection [21:53:24]New thread 3067632996 created [21:53:24]Thread 3067489636 joined [21:53:24]Waiting for new connection... [21:53:24] Sock 9.Parse request [21:53:24]Sock 9.Check first char [21:53:24]Sock 9.First char is OK [21:53:24]request: POST /json_proto HTTP/1.0 [21:53:24]Method: POST [21:53:24]URL: /json_proto [21:53:24]Method is POST - this is cgi request [21:53:24]url: /json_proto [21:53:24]query_string will be loaded in cgi processing [21:53:24]execute_cgi json_proto POST (null) [21:53:24]execute_cgi path=json_proto method=POST [21:53:24]POST find Content-Length [21:53:24]Host: 172.17.56.4:8080 [21:53:24]Content-Length: 840 [21:53:24]Content-Type: application/json [21:53:24] [21:53:24]POST finish read [21:53:24]Found Content-Length = 840 [21:53:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:24]execute_script... [21:53: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)458491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:24]POST & json_proto [21:53:24]process_json_proto [21:53:24]json parsed OK: [21:53:24]protocol is kg_v1.0 [21:53:24]action value=close_receipt [21:53:24]process_action close_receipt [21:53:24]cmd_close_receipt [21:53:24]MH_GetDate [21:53:24]Write to MH i2c: F0 00 00 B1 00 A0 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: F0 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: F0 09 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: F0 09 00 B1 00 00 D5 A5 91 66 C9 DC B2 64 D5 [21:53:24]GetLastDocTimeStamp 1720821140 [21:53:24]current date 1720821205 [21:53:24]FM_GetShiftState [21:53:24]SAM_PROTO_GetShiftState [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 13 01 00 [21:53:24]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 79 [21:53:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_GetShiftState done [21:53:24]FM_GetShiftState done [21:53:24]opened in 1720744654 [21:53:24]opened+sec_in_day 1720831054 [21:53:24]quantity*price = 50023 [21:53:24]sum+1 = 50025 [21:53:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 324 12.07.2024 21:53 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164403 ФПД: 151891959141453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215325&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164403&fm=151891959141453&tin=02508201610067®Number=0000000000090829&sum=50024 [21:53:25]StoreToDocumentArchive [21:53:25]shift 445 fd 164403 [21:53:25]save to /storage/0445/doc_00164403 [21:53:25]save last doc name /storage/0445/doc_00164403 to /storage/kkm_last_doc_name [21:53:25]save OK [21:53:25]Clear old archive folders... [21:53:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:25]tlvbuf is 00CB63F0 [21:53:25]SAM_PROTO_ClearQueue [21:53:25]wFMCommunicate request_size=4 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 09 00 00 [21:53:25]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [21:53:25]RAPDU: 90 00 [21:53:25]wFMCommunicate OK [21:53:25]SAM_PROTO_ClearQueue done [21:53:25]KKMCreateOFDPacket [21:53:25]OFDProtocolAddRootSTLVToBuf [21:53:25]FM_MakeSignedData [21:53:25]FM_MakeSignedData [21:53:25]SAM_PROTO_SignData [21:53:25]wFMCommunicate request_size=4 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 0D 01 02 [21:53:25]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [21:53:25]RAPDU: 90 00 [21:53:25]wFMCommunicate OK [21:53:25]wFMCommunicate request_size=255 [21:53:25]MH_SAM_APDU [21:53: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D5 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 82 02 00 35 04 06 00 8A [21:53:25]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D5 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 82 02 00 35 04 06 00 8A 00 00 B5 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [21:53:26]RAPDU: 90 00 [21:53:26]wFMCommunicate OK [21:53:26]wFMCommunicate request_size=10 [21:53:26]MH_SAM_APDU [21:53:26]CAPDU: 80 0D 02 02 05 25 1A 44 D4 4D [21:53:26]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 25 1A 44 D4 4D 00 00 EA [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [21:53:26]RAPDU: 90 00 [21:53:26]wFMCommunicate OK [21:53:26]wFMCommunicate request_size=4 [21:53:26]MH_SAM_APDU [21:53:26]CAPDU: 80 0D 03 02 [21:53:26]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 0B 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 0B 00 C3 00 00 76 E9 EA B5 9E 76 C3 CF 90 00 E3 [21:53:26]RAPDU: 76 E9 EA B5 9E 76 C3 CF 90 00 [21:53:26]wFMCommunicate OK [21:53:26]SAM_PROTO_SignData done [21:53:26]FM_MakeSignedData done [21:53:26]CreateOFDProtocolMessage [21:53:26]wFMCommunicate request_size=4 [21:53:26]MH_SAM_APDU [21:53:26]CAPDU: 80 11 00 00 [21:53:26]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 17 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [21:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:53:26]wFMCommunicate OK [21:53:26]CreateOFDProtocolMessage done [21:53:26]OFDSenderStorePacket 164403 [21:53:26]StoreOFDPacket docnum=164403 [21:53:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 8C 07 01 B1 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D5 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 82 02 00 35 04 06 00 8A 25 1A 44 D4 4D 76 E9 EA B5 9E 76 C3 CF [21:53:26]CheckFolder [21:53:26]dirname=/storage/ofd_packets [21:53:26]CheckFolder done [21:53:26]ProducePacketName [21:53:26]name=ofd_packets/00164403 [21:53:26]NVStorageSaveData ofd_packets/00164403 [21:53:26]File name is /storage/ofd_packets/00164403 [21:53:26]Write 301 bytes [21:53:26]NVStorageSaveData done [21:53:26]OFDSenderStorePacket done [21:53:26]KKMCreateOFDPacket done [21:53:26]NVStorageSaveData kkm_last_timestamp [21:53:26]File name is /storage/kkm_last_timestamp [21:53:26]Write 4 bytes [21:53:26]NVStorageSaveData done [21:53:26]ExternCall_PrintAddStr [21:53:26]wPrintStart [21:53:26]Write to MH i2c: 01 00 00 C5 00 C5 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 07 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [21:53:26]RasterBufferAndPrint [21:53:26]line Счет N : (1)458491 [21:53:26]line ИНН: 02508201610067 [21:53:26]line Контрольно-Кассовый Чек [21:53:26]line ПРОДАЖА [21:53:26]line ТРК (МРК, ГНК) : 12 [21:53:26]line Товар: 2710124130 [21:53:26]line Аи-92-К-5 [21:53:26]line 7.670 * 65.22 [21:53:26]line = 500.24 [21:53:26]line НДС 12% НСП 1% [21:53:26]line > о реализуемом товаре [21:53:26]line ИТОГО: 500.24 [21:53:26]line НСП 1% : 4.43 [21:53:26]line НДС 12% : 53.12 [21:53:26]line Наличными: 0.00 [21:53:26]line Безнал.: 500.24 [21:53:26]line Место: АЗС № 72 "Партнер Нефть" [21:53:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:53:26]line СНО: Общий режим [21:53:26]line Чек 324 12.07.2024 21:53 [21:53:26]line Смена: 445 ФФД: 1.0 [21:53:26]line ЗНМ: 0300000160 [21:53:26]line РНМ: 0000000000090829 [21:53:26]line Версия ККМ: 001 [21:53:26]line Платежная система: АКБ Кыргызстан [21:53:26]line ФМ: 0000000000874718 [21:53:26]line ФД: 164403 [21:53:26]line ФПД: 151891959141453 [21:53:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215325&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164403&fm=151891959141453&tin=02508201610067®Number=0000000000090829&sum=50024 [21:53:26]written 0, free lines is 4095 [21:53:26]OFD Sender: Processing packet 164403 [packets to send 104, broken 103] [21:53:26]ProducePacketName [21:53:26]name=ofd_packets/00164403 [21:53:26]OFD Sender: To server: pG, [21:53:26]CommunicateWithHost lk.salyk.kg:30040 [21:53:26]ConnectInit lk.salyk.kg [21:53:26]Connected sock=10 [21:53:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 8C 07 01 B1 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 D5 A5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 82 02 00 35 04 06 00 8A 25 1A 44 D4 4D 76 E9 EA B5 9E 76 C3 CF [21:53:26]Write to MH i2c: 01 00 00 EE 00 EE [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 07 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 15 0D 17 [21:53:26]RasterBufferAndPrint [21:53:26]line [21:53:26]line [21:53:26]line [21:53:26]line [21:53:26]line [21:53:26]written 0, free lines is 3356 [21:53:26]MH_Cut [21:53:26]Write to MH i2c: D1 01 00 F5 00 01 C7 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: D1 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: D1 01 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: D1 01 00 F5 00 00 C6 [21:53:26]Write to MH i2c: 01 00 00 F6 00 F6 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 17 47 00 A8 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 34 37 31 38 10 04 04 00 33 82 02 00 F4 03 04 00 68 4C 91 66 B6 04 01 00 00 55 93 CA CC 3D F6 04 F4 [21:53:26]CommunicateWithHost err = 0 [21:53:26]CheckOFDResponse [21:53:26]1017 (14) - 77093643461234 [21:53:26]1041 (16) - 0000000000874718 [21:53:26]1040 (4) - 164403 [21:53:26]1012 (4) - 12.07.2024 15:31 [21:53:26]1206 (1) - 0 [21:53:26]OFD Sender: Remove packet 164403 [21:53:26]ProducePacketName [21:53:26]name=ofd_packets/00164403 [21:53:26]NVStorageDeleteData [21:53:27]*** Cut start [21:53:27]*** Partial cut [21:53:27]*** CUTSNS_PIN = 1 [21:53:27]OFD Sender: No OFD packet to send [21:53:27]*** CUTSNS_PIN = 0 [21:53:27]*** Brake cut motor [21:53:27]Read from MH i2c: 01 [21:53:27]MH_I2C_Read... [21:53:27]*** Stop cut motor [21:53:27]*** Cut end [21:53:27]Read from MH i2c: 01 07 00 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [21:53:27]process_action close_receipt done [21:53:27]requested_data is exist [21:53:27]produce_requested_data [21:53:27]requested_item fm.sn is exist - process it [21:53:27]wFMCommunicate request_size=4 [21:53:27]MH_SAM_APDU [21:53:27]CAPDU: 80 11 00 00 [21:53:27]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [21:53:27]Write i2c OK [21:53:27]MH_I2C_Read... [21:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:27]Read from MH i2c: E2 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: E2 17 00 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C7 [21:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:53:27]wFMCommunicate OK [21:53:27]requested_item fd.num is exist - process it [21:53:27]SAM_PROTO_GetFieldsCounters [21:53:27]wFMCommunicate request_size=4 [21:53:27]MH_SAM_APDU [21:53:27]CAPDU: 80 13 00 00 [21:53:27]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [21:53:27]Write i2c OK [21:53:27]MH_I2C_Read... [21:53:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:28]Read from MH i2c: E2 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 62 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 62 00 F8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [21:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:28]wFMCommunicate OK [21:53:28]SAM_PROTO_GetFieldsCounters done [21:53:28]requested_item shift.num is exist - process it [21:53:28]requested_item shift.opened is exist - process it [21:53:28]req_shift_opened [21:53:28]FM_GetShiftState [21:53:28]SAM_PROTO_GetShiftState [21:53:28]wFMCommunicate request_size=4 [21:53:28]MH_SAM_APDU [21:53:28]CAPDU: 80 13 01 00 [21:53:28]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [21:53:28]Write i2c OK [21:53:28]MH_I2C_Read... [21:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:28]Read from MH i2c: E2 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 0E 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C0 [21:53:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:53:28]wFMCommunicate OK [21:53:28]SAM_PROTO_GetShiftState done [21:53:28]FM_GetShiftState done [21:53:28]req_shift_opened done [21:53:28]requested_item shift.open_date is exist - process it [21:53:28]req_shift_open_date [21:53:28]req_shift_open_date done [21:53:28]produce_requested_data done [21:53:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164403,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:53:28]process_action_free close_receipt [21:53:28]json_value_free [21:53:28]json_value_free done [21:53:28]process_json_proto returns [21:53:28]Send response to host [21:53:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164403,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:53:28]free response buf [21:53:28]execute_script done [21:53:28]execute_script returns [21:53:28]free content buf [21:53:28]Sock 9.Close socket [21:53:28]Sock 9.Thread stoped [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:31]accept exits with 7 [21:54:31]New connection [21:54:31]New thread 3067489636 created [21:54:31]Thread 3067632996 joined [21:54:31]Waiting for new connection... [21:54:31] Sock 7.Parse request [21:54:31]Sock 7.Check first char [21:54:31]Sock 7.First char is OK [21:54:31]request: POST /json_proto HTTP/1.0 [21:54:31]Method: POST [21:54:31]URL: /json_proto [21:54:31]Method is POST - this is cgi request [21:54:31]url: /json_proto [21:54:31]query_string will be loaded in cgi processing [21:54:31]execute_cgi json_proto POST (null) [21:54:31]execute_cgi path=json_proto method=POST [21:54:31]POST find Content-Length [21:54:31]Host: 172.17.56.4:8080 [21:54:31]Content-Length: 677 [21:54:31]Content-Type: application/json [21:54:31] [21:54:31]POST finish read [21:54:31]Found Content-Length = 677 [21:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.480, "sum" : 360.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:31]execute_script... [21: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)458492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.480, "sum" : 360.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:31]POST & json_proto [21:54:31]process_json_proto [21:54:31]json parsed OK: [21:54:31]protocol is kg_v1.0 [21:54:31]action value=close_receipt [21:54:31]process_action close_receipt [21:54:31]cmd_close_receipt [21:54:31]MH_GetDate [21:54:31]Write to MH i2c: F0 00 00 FA 00 E9 [21:54:31]Write i2c OK [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: F0 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: F0 09 00 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: F0 09 00 FA 00 00 18 A6 91 66 C9 DC B2 64 62 [21:54:31]GetLastDocTimeStamp 1720821205 [21:54:31]current date 1720821272 [21:54:31]FM_GetShiftState [21:54:31]SAM_PROTO_GetShiftState [21:54:31]wFMCommunicate request_size=4 [21:54:31]MH_SAM_APDU [21:54:31]CAPDU: 80 13 01 00 [21:54:31]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [21:54:31]Write i2c OK [21:54:31]MH_I2C_Read... [21:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:31]Read from MH i2c: E2 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: E2 0E 00 [21:54:31]MH_I2C_Read... [21:54:31]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C2 [21:54:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:54:31]wFMCommunicate OK [21:54:31]SAM_PROTO_GetShiftState done [21:54:31]FM_GetShiftState done [21:54:31]opened in 1720744654 [21:54:31]opened+sec_in_day 1720831054 [21:54:31]quantity*price = 36058 [21:54:31]sum+1 = 36059 [21:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 325 12.07.2024 21:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164404 ФПД: 96166167476400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215432&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164404&fm=96166167476400&tin=02508201610067®Number=0000000000090829&sum=36000 [21:54:32]StoreToDocumentArchive [21:54:32]shift 445 fd 164404 [21:54:32]save to /storage/0445/doc_00164404 [21:54:32]save last doc name /storage/0445/doc_00164404 to /storage/kkm_last_doc_name [21:54:32]save OK [21:54:32]Clear old archive folders... [21:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:32]tlvbuf is 00CA29E0 [21:54:32]SAM_PROTO_ClearQueue [21:54:32]wFMCommunicate request_size=4 [21:54:32]MH_SAM_APDU [21:54:32]CAPDU: 80 09 00 00 [21:54:32]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:32]Read from MH i2c: E2 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [21:54:32]RAPDU: 90 00 [21:54:32]wFMCommunicate OK [21:54:32]SAM_PROTO_ClearQueue done [21:54:32]KKMCreateOFDPacket [21:54:32]OFDProtocolAddRootSTLVToBuf [21:54:32]FM_MakeSignedData [21:54:32]FM_MakeSignedData [21:54:32]SAM_PROTO_SignData [21:54:32]wFMCommunicate request_size=4 [21:54:32]MH_SAM_APDU [21:54:32]CAPDU: 80 0D 01 02 [21:54:32]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:32]Read from MH i2c: E2 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 [21:54:32]MH_I2C_Read... [21:54:32]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [21:54:32]RAPDU: 90 00 [21:54:32]wFMCommunicate OK [21:54:32]wFMCommunicate request_size=255 [21:54:32]MH_SAM_APDU [21: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 68 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 18 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 82 02 00 35 04 06 00 57 [21:54:32]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 18 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 82 02 00 35 04 06 00 57 00 00 A6 [21:54:32]Write i2c OK [21:54:32]MH_I2C_Read... [21:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:33]Read from MH i2c: E2 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 03 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [21:54:33]RAPDU: 90 00 [21:54:33]wFMCommunicate OK [21:54:33]wFMCommunicate request_size=10 [21:54:33]MH_SAM_APDU [21:54:33]CAPDU: 80 0D 02 02 05 76 6E 40 78 B0 [21:54:33]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 76 6E 40 78 B0 00 00 DC [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:33]Read from MH i2c: E2 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 03 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [21:54:33]RAPDU: 90 00 [21:54:33]wFMCommunicate OK [21:54:33]wFMCommunicate request_size=4 [21:54:33]MH_SAM_APDU [21:54:33]CAPDU: 80 0D 03 02 [21:54:33]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:33]Read from MH i2c: E2 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 0B 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 0B 00 0C 01 00 27 4C 95 48 20 A3 A6 85 90 00 C7 [21:54:33]RAPDU: 27 4C 95 48 20 A3 A6 85 90 00 [21:54:33]wFMCommunicate OK [21:54:33]SAM_PROTO_SignData done [21:54:33]FM_MakeSignedData done [21:54:33]CreateOFDProtocolMessage [21:54:33]wFMCommunicate request_size=4 [21:54:33]MH_SAM_APDU [21:54:33]CAPDU: 80 11 00 00 [21:54:33]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:33]Read from MH i2c: E2 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 17 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [21:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:54:33]wFMCommunicate OK [21:54:33]CreateOFDProtocolMessage done [21:54:33]OFDSenderStorePacket 164404 [21:54:33]StoreOFDPacket docnum=164404 [21:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 43 5B 07 01 C4 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 68 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 18 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 82 02 00 35 04 06 00 57 76 6E 40 78 B0 27 4C 95 48 20 A3 A6 85 [21:54:33]CheckFolder [21:54:33]dirname=/storage/ofd_packets [21:54:33]CheckFolder done [21:54:33]ProducePacketName [21:54:33]name=ofd_packets/00164404 [21:54:33]NVStorageSaveData ofd_packets/00164404 [21:54:33]File name is /storage/ofd_packets/00164404 [21:54:33]Write 301 bytes [21:54:33]NVStorageSaveData done [21:54:33]OFDSenderStorePacket done [21:54:33]KKMCreateOFDPacket done [21:54:33]NVStorageSaveData kkm_last_timestamp [21:54:33]File name is /storage/kkm_last_timestamp [21:54:33]Write 4 bytes [21:54:33]NVStorageSaveData done [21:54:33]ExternCall_PrintAddStr [21:54:33]wPrintStart [21:54:33]Write to MH i2c: 01 00 00 0E 01 0F [21:54:33]Write i2c OK [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: 01 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: 01 07 00 [21:54:33]MH_I2C_Read... [21:54:33]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [21:54:33]RasterBufferAndPrint [21:54:33]line Счет N : (1)458492 [21:54:33]line ИНН: 02508201610067 [21:54:33]line Контрольно-Кассовый Чек [21:54:33]line ПРОДАЖА [21:54:33]line ТРК (МРК, ГНК) : 12 [21:54:33]line Товар: 2710124130 [21:54:33]line Аи-92-К-5 [21:54:33]line 5.480 * 65.80 [21:54:33]line = 360.58 [21:54:33]line НДС 12% НСП 1% [21:54:33]line > о реализуемом товаре [21:54:33]line ОКРУГЛЕНИЕ: -0.58 [21:54:33]line ИТОГО: 360.00 [21:54:33]line Внесено: 360.00 [21:54:33]line СДАЧА: 0.00 [21:54:33]line НСП 1% : 3.19 [21:54:33]line НДС 12% : 38.29 [21:54:33]line Наличными: 360.00 [21:54:33]line Безнал.: 0.00 [21:54:33]line Место: АЗС № 72 "Партнер Нефть" [21:54:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:54:33]line СНО: Общий режим [21:54:33]line Чек 325 12.07.2024 21:54 [21:54:33]line Смена: 445 ФФД: 1.0 [21:54:33]line ЗНМ: 0300000160 [21:54:33]line РНМ: 0000000000090829 [21:54:33]line Версия ККМ: 001 [21:54:33]line ФМ: 0000000000874718 [21:54:33]line ФД: 164404 [21:54:33]line ФПД: 96166167476400 [21:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215432&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164404&fm=96166167476400&tin=02508201610067®Number=0000000000090829&sum=36000 [21:54:33]OFD Sender: Processing packet 164404 [packets to send 104, broken 103] [21:54:33]ProducePacketName [21:54:33]name=ofd_packets/00164404 [21:54:33]OFD Sender: To server: pG, [21:54:33]CommunicateWithHost lk.salyk.kg:30040 [21:54:33]ConnectInit lk.salyk.kg [21:54:33]written 0, free lines is 4095 [21:54:33]Connected sock=10 [21: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 34 37 31 38 0F 01 00 00 43 5B 07 01 C4 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 68 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 18 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 82 02 00 35 04 06 00 57 76 6E 40 78 B0 27 4C 95 48 20 A3 A6 85 [21:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 79 1C 47 00 6B 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 82 02 00 F4 03 04 00 AB 4C 91 66 B6 04 01 00 00 66 6F 3B EF C8 49 A4 25 [21:54:33]CommunicateWithHost err = 0 [21:54:33]CheckOFDResponse [21:54:33]1017 (14) - 77093643461234 [21:54:33]1041 (16) - 0000000000874718 [21:54:33]1040 (4) - 164404 [21:54:33]1012 (4) - 12.07.2024 15:32 [21:54:33]1206 (1) - 0 [21:54:33]OFD Sender: Remove packet 164404 [21:54:33]ProducePacketName [21:54:33]name=ofd_packets/00164404 [21:54:33]NVStorageDeleteData [21:54:34]Write to MH i2c: 01 00 00 38 01 39 [21:54:34]Write i2c OK [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: 01 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: 01 07 00 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 02 0D 4F [21:54:34]RasterBufferAndPrint [21:54:34]line [21:54:34]line [21:54:34]line [21:54:34]line [21:54:34]line [21:54:34]written 0, free lines is 3336 [21:54:34]MH_Cut [21:54:34]Write to MH i2c: D1 01 00 3F 01 01 12 [21:54:34]Write i2c OK [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: D1 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: D1 01 00 [21:54:34]MH_I2C_Read... [21:54:34]Read from MH i2c: D1 01 00 3F 01 00 11 [21:54:34]Write to MH i2c: 01 00 00 40 01 41 [21:54:34]Write i2c OK [21:54:34]MH_I2C_Read... [21:54:34]OFD Sender: No OFD packet to send [21:54:34]*** Cut start [21:54:34]*** Partial cut [21:54:34]*** CUTSNS_PIN = 1 [21:54:34]*** CUTSNS_PIN = 0 [21:54:35]*** Brake cut motor [21:54:35]Read from MH i2c: 01 [21:54:35]MH_I2C_Read... [21:54:35]*** Stop cut motor [21:54:35]*** Cut end [21:54:35]Read from MH i2c: 01 07 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [21:54:35]process_action close_receipt done [21:54:35]requested_data is exist [21:54:35]produce_requested_data [21:54:35]requested_item fm.sn is exist - process it [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 11 00 00 [21:54:35]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 17 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [21:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:54:35]wFMCommunicate OK [21:54:35]requested_item fd.num is exist - process it [21:54:35]SAM_PROTO_GetFieldsCounters [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 13 00 00 [21:54:35]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 62 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 62 00 42 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:35]wFMCommunicate OK [21:54:35]SAM_PROTO_GetFieldsCounters done [21:54:35]requested_item shift.num is exist - process it [21:54:35]requested_item shift.opened is exist - process it [21:54:35]req_shift_opened [21:54:35]FM_GetShiftState [21:54:35]SAM_PROTO_GetShiftState [21:54:35]wFMCommunicate request_size=4 [21:54:35]MH_SAM_APDU [21:54:35]CAPDU: 80 13 01 00 [21:54:35]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [21:54:35]Write i2c OK [21:54:35]MH_I2C_Read... [21:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:35]Read from MH i2c: E2 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 0E 00 [21:54:35]MH_I2C_Read... [21:54:35]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0B [21:54:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:54:35]wFMCommunicate OK [21:54:35]SAM_PROTO_GetShiftState done [21:54:35]FM_GetShiftState done [21:54:35]req_shift_opened done [21:54:35]requested_item shift.open_date is exist - process it [21:54:35]req_shift_open_date [21:54:35]req_shift_open_date done [21:54:35]produce_requested_data done [21:54:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164404,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:54:35]process_action_free close_receipt [21:54:35]json_value_free [21:54:35]json_value_free done [21:54:35]process_json_proto returns [21:54:35]Send response to host [21:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164404,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:54:35]free response buf [21:54:35]execute_script done [21:54:35]execute_script returns [21:54:35]free content buf [21:54:35]Sock 7.Close socket [21:54:35]Sock 7.Thread stoped [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:28]accept exits with 9 [21:55:28]New connection [21:55:28]New thread 3067632996 created [21:55:28]Thread 3067489636 joined [21:55:28]Waiting for new connection... [21:55:28] Sock 9.Parse request [21:55:28]Sock 9.Check first char [21:55:28]Sock 9.First char is OK [21:55:28]request: POST /json_proto HTTP/1.0 [21:55:28]Method: POST [21:55:28]URL: /json_proto [21:55:28]Method is POST - this is cgi request [21:55:28]url: /json_proto [21:55:28]query_string will be loaded in cgi processing [21:55:28]execute_cgi json_proto POST (null) [21:55:28]execute_cgi path=json_proto method=POST [21:55:28]POST find Content-Length [21:55:28]Host: 172.17.56.4:8080 [21:55:28]Content-Length: 677 [21:55:28]Content-Type: application/json [21:55:28] [21:55:28]POST finish read [21:55:28]Found Content-Length = 677 [21:55:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:55:28]execute_script... [21:55: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)458493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:55:28]POST & json_proto [21:55:28]process_json_proto [21:55:28]json parsed OK: [21:55:28]protocol is kg_v1.0 [21:55:28]action value=close_receipt [21:55:28]process_action close_receipt [21:55:28]cmd_close_receipt [21:55:28]MH_GetDate [21:55:28]Write to MH i2c: F0 00 00 44 01 34 [21:55:28]Write i2c OK [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: F0 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: F0 09 00 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: F0 09 00 44 01 00 51 A6 91 66 C9 DC B2 64 E6 [21:55:28]GetLastDocTimeStamp 1720821272 [21:55:28]current date 1720821329 [21:55:28]FM_GetShiftState [21:55:28]SAM_PROTO_GetShiftState [21:55:28]wFMCommunicate request_size=4 [21:55:28]MH_SAM_APDU [21:55:28]CAPDU: 80 13 01 00 [21:55:28]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [21:55:28]Write i2c OK [21:55:28]MH_I2C_Read... [21:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:28]Read from MH i2c: E2 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: E2 0E 00 [21:55:28]MH_I2C_Read... [21:55:28]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 0D [21:55:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:55:28]wFMCommunicate OK [21:55:28]SAM_PROTO_GetShiftState done [21:55:28]FM_GetShiftState done [21:55:28]opened in 1720744654 [21:55:28]opened+sec_in_day 1720831054 [21:55:28]quantity*price = 20003 [21:55:28]sum+1 = 20004 [21:55:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 326 12.07.2024 21:55 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164405 ФПД: 232657580778712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215529&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164405&fm=232657580778712&tin=02508201610067®Number=0000000000090829&sum=20000 [21:55:29]StoreToDocumentArchive [21:55:29]shift 445 fd 164405 [21:55:29]save to /storage/0445/doc_00164405 [21:55:29]save last doc name /storage/0445/doc_00164405 to /storage/kkm_last_doc_name [21:55:29]save OK [21:55:29]Clear old archive folders... [21:55:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:29]tlvbuf is 00CA45E0 [21:55:29]SAM_PROTO_ClearQueue [21:55:29]wFMCommunicate request_size=4 [21:55:29]MH_SAM_APDU [21:55:29]CAPDU: 80 09 00 00 [21:55:29]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [21:55:29]Write i2c OK [21:55:29]MH_I2C_Read... [21:55:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:29]Read from MH i2c: E2 [21:55:29]MH_I2C_Read... [21:55:29]Read from MH i2c: E2 03 00 [21:55:29]MH_I2C_Read... [21:55:29]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [21:55:29]RAPDU: 90 00 [21:55:29]wFMCommunicate OK [21:55:29]SAM_PROTO_ClearQueue done [21:55:29]KKMCreateOFDPacket [21:55:29]OFDProtocolAddRootSTLVToBuf [21:55:29]FM_MakeSignedData [21:55:29]FM_MakeSignedData [21:55:29]SAM_PROTO_SignData [21:55:29]wFMCommunicate request_size=4 [21:55:29]MH_SAM_APDU [21:55:29]CAPDU: 80 0D 01 02 [21:55:29]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [21:55:29]Write i2c OK [21:55:29]MH_I2C_Read... [21:55:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:29]Read from MH i2c: E2 [21:55:29]MH_I2C_Read... [21:55:29]Read from MH i2c: E2 03 00 [21:55:29]MH_I2C_Read... [21:55:29]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [21:55:29]RAPDU: 90 00 [21:55:29]wFMCommunicate OK [21:55:29]wFMCommunicate request_size=255 [21:55:29]MH_SAM_APDU [21:55: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 51 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 82 02 00 35 04 06 00 D3 [21:55:29]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 51 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 82 02 00 35 04 06 00 D3 00 00 66 [21:55:29]Write i2c OK [21:55:29]MH_I2C_Read... [21:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:30]Read from MH i2c: E2 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: E2 03 00 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [21:55:30]RAPDU: 90 00 [21:55:30]wFMCommunicate OK [21:55:30]wFMCommunicate request_size=10 [21:55:30]MH_SAM_APDU [21:55:30]CAPDU: 80 0D 02 02 05 99 D0 74 E4 D8 [21:55:30]Write to MH i2c: E2 0D 00 55 01 80 0D 02 02 05 00 99 D0 74 E4 D8 00 00 73 [21:55:30]Write i2c OK [21:55:30]MH_I2C_Read... [21:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:30]Read from MH i2c: E2 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: E2 03 00 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [21:55:30]RAPDU: 90 00 [21:55:30]wFMCommunicate OK [21:55:30]wFMCommunicate request_size=4 [21:55:30]MH_SAM_APDU [21:55:30]CAPDU: 80 0D 03 02 [21:55:30]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [21:55:30]Write i2c OK [21:55:30]MH_I2C_Read... [21:55:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:30]Read from MH i2c: E2 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: E2 0B 00 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: E2 0B 00 56 01 00 C4 83 55 97 54 19 64 B6 90 00 8D [21:55:30]RAPDU: C4 83 55 97 54 19 64 B6 90 00 [21:55:30]wFMCommunicate OK [21:55:30]SAM_PROTO_SignData done [21:55:30]FM_MakeSignedData done [21:55:30]CreateOFDProtocolMessage [21:55:30]wFMCommunicate request_size=4 [21:55:30]MH_SAM_APDU [21:55:30]CAPDU: 80 11 00 00 [21:55:30]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [21:55:30]Write i2c OK [21:55:30]MH_I2C_Read... [21:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:30]Read from MH i2c: E2 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: E2 17 00 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [21:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:55:30]wFMCommunicate OK [21:55:30]CreateOFDProtocolMessage done [21:55:30]OFDSenderStorePacket 164405 [21:55:30]StoreOFDPacket docnum=164405 [21:55:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B2 E2 07 01 B8 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 51 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 82 02 00 35 04 06 00 D3 99 D0 74 E4 D8 C4 83 55 97 54 19 64 B6 [21:55:30]CheckFolder [21:55:30]dirname=/storage/ofd_packets [21:55:30]CheckFolder done [21:55:30]ProducePacketName [21:55:30]name=ofd_packets/00164405 [21:55:30]NVStorageSaveData ofd_packets/00164405 [21:55:30]File name is /storage/ofd_packets/00164405 [21:55:30]Write 301 bytes [21:55:30]NVStorageSaveData done [21:55:30]OFDSenderStorePacket done [21:55:30]KKMCreateOFDPacket done [21:55:30]NVStorageSaveData kkm_last_timestamp [21:55:30]File name is /storage/kkm_last_timestamp [21:55:30]Write 4 bytes [21:55:30]NVStorageSaveData done [21:55:30]ExternCall_PrintAddStr [21:55:30]wPrintStart [21:55:30]Write to MH i2c: 01 00 00 58 01 59 [21:55:30]Write i2c OK [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: 01 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: 01 07 00 [21:55:30]MH_I2C_Read... [21:55:30]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [21:55:30]RasterBufferAndPrint [21:55:30]line Счет N : (1)458493 [21:55:30]line ИНН: 02508201610067 [21:55:30]line Контрольно-Кассовый Чек [21:55:30]line ПРОДАЖА [21:55:30]line ТРК (МРК, ГНК) : 22 [21:55:30]line Товар: 2710124130 [21:55:30]line Аи-92-К-5 [21:55:30]line 3.040 * 65.80 [21:55:30]line = 200.03 [21:55:30]line НДС 12% НСП 1% [21:55:30]line > о реализуемом товаре [21:55:30]line ОКРУГЛЕНИЕ: -0.03 [21:55:30]line ИТОГО: 200.00 [21:55:30]line Внесено: 200.00 [21:55:30]line СДАЧА: 0.00 [21:55:30]line НСП 1% : 1.77 [21:55:30]line НДС 12% : 21.24 [21:55:30]line Наличными: 200.00 [21:55:30]line Безнал.: 0.00 [21:55:30]line Место: АЗС № 72 "Партнер Нефть" [21:55:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:55:30]line СНО: Общий режим [21:55:30]line Чек 326 12.07.2024 21:55 [21:55:30]line Смена: 445 ФФД: 1.0 [21:55:30]line ЗНМ: 0300000160 [21:55:30]line РНМ: 0000000000090829 [21:55:30]line Версия ККМ: 001 [21:55:30]line ФМ: 0000000000874718 [21:55:30]line ФД: 164405 [21:55:30]line ФПД: 232657580778712 [21:55:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215529&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164405&fm=232657580778712&tin=02508201610067®Number=0000000000090829&sum=20000 [21:55:30]written 0, free lines is 4095 [21:55:30]OFD Sender: Processing packet 164405 [packets to send 104, broken 103] [21:55:30]ProducePacketName [21:55:30]name=ofd_packets/00164405 [21:55:30]OFD Sender: To server: pG, [21:55:30]CommunicateWithHost lk.salyk.kg:30040 [21:55:30]ConnectInit lk.salyk.kg [21:55:30]Connected sock=10 [21:55:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B2 E2 07 01 B8 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 51 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 82 02 00 35 04 06 00 D3 99 D0 74 E4 D8 C4 83 55 97 54 19 64 B6 [21:55:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D4 5A 47 00 27 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 34 37 31 38 10 04 04 00 35 82 02 00 F4 03 04 00 E4 4C 91 66 B6 04 01 00 00 C0 3D 40 FB 17 80 F4 27 [21:55:30]CommunicateWithHost err = 0 [21:55:30]CheckOFDResponse [21:55:30]1017 (14) - 77093643461234 [21:55:30]1041 (16) - 0000000000874718 [21:55:30]1040 (4) - 164405 [21:55:30]1012 (4) - 12.07.2024 15:33 [21:55:30]1206 (1) - 0 [21:55:30]OFD Sender: Remove packet 164405 [21:55:30]ProducePacketName [21:55:30]name=ofd_packets/00164405 [21:55:30]NVStorageDeleteData [21:55:31]Write to MH i2c: 01 00 00 82 01 83 [21:55:31]Write i2c OK [21:55:31]MH_I2C_Read... [21:55:31]Read from MH i2c: 01 [21:55:31]MH_I2C_Read... [21:55:31]Read from MH i2c: 01 07 00 [21:55:31]MH_I2C_Read... [21:55:31]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 0B 0D A2 [21:55:31]RasterBufferAndPrint [21:55:31]line [21:55:31]line [21:55:31]line [21:55:31]line [21:55:31]line [21:55:31]written 0, free lines is 3345 [21:55:31]MH_Cut [21:55:31]Write to MH i2c: D1 01 00 89 01 01 5C [21:55:31]Write i2c OK [21:55:31]MH_I2C_Read... [21:55:31]Read from MH i2c: D1 [21:55:31]MH_I2C_Read... [21:55:31]Read from MH i2c: D1 01 00 [21:55:31]MH_I2C_Read... [21:55:31]Read from MH i2c: D1 01 00 89 01 00 5B [21:55:31]Write to MH i2c: 01 00 00 8A 01 8B [21:55:31]Write i2c OK [21:55:31]MH_I2C_Read... [21:55:31]OFD Sender: No OFD packet to send [21:55:31]*** Cut start [21:55:31]*** Partial cut [21:55:31]*** CUTSNS_PIN = 1 [21:55:31]*** CUTSNS_PIN = 0 [21:55:31]*** Brake cut motor [21:55:32]Read from MH i2c: 01 [21:55:32]MH_I2C_Read... [21:55:32]*** Stop cut motor [21:55:32]*** Cut end [21:55:32]Read from MH i2c: 01 07 00 [21:55:32]MH_I2C_Read... [21:55:32]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [21:55:32]process_action close_receipt done [21:55:32]requested_data is exist [21:55:32]produce_requested_data [21:55:32]requested_item fm.sn is exist - process it [21:55:32]wFMCommunicate request_size=4 [21:55:32]MH_SAM_APDU [21:55:32]CAPDU: 80 11 00 00 [21:55:32]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [21:55:32]Write i2c OK [21:55:32]MH_I2C_Read... [21:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:32]Read from MH i2c: E2 [21:55:32]MH_I2C_Read... [21:55:32]Read from MH i2c: E2 17 00 [21:55:32]MH_I2C_Read... [21:55:32]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5C [21:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:55:32]wFMCommunicate OK [21:55:32]requested_item fd.num is exist - process it [21:55:32]SAM_PROTO_GetFieldsCounters [21:55:32]wFMCommunicate request_size=4 [21:55:32]MH_SAM_APDU [21:55:32]CAPDU: 80 13 00 00 [21:55:32]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [21:55:32]Write i2c OK [21:55:32]MH_I2C_Read... [21:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:32]Read from MH i2c: E2 [21:55:32]MH_I2C_Read... [21:55:32]Read from MH i2c: E2 62 00 [21:55:32]MH_I2C_Read... [21:55:32]Read from MH i2c: E2 62 00 8C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [21:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:32]wFMCommunicate OK [21:55:32]SAM_PROTO_GetFieldsCounters done [21:55:32]requested_item shift.num is exist - process it [21:55:32]requested_item shift.opened is exist - process it [21:55:32]req_shift_opened [21:55:32]FM_GetShiftState [21:55:32]SAM_PROTO_GetShiftState [21:55:32]wFMCommunicate request_size=4 [21:55:32]MH_SAM_APDU [21:55:32]CAPDU: 80 13 01 00 [21:55:32]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [21:55:32]Write i2c OK [21:55:32]MH_I2C_Read... [21:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:32]Read from MH i2c: E2 [21:55:32]MH_I2C_Read... [21:55:32]Read from MH i2c: E2 0E 00 [21:55:32]MH_I2C_Read... [21:55:32]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 55 [21:55:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:55:32]wFMCommunicate OK [21:55:32]SAM_PROTO_GetShiftState done [21:55:32]FM_GetShiftState done [21:55:32]req_shift_opened done [21:55:32]requested_item shift.open_date is exist - process it [21:55:32]req_shift_open_date [21:55:32]req_shift_open_date done [21:55:32]produce_requested_data done [21:55:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164405,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:55:32]process_action_free close_receipt [21:55:32]json_value_free [21:55:32]json_value_free done [21:55:32]process_json_proto returns [21:55:32]Send response to host [21:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164405,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:55:32]free response buf [21:55:32]execute_script done [21:55:32]execute_script returns [21:55:32]free content buf [21:55:32]Sock 9.Close socket [21:55:32]Sock 9.Thread stoped [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:35]accept exits with 7 [21:56:35]New connection [21:56:35]New thread 3067489636 created [21:56:35]Thread 3067632996 joined [21:56:35]Waiting for new connection... [21:56:35] Sock 7.Parse request [21:56:35]Sock 7.Check first char [21:56:35]Sock 7.First char is OK [21:56:35]request: POST /json_proto HTTP/1.0 [21:56:35]Method: POST [21:56:35]URL: /json_proto [21:56:35]Method is POST - this is cgi request [21:56:35]url: /json_proto [21:56:35]query_string will be loaded in cgi processing [21:56:35]execute_cgi json_proto POST (null) [21:56:35]execute_cgi path=json_proto method=POST [21:56:35]POST find Content-Length [21:56:35]Host: 172.17.56.4:8080 [21:56:35]Content-Length: 674 [21:56:35]Content-Type: application/json [21:56:35] [21:56:35]POST finish read [21:56:35]Found Content-Length = 674 [21:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:35]execute_script... [21: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)458494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:35]POST & json_proto [21:56:35]process_json_proto [21:56:35]json parsed OK: [21:56:35]protocol is kg_v1.0 [21:56:35]action value=close_receipt [21:56:35]process_action close_receipt [21:56:35]cmd_close_receipt [21:56:35]MH_GetDate [21:56:35]Write to MH i2c: F0 00 00 8E 01 7E [21:56:35]Write i2c OK [21:56:35]MH_I2C_Read... [21:56:35]Read from MH i2c: F0 [21:56:35]MH_I2C_Read... [21:56:35]Read from MH i2c: F0 09 00 [21:56:35]MH_I2C_Read... [21:56:35]Read from MH i2c: F0 09 00 8E 01 00 94 A6 91 66 C9 DC B2 64 73 [21:56:35]GetLastDocTimeStamp 1720821329 [21:56:35]current date 1720821396 [21:56:35]FM_GetShiftState [21:56:35]SAM_PROTO_GetShiftState [21:56:35]wFMCommunicate request_size=4 [21:56:35]MH_SAM_APDU [21:56:35]CAPDU: 80 13 01 00 [21:56:35]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [21:56:35]Write i2c OK [21:56:35]MH_I2C_Read... [21:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:35]Read from MH i2c: E2 [21:56:35]MH_I2C_Read... [21:56:35]Read from MH i2c: E2 0E 00 [21:56:35]MH_I2C_Read... [21:56:35]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 57 [21:56:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:56:35]wFMCommunicate OK [21:56:35]SAM_PROTO_GetShiftState done [21:56:35]FM_GetShiftState done [21:56:35]opened in 1720744654 [21:56:35]opened+sec_in_day 1720831054 [21:56:35]quantity*price = 50042 [21:56:35]sum+1 = 50043 [21:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 327 12.07.2024 21:56 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164406 ФПД: 149544960746014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215636&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164406&fm=149544960746014&tin=02508201610067®Number=0000000000090829&sum=50000 [21:56:36]StoreToDocumentArchive [21:56:36]shift 445 fd 164406 [21:56:36]save to /storage/0445/doc_00164406 [21:56:36]save last doc name /storage/0445/doc_00164406 to /storage/kkm_last_doc_name [21:56:36]save OK [21:56:36]Clear old archive folders... [21:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:56:36]tlvbuf is 00CA8CC0 [21:56:36]SAM_PROTO_ClearQueue [21:56:36]wFMCommunicate request_size=4 [21:56:36]MH_SAM_APDU [21:56:36]CAPDU: 80 09 00 00 [21:56:36]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]OFD Sender: No OFD packet to send [21:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [21:56:36]RAPDU: 90 00 [21:56:36]wFMCommunicate OK [21:56:36]SAM_PROTO_ClearQueue done [21:56:36]KKMCreateOFDPacket [21:56:36]OFDProtocolAddRootSTLVToBuf [21:56:36]FM_MakeSignedData [21:56:36]FM_MakeSignedData [21:56:36]SAM_PROTO_SignData [21:56:36]wFMCommunicate request_size=4 [21:56:36]MH_SAM_APDU [21:56:36]CAPDU: 80 0D 01 02 [21:56:36]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [21:56:36]RAPDU: 90 00 [21:56:36]wFMCommunicate OK [21:56:36]wFMCommunicate request_size=255 [21:56:36]MH_SAM_APDU [21: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 94 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 82 02 00 35 04 06 00 88 02 A6 43 [21:56:36]Write to MH i2c: E2 02 01 9E 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 94 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 82 02 00 35 04 06 00 88 02 A6 43 00 00 50 [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [21:56:36]RAPDU: 90 00 [21:56:36]wFMCommunicate OK [21:56:36]wFMCommunicate request_size=7 [21:56:36]MH_SAM_APDU [21:56:36]CAPDU: 80 0D 02 02 02 62 1E [21:56:36]Write to MH i2c: E2 0A 00 9F 01 80 0D 02 02 02 00 62 1E 00 00 9E [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [21:56:36]RAPDU: 90 00 [21:56:36]wFMCommunicate OK [21:56:36]wFMCommunicate request_size=4 [21:56:36]MH_SAM_APDU [21:56:36]CAPDU: 80 0D 03 02 [21:56:36]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 0B 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 0B 00 A0 01 00 1B 01 78 38 07 CC 89 3D 90 00 82 [21:56:36]RAPDU: 1B 01 78 38 07 CC 89 3D 90 00 [21:56:36]wFMCommunicate OK [21:56:36]SAM_PROTO_SignData done [21:56:36]FM_MakeSignedData done [21:56:36]CreateOFDProtocolMessage [21:56:36]wFMCommunicate request_size=4 [21:56:36]MH_SAM_APDU [21:56:36]CAPDU: 80 11 00 00 [21:56:36]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [21:56:37]Write i2c OK [21:56:37]MH_I2C_Read... [21:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:37]Read from MH i2c: E2 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: E2 17 00 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [21:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:56:37]wFMCommunicate OK [21:56:37]CreateOFDProtocolMessage done [21:56:37]OFDSenderStorePacket 164406 [21:56:37]StoreOFDPacket docnum=164406 [21:56:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 90 1D 04 01 D8 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 94 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 82 02 00 35 04 06 00 88 02 A6 43 62 1E 1B 01 78 38 07 CC 89 3D [21:56:37]CheckFolder [21:56:37]dirname=/storage/ofd_packets [21:56:37]CheckFolder done [21:56:37]ProducePacketName [21:56:37]name=ofd_packets/00164406 [21:56:37]NVStorageSaveData ofd_packets/00164406 [21:56:37]File name is /storage/ofd_packets/00164406 [21:56:37]Write 298 bytes [21:56:37]NVStorageSaveData done [21:56:37]OFDSenderStorePacket done [21:56:37]KKMCreateOFDPacket done [21:56:37]NVStorageSaveData kkm_last_timestamp [21:56:37]File name is /storage/kkm_last_timestamp [21:56:37]Write 4 bytes [21:56:37]NVStorageSaveData done [21:56:37]ExternCall_PrintAddStr [21:56:37]wPrintStart [21:56:37]Write to MH i2c: 01 00 00 A2 01 A3 [21:56:37]Write i2c OK [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: 01 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: 01 07 00 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [21:56:37]RasterBufferAndPrint [21:56:37]line Счет N : (1)458494 [21:56:37]line ИНН: 02508201610067 [21:56:37]line Контрольно-Кассовый Чек [21:56:37]line ПРОДАЖА [21:56:37]line ТРК (МРК, ГНК) : 11 [21:56:37]line Товар: 2710194210 [21:56:37]line ДТ-К-5 [21:56:37]line 6.960 * 71.90 [21:56:37]line = 500.42 [21:56:37]line НДС 12% НСП 1% [21:56:37]line > о реализуемом товаре [21:56:37]line ОКРУГЛЕНИЕ: -0.42 [21:56:37]line ИТОГО: 500.00 [21:56:37]line Внесено: 500.00 [21:56:37]line СДАЧА: 0.00 [21:56:37]line НСП 1% : 4.43 [21:56:37]line НДС 12% : 53.14 [21:56:37]line Наличными: 500.00 [21:56:37]line Безнал.: 0.00 [21:56:37]line Место: АЗС № 72 "Партнер Нефть" [21:56:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:56:37]line СНО: Общий режим [21:56:37]line Чек 327 12.07.2024 21:56 [21:56:37]line Смена: 445 ФФД: 1.0 [21:56:37]line ЗНМ: 0300000160 [21:56:37]line РНМ: 0000000000090829 [21:56:37]line Версия ККМ: 001 [21:56:37]line ФМ: 0000000000874718 [21:56:37]line ФД: 164406 [21:56:37]line ФПД: 149544960746014 [21:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T215636&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164406&fm=149544960746014&tin=02508201610067®Number=0000000000090829&sum=50000 [21:56:37]written 0, free lines is 4095 [21:56:37]OFD Sender: Processing packet 164406 [packets to send 104, broken 103] [21:56:37]ProducePacketName [21:56:37]name=ofd_packets/00164406 [21:56:37]OFD Sender: To server: pG, [21:56:37]CommunicateWithHost lk.salyk.kg:30040 [21:56:37]ConnectInit lk.salyk.kg [21:56:37]Connected sock=10 [21: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 34 37 31 38 0C 01 00 00 90 1D 04 01 D8 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 94 A6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 82 02 00 35 04 06 00 88 02 A6 43 62 1E 1B 01 78 38 07 CC 89 3D [21:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DD 1D 47 00 37 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 34 37 31 38 10 04 04 00 36 82 02 00 F4 03 04 00 27 4D 91 66 B6 04 01 00 00 46 E5 5E 3E 04 08 AA F9 [21:56:37]CommunicateWithHost err = 0 [21:56:37]CheckOFDResponse [21:56:37]1017 (14) - 77093643461234 [21:56:37]1041 (16) - 0000000000874718 [21:56:37]1040 (4) - 164406 [21:56:37]1012 (4) - 12.07.2024 15:35 [21:56:37]1206 (1) - 0 [21:56:37]OFD Sender: Remove packet 164406 [21:56:37]ProducePacketName [21:56:37]name=ofd_packets/00164406 [21:56:37]NVStorageDeleteData [21:56:37]Write to MH i2c: 01 00 00 CC 01 CD [21:56:37]Write i2c OK [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: 01 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: 01 07 00 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 F6 0C D6 [21:56:37]RasterBufferAndPrint [21:56:37]line [21:56:37]line [21:56:37]line [21:56:37]line [21:56:37]line [21:56:37]written 0, free lines is 3325 [21:56:37]MH_Cut [21:56:37]Write to MH i2c: D1 01 00 D3 01 01 A6 [21:56:37]Write i2c OK [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: D1 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: D1 01 00 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: D1 01 00 D3 01 00 A5 [21:56:37]Write to MH i2c: 01 00 00 D4 01 D5 [21:56:37]Write i2c OK [21:56:37]MH_I2C_Read... [21:56:38]OFD Sender: No OFD packet to send [21:56:38]*** Cut start [21:56:38]*** Partial cut [21:56:38]*** CUTSNS_PIN = 1 [21:56:38]*** CUTSNS_PIN = 0 [21:56:38]*** Brake cut motor [21:56:39]Read from MH i2c: 01 [21:56:39]MH_I2C_Read... [21:56:39]*** Stop cut motor [21:56:39]*** Cut end [21:56:39]Read from MH i2c: 01 07 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [21:56:39]process_action close_receipt done [21:56:39]requested_data is exist [21:56:39]produce_requested_data [21:56:39]requested_item fm.sn is exist - process it [21:56:39]wFMCommunicate request_size=4 [21:56:39]MH_SAM_APDU [21:56:39]CAPDU: 80 11 00 00 [21:56:39]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:39]Read from MH i2c: E2 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 17 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [21:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:56:39]wFMCommunicate OK [21:56:39]requested_item fd.num is exist - process it [21:56:39]SAM_PROTO_GetFieldsCounters [21:56:39]wFMCommunicate request_size=4 [21:56:39]MH_SAM_APDU [21:56:39]CAPDU: 80 13 00 00 [21:56:39]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:39]Read from MH i2c: E2 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 62 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 62 00 D6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:39]wFMCommunicate OK [21:56:39]SAM_PROTO_GetFieldsCounters done [21:56:39]requested_item shift.num is exist - process it [21:56:39]requested_item shift.opened is exist - process it [21:56:39]req_shift_opened [21:56:39]FM_GetShiftState [21:56:39]SAM_PROTO_GetShiftState [21:56:39]wFMCommunicate request_size=4 [21:56:39]MH_SAM_APDU [21:56:39]CAPDU: 80 13 01 00 [21:56:39]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [21:56:39]Write i2c OK [21:56:39]MH_I2C_Read... [21:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:39]Read from MH i2c: E2 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 0E 00 [21:56:39]MH_I2C_Read... [21:56:39]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9F [21:56:39]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [21:56:39]wFMCommunicate OK [21:56:39]SAM_PROTO_GetShiftState done [21:56:39]FM_GetShiftState done [21:56:39]req_shift_opened done [21:56:39]requested_item shift.open_date is exist - process it [21:56:39]req_shift_open_date [21:56:39]req_shift_open_date done [21:56:39]produce_requested_data done [21:56:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164406,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [21:56:39]process_action_free close_receipt [21:56:39]json_value_free [21:56:39]json_value_free done [21:56:39]process_json_proto returns [21:56:39]Send response to host [21:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164406,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [21:56:39]free response buf [21:56:39]execute_script done [21:56:39]execute_script returns [21:56:39]free content buf [21:56:39]Sock 7.Close socket [21:56:39]Sock 7.Thread stoped [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:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]accept exits with 9 [22:04:28]New connection [22:04:28]New thread 3067632996 created [22:04:28]Thread 3067489636 joined [22:04:28]Waiting for new connection... [22:04:28] Sock 9.Parse request [22:04:28]Sock 9.Check first char [22:04:28]Sock 9.First char is OK [22:04:28]request: POST /json_proto HTTP/1.0 [22:04:28]Method: POST [22:04:28]URL: /json_proto [22:04:28]Method is POST - this is cgi request [22:04:28]url: /json_proto [22:04:28]query_string will be loaded in cgi processing [22:04:28]execute_cgi json_proto POST (null) [22:04:28]execute_cgi path=json_proto method=POST [22:04:28]POST find Content-Length [22:04:28]Host: 172.17.56.4:8080 [22:04:28]Content-Length: 791 [22:04:28]Content-Type: application/json [22:04:28] [22:04:28]POST finish read [22:04:28]Found Content-Length = 791 [22:04:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:28]execute_script... [22:04: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)458495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:28]POST & json_proto [22:04:28]process_json_proto [22:04:28]json parsed OK: [22:04:28]protocol is kg_v1.0 [22:04:28]action value=close_receipt [22:04:28]process_action close_receipt [22:04:28]cmd_close_receipt [22:04:28]MH_GetDate [22:04:28]Write to MH i2c: F0 00 00 D8 01 C8 [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: F0 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: F0 09 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: F0 09 00 D8 01 00 6D A8 91 66 C9 DC B2 64 98 [22:04:28]GetLastDocTimeStamp 1720821396 [22:04:28]current date 1720821869 [22:04:28]FM_GetShiftState [22:04:28]SAM_PROTO_GetShiftState [22:04:28]wFMCommunicate request_size=4 [22:04:28]MH_SAM_APDU [22:04:28]CAPDU: 80 13 01 00 [22:04:28]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:28]Read from MH i2c: E2 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: E2 0E 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A1 [22:04:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:04:28]wFMCommunicate OK [22:04:28]SAM_PROTO_GetShiftState done [22:04:28]FM_GetShiftState done [22:04:28]opened in 1720744654 [22:04:28]opened+sec_in_day 1720831054 [22:04:28]quantity*price = 65220 [22:04:28]sum+1 = 65221 [22:04:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 328 12.07.2024 22:04 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164407 ФПД: 107035480810889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T220429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164407&fm=107035480810889&tin=02508201610067®Number=0000000000090829&sum=65220 [22:04:29]StoreToDocumentArchive [22:04:29]shift 445 fd 164407 [22:04:29]save to /storage/0445/doc_00164407 [22:04:29]save last doc name /storage/0445/doc_00164407 to /storage/kkm_last_doc_name [22:04:29]save OK [22:04:29]Clear old archive folders... [22:04:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:29]tlvbuf is 00CAA5A0 [22:04:29]SAM_PROTO_ClearQueue [22:04:29]wFMCommunicate request_size=4 [22:04:29]MH_SAM_APDU [22:04:29]CAPDU: 80 09 00 00 [22:04:29]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [22:04:29]Write i2c OK [22:04:29]MH_I2C_Read... [22:04:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:29]Read from MH i2c: E2 [22:04:29]MH_I2C_Read... [22:04:29]Read from MH i2c: E2 03 00 [22:04:29]MH_I2C_Read... [22:04:29]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [22:04:29]RAPDU: 90 00 [22:04:29]wFMCommunicate OK [22:04:29]SAM_PROTO_ClearQueue done [22:04:29]KKMCreateOFDPacket [22:04:29]OFDProtocolAddRootSTLVToBuf [22:04:29]FM_MakeSignedData [22:04:29]FM_MakeSignedData [22:04:29]SAM_PROTO_SignData [22:04:29]wFMCommunicate request_size=4 [22:04:29]MH_SAM_APDU [22:04:29]CAPDU: 80 0D 01 02 [22:04:29]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [22:04:29]Write i2c OK [22:04:29]MH_I2C_Read... [22:04:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:29]Read from MH i2c: E2 [22:04:29]MH_I2C_Read... [22:04:29]Read from MH i2c: E2 03 00 [22:04:29]MH_I2C_Read... [22:04:29]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [22:04:29]RAPDU: 90 00 [22:04:29]wFMCommunicate OK [22:04:29]wFMCommunicate request_size=255 [22:04:29]MH_SAM_APDU [22:04: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 6D A8 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 82 02 00 35 04 06 00 61 [22:04:29]Write to MH i2c: E2 02 01 E8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 6D A8 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 82 02 00 35 04 06 00 61 00 00 1C [22:04:29]Write i2c OK [22:04:29]MH_I2C_Read... [22:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:29]Read from MH i2c: E2 [22:04:29]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 03 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [22:04:30]RAPDU: 90 00 [22:04:30]wFMCommunicate OK [22:04:30]wFMCommunicate request_size=10 [22:04:30]MH_SAM_APDU [22:04:30]CAPDU: 80 0D 02 02 05 59 23 CF E5 89 [22:04:30]Write to MH i2c: E2 0D 00 E9 01 80 0D 02 02 05 00 59 23 CF E5 89 00 00 27 [22:04:30]Write i2c OK [22:04:30]MH_I2C_Read... [22:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:30]Read from MH i2c: E2 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 03 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [22:04:30]RAPDU: 90 00 [22:04:30]wFMCommunicate OK [22:04:30]wFMCommunicate request_size=4 [22:04:30]MH_SAM_APDU [22:04:30]CAPDU: 80 0D 03 02 [22:04:30]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [22:04:30]Write i2c OK [22:04:30]MH_I2C_Read... [22:04:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:30]Read from MH i2c: E2 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 0B 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 0B 00 EA 01 00 0A 3F CC 9A 60 AC 3C 94 90 00 F2 [22:04:30]RAPDU: 0A 3F CC 9A 60 AC 3C 94 90 00 [22:04:30]wFMCommunicate OK [22:04:30]SAM_PROTO_SignData done [22:04:30]FM_MakeSignedData done [22:04:30]CreateOFDProtocolMessage [22:04:30]wFMCommunicate request_size=4 [22:04:30]MH_SAM_APDU [22:04:30]CAPDU: 80 11 00 00 [22:04:30]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [22:04:30]Write i2c OK [22:04:30]MH_I2C_Read... [22:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:30]Read from MH i2c: E2 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 17 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [22:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:04:30]wFMCommunicate OK [22:04:30]CreateOFDProtocolMessage done [22:04:30]OFDSenderStorePacket 164407 [22:04:30]StoreOFDPacket docnum=164407 [22:04:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 2A 07 01 7A 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 6D A8 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 82 02 00 35 04 06 00 61 59 23 CF E5 89 0A 3F CC 9A 60 AC 3C 94 [22:04:30]CheckFolder [22:04:30]dirname=/storage/ofd_packets [22:04:30]CheckFolder done [22:04:30]ProducePacketName [22:04:30]name=ofd_packets/00164407 [22:04:30]NVStorageSaveData ofd_packets/00164407 [22:04:30]File name is /storage/ofd_packets/00164407 [22:04:30]Write 301 bytes [22:04:30]NVStorageSaveData done [22:04:30]OFDSenderStorePacket done [22:04:30]KKMCreateOFDPacket done [22:04:30]NVStorageSaveData kkm_last_timestamp [22:04:30]File name is /storage/kkm_last_timestamp [22:04:30]Write 4 bytes [22:04:30]NVStorageSaveData done [22:04:30]ExternCall_PrintAddStr [22:04:30]wPrintStart [22:04:30]Write to MH i2c: 01 00 00 EC 01 ED [22:04:30]Write i2c OK [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: 01 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: 01 07 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [22:04:30]RasterBufferAndPrint [22:04:30]line Счет N : (1)458495 [22:04:30]line ИНН: 02508201610067 [22:04:30]line Контрольно-Кассовый Чек [22:04:30]line ПРОДАЖА [22:04:30]line ТРК (МРК, ГНК) : 12 [22:04:30]line Товар: 2710124130 [22:04:30]line Аи-92-К-5 [22:04:30]line 10.000 * 65.22 [22:04:30]line = 652.20 [22:04:30]line НДС 12% НСП 1% [22:04:30]line > о реализуемом товаре [22:04:30]line ИТОГО: 652.20 [22:04:30]line НСП 1% : 5.77 [22:04:30]line НДС 12% : 69.26 [22:04:30]line Наличными: 0.00 [22:04:30]line Безнал.: 652.20 [22:04:30]line Место: АЗС № 72 "Партнер Нефть" [22:04:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:04:30]line СНО: Общий режим [22:04:30]line Чек 328 12.07.2024 22:04 [22:04:30]line Смена: 445 ФФД: 1.0 [22:04:30]line ЗНМ: 0300000160 [22:04:30]line РНМ: 0000000000090829 [22:04:30]line Версия ККМ: 001 [22:04:30]line Платежная система: KICB Банк [22:04:30]line ФМ: 0000000000874718 [22:04:30]line ФД: 164407 [22:04:30]line ФПД: 107035480810889 [22:04:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T220429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164407&fm=107035480810889&tin=02508201610067®Number=0000000000090829&sum=65220 [22:04:30]written 0, free lines is 4095 [22:04:30]OFD Sender: Processing packet 164407 [packets to send 104, broken 103] [22:04:30]ProducePacketName [22:04:30]name=ofd_packets/00164407 [22:04:30]OFD Sender: To server: pG, [22:04:30]CommunicateWithHost lk.salyk.kg:30040 [22:04:30]ConnectInit lk.salyk.kg [22:04:30]Connected sock=10 [22:04:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 2A 07 01 7A 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 6D A8 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 82 02 00 35 04 06 00 61 59 23 CF E5 89 0A 3F CC 9A 60 AC 3C 94 [22:04:30]Write to MH i2c: 01 00 00 15 02 17 [22:04:30]Write i2c OK [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: 01 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: 01 07 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: 01 07 00 15 02 00 00 00 00 00 16 0D 41 [22:04:30]RasterBufferAndPrint [22:04:30]line [22:04:30]line [22:04:30]line [22:04:30]line [22:04:30]line [22:04:30]written 0, free lines is 3356 [22:04:30]MH_Cut [22:04:30]Write to MH i2c: D1 01 00 1C 02 01 F0 [22:04:30]Write i2c OK [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: D1 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: D1 01 00 [22:04:30]MH_I2C_Read... [22:04:30]Read from MH i2c: D1 01 00 1C 02 00 EF [22:04:30]Write to MH i2c: 01 00 00 1D 02 1F [22:04:30]Write i2c OK [22:04:30]MH_I2C_Read... [22:04:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B 1C 47 00 3E 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 34 37 31 38 10 04 04 00 37 82 02 00 F4 03 04 00 00 4F 91 66 B6 04 01 00 00 2B 31 7B B2 09 37 2D 72 [22:04:30]CommunicateWithHost err = 0 [22:04:30]CheckOFDResponse [22:04:30]1017 (14) - 77093643461234 [22:04:30]1041 (16) - 0000000000874718 [22:04:30]1040 (4) - 164407 [22:04:30]1012 (4) - 12.07.2024 15:42 [22:04:30]1206 (1) - 0 [22:04:30]OFD Sender: Remove packet 164407 [22:04:30]ProducePacketName [22:04:30]name=ofd_packets/00164407 [22:04:30]NVStorageDeleteData [22:04:31]*** Cut start [22:04:31]*** Partial cut [22:04:31]*** CUTSNS_PIN = 1 [22:04:31]OFD Sender: No OFD packet to send [22:04:31]*** CUTSNS_PIN = 0 [22:04:31]*** Brake cut motor [22:04:31]Read from MH i2c: 01 [22:04:31]MH_I2C_Read... [22:04:31]*** Stop cut motor [22:04:31]*** Cut end [22:04:31]Read from MH i2c: 01 07 00 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 FF 0F 34 [22:04:31]process_action close_receipt done [22:04:31]requested_data is exist [22:04:31]produce_requested_data [22:04:31]requested_item fm.sn is exist - process it [22:04:31]wFMCommunicate request_size=4 [22:04:31]MH_SAM_APDU [22:04:31]CAPDU: 80 11 00 00 [22:04:31]Write to MH i2c: E2 08 00 1E 02 80 11 00 00 00 00 00 00 9A [22:04:31]Write i2c OK [22:04:31]MH_I2C_Read... [22:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:31]Read from MH i2c: E2 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 17 00 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 17 00 1E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [22:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:04:31]wFMCommunicate OK [22:04:31]requested_item fd.num is exist - process it [22:04:31]SAM_PROTO_GetFieldsCounters [22:04:31]wFMCommunicate request_size=4 [22:04:31]MH_SAM_APDU [22:04:31]CAPDU: 80 13 00 00 [22:04:31]Write to MH i2c: E2 08 00 1F 02 80 13 00 00 00 00 00 00 9D [22:04:31]Write i2c OK [22:04:31]MH_I2C_Read... [22:04:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:32]Read from MH i2c: E2 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 62 00 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 62 00 1F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [22:04: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:32]wFMCommunicate OK [22:04:32]SAM_PROTO_GetFieldsCounters done [22:04:32]requested_item shift.num is exist - process it [22:04:32]requested_item shift.opened is exist - process it [22:04:32]req_shift_opened [22:04:32]FM_GetShiftState [22:04:32]SAM_PROTO_GetShiftState [22:04:32]wFMCommunicate request_size=4 [22:04:32]MH_SAM_APDU [22:04:32]CAPDU: 80 13 01 00 [22:04:32]Write to MH i2c: E2 08 00 20 02 80 13 01 00 00 00 00 00 9F [22:04:32]Write i2c OK [22:04:32]MH_I2C_Read... [22:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:32]Read from MH i2c: E2 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 0E 00 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 0E 00 20 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E9 [22:04:32]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:04:32]wFMCommunicate OK [22:04:32]SAM_PROTO_GetShiftState done [22:04:32]FM_GetShiftState done [22:04:32]req_shift_opened done [22:04:32]requested_item shift.open_date is exist - process it [22:04:32]req_shift_open_date [22:04:32]req_shift_open_date done [22:04:32]produce_requested_data done [22:04:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164407,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:04:32]process_action_free close_receipt [22:04:32]json_value_free [22:04:32]json_value_free done [22:04:32]process_json_proto returns [22:04:32]Send response to host [22:04:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164407,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:04:32]free response buf [22:04:32]execute_script done [22:04:32]execute_script returns [22:04:32]free content buf [22:04:32]Sock 9.Close socket [22:04:32]Sock 9.Thread stoped [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:29]accept exits with 7 [22:12:29]New connection [22:12:29]New thread 3067489636 created [22:12:29]Thread 3067632996 joined [22:12:29]Waiting for new connection... [22:12:29] Sock 7.Parse request [22:12:29]Sock 7.Check first char [22:12:29]Sock 7.First char is OK [22:12:29]request: POST /json_proto HTTP/1.0 [22:12:29]Method: POST [22:12:29]URL: /json_proto [22:12:29]Method is POST - this is cgi request [22:12:29]url: /json_proto [22:12:29]query_string will be loaded in cgi processing [22:12:29]execute_cgi json_proto POST (null) [22:12:29]execute_cgi path=json_proto method=POST [22:12:29]POST find Content-Length [22:12:29]Host: 172.17.56.4:8080 [22:12:29]Content-Length: 677 [22:12:29]Content-Type: application/json [22:12:29] [22:12:29]POST finish read [22:12:29]Found Content-Length = 677 [22:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:29]execute_script... [22: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)458496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:29]POST & json_proto [22:12:29]process_json_proto [22:12:29]json parsed OK: [22:12:29]protocol is kg_v1.0 [22:12:29]action value=close_receipt [22:12:29]process_action close_receipt [22:12:29]cmd_close_receipt [22:12:29]MH_GetDate [22:12:29]Write to MH i2c: F0 00 00 21 02 12 [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: F0 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: F0 09 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: F0 09 00 21 02 00 4E AA 91 66 C9 DC B2 64 C5 [22:12:29]GetLastDocTimeStamp 1720821869 [22:12:29]current date 1720822350 [22:12:29]FM_GetShiftState [22:12:29]SAM_PROTO_GetShiftState [22:12:29]wFMCommunicate request_size=4 [22:12:29]MH_SAM_APDU [22:12:29]CAPDU: 80 13 01 00 [22:12:29]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:29]Read from MH i2c: E2 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0E 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 EB [22:12:29]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:12:29]wFMCommunicate OK [22:12:29]SAM_PROTO_GetShiftState done [22:12:29]FM_GetShiftState done [22:12:29]opened in 1720744654 [22:12:29]opened+sec_in_day 1720831054 [22:12:29]quantity*price = 60009 [22:12:29]sum+1 = 60011 [22:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 329 12.07.2024 22:12 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164408 ФПД: 228684674638082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T221230&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164408&fm=228684674638082&tin=02508201610067®Number=0000000000090829&sum=60000 [22:12:30]StoreToDocumentArchive [22:12:30]shift 445 fd 164408 [22:12:30]save to /storage/0445/doc_00164408 [22:12:30]save last doc name /storage/0445/doc_00164408 to /storage/kkm_last_doc_name [22:12:30]save OK [22:12:30]Clear old archive folders... [22:12:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:30]tlvbuf is 00CAF780 [22:12:30]SAM_PROTO_ClearQueue [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 09 00 00 [22:12:30]Write to MH i2c: E2 08 00 2F 02 80 09 00 00 00 00 00 00 A3 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [22:12:30]RAPDU: 90 00 [22:12:30]wFMCommunicate OK [22:12:30]SAM_PROTO_ClearQueue done [22:12:30]KKMCreateOFDPacket [22:12:30]OFDProtocolAddRootSTLVToBuf [22:12:30]FM_MakeSignedData [22:12:30]FM_MakeSignedData [22:12:30]SAM_PROTO_SignData [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 0D 01 02 [22:12:30]Write to MH i2c: E2 08 00 30 02 80 0D 01 02 00 00 00 00 AB [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [22:12:30]RAPDU: 90 00 [22:12:30]wFMCommunicate OK [22:12:30]wFMCommunicate request_size=255 [22:12:30]MH_SAM_APDU [22: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 01 00 00 F4 03 04 00 4E AA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 82 02 00 35 04 06 00 CF [22:12:30]Write to MH i2c: E2 02 01 31 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 01 00 00 F4 03 04 00 4E AA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 82 02 00 35 04 06 00 CF 00 00 C7 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [22:12:30]RAPDU: 90 00 [22:12:30]wFMCommunicate OK [22:12:30]wFMCommunicate request_size=10 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 0D 02 02 05 FC CC CC 21 02 [22:12:30]Write to MH i2c: E2 0D 00 32 02 80 0D 02 02 05 00 FC CC CC 21 02 00 00 6F [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [22:12:30]RAPDU: 90 00 [22:12:30]wFMCommunicate OK [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 0D 03 02 [22:12:30]Write to MH i2c: E2 08 00 33 02 80 0D 03 02 00 00 00 00 B0 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 0B 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 0B 00 33 02 00 49 A5 BA 26 CF 07 41 2D 90 00 C3 [22:12:30]RAPDU: 49 A5 BA 26 CF 07 41 2D 90 00 [22:12:30]wFMCommunicate OK [22:12:30]SAM_PROTO_SignData done [22:12:30]FM_MakeSignedData done [22:12:30]CreateOFDProtocolMessage [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 11 00 00 [22:12:30]Write to MH i2c: E2 08 00 34 02 80 11 00 00 00 00 00 00 B0 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 17 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 17 00 34 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 06 [22:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:12:30]wFMCommunicate OK [22:12:30]CreateOFDProtocolMessage done [22:12:30]OFDSenderStorePacket 164408 [22:12:30]StoreOFDPacket docnum=164408 [22:12:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 11 1D 07 01 35 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 01 00 00 F4 03 04 00 4E AA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 82 02 00 35 04 06 00 CF FC CC CC 21 02 49 A5 BA 26 CF 07 41 2D [22:12:30]CheckFolder [22:12:30]dirname=/storage/ofd_packets [22:12:30]CheckFolder done [22:12:30]ProducePacketName [22:12:30]name=ofd_packets/00164408 [22:12:30]NVStorageSaveData ofd_packets/00164408 [22:12:30]File name is /storage/ofd_packets/00164408 [22:12:30]Write 301 bytes [22:12:30]NVStorageSaveData done [22:12:30]OFDSenderStorePacket done [22:12:30]KKMCreateOFDPacket done [22:12:30]NVStorageSaveData kkm_last_timestamp [22:12:30]File name is /storage/kkm_last_timestamp [22:12:30]Write 4 bytes [22:12:30]NVStorageSaveData done [22:12:30]ExternCall_PrintAddStr [22:12:30]wPrintStart [22:12:30]Write to MH i2c: 01 00 00 35 02 37 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 07 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 07 00 35 02 00 00 00 00 00 FF 0F 4C [22:12:30]RasterBufferAndPrint [22:12:30]line Счет N : (1)458496 [22:12:30]line ИНН: 02508201610067 [22:12:30]line Контрольно-Кассовый Чек [22:12:30]line ПРОДАЖА [22:12:30]line ТРК (МРК, ГНК) : 12 [22:12:30]line Товар: 2710124130 [22:12:30]line Аи-92-К-5 [22:12:30]line 9.120 * 65.80 [22:12:30]line = 600.10 [22:12:30]line НДС 12% НСП 1% [22:12:30]line > о реализуемом товаре [22:12:30]line ОКРУГЛЕНИЕ: -0.10 [22:12:30]line ИТОГО: 600.00 [22:12:30]line Внесено: 600.00 [22:12:30]line СДАЧА: 0.00 [22:12:30]line НСП 1% : 5.31 [22:12:30]line НДС 12% : 63.73 [22:12:30]line Наличными: 600.00 [22:12:30]line Безнал.: 0.00 [22:12:30]line Место: АЗС № 72 "Партнер Нефть" [22:12:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:12:30]line СНО: Общий режим [22:12:30]line Чек 329 12.07.2024 22:12 [22:12:30]line Смена: 445 ФФД: 1.0 [22:12:30]line ЗНМ: 0300000160 [22:12:30]line РНМ: 0000000000090829 [22:12:30]line Версия ККМ: 001 [22:12:30]line ФМ: 0000000000874718 [22:12:30]line ФД: 164408 [22:12:30]line ФПД: 228684674638082 [22:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T221230&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164408&fm=228684674638082&tin=02508201610067®Number=0000000000090829&sum=60000 [22:12:31]OFD Sender: Processing packet 164408 [packets to send 104, broken 103] [22:12:31]ProducePacketName [22:12:31]name=ofd_packets/00164408 [22:12:31]OFD Sender: To server: pG, [22:12:31]CommunicateWithHost lk.salyk.kg:30040 [22:12:31]ConnectInit lk.salyk.kg [22:12:31]written 0, free lines is 4095 [22:12:31]Connected sock=10 [22: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 34 37 31 38 0F 01 00 00 11 1D 07 01 35 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 01 00 00 F4 03 04 00 4E AA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 82 02 00 35 04 06 00 CF FC CC CC 21 02 49 A5 BA 26 CF 07 41 2D [22:12:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D1 78 47 00 24 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 34 37 31 38 10 04 04 00 38 82 02 00 F4 03 04 00 E1 50 91 66 B6 04 01 00 00 2B 06 D8 A5 F4 8F AC A5 [22:12:31]CommunicateWithHost err = 0 [22:12:31]CheckOFDResponse [22:12:31]1017 (14) - 77093643461234 [22:12:31]1041 (16) - 0000000000874718 [22:12:31]1040 (4) - 164408 [22:12:31]1012 (4) - 12.07.2024 15:50 [22:12:31]1206 (1) - 0 [22:12:31]OFD Sender: Remove packet 164408 [22:12:31]ProducePacketName [22:12:31]name=ofd_packets/00164408 [22:12:31]NVStorageDeleteData [22:12:31]Write to MH i2c: 01 00 00 5F 02 61 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 5F 02 00 00 00 00 00 11 0D 86 [22:12:31]RasterBufferAndPrint [22:12:31]line [22:12:31]line [22:12:31]line [22:12:31]line [22:12:31]line [22:12:31]written 0, free lines is 3351 [22:12:31]MH_Cut [22:12:31]Write to MH i2c: D1 01 00 66 02 01 3A [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: D1 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: D1 01 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: D1 01 00 66 02 00 39 [22:12:31]Write to MH i2c: 01 00 00 67 02 69 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:32]OFD Sender: No OFD packet to send [22:12:32]*** Cut start [22:12:32]*** Partial cut [22:12:32]*** CUTSNS_PIN = 1 [22:12:32]*** CUTSNS_PIN = 0 [22:12:32]*** Brake cut motor [22:12:33]Read from MH i2c: 01 [22:12:33]MH_I2C_Read... [22:12:33]*** Stop cut motor [22:12:33]*** Cut end [22:12:33]Read from MH i2c: 01 07 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 FF 0F 7E [22:12:33]process_action close_receipt done [22:12:33]requested_data is exist [22:12:33]produce_requested_data [22:12:33]requested_item fm.sn is exist - process it [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 11 00 00 [22:12:33]Write to MH i2c: E2 08 00 68 02 80 11 00 00 00 00 00 00 E4 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 17 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 17 00 68 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [22:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:12:33]wFMCommunicate OK [22:12:33]requested_item fd.num is exist - process it [22:12:33]SAM_PROTO_GetFieldsCounters [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 13 00 00 [22:12:33]Write to MH i2c: E2 08 00 69 02 80 13 00 00 00 00 00 00 E7 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 62 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 62 00 69 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:33]wFMCommunicate OK [22:12:33]SAM_PROTO_GetFieldsCounters done [22:12:33]requested_item shift.num is exist - process it [22:12:33]requested_item shift.opened is exist - process it [22:12:33]req_shift_opened [22:12:33]FM_GetShiftState [22:12:33]SAM_PROTO_GetShiftState [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 13 01 00 [22:12:33]Write to MH i2c: E2 08 00 6A 02 80 13 01 00 00 00 00 00 E9 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 0E 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 0E 00 6A 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 33 [22:12:33]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:12:33]wFMCommunicate OK [22:12:33]SAM_PROTO_GetShiftState done [22:12:33]FM_GetShiftState done [22:12:33]req_shift_opened done [22:12:33]requested_item shift.open_date is exist - process it [22:12:33]req_shift_open_date [22:12:33]req_shift_open_date done [22:12:33]produce_requested_data done [22:12:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164408,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:12:33]process_action_free close_receipt [22:12:33]json_value_free [22:12:33]json_value_free done [22:12:33]process_json_proto returns [22:12:33]Send response to host [22:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164408,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:12:33]free response buf [22:12:33]execute_script done [22:12:33]execute_script returns [22:12:33]free content buf [22:12:33]Sock 7.Close socket [22:12:33]Sock 7.Thread stoped [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:44]accept exits with 9 [22:13:44]New connection [22:13:44]New thread 3067632996 created [22:13:44]Thread 3067489636 joined [22:13:44]Waiting for new connection... [22:13:44] Sock 9.Parse request [22:13:44]Sock 9.Check first char [22:13:44]Sock 9.First char is OK [22:13:44]request: POST /json_proto HTTP/1.0 [22:13:44]Method: POST [22:13:44]URL: /json_proto [22:13:44]Method is POST - this is cgi request [22:13:44]url: /json_proto [22:13:44]query_string will be loaded in cgi processing [22:13:44]execute_cgi json_proto POST (null) [22:13:44]execute_cgi path=json_proto method=POST [22:13:44]POST find Content-Length [22:13:44]Host: 172.17.56.4:8080 [22:13:44]Content-Length: 679 [22:13:44]Content-Type: application/json [22:13:44] [22:13:44]POST finish read [22:13:44]Found Content-Length = 679 [22:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458497", "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" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:44]execute_script... [22:13:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458497", "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" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:44]POST & json_proto [22:13:44]process_json_proto [22:13:44]json parsed OK: [22:13:44]protocol is kg_v1.0 [22:13:44]action value=close_receipt [22:13:44]process_action close_receipt [22:13:44]cmd_close_receipt [22:13:44]MH_GetDate [22:13:44]Write to MH i2c: F0 00 00 6B 02 5C [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: F0 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: F0 09 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: F0 09 00 6B 02 00 99 AA 91 66 C9 DC B2 64 5A [22:13:44]GetLastDocTimeStamp 1720822350 [22:13:44]current date 1720822425 [22:13:44]FM_GetShiftState [22:13:44]SAM_PROTO_GetShiftState [22:13:44]wFMCommunicate request_size=4 [22:13:44]MH_SAM_APDU [22:13:44]CAPDU: 80 13 01 00 [22:13:44]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:44]Read from MH i2c: E2 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 0E 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 35 [22:13:44]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:13:44]wFMCommunicate OK [22:13:44]SAM_PROTO_GetShiftState done [22:13:44]FM_GetShiftState done [22:13:44]opened in 1720744654 [22:13:44]opened+sec_in_day 1720831054 [22:13:44]quantity*price = 150055 [22:13:44]sum+1 = 150056 [22:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 330 12.07.2024 22:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164409 ФПД: 229303111092152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T221346&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164409&fm=229303111092152&tin=02508201610067®Number=0000000000090829&sum=150000 [22:13:46]StoreToDocumentArchive [22:13:46]shift 445 fd 164409 [22:13:46]save to /storage/0445/doc_00164409 [22:13:46]save last doc name /storage/0445/doc_00164409 to /storage/kkm_last_doc_name [22:13:46]save OK [22:13:46]Clear old archive folders... [22:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:13:46]tlvbuf is 00CA88F0 [22:13:46]SAM_PROTO_ClearQueue [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 09 00 00 [22:13:46]Write to MH i2c: E2 08 00 79 02 80 09 00 00 00 00 00 00 ED [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 03 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [22:13:46]RAPDU: 90 00 [22:13:46]wFMCommunicate OK [22:13:46]SAM_PROTO_ClearQueue done [22:13:46]KKMCreateOFDPacket [22:13:46]OFDProtocolAddRootSTLVToBuf [22:13:46]FM_MakeSignedData [22:13:46]FM_MakeSignedData [22:13:46]SAM_PROTO_SignData [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 0D 01 02 [22:13:46]Write to MH i2c: E2 08 00 7A 02 80 0D 01 02 00 00 00 00 F5 [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 03 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [22:13:46]RAPDU: 90 00 [22:13:46]wFMCommunicate OK [22:13:46]wFMCommunicate request_size=255 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 9A AA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 82 02 00 35 04 06 00 D0 8C CA 7B [22:13:46]Write to MH i2c: E2 02 01 7B 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 9A AA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 82 02 00 35 04 06 00 D0 8C CA 7B 00 00 9E [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 03 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [22:13:46]RAPDU: 90 00 [22:13:46]wFMCommunicate OK [22:13:46]wFMCommunicate request_size=7 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 0D 02 02 02 87 B8 [22:13:46]Write to MH i2c: E2 0A 00 7C 02 80 0D 02 02 02 00 87 B8 00 00 3B [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 03 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [22:13:46]RAPDU: 90 00 [22:13:46]wFMCommunicate OK [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 0D 03 02 [22:13:46]Write to MH i2c: E2 08 00 7D 02 80 0D 03 02 00 00 00 00 FA [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 0B 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 0B 00 7D 02 00 2C 35 E8 B7 A8 2F 57 65 90 00 8E [22:13:46]RAPDU: 2C 35 E8 B7 A8 2F 57 65 90 00 [22:13:46]wFMCommunicate OK [22:13:46]SAM_PROTO_SignData done [22:13:46]FM_MakeSignedData done [22:13:46]CreateOFDProtocolMessage [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 11 00 00 [22:13:46]Write to MH i2c: E2 08 00 7E 02 80 11 00 00 00 00 00 00 FA [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 17 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 17 00 7E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 50 [22:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:13:46]wFMCommunicate OK [22:13:46]CreateOFDProtocolMessage done [22:13:46]OFDSenderStorePacket 164409 [22:13:46]StoreOFDPacket docnum=164409 [22:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FF 5C 04 01 0F 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 9A AA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 82 02 00 35 04 06 00 D0 8C CA 7B 87 B8 2C 35 E8 B7 A8 2F 57 65 [22:13:46]CheckFolder [22:13:46]dirname=/storage/ofd_packets [22:13:46]CheckFolder done [22:13:46]ProducePacketName [22:13:46]name=ofd_packets/00164409 [22:13:46]NVStorageSaveData ofd_packets/00164409 [22:13:46]File name is /storage/ofd_packets/00164409 [22:13:46]Write 298 bytes [22:13:46]NVStorageSaveData done [22:13:46]OFDSenderStorePacket done [22:13:46]KKMCreateOFDPacket done [22:13:46]NVStorageSaveData kkm_last_timestamp [22:13:46]File name is /storage/kkm_last_timestamp [22:13:46]Write 4 bytes [22:13:46]NVStorageSaveData done [22:13:46]ExternCall_PrintAddStr [22:13:46]wPrintStart [22:13:46]Write to MH i2c: 01 00 00 7F 02 81 [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: 01 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: 01 07 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: 01 07 00 7F 02 00 00 00 00 00 FF 0F 96 [22:13:46]RasterBufferAndPrint [22:13:46]line Счет N : (1)458497 [22:13:46]line ИНН: 02508201610067 [22:13:46]line Контрольно-Кассовый Чек [22:13:46]line ПРОДАЖА [22:13:46]line ТРК (МРК, ГНК) : 21 [22:13:46]line Товар: 2710194210 [22:13:46]line ДТ-К-5 [22:13:46]line 20.870 * 71.90 [22:13:46]line = 1500.55 [22:13:46]line НДС 12% НСП 1% [22:13:46]line > о реализуемом товаре [22:13:46]line ОКРУГЛЕНИЕ: -0.55 [22:13:46]line ИТОГО: 1500.00 [22:13:46]line Внесено: 1500.00 [22:13:46]line СДАЧА: 0.00 [22:13:46]line НСП 1% : 13.28 [22:13:46]line НДС 12% : 159.35 [22:13:46]line Наличными: 1500.00 [22:13:46]line Безнал.: 0.00 [22:13:46]line Место: АЗС № 72 "Партнер Нефть" [22:13:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:13:46]line СНО: Общий режим [22:13:46]line Чек 330 12.07.2024 22:13 [22:13:46]line Смена: 445 ФФД: 1.0 [22:13:46]line ЗНМ: 0300000160 [22:13:46]line РНМ: 0000000000090829 [22:13:46]line Версия ККМ: 001 [22:13:46]line ФМ: 0000000000874718 [22:13:46]line ФД: 164409 [22:13:46]line ФПД: 229303111092152 [22:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T221346&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164409&fm=229303111092152&tin=02508201610067®Number=0000000000090829&sum=150000 [22:13:46]OFD Sender: Processing packet 164409 [packets to send 104, broken 103] [22:13:46]ProducePacketName [22:13:46]name=ofd_packets/00164409 [22:13:46]OFD Sender: To server: pG, [22:13:46]CommunicateWithHost lk.salyk.kg:30040 [22:13:46]ConnectInit lk.salyk.kg [22:13:46]written 0, free lines is 4095 [22:13:46]Connected sock=10 [22:13:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FF 5C 04 01 0F 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 9A AA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 82 02 00 35 04 06 00 D0 8C CA 7B 87 B8 2C 35 E8 B7 A8 2F 57 65 [22:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F6 03 47 00 BC 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 34 37 31 38 10 04 04 00 39 82 02 00 F4 03 04 00 2D 51 91 66 B6 04 01 00 00 85 D6 B6 B9 62 92 EF AE [22:13:47]CommunicateWithHost err = 0 [22:13:47]CheckOFDResponse [22:13:47]1017 (14) - 77093643461234 [22:13:47]1041 (16) - 0000000000874718 [22:13:47]1040 (4) - 164409 [22:13:47]1012 (4) - 12.07.2024 15:52 [22:13:47]1206 (1) - 0 [22:13:47]OFD Sender: Remove packet 164409 [22:13:47]ProducePacketName [22:13:47]name=ofd_packets/00164409 [22:13:47]NVStorageDeleteData [22:13:47]Write to MH i2c: 01 00 00 A9 02 AB [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: 01 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: 01 07 00 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 02 0D C1 [22:13:47]RasterBufferAndPrint [22:13:47]line [22:13:47]line [22:13:47]line [22:13:47]line [22:13:47]line [22:13:47]written 0, free lines is 3336 [22:13:47]MH_Cut [22:13:47]Write to MH i2c: D1 01 00 B0 02 01 84 [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: D1 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: D1 01 00 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: D1 01 00 B0 02 00 83 [22:13:47]Write to MH i2c: 01 00 00 B1 02 B3 [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:47]OFD Sender: No OFD packet to send [22:13:48]*** Cut start [22:13:48]*** Partial cut [22:13:48]*** CUTSNS_PIN = 1 [22:13:48]*** CUTSNS_PIN = 0 [22:13:48]*** Brake cut motor [22:13:48]Read from MH i2c: 01 [22:13:48]MH_I2C_Read... [22:13:48]*** Stop cut motor [22:13:48]*** Cut end [22:13:48]Read from MH i2c: 01 07 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 FF 0F C8 [22:13:48]process_action close_receipt done [22:13:48]requested_data is exist [22:13:48]produce_requested_data [22:13:48]requested_item fm.sn is exist - process it [22:13:48]wFMCommunicate request_size=4 [22:13:48]MH_SAM_APDU [22:13:48]CAPDU: 80 11 00 00 [22:13:48]Write to MH i2c: E2 08 00 B2 02 80 11 00 00 00 00 00 00 2E [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 17 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 17 00 B2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 84 [22:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:13:48]wFMCommunicate OK [22:13:48]requested_item fd.num is exist - process it [22:13:48]SAM_PROTO_GetFieldsCounters [22:13:48]wFMCommunicate request_size=4 [22:13:48]MH_SAM_APDU [22:13:48]CAPDU: 80 13 00 00 [22:13:48]Write to MH i2c: E2 08 00 B3 02 80 13 00 00 00 00 00 00 31 [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 62 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 62 00 B3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:48]wFMCommunicate OK [22:13:48]SAM_PROTO_GetFieldsCounters done [22:13:48]requested_item shift.num is exist - process it [22:13:48]requested_item shift.opened is exist - process it [22:13:48]req_shift_opened [22:13:48]FM_GetShiftState [22:13:48]SAM_PROTO_GetShiftState [22:13:48]wFMCommunicate request_size=4 [22:13:48]MH_SAM_APDU [22:13:48]CAPDU: 80 13 01 00 [22:13:48]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 0E 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7D [22:13:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:13:48]wFMCommunicate OK [22:13:48]SAM_PROTO_GetShiftState done [22:13:48]FM_GetShiftState done [22:13:48]req_shift_opened done [22:13:48]requested_item shift.open_date is exist - process it [22:13:48]req_shift_open_date [22:13:48]req_shift_open_date done [22:13:48]produce_requested_data done [22:13:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164409,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:13:48]process_action_free close_receipt [22:13:48]json_value_free [22:13:48]json_value_free done [22:13:48]process_json_proto returns [22:13:48]Send response to host [22:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164409,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:13:48]free response buf [22:13:48]execute_script done [22:13:48]execute_script returns [22:13:48]free content buf [22:13:48]Sock 9.Close socket [22:13:48]Sock 9.Thread stoped [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:01]accept exits with 7 [22:18:01]New connection [22:18:01]New thread 3067489636 created [22:18:01]Thread 3067632996 joined [22:18:01]Waiting for new connection... [22:18:01] Sock 7.Parse request [22:18:01]Sock 7.Check first char [22:18:01]Sock 7.First char is OK [22:18:01]request: POST /json_proto HTTP/1.0 [22:18:01]Method: POST [22:18:01]URL: /json_proto [22:18:01]Method is POST - this is cgi request [22:18:01]url: /json_proto [22:18:01]query_string will be loaded in cgi processing [22:18:01]execute_cgi json_proto POST (null) [22:18:01]execute_cgi path=json_proto method=POST [22:18:01]POST find Content-Length [22:18:01]Host: 172.17.56.4:8080 [22:18:01]Content-Length: 677 [22:18:01]Content-Type: application/json [22:18:01] [22:18:01]POST finish read [22:18:01]Found Content-Length = 677 [22:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:01]execute_script... [22:18: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)458498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:01]POST & json_proto [22:18:01]process_json_proto [22:18:01]json parsed OK: [22:18:01]protocol is kg_v1.0 [22:18:01]action value=close_receipt [22:18:01]process_action close_receipt [22:18:01]cmd_close_receipt [22:18:01]MH_GetDate [22:18:01]Write to MH i2c: F0 00 00 B5 02 A6 [22:18:01]Write i2c OK [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: F0 [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: F0 09 00 [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: F0 09 00 B5 02 00 9A AB 91 66 C9 DC B2 64 A6 [22:18:01]GetLastDocTimeStamp 1720822426 [22:18:01]current date 1720822682 [22:18:01]FM_GetShiftState [22:18:01]SAM_PROTO_GetShiftState [22:18:01]wFMCommunicate request_size=4 [22:18:01]MH_SAM_APDU [22:18:01]CAPDU: 80 13 01 00 [22:18:01]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [22:18:01]Write i2c OK [22:18:01]MH_I2C_Read... [22:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:01]Read from MH i2c: E2 [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: E2 0E 00 [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 7F [22:18:01]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:18:01]wFMCommunicate OK [22:18:01]SAM_PROTO_GetShiftState done [22:18:01]FM_GetShiftState done [22:18:01]opened in 1720744654 [22:18:01]opened+sec_in_day 1720831054 [22:18:01]quantity*price = 50008 [22:18:01]sum+1 = 50009 [22:18:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 331 12.07.2024 22:18 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164410 ФПД: 152363645891817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T221802&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164410&fm=152363645891817&tin=02508201610067®Number=0000000000090829&sum=50000 [22:18:02]StoreToDocumentArchive [22:18:02]shift 445 fd 164410 [22:18:02]save to /storage/0445/doc_00164410 [22:18:02]save last doc name /storage/0445/doc_00164410 to /storage/kkm_last_doc_name [22:18:02]save OK [22:18:02]Clear old archive folders... [22:18:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:02]tlvbuf is 00CB5910 [22:18:02]SAM_PROTO_ClearQueue [22:18:02]wFMCommunicate request_size=4 [22:18:02]MH_SAM_APDU [22:18:02]CAPDU: 80 09 00 00 [22:18:02]Write to MH i2c: E2 08 00 C3 02 80 09 00 00 00 00 00 00 37 [22:18:02]Write i2c OK [22:18:02]MH_I2C_Read... [22:18:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:02]Read from MH i2c: E2 [22:18:02]MH_I2C_Read... [22:18:02]Read from MH i2c: E2 03 00 [22:18:02]MH_I2C_Read... [22:18:02]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [22:18:02]RAPDU: 90 00 [22:18:02]wFMCommunicate OK [22:18:02]SAM_PROTO_ClearQueue done [22:18:02]KKMCreateOFDPacket [22:18:02]OFDProtocolAddRootSTLVToBuf [22:18:02]FM_MakeSignedData [22:18:02]FM_MakeSignedData [22:18:02]SAM_PROTO_SignData [22:18:02]wFMCommunicate request_size=4 [22:18:02]MH_SAM_APDU [22:18:02]CAPDU: 80 0D 01 02 [22:18:02]Write to MH i2c: E2 08 00 C4 02 80 0D 01 02 00 00 00 00 3F [22:18:02]Write i2c OK [22:18:02]MH_I2C_Read... [22:18:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:02]Read from MH i2c: E2 [22:18:02]MH_I2C_Read... [22:18:02]Read from MH i2c: E2 03 00 [22:18:02]MH_I2C_Read... [22:18:02]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [22:18:02]RAPDU: 90 00 [22:18:02]wFMCommunicate OK [22:18:02]wFMCommunicate request_size=255 [22:18:02]MH_SAM_APDU [22:18: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4B 01 00 00 F4 03 04 00 9A AB 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 82 02 00 35 04 06 00 8A [22:18:02]Write to MH i2c: E2 02 01 C5 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4B 01 00 00 F4 03 04 00 9A AB 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 82 02 00 35 04 06 00 8A 00 00 46 [22:18:02]Write i2c OK [22:18:02]MH_I2C_Read... [22:18:03]OFD Sender: No OFD packet to send [22:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [22:18:03]RAPDU: 90 00 [22:18:03]wFMCommunicate OK [22:18:03]wFMCommunicate request_size=10 [22:18:03]MH_SAM_APDU [22:18:03]CAPDU: 80 0D 02 02 05 92 EC FD 74 E9 [22:18:03]Write to MH i2c: E2 0D 00 C6 02 80 0D 02 02 05 00 92 EC FD 74 E9 00 00 24 [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [22:18:03]RAPDU: 90 00 [22:18:03]wFMCommunicate OK [22:18:03]wFMCommunicate request_size=4 [22:18:03]MH_SAM_APDU [22:18:03]CAPDU: 80 0D 03 02 [22:18:03]Write to MH i2c: E2 08 00 C7 02 80 0D 03 02 00 00 00 00 44 [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 0B 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 0B 00 C7 02 00 C5 00 09 16 B1 CD 35 67 90 00 43 [22:18:03]RAPDU: C5 00 09 16 B1 CD 35 67 90 00 [22:18:03]wFMCommunicate OK [22:18:03]SAM_PROTO_SignData done [22:18:03]FM_MakeSignedData done [22:18:03]CreateOFDProtocolMessage [22:18:03]wFMCommunicate request_size=4 [22:18:03]MH_SAM_APDU [22:18:03]CAPDU: 80 11 00 00 [22:18:03]Write to MH i2c: E2 08 00 C8 02 80 11 00 00 00 00 00 00 44 [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 17 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 17 00 C8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9A [22:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:18:03]wFMCommunicate OK [22:18:03]CreateOFDProtocolMessage done [22:18:03]OFDSenderStorePacket 164410 [22:18:03]StoreOFDPacket docnum=164410 [22:18:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 F5 07 01 2D 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4B 01 00 00 F4 03 04 00 9A AB 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 82 02 00 35 04 06 00 8A 92 EC FD 74 E9 C5 00 09 16 B1 CD 35 67 [22:18:03]CheckFolder [22:18:03]dirname=/storage/ofd_packets [22:18:03]CheckFolder done [22:18:03]ProducePacketName [22:18:03]name=ofd_packets/00164410 [22:18:03]NVStorageSaveData ofd_packets/00164410 [22:18:03]File name is /storage/ofd_packets/00164410 [22:18:03]Write 301 bytes [22:18:03]NVStorageSaveData done [22:18:03]OFDSenderStorePacket done [22:18:03]KKMCreateOFDPacket done [22:18:03]NVStorageSaveData kkm_last_timestamp [22:18:03]File name is /storage/kkm_last_timestamp [22:18:03]Write 4 bytes [22:18:03]NVStorageSaveData done [22:18:03]ExternCall_PrintAddStr [22:18:03]wPrintStart [22:18:03]Write to MH i2c: 01 00 00 C9 02 CB [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: 01 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: 01 07 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [22:18:03]RasterBufferAndPrint [22:18:03]line Счет N : (1)458498 [22:18:03]line ИНН: 02508201610067 [22:18:03]line Контрольно-Кассовый Чек [22:18:03]line ПРОДАЖА [22:18:03]line ТРК (МРК, ГНК) : 22 [22:18:03]line Товар: 2710124130 [22:18:03]line Аи-92-К-5 [22:18:03]line 7.600 * 65.80 [22:18:03]line = 500.08 [22:18:03]line НДС 12% НСП 1% [22:18:03]line > о реализуемом товаре [22:18:03]line ОКРУГЛЕНИЕ: -0.08 [22:18:03]line ИТОГО: 500.00 [22:18:03]line Внесено: 500.00 [22:18:03]line СДАЧА: 0.00 [22:18:03]line НСП 1% : 4.42 [22:18:03]line НДС 12% : 53.11 [22:18:03]line Наличными: 500.00 [22:18:03]line Безнал.: 0.00 [22:18:03]line Место: АЗС № 72 "Партнер Нефть" [22:18:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:18:03]line СНО: Общий режим [22:18:03]line Чек 331 12.07.2024 22:18 [22:18:03]line Смена: 445 ФФД: 1.0 [22:18:03]line ЗНМ: 0300000160 [22:18:03]line РНМ: 0000000000090829 [22:18:03]line Версия ККМ: 001 [22:18:03]line ФМ: 0000000000874718 [22:18:03]line ФД: 164410 [22:18:03]line ФПД: 152363645891817 [22:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T221802&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164410&fm=152363645891817&tin=02508201610067®Number=0000000000090829&sum=50000 [22:18:03]OFD Sender: Processing packet 164410 [packets to send 104, broken 103] [22:18:03]ProducePacketName [22:18:03]name=ofd_packets/00164410 [22:18:03]OFD Sender: To server: pG, [22:18:03]CommunicateWithHost lk.salyk.kg:30040 [22:18:03]ConnectInit lk.salyk.kg [22:18:03]written 0, free lines is 4095 [22:18:03]Connected sock=10 [22:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 F5 07 01 2D 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4B 01 00 00 F4 03 04 00 9A AB 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 82 02 00 35 04 06 00 8A 92 EC FD 74 E9 C5 00 09 16 B1 CD 35 67 [22:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 30 FF 47 00 6B 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 34 37 31 38 10 04 04 00 3A 82 02 00 F4 03 04 00 2D 52 91 66 B6 04 01 00 00 86 41 89 91 BE EA 24 DC [22:18:03]CommunicateWithHost err = 0 [22:18:03]CheckOFDResponse [22:18:03]1017 (14) - 77093643461234 [22:18:03]1041 (16) - 0000000000874718 [22:18:03]1040 (4) - 164410 [22:18:03]1012 (4) - 12.07.2024 15:56 [22:18:03]1206 (1) - 0 [22:18:03]OFD Sender: Remove packet 164410 [22:18:03]ProducePacketName [22:18:03]name=ofd_packets/00164410 [22:18:03]NVStorageDeleteData [22:18:03]Write to MH i2c: 01 00 00 F3 02 F5 [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: 01 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: 01 07 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: 01 07 00 F3 02 00 00 00 00 00 F2 0C FA [22:18:03]RasterBufferAndPrint [22:18:03]line [22:18:03]line [22:18:03]line [22:18:03]line [22:18:03]line [22:18:03]written 0, free lines is 3321 [22:18:03]MH_Cut [22:18:03]Write to MH i2c: D1 01 00 FA 02 01 CE [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: D1 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: D1 01 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: D1 01 00 FA 02 00 CD [22:18:03]Write to MH i2c: 01 00 00 FB 02 FD [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:04]OFD Sender: No OFD packet to send [22:18:04]*** Cut start [22:18:04]*** Partial cut [22:18:04]*** CUTSNS_PIN = 1 [22:18:04]*** CUTSNS_PIN = 0 [22:18:04]*** Brake cut motor [22:18:05]Read from MH i2c: 01 [22:18:05]MH_I2C_Read... [22:18:05]Read from MH i2c: 01 07 00 [22:18:05]MH_I2C_Read... [22:18:05]*** Stop cut motor [22:18:05]*** Cut end [22:18:05]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [22:18:05]process_action close_receipt done [22:18:05]requested_data is exist [22:18:05]produce_requested_data [22:18:05]requested_item fm.sn is exist - process it [22:18:05]wFMCommunicate request_size=4 [22:18:05]MH_SAM_APDU [22:18:05]CAPDU: 80 11 00 00 [22:18:05]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [22:18:05]Write i2c OK [22:18:05]MH_I2C_Read... [22:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:05]Read from MH i2c: E2 [22:18:05]MH_I2C_Read... [22:18:05]Read from MH i2c: E2 17 00 [22:18:05]MH_I2C_Read... [22:18:05]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CE [22:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:18:05]wFMCommunicate OK [22:18:05]requested_item fd.num is exist - process it [22:18:05]SAM_PROTO_GetFieldsCounters [22:18:05]wFMCommunicate request_size=4 [22:18:05]MH_SAM_APDU [22:18:05]CAPDU: 80 13 00 00 [22:18:05]Write to MH i2c: E2 08 00 FD 02 80 13 00 00 00 00 00 00 7B [22:18:05]Write i2c OK [22:18:05]MH_I2C_Read... [22:18:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:05]Read from MH i2c: E2 [22:18:05]MH_I2C_Read... [22:18:05]Read from MH i2c: E2 62 00 [22:18:05]MH_I2C_Read... [22:18:05]Read from MH i2c: E2 62 00 FD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [22:18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:05]wFMCommunicate OK [22:18:05]SAM_PROTO_GetFieldsCounters done [22:18:05]requested_item shift.num is exist - process it [22:18:05]requested_item shift.opened is exist - process it [22:18:05]req_shift_opened [22:18:05]FM_GetShiftState [22:18:05]SAM_PROTO_GetShiftState [22:18:05]wFMCommunicate request_size=4 [22:18:05]MH_SAM_APDU [22:18:05]CAPDU: 80 13 01 00 [22:18:05]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [22:18:05]Write i2c OK [22:18:05]MH_I2C_Read... [22:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:05]Read from MH i2c: E2 [22:18:05]MH_I2C_Read... [22:18:05]Read from MH i2c: E2 0E 00 [22:18:05]MH_I2C_Read... [22:18:05]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 C7 [22:18:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:18:05]wFMCommunicate OK [22:18:05]SAM_PROTO_GetShiftState done [22:18:05]FM_GetShiftState done [22:18:05]req_shift_opened done [22:18:05]requested_item shift.open_date is exist - process it [22:18:05]req_shift_open_date [22:18:05]req_shift_open_date done [22:18:05]produce_requested_data done [22:18:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164410,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:18:05]process_action_free close_receipt [22:18:05]json_value_free [22:18:05]json_value_free done [22:18:05]process_json_proto returns [22:18:05]Send response to host [22:18:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164410,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:18:05]free response buf [22:18:05]execute_script done [22:18:05]execute_script returns [22:18:05]free content buf [22:18:05]Sock 7.Close socket [22:18:05]Sock 7.Thread stoped [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:20]accept exits with 9 [22:21:20]New connection [22:21:20]New thread 3067632996 created [22:21:20]Thread 3067489636 joined [22:21:20]Waiting for new connection... [22:21:20] Sock 9.Parse request [22:21:20]Sock 9.Check first char [22:21:20]Sock 9.First char is OK [22:21:20]request: POST /json_proto HTTP/1.0 [22:21:20]Method: POST [22:21:20]URL: /json_proto [22:21:20]Method is POST - this is cgi request [22:21:20]url: /json_proto [22:21:20]query_string will be loaded in cgi processing [22:21:20]execute_cgi json_proto POST (null) [22:21:20]execute_cgi path=json_proto method=POST [22:21:20]POST find Content-Length [22:21:20]Host: 172.17.56.4:8080 [22:21:20]Content-Length: 677 [22:21:20]Content-Type: application/json [22:21:20] [22:21:20]POST finish read [22:21:20]Found Content-Length = 677 [22:21:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:20]execute_script... [22: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)458499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:20]POST & json_proto [22:21:20]process_json_proto [22:21:20]json parsed OK: [22:21:20]protocol is kg_v1.0 [22:21:20]action value=close_receipt [22:21:20]process_action close_receipt [22:21:20]cmd_close_receipt [22:21:20]MH_GetDate [22:21:20]Write to MH i2c: F0 00 00 FF 02 F0 [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: F0 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: F0 09 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: F0 09 00 FF 02 00 61 AC 91 66 C9 DC B2 64 B8 [22:21:20]GetLastDocTimeStamp 1720822682 [22:21:20]current date 1720822881 [22:21:20]FM_GetShiftState [22:21:20]SAM_PROTO_GetShiftState [22:21:20]wFMCommunicate request_size=4 [22:21:20]MH_SAM_APDU [22:21:20]CAPDU: 80 13 01 00 [22:21:20]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:20]Read from MH i2c: E2 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 0E 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 CA [22:21:20]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:21:20]wFMCommunicate OK [22:21:20]SAM_PROTO_GetShiftState done [22:21:20]FM_GetShiftState done [22:21:20]opened in 1720744654 [22:21:20]opened+sec_in_day 1720831054 [22:21:20]quantity*price = 50008 [22:21:20]sum+1 = 50009 [22:21:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 332 12.07.2024 22:21 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164411 ФПД: 96370494419367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164411&fm=96370494419367&tin=02508201610067®Number=0000000000090829&sum=50000 [22:21:21]StoreToDocumentArchive [22:21:21]shift 445 fd 164411 [22:21:21]save to /storage/0445/doc_00164411 [22:21:21]save last doc name /storage/0445/doc_00164411 to /storage/kkm_last_doc_name [22:21:21]save OK [22:21:21]Clear old archive folders... [22:21:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:21:21]tlvbuf is 00CA7E80 [22:21:21]SAM_PROTO_ClearQueue [22:21:21]wFMCommunicate request_size=4 [22:21:21]MH_SAM_APDU [22:21:21]CAPDU: 80 09 00 00 [22:21:21]Write to MH i2c: E2 08 00 0D 03 80 09 00 00 00 00 00 00 82 [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:21]Read from MH i2c: E2 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 03 00 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [22:21:21]RAPDU: 90 00 [22:21:21]wFMCommunicate OK [22:21:21]SAM_PROTO_ClearQueue done [22:21:21]KKMCreateOFDPacket [22:21:21]OFDProtocolAddRootSTLVToBuf [22:21:21]FM_MakeSignedData [22:21:21]FM_MakeSignedData [22:21:21]SAM_PROTO_SignData [22:21:21]wFMCommunicate request_size=4 [22:21:21]MH_SAM_APDU [22:21:21]CAPDU: 80 0D 01 02 [22:21:21]Write to MH i2c: E2 08 00 0E 03 80 0D 01 02 00 00 00 00 8A [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:21]Read from MH i2c: E2 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 03 00 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [22:21:21]RAPDU: 90 00 [22:21:21]wFMCommunicate OK [22:21:21]wFMCommunicate request_size=255 [22:21:21]MH_SAM_APDU [22:21: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4C 01 00 00 F4 03 04 00 61 AC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 82 02 00 35 04 06 00 57 [22:21:21]Write to MH i2c: E2 02 01 0F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4C 01 00 00 F4 03 04 00 61 AC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 82 02 00 35 04 06 00 57 00 00 28 [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:21]Read from MH i2c: E2 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 03 00 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [22:21:21]RAPDU: 90 00 [22:21:21]wFMCommunicate OK [22:21:21]wFMCommunicate request_size=10 [22:21:21]MH_SAM_APDU [22:21:21]CAPDU: 80 0D 02 02 05 A6 01 16 31 A7 [22:21:21]Write to MH i2c: E2 0D 00 10 03 80 0D 02 02 05 00 A6 01 16 31 A7 00 00 2C [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:21]Read from MH i2c: E2 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 03 00 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [22:21:21]RAPDU: 90 00 [22:21:21]wFMCommunicate OK [22:21:21]wFMCommunicate request_size=4 [22:21:21]MH_SAM_APDU [22:21:21]CAPDU: 80 0D 03 02 [22:21:21]Write to MH i2c: E2 08 00 11 03 80 0D 03 02 00 00 00 00 8F [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:21]Read from MH i2c: E2 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 0B 00 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 0B 00 11 03 00 07 64 E8 02 F9 12 1C 24 90 00 30 [22:21:21]RAPDU: 07 64 E8 02 F9 12 1C 24 90 00 [22:21:21]wFMCommunicate OK [22:21:21]SAM_PROTO_SignData done [22:21:21]FM_MakeSignedData done [22:21:21]CreateOFDProtocolMessage [22:21:21]wFMCommunicate request_size=4 [22:21:21]MH_SAM_APDU [22:21:21]CAPDU: 80 11 00 00 [22:21:21]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:22]Read from MH i2c: E2 [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: E2 17 00 [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [22:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:21:22]wFMCommunicate OK [22:21:22]CreateOFDProtocolMessage done [22:21:22]OFDSenderStorePacket 164411 [22:21:22]StoreOFDPacket docnum=164411 [22:21:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A A0 07 01 23 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4C 01 00 00 F4 03 04 00 61 AC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 82 02 00 35 04 06 00 57 A6 01 16 31 A7 07 64 E8 02 F9 12 1C 24 [22:21:22]CheckFolder [22:21:22]dirname=/storage/ofd_packets [22:21:22]CheckFolder done [22:21:22]ProducePacketName [22:21:22]name=ofd_packets/00164411 [22:21:22]NVStorageSaveData ofd_packets/00164411 [22:21:22]File name is /storage/ofd_packets/00164411 [22:21:22]Write 301 bytes [22:21:22]NVStorageSaveData done [22:21:22]OFDSenderStorePacket done [22:21:22]KKMCreateOFDPacket done [22:21:22]NVStorageSaveData kkm_last_timestamp [22:21:22]File name is /storage/kkm_last_timestamp [22:21:22]Write 4 bytes [22:21:22]NVStorageSaveData done [22:21:22]ExternCall_PrintAddStr [22:21:22]wPrintStart [22:21:22]Write to MH i2c: 01 00 00 13 03 16 [22:21:22]Write i2c OK [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: 01 [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: 01 07 00 [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: 01 07 00 13 03 00 00 00 00 00 FF 0F 2B [22:21:22]RasterBufferAndPrint [22:21:22]line Счет N : (1)458499 [22:21:22]line ИНН: 02508201610067 [22:21:22]line Контрольно-Кассовый Чек [22:21:22]line ПРОДАЖА [22:21:22]line ТРК (МРК, ГНК) : 12 [22:21:22]line Товар: 2710124130 [22:21:22]line Аи-92-К-5 [22:21:22]line 7.600 * 65.80 [22:21:22]line = 500.08 [22:21:22]line НДС 12% НСП 1% [22:21:22]line > о реализуемом товаре [22:21:22]line ОКРУГЛЕНИЕ: -0.08 [22:21:22]line ИТОГО: 500.00 [22:21:22]line Внесено: 500.00 [22:21:22]line СДАЧА: 0.00 [22:21:22]line НСП 1% : 4.42 [22:21:22]line НДС 12% : 53.11 [22:21:22]line Наличными: 500.00 [22:21:22]line Безнал.: 0.00 [22:21:22]line Место: АЗС № 72 "Партнер Нефть" [22:21:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:21:22]line СНО: Общий режим [22:21:22]line Чек 332 12.07.2024 22:21 [22:21:22]line Смена: 445 ФФД: 1.0 [22:21:22]line ЗНМ: 0300000160 [22:21:22]line РНМ: 0000000000090829 [22:21:22]line Версия ККМ: 001 [22:21:22]line ФМ: 0000000000874718 [22:21:22]line ФД: 164411 [22:21:22]line ФПД: 96370494419367 [22:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164411&fm=96370494419367&tin=02508201610067®Number=0000000000090829&sum=50000 [22:21:22]OFD Sender: Processing packet 164411 [packets to send 104, broken 103] [22:21:22]ProducePacketName [22:21:22]name=ofd_packets/00164411 [22:21:22]OFD Sender: To server: pG, [22:21:22]CommunicateWithHost lk.salyk.kg:30040 [22:21:22]ConnectInit lk.salyk.kg [22:21:22]written 0, free lines is 4095 [22:21:22]Connected sock=10 [22:21:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A A0 07 01 23 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4C 01 00 00 F4 03 04 00 61 AC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 82 02 00 35 04 06 00 57 A6 01 16 31 A7 07 64 E8 02 F9 12 1C 24 [22:21:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E2 05 47 00 0F 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 34 37 31 38 10 04 04 00 3B 82 02 00 F4 03 04 00 F4 52 91 66 B6 04 01 00 00 76 A6 6A E5 2E 0D 97 48 [22:21:22]CommunicateWithHost err = 0 [22:21:22]CheckOFDResponse [22:21:22]1017 (14) - 77093643461234 [22:21:22]1041 (16) - 0000000000874718 [22:21:22]1040 (4) - 164411 [22:21:22]1012 (4) - 12.07.2024 15:59 [22:21:22]1206 (1) - 0 [22:21:22]OFD Sender: Remove packet 164411 [22:21:22]ProducePacketName [22:21:22]name=ofd_packets/00164411 [22:21:22]NVStorageDeleteData [22:21:22]Write to MH i2c: 01 00 00 3D 03 40 [22:21:22]Write i2c OK [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: 01 [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: 01 07 00 [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 F1 0C 44 [22:21:22]RasterBufferAndPrint [22:21:22]line [22:21:22]line [22:21:22]line [22:21:22]line [22:21:22]line [22:21:22]written 0, free lines is 3320 [22:21:22]MH_Cut [22:21:22]Write to MH i2c: D1 01 00 44 03 01 19 [22:21:22]Write i2c OK [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: D1 [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: D1 01 00 [22:21:22]MH_I2C_Read... [22:21:22]Read from MH i2c: D1 01 00 44 03 00 18 [22:21:22]Write to MH i2c: 01 00 00 45 03 48 [22:21:22]Write i2c OK [22:21:22]MH_I2C_Read... [22:21:23]OFD Sender: No OFD packet to send [22:21:23]*** Cut start [22:21:23]*** Partial cut [22:21:23]*** CUTSNS_PIN = 1 [22:21:23]*** CUTSNS_PIN = 0 [22:21:23]*** Brake cut motor [22:21:24]Read from MH i2c: 01 [22:21:24]MH_I2C_Read... [22:21:24]*** Stop cut motor [22:21:24]*** Cut end [22:21:24]Read from MH i2c: 01 07 00 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [22:21:24]process_action close_receipt done [22:21:24]requested_data is exist [22:21:24]produce_requested_data [22:21:24]requested_item fm.sn is exist - process it [22:21:24]wFMCommunicate request_size=4 [22:21:24]MH_SAM_APDU [22:21:24]CAPDU: 80 11 00 00 [22:21:24]Write to MH i2c: E2 08 00 46 03 80 11 00 00 00 00 00 00 C3 [22:21:24]Write i2c OK [22:21:24]MH_I2C_Read... [22:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:24]Read from MH i2c: E2 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 17 00 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 17 00 46 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 19 [22:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:21:24]wFMCommunicate OK [22:21:24]requested_item fd.num is exist - process it [22:21:24]SAM_PROTO_GetFieldsCounters [22:21:24]wFMCommunicate request_size=4 [22:21:24]MH_SAM_APDU [22:21:24]CAPDU: 80 13 00 00 [22:21:24]Write to MH i2c: E2 08 00 47 03 80 13 00 00 00 00 00 00 C6 [22:21:24]Write i2c OK [22:21:24]MH_I2C_Read... [22:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:24]Read from MH i2c: E2 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 62 00 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 62 00 47 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:24]wFMCommunicate OK [22:21:24]SAM_PROTO_GetFieldsCounters done [22:21:24]requested_item shift.num is exist - process it [22:21:24]requested_item shift.opened is exist - process it [22:21:24]req_shift_opened [22:21:24]FM_GetShiftState [22:21:24]SAM_PROTO_GetShiftState [22:21:24]wFMCommunicate request_size=4 [22:21:24]MH_SAM_APDU [22:21:24]CAPDU: 80 13 01 00 [22:21:24]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [22:21:24]Write i2c OK [22:21:24]MH_I2C_Read... [22:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:24]Read from MH i2c: E2 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 0E 00 [22:21:24]MH_I2C_Read... [22:21:24]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 12 [22:21:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:21:24]wFMCommunicate OK [22:21:24]SAM_PROTO_GetShiftState done [22:21:24]FM_GetShiftState done [22:21:24]req_shift_opened done [22:21:24]requested_item shift.open_date is exist - process it [22:21:24]req_shift_open_date [22:21:24]req_shift_open_date done [22:21:24]produce_requested_data done [22:21:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164411,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:21:24]process_action_free close_receipt [22:21:24]json_value_free [22:21:24]json_value_free done [22:21:24]process_json_proto returns [22:21:24]Send response to host [22:21:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164411,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:21:24]free response buf [22:21:24]execute_script done [22:21:24]execute_script returns [22:21:24]free content buf [22:21:24]Sock 9.Close socket [22:21:24]Sock 9.Thread stoped [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:50]accept exits with 7 [22:22:50]New connection [22:22:50]New thread 3067489636 created [22:22:50]Thread 3067632996 joined [22:22:50]Waiting for new connection... [22:22:50] Sock 7.Parse request [22:22:50]Sock 7.Check first char [22:22:50]Sock 7.First char is OK [22:22:50]request: POST /json_proto HTTP/1.0 [22:22:50]Method: POST [22:22:50]URL: /json_proto [22:22:50]Method is POST - this is cgi request [22:22:50]url: /json_proto [22:22:50]query_string will be loaded in cgi processing [22:22:50]execute_cgi json_proto POST (null) [22:22:50]execute_cgi path=json_proto method=POST [22:22:50]POST find Content-Length [22:22:50]Host: 172.17.56.4:8080 [22:22:50]Content-Length: 678 [22:22:50]Content-Type: application/json [22:22:50] [22:22:50]POST finish read [22:22:50]Found Content-Length = 678 [22:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:50]execute_script... [22:22: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)458500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:50]POST & json_proto [22:22:50]process_json_proto [22:22:50]json parsed OK: [22:22:50]protocol is kg_v1.0 [22:22:50]action value=close_receipt [22:22:50]process_action close_receipt [22:22:50]cmd_close_receipt [22:22:50]MH_GetDate [22:22:50]Write to MH i2c: F0 00 00 49 03 3B [22:22:50]Write i2c OK [22:22:50]MH_I2C_Read... [22:22:50]Read from MH i2c: F0 [22:22:50]MH_I2C_Read... [22:22:50]Read from MH i2c: F0 09 00 [22:22:50]MH_I2C_Read... [22:22:50]Read from MH i2c: F0 09 00 49 03 00 BB AC 91 66 C9 DC B2 64 5D [22:22:50]GetLastDocTimeStamp 1720822881 [22:22:50]current date 1720822971 [22:22:50]FM_GetShiftState [22:22:50]SAM_PROTO_GetShiftState [22:22:50]wFMCommunicate request_size=4 [22:22:50]MH_SAM_APDU [22:22:50]CAPDU: 80 13 01 00 [22:22:50]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [22:22:50]Write i2c OK [22:22:50]MH_I2C_Read... [22:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:50]Read from MH i2c: E2 [22:22:50]MH_I2C_Read... [22:22:50]Read from MH i2c: E2 0E 00 [22:22:50]MH_I2C_Read... [22:22:50]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 14 [22:22:50]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:22:50]wFMCommunicate OK [22:22:50]SAM_PROTO_GetShiftState done [22:22:50]FM_GetShiftState done [22:22:50]opened in 1720744654 [22:22:50]opened+sec_in_day 1720831054 [22:22:50]quantity*price = 80012 [22:22:50]sum+1 = 80014 [22:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 333 12.07.2024 22:22 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164412 ФПД: 121935596813114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222251&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164412&fm=121935596813114&tin=02508201610067®Number=0000000000090829&sum=80000 [22:22:51]StoreToDocumentArchive [22:22:51]shift 445 fd 164412 [22:22:51]save to /storage/0445/doc_00164412 [22:22:51]save last doc name /storage/0445/doc_00164412 to /storage/kkm_last_doc_name [22:22:51]save OK [22:22:51]Clear old archive folders... [22:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:22:51]tlvbuf is 00CB5940 [22:22:51]SAM_PROTO_ClearQueue [22:22:51]wFMCommunicate request_size=4 [22:22:51]MH_SAM_APDU [22:22:51]CAPDU: 80 09 00 00 [22:22:51]Write to MH i2c: E2 08 00 57 03 80 09 00 00 00 00 00 00 CC [22:22:51]Write i2c OK [22:22:51]MH_I2C_Read... [22:22:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:52]Read from MH i2c: E2 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 03 00 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [22:22:52]RAPDU: 90 00 [22:22:52]wFMCommunicate OK [22:22:52]SAM_PROTO_ClearQueue done [22:22:52]KKMCreateOFDPacket [22:22:52]OFDProtocolAddRootSTLVToBuf [22:22:52]FM_MakeSignedData [22:22:52]FM_MakeSignedData [22:22:52]SAM_PROTO_SignData [22:22:52]wFMCommunicate request_size=4 [22:22:52]MH_SAM_APDU [22:22:52]CAPDU: 80 0D 01 02 [22:22:52]Write to MH i2c: E2 08 00 58 03 80 0D 01 02 00 00 00 00 D4 [22:22:52]Write i2c OK [22:22:52]MH_I2C_Read... [22:22:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:52]Read from MH i2c: E2 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 03 00 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [22:22:52]RAPDU: 90 00 [22:22:52]wFMCommunicate OK [22:22:52]wFMCommunicate request_size=255 [22:22:52]MH_SAM_APDU [22:22: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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 4D 01 00 00 F4 03 04 00 BB AC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 82 02 00 35 04 06 00 6E [22:22:52]Write to MH i2c: E2 02 01 59 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 4D 01 00 00 F4 03 04 00 BB AC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 82 02 00 35 04 06 00 6E 00 00 48 [22:22:52]Write i2c OK [22:22:52]MH_I2C_Read... [22:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:52]Read from MH i2c: E2 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 03 00 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [22:22:52]RAPDU: 90 00 [22:22:52]wFMCommunicate OK [22:22:52]wFMCommunicate request_size=10 [22:22:52]MH_SAM_APDU [22:22:52]CAPDU: 80 0D 02 02 05 E6 57 EE FB 3A [22:22:52]Write to MH i2c: E2 0D 00 5A 03 80 0D 02 02 05 00 E6 57 EE FB 3A 00 00 41 [22:22:52]Write i2c OK [22:22:52]MH_I2C_Read... [22:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:52]Read from MH i2c: E2 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 03 00 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [22:22:52]RAPDU: 90 00 [22:22:52]wFMCommunicate OK [22:22:52]wFMCommunicate request_size=4 [22:22:52]MH_SAM_APDU [22:22:52]CAPDU: 80 0D 03 02 [22:22:52]Write to MH i2c: E2 08 00 5B 03 80 0D 03 02 00 00 00 00 D9 [22:22:52]Write i2c OK [22:22:52]MH_I2C_Read... [22:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:52]Read from MH i2c: E2 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 0B 00 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 0B 00 5B 03 00 75 39 54 DF DC 73 72 D2 90 00 4E [22:22:52]RAPDU: 75 39 54 DF DC 73 72 D2 90 00 [22:22:52]wFMCommunicate OK [22:22:52]SAM_PROTO_SignData done [22:22:52]FM_MakeSignedData done [22:22:52]CreateOFDProtocolMessage [22:22:52]wFMCommunicate request_size=4 [22:22:52]MH_SAM_APDU [22:22:52]CAPDU: 80 11 00 00 [22:22:52]Write to MH i2c: E2 08 00 5C 03 80 11 00 00 00 00 00 00 D9 [22:22:52]Write i2c OK [22:22:52]MH_I2C_Read... [22:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:52]Read from MH i2c: E2 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 17 00 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: E2 17 00 5C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [22:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:22:52]wFMCommunicate OK [22:22:52]CreateOFDProtocolMessage done [22:22:52]OFDSenderStorePacket 164412 [22:22:52]StoreOFDPacket docnum=164412 [22:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB E3 07 01 F7 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 4D 01 00 00 F4 03 04 00 BB AC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 82 02 00 35 04 06 00 6E E6 57 EE FB 3A 75 39 54 DF DC 73 72 D2 [22:22:52]CheckFolder [22:22:52]dirname=/storage/ofd_packets [22:22:52]CheckFolder done [22:22:52]ProducePacketName [22:22:52]name=ofd_packets/00164412 [22:22:52]NVStorageSaveData ofd_packets/00164412 [22:22:52]File name is /storage/ofd_packets/00164412 [22:22:52]Write 301 bytes [22:22:52]NVStorageSaveData done [22:22:52]OFDSenderStorePacket done [22:22:52]KKMCreateOFDPacket done [22:22:52]NVStorageSaveData kkm_last_timestamp [22:22:52]File name is /storage/kkm_last_timestamp [22:22:52]Write 4 bytes [22:22:52]NVStorageSaveData done [22:22:52]ExternCall_PrintAddStr [22:22:52]wPrintStart [22:22:52]Write to MH i2c: 01 00 00 5D 03 60 [22:22:52]Write i2c OK [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: 01 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: 01 07 00 [22:22:52]MH_I2C_Read... [22:22:52]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 FF 0F 75 [22:22:52]RasterBufferAndPrint [22:22:52]line Счет N : (1)458500 [22:22:52]line ИНН: 02508201610067 [22:22:52]line Контрольно-Кассовый Чек [22:22:52]line ПРОДАЖА [22:22:52]line ТРК (МРК, ГНК) : 22 [22:22:52]line Товар: 2710124130 [22:22:52]line Аи-92-К-5 [22:22:52]line 12.160 * 65.80 [22:22:52]line = 800.13 [22:22:52]line НДС 12% НСП 1% [22:22:52]line > о реализуемом товаре [22:22:52]line ОКРУГЛЕНИЕ: -0.13 [22:22:52]line ИТОГО: 800.00 [22:22:52]line Внесено: 800.00 [22:22:52]line СДАЧА: 0.00 [22:22:52]line НСП 1% : 7.08 [22:22:52]line НДС 12% : 84.97 [22:22:52]line Наличными: 800.00 [22:22:52]line Безнал.: 0.00 [22:22:52]line Место: АЗС № 72 "Партнер Нефть" [22:22:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:22:52]line СНО: Общий режим [22:22:52]line Чек 333 12.07.2024 22:22 [22:22:52]line Смена: 445 ФФД: 1.0 [22:22:52]line ЗНМ: 0300000160 [22:22:52]line РНМ: 0000000000090829 [22:22:52]line Версия ККМ: 001 [22:22:52]line ФМ: 0000000000874718 [22:22:52]line ФД: 164412 [22:22:52]line ФПД: 121935596813114 [22:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222251&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164412&fm=121935596813114&tin=02508201610067®Number=0000000000090829&sum=80000 [22:22:52]OFD Sender: Processing packet 164412 [packets to send 104, broken 103] [22:22:52]ProducePacketName [22:22:52]name=ofd_packets/00164412 [22:22:52]OFD Sender: To server: pG, [22:22:52]CommunicateWithHost lk.salyk.kg:30040 [22:22:52]ConnectInit lk.salyk.kg [22:22:52]written 0, free lines is 4095 [22:22:52]Connected sock=10 [22:22:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB E3 07 01 F7 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 4D 01 00 00 F4 03 04 00 BB AC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 82 02 00 35 04 06 00 6E E6 57 EE FB 3A 75 39 54 DF DC 73 72 D2 [22:22:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 90 DE 47 00 D3 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 34 37 31 38 10 04 04 00 3C 82 02 00 F4 03 04 00 4F 53 91 66 B6 04 01 00 00 7D 9E BF DA 5F 1E 43 19 [22:22:53]CommunicateWithHost err = 0 [22:22:53]CheckOFDResponse [22:22:53]1017 (14) - 77093643461234 [22:22:53]1041 (16) - 0000000000874718 [22:22:53]1040 (4) - 164412 [22:22:53]1012 (4) - 12.07.2024 16:01 [22:22:53]1206 (1) - 0 [22:22:53]OFD Sender: Remove packet 164412 [22:22:53]ProducePacketName [22:22:53]name=ofd_packets/00164412 [22:22:53]NVStorageDeleteData [22:22:53]Write to MH i2c: 01 00 00 87 03 8A [22:22:53]Write i2c OK [22:22:53]MH_I2C_Read... [22:22:53]Read from MH i2c: 01 [22:22:53]MH_I2C_Read... [22:22:53]Read from MH i2c: 01 07 00 [22:22:53]MH_I2C_Read... [22:22:53]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 0A 0D A8 [22:22:53]RasterBufferAndPrint [22:22:53]line [22:22:53]line [22:22:53]line [22:22:53]line [22:22:53]line [22:22:53]written 0, free lines is 3344 [22:22:53]MH_Cut [22:22:53]Write to MH i2c: D1 01 00 8E 03 01 63 [22:22:53]Write i2c OK [22:22:53]MH_I2C_Read... [22:22:53]Read from MH i2c: D1 [22:22:53]MH_I2C_Read... [22:22:53]Read from MH i2c: D1 01 00 [22:22:53]MH_I2C_Read... [22:22:53]Read from MH i2c: D1 01 00 8E 03 00 62 [22:22:53]Write to MH i2c: 01 00 00 8F 03 92 [22:22:53]Write i2c OK [22:22:53]MH_I2C_Read... [22:22:53]OFD Sender: No OFD packet to send [22:22:53]*** Cut start [22:22:53]*** Partial cut [22:22:53]*** CUTSNS_PIN = 1 [22:22:54]*** CUTSNS_PIN = 0 [22:22:54]*** Brake cut motor [22:22:54]Read from MH i2c: 01 [22:22:54]MH_I2C_Read... [22:22:54]*** Stop cut motor [22:22:54]*** Cut end [22:22:54]Read from MH i2c: 01 07 00 [22:22:54]MH_I2C_Read... [22:22:54]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [22:22:54]process_action close_receipt done [22:22:54]requested_data is exist [22:22:54]produce_requested_data [22:22:54]requested_item fm.sn is exist - process it [22:22:54]wFMCommunicate request_size=4 [22:22:54]MH_SAM_APDU [22:22:54]CAPDU: 80 11 00 00 [22:22:54]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [22:22:54]Write i2c OK [22:22:54]MH_I2C_Read... [22:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:54]Read from MH i2c: E2 [22:22:54]MH_I2C_Read... [22:22:54]Read from MH i2c: E2 17 00 [22:22:54]MH_I2C_Read... [22:22:54]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 63 [22:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:22:54]wFMCommunicate OK [22:22:54]requested_item fd.num is exist - process it [22:22:54]SAM_PROTO_GetFieldsCounters [22:22:54]wFMCommunicate request_size=4 [22:22:54]MH_SAM_APDU [22:22:54]CAPDU: 80 13 00 00 [22:22:54]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [22:22:54]Write i2c OK [22:22:54]MH_I2C_Read... [22:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:54]Read from MH i2c: E2 [22:22:54]MH_I2C_Read... [22:22:54]Read from MH i2c: E2 62 00 [22:22:54]MH_I2C_Read... [22:22:54]Read from MH i2c: E2 62 00 91 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [22:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:22:54]wFMCommunicate OK [22:22:54]SAM_PROTO_GetFieldsCounters done [22:22:54]requested_item shift.num is exist - process it [22:22:54]requested_item shift.opened is exist - process it [22:22:54]req_shift_opened [22:22:54]FM_GetShiftState [22:22:54]SAM_PROTO_GetShiftState [22:22:54]wFMCommunicate request_size=4 [22:22:54]MH_SAM_APDU [22:22:54]CAPDU: 80 13 01 00 [22:22:54]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [22:22:54]Write i2c OK [22:22:54]MH_I2C_Read... [22:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:54]Read from MH i2c: E2 [22:22:54]MH_I2C_Read... [22:22:54]Read from MH i2c: E2 0E 00 [22:22:54]MH_I2C_Read... [22:22:54]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5C [22:22:54]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:22:54]wFMCommunicate OK [22:22:54]SAM_PROTO_GetShiftState done [22:22:54]FM_GetShiftState done [22:22:54]req_shift_opened done [22:22:54]requested_item shift.open_date is exist - process it [22:22:54]req_shift_open_date [22:22:54]req_shift_open_date done [22:22:54]produce_requested_data done [22:22:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164412,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:22:54]process_action_free close_receipt [22:22:54]json_value_free [22:22:54]json_value_free done [22:22:54]process_json_proto returns [22:22:54]Send response to host [22:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164412,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:22:54]free response buf [22:22:54]execute_script done [22:22:54]execute_script returns [22:22:54]free content buf [22:22:54]Sock 7.Close socket [22:22:54]Sock 7.Thread stoped [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:24]accept exits with 9 [22:25:24]New connection [22:25:24]New thread 3067632996 created [22:25:24]Thread 3067489636 joined [22:25:24]Waiting for new connection... [22:25:24] Sock 9.Parse request [22:25:24]Sock 9.Check first char [22:25:24]Sock 9.First char is OK [22:25:24]request: POST /json_proto HTTP/1.0 [22:25:24]Method: POST [22:25:24]URL: /json_proto [22:25:24]Method is POST - this is cgi request [22:25:24]url: /json_proto [22:25:24]query_string will be loaded in cgi processing [22:25:24]execute_cgi json_proto POST (null) [22:25:24]execute_cgi path=json_proto method=POST [22:25:24]POST find Content-Length [22:25:24]Host: 172.17.56.4:8080 [22:25:24]Content-Length: 677 [22:25:24]Content-Type: application/json [22:25:24] [22:25:24]POST finish read [22:25:24]Found Content-Length = 677 [22:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:24]execute_script... [22:25: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)458501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:24]POST & json_proto [22:25:24]process_json_proto [22:25:24]json parsed OK: [22:25:24]protocol is kg_v1.0 [22:25:24]action value=close_receipt [22:25:24]process_action close_receipt [22:25:24]cmd_close_receipt [22:25:24]MH_GetDate [22:25:24]Write to MH i2c: F0 00 00 93 03 85 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: F0 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: F0 09 00 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: F0 09 00 93 03 00 55 AD 91 66 C9 DC B2 64 42 [22:25:24]GetLastDocTimeStamp 1720822971 [22:25:24]current date 1720823125 [22:25:24]FM_GetShiftState [22:25:24]SAM_PROTO_GetShiftState [22:25:24]wFMCommunicate request_size=4 [22:25:24]MH_SAM_APDU [22:25:24]CAPDU: 80 13 01 00 [22:25:24]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:24]Read from MH i2c: E2 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: E2 0E 00 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 5E [22:25:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:25:24]wFMCommunicate OK [22:25:24]SAM_PROTO_GetShiftState done [22:25:24]FM_GetShiftState done [22:25:24]opened in 1720744654 [22:25:24]opened+sec_in_day 1720831054 [22:25:24]quantity*price = 13028 [22:25:24]sum+1 = 13029 [22:25:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.83 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 334 12.07.2024 22:25 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164413 ФПД: 215975526467358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222525&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164413&fm=215975526467358&tin=02508201610067®Number=0000000000090829&sum=13000 [22:25:25]StoreToDocumentArchive [22:25:25]shift 445 fd 164413 [22:25:25]save to /storage/0445/doc_00164413 [22:25:25]save last doc name /storage/0445/doc_00164413 to /storage/kkm_last_doc_name [22:25:25]save OK [22:25:25]Clear old archive folders... [22:25:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:25:25]tlvbuf is 00CB7250 [22:25:25]SAM_PROTO_ClearQueue [22:25:25]wFMCommunicate request_size=4 [22:25:25]MH_SAM_APDU [22:25:25]CAPDU: 80 09 00 00 [22:25:25]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [22:25:25]Write i2c OK [22:25:25]MH_I2C_Read... [22:25:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:25]Read from MH i2c: E2 [22:25:25]MH_I2C_Read... [22:25:25]Read from MH i2c: E2 03 00 [22:25:25]MH_I2C_Read... [22:25:25]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [22:25:25]RAPDU: 90 00 [22:25:25]wFMCommunicate OK [22:25:25]SAM_PROTO_ClearQueue done [22:25:25]KKMCreateOFDPacket [22:25:25]OFDProtocolAddRootSTLVToBuf [22:25:25]FM_MakeSignedData [22:25:25]FM_MakeSignedData [22:25:25]SAM_PROTO_SignData [22:25:25]wFMCommunicate request_size=4 [22:25:25]MH_SAM_APDU [22:25:25]CAPDU: 80 0D 01 02 [22:25:25]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [22:25:25]Write i2c OK [22:25:25]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]wFMCommunicate request_size=255 [22:25:26]MH_SAM_APDU [22:25: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 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 55 AD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 82 02 00 35 04 06 00 C4 [22:25:26]Write to MH i2c: E2 02 01 A3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 55 AD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 82 02 00 35 04 06 00 C4 00 00 32 [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]wFMCommunicate request_size=10 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 0D 02 02 05 6D B8 89 07 1E [22:25:26]Write to MH i2c: E2 0D 00 A4 03 80 0D 02 02 05 00 6D B8 89 07 1E 00 00 FE [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]wFMCommunicate request_size=4 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 0D 03 02 [22:25:26]Write to MH i2c: E2 08 00 A5 03 80 0D 03 02 00 00 00 00 23 [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 0B 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 0B 00 A5 03 00 42 1A 55 C2 64 43 54 BC 90 00 4E [22:25:26]RAPDU: 42 1A 55 C2 64 43 54 BC 90 00 [22:25:26]wFMCommunicate OK [22:25:26]SAM_PROTO_SignData done [22:25:26]FM_MakeSignedData done [22:25:26]CreateOFDProtocolMessage [22:25:26]wFMCommunicate request_size=4 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 11 00 00 [22:25:26]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 17 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [22:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:25:26]wFMCommunicate OK [22:25:26]CreateOFDProtocolMessage done [22:25:26]OFDSenderStorePacket 164413 [22:25:26]StoreOFDPacket docnum=164413 [22:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 17 07 01 21 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 55 AD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 82 02 00 35 04 06 00 C4 6D B8 89 07 1E 42 1A 55 C2 64 43 54 BC [22:25:26]CheckFolder [22:25:26]dirname=/storage/ofd_packets [22:25:26]CheckFolder done [22:25:26]ProducePacketName [22:25:26]name=ofd_packets/00164413 [22:25:26]NVStorageSaveData ofd_packets/00164413 [22:25:26]File name is /storage/ofd_packets/00164413 [22:25:26]Write 301 bytes [22:25:26]NVStorageSaveData done [22:25:26]OFDSenderStorePacket done [22:25:26]KKMCreateOFDPacket done [22:25:26]NVStorageSaveData kkm_last_timestamp [22:25:26]File name is /storage/kkm_last_timestamp [22:25:26]Write 4 bytes [22:25:26]NVStorageSaveData done [22:25:26]ExternCall_PrintAddStr [22:25:26]wPrintStart [22:25:26]Write to MH i2c: 01 00 00 A7 03 AA [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: 01 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: 01 07 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [22:25:26]RasterBufferAndPrint [22:25:26]line Счет N : (1)458501 [22:25:26]line ИНН: 02508201610067 [22:25:26]line Контрольно-Кассовый Чек [22:25:26]line ПРОДАЖА [22:25:26]line ТРК (МРК, ГНК) : 12 [22:25:26]line Товар: 2710124130 [22:25:26]line Аи-92-К-5 [22:25:26]line 1.980 * 65.80 [22:25:26]line = 130.28 [22:25:26]line НДС 12% НСП 1% [22:25:26]line > о реализуемом товаре [22:25:26]line ОКРУГЛЕНИЕ: -0.28 [22:25:26]line ИТОГО: 130.00 [22:25:26]line Внесено: 130.00 [22:25:26]line СДАЧА: 0.00 [22:25:26]line НСП 1% : 1.15 [22:25:26]line НДС 12% : 13.83 [22:25:26]line Наличными: 130.00 [22:25:26]line Безнал.: 0.00 [22:25:26]line Место: АЗС № 72 "Партнер Нефть" [22:25:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:25:26]line СНО: Общий режим [22:25:26]line Чек 334 12.07.2024 22:25 [22:25:26]line Смена: 445 ФФД: 1.0 [22:25:26]line ЗНМ: 0300000160 [22:25:26]line РНМ: 0000000000090829 [22:25:26]line Версия ККМ: 001 [22:25:26]line ФМ: 0000000000874718 [22:25:26]line ФД: 164413 [22:25:26]line ФПД: 215975526467358 [22:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222525&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164413&fm=215975526467358&tin=02508201610067®Number=0000000000090829&sum=13000 [22:25:26]OFD Sender: Processing packet 164413 [packets to send 104, broken 103] [22:25:26]ProducePacketName [22:25:26]name=ofd_packets/00164413 [22:25:26]OFD Sender: To server: pG, [22:25:26]CommunicateWithHost lk.salyk.kg:30040 [22:25:26]ConnectInit lk.salyk.kg [22:25:26]written 0, free lines is 4095 [22:25:26]Connected sock=10 [22:25:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 17 07 01 21 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 55 AD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 82 02 00 35 04 06 00 C4 6D B8 89 07 1E 42 1A 55 C2 64 43 54 BC [22:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3C A5 47 00 BD 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 34 37 31 38 10 04 04 00 3D 82 02 00 F4 03 04 00 E9 53 91 66 B6 04 01 00 00 0E E4 77 0A 39 9A 80 15 [22:25:27]CommunicateWithHost err = 0 [22:25:27]CheckOFDResponse [22:25:27]1017 (14) - 77093643461234 [22:25:27]1041 (16) - 0000000000874718 [22:25:27]1040 (4) - 164413 [22:25:27]1012 (4) - 12.07.2024 16:03 [22:25:27]1206 (1) - 0 [22:25:27]OFD Sender: Remove packet 164413 [22:25:27]ProducePacketName [22:25:27]name=ofd_packets/00164413 [22:25:27]NVStorageDeleteData [22:25:27]Write to MH i2c: 01 00 00 D1 03 D4 [22:25:27]Write i2c OK [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: 01 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: 01 07 00 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 07 0D EF [22:25:27]RasterBufferAndPrint [22:25:27]line [22:25:27]line [22:25:27]line [22:25:27]line [22:25:27]line [22:25:27]written 0, free lines is 3341 [22:25:27]MH_Cut [22:25:27]Write to MH i2c: D1 01 00 D8 03 01 AD [22:25:27]Write i2c OK [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: D1 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: D1 01 00 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: D1 01 00 D8 03 00 AC [22:25:27]Write to MH i2c: 01 00 00 D9 03 DC [22:25:27]Write i2c OK [22:25:27]MH_I2C_Read... [22:25:27]OFD Sender: No OFD packet to send [22:25:27]*** Cut start [22:25:27]*** Partial cut [22:25:27]*** CUTSNS_PIN = 1 [22:25:27]*** CUTSNS_PIN = 0 [22:25:28]*** Brake cut motor [22:25:28]Read from MH i2c: 01 [22:25:28]MH_I2C_Read... [22:25:28]*** Stop cut motor [22:25:28]*** Cut end [22:25:28]Read from MH i2c: 01 07 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [22:25:28]process_action close_receipt done [22:25:28]requested_data is exist [22:25:28]produce_requested_data [22:25:28]requested_item fm.sn is exist - process it [22:25:28]wFMCommunicate request_size=4 [22:25:28]MH_SAM_APDU [22:25:28]CAPDU: 80 11 00 00 [22:25:28]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:28]Read from MH i2c: E2 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 17 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [22:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:25:28]wFMCommunicate OK [22:25:28]requested_item fd.num is exist - process it [22:25:28]SAM_PROTO_GetFieldsCounters [22:25:28]wFMCommunicate request_size=4 [22:25:28]MH_SAM_APDU [22:25:28]CAPDU: 80 13 00 00 [22:25:28]Write to MH i2c: E2 08 00 DB 03 80 13 00 00 00 00 00 00 5A [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:28]Read from MH i2c: E2 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 62 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 62 00 DB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [22:25: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:28]wFMCommunicate OK [22:25:28]SAM_PROTO_GetFieldsCounters done [22:25:28]requested_item shift.num is exist - process it [22:25:28]requested_item shift.opened is exist - process it [22:25:28]req_shift_opened [22:25:28]FM_GetShiftState [22:25:28]SAM_PROTO_GetShiftState [22:25:28]wFMCommunicate request_size=4 [22:25:28]MH_SAM_APDU [22:25:28]CAPDU: 80 13 01 00 [22:25:28]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:28]Read from MH i2c: E2 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 0E 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A6 [22:25:28]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:25:28]wFMCommunicate OK [22:25:28]SAM_PROTO_GetShiftState done [22:25:28]FM_GetShiftState done [22:25:28]req_shift_opened done [22:25:28]requested_item shift.open_date is exist - process it [22:25:28]req_shift_open_date [22:25:28]req_shift_open_date done [22:25:28]produce_requested_data done [22:25:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164413,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:25:28]process_action_free close_receipt [22:25:28]json_value_free [22:25:28]json_value_free done [22:25:28]process_json_proto returns [22:25:28]Send response to host [22:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164413,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:25:28]free response buf [22:25:28]execute_script done [22:25:28]execute_script returns [22:25:28]free content buf [22:25:28]Sock 9.Close socket [22:25:28]Sock 9.Thread stoped [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:36]accept exits with 7 [22:27:36]New connection [22:27:36]New thread 3067489636 created [22:27:36]Thread 3067632996 joined [22:27:36]Waiting for new connection... [22:27:36] Sock 7.Parse request [22:27:36]Sock 7.Check first char [22:27:36]Sock 7.First char is OK [22:27:36]request: POST /json_proto HTTP/1.0 [22:27:36]Method: POST [22:27:36]URL: /json_proto [22:27:36]Method is POST - this is cgi request [22:27:36]url: /json_proto [22:27:36]query_string will be loaded in cgi processing [22:27:36]execute_cgi json_proto POST (null) [22:27:36]execute_cgi path=json_proto method=POST [22:27:36]POST find Content-Length [22:27:36]Host: 172.17.56.4:8080 [22:27:36]Content-Length: 677 [22:27:36]Content-Type: application/json [22:27:36] [22:27:36]POST finish read [22:27:36]Found Content-Length = 677 [22:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:36]execute_script... [22:27: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)458502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:36]POST & json_proto [22:27:36]process_json_proto [22:27:36]json parsed OK: [22:27:36]protocol is kg_v1.0 [22:27:36]action value=close_receipt [22:27:36]process_action close_receipt [22:27:36]cmd_close_receipt [22:27:36]MH_GetDate [22:27:36]Write to MH i2c: F0 00 00 DD 03 CF [22:27:36]Write i2c OK [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: F0 [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: F0 09 00 [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: F0 09 00 DD 03 00 D9 AD 91 66 C9 DC B2 64 10 [22:27:36]GetLastDocTimeStamp 1720823125 [22:27:36]current date 1720823257 [22:27:36]FM_GetShiftState [22:27:36]SAM_PROTO_GetShiftState [22:27:36]wFMCommunicate request_size=4 [22:27:36]MH_SAM_APDU [22:27:36]CAPDU: 80 13 01 00 [22:27:36]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [22:27:36]Write i2c OK [22:27:36]MH_I2C_Read... [22:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:36]Read from MH i2c: E2 [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: E2 0E 00 [22:27:36]MH_I2C_Read... [22:27:36]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 A8 [22:27:36]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:27:36]wFMCommunicate OK [22:27:36]SAM_PROTO_GetShiftState done [22:27:36]FM_GetShiftState done [22:27:36]opened in 1720744654 [22:27:36]opened+sec_in_day 1720831054 [22:27:36]quantity*price = 40006 [22:27:36]sum+1 = 40007 [22:27:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 335 12.07.2024 22:27 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164414 ФПД: 242934035108669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222737&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164414&fm=242934035108669&tin=02508201610067®Number=0000000000090829&sum=40000 [22:27:37]StoreToDocumentArchive [22:27:37]shift 445 fd 164414 [22:27:37]save to /storage/0445/doc_00164414 [22:27:37]save last doc name /storage/0445/doc_00164414 to /storage/kkm_last_doc_name [22:27:37]save OK [22:27:37]Clear old archive folders... [22:27:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:37]tlvbuf is 00CBE5A0 [22:27:37]SAM_PROTO_ClearQueue [22:27:37]wFMCommunicate request_size=4 [22:27:37]MH_SAM_APDU [22:27:37]CAPDU: 80 09 00 00 [22:27:37]Write to MH i2c: E2 08 00 EB 03 80 09 00 00 00 00 00 00 60 [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:37]Read from MH i2c: E2 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [22:27:37]RAPDU: 90 00 [22:27:37]wFMCommunicate OK [22:27:37]SAM_PROTO_ClearQueue done [22:27:37]KKMCreateOFDPacket [22:27:37]OFDProtocolAddRootSTLVToBuf [22:27:37]FM_MakeSignedData [22:27:37]FM_MakeSignedData [22:27:37]SAM_PROTO_SignData [22:27:37]wFMCommunicate request_size=4 [22:27:37]MH_SAM_APDU [22:27:37]CAPDU: 80 0D 01 02 [22:27:37]Write to MH i2c: E2 08 00 EC 03 80 0D 01 02 00 00 00 00 68 [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:37]Read from MH i2c: E2 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [22:27:37]RAPDU: 90 00 [22:27:37]wFMCommunicate OK [22:27:37]wFMCommunicate request_size=255 [22:27:37]MH_SAM_APDU [22: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 4F 01 00 00 F4 03 04 00 D9 AD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 82 02 00 35 04 06 00 DC [22:27:37]Write to MH i2c: E2 02 01 ED 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 4F 01 00 00 F4 03 04 00 D9 AD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 82 02 00 35 04 06 00 DC 00 00 EA [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:37]Read from MH i2c: E2 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [22:27:37]RAPDU: 90 00 [22:27:37]wFMCommunicate OK [22:27:37]wFMCommunicate request_size=10 [22:27:37]MH_SAM_APDU [22:27:37]CAPDU: 80 0D 02 02 05 F2 7C DD D3 3D [22:27:37]Write to MH i2c: E2 0D 00 EE 03 80 0D 02 02 05 00 F2 7C DD D3 3D 00 00 D0 [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:37]Read from MH i2c: E2 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [22:27:37]RAPDU: 90 00 [22:27:37]wFMCommunicate OK [22:27:37]wFMCommunicate request_size=4 [22:27:37]MH_SAM_APDU [22:27:37]CAPDU: 80 0D 03 02 [22:27:37]Write to MH i2c: E2 08 00 EF 03 80 0D 03 02 00 00 00 00 6D [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:37]OFD Sender: No OFD packet to send [22:27:37]Read from MH i2c: E2 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 0B 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 0B 00 EF 03 00 FA B3 0E A7 15 93 36 16 90 00 C4 [22:27:37]RAPDU: FA B3 0E A7 15 93 36 16 90 00 [22:27:37]wFMCommunicate OK [22:27:37]SAM_PROTO_SignData done [22:27:37]FM_MakeSignedData done [22:27:37]CreateOFDProtocolMessage [22:27:37]wFMCommunicate request_size=4 [22:27:37]MH_SAM_APDU [22:27:37]CAPDU: 80 11 00 00 [22:27:37]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:37]Read from MH i2c: E2 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 17 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [22:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:27:37]wFMCommunicate OK [22:27:37]CreateOFDProtocolMessage done [22:27:37]OFDSenderStorePacket 164414 [22:27:37]StoreOFDPacket docnum=164414 [22:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5D 37 07 01 52 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 4F 01 00 00 F4 03 04 00 D9 AD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 82 02 00 35 04 06 00 DC F2 7C DD D3 3D FA B3 0E A7 15 93 36 16 [22:27:37]CheckFolder [22:27:37]dirname=/storage/ofd_packets [22:27:37]CheckFolder done [22:27:37]ProducePacketName [22:27:37]name=ofd_packets/00164414 [22:27:37]NVStorageSaveData ofd_packets/00164414 [22:27:37]File name is /storage/ofd_packets/00164414 [22:27:37]Write 301 bytes [22:27:37]NVStorageSaveData done [22:27:37]OFDSenderStorePacket done [22:27:37]KKMCreateOFDPacket done [22:27:37]NVStorageSaveData kkm_last_timestamp [22:27:37]File name is /storage/kkm_last_timestamp [22:27:37]Write 4 bytes [22:27:37]NVStorageSaveData done [22:27:37]ExternCall_PrintAddStr [22:27:37]wPrintStart [22:27:37]Write to MH i2c: 01 00 00 F1 03 F4 [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: 01 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: 01 07 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [22:27:37]RasterBufferAndPrint [22:27:37]line Счет N : (1)458502 [22:27:37]line ИНН: 02508201610067 [22:27:37]line Контрольно-Кассовый Чек [22:27:37]line ПРОДАЖА [22:27:37]line ТРК (МРК, ГНК) : 12 [22:27:37]line Товар: 2710124130 [22:27:37]line Аи-92-К-5 [22:27:37]line 6.080 * 65.80 [22:27:37]line = 400.06 [22:27:37]line НДС 12% НСП 1% [22:27:37]line > о реализуемом товаре [22:27:37]line ОКРУГЛЕНИЕ: -0.06 [22:27:37]line ИТОГО: 400.00 [22:27:37]line Внесено: 400.00 [22:27:37]line СДАЧА: 0.00 [22:27:37]line НСП 1% : 3.54 [22:27:37]line НДС 12% : 42.48 [22:27:37]line Наличными: 400.00 [22:27:37]line Безнал.: 0.00 [22:27:37]line Место: АЗС № 72 "Партнер Нефть" [22:27:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:27:37]line СНО: Общий режим [22:27:37]line Чек 335 12.07.2024 22:27 [22:27:37]line Смена: 445 ФФД: 1.0 [22:27:37]line ЗНМ: 0300000160 [22:27:37]line РНМ: 0000000000090829 [22:27:37]line Версия ККМ: 001 [22:27:37]line ФМ: 0000000000874718 [22:27:37]line ФД: 164414 [22:27:37]line ФПД: 242934035108669 [22:27:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222737&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164414&fm=242934035108669&tin=02508201610067®Number=0000000000090829&sum=40000 [22:27:38]OFD Sender: Processing packet 164414 [packets to send 104, broken 103] [22:27:38]ProducePacketName [22:27:38]name=ofd_packets/00164414 [22:27:38]OFD Sender: To server: pG, [22:27:38]CommunicateWithHost lk.salyk.kg:30040 [22:27:38]ConnectInit lk.salyk.kg [22:27:38]written 0, free lines is 4095 [22:27:38]Connected sock=10 [22: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 34 37 31 38 0F 01 00 00 5D 37 07 01 52 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 4F 01 00 00 F4 03 04 00 D9 AD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 82 02 00 35 04 06 00 DC F2 7C DD D3 3D FA B3 0E A7 15 93 36 16 [22:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 25 EC 47 00 C5 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 82 02 00 F4 03 04 00 6C 54 91 66 B6 04 01 00 00 71 3F E6 6B 07 AA EE F7 [22:27:38]CommunicateWithHost err = 0 [22:27:38]CheckOFDResponse [22:27:38]1017 (14) - 77093643461234 [22:27:38]1041 (16) - 0000000000874718 [22:27:38]1040 (4) - 164414 [22:27:38]1012 (4) - 12.07.2024 16:06 [22:27:38]1206 (1) - 0 [22:27:38]OFD Sender: Remove packet 164414 [22:27:38]ProducePacketName [22:27:38]name=ofd_packets/00164414 [22:27:38]NVStorageDeleteData [22:27:38]Write to MH i2c: 01 00 00 1B 04 1F [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: 01 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: 01 07 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 08 0D 3B [22:27:38]RasterBufferAndPrint [22:27:38]line [22:27:38]line [22:27:38]line [22:27:38]line [22:27:38]line [22:27:38]written 0, free lines is 3343 [22:27:38]MH_Cut [22:27:38]Write to MH i2c: D1 01 00 22 04 01 F8 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: D1 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: D1 01 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: D1 01 00 22 04 00 F7 [22:27:38]Write to MH i2c: 01 00 00 23 04 27 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:39]OFD Sender: No OFD packet to send [22:27:39]*** Cut start [22:27:39]*** Partial cut [22:27:39]*** CUTSNS_PIN = 1 [22:27:39]*** CUTSNS_PIN = 0 [22:27:39]*** Brake cut motor [22:27:39]Read from MH i2c: 01 [22:27:39]MH_I2C_Read... [22:27:39]*** Stop cut motor [22:27:39]*** Cut end [22:27:39]Read from MH i2c: 01 07 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 FF 0F 3C [22:27:39]process_action close_receipt done [22:27:39]requested_data is exist [22:27:39]produce_requested_data [22:27:39]requested_item fm.sn is exist - process it [22:27:39]wFMCommunicate request_size=4 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 11 00 00 [22:27:39]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:40]Read from MH i2c: E2 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 17 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F8 [22:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:27:40]wFMCommunicate OK [22:27:40]requested_item fd.num is exist - process it [22:27:40]SAM_PROTO_GetFieldsCounters [22:27:40]wFMCommunicate request_size=4 [22:27:40]MH_SAM_APDU [22:27:40]CAPDU: 80 13 00 00 [22:27:40]Write to MH i2c: E2 08 00 25 04 80 13 00 00 00 00 00 00 A5 [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:40]Read from MH i2c: E2 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 62 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 62 00 25 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:40]wFMCommunicate OK [22:27:40]SAM_PROTO_GetFieldsCounters done [22:27:40]requested_item shift.num is exist - process it [22:27:40]requested_item shift.opened is exist - process it [22:27:40]req_shift_opened [22:27:40]FM_GetShiftState [22:27:40]SAM_PROTO_GetShiftState [22:27:40]wFMCommunicate request_size=4 [22:27:40]MH_SAM_APDU [22:27:40]CAPDU: 80 13 01 00 [22:27:40]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:40]Read from MH i2c: E2 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 0E 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F1 [22:27:40]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:27:40]wFMCommunicate OK [22:27:40]SAM_PROTO_GetShiftState done [22:27:40]FM_GetShiftState done [22:27:40]req_shift_opened done [22:27:40]requested_item shift.open_date is exist - process it [22:27:40]req_shift_open_date [22:27:40]req_shift_open_date done [22:27:40]produce_requested_data done [22:27:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164414,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:27:40]process_action_free close_receipt [22:27:40]json_value_free [22:27:40]json_value_free done [22:27:40]process_json_proto returns [22:27:40]Send response to host [22:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164414,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:27:40]free response buf [22:27:40]execute_script done [22:27:40]execute_script returns [22:27:40]free content buf [22:27:40]Sock 7.Close socket [22:27:40]Sock 7.Thread stoped [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:20]accept exits with 9 [22:28:20]New connection [22:28:20]New thread 3067632996 created [22:28:20]Thread 3067489636 joined [22:28:20]Waiting for new connection... [22:28:20] Sock 9.Parse request [22:28:20]Sock 9.Check first char [22:28:20]Sock 9.First char is OK [22:28:20]request: POST /json_proto HTTP/1.0 [22:28:20]Method: POST [22:28:20]URL: /json_proto [22:28:20]Method is POST - this is cgi request [22:28:20]url: /json_proto [22:28:20]query_string will be loaded in cgi processing [22:28:20]execute_cgi json_proto POST (null) [22:28:20]execute_cgi path=json_proto method=POST [22:28:20]POST find Content-Length [22:28:20]Host: 172.17.56.4:8080 [22:28:20]Content-Length: 679 [22:28:20]Content-Type: application/json [22:28:20] [22:28:20]POST finish read [22:28:20]Found Content-Length = 679 [22:28:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:20]execute_script... [22:28: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)458503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:20]POST & json_proto [22:28:20]process_json_proto [22:28:20]json parsed OK: [22:28:20]protocol is kg_v1.0 [22:28:20]action value=close_receipt [22:28:20]process_action close_receipt [22:28:20]cmd_close_receipt [22:28:20]MH_GetDate [22:28:20]Write to MH i2c: F0 00 00 27 04 1A [22:28:20]Write i2c OK [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: F0 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: F0 09 00 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: F0 09 00 27 04 00 05 AE 91 66 C9 DC B2 64 88 [22:28:20]GetLastDocTimeStamp 1720823257 [22:28:20]current date 1720823301 [22:28:20]FM_GetShiftState [22:28:20]SAM_PROTO_GetShiftState [22:28:20]wFMCommunicate request_size=4 [22:28:20]MH_SAM_APDU [22:28:20]CAPDU: 80 13 01 00 [22:28:20]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [22:28:20]Write i2c OK [22:28:20]MH_I2C_Read... [22:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:20]Read from MH i2c: E2 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: E2 0E 00 [22:28:20]MH_I2C_Read... [22:28:20]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F3 [22:28:20]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:28:20]wFMCommunicate OK [22:28:20]SAM_PROTO_GetShiftState done [22:28:20]FM_GetShiftState done [22:28:20]opened in 1720744654 [22:28:20]opened+sec_in_day 1720831054 [22:28:20]quantity*price = 100012 [22:28:20]sum+1 = 100014 [22:28:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 336 12.07.2024 22:28 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164415 ФПД: 162177015295670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222821&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164415&fm=162177015295670&tin=02508201610067®Number=0000000000090829&sum=100000 [22:28:21]StoreToDocumentArchive [22:28:21]shift 445 fd 164415 [22:28:21]save to /storage/0445/doc_00164415 [22:28:21]save last doc name /storage/0445/doc_00164415 to /storage/kkm_last_doc_name [22:28:21]save OK [22:28:21]Clear old archive folders... [22:28:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:28:21]tlvbuf is 00C85EF0 [22:28:21]SAM_PROTO_ClearQueue [22:28:21]wFMCommunicate request_size=4 [22:28:21]MH_SAM_APDU [22:28:21]CAPDU: 80 09 00 00 [22:28:21]Write to MH i2c: E2 08 00 35 04 80 09 00 00 00 00 00 00 AB [22:28:21]Write i2c OK [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 [22:28:21]MH_I2C_Read... [22:28:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:21]Read from MH i2c: E2 03 00 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [22:28:21]RAPDU: 90 00 [22:28:21]wFMCommunicate OK [22:28:21]SAM_PROTO_ClearQueue done [22:28:21]KKMCreateOFDPacket [22:28:21]OFDProtocolAddRootSTLVToBuf [22:28:21]FM_MakeSignedData [22:28:21]FM_MakeSignedData [22:28:21]SAM_PROTO_SignData [22:28:21]wFMCommunicate request_size=4 [22:28:21]MH_SAM_APDU [22:28:21]CAPDU: 80 0D 01 02 [22:28:21]Write to MH i2c: E2 08 00 36 04 80 0D 01 02 00 00 00 00 B3 [22:28:21]Write i2c OK [22:28:21]MH_I2C_Read... [22:28:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:21]Read from MH i2c: E2 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 03 00 [22:28:21]MH_I2C_Read... [22:28:21]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [22:28:21]RAPDU: 90 00 [22:28:21]wFMCommunicate OK [22:28:21]wFMCommunicate request_size=255 [22:28:21]MH_SAM_APDU [22:28: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 05 AE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 82 02 00 35 04 06 00 93 7F C7 63 [22:28:21]Write to MH i2c: E2 02 01 37 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 05 AE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 82 02 00 35 04 06 00 93 7F C7 63 00 00 2C [22:28:21]Write i2c OK [22:28:21]MH_I2C_Read... [22:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:22]Read from MH i2c: E2 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 03 00 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [22:28:22]RAPDU: 90 00 [22:28:22]wFMCommunicate OK [22:28:22]wFMCommunicate request_size=7 [22:28:22]MH_SAM_APDU [22:28:22]CAPDU: 80 0D 02 02 02 2E B6 [22:28:22]Write to MH i2c: E2 0A 00 38 04 80 0D 02 02 02 00 2E B6 00 00 9E [22:28:22]Write i2c OK [22:28:22]MH_I2C_Read... [22:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:22]Read from MH i2c: E2 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 03 00 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [22:28:22]RAPDU: 90 00 [22:28:22]wFMCommunicate OK [22:28:22]wFMCommunicate request_size=4 [22:28:22]MH_SAM_APDU [22:28:22]CAPDU: 80 0D 03 02 [22:28:22]Write to MH i2c: E2 08 00 39 04 80 0D 03 02 00 00 00 00 B8 [22:28:22]Write i2c OK [22:28:22]MH_I2C_Read... [22:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:22]Read from MH i2c: E2 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 0B 00 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 0B 00 39 04 00 C8 D9 43 10 F8 B3 8F D2 90 00 B9 [22:28:22]RAPDU: C8 D9 43 10 F8 B3 8F D2 90 00 [22:28:22]wFMCommunicate OK [22:28:22]SAM_PROTO_SignData done [22:28:22]FM_MakeSignedData done [22:28:22]CreateOFDProtocolMessage [22:28:22]wFMCommunicate request_size=4 [22:28:22]MH_SAM_APDU [22:28:22]CAPDU: 80 11 00 00 [22:28:22]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [22:28:22]Write i2c OK [22:28:22]MH_I2C_Read... [22:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:22]Read from MH i2c: E2 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 17 00 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [22:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:28:22]wFMCommunicate OK [22:28:22]CreateOFDProtocolMessage done [22:28:22]OFDSenderStorePacket 164415 [22:28:22]StoreOFDPacket docnum=164415 [22:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C5 56 04 01 0C 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 05 AE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 82 02 00 35 04 06 00 93 7F C7 63 2E B6 C8 D9 43 10 F8 B3 8F D2 [22:28:22]CheckFolder [22:28:22]dirname=/storage/ofd_packets [22:28:22]CheckFolder done [22:28:22]ProducePacketName [22:28:22]name=ofd_packets/00164415 [22:28:22]NVStorageSaveData ofd_packets/00164415 [22:28:22]File name is /storage/ofd_packets/00164415 [22:28:22]Write 298 bytes [22:28:22]NVStorageSaveData done [22:28:22]OFDSenderStorePacket done [22:28:22]KKMCreateOFDPacket done [22:28:22]NVStorageSaveData kkm_last_timestamp [22:28:22]File name is /storage/kkm_last_timestamp [22:28:22]Write 4 bytes [22:28:22]NVStorageSaveData done [22:28:22]ExternCall_PrintAddStr [22:28:22]wPrintStart [22:28:22]Write to MH i2c: 01 00 00 3B 04 3F [22:28:22]Write i2c OK [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: 01 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: 01 07 00 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [22:28:22]RasterBufferAndPrint [22:28:22]line Счет N : (1)458503 [22:28:22]line ИНН: 02508201610067 [22:28:22]line Контрольно-Кассовый Чек [22:28:22]line ПРОДАЖА [22:28:22]line ТРК (МРК, ГНК) : 11 [22:28:22]line Товар: 2710194210 [22:28:22]line ДТ-К-5 [22:28:22]line 13.910 * 71.90 [22:28:22]line = 1000.13 [22:28:22]line НДС 12% НСП 1% [22:28:22]line > о реализуемом товаре [22:28:22]line ОКРУГЛЕНИЕ: -0.13 [22:28:22]line ИТОГО: 1000.00 [22:28:22]line Внесено: 1000.00 [22:28:22]line СДАЧА: 0.00 [22:28:22]line НСП 1% : 8.85 [22:28:22]line НДС 12% : 106.21 [22:28:22]line Наличными: 1000.00 [22:28:22]line Безнал.: 0.00 [22:28:22]line Место: АЗС № 72 "Партнер Нефть" [22:28:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:28:22]line СНО: Общий режим [22:28:22]line Чек 336 12.07.2024 22:28 [22:28:22]line Смена: 445 ФФД: 1.0 [22:28:22]line ЗНМ: 0300000160 [22:28:22]line РНМ: 0000000000090829 [22:28:22]line Версия ККМ: 001 [22:28:22]line ФМ: 0000000000874718 [22:28:22]line ФД: 164415 [22:28:22]line ФПД: 162177015295670 [22:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T222821&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164415&fm=162177015295670&tin=02508201610067®Number=0000000000090829&sum=100000 [22:28:22]OFD Sender: Processing packet 164415 [packets to send 104, broken 103] [22:28:22]ProducePacketName [22:28:22]name=ofd_packets/00164415 [22:28:22]OFD Sender: To server: pG, [22:28:22]CommunicateWithHost lk.salyk.kg:30040 [22:28:22]ConnectInit lk.salyk.kg [22:28:22]written 0, free lines is 4095 [22:28:22]Connected sock=10 [22:28:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C5 56 04 01 0C 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 05 AE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 82 02 00 35 04 06 00 93 7F C7 63 2E B6 C8 D9 43 10 F8 B3 8F D2 [22:28:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 17 3A 47 00 66 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 34 37 31 38 10 04 04 00 3F 82 02 00 F4 03 04 00 98 54 91 66 B6 04 01 00 00 9B 77 43 60 B3 21 2C E9 [22:28:22]CommunicateWithHost err = 0 [22:28:22]CheckOFDResponse [22:28:22]1017 (14) - 77093643461234 [22:28:22]1041 (16) - 0000000000874718 [22:28:22]1040 (4) - 164415 [22:28:22]1012 (4) - 12.07.2024 16:06 [22:28:22]1206 (1) - 0 [22:28:22]OFD Sender: Remove packet 164415 [22:28:22]ProducePacketName [22:28:22]name=ofd_packets/00164415 [22:28:22]NVStorageDeleteData [22:28:22]Write to MH i2c: 01 00 00 65 04 69 [22:28:22]Write i2c OK [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: 01 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: 01 07 00 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 08 0D 85 [22:28:22]RasterBufferAndPrint [22:28:22]line [22:28:22]line [22:28:22]line [22:28:22]line [22:28:22]line [22:28:22]written 0, free lines is 3342 [22:28:22]MH_Cut [22:28:22]Write to MH i2c: D1 01 00 6C 04 01 42 [22:28:22]Write i2c OK [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: D1 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: D1 01 00 [22:28:22]MH_I2C_Read... [22:28:22]Read from MH i2c: D1 01 00 6C 04 00 41 [22:28:22]Write to MH i2c: 01 00 00 6D 04 71 [22:28:22]Write i2c OK [22:28:22]MH_I2C_Read... [22:28:23]OFD Sender: No OFD packet to send [22:28:23]*** Cut start [22:28:23]*** Partial cut [22:28:23]*** CUTSNS_PIN = 1 [22:28:23]*** CUTSNS_PIN = 0 [22:28:23]*** Brake cut motor [22:28:24]Read from MH i2c: 01 [22:28:24]MH_I2C_Read... [22:28:24]*** Stop cut motor [22:28:24]*** Cut end [22:28:24]Read from MH i2c: 01 07 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 FF 0F 86 [22:28:24]process_action close_receipt done [22:28:24]requested_data is exist [22:28:24]produce_requested_data [22:28:24]requested_item fm.sn is exist - process it [22:28:24]wFMCommunicate request_size=4 [22:28:24]MH_SAM_APDU [22:28:24]CAPDU: 80 11 00 00 [22:28:24]Write to MH i2c: E2 08 00 6E 04 80 11 00 00 00 00 00 00 EC [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:24]Read from MH i2c: E2 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 17 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 17 00 6E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [22:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:28:24]wFMCommunicate OK [22:28:24]requested_item fd.num is exist - process it [22:28:24]SAM_PROTO_GetFieldsCounters [22:28:24]wFMCommunicate request_size=4 [22:28:24]MH_SAM_APDU [22:28:24]CAPDU: 80 13 00 00 [22:28:24]Write to MH i2c: E2 08 00 6F 04 80 13 00 00 00 00 00 00 EF [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:24]Read from MH i2c: E2 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 62 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 62 00 6F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [22:28: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:24]wFMCommunicate OK [22:28:24]SAM_PROTO_GetFieldsCounters done [22:28:24]requested_item shift.num is exist - process it [22:28:24]requested_item shift.opened is exist - process it [22:28:24]req_shift_opened [22:28:24]FM_GetShiftState [22:28:24]SAM_PROTO_GetShiftState [22:28:24]wFMCommunicate request_size=4 [22:28:24]MH_SAM_APDU [22:28:24]CAPDU: 80 13 01 00 [22:28:24]Write to MH i2c: E2 08 00 70 04 80 13 01 00 00 00 00 00 F1 [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:24]Read from MH i2c: E2 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 0E 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 0E 00 70 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3B [22:28:24]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:28:24]wFMCommunicate OK [22:28:24]SAM_PROTO_GetShiftState done [22:28:24]FM_GetShiftState done [22:28:24]req_shift_opened done [22:28:24]requested_item shift.open_date is exist - process it [22:28:24]req_shift_open_date [22:28:24]req_shift_open_date done [22:28:24]produce_requested_data done [22:28:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164415,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:28:24]process_action_free close_receipt [22:28:24]json_value_free [22:28:24]json_value_free done [22:28:24]process_json_proto returns [22:28:24]Send response to host [22:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164415,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:28:24]free response buf [22:28:24]execute_script done [22:28:24]execute_script returns [22:28:24]free content buf [22:28:24]Sock 9.Close socket [22:28:24]Sock 9.Thread stoped [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:00]accept exits with 7 [22:41:00]New connection [22:41:00]New thread 3067489636 created [22:41:00]Thread 3067632996 joined [22:41:00]Waiting for new connection... [22:41:00] Sock 7.Parse request [22:41:00]Sock 7.Check first char [22:41:00]Sock 7.First char is OK [22:41:00]request: POST /json_proto HTTP/1.0 [22:41:00]Method: POST [22:41:00]URL: /json_proto [22:41:00]Method is POST - this is cgi request [22:41:00]url: /json_proto [22:41:00]query_string will be loaded in cgi processing [22:41:00]execute_cgi json_proto POST (null) [22:41:00]execute_cgi path=json_proto method=POST [22:41:00]POST find Content-Length [22:41:00]Host: 172.17.56.4:8080 [22:41:00]Content-Length: 678 [22:41:00]Content-Type: application/json [22:41:00] [22:41:00]POST finish read [22:41:00]Found Content-Length = 678 [22:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:00]execute_script... [22:41:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:00]POST & json_proto [22:41:00]process_json_proto [22:41:00]json parsed OK: [22:41:00]protocol is kg_v1.0 [22:41:00]action value=close_receipt [22:41:00]process_action close_receipt [22:41:00]cmd_close_receipt [22:41:00]MH_GetDate [22:41:00]Write to MH i2c: F0 00 00 71 04 64 [22:41:00]Write i2c OK [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: F0 [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: F0 09 00 [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: F0 09 00 71 04 00 FE B0 91 66 C9 DC B2 64 CD [22:41:00]GetLastDocTimeStamp 1720823301 [22:41:00]current date 1720824062 [22:41:00]FM_GetShiftState [22:41:00]SAM_PROTO_GetShiftState [22:41:00]wFMCommunicate request_size=4 [22:41:00]MH_SAM_APDU [22:41:00]CAPDU: 80 13 01 00 [22:41:00]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [22:41:00]Write i2c OK [22:41:00]MH_I2C_Read... [22:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:00]Read from MH i2c: E2 [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: E2 0E 00 [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 3D [22:41:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:41:00]wFMCommunicate OK [22:41:00]SAM_PROTO_GetShiftState done [22:41:00]FM_GetShiftState done [22:41:00]opened in 1720744654 [22:41:00]opened+sec_in_day 1720831054 [22:41:00]quantity*price = 70011 [22:41:00]sum+1 = 70012 [22:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 337 12.07.2024 22:41 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164416 ФПД: 219104089616332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T224102&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164416&fm=219104089616332&tin=02508201610067®Number=0000000000090829&sum=70000 [22:41:01]StoreToDocumentArchive [22:41:01]shift 445 fd 164416 [22:41:01]save to /storage/0445/doc_00164416 [22:41:01]save last doc name /storage/0445/doc_00164416 to /storage/kkm_last_doc_name [22:41:01]save OK [22:41:01]Clear old archive folders... [22:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:02]tlvbuf is 00CA2B80 [22:41:02]SAM_PROTO_ClearQueue [22:41:02]wFMCommunicate request_size=4 [22:41:02]MH_SAM_APDU [22:41:02]CAPDU: 80 09 00 00 [22:41:02]Write to MH i2c: E2 08 00 7F 04 80 09 00 00 00 00 00 00 F5 [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:02]Read from MH i2c: E2 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 03 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [22:41:02]RAPDU: 90 00 [22:41:02]wFMCommunicate OK [22:41:02]SAM_PROTO_ClearQueue done [22:41:02]KKMCreateOFDPacket [22:41:02]OFDProtocolAddRootSTLVToBuf [22:41:02]FM_MakeSignedData [22:41:02]FM_MakeSignedData [22:41:02]SAM_PROTO_SignData [22:41:02]wFMCommunicate request_size=4 [22:41:02]MH_SAM_APDU [22:41:02]CAPDU: 80 0D 01 02 [22:41:02]Write to MH i2c: E2 08 00 80 04 80 0D 01 02 00 00 00 00 FD [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:02]Read from MH i2c: E2 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 03 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [22:41:02]RAPDU: 90 00 [22:41:02]wFMCommunicate OK [22:41:02]wFMCommunicate request_size=255 [22:41:02]MH_SAM_APDU [22:41:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 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 01 00 00 F4 03 04 00 FE B0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 82 02 00 35 04 06 00 C7 [22:41:02]Write to MH i2c: E2 02 01 81 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 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 01 00 00 F4 03 04 00 FE B0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 82 02 00 35 04 06 00 C7 00 00 FA [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:02]Read from MH i2c: E2 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 03 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [22:41:02]RAPDU: 90 00 [22:41:02]wFMCommunicate OK [22:41:02]wFMCommunicate request_size=10 [22:41:02]MH_SAM_APDU [22:41:02]CAPDU: 80 0D 02 02 05 46 25 6E 2F CC [22:41:02]Write to MH i2c: E2 0D 00 82 04 80 0D 02 02 05 00 46 25 6E 2F CC 00 00 DE [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:02]Read from MH i2c: E2 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 03 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [22:41:02]RAPDU: 90 00 [22:41:02]wFMCommunicate OK [22:41:02]wFMCommunicate request_size=4 [22:41:02]MH_SAM_APDU [22:41:02]CAPDU: 80 0D 03 02 [22:41:02]Write to MH i2c: E2 08 00 83 04 80 0D 03 02 00 00 00 00 02 [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:02]Read from MH i2c: E2 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 0B 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 0B 00 83 04 00 18 B3 A7 63 8C 24 8B 05 90 00 18 [22:41:02]RAPDU: 18 B3 A7 63 8C 24 8B 05 90 00 [22:41:02]wFMCommunicate OK [22:41:02]SAM_PROTO_SignData done [22:41:02]FM_MakeSignedData done [22:41:02]CreateOFDProtocolMessage [22:41:02]wFMCommunicate request_size=4 [22:41:02]MH_SAM_APDU [22:41:02]CAPDU: 80 11 00 00 [22:41:02]Write to MH i2c: E2 08 00 84 04 80 11 00 00 00 00 00 00 02 [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:02]Read from MH i2c: E2 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 17 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 17 00 84 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [22:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:41:02]wFMCommunicate OK [22:41:02]CreateOFDProtocolMessage done [22:41:02]OFDSenderStorePacket 164416 [22:41:02]StoreOFDPacket docnum=164416 [22:41:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 56 07 01 9B 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 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 01 00 00 F4 03 04 00 FE B0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 82 02 00 35 04 06 00 C7 46 25 6E 2F CC 18 B3 A7 63 8C 24 8B 05 [22:41:02]CheckFolder [22:41:02]dirname=/storage/ofd_packets [22:41:02]CheckFolder done [22:41:02]ProducePacketName [22:41:02]name=ofd_packets/00164416 [22:41:02]NVStorageSaveData ofd_packets/00164416 [22:41:02]File name is /storage/ofd_packets/00164416 [22:41:02]Write 301 bytes [22:41:02]NVStorageSaveData done [22:41:02]OFDSenderStorePacket done [22:41:02]KKMCreateOFDPacket done [22:41:02]NVStorageSaveData kkm_last_timestamp [22:41:02]File name is /storage/kkm_last_timestamp [22:41:02]Write 4 bytes [22:41:02]NVStorageSaveData done [22:41:02]ExternCall_PrintAddStr [22:41:02]wPrintStart [22:41:02]Write to MH i2c: 01 00 00 85 04 89 [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: 01 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: 01 07 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 FF 0F 9E [22:41:02]RasterBufferAndPrint [22:41:02]line Счет N : (1)458504 [22:41:02]line ИНН: 02508201610067 [22:41:02]line Контрольно-Кассовый Чек [22:41:02]line ПРОДАЖА [22:41:02]line ТРК (МРК, ГНК) : 22 [22:41:02]line Товар: 2710124130 [22:41:02]line Аи-92-К-5 [22:41:02]line 10.640 * 65.80 [22:41:02]line = 700.11 [22:41:02]line НДС 12% НСП 1% [22:41:02]line > о реализуемом товаре [22:41:02]line ОКРУГЛЕНИЕ: -0.11 [22:41:02]line ИТОГО: 700.00 [22:41:02]line Внесено: 700.00 [22:41:02]line СДАЧА: 0.00 [22:41:02]line НСП 1% : 6.20 [22:41:02]line НДС 12% : 74.35 [22:41:02]line Наличными: 700.00 [22:41:02]line Безнал.: 0.00 [22:41:02]line Место: АЗС № 72 "Партнер Нефть" [22:41:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:41:02]line СНО: Общий режим [22:41:02]line Чек 337 12.07.2024 22:41 [22:41:02]line Смена: 445 ФФД: 1.0 [22:41:02]line ЗНМ: 0300000160 [22:41:02]line РНМ: 0000000000090829 [22:41:02]line Версия ККМ: 001 [22:41:02]line ФМ: 0000000000874718 [22:41:02]line ФД: 164416 [22:41:02]line ФПД: 219104089616332 [22:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T224102&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164416&fm=219104089616332&tin=02508201610067®Number=0000000000090829&sum=70000 [22:41:02]OFD Sender: Processing packet 164416 [packets to send 104, broken 103] [22:41:02]ProducePacketName [22:41:02]name=ofd_packets/00164416 [22:41:02]OFD Sender: To server: pG, [22:41:02]CommunicateWithHost lk.salyk.kg:30040 [22:41:02]ConnectInit lk.salyk.kg [22:41:02]written 0, free lines is 4095 [22:41:02]Connected sock=10 [22:41:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 56 07 01 9B 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 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 01 00 00 F4 03 04 00 FE B0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 82 02 00 35 04 06 00 C7 46 25 6E 2F CC 18 B3 A7 63 8C 24 8B 05 [22:41:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 FA 47 00 7D 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 34 37 31 38 10 04 04 00 40 82 02 00 F4 03 04 00 91 57 91 66 B6 04 01 00 00 8F 0D C1 6E 3F C6 27 B4 [22:41:03]CommunicateWithHost err = 0 [22:41:03]CheckOFDResponse [22:41:03]1017 (14) - 77093643461234 [22:41:03]1041 (16) - 0000000000874718 [22:41:03]1040 (4) - 164416 [22:41:03]1012 (4) - 12.07.2024 16:19 [22:41:03]1206 (1) - 0 [22:41:03]OFD Sender: Remove packet 164416 [22:41:03]ProducePacketName [22:41:03]name=ofd_packets/00164416 [22:41:03]NVStorageDeleteData [22:41:03]Write to MH i2c: 01 00 00 AF 04 B3 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: 01 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: 01 07 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 ED 0C B3 [22:41:03]RasterBufferAndPrint [22:41:03]line [22:41:03]line [22:41:03]line [22:41:03]line [22:41:03]line [22:41:03]written 0, free lines is 3315 [22:41:03]MH_Cut [22:41:03]Write to MH i2c: D1 01 00 B6 04 01 8C [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: D1 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: D1 01 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: D1 01 00 B6 04 00 8B [22:41:03]Write to MH i2c: 01 00 00 B7 04 BB [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]OFD Sender: No OFD packet to send [22:41:03]*** Cut start [22:41:03]*** Partial cut [22:41:03]*** CUTSNS_PIN = 1 [22:41:04]*** CUTSNS_PIN = 0 [22:41:04]*** Brake cut motor [22:41:04]Read from MH i2c: 01 [22:41:04]MH_I2C_Read... [22:41:04]*** Stop cut motor [22:41:04]*** Cut end [22:41:04]Read from MH i2c: 01 07 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 FF 0F D0 [22:41:04]process_action close_receipt done [22:41:04]requested_data is exist [22:41:04]produce_requested_data [22:41:04]requested_item fm.sn is exist - process it [22:41:04]wFMCommunicate request_size=4 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 11 00 00 [22:41:04]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 17 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [22:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:41:04]wFMCommunicate OK [22:41:04]requested_item fd.num is exist - process it [22:41:04]SAM_PROTO_GetFieldsCounters [22:41:04]wFMCommunicate request_size=4 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 13 00 00 [22:41:04]Write to MH i2c: E2 08 00 B9 04 80 13 00 00 00 00 00 00 39 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 62 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 62 00 B9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [22:41: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:04]wFMCommunicate OK [22:41:04]SAM_PROTO_GetFieldsCounters done [22:41:04]requested_item shift.num is exist - process it [22:41:04]requested_item shift.opened is exist - process it [22:41:04]req_shift_opened [22:41:04]FM_GetShiftState [22:41:04]SAM_PROTO_GetShiftState [22:41:04]wFMCommunicate request_size=4 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 13 01 00 [22:41:04]Write to MH i2c: E2 08 00 BA 04 80 13 01 00 00 00 00 00 3B [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 0E 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 0E 00 BA 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 85 [22:41:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:41:04]wFMCommunicate OK [22:41:04]SAM_PROTO_GetShiftState done [22:41:04]FM_GetShiftState done [22:41:04]req_shift_opened done [22:41:04]requested_item shift.open_date is exist - process it [22:41:04]req_shift_open_date [22:41:04]req_shift_open_date done [22:41:04]produce_requested_data done [22:41:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164416,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:41:04]process_action_free close_receipt [22:41:04]json_value_free [22:41:04]json_value_free done [22:41:04]process_json_proto returns [22:41:04]Send response to host [22:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164416,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:41:04]free response buf [22:41:04]execute_script done [22:41:04]execute_script returns [22:41:04]free content buf [22:41:04]Sock 7.Close socket [22:41:04]Sock 7.Thread stoped [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:49]accept exits with 9 [22:44:49]New connection [22:44:49]New thread 3067632996 created [22:44:49]Thread 3067489636 joined [22:44:49]Waiting for new connection... [22:44:49] Sock 9.Parse request [22:44:49]Sock 9.Check first char [22:44:49]Sock 9.First char is OK [22:44:49]request: POST /json_proto HTTP/1.0 [22:44:49]Method: POST [22:44:49]URL: /json_proto [22:44:49]Method is POST - this is cgi request [22:44:49]url: /json_proto [22:44:49]query_string will be loaded in cgi processing [22:44:49]execute_cgi json_proto POST (null) [22:44:49]execute_cgi path=json_proto method=POST [22:44:49]POST find Content-Length [22:44:49]Host: 172.17.56.4:8080 [22:44:49]Content-Length: 677 [22:44:49]Content-Type: application/json [22:44:49] [22:44:49]POST finish read [22:44:49]Found Content-Length = 677 [22:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:49]execute_script... [22:44: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)458505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:49]POST & json_proto [22:44:49]process_json_proto [22:44:49]json parsed OK: [22:44:49]protocol is kg_v1.0 [22:44:49]action value=close_receipt [22:44:49]process_action close_receipt [22:44:49]cmd_close_receipt [22:44:49]MH_GetDate [22:44:49]Write to MH i2c: F0 00 00 BB 04 AE [22:44:49]Write i2c OK [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: F0 [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: F0 09 00 [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: F0 09 00 BB 04 00 E2 B1 91 66 C9 DC B2 64 FC [22:44:49]GetLastDocTimeStamp 1720824062 [22:44:49]current date 1720824290 [22:44:49]FM_GetShiftState [22:44:49]SAM_PROTO_GetShiftState [22:44:49]wFMCommunicate request_size=4 [22:44:49]MH_SAM_APDU [22:44:49]CAPDU: 80 13 01 00 [22:44:49]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [22:44:49]Write i2c OK [22:44:49]MH_I2C_Read... [22:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:49]Read from MH i2c: E2 [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: E2 0E 00 [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 87 [22:44:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:44:49]wFMCommunicate OK [22:44:49]SAM_PROTO_GetShiftState done [22:44:49]FM_GetShiftState done [22:44:49]opened in 1720744654 [22:44:49]opened+sec_in_day 1720831054 [22:44:49]quantity*price = 40006 [22:44:49]sum+1 = 40007 [22:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 338 12.07.2024 22:44 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164417 ФПД: 201329498245607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T224450&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164417&fm=201329498245607&tin=02508201610067®Number=0000000000090829&sum=40000 [22:44:50]StoreToDocumentArchive [22:44:50]shift 445 fd 164417 [22:44:50]save to /storage/0445/doc_00164417 [22:44:50]save last doc name /storage/0445/doc_00164417 to /storage/kkm_last_doc_name [22:44:50]save OK [22:44:50]Clear old archive folders... [22:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:50]tlvbuf is 00CA3700 [22:44:50]SAM_PROTO_ClearQueue [22:44:50]wFMCommunicate request_size=4 [22:44:50]MH_SAM_APDU [22:44:50]CAPDU: 80 09 00 00 [22:44:50]Write to MH i2c: E2 08 00 C9 04 80 09 00 00 00 00 00 00 3F [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:50]Read from MH i2c: E2 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [22:44:50]RAPDU: 90 00 [22:44:50]wFMCommunicate OK [22:44:50]SAM_PROTO_ClearQueue done [22:44:50]KKMCreateOFDPacket [22:44:50]OFDProtocolAddRootSTLVToBuf [22:44:50]FM_MakeSignedData [22:44:50]FM_MakeSignedData [22:44:50]SAM_PROTO_SignData [22:44:50]wFMCommunicate request_size=4 [22:44:50]MH_SAM_APDU [22:44:50]CAPDU: 80 0D 01 02 [22:44:50]Write to MH i2c: E2 08 00 CA 04 80 0D 01 02 00 00 00 00 47 [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:50]Read from MH i2c: E2 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [22:44:50]RAPDU: 90 00 [22:44:50]wFMCommunicate OK [22:44:50]wFMCommunicate request_size=255 [22:44:50]MH_SAM_APDU [22:44: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 E2 B1 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 82 02 00 35 04 06 00 B7 [22:44:50]Write to MH i2c: E2 02 01 CB 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 E2 B1 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 82 02 00 35 04 06 00 B7 00 00 B7 [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:50]Read from MH i2c: E2 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [22:44:50]RAPDU: 90 00 [22:44:50]wFMCommunicate OK [22:44:50]wFMCommunicate request_size=10 [22:44:50]MH_SAM_APDU [22:44:50]CAPDU: 80 0D 02 02 05 1B AD 39 C9 E7 [22:44:50]Write to MH i2c: E2 0D 00 CC 04 80 0D 02 02 05 00 1B AD 39 C9 E7 00 00 05 [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:50]Read from MH i2c: E2 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [22:44:50]RAPDU: 90 00 [22:44:50]wFMCommunicate OK [22:44:50]wFMCommunicate request_size=4 [22:44:50]MH_SAM_APDU [22:44:50]CAPDU: 80 0D 03 02 [22:44:50]Write to MH i2c: E2 08 00 CD 04 80 0D 03 02 00 00 00 00 4C [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:50]Read from MH i2c: E2 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 0B 00 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 0B 00 CD 04 00 9C D9 FD 61 BC 25 DB D4 90 00 B0 [22:44:50]RAPDU: 9C D9 FD 61 BC 25 DB D4 90 00 [22:44:50]wFMCommunicate OK [22:44:50]SAM_PROTO_SignData done [22:44:50]FM_MakeSignedData done [22:44:50]CreateOFDProtocolMessage [22:44:50]wFMCommunicate request_size=4 [22:44:50]MH_SAM_APDU [22:44:50]CAPDU: 80 11 00 00 [22:44:50]Write to MH i2c: E2 08 00 CE 04 80 11 00 00 00 00 00 00 4C [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:50]Read from MH i2c: E2 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 17 00 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 17 00 CE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [22:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:44:50]wFMCommunicate OK [22:44:50]CreateOFDProtocolMessage done [22:44:50]OFDSenderStorePacket 164417 [22:44:50]StoreOFDPacket docnum=164417 [22:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 35 56 07 01 74 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 E2 B1 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 82 02 00 35 04 06 00 B7 1B AD 39 C9 E7 9C D9 FD 61 BC 25 DB D4 [22:44:50]CheckFolder [22:44:50]dirname=/storage/ofd_packets [22:44:50]CheckFolder done [22:44:50]ProducePacketName [22:44:50]name=ofd_packets/00164417 [22:44:50]NVStorageSaveData ofd_packets/00164417 [22:44:50]File name is /storage/ofd_packets/00164417 [22:44:50]Write 301 bytes [22:44:50]NVStorageSaveData done [22:44:50]OFDSenderStorePacket done [22:44:50]KKMCreateOFDPacket done [22:44:50]NVStorageSaveData kkm_last_timestamp [22:44:50]File name is /storage/kkm_last_timestamp [22:44:50]Write 4 bytes [22:44:50]NVStorageSaveData done [22:44:50]ExternCall_PrintAddStr [22:44:50]wPrintStart [22:44:50]Write to MH i2c: 01 00 00 CF 04 D3 [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: 01 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: 01 07 00 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: 01 07 00 CF 04 00 00 00 00 00 FF 0F E8 [22:44:50]RasterBufferAndPrint [22:44:50]line Счет N : (1)458505 [22:44:50]line ИНН: 02508201610067 [22:44:50]line Контрольно-Кассовый Чек [22:44:50]line ПРОДАЖА [22:44:50]line ТРК (МРК, ГНК) : 22 [22:44:50]line Товар: 2710124130 [22:44:50]line Аи-92-К-5 [22:44:50]line 6.080 * 65.80 [22:44:50]line = 400.06 [22:44:50]line НДС 12% НСП 1% [22:44:50]line > о реализуемом товаре [22:44:50]line ОКРУГЛЕНИЕ: -0.06 [22:44:50]line ИТОГО: 400.00 [22:44:50]line Внесено: 400.00 [22:44:50]line СДАЧА: 0.00 [22:44:50]line НСП 1% : 3.54 [22:44:50]line НДС 12% : 42.48 [22:44:50]line Наличными: 400.00 [22:44:50]line Безнал.: 0.00 [22:44:50]line Место: АЗС № 72 "Партнер Нефть" [22:44:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:44:50]line СНО: Общий режим [22:44:50]line Чек 338 12.07.2024 22:44 [22:44:50]line Смена: 445 ФФД: 1.0 [22:44:50]line ЗНМ: 0300000160 [22:44:50]line РНМ: 0000000000090829 [22:44:50]line Версия ККМ: 001 [22:44:50]line ФМ: 0000000000874718 [22:44:50]line ФД: 164417 [22:44:50]line ФПД: 201329498245607 [22:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T224450&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164417&fm=201329498245607&tin=02508201610067®Number=0000000000090829&sum=40000 [22:44:51]OFD Sender: Processing packet 164417 [packets to send 104, broken 103] [22:44:51]ProducePacketName [22:44:51]name=ofd_packets/00164417 [22:44:51]OFD Sender: To server: pG, [22:44:51]CommunicateWithHost lk.salyk.kg:30040 [22:44:51]ConnectInit lk.salyk.kg [22:44:51]written 0, free lines is 4095 [22:44:51]Connected sock=10 [22:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 35 56 07 01 74 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 E2 B1 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 82 02 00 35 04 06 00 B7 1B AD 39 C9 E7 9C D9 FD 61 BC 25 DB D4 [22:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB 90 47 00 49 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 34 37 31 38 10 04 04 00 41 82 02 00 F4 03 04 00 75 58 91 66 B6 04 01 00 00 56 09 BF 29 41 D9 41 7C [22:44:51]CommunicateWithHost err = 0 [22:44:51]CheckOFDResponse [22:44:51]1017 (14) - 77093643461234 [22:44:51]1041 (16) - 0000000000874718 [22:44:51]1040 (4) - 164417 [22:44:51]1012 (4) - 12.07.2024 16:23 [22:44:51]1206 (1) - 0 [22:44:51]OFD Sender: Remove packet 164417 [22:44:51]ProducePacketName [22:44:51]name=ofd_packets/00164417 [22:44:51]NVStorageDeleteData [22:44:51]Write to MH i2c: 01 00 00 F9 04 FD [22:44:51]Write i2c OK [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: 01 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: 01 07 00 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 02 0D 13 [22:44:51]RasterBufferAndPrint [22:44:51]line [22:44:51]line [22:44:51]line [22:44:51]line [22:44:51]line [22:44:51]written 0, free lines is 3336 [22:44:51]MH_Cut [22:44:51]Write to MH i2c: D1 01 00 00 05 01 D7 [22:44:51]Write i2c OK [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: D1 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: D1 01 00 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: D1 01 00 00 05 00 D6 [22:44:51]Write to MH i2c: 01 00 00 01 05 06 [22:44:51]Write i2c OK [22:44:51]MH_I2C_Read... [22:44:51]OFD Sender: No OFD packet to send [22:44:52]*** Cut start [22:44:52]*** Partial cut [22:44:52]*** CUTSNS_PIN = 1 [22:44:52]*** CUTSNS_PIN = 0 [22:44:52]*** Brake cut motor [22:44:52]Read from MH i2c: 01 [22:44:52]MH_I2C_Read... [22:44:52]*** Stop cut motor [22:44:52]*** Cut end [22:44:52]Read from MH i2c: 01 07 00 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [22:44:52]process_action close_receipt done [22:44:52]requested_data is exist [22:44:52]produce_requested_data [22:44:52]requested_item fm.sn is exist - process it [22:44:52]wFMCommunicate request_size=4 [22:44:52]MH_SAM_APDU [22:44:52]CAPDU: 80 11 00 00 [22:44:52]Write to MH i2c: E2 08 00 02 05 80 11 00 00 00 00 00 00 81 [22:44:52]Write i2c OK [22:44:52]MH_I2C_Read... [22:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:52]Read from MH i2c: E2 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: E2 17 00 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: E2 17 00 02 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [22:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:44:52]wFMCommunicate OK [22:44:52]requested_item fd.num is exist - process it [22:44:52]SAM_PROTO_GetFieldsCounters [22:44:52]wFMCommunicate request_size=4 [22:44:52]MH_SAM_APDU [22:44:52]CAPDU: 80 13 00 00 [22:44:52]Write to MH i2c: E2 08 00 03 05 80 13 00 00 00 00 00 00 84 [22:44:52]Write i2c OK [22:44:52]MH_I2C_Read... [22:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:53]Read from MH i2c: E2 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 62 00 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 62 00 03 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [22:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:53]wFMCommunicate OK [22:44:53]SAM_PROTO_GetFieldsCounters done [22:44:53]requested_item shift.num is exist - process it [22:44:53]requested_item shift.opened is exist - process it [22:44:53]req_shift_opened [22:44:53]FM_GetShiftState [22:44:53]SAM_PROTO_GetShiftState [22:44:53]wFMCommunicate request_size=4 [22:44:53]MH_SAM_APDU [22:44:53]CAPDU: 80 13 01 00 [22:44:53]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [22:44:53]Write i2c OK [22:44:53]MH_I2C_Read... [22:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:53]Read from MH i2c: E2 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 0E 00 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D0 [22:44:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:44:53]wFMCommunicate OK [22:44:53]SAM_PROTO_GetShiftState done [22:44:53]FM_GetShiftState done [22:44:53]req_shift_opened done [22:44:53]requested_item shift.open_date is exist - process it [22:44:53]req_shift_open_date [22:44:53]req_shift_open_date done [22:44:53]produce_requested_data done [22:44:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164417,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:44:53]process_action_free close_receipt [22:44:53]json_value_free [22:44:53]json_value_free done [22:44:53]process_json_proto returns [22:44:53]Send response to host [22:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164417,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:44:53]free response buf [22:44:53]execute_script done [22:44:53]execute_script returns [22:44:53]free content buf [22:44:53]Sock 9.Close socket [22:44:53]Sock 9.Thread stoped [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:47]accept exits with 7 [22:45:47]New connection [22:45:47]New thread 3067489636 created [22:45:47]Thread 3067632996 joined [22:45:47]Waiting for new connection... [22:45:47] Sock 7.Parse request [22:45:47]Sock 7.Check first char [22:45:47]Sock 7.First char is OK [22:45:47]request: POST /json_proto HTTP/1.0 [22:45:47]Method: POST [22:45:47]URL: /json_proto [22:45:47]Method is POST - this is cgi request [22:45:47]url: /json_proto [22:45:47]query_string will be loaded in cgi processing [22:45:47]execute_cgi json_proto POST (null) [22:45:47]execute_cgi path=json_proto method=POST [22:45:47]POST find Content-Length [22:45:47]Host: 172.17.56.4:8080 [22:45:47]Content-Length: 840 [22:45:47]Content-Type: application/json [22:45:47] [22:45:47]POST finish read [22:45:47]Found Content-Length = 840 [22:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:47]execute_script... [22:45: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)458506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:47]POST & json_proto [22:45:47]process_json_proto [22:45:47]json parsed OK: [22:45:47]protocol is kg_v1.0 [22:45:47]action value=close_receipt [22:45:47]process_action close_receipt [22:45:47]cmd_close_receipt [22:45:47]MH_GetDate [22:45:47]Write to MH i2c: F0 00 00 05 05 F9 [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: F0 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: F0 09 00 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: F0 09 00 05 05 00 1D B2 91 66 C9 DC B2 64 83 [22:45:47]GetLastDocTimeStamp 1720824290 [22:45:47]current date 1720824349 [22:45:47]FM_GetShiftState [22:45:47]SAM_PROTO_GetShiftState [22:45:47]wFMCommunicate request_size=4 [22:45:47]MH_SAM_APDU [22:45:47]CAPDU: 80 13 01 00 [22:45:47]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:47]Read from MH i2c: E2 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: E2 0E 00 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D2 [22:45:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:45:47]wFMCommunicate OK [22:45:47]SAM_PROTO_GetShiftState done [22:45:47]FM_GetShiftState done [22:45:47]opened in 1720744654 [22:45:47]opened+sec_in_day 1720831054 [22:45:47]quantity*price = 40045 [22:45:47]sum+1 = 40046 [22:45:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.45 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 339 12.07.2024 22:45 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164418 ФПД: 256038828619163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T224549&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164418&fm=256038828619163&tin=02508201610067®Number=0000000000090829&sum=40045 [22:45:49]StoreToDocumentArchive [22:45:49]shift 445 fd 164418 [22:45:49]save to /storage/0445/doc_00164418 [22:45:49]save last doc name /storage/0445/doc_00164418 to /storage/kkm_last_doc_name [22:45:49]save OK [22:45:49]Clear old archive folders... [22:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:49]tlvbuf is 00CA35F0 [22:45:49]SAM_PROTO_ClearQueue [22:45:49]wFMCommunicate request_size=4 [22:45:49]MH_SAM_APDU [22:45:49]CAPDU: 80 09 00 00 [22:45:49]Write to MH i2c: E2 08 00 13 05 80 09 00 00 00 00 00 00 8A [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 03 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [22:45:49]RAPDU: 90 00 [22:45:49]wFMCommunicate OK [22:45:49]SAM_PROTO_ClearQueue done [22:45:49]KKMCreateOFDPacket [22:45:49]OFDProtocolAddRootSTLVToBuf [22:45:49]FM_MakeSignedData [22:45:49]FM_MakeSignedData [22:45:49]SAM_PROTO_SignData [22:45:49]wFMCommunicate request_size=4 [22:45:49]MH_SAM_APDU [22:45:49]CAPDU: 80 0D 01 02 [22:45:49]Write to MH i2c: E2 08 00 14 05 80 0D 01 02 00 00 00 00 92 [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 03 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [22:45:49]RAPDU: 90 00 [22:45:49]wFMCommunicate OK [22:45:49]wFMCommunicate request_size=255 [22:45:49]MH_SAM_APDU [22:45: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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 1D B2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 82 02 00 35 04 06 00 E8 [22:45:49]Write to MH i2c: E2 02 01 15 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 1D B2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 82 02 00 35 04 06 00 E8 00 00 F9 [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 03 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [22:45:49]RAPDU: 90 00 [22:45:49]wFMCommunicate OK [22:45:49]wFMCommunicate request_size=10 [22:45:49]MH_SAM_APDU [22:45:49]CAPDU: 80 0D 02 02 05 DD AF 6D B5 9B [22:45:49]Write to MH i2c: E2 0D 00 16 05 80 0D 02 02 05 00 DD AF 6D B5 9B 00 00 E8 [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 03 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [22:45:49]RAPDU: 90 00 [22:45:49]wFMCommunicate OK [22:45:49]wFMCommunicate request_size=4 [22:45:49]MH_SAM_APDU [22:45:49]CAPDU: 80 0D 03 02 [22:45:49]Write to MH i2c: E2 08 00 17 05 80 0D 03 02 00 00 00 00 97 [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 0B 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 0B 00 17 05 00 16 D6 0D B3 9B 74 B3 B8 90 00 BE [22:45:49]RAPDU: 16 D6 0D B3 9B 74 B3 B8 90 00 [22:45:49]wFMCommunicate OK [22:45:49]SAM_PROTO_SignData done [22:45:49]FM_MakeSignedData done [22:45:49]CreateOFDProtocolMessage [22:45:49]wFMCommunicate request_size=4 [22:45:49]MH_SAM_APDU [22:45:49]CAPDU: 80 11 00 00 [22:45:49]Write to MH i2c: E2 08 00 18 05 80 11 00 00 00 00 00 00 97 [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 17 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 17 00 18 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [22:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:45:49]wFMCommunicate OK [22:45:49]CreateOFDProtocolMessage done [22:45:49]OFDSenderStorePacket 164418 [22:45:49]StoreOFDPacket docnum=164418 [22:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E7 88 07 01 F4 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 1D B2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 82 02 00 35 04 06 00 E8 DD AF 6D B5 9B 16 D6 0D B3 9B 74 B3 B8 [22:45:49]CheckFolder [22:45:49]dirname=/storage/ofd_packets [22:45:49]CheckFolder done [22:45:49]ProducePacketName [22:45:49]name=ofd_packets/00164418 [22:45:49]NVStorageSaveData ofd_packets/00164418 [22:45:49]File name is /storage/ofd_packets/00164418 [22:45:49]Write 301 bytes [22:45:49]NVStorageSaveData done [22:45:49]OFDSenderStorePacket done [22:45:49]KKMCreateOFDPacket done [22:45:49]NVStorageSaveData kkm_last_timestamp [22:45:49]File name is /storage/kkm_last_timestamp [22:45:49]Write 4 bytes [22:45:49]NVStorageSaveData done [22:45:49]ExternCall_PrintAddStr [22:45:49]wPrintStart [22:45:49]Write to MH i2c: 01 00 00 19 05 1E [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: 01 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: 01 07 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [22:45:49]RasterBufferAndPrint [22:45:49]line Счет N : (1)458506 [22:45:49]line ИНН: 02508201610067 [22:45:49]line Контрольно-Кассовый Чек [22:45:49]line ПРОДАЖА [22:45:49]line ТРК (МРК, ГНК) : 12 [22:45:49]line Товар: 2710124130 [22:45:49]line Аи-92-К-5 [22:45:49]line 6.140 * 65.22 [22:45:49]line = 400.45 [22:45:49]line НДС 12% НСП 1% [22:45:49]line > о реализуемом товаре [22:45:49]line ИТОГО: 400.45 [22:45:49]line НСП 1% : 3.54 [22:45:49]line НДС 12% : 42.53 [22:45:49]line Наличными: 0.00 [22:45:49]line Безнал.: 400.45 [22:45:49]line Место: АЗС № 72 "Партнер Нефть" [22:45:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:45:49]line СНО: Общий режим [22:45:49]line Чек 339 12.07.2024 22:45 [22:45:49]line Смена: 445 ФФД: 1.0 [22:45:49]line ЗНМ: 0300000160 [22:45:49]line РНМ: 0000000000090829 [22:45:49]line Версия ККМ: 001 [22:45:49]line Платежная система: АКБ Кыргызстан [22:45:49]line ФМ: 0000000000874718 [22:45:49]line ФД: 164418 [22:45:49]line ФПД: 256038828619163 [22:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T224549&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164418&fm=256038828619163&tin=02508201610067®Number=0000000000090829&sum=40045 [22:45:49]written 0, free lines is 4095 [22:45:49]OFD Sender: Processing packet 164418 [packets to send 104, broken 103] [22:45:49]ProducePacketName [22:45:49]name=ofd_packets/00164418 [22:45:49]OFD Sender: To server: pG, [22:45:49]CommunicateWithHost lk.salyk.kg:30040 [22:45:49]ConnectInit lk.salyk.kg [22:45:50]Connected sock=10 [22:45:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E7 88 07 01 F4 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 1D B2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 82 02 00 35 04 06 00 E8 DD AF 6D B5 9B 16 D6 0D B3 9B 74 B3 B8 [22:45:50]Write to MH i2c: 01 00 00 42 05 47 [22:45:50]Write i2c OK [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: 01 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: 01 07 00 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 0A 0D 65 [22:45:50]RasterBufferAndPrint [22:45:50]line [22:45:50]line [22:45:50]line [22:45:50]line [22:45:50]line [22:45:50]written 0, free lines is 3344 [22:45:50]MH_Cut [22:45:50]Write to MH i2c: D1 01 00 49 05 01 20 [22:45:50]Write i2c OK [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: D1 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: D1 01 00 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: D1 01 00 49 05 00 1F [22:45:50]Write to MH i2c: 01 00 00 4A 05 4F [22:45:50]Write i2c OK [22:45:50]MH_I2C_Read... [22:45:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 E6 47 00 34 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 34 37 31 38 10 04 04 00 42 82 02 00 F4 03 04 00 B0 58 91 66 B6 04 01 00 00 E8 02 00 BB C5 BB BE AE [22:45:50]CommunicateWithHost err = 0 [22:45:50]CheckOFDResponse [22:45:50]1017 (14) - 77093643461234 [22:45:50]1041 (16) - 0000000000874718 [22:45:50]1040 (4) - 164418 [22:45:50]1012 (4) - 12.07.2024 16:24 [22:45:50]1206 (1) - 0 [22:45:50]OFD Sender: Remove packet 164418 [22:45:50]ProducePacketName [22:45:50]name=ofd_packets/00164418 [22:45:50]NVStorageDeleteData [22:45:50]*** Cut start [22:45:50]*** Partial cut [22:45:50]*** CUTSNS_PIN = 1 [22:45:50]*** CUTSNS_PIN = 0 [22:45:50]OFD Sender: No OFD packet to send [22:45:50]*** Brake cut motor [22:45:51]Read from MH i2c: 01 [22:45:51]MH_I2C_Read... [22:45:51]*** Stop cut motor [22:45:51]*** Cut end [22:45:51]Read from MH i2c: 01 07 00 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [22:45:51]process_action close_receipt done [22:45:51]requested_data is exist [22:45:51]produce_requested_data [22:45:51]requested_item fm.sn is exist - process it [22:45:51]wFMCommunicate request_size=4 [22:45:51]MH_SAM_APDU [22:45:51]CAPDU: 80 11 00 00 [22:45:51]Write to MH i2c: E2 08 00 4B 05 80 11 00 00 00 00 00 00 CA [22:45:51]Write i2c OK [22:45:51]MH_I2C_Read... [22:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:51]Read from MH i2c: E2 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 17 00 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 17 00 4B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [22:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:45:51]wFMCommunicate OK [22:45:51]requested_item fd.num is exist - process it [22:45:51]SAM_PROTO_GetFieldsCounters [22:45:51]wFMCommunicate request_size=4 [22:45:51]MH_SAM_APDU [22:45:51]CAPDU: 80 13 00 00 [22:45:51]Write to MH i2c: E2 08 00 4C 05 80 13 00 00 00 00 00 00 CD [22:45:51]Write i2c OK [22:45:51]MH_I2C_Read... [22:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:51]Read from MH i2c: E2 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 62 00 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 62 00 4C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [22:45: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:51]wFMCommunicate OK [22:45:51]SAM_PROTO_GetFieldsCounters done [22:45:51]requested_item shift.num is exist - process it [22:45:51]requested_item shift.opened is exist - process it [22:45:51]req_shift_opened [22:45:51]FM_GetShiftState [22:45:51]SAM_PROTO_GetShiftState [22:45:51]wFMCommunicate request_size=4 [22:45:51]MH_SAM_APDU [22:45:51]CAPDU: 80 13 01 00 [22:45:51]Write to MH i2c: E2 08 00 4D 05 80 13 01 00 00 00 00 00 CF [22:45:51]Write i2c OK [22:45:51]MH_I2C_Read... [22:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:51]Read from MH i2c: E2 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 0E 00 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 0E 00 4D 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 19 [22:45:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:45:51]wFMCommunicate OK [22:45:51]SAM_PROTO_GetShiftState done [22:45:51]FM_GetShiftState done [22:45:51]req_shift_opened done [22:45:51]requested_item shift.open_date is exist - process it [22:45:51]req_shift_open_date [22:45:51]req_shift_open_date done [22:45:51]produce_requested_data done [22:45:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164418,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:45:51]process_action_free close_receipt [22:45:51]json_value_free [22:45:51]json_value_free done [22:45:51]process_json_proto returns [22:45:51]Send response to host [22:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164418,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:45:51]free response buf [22:45:51]execute_script done [22:45:51]execute_script returns [22:45:51]free content buf [22:45:51]Sock 7.Close socket [22:45:51]Sock 7.Thread stoped [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:43]accept exits with 9 [22:48:43]New connection [22:48:43]New thread 3067632996 created [22:48:43]Thread 3067489636 joined [22:48:43]Waiting for new connection... [22:48:43] Sock 9.Parse request [22:48:43]Sock 9.Check first char [22:48:43]Sock 9.First char is OK [22:48:43]request: POST /json_proto HTTP/1.0 [22:48:43]Method: POST [22:48:43]URL: /json_proto [22:48:43]Method is POST - this is cgi request [22:48:43]url: /json_proto [22:48:43]query_string will be loaded in cgi processing [22:48:43]execute_cgi json_proto POST (null) [22:48:43]execute_cgi path=json_proto method=POST [22:48:43]POST find Content-Length [22:48:43]Host: 172.17.56.4:8080 [22:48:43]Content-Length: 677 [22:48:43]Content-Type: application/json [22:48:43] [22:48:43]POST finish read [22:48:43]Found Content-Length = 677 [22:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:43]execute_script... [22:48: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)458507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:43]POST & json_proto [22:48:43]process_json_proto [22:48:43]json parsed OK: [22:48:43]protocol is kg_v1.0 [22:48:43]action value=close_receipt [22:48:43]process_action close_receipt [22:48:43]cmd_close_receipt [22:48:43]MH_GetDate [22:48:43]Write to MH i2c: F0 00 00 4E 05 42 [22:48:43]Write i2c OK [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: F0 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: F0 09 00 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: F0 09 00 4E 05 00 CC B2 91 66 C9 DC B2 64 7B [22:48:43]GetLastDocTimeStamp 1720824349 [22:48:43]current date 1720824524 [22:48:43]FM_GetShiftState [22:48:43]SAM_PROTO_GetShiftState [22:48:43]wFMCommunicate request_size=4 [22:48:43]MH_SAM_APDU [22:48:43]CAPDU: 80 13 01 00 [22:48:43]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [22:48:43]Write i2c OK [22:48:43]MH_I2C_Read... [22:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:43]Read from MH i2c: E2 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: E2 0E 00 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 1B [22:48:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:48:43]wFMCommunicate OK [22:48:43]SAM_PROTO_GetShiftState done [22:48:43]FM_GetShiftState done [22:48:43]opened in 1720744654 [22:48:43]opened+sec_in_day 1720831054 [22:48:43]quantity*price = 50008 [22:48:43]sum+1 = 50009 [22:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 340 12.07.2024 22:48 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164419 ФПД: 207350960494025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T224844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164419&fm=207350960494025&tin=02508201610067®Number=0000000000090829&sum=50000 [22:48:44]StoreToDocumentArchive [22:48:44]shift 445 fd 164419 [22:48:44]save to /storage/0445/doc_00164419 [22:48:44]save last doc name /storage/0445/doc_00164419 to /storage/kkm_last_doc_name [22:48:44]save OK [22:48:44]Clear old archive folders... [22:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:48:44]tlvbuf is 00CA41D0 [22:48:44]SAM_PROTO_ClearQueue [22:48:44]wFMCommunicate request_size=4 [22:48:44]MH_SAM_APDU [22:48:44]CAPDU: 80 09 00 00 [22:48:44]Write to MH i2c: E2 08 00 5C 05 80 09 00 00 00 00 00 00 D3 [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [22:48:44]RAPDU: 90 00 [22:48:44]wFMCommunicate OK [22:48:44]SAM_PROTO_ClearQueue done [22:48:44]KKMCreateOFDPacket [22:48:44]OFDProtocolAddRootSTLVToBuf [22:48:44]FM_MakeSignedData [22:48:44]FM_MakeSignedData [22:48:44]SAM_PROTO_SignData [22:48:44]wFMCommunicate request_size=4 [22:48:44]MH_SAM_APDU [22:48:44]CAPDU: 80 0D 01 02 [22:48:44]Write to MH i2c: E2 08 00 5D 05 80 0D 01 02 00 00 00 00 DB [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [22:48:44]RAPDU: 90 00 [22:48:44]wFMCommunicate OK [22:48:44]wFMCommunicate request_size=255 [22:48:44]MH_SAM_APDU [22:48: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 01 00 00 F4 03 04 00 CC B2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 82 02 00 35 04 06 00 BC [22:48:44]Write to MH i2c: E2 02 01 5E 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 01 00 00 F4 03 04 00 CC B2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 82 02 00 35 04 06 00 BC 00 00 5F [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [22:48:44]RAPDU: 90 00 [22:48:44]wFMCommunicate OK [22:48:44]wFMCommunicate request_size=10 [22:48:44]MH_SAM_APDU [22:48:44]CAPDU: 80 0D 02 02 05 95 A8 58 15 C9 [22:48:44]Write to MH i2c: E2 0D 00 5F 05 80 0D 02 02 05 00 95 A8 58 15 C9 00 00 5B [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:45]Read from MH i2c: E2 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 03 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [22:48:45]RAPDU: 90 00 [22:48:45]wFMCommunicate OK [22:48:45]wFMCommunicate request_size=4 [22:48:45]MH_SAM_APDU [22:48:45]CAPDU: 80 0D 03 02 [22:48:45]Write to MH i2c: E2 08 00 60 05 80 0D 03 02 00 00 00 00 E0 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:45]Read from MH i2c: E2 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 0B 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 0B 00 60 05 00 E8 FE AF 85 D9 68 3D 15 90 00 8E [22:48:45]RAPDU: E8 FE AF 85 D9 68 3D 15 90 00 [22:48:45]wFMCommunicate OK [22:48:45]SAM_PROTO_SignData done [22:48:45]FM_MakeSignedData done [22:48:45]CreateOFDProtocolMessage [22:48:45]wFMCommunicate request_size=4 [22:48:45]MH_SAM_APDU [22:48:45]CAPDU: 80 11 00 00 [22:48:45]Write to MH i2c: E2 08 00 61 05 80 11 00 00 00 00 00 00 E0 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:45]Read from MH i2c: E2 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 17 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: E2 17 00 61 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [22:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:48:45]wFMCommunicate OK [22:48:45]CreateOFDProtocolMessage done [22:48:45]OFDSenderStorePacket 164419 [22:48:45]StoreOFDPacket docnum=164419 [22:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B4 77 07 01 ED AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 01 00 00 F4 03 04 00 CC B2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 82 02 00 35 04 06 00 BC 95 A8 58 15 C9 E8 FE AF 85 D9 68 3D 15 [22:48:45]CheckFolder [22:48:45]dirname=/storage/ofd_packets [22:48:45]CheckFolder done [22:48:45]ProducePacketName [22:48:45]name=ofd_packets/00164419 [22:48:45]NVStorageSaveData ofd_packets/00164419 [22:48:45]File name is /storage/ofd_packets/00164419 [22:48:45]Write 301 bytes [22:48:45]NVStorageSaveData done [22:48:45]OFDSenderStorePacket done [22:48:45]KKMCreateOFDPacket done [22:48:45]NVStorageSaveData kkm_last_timestamp [22:48:45]File name is /storage/kkm_last_timestamp [22:48:45]Write 4 bytes [22:48:45]NVStorageSaveData done [22:48:45]ExternCall_PrintAddStr [22:48:45]wPrintStart [22:48:45]Write to MH i2c: 01 00 00 62 05 67 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 07 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 FF 0F 7C [22:48:45]RasterBufferAndPrint [22:48:45]line Счет N : (1)458507 [22:48:45]line ИНН: 02508201610067 [22:48:45]line Контрольно-Кассовый Чек [22:48:45]line ПРОДАЖА [22:48:45]line ТРК (МРК, ГНК) : 12 [22:48:45]line Товар: 2710124130 [22:48:45]line Аи-92-К-5 [22:48:45]line 7.600 * 65.80 [22:48:45]line = 500.08 [22:48:45]line НДС 12% НСП 1% [22:48:45]line > о реализуемом товаре [22:48:45]line ОКРУГЛЕНИЕ: -0.08 [22:48:45]line ИТОГО: 500.00 [22:48:45]line Внесено: 500.00 [22:48:45]line СДАЧА: 0.00 [22:48:45]line НСП 1% : 4.42 [22:48:45]line НДС 12% : 53.11 [22:48:45]line Наличными: 500.00 [22:48:45]line Безнал.: 0.00 [22:48:45]line Место: АЗС № 72 "Партнер Нефть" [22:48:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:48:45]line СНО: Общий режим [22:48:45]line Чек 340 12.07.2024 22:48 [22:48:45]line Смена: 445 ФФД: 1.0 [22:48:45]line ЗНМ: 0300000160 [22:48:45]line РНМ: 0000000000090829 [22:48:45]line Версия ККМ: 001 [22:48:45]line ФМ: 0000000000874718 [22:48:45]line ФД: 164419 [22:48:45]line ФПД: 207350960494025 [22:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T224844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164419&fm=207350960494025&tin=02508201610067®Number=0000000000090829&sum=50000 [22:48:45]OFD Sender: Processing packet 164419 [packets to send 104, broken 103] [22:48:45]ProducePacketName [22:48:45]name=ofd_packets/00164419 [22:48:45]OFD Sender: To server: pG, [22:48:45]CommunicateWithHost lk.salyk.kg:30040 [22:48:45]ConnectInit lk.salyk.kg [22:48:45]written 0, free lines is 4095 [22:48:45]Connected sock=10 [22:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B4 77 07 01 ED AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 01 00 00 F4 03 04 00 CC B2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 82 02 00 35 04 06 00 BC 95 A8 58 15 C9 E8 FE AF 85 D9 68 3D 15 [22:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 74 99 47 00 E3 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 82 02 00 F4 03 04 00 5F 59 91 66 B6 04 01 00 00 63 7E 8A 8A CD 1B A8 EE [22:48:45]CommunicateWithHost err = 0 [22:48:45]CheckOFDResponse [22:48:45]1017 (14) - 77093643461234 [22:48:45]1041 (16) - 0000000000874718 [22:48:45]1040 (4) - 164419 [22:48:45]1012 (4) - 12.07.2024 16:27 [22:48:45]1206 (1) - 0 [22:48:45]OFD Sender: Remove packet 164419 [22:48:45]ProducePacketName [22:48:45]name=ofd_packets/00164419 [22:48:45]NVStorageDeleteData [22:48:45]Write to MH i2c: 01 00 00 8C 05 91 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 07 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 F0 0C 94 [22:48:45]RasterBufferAndPrint [22:48:45]line [22:48:45]line [22:48:45]line [22:48:45]line [22:48:45]line [22:48:45]written 0, free lines is 3319 [22:48:45]MH_Cut [22:48:45]Write to MH i2c: D1 01 00 93 05 01 6A [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: D1 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: D1 01 00 [22:48:45]MH_I2C_Read... [22:48:45]Read from MH i2c: D1 01 00 93 05 00 69 [22:48:45]Write to MH i2c: 01 00 00 94 05 99 [22:48:45]Write i2c OK [22:48:45]MH_I2C_Read... [22:48:46]OFD Sender: No OFD packet to send [22:48:46]*** Cut start [22:48:46]*** Partial cut [22:48:46]*** CUTSNS_PIN = 1 [22:48:46]*** CUTSNS_PIN = 0 [22:48:46]*** Brake cut motor [22:48:47]Read from MH i2c: 01 [22:48:47]MH_I2C_Read... [22:48:47]*** Stop cut motor [22:48:47]*** Cut end [22:48:47]Read from MH i2c: 01 07 00 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [22:48:47]process_action close_receipt done [22:48:47]requested_data is exist [22:48:47]produce_requested_data [22:48:47]requested_item fm.sn is exist - process it [22:48:47]wFMCommunicate request_size=4 [22:48:47]MH_SAM_APDU [22:48:47]CAPDU: 80 11 00 00 [22:48:47]Write to MH i2c: E2 08 00 95 05 80 11 00 00 00 00 00 00 14 [22:48:47]Write i2c OK [22:48:47]MH_I2C_Read... [22:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:47]Read from MH i2c: E2 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 17 00 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 17 00 95 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [22:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:48:47]wFMCommunicate OK [22:48:47]requested_item fd.num is exist - process it [22:48:47]SAM_PROTO_GetFieldsCounters [22:48:47]wFMCommunicate request_size=4 [22:48:47]MH_SAM_APDU [22:48:47]CAPDU: 80 13 00 00 [22:48:47]Write to MH i2c: E2 08 00 96 05 80 13 00 00 00 00 00 00 17 [22:48:47]Write i2c OK [22:48:47]MH_I2C_Read... [22:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:47]Read from MH i2c: E2 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 62 00 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 62 00 96 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [22:48: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:47]wFMCommunicate OK [22:48:47]SAM_PROTO_GetFieldsCounters done [22:48:47]requested_item shift.num is exist - process it [22:48:47]requested_item shift.opened is exist - process it [22:48:47]req_shift_opened [22:48:47]FM_GetShiftState [22:48:47]SAM_PROTO_GetShiftState [22:48:47]wFMCommunicate request_size=4 [22:48:47]MH_SAM_APDU [22:48:47]CAPDU: 80 13 01 00 [22:48:47]Write to MH i2c: E2 08 00 97 05 80 13 01 00 00 00 00 00 19 [22:48:47]Write i2c OK [22:48:47]MH_I2C_Read... [22:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:47]Read from MH i2c: E2 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 0E 00 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 0E 00 97 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 63 [22:48:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:48:47]wFMCommunicate OK [22:48:47]SAM_PROTO_GetShiftState done [22:48:47]FM_GetShiftState done [22:48:47]req_shift_opened done [22:48:47]requested_item shift.open_date is exist - process it [22:48:47]req_shift_open_date [22:48:47]req_shift_open_date done [22:48:47]produce_requested_data done [22:48:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164419,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:48:47]process_action_free close_receipt [22:48:47]json_value_free [22:48:47]json_value_free done [22:48:47]process_json_proto returns [22:48:47]Send response to host [22:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164419,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:48:47]free response buf [22:48:47]execute_script done [22:48:47]execute_script returns [22:48:47]free content buf [22:48:47]Sock 9.Close socket [22:48:47]Sock 9.Thread stoped [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:19]accept exits with 7 [22:52:19]New connection [22:52:19]New thread 3067489636 created [22:52:19]Thread 3067632996 joined [22:52:19]Waiting for new connection... [22:52:19] Sock 7.Parse request [22:52:19]Sock 7.Check first char [22:52:19]Sock 7.First char is OK [22:52:19]request: POST /json_proto HTTP/1.0 [22:52:19]Method: POST [22:52:19]URL: /json_proto [22:52:19]Method is POST - this is cgi request [22:52:19]url: /json_proto [22:52:19]query_string will be loaded in cgi processing [22:52:19]execute_cgi json_proto POST (null) [22:52:19]execute_cgi path=json_proto method=POST [22:52:19]POST find Content-Length [22:52:19]Host: 172.17.56.4:8080 [22:52:19]Content-Length: 682 [22:52:19]Content-Type: application/json [22:52:19] [22:52:19]POST finish read [22:52:19]Found Content-Length = 682 [22:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:19]execute_script... [22:52: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)458508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:19]POST & json_proto [22:52:19]process_json_proto [22:52:19]json parsed OK: [22:52:19]protocol is kg_v1.0 [22:52:19]action value=close_receipt [22:52:19]process_action close_receipt [22:52:19]cmd_close_receipt [22:52:19]MH_GetDate [22:52:19]Write to MH i2c: F0 00 00 98 05 8C [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: F0 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: F0 09 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: F0 09 00 98 05 00 A4 B3 91 66 C9 DC B2 64 9E [22:52:19]GetLastDocTimeStamp 1720824524 [22:52:19]current date 1720824740 [22:52:19]FM_GetShiftState [22:52:19]SAM_PROTO_GetShiftState [22:52:19]wFMCommunicate request_size=4 [22:52:19]MH_SAM_APDU [22:52:19]CAPDU: 80 13 01 00 [22:52:19]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:19]Read from MH i2c: E2 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 0E 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 65 [22:52:19]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:52:19]wFMCommunicate OK [22:52:19]SAM_PROTO_GetShiftState done [22:52:19]FM_GetShiftState done [22:52:19]opened in 1720744654 [22:52:19]opened+sec_in_day 1720831054 [22:52:19]quantity*price = 100016 [22:52:19]sum+1 = 100017 [22:52: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 341 12.07.2024 22:52 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164420 ФПД: 84701981462484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T225220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164420&fm=84701981462484&tin=02508201610067®Number=0000000000090829&sum=100000 [22:52:20]StoreToDocumentArchive [22:52:20]shift 445 fd 164420 [22:52:20]save to /storage/0445/doc_00164420 [22:52:20]save last doc name /storage/0445/doc_00164420 to /storage/kkm_last_doc_name [22:52:20]save OK [22:52:20]Clear old archive folders... [22:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:52:20]tlvbuf is 00CA6370 [22:52:20]SAM_PROTO_ClearQueue [22:52:20]wFMCommunicate request_size=4 [22:52:20]MH_SAM_APDU [22:52:20]CAPDU: 80 09 00 00 [22:52:20]Write to MH i2c: E2 08 00 A6 05 80 09 00 00 00 00 00 00 1D [22:52:20]Write i2c OK [22:52:20]MH_I2C_Read... [22:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:20]Read from MH i2c: E2 [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: E2 03 00 [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [22:52:20]RAPDU: 90 00 [22:52:20]wFMCommunicate OK [22:52:20]SAM_PROTO_ClearQueue done [22:52:20]KKMCreateOFDPacket [22:52:20]OFDProtocolAddRootSTLVToBuf [22:52:20]FM_MakeSignedData [22:52:20]FM_MakeSignedData [22:52:20]SAM_PROTO_SignData [22:52:20]wFMCommunicate request_size=4 [22:52:20]MH_SAM_APDU [22:52:20]CAPDU: 80 0D 01 02 [22:52:20]Write to MH i2c: E2 08 00 A7 05 80 0D 01 02 00 00 00 00 25 [22:52:20]Write i2c OK [22:52:20]MH_I2C_Read... [22:52:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:20]Read from MH i2c: E2 [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: E2 03 00 [22:52:20]MH_I2C_Read... [22:52:20]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [22:52:20]RAPDU: 90 00 [22:52:20]wFMCommunicate OK [22:52:20]wFMCommunicate request_size=255 [22:52:20]MH_SAM_APDU [22:52: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A4 B3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 82 02 00 35 04 06 00 4D [22:52:20]Write to MH i2c: E2 02 01 A8 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A4 B3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 82 02 00 35 04 06 00 4D 00 00 B7 [22:52:21]Write i2c OK [22:52:21]MH_I2C_Read... [22:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:21]Read from MH i2c: E2 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: E2 03 00 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [22:52:21]RAPDU: 90 00 [22:52:21]wFMCommunicate OK [22:52:21]wFMCommunicate request_size=10 [22:52:21]MH_SAM_APDU [22:52:21]CAPDU: 80 0D 02 02 05 09 37 84 4F D4 [22:52:21]Write to MH i2c: E2 0D 00 A9 05 80 0D 02 02 05 00 09 37 84 4F D4 00 00 19 [22:52:21]Write i2c OK [22:52:21]MH_I2C_Read... [22:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:21]Read from MH i2c: E2 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: E2 03 00 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [22:52:21]RAPDU: 90 00 [22:52:21]wFMCommunicate OK [22:52:21]wFMCommunicate request_size=4 [22:52:21]MH_SAM_APDU [22:52:21]CAPDU: 80 0D 03 02 [22:52:21]Write to MH i2c: E2 08 00 AA 05 80 0D 03 02 00 00 00 00 2A [22:52:21]Write i2c OK [22:52:21]MH_I2C_Read... [22:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:21]Read from MH i2c: E2 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: E2 0B 00 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: E2 0B 00 AA 05 00 D9 7A D8 B5 33 9E 86 B2 90 00 14 [22:52:21]RAPDU: D9 7A D8 B5 33 9E 86 B2 90 00 [22:52:21]wFMCommunicate OK [22:52:21]SAM_PROTO_SignData done [22:52:21]FM_MakeSignedData done [22:52:21]CreateOFDProtocolMessage [22:52:21]wFMCommunicate request_size=4 [22:52:21]MH_SAM_APDU [22:52:21]CAPDU: 80 11 00 00 [22:52:21]Write to MH i2c: E2 08 00 AB 05 80 11 00 00 00 00 00 00 2A [22:52:21]Write i2c OK [22:52:21]MH_I2C_Read... [22:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:21]Read from MH i2c: E2 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: E2 17 00 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: E2 17 00 AB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [22:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:52:21]wFMCommunicate OK [22:52:21]CreateOFDProtocolMessage done [22:52:21]OFDSenderStorePacket 164420 [22:52:21]StoreOFDPacket docnum=164420 [22:52:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4E E2 07 01 55 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A4 B3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 82 02 00 35 04 06 00 4D 09 37 84 4F D4 D9 7A D8 B5 33 9E 86 B2 [22:52:21]CheckFolder [22:52:21]dirname=/storage/ofd_packets [22:52:21]CheckFolder done [22:52:21]ProducePacketName [22:52:21]name=ofd_packets/00164420 [22:52:21]NVStorageSaveData ofd_packets/00164420 [22:52:21]File name is /storage/ofd_packets/00164420 [22:52:21]Write 301 bytes [22:52:21]NVStorageSaveData done [22:52:21]OFDSenderStorePacket done [22:52:21]KKMCreateOFDPacket done [22:52:21]NVStorageSaveData kkm_last_timestamp [22:52:21]File name is /storage/kkm_last_timestamp [22:52:21]Write 4 bytes [22:52:21]NVStorageSaveData done [22:52:21]ExternCall_PrintAddStr [22:52:21]wPrintStart [22:52:21]Write to MH i2c: 01 00 00 AC 05 B1 [22:52:21]Write i2c OK [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: 01 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: 01 07 00 [22:52:21]MH_I2C_Read... [22:52:21]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [22:52:21]RasterBufferAndPrint [22:52:21]line Счет N : (1)458508 [22:52:21]line ИНН: 02508201610067 [22:52:21]line Контрольно-Кассовый Чек [22:52:21]line ПРОДАЖА [22:52:21]line ТРК (МРК, ГНК) : 12 [22:52:21]line Товар: 2710124130 [22:52:21]line Аи-92-К-5 [22:52:21]line 15.200 * 65.80 [22:52:21]line = 1000.16 [22:52:21]line НДС 12% НСП 1% [22:52:21]line > о реализуемом товаре [22:52:21]line ОКРУГЛЕНИЕ: -0.16 [22:52:21]line ИТОГО: 1000.00 [22:52:21]line Внесено: 1000.00 [22:52:21]line СДАЧА: 0.00 [22:52:21]line НСП 1% : 8.85 [22:52:21]line НДС 12% : 106.21 [22:52:21]line Наличными: 1000.00 [22:52:21]line Безнал.: 0.00 [22:52:21]line Место: АЗС № 72 "Партнер Нефть" [22:52:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:52:21]line СНО: Общий режим [22:52:21]line Чек 341 12.07.2024 22:52 [22:52:21]line Смена: 445 ФФД: 1.0 [22:52:21]line ЗНМ: 0300000160 [22:52:21]line РНМ: 0000000000090829 [22:52:21]line Версия ККМ: 001 [22:52:21]line ФМ: 0000000000874718 [22:52:21]line ФД: 164420 [22:52:21]line ФПД: 84701981462484 [22:52:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T225220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164420&fm=84701981462484&tin=02508201610067®Number=0000000000090829&sum=100000 [22:52:21]written 0, free lines is 4095 [22:52:21]OFD Sender: Processing packet 164420 [packets to send 104, broken 103] [22:52:21]ProducePacketName [22:52:21]name=ofd_packets/00164420 [22:52:21]OFD Sender: To server: pG, [22:52:21]CommunicateWithHost lk.salyk.kg:30040 [22:52:21]ConnectInit lk.salyk.kg [22:52:21]Connected sock=9 [22:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4E E2 07 01 55 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A4 B3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 82 02 00 35 04 06 00 4D 09 37 84 4F D4 D9 7A D8 B5 33 9E 86 B2 [22:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 8E 47 00 66 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 34 37 31 38 10 04 04 00 44 82 02 00 F4 03 04 00 37 5A 91 66 B6 04 01 00 00 80 04 16 94 81 30 9A C7 [22:52:22]CommunicateWithHost err = 0 [22:52:22]CheckOFDResponse [22:52:22]1017 (14) - 77093643461234 [22:52:22]1041 (16) - 0000000000874718 [22:52:22]1040 (4) - 164420 [22:52:22]1012 (4) - 12.07.2024 16:30 [22:52:22]1206 (1) - 0 [22:52:22]OFD Sender: Remove packet 164420 [22:52:22]ProducePacketName [22:52:22]name=ofd_packets/00164420 [22:52:22]NVStorageDeleteData [22:52:22]Write to MH i2c: 01 00 00 D6 05 DB [22:52:22]Write i2c OK [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: 01 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: 01 07 00 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: 01 07 00 D6 05 00 00 00 00 00 F3 0C E1 [22:52:22]RasterBufferAndPrint [22:52:22]line [22:52:22]line [22:52:22]line [22:52:22]line [22:52:22]line [22:52:22]written 0, free lines is 3321 [22:52:22]MH_Cut [22:52:22]Write to MH i2c: D1 01 00 DD 05 01 B4 [22:52:22]Write i2c OK [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: D1 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: D1 01 00 [22:52:22]MH_I2C_Read... [22:52:22]Read from MH i2c: D1 01 00 DD 05 00 B3 [22:52:22]Write to MH i2c: 01 00 00 DE 05 E3 [22:52:22]Write i2c OK [22:52:22]MH_I2C_Read... [22:52:22]OFD Sender: No OFD packet to send [22:52:22]*** Cut start [22:52:22]*** Partial cut [22:52:22]*** CUTSNS_PIN = 1 [22:52:22]*** CUTSNS_PIN = 0 [22:52:23]*** Brake cut motor [22:52:23]Read from MH i2c: 01 [22:52:23]MH_I2C_Read... [22:52:23]*** Stop cut motor [22:52:23]*** Cut end [22:52:23]Read from MH i2c: 01 07 00 [22:52:23]MH_I2C_Read... [22:52:23]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 FF 0F F8 [22:52:23]process_action close_receipt done [22:52:23]requested_data is exist [22:52:23]produce_requested_data [22:52:23]requested_item fm.sn is exist - process it [22:52:23]wFMCommunicate request_size=4 [22:52:23]MH_SAM_APDU [22:52:23]CAPDU: 80 11 00 00 [22:52:23]Write to MH i2c: E2 08 00 DF 05 80 11 00 00 00 00 00 00 5E [22:52:23]Write i2c OK [22:52:23]MH_I2C_Read... [22:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:23]Read from MH i2c: E2 [22:52:23]MH_I2C_Read... [22:52:23]Read from MH i2c: E2 17 00 [22:52:23]MH_I2C_Read... [22:52:23]Read from MH i2c: E2 17 00 DF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [22:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:52:23]wFMCommunicate OK [22:52:23]requested_item fd.num is exist - process it [22:52:23]SAM_PROTO_GetFieldsCounters [22:52:23]wFMCommunicate request_size=4 [22:52:23]MH_SAM_APDU [22:52:23]CAPDU: 80 13 00 00 [22:52:23]Write to MH i2c: E2 08 00 E0 05 80 13 00 00 00 00 00 00 61 [22:52:23]Write i2c OK [22:52:23]MH_I2C_Read... [22:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:52:23]Read from MH i2c: E2 [22:52:23]MH_I2C_Read... [22:52:23]Read from MH i2c: E2 62 00 [22:52:23]MH_I2C_Read... [22:52:23]Read from MH i2c: E2 62 00 E0 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:52: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:52:23]wFMCommunicate OK [22:52:23]SAM_PROTO_GetFieldsCounters done [22:52:23]requested_item shift.num is exist - process it [22:52:23]requested_item shift.opened is exist - process it [22:52:23]req_shift_opened [22:52:23]FM_GetShiftState [22:52:23]SAM_PROTO_GetShiftState [22:52:23]wFMCommunicate request_size=4 [22:52:23]MH_SAM_APDU [22:52:23]CAPDU: 80 13 01 00 [22:52:23]Write to MH i2c: E2 08 00 E1 05 80 13 01 00 00 00 00 00 63 [22:52:23]Write i2c OK [22:52:23]MH_I2C_Read... [22:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:23]Read from MH i2c: E2 [22:52:23]MH_I2C_Read... [22:52:23]Read from MH i2c: E2 0E 00 [22:52:23]MH_I2C_Read... [22:52:23]Read from MH i2c: E2 0E 00 E1 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AD [22:52:23]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:52:23]wFMCommunicate OK [22:52:23]SAM_PROTO_GetShiftState done [22:52:23]FM_GetShiftState done [22:52:23]req_shift_opened done [22:52:23]requested_item shift.open_date is exist - process it [22:52:23]req_shift_open_date [22:52:23]req_shift_open_date done [22:52:23]produce_requested_data done [22:52:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164420,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:52:23]process_action_free close_receipt [22:52:23]json_value_free [22:52:23]json_value_free done [22:52:23]process_json_proto returns [22:52:23]Send response to host [22:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164420,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:52:23]free response buf [22:52:23]execute_script done [22:52:23]execute_script returns [22:52:23]free content buf [22:52:23]Sock 7.Close socket [22:52:23]Sock 7.Thread stoped [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:43]accept exits with 10 [22:52:43]New connection [22:52:43]New thread 3067632996 created [22:52:43]Thread 3067489636 joined [22:52:43]Waiting for new connection... [22:52:43] Sock 10.Parse request [22:52:43]Sock 10.Check first char [22:52:43]Sock 10.First char is OK [22:52:43]request: POST /json_proto HTTP/1.0 [22:52:43]Method: POST [22:52:43]URL: /json_proto [22:52:43]Method is POST - this is cgi request [22:52:43]url: /json_proto [22:52:43]query_string will be loaded in cgi processing [22:52:43]execute_cgi json_proto POST (null) [22:52:43]execute_cgi path=json_proto method=POST [22:52:43]POST find Content-Length [22:52:43]Host: 172.17.56.4:8080 [22:52:43]Content-Length: 682 [22:52:43]Content-Type: application/json [22:52:43] [22:52:43]POST finish read [22:52:43]Found Content-Length = 682 [22:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:43]execute_script... [22:52: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)458509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:43]POST & json_proto [22:52:43]process_json_proto [22:52:43]json parsed OK: [22:52:43]protocol is kg_v1.0 [22:52:43]action value=close_receipt [22:52:43]process_action close_receipt [22:52:43]cmd_close_receipt [22:52:43]MH_GetDate [22:52:43]Write to MH i2c: F0 00 00 E2 05 D6 [22:52:43]Write i2c OK [22:52:43]MH_I2C_Read... [22:52:43]Read from MH i2c: F0 [22:52:43]MH_I2C_Read... [22:52:43]Read from MH i2c: F0 09 00 [22:52:43]MH_I2C_Read... [22:52:43]Read from MH i2c: F0 09 00 E2 05 00 BC B3 91 66 C9 DC B2 64 00 [22:52:43]GetLastDocTimeStamp 1720824740 [22:52:43]current date 1720824764 [22:52:43]FM_GetShiftState [22:52:43]SAM_PROTO_GetShiftState [22:52:43]wFMCommunicate request_size=4 [22:52:43]MH_SAM_APDU [22:52:43]CAPDU: 80 13 01 00 [22:52:43]Write to MH i2c: E2 08 00 E3 05 80 13 01 00 00 00 00 00 65 [22:52:43]Write i2c OK [22:52:43]MH_I2C_Read... [22:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:43]Read from MH i2c: E2 [22:52:43]MH_I2C_Read... [22:52:43]Read from MH i2c: E2 0E 00 [22:52:43]MH_I2C_Read... [22:52:43]Read from MH i2c: E2 0E 00 E3 05 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 AF [22:52:43]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:52:43]wFMCommunicate OK [22:52:43]SAM_PROTO_GetShiftState done [22:52:43]FM_GetShiftState done [22:52:43]opened in 1720744654 [22:52:43]opened+sec_in_day 1720831054 [22:52:43]quantity*price = 120019 [22:52:43]sum+1 = 120020 [22:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 342 12.07.2024 22:52 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164421 ФПД: 35030076446855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T225244&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164421&fm=35030076446855&tin=02508201610067®Number=0000000000090829&sum=120000 [22:52:44]StoreToDocumentArchive [22:52:44]shift 445 fd 164421 [22:52:44]save to /storage/0445/doc_00164421 [22:52:44]save last doc name /storage/0445/doc_00164421 to /storage/kkm_last_doc_name [22:52:44]save OK [22:52:44]Clear old archive folders... [22:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:52:44]tlvbuf is 00CE62C0 [22:52:44]SAM_PROTO_ClearQueue [22:52:44]wFMCommunicate request_size=4 [22:52:44]MH_SAM_APDU [22:52:44]CAPDU: 80 09 00 00 [22:52:44]Write to MH i2c: E2 08 00 F0 05 80 09 00 00 00 00 00 00 67 [22:52:44]Write i2c OK [22:52:44]MH_I2C_Read... [22:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:44]Read from MH i2c: E2 [22:52:44]MH_I2C_Read... [22:52:44]Read from MH i2c: E2 03 00 [22:52:44]MH_I2C_Read... [22:52:44]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [22:52:44]RAPDU: 90 00 [22:52:44]wFMCommunicate OK [22:52:44]SAM_PROTO_ClearQueue done [22:52:44]KKMCreateOFDPacket [22:52:44]OFDProtocolAddRootSTLVToBuf [22:52:44]FM_MakeSignedData [22:52:44]FM_MakeSignedData [22:52:44]SAM_PROTO_SignData [22:52:44]wFMCommunicate request_size=4 [22:52:44]MH_SAM_APDU [22:52:44]CAPDU: 80 0D 01 02 [22:52:44]Write to MH i2c: E2 08 00 F1 05 80 0D 01 02 00 00 00 00 6F [22:52:44]Write i2c OK [22:52:44]MH_I2C_Read... [22:52:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:44]Read from MH i2c: E2 [22:52:44]MH_I2C_Read... [22:52:44]Read from MH i2c: E2 03 00 [22:52:44]MH_I2C_Read... [22:52:44]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [22:52:44]RAPDU: 90 00 [22:52:44]wFMCommunicate OK [22:52:44]wFMCommunicate request_size=255 [22:52:44]MH_SAM_APDU [22:52: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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BC B3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 82 02 00 35 04 06 00 1F [22:52:44]Write to MH i2c: E2 02 01 F2 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BC B3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 82 02 00 35 04 06 00 1F 00 00 2C [22:52:44]Write i2c OK [22:52:44]MH_I2C_Read... [22:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:44]Read from MH i2c: E2 [22:52:44]MH_I2C_Read... [22:52:44]Read from MH i2c: E2 03 00 [22:52:44]MH_I2C_Read... [22:52:44]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [22:52:44]RAPDU: 90 00 [22:52:44]wFMCommunicate OK [22:52:44]wFMCommunicate request_size=10 [22:52:44]MH_SAM_APDU [22:52:44]CAPDU: 80 0D 02 02 05 DC 13 43 58 87 [22:52:44]Write to MH i2c: E2 0D 00 F3 05 80 0D 02 02 05 00 DC 13 43 58 87 00 00 8D [22:52:44]Write i2c OK [22:52:44]MH_I2C_Read... [22:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:45]Read from MH i2c: E2 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: E2 03 00 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [22:52:45]RAPDU: 90 00 [22:52:45]wFMCommunicate OK [22:52:45]wFMCommunicate request_size=4 [22:52:45]MH_SAM_APDU [22:52:45]CAPDU: 80 0D 03 02 [22:52:45]Write to MH i2c: E2 08 00 F4 05 80 0D 03 02 00 00 00 00 74 [22:52:45]Write i2c OK [22:52:45]MH_I2C_Read... [22:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:45]Read from MH i2c: E2 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: E2 0B 00 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: E2 0B 00 F4 05 00 F5 FB 98 CF 1E F1 D3 1D 90 00 CB [22:52:45]RAPDU: F5 FB 98 CF 1E F1 D3 1D 90 00 [22:52:45]wFMCommunicate OK [22:52:45]SAM_PROTO_SignData done [22:52:45]FM_MakeSignedData done [22:52:45]CreateOFDProtocolMessage [22:52:45]wFMCommunicate request_size=4 [22:52:45]MH_SAM_APDU [22:52:45]CAPDU: 80 11 00 00 [22:52:45]Write to MH i2c: E2 08 00 F5 05 80 11 00 00 00 00 00 00 74 [22:52:45]Write i2c OK [22:52:45]MH_I2C_Read... [22:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:45]Read from MH i2c: E2 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: E2 17 00 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: E2 17 00 F5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [22:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:52:45]wFMCommunicate OK [22:52:45]CreateOFDProtocolMessage done [22:52:45]OFDSenderStorePacket 164421 [22:52:45]StoreOFDPacket docnum=164421 [22:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 66 6C 07 01 7A 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BC B3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 82 02 00 35 04 06 00 1F DC 13 43 58 87 F5 FB 98 CF 1E F1 D3 1D [22:52:45]CheckFolder [22:52:45]dirname=/storage/ofd_packets [22:52:45]CheckFolder done [22:52:45]ProducePacketName [22:52:45]name=ofd_packets/00164421 [22:52:45]NVStorageSaveData ofd_packets/00164421 [22:52:45]File name is /storage/ofd_packets/00164421 [22:52:45]Write 301 bytes [22:52:45]NVStorageSaveData done [22:52:45]OFDSenderStorePacket done [22:52:45]KKMCreateOFDPacket done [22:52:45]NVStorageSaveData kkm_last_timestamp [22:52:45]File name is /storage/kkm_last_timestamp [22:52:45]Write 4 bytes [22:52:45]NVStorageSaveData done [22:52:45]OFD Sender: Processing packet 164421 [packets to send 104, broken 103] [22:52:45]ProducePacketName [22:52:45]name=ofd_packets/00164421 [22:52:45]OFD Sender: To server: pG, [22:52:45]CommunicateWithHost lk.salyk.kg:30040 [22:52:45]ConnectInit lk.salyk.kg [22:52:45]ExternCall_PrintAddStr [22:52:45]wPrintStart [22:52:45]Write to MH i2c: 01 00 00 F6 05 FB [22:52:45]Write i2c OK [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: 01 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: 01 07 00 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: 01 07 00 F6 05 00 00 00 00 00 FF 0F 10 [22:52:45]RasterBufferAndPrint [22:52:45]line Счет N : (1)458509 [22:52:45]line ИНН: 02508201610067 [22:52:45]line Контрольно-Кассовый Чек [22:52:45]line ПРОДАЖА [22:52:45]line ТРК (МРК, ГНК) : 22 [22:52:45]line Товар: 2710124130 [22:52:45]line Аи-92-К-5 [22:52:45]line 18.240 * 65.80 [22:52:45]line = 1200.19 [22:52:45]line НДС 12% НСП 1% [22:52:45]line > о реализуемом товаре [22:52:45]line ОКРУГЛЕНИЕ: -0.19 [22:52:45]line ИТОГО: 1200.00 [22:52:45]line Внесено: 1200.00 [22:52:45]line СДАЧА: 0.00 [22:52:45]line НСП 1% : 10.62 [22:52:45]line НДС 12% : 127.45 [22:52:45]line Наличными: 1200.00 [22:52:45]line Безнал.: 0.00 [22:52:45]line Место: АЗС № 72 "Партнер Нефть" [22:52:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:52:45]line СНО: Общий режим [22:52:45]line Чек 342 12.07.2024 22:52 [22:52:45]line Смена: 445 ФФД: 1.0 [22:52:45]line ЗНМ: 0300000160 [22:52:45]line РНМ: 0000000000090829 [22:52:45]line Версия ККМ: 001 [22:52:45]line ФМ: 0000000000874718 [22:52:45]line ФД: 164421 [22:52:45]line ФПД: 35030076446855 [22:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T225244&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164421&fm=35030076446855&tin=02508201610067®Number=0000000000090829&sum=120000 [22:52:45]Connected sock=11 [22:52:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 66 6C 07 01 7A 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BC B3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 82 02 00 35 04 06 00 1F DC 13 43 58 87 F5 FB 98 CF 1E F1 D3 1D [22:52:45]written 0, free lines is 4095 [22:52:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2A A2 47 00 DC 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 34 37 31 38 10 04 04 00 45 82 02 00 F4 03 04 00 4F 5A 91 66 B6 04 01 00 00 84 89 84 B8 3A 86 F5 9B [22:52:45]CommunicateWithHost err = 0 [22:52:45]CheckOFDResponse [22:52:45]1017 (14) - 77093643461234 [22:52:45]1041 (16) - 0000000000874718 [22:52:45]1040 (4) - 164421 [22:52:45]1012 (4) - 12.07.2024 16:31 [22:52:45]1206 (1) - 0 [22:52:45]OFD Sender: Remove packet 164421 [22:52:45]ProducePacketName [22:52:45]name=ofd_packets/00164421 [22:52:45]NVStorageDeleteData [22:52:45]Write to MH i2c: 01 00 00 20 06 26 [22:52:45]Write i2c OK [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: 01 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: 01 07 00 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: 01 07 00 20 06 00 00 00 00 00 FB 0C 34 [22:52:45]RasterBufferAndPrint [22:52:45]line [22:52:45]line [22:52:45]line [22:52:45]line [22:52:45]line [22:52:45]written 0, free lines is 3329 [22:52:45]MH_Cut [22:52:45]Write to MH i2c: D1 01 00 27 06 01 FF [22:52:45]Write i2c OK [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: D1 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: D1 01 00 [22:52:45]MH_I2C_Read... [22:52:45]Read from MH i2c: D1 01 00 27 06 00 FE [22:52:45]Write to MH i2c: 01 00 00 28 06 2E [22:52:45]Write i2c OK [22:52:45]MH_I2C_Read... [22:52:46]OFD Sender: No OFD packet to send [22:52:46]*** Cut start [22:52:46]*** Partial cut [22:52:46]*** CUTSNS_PIN = 1 [22:52:46]*** CUTSNS_PIN = 0 [22:52:46]*** Brake cut motor [22:52:47]Read from MH i2c: 01 [22:52:47]MH_I2C_Read... [22:52:47]*** Stop cut motor [22:52:47]*** Cut end [22:52:47]Read from MH i2c: 01 07 00 [22:52:47]MH_I2C_Read... [22:52:47]Read from MH i2c: 01 07 00 28 06 00 00 00 00 00 FF 0F 43 [22:52:47]process_action close_receipt done [22:52:47]requested_data is exist [22:52:47]produce_requested_data [22:52:47]requested_item fm.sn is exist - process it [22:52:47]wFMCommunicate request_size=4 [22:52:47]MH_SAM_APDU [22:52:47]CAPDU: 80 11 00 00 [22:52:47]Write to MH i2c: E2 08 00 29 06 80 11 00 00 00 00 00 00 A9 [22:52:47]Write i2c OK [22:52:47]MH_I2C_Read... [22:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:47]Read from MH i2c: E2 [22:52:47]MH_I2C_Read... [22:52:47]Read from MH i2c: E2 17 00 [22:52:47]MH_I2C_Read... [22:52:47]Read from MH i2c: E2 17 00 29 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FF [22:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:52:47]wFMCommunicate OK [22:52:47]requested_item fd.num is exist - process it [22:52:47]SAM_PROTO_GetFieldsCounters [22:52:47]wFMCommunicate request_size=4 [22:52:47]MH_SAM_APDU [22:52:47]CAPDU: 80 13 00 00 [22:52:47]Write to MH i2c: E2 08 00 2A 06 80 13 00 00 00 00 00 00 AC [22:52:47]Write i2c OK [22:52:47]MH_I2C_Read... [22:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:52:47]Read from MH i2c: E2 [22:52:47]MH_I2C_Read... [22:52:47]Read from MH i2c: E2 62 00 [22:52:47]MH_I2C_Read... [22:52:47]Read from MH i2c: E2 62 00 2A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [22:52: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:52:47]wFMCommunicate OK [22:52:47]SAM_PROTO_GetFieldsCounters done [22:52:47]requested_item shift.num is exist - process it [22:52:47]requested_item shift.opened is exist - process it [22:52:47]req_shift_opened [22:52:47]FM_GetShiftState [22:52:47]SAM_PROTO_GetShiftState [22:52:47]wFMCommunicate request_size=4 [22:52:47]MH_SAM_APDU [22:52:47]CAPDU: 80 13 01 00 [22:52:47]Write to MH i2c: E2 08 00 2B 06 80 13 01 00 00 00 00 00 AE [22:52:47]Write i2c OK [22:52:47]MH_I2C_Read... [22:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:47]Read from MH i2c: E2 [22:52:47]MH_I2C_Read... [22:52:47]Read from MH i2c: E2 0E 00 [22:52:47]MH_I2C_Read... [22:52:47]Read from MH i2c: E2 0E 00 2B 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 F8 [22:52:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:52:47]wFMCommunicate OK [22:52:47]SAM_PROTO_GetShiftState done [22:52:47]FM_GetShiftState done [22:52:47]req_shift_opened done [22:52:47]requested_item shift.open_date is exist - process it [22:52:47]req_shift_open_date [22:52:47]req_shift_open_date done [22:52:47]produce_requested_data done [22:52:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164421,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:52:47]process_action_free close_receipt [22:52:47]json_value_free [22:52:47]json_value_free done [22:52:47]process_json_proto returns [22:52:47]Send response to host [22:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164421,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:52:47]free response buf [22:52:47]execute_script done [22:52:47]execute_script returns [22:52:47]free content buf [22:52:47]Sock 10.Close socket [22:52:47]Sock 10.Thread stoped [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:31]accept exits with 7 [22:59:31]New connection [22:59:31]New thread 3067489636 created [22:59:31]Thread 3067632996 joined [22:59:31]Waiting for new connection... [22:59:31] Sock 7.Parse request [22:59:31]Sock 7.Check first char [22:59:31]Sock 7.First char is OK [22:59:31]request: POST /json_proto HTTP/1.0 [22:59:31]Method: POST [22:59:31]URL: /json_proto [22:59:31]Method is POST - this is cgi request [22:59:31]url: /json_proto [22:59:31]query_string will be loaded in cgi processing [22:59:31]execute_cgi json_proto POST (null) [22:59:31]execute_cgi path=json_proto method=POST [22:59:31]POST find Content-Length [22:59:31]Host: 172.17.56.4:8080 [22:59:31]Content-Length: 678 [22:59:31]Content-Type: application/json [22:59:31] [22:59:31]POST finish read [22:59:31]Found Content-Length = 678 [22:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.110, "sum" : 665.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:31]execute_script... [22:59:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.110, "sum" : 665.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:31]POST & json_proto [22:59:31]process_json_proto [22:59:31]json parsed OK: [22:59:31]protocol is kg_v1.0 [22:59:31]action value=close_receipt [22:59:31]process_action close_receipt [22:59:31]cmd_close_receipt [22:59:31]MH_GetDate [22:59:31]Write to MH i2c: F0 00 00 2C 06 21 [22:59:31]Write i2c OK [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: F0 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: F0 09 00 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: F0 09 00 2C 06 00 54 B5 91 66 C9 DC B2 64 E5 [22:59:31]GetLastDocTimeStamp 1720824764 [22:59:31]current date 1720825172 [22:59:31]FM_GetShiftState [22:59:31]SAM_PROTO_GetShiftState [22:59:31]wFMCommunicate request_size=4 [22:59:31]MH_SAM_APDU [22:59:31]CAPDU: 80 13 01 00 [22:59:31]Write to MH i2c: E2 08 00 2D 06 80 13 01 00 00 00 00 00 B0 [22:59:31]Write i2c OK [22:59:31]MH_I2C_Read... [22:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:31]Read from MH i2c: E2 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: E2 0E 00 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: E2 0E 00 2D 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 FA [22:59:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:59:31]wFMCommunicate OK [22:59:31]SAM_PROTO_GetShiftState done [22:59:31]FM_GetShiftState done [22:59:31]opened in 1720744654 [22:59:31]opened+sec_in_day 1720831054 [22:59:31]quantity*price = 66523 [22:59:31]sum+1 = 66525 [22:59:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 665.00 Внесено: 665.00 СДАЧА: 0.00 НСП 1% : 5.89 НДС 12% : 70.64 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 343 12.07.2024 22:59 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164422 ФПД: 143637093078601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T225932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164422&fm=143637093078601&tin=02508201610067®Number=0000000000090829&sum=66500 [22:59:32]StoreToDocumentArchive [22:59:32]shift 445 fd 164422 [22:59:32]save to /storage/0445/doc_00164422 [22:59:32]save last doc name /storage/0445/doc_00164422 to /storage/kkm_last_doc_name [22:59:32]save OK [22:59:32]Clear old archive folders... [22:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:59:32]tlvbuf is 00CC7D40 [22:59:32]SAM_PROTO_ClearQueue [22:59:32]wFMCommunicate request_size=4 [22:59:32]MH_SAM_APDU [22:59:32]CAPDU: 80 09 00 00 [22:59:32]Write to MH i2c: E2 08 00 3A 06 80 09 00 00 00 00 00 00 B2 [22:59:32]Write i2c OK [22:59:32]MH_I2C_Read... [22:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:32]Read from MH i2c: E2 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 03 00 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [22:59:32]RAPDU: 90 00 [22:59:32]wFMCommunicate OK [22:59:32]SAM_PROTO_ClearQueue done [22:59:32]KKMCreateOFDPacket [22:59:32]OFDProtocolAddRootSTLVToBuf [22:59:32]FM_MakeSignedData [22:59:32]FM_MakeSignedData [22:59:32]SAM_PROTO_SignData [22:59:32]wFMCommunicate request_size=4 [22:59:32]MH_SAM_APDU [22:59:32]CAPDU: 80 0D 01 02 [22:59:32]Write to MH i2c: E2 08 00 3B 06 80 0D 01 02 00 00 00 00 BA [22:59:32]Write i2c OK [22:59:32]MH_I2C_Read... [22:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:32]Read from MH i2c: E2 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 03 00 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [22:59:32]RAPDU: 90 00 [22:59:32]wFMCommunicate OK [22:59:32]wFMCommunicate request_size=255 [22:59:32]MH_SAM_APDU [22:59: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 7E 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DC 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 1B 00 00 00 00 07 04 06 00 C4 03 01 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 54 B5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 82 02 00 35 04 06 00 82 [22:59:32]Write to MH i2c: E2 02 01 3C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DC 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 1B 00 00 00 00 07 04 06 00 C4 03 01 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 54 B5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 82 02 00 35 04 06 00 82 00 00 10 [22:59:32]Write i2c OK [22:59:32]MH_I2C_Read... [22:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:33]Read from MH i2c: E2 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 03 00 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [22:59:33]RAPDU: 90 00 [22:59:33]wFMCommunicate OK [22:59:33]wFMCommunicate request_size=10 [22:59:33]MH_SAM_APDU [22:59:33]CAPDU: 80 0D 02 02 05 A3 1D E8 D6 49 [22:59:33]Write to MH i2c: E2 0D 00 3D 06 80 0D 02 02 05 00 A3 1D E8 D6 49 00 00 8E [22:59:33]Write i2c OK [22:59:33]MH_I2C_Read... [22:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:33]Read from MH i2c: E2 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 03 00 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [22:59:33]RAPDU: 90 00 [22:59:33]wFMCommunicate OK [22:59:33]wFMCommunicate request_size=4 [22:59:33]MH_SAM_APDU [22:59:33]CAPDU: 80 0D 03 02 [22:59:33]Write to MH i2c: E2 08 00 3E 06 80 0D 03 02 00 00 00 00 BF [22:59:33]Write i2c OK [22:59:33]MH_I2C_Read... [22:59:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:33]Read from MH i2c: E2 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 0B 00 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 0B 00 3E 06 00 05 1C 0C 71 3F B9 A3 57 90 00 50 [22:59:33]RAPDU: 05 1C 0C 71 3F B9 A3 57 90 00 [22:59:33]wFMCommunicate OK [22:59:33]SAM_PROTO_SignData done [22:59:33]FM_MakeSignedData done [22:59:33]CreateOFDProtocolMessage [22:59:33]wFMCommunicate request_size=4 [22:59:33]MH_SAM_APDU [22:59:33]CAPDU: 80 11 00 00 [22:59:33]Write to MH i2c: E2 08 00 3F 06 80 11 00 00 00 00 00 00 BF [22:59:33]Write i2c OK [22:59:33]MH_I2C_Read... [22:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:33]Read from MH i2c: E2 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 17 00 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 17 00 3F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [22:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:59:33]wFMCommunicate OK [22:59:33]CreateOFDProtocolMessage done [22:59:33]OFDSenderStorePacket 164422 [22:59:33]StoreOFDPacket docnum=164422 [22:59:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 05 47 07 01 EB 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 7E 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DC 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 1B 00 00 00 00 07 04 06 00 C4 03 01 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 54 B5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 82 02 00 35 04 06 00 82 A3 1D E8 D6 49 05 1C 0C 71 3F B9 A3 57 [22:59:33]CheckFolder [22:59:33]dirname=/storage/ofd_packets [22:59:33]CheckFolder done [22:59:33]ProducePacketName [22:59:33]name=ofd_packets/00164422 [22:59:33]NVStorageSaveData ofd_packets/00164422 [22:59:33]File name is /storage/ofd_packets/00164422 [22:59:33]Write 301 bytes [22:59:33]NVStorageSaveData done [22:59:33]OFDSenderStorePacket done [22:59:33]KKMCreateOFDPacket done [22:59:33]NVStorageSaveData kkm_last_timestamp [22:59:33]File name is /storage/kkm_last_timestamp [22:59:33]Write 4 bytes [22:59:33]NVStorageSaveData done [22:59:33]ExternCall_PrintAddStr [22:59:33]wPrintStart [22:59:33]Write to MH i2c: 01 00 00 40 06 46 [22:59:33]Write i2c OK [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: 01 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: 01 07 00 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: 01 07 00 40 06 00 00 00 00 00 FF 0F 5B [22:59:33]RasterBufferAndPrint [22:59:33]line Счет N : (1)458510 [22:59:33]line ИНН: 02508201610067 [22:59:33]line Контрольно-Кассовый Чек [22:59:33]line ПРОДАЖА [22:59:33]line ТРК (МРК, ГНК) : 12 [22:59:33]line Товар: 2710124130 [22:59:33]line Аи-92-К-5 [22:59:33]line 10.110 * 65.80 [22:59:33]line = 665.24 [22:59:33]line НДС 12% НСП 1% [22:59:33]line > о реализуемом товаре [22:59:33]line ОКРУГЛЕНИЕ: -0.24 [22:59:33]line ИТОГО: 665.00 [22:59:33]line Внесено: 665.00 [22:59:33]line СДАЧА: 0.00 [22:59:33]line НСП 1% : 5.89 [22:59:33]line НДС 12% : 70.64 [22:59:33]line Наличными: 665.00 [22:59:33]line Безнал.: 0.00 [22:59:33]line Место: АЗС № 72 "Партнер Нефть" [22:59:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:59:33]line СНО: Общий режим [22:59:33]line Чек 343 12.07.2024 22:59 [22:59:33]line Смена: 445 ФФД: 1.0 [22:59:33]line ЗНМ: 0300000160 [22:59:33]line РНМ: 0000000000090829 [22:59:33]line Версия ККМ: 001 [22:59:33]line ФМ: 0000000000874718 [22:59:33]line ФД: 164422 [22:59:33]line ФПД: 143637093078601 [22:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T225932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164422&fm=143637093078601&tin=02508201610067®Number=0000000000090829&sum=66500 [22:59:33]OFD Sender: Processing packet 164422 [packets to send 104, broken 103] [22:59:33]ProducePacketName [22:59:33]name=ofd_packets/00164422 [22:59:33]OFD Sender: To server: pG, [22:59:33]CommunicateWithHost lk.salyk.kg:30040 [22:59:33]ConnectInit lk.salyk.kg [22:59:33]written 0, free lines is 4095 [22:59:33]Connected sock=10 [22: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 34 37 31 38 0F 01 00 00 05 47 07 01 EB 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 7E 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DC 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 1B 00 00 00 00 07 04 06 00 C4 03 01 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 54 B5 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 82 02 00 35 04 06 00 82 A3 1D E8 D6 49 05 1C 0C 71 3F B9 A3 57 [22:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4A 6D 47 00 3E 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 82 02 00 F4 03 04 00 E7 5B 91 66 B6 04 01 00 00 B6 26 10 9B E7 C7 A8 17 [22:59:33]CommunicateWithHost err = 0 [22:59:33]CheckOFDResponse [22:59:33]1017 (14) - 77093643461234 [22:59:33]1041 (16) - 0000000000874718 [22:59:33]1040 (4) - 164422 [22:59:33]1012 (4) - 12.07.2024 16:37 [22:59:33]1206 (1) - 0 [22:59:33]OFD Sender: Remove packet 164422 [22:59:33]ProducePacketName [22:59:33]name=ofd_packets/00164422 [22:59:33]NVStorageDeleteData [22:59:34]Write to MH i2c: 01 00 00 6A 06 70 [22:59:34]Write i2c OK [22:59:34]MH_I2C_Read... [22:59:34]Read from MH i2c: 01 [22:59:34]MH_I2C_Read... [22:59:34]Read from MH i2c: 01 07 00 [22:59:34]MH_I2C_Read... [22:59:34]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 F2 0C 75 [22:59:34]RasterBufferAndPrint [22:59:34]line [22:59:34]line [22:59:34]line [22:59:34]line [22:59:34]line [22:59:34]written 0, free lines is 3320 [22:59:34]MH_Cut [22:59:34]Write to MH i2c: D1 01 00 71 06 01 49 [22:59:34]Write i2c OK [22:59:34]MH_I2C_Read... [22:59:34]Read from MH i2c: D1 [22:59:34]MH_I2C_Read... [22:59:34]Read from MH i2c: D1 01 00 [22:59:34]MH_I2C_Read... [22:59:34]Read from MH i2c: D1 01 00 71 06 00 48 [22:59:34]Write to MH i2c: 01 00 00 72 06 78 [22:59:34]Write i2c OK [22:59:34]MH_I2C_Read... [22:59:34]OFD Sender: No OFD packet to send [22:59:34]*** Cut start [22:59:34]*** Partial cut [22:59:34]*** CUTSNS_PIN = 1 [22:59:34]*** CUTSNS_PIN = 0 [22:59:35]*** Brake cut motor [22:59:35]Read from MH i2c: 01 [22:59:35]*** Stop cut motor [22:59:35]*** Cut end [22:59:35]MH_I2C_Read... [22:59:35]Read from MH i2c: 01 07 00 [22:59:35]MH_I2C_Read... [22:59:35]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [22:59:35]process_action close_receipt done [22:59:35]requested_data is exist [22:59:35]produce_requested_data [22:59:35]requested_item fm.sn is exist - process it [22:59:35]wFMCommunicate request_size=4 [22:59:35]MH_SAM_APDU [22:59:35]CAPDU: 80 11 00 00 [22:59:35]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [22:59:35]Write i2c OK [22:59:35]MH_I2C_Read... [22:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:35]Read from MH i2c: E2 [22:59:35]MH_I2C_Read... [22:59:35]Read from MH i2c: E2 17 00 [22:59:35]MH_I2C_Read... [22:59:35]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [22:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:59:35]wFMCommunicate OK [22:59:35]requested_item fd.num is exist - process it [22:59:35]SAM_PROTO_GetFieldsCounters [22:59:35]wFMCommunicate request_size=4 [22:59:35]MH_SAM_APDU [22:59:35]CAPDU: 80 13 00 00 [22:59:35]Write to MH i2c: E2 08 00 74 06 80 13 00 00 00 00 00 00 F6 [22:59:35]Write i2c OK [22:59:35]MH_I2C_Read... [22:59:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:35]Read from MH i2c: E2 [22:59:35]MH_I2C_Read... [22:59:35]Read from MH i2c: E2 62 00 [22:59:35]MH_I2C_Read... [22:59:35]Read from MH i2c: E2 62 00 74 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [22:59:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:35]wFMCommunicate OK [22:59:35]SAM_PROTO_GetFieldsCounters done [22:59:35]requested_item shift.num is exist - process it [22:59:35]requested_item shift.opened is exist - process it [22:59:35]req_shift_opened [22:59:35]FM_GetShiftState [22:59:35]SAM_PROTO_GetShiftState [22:59:35]wFMCommunicate request_size=4 [22:59:35]MH_SAM_APDU [22:59:35]CAPDU: 80 13 01 00 [22:59:35]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [22:59:35]Write i2c OK [22:59:35]MH_I2C_Read... [22:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:35]Read from MH i2c: E2 [22:59:35]MH_I2C_Read... [22:59:35]Read from MH i2c: E2 0E 00 [22:59:35]MH_I2C_Read... [22:59:35]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 42 [22:59:35]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [22:59:35]wFMCommunicate OK [22:59:35]SAM_PROTO_GetShiftState done [22:59:35]FM_GetShiftState done [22:59:35]req_shift_opened done [22:59:35]requested_item shift.open_date is exist - process it [22:59:35]req_shift_open_date [22:59:35]req_shift_open_date done [22:59:35]produce_requested_data done [22:59:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164422,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [22:59:35]process_action_free close_receipt [22:59:35]json_value_free [22:59:35]json_value_free done [22:59:35]process_json_proto returns [22:59:35]Send response to host [22:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164422,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [22:59:35]free response buf [22:59:35]execute_script done [22:59:35]execute_script returns [22:59:35]free content buf [22:59:35]Sock 7.Close socket [22:59:35]Sock 7.Thread stoped [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:47]accept exits with 9 [23:10:47]New connection [23:10:47]New thread 3067632996 created [23:10:47]Thread 3067489636 joined [23:10:47]Waiting for new connection... [23:10:47] Sock 9.Parse request [23:10:47]Sock 9.Check first char [23:10:47]Sock 9.First char is OK [23:10:47]request: POST /json_proto HTTP/1.0 [23:10:47]Method: POST [23:10:47]URL: /json_proto [23:10:47]Method is POST - this is cgi request [23:10:47]url: /json_proto [23:10:47]query_string will be loaded in cgi processing [23:10:47]execute_cgi json_proto POST (null) [23:10:47]execute_cgi path=json_proto method=POST [23:10:47]POST find Content-Length [23:10:47]Host: 172.17.56.4:8080 [23:10:47]Content-Length: 677 [23:10:47]Content-Type: application/json [23:10:47] [23:10:47]POST finish read [23:10:47]Found Content-Length = 677 [23:10:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:10:47]execute_script... [23:10: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)458511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:10:47]POST & json_proto [23:10:47]process_json_proto [23:10:47]json parsed OK: [23:10:47]protocol is kg_v1.0 [23:10:47]action value=close_receipt [23:10:47]process_action close_receipt [23:10:47]cmd_close_receipt [23:10:47]MH_GetDate [23:10:47]Write to MH i2c: F0 00 00 76 06 6B [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: F0 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: F0 09 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: F0 09 00 76 06 00 F9 B7 91 66 C9 DC B2 64 D6 [23:10:47]GetLastDocTimeStamp 1720825172 [23:10:47]current date 1720825849 [23:10:47]FM_GetShiftState [23:10:47]SAM_PROTO_GetShiftState [23:10:47]wFMCommunicate request_size=4 [23:10:47]MH_SAM_APDU [23:10:47]CAPDU: 80 13 01 00 [23:10:47]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:48]Read from MH i2c: E2 [23:10:48]MH_I2C_Read... [23:10:48]Read from MH i2c: E2 0E 00 [23:10:48]MH_I2C_Read... [23:10:48]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 44 [23:10:48]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:10:48]wFMCommunicate OK [23:10:48]SAM_PROTO_GetShiftState done [23:10:48]FM_GetShiftState done [23:10:48]opened in 1720744654 [23:10:48]opened+sec_in_day 1720831054 [23:10:48]quantity*price = 20003 [23:10:48]sum+1 = 20004 [23:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 344 12.07.2024 23:10 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164423 ФПД: 196879763059944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T231049&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164423&fm=196879763059944&tin=02508201610067®Number=0000000000090829&sum=20000 [23:10:49]StoreToDocumentArchive [23:10:49]shift 445 fd 164423 [23:10:49]save to /storage/0445/doc_00164423 [23:10:49]save last doc name /storage/0445/doc_00164423 to /storage/kkm_last_doc_name [23:10:49]save OK [23:10:49]Clear old archive folders... [23:10:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:10:49]tlvbuf is 00CA5460 [23:10:49]SAM_PROTO_ClearQueue [23:10:49]wFMCommunicate request_size=4 [23:10:49]MH_SAM_APDU [23:10:49]CAPDU: 80 09 00 00 [23:10:49]Write to MH i2c: E2 08 00 84 06 80 09 00 00 00 00 00 00 FC [23:10:49]Write i2c OK [23:10:49]MH_I2C_Read... [23:10:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:49]Read from MH i2c: E2 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 03 00 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [23:10:49]RAPDU: 90 00 [23:10:49]wFMCommunicate OK [23:10:49]SAM_PROTO_ClearQueue done [23:10:49]KKMCreateOFDPacket [23:10:49]OFDProtocolAddRootSTLVToBuf [23:10:49]FM_MakeSignedData [23:10:49]FM_MakeSignedData [23:10:49]SAM_PROTO_SignData [23:10:49]wFMCommunicate request_size=4 [23:10:49]MH_SAM_APDU [23:10:49]CAPDU: 80 0D 01 02 [23:10:49]Write to MH i2c: E2 08 00 85 06 80 0D 01 02 00 00 00 00 04 [23:10:49]Write i2c OK [23:10:49]MH_I2C_Read... [23:10:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:49]Read from MH i2c: E2 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 03 00 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [23:10:49]RAPDU: 90 00 [23:10:49]wFMCommunicate OK [23:10:49]wFMCommunicate request_size=255 [23:10:49]MH_SAM_APDU [23:10: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 F9 B7 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 82 02 00 35 04 06 00 B3 [23:10:49]Write to MH i2c: E2 02 01 86 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 F9 B7 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 82 02 00 35 04 06 00 B3 00 00 5A [23:10:49]Write i2c OK [23:10:49]MH_I2C_Read... [23:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:49]Read from MH i2c: E2 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 03 00 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [23:10:49]RAPDU: 90 00 [23:10:49]wFMCommunicate OK [23:10:49]wFMCommunicate request_size=10 [23:10:49]MH_SAM_APDU [23:10:49]CAPDU: 80 0D 02 02 05 0F A4 57 34 E8 [23:10:49]Write to MH i2c: E2 0D 00 87 06 80 0D 02 02 05 00 0F A4 57 34 E8 00 00 37 [23:10:49]Write i2c OK [23:10:49]MH_I2C_Read... [23:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:49]Read from MH i2c: E2 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 03 00 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [23:10:49]RAPDU: 90 00 [23:10:49]wFMCommunicate OK [23:10:49]wFMCommunicate request_size=4 [23:10:49]MH_SAM_APDU [23:10:49]CAPDU: 80 0D 03 02 [23:10:49]Write to MH i2c: E2 08 00 88 06 80 0D 03 02 00 00 00 00 09 [23:10:49]Write i2c OK [23:10:49]MH_I2C_Read... [23:10:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:49]Read from MH i2c: E2 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 0B 00 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 0B 00 88 06 00 B3 A0 1B 2A 43 4B E0 F4 90 00 04 [23:10:49]RAPDU: B3 A0 1B 2A 43 4B E0 F4 90 00 [23:10:49]wFMCommunicate OK [23:10:49]SAM_PROTO_SignData done [23:10:49]FM_MakeSignedData done [23:10:49]CreateOFDProtocolMessage [23:10:49]wFMCommunicate request_size=4 [23:10:49]MH_SAM_APDU [23:10:49]CAPDU: 80 11 00 00 [23:10:49]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [23:10:49]Write i2c OK [23:10:49]MH_I2C_Read... [23:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:49]Read from MH i2c: E2 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 17 00 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: E2 17 00 89 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [23:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:10:49]wFMCommunicate OK [23:10:49]CreateOFDProtocolMessage done [23:10:49]OFDSenderStorePacket 164423 [23:10:49]StoreOFDPacket docnum=164423 [23:10:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B 3A 07 01 0D 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 F9 B7 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 82 02 00 35 04 06 00 B3 0F A4 57 34 E8 B3 A0 1B 2A 43 4B E0 F4 [23:10:49]CheckFolder [23:10:49]dirname=/storage/ofd_packets [23:10:49]CheckFolder done [23:10:49]ProducePacketName [23:10:49]name=ofd_packets/00164423 [23:10:49]NVStorageSaveData ofd_packets/00164423 [23:10:49]File name is /storage/ofd_packets/00164423 [23:10:49]Write 301 bytes [23:10:49]NVStorageSaveData done [23:10:49]OFDSenderStorePacket done [23:10:49]KKMCreateOFDPacket done [23:10:49]NVStorageSaveData kkm_last_timestamp [23:10:49]File name is /storage/kkm_last_timestamp [23:10:49]Write 4 bytes [23:10:49]NVStorageSaveData done [23:10:49]ExternCall_PrintAddStr [23:10:49]wPrintStart [23:10:49]Write to MH i2c: 01 00 00 8A 06 90 [23:10:49]Write i2c OK [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: 01 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: 01 07 00 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [23:10:49]RasterBufferAndPrint [23:10:49]line Счет N : (1)458511 [23:10:49]line ИНН: 02508201610067 [23:10:49]line Контрольно-Кассовый Чек [23:10:49]line ПРОДАЖА [23:10:49]line ТРК (МРК, ГНК) : 22 [23:10:49]line Товар: 2710124130 [23:10:49]line Аи-92-К-5 [23:10:49]line 3.040 * 65.80 [23:10:49]line = 200.03 [23:10:49]line НДС 12% НСП 1% [23:10:49]line > о реализуемом товаре [23:10:49]line ОКРУГЛЕНИЕ: -0.03 [23:10:49]line ИТОГО: 200.00 [23:10:49]line Внесено: 200.00 [23:10:49]line СДАЧА: 0.00 [23:10:49]line НСП 1% : 1.77 [23:10:49]line НДС 12% : 21.24 [23:10:49]line Наличными: 200.00 [23:10:49]line Безнал.: 0.00 [23:10:49]line Место: АЗС № 72 "Партнер Нефть" [23:10:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:10:49]line СНО: Общий режим [23:10:49]line Чек 344 12.07.2024 23:10 [23:10:49]line Смена: 445 ФФД: 1.0 [23:10:49]line ЗНМ: 0300000160 [23:10:49]line РНМ: 0000000000090829 [23:10:49]line Версия ККМ: 001 [23:10:49]line ФМ: 0000000000874718 [23:10:49]line ФД: 164423 [23:10:49]line ФПД: 196879763059944 [23:10:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T231049&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164423&fm=196879763059944&tin=02508201610067®Number=0000000000090829&sum=20000 [23:10:50]OFD Sender: Processing packet 164423 [packets to send 104, broken 103] [23:10:50]ProducePacketName [23:10:50]name=ofd_packets/00164423 [23:10:50]OFD Sender: To server: pG, [23:10:50]CommunicateWithHost lk.salyk.kg:30040 [23:10:50]ConnectInit lk.salyk.kg [23:10:50]written 0, free lines is 4095 [23:10:50]Connected sock=10 [23:10:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B 3A 07 01 0D 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 F9 B7 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 82 02 00 35 04 06 00 B3 0F A4 57 34 E8 B3 A0 1B 2A 43 4B E0 F4 [23:10:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 00 33 47 00 9E 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 82 02 00 F4 03 04 00 8C 5E 91 66 B6 04 01 00 00 5A 00 10 A0 3F D5 9E B3 [23:10:50]CommunicateWithHost err = 0 [23:10:50]CheckOFDResponse [23:10:50]1017 (14) - 77093643461234 [23:10:50]1041 (16) - 0000000000874718 [23:10:50]1040 (4) - 164423 [23:10:50]1012 (4) - 12.07.2024 16:49 [23:10:50]1206 (1) - 0 [23:10:50]OFD Sender: Remove packet 164423 [23:10:50]ProducePacketName [23:10:50]name=ofd_packets/00164423 [23:10:50]NVStorageDeleteData [23:10:50]Write to MH i2c: 01 00 00 B4 06 BA [23:10:50]Write i2c OK [23:10:50]MH_I2C_Read... [23:10:50]Read from MH i2c: 01 [23:10:50]MH_I2C_Read... [23:10:50]Read from MH i2c: 01 07 00 [23:10:50]MH_I2C_Read... [23:10:50]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 0C 0D DA [23:10:50]RasterBufferAndPrint [23:10:50]line [23:10:50]line [23:10:50]line [23:10:50]line [23:10:50]line [23:10:50]written 0, free lines is 3346 [23:10:50]MH_Cut [23:10:50]Write to MH i2c: D1 01 00 BB 06 01 93 [23:10:50]Write i2c OK [23:10:50]MH_I2C_Read... [23:10:50]Read from MH i2c: D1 [23:10:50]MH_I2C_Read... [23:10:50]Read from MH i2c: D1 01 00 [23:10:50]MH_I2C_Read... [23:10:50]Read from MH i2c: D1 01 00 BB 06 00 92 [23:10:50]Write to MH i2c: 01 00 00 BC 06 C2 [23:10:50]Write i2c OK [23:10:50]MH_I2C_Read... [23:10:50]OFD Sender: No OFD packet to send [23:10:51]*** Cut start [23:10:51]*** Partial cut [23:10:51]*** CUTSNS_PIN = 1 [23:10:51]*** CUTSNS_PIN = 0 [23:10:51]*** Brake cut motor [23:10:51]Read from MH i2c: 01 [23:10:51]MH_I2C_Read... [23:10:51]*** Stop cut motor [23:10:51]*** Cut end [23:10:51]Read from MH i2c: 01 07 00 [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: 01 07 00 BC 06 00 00 00 00 00 FF 0F D7 [23:10:51]process_action close_receipt done [23:10:51]requested_data is exist [23:10:51]produce_requested_data [23:10:51]requested_item fm.sn is exist - process it [23:10:51]wFMCommunicate request_size=4 [23:10:51]MH_SAM_APDU [23:10:51]CAPDU: 80 11 00 00 [23:10:51]Write to MH i2c: E2 08 00 BD 06 80 11 00 00 00 00 00 00 3D [23:10:51]Write i2c OK [23:10:51]MH_I2C_Read... [23:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:51]Read from MH i2c: E2 [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: E2 17 00 [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: E2 17 00 BD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [23:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:10:51]wFMCommunicate OK [23:10:51]requested_item fd.num is exist - process it [23:10:51]SAM_PROTO_GetFieldsCounters [23:10:51]wFMCommunicate request_size=4 [23:10:51]MH_SAM_APDU [23:10:51]CAPDU: 80 13 00 00 [23:10:51]Write to MH i2c: E2 08 00 BE 06 80 13 00 00 00 00 00 00 40 [23:10:51]Write i2c OK [23:10:51]MH_I2C_Read... [23:10:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:51]Read from MH i2c: E2 [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: E2 62 00 [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: E2 62 00 BE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [23:10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:10:51]wFMCommunicate OK [23:10:51]SAM_PROTO_GetFieldsCounters done [23:10:51]requested_item shift.num is exist - process it [23:10:51]requested_item shift.opened is exist - process it [23:10:51]req_shift_opened [23:10:51]FM_GetShiftState [23:10:51]SAM_PROTO_GetShiftState [23:10:51]wFMCommunicate request_size=4 [23:10:51]MH_SAM_APDU [23:10:51]CAPDU: 80 13 01 00 [23:10:51]Write to MH i2c: E2 08 00 BF 06 80 13 01 00 00 00 00 00 42 [23:10:51]Write i2c OK [23:10:51]MH_I2C_Read... [23:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:51]Read from MH i2c: E2 [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: E2 0E 00 [23:10:51]MH_I2C_Read... [23:10:51]Read from MH i2c: E2 0E 00 BF 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8C [23:10:51]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:10:51]wFMCommunicate OK [23:10:51]SAM_PROTO_GetShiftState done [23:10:51]FM_GetShiftState done [23:10:51]req_shift_opened done [23:10:51]requested_item shift.open_date is exist - process it [23:10:51]req_shift_open_date [23:10:51]req_shift_open_date done [23:10:51]produce_requested_data done [23:10:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164423,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:10:51]process_action_free close_receipt [23:10:51]json_value_free [23:10:51]json_value_free done [23:10:51]process_json_proto returns [23:10:51]Send response to host [23:10:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164423,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:10:51]free response buf [23:10:51]execute_script done [23:10:51]execute_script returns [23:10:51]free content buf [23:10:51]Sock 9.Close socket [23:10:51]Sock 9.Thread stoped [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [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:53]accept exits with 7 [23:21:53]New connection [23:21:53]New thread 3067489636 created [23:21:53]Thread 3067632996 joined [23:21:53]Waiting for new connection... [23:21:53] Sock 7.Parse request [23:21:53]Sock 7.Check first char [23:21:53]Sock 7.First char is OK [23:21:53]request: POST /json_proto HTTP/1.0 [23:21:53]Method: POST [23:21:53]URL: /json_proto [23:21:53]Method is POST - this is cgi request [23:21:53]url: /json_proto [23:21:53]query_string will be loaded in cgi processing [23:21:53]execute_cgi json_proto POST (null) [23:21:53]execute_cgi path=json_proto method=POST [23:21:53]POST find Content-Length [23:21:53]Host: 172.17.56.4:8080 [23:21:53]Content-Length: 677 [23:21:53]Content-Type: application/json [23:21:53] [23:21:53]POST finish read [23:21:53]Found Content-Length = 677 [23:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:53]execute_script... [23:21: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)458512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:53]POST & json_proto [23:21:53]process_json_proto [23:21:53]json parsed OK: [23:21:53]protocol is kg_v1.0 [23:21:53]action value=close_receipt [23:21:53]process_action close_receipt [23:21:53]cmd_close_receipt [23:21:53]MH_GetDate [23:21:53]Write to MH i2c: F0 00 00 C0 06 B5 [23:21:53]Write i2c OK [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: F0 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: F0 09 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: F0 09 00 C0 06 00 92 BA 91 66 C9 DC B2 64 BC [23:21:53]GetLastDocTimeStamp 1720825849 [23:21:53]current date 1720826514 [23:21:53]FM_GetShiftState [23:21:53]SAM_PROTO_GetShiftState [23:21:53]wFMCommunicate request_size=4 [23:21:53]MH_SAM_APDU [23:21:53]CAPDU: 80 13 01 00 [23:21:53]Write to MH i2c: E2 08 00 C1 06 80 13 01 00 00 00 00 00 44 [23:21:53]Write i2c OK [23:21:53]MH_I2C_Read... [23:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:53]Read from MH i2c: E2 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 0E 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 0E 00 C1 06 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 8E [23:21:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:21:53]wFMCommunicate OK [23:21:53]SAM_PROTO_GetShiftState done [23:21:53]FM_GetShiftState done [23:21:53]opened in 1720744654 [23:21:53]opened+sec_in_day 1720831054 [23:21:53]quantity*price = 50008 [23:21:53]sum+1 = 50009 [23:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 345 12.07.2024 23:21 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164424 ФПД: 92462937382117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T232155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164424&fm=92462937382117&tin=02508201610067®Number=0000000000090829&sum=50000 [23:21:54]StoreToDocumentArchive [23:21:54]shift 445 fd 164424 [23:21:54]save to /storage/0445/doc_00164424 [23:21:54]save last doc name /storage/0445/doc_00164424 to /storage/kkm_last_doc_name [23:21:54]save OK [23:21:54]Clear old archive folders... [23:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:21:54]tlvbuf is 00CA71B0 [23:21:54]SAM_PROTO_ClearQueue [23:21:54]wFMCommunicate request_size=4 [23:21:54]MH_SAM_APDU [23:21:54]CAPDU: 80 09 00 00 [23:21:54]Write to MH i2c: E2 08 00 CE 06 80 09 00 00 00 00 00 00 46 [23:21:54]Write i2c OK [23:21:54]MH_I2C_Read... [23:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:54]Read from MH i2c: E2 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 03 00 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [23:21:54]RAPDU: 90 00 [23:21:54]wFMCommunicate OK [23:21:54]SAM_PROTO_ClearQueue done [23:21:54]KKMCreateOFDPacket [23:21:54]OFDProtocolAddRootSTLVToBuf [23:21:54]FM_MakeSignedData [23:21:54]FM_MakeSignedData [23:21:54]SAM_PROTO_SignData [23:21:54]wFMCommunicate request_size=4 [23:21:54]MH_SAM_APDU [23:21:54]CAPDU: 80 0D 01 02 [23:21:54]Write to MH i2c: E2 08 00 CF 06 80 0D 01 02 00 00 00 00 4E [23:21:54]Write i2c OK [23:21:54]MH_I2C_Read... [23:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:54]Read from MH i2c: E2 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 03 00 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [23:21:54]RAPDU: 90 00 [23:21:54]wFMCommunicate OK [23:21:54]wFMCommunicate request_size=255 [23:21:54]MH_SAM_APDU [23:21: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 59 01 00 00 F4 03 04 00 93 BA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 82 02 00 35 04 06 00 54 [23:21:54]Write to MH i2c: E2 02 01 D0 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 59 01 00 00 F4 03 04 00 93 BA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 82 02 00 35 04 06 00 54 00 00 43 [23:21:54]Write i2c OK [23:21:54]MH_I2C_Read... [23:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:55]Read from MH i2c: E2 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: E2 03 00 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [23:21:55]RAPDU: 90 00 [23:21:55]wFMCommunicate OK [23:21:55]wFMCommunicate request_size=10 [23:21:55]MH_SAM_APDU [23:21:55]CAPDU: 80 0D 02 02 05 18 34 89 9C E5 [23:21:55]Write to MH i2c: E2 0D 00 D1 06 80 0D 02 02 05 00 18 34 89 9C E5 00 00 B1 [23:21:55]Write i2c OK [23:21:55]MH_I2C_Read... [23:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:55]Read from MH i2c: E2 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: E2 03 00 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [23:21:55]RAPDU: 90 00 [23:21:55]wFMCommunicate OK [23:21:55]wFMCommunicate request_size=4 [23:21:55]MH_SAM_APDU [23:21:55]CAPDU: 80 0D 03 02 [23:21:55]Write to MH i2c: E2 08 00 D2 06 80 0D 03 02 00 00 00 00 53 [23:21:55]Write i2c OK [23:21:55]MH_I2C_Read... [23:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:55]Read from MH i2c: E2 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: E2 0B 00 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: E2 0B 00 D2 06 00 2A 73 1A 22 33 22 9E 62 90 00 82 [23:21:55]RAPDU: 2A 73 1A 22 33 22 9E 62 90 00 [23:21:55]wFMCommunicate OK [23:21:55]SAM_PROTO_SignData done [23:21:55]FM_MakeSignedData done [23:21:55]CreateOFDProtocolMessage [23:21:55]wFMCommunicate request_size=4 [23:21:55]MH_SAM_APDU [23:21:55]CAPDU: 80 11 00 00 [23:21:55]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [23:21:55]Write i2c OK [23:21:55]MH_I2C_Read... [23:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:55]Read from MH i2c: E2 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: E2 17 00 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [23:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:21:55]wFMCommunicate OK [23:21:55]CreateOFDProtocolMessage done [23:21:55]OFDSenderStorePacket 164424 [23:21:55]StoreOFDPacket docnum=164424 [23:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 02 07 01 DF 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 59 01 00 00 F4 03 04 00 93 BA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 82 02 00 35 04 06 00 54 18 34 89 9C E5 2A 73 1A 22 33 22 9E 62 [23:21:55]CheckFolder [23:21:55]dirname=/storage/ofd_packets [23:21:55]CheckFolder done [23:21:55]ProducePacketName [23:21:55]name=ofd_packets/00164424 [23:21:55]NVStorageSaveData ofd_packets/00164424 [23:21:55]File name is /storage/ofd_packets/00164424 [23:21:55]Write 301 bytes [23:21:55]NVStorageSaveData done [23:21:55]OFDSenderStorePacket done [23:21:55]KKMCreateOFDPacket done [23:21:55]NVStorageSaveData kkm_last_timestamp [23:21:55]File name is /storage/kkm_last_timestamp [23:21:55]Write 4 bytes [23:21:55]NVStorageSaveData done [23:21:55]ExternCall_PrintAddStr [23:21:55]wPrintStart [23:21:55]Write to MH i2c: 01 00 00 D4 06 DA [23:21:55]Write i2c OK [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: 01 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: 01 07 00 [23:21:55]MH_I2C_Read... [23:21:55]Read from MH i2c: 01 07 00 D4 06 00 00 00 00 00 FF 0F EF [23:21:55]RasterBufferAndPrint [23:21:55]line Счет N : (1)458512 [23:21:55]line ИНН: 02508201610067 [23:21:55]line Контрольно-Кассовый Чек [23:21:55]line ПРОДАЖА [23:21:55]line ТРК (МРК, ГНК) : 22 [23:21:55]line Товар: 2710124130 [23:21:55]line Аи-92-К-5 [23:21:55]line 7.600 * 65.80 [23:21:55]line = 500.08 [23:21:55]line НДС 12% НСП 1% [23:21:55]line > о реализуемом товаре [23:21:55]line ОКРУГЛЕНИЕ: -0.08 [23:21:55]line ИТОГО: 500.00 [23:21:55]line Внесено: 500.00 [23:21:55]line СДАЧА: 0.00 [23:21:55]line НСП 1% : 4.42 [23:21:55]line НДС 12% : 53.11 [23:21:55]line Наличными: 500.00 [23:21:55]line Безнал.: 0.00 [23:21:55]line Место: АЗС № 72 "Партнер Нефть" [23:21:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:21:55]line СНО: Общий режим [23:21:55]line Чек 345 12.07.2024 23:21 [23:21:55]line Смена: 445 ФФД: 1.0 [23:21:55]line ЗНМ: 0300000160 [23:21:55]line РНМ: 0000000000090829 [23:21:55]line Версия ККМ: 001 [23:21:55]line ФМ: 0000000000874718 [23:21:55]line ФД: 164424 [23:21:55]line ФПД: 92462937382117 [23:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T232155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164424&fm=92462937382117&tin=02508201610067®Number=0000000000090829&sum=50000 [23:21:55]written 0, free lines is 4095 [23:21:55]OFD Sender: Processing packet 164424 [packets to send 104, broken 103] [23:21:55]ProducePacketName [23:21:55]name=ofd_packets/00164424 [23:21:55]OFD Sender: To server: pG, [23:21:55]CommunicateWithHost lk.salyk.kg:30040 [23:21:55]ConnectInit lk.salyk.kg [23:21:55]Connected sock=10 [23:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 02 07 01 DF 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 59 01 00 00 F4 03 04 00 93 BA 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 82 02 00 35 04 06 00 54 18 34 89 9C E5 2A 73 1A 22 33 22 9E 62 [23:21:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BB 5A 47 00 8C 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 34 37 31 38 10 04 04 00 48 82 02 00 F4 03 04 00 25 61 91 66 B6 04 01 00 00 2E 56 AA 89 12 39 07 25 [23:21:55]CommunicateWithHost err = 0 [23:21:55]CheckOFDResponse [23:21:55]1017 (14) - 77093643461234 [23:21:55]1041 (16) - 0000000000874718 [23:21:55]1040 (4) - 164424 [23:21:55]1012 (4) - 12.07.2024 17:00 [23:21:55]1206 (1) - 0 [23:21:55]OFD Sender: Remove packet 164424 [23:21:55]ProducePacketName [23:21:55]name=ofd_packets/00164424 [23:21:55]NVStorageDeleteData [23:21:56]Write to MH i2c: 01 00 00 FE 06 04 [23:21:56]Write i2c OK [23:21:56]MH_I2C_Read... [23:21:56]Read from MH i2c: 01 [23:21:56]MH_I2C_Read... [23:21:56]Read from MH i2c: 01 07 00 [23:21:56]MH_I2C_Read... [23:21:56]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 F4 0C 0B [23:21:56]RasterBufferAndPrint [23:21:56]line [23:21:56]line [23:21:56]line [23:21:56]line [23:21:56]line [23:21:56]written 0, free lines is 3323 [23:21:56]MH_Cut [23:21:56]Write to MH i2c: D1 01 00 05 07 01 DE [23:21:56]Write i2c OK [23:21:56]MH_I2C_Read... [23:21:56]Read from MH i2c: D1 [23:21:56]MH_I2C_Read... [23:21:56]Read from MH i2c: D1 01 00 [23:21:56]MH_I2C_Read... [23:21:56]Read from MH i2c: D1 01 00 05 07 00 DD [23:21:56]Write to MH i2c: 01 00 00 06 07 0D [23:21:56]Write i2c OK [23:21:56]MH_I2C_Read... [23:21:56]OFD Sender: No OFD packet to send [23:21:56]*** Cut start [23:21:56]*** Partial cut [23:21:56]*** CUTSNS_PIN = 1 [23:21:56]*** CUTSNS_PIN = 0 [23:21:57]*** Brake cut motor [23:21:57]Read from MH i2c: 01 [23:21:57]MH_I2C_Read... [23:21:57]*** Stop cut motor [23:21:57]*** Cut end [23:21:57]Read from MH i2c: 01 07 00 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 FF 0F 22 [23:21:57]process_action close_receipt done [23:21:57]requested_data is exist [23:21:57]produce_requested_data [23:21:57]requested_item fm.sn is exist - process it [23:21:57]wFMCommunicate request_size=4 [23:21:57]MH_SAM_APDU [23:21:57]CAPDU: 80 11 00 00 [23:21:57]Write to MH i2c: E2 08 00 07 07 80 11 00 00 00 00 00 00 88 [23:21:57]Write i2c OK [23:21:57]MH_I2C_Read... [23:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:57]Read from MH i2c: E2 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: E2 17 00 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: E2 17 00 07 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [23:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:21:57]wFMCommunicate OK [23:21:57]requested_item fd.num is exist - process it [23:21:57]SAM_PROTO_GetFieldsCounters [23:21:57]wFMCommunicate request_size=4 [23:21:57]MH_SAM_APDU [23:21:57]CAPDU: 80 13 00 00 [23:21:57]Write to MH i2c: E2 08 00 08 07 80 13 00 00 00 00 00 00 8B [23:21:57]Write i2c OK [23:21:57]MH_I2C_Read... [23:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:57]Read from MH i2c: E2 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: E2 62 00 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: E2 62 00 08 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [23:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:21:57]wFMCommunicate OK [23:21:57]SAM_PROTO_GetFieldsCounters done [23:21:57]requested_item shift.num is exist - process it [23:21:57]requested_item shift.opened is exist - process it [23:21:57]req_shift_opened [23:21:57]FM_GetShiftState [23:21:57]SAM_PROTO_GetShiftState [23:21:57]wFMCommunicate request_size=4 [23:21:57]MH_SAM_APDU [23:21:57]CAPDU: 80 13 01 00 [23:21:57]Write to MH i2c: E2 08 00 09 07 80 13 01 00 00 00 00 00 8D [23:21:57]Write i2c OK [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: E2 [23:21:57]MH_I2C_Read... [23:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:57]Read from MH i2c: E2 0E 00 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: E2 0E 00 09 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D7 [23:21:57]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:21:57]wFMCommunicate OK [23:21:57]SAM_PROTO_GetShiftState done [23:21:57]FM_GetShiftState done [23:21:57]req_shift_opened done [23:21:57]requested_item shift.open_date is exist - process it [23:21:57]req_shift_open_date [23:21:57]req_shift_open_date done [23:21:57]produce_requested_data done [23:21:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164424,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:21:57]process_action_free close_receipt [23:21:57]json_value_free [23:21:57]json_value_free done [23:21:57]process_json_proto returns [23:21:57]Send response to host [23:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164424,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:21:57]free response buf [23:21:57]execute_script done [23:21:57]execute_script returns [23:21:57]free content buf [23:21:57]Sock 7.Close socket [23:21:57]Sock 7.Thread stoped [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:00]accept exits with 9 [23:25:00]New connection [23:25:00]New thread 3067632996 created [23:25:00]Thread 3067489636 joined [23:25:00]Waiting for new connection... [23:25:00] Sock 9.Parse request [23:25:00]Sock 9.Check first char [23:25:00]Sock 9.First char is OK [23:25:00]request: POST /json_proto HTTP/1.0 [23:25:00]Method: POST [23:25:00]URL: /json_proto [23:25:00]Method is POST - this is cgi request [23:25:00]url: /json_proto [23:25:00]query_string will be loaded in cgi processing [23:25:00]execute_cgi json_proto POST (null) [23:25:00]execute_cgi path=json_proto method=POST [23:25:00]POST find Content-Length [23:25:00]Host: 172.17.56.4:8080 [23:25:00]Content-Length: 677 [23:25:00]Content-Type: application/json [23:25:00] [23:25:00]POST finish read [23:25:00]Found Content-Length = 677 [23:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:00]execute_script... [23:25:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:00]POST & json_proto [23:25:00]process_json_proto [23:25:00]json parsed OK: [23:25:00]protocol is kg_v1.0 [23:25:00]action value=close_receipt [23:25:00]process_action close_receipt [23:25:00]cmd_close_receipt [23:25:00]MH_GetDate [23:25:00]Write to MH i2c: F0 00 00 0A 07 00 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: F0 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: F0 09 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: F0 09 00 0A 07 00 4D BB 91 66 C9 DC B2 64 C3 [23:25:00]GetLastDocTimeStamp 1720826515 [23:25:00]current date 1720826701 [23:25:00]FM_GetShiftState [23:25:00]SAM_PROTO_GetShiftState [23:25:00]wFMCommunicate request_size=4 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 13 01 00 [23:25:00]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 0E 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 D9 [23:25:00]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:25:00]wFMCommunicate OK [23:25:00]SAM_PROTO_GetShiftState done [23:25:00]FM_GetShiftState done [23:25:00]opened in 1720744654 [23:25:00]opened+sec_in_day 1720831054 [23:25:00]quantity*price = 50008 [23:25:00]sum+1 = 50009 [23:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 346 12.07.2024 23:25 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164425 ФПД: 216374456667153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T232501&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164425&fm=216374456667153&tin=02508201610067®Number=0000000000090829&sum=50000 [23:25:01]StoreToDocumentArchive [23:25:01]shift 445 fd 164425 [23:25:01]save to /storage/0445/doc_00164425 [23:25:01]save last doc name /storage/0445/doc_00164425 to /storage/kkm_last_doc_name [23:25:01]save OK [23:25:01]Clear old archive folders... [23:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:25:01]tlvbuf is 00CC8820 [23:25:01]SAM_PROTO_ClearQueue [23:25:01]wFMCommunicate request_size=4 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 09 00 00 [23:25:01]Write to MH i2c: E2 08 00 18 07 80 09 00 00 00 00 00 00 91 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 18 07 00 90 00 93 [23:25:01]RAPDU: 90 00 [23:25:01]wFMCommunicate OK [23:25:01]SAM_PROTO_ClearQueue done [23:25:01]KKMCreateOFDPacket [23:25:01]OFDProtocolAddRootSTLVToBuf [23:25:01]FM_MakeSignedData [23:25:01]FM_MakeSignedData [23:25:01]SAM_PROTO_SignData [23:25:01]wFMCommunicate request_size=4 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 0D 01 02 [23:25:01]Write to MH i2c: E2 08 00 19 07 80 0D 01 02 00 00 00 00 99 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [23:25:01]RAPDU: 90 00 [23:25:01]wFMCommunicate OK [23:25:01]wFMCommunicate request_size=255 [23:25:01]MH_SAM_APDU [23:25: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5A 01 00 00 F4 03 04 00 4D BB 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 82 02 00 35 04 06 00 C4 [23:25:01]Write to MH i2c: E2 02 01 1A 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5A 01 00 00 F4 03 04 00 4D BB 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 82 02 00 35 04 06 00 C4 00 00 BB [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [23:25:01]RAPDU: 90 00 [23:25:01]wFMCommunicate OK [23:25:01]wFMCommunicate request_size=10 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 0D 02 02 05 CA 9A A0 CC 11 [23:25:01]Write to MH i2c: E2 0D 00 1B 07 80 0D 02 02 05 00 CA 9A A0 CC 11 00 00 87 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [23:25:01]RAPDU: 90 00 [23:25:01]wFMCommunicate OK [23:25:01]wFMCommunicate request_size=4 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 0D 03 02 [23:25:01]Write to MH i2c: E2 08 00 1C 07 80 0D 03 02 00 00 00 00 9E [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]OFD Sender: No OFD packet to send [23:25:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 0B 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 0B 00 1C 07 00 4A 57 2D 91 C7 16 F5 4A 90 00 1A [23:25:01]RAPDU: 4A 57 2D 91 C7 16 F5 4A 90 00 [23:25:01]wFMCommunicate OK [23:25:01]SAM_PROTO_SignData done [23:25:01]FM_MakeSignedData done [23:25:01]CreateOFDProtocolMessage [23:25:01]wFMCommunicate request_size=4 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 11 00 00 [23:25:01]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 17 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 17 00 1D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [23:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:25:01]wFMCommunicate OK [23:25:01]CreateOFDProtocolMessage done [23:25:01]OFDSenderStorePacket 164425 [23:25:01]StoreOFDPacket docnum=164425 [23:25:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 63 07 01 48 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5A 01 00 00 F4 03 04 00 4D BB 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 82 02 00 35 04 06 00 C4 CA 9A A0 CC 11 4A 57 2D 91 C7 16 F5 4A [23:25:01]CheckFolder [23:25:01]dirname=/storage/ofd_packets [23:25:01]CheckFolder done [23:25:01]ProducePacketName [23:25:01]name=ofd_packets/00164425 [23:25:01]NVStorageSaveData ofd_packets/00164425 [23:25:01]File name is /storage/ofd_packets/00164425 [23:25:01]Write 301 bytes [23:25:01]NVStorageSaveData done [23:25:01]OFDSenderStorePacket done [23:25:01]KKMCreateOFDPacket done [23:25:01]NVStorageSaveData kkm_last_timestamp [23:25:01]File name is /storage/kkm_last_timestamp [23:25:01]Write 4 bytes [23:25:01]NVStorageSaveData done [23:25:01]ExternCall_PrintAddStr [23:25:01]wPrintStart [23:25:01]Write to MH i2c: 01 00 00 1E 07 25 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: 01 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: 01 07 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 FF 0F 3A [23:25:01]RasterBufferAndPrint [23:25:01]line Счет N : (1)458513 [23:25:01]line ИНН: 02508201610067 [23:25:01]line Контрольно-Кассовый Чек [23:25:01]line ПРОДАЖА [23:25:01]line ТРК (МРК, ГНК) : 12 [23:25:01]line Товар: 2710124130 [23:25:01]line Аи-92-К-5 [23:25:01]line 7.600 * 65.80 [23:25:01]line = 500.08 [23:25:01]line НДС 12% НСП 1% [23:25:01]line > о реализуемом товаре [23:25:01]line ОКРУГЛЕНИЕ: -0.08 [23:25:01]line ИТОГО: 500.00 [23:25:01]line Внесено: 500.00 [23:25:01]line СДАЧА: 0.00 [23:25:01]line НСП 1% : 4.42 [23:25:01]line НДС 12% : 53.11 [23:25:01]line Наличными: 500.00 [23:25:01]line Безнал.: 0.00 [23:25:01]line Место: АЗС № 72 "Партнер Нефть" [23:25:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:25:01]line СНО: Общий режим [23:25:01]line Чек 346 12.07.2024 23:25 [23:25:01]line Смена: 445 ФФД: 1.0 [23:25:01]line ЗНМ: 0300000160 [23:25:01]line РНМ: 0000000000090829 [23:25:01]line Версия ККМ: 001 [23:25:01]line ФМ: 0000000000874718 [23:25:01]line ФД: 164425 [23:25:01]line ФПД: 216374456667153 [23:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T232501&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164425&fm=216374456667153&tin=02508201610067®Number=0000000000090829&sum=50000 [23:25:02]OFD Sender: Processing packet 164425 [packets to send 104, broken 103] [23:25:02]ProducePacketName [23:25:02]name=ofd_packets/00164425 [23:25:02]OFD Sender: To server: pG, [23:25:02]CommunicateWithHost lk.salyk.kg:30040 [23:25:02]ConnectInit lk.salyk.kg [23:25:02]written 0, free lines is 4095 [23:25:02]Connected sock=10 [23:25:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 63 07 01 48 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5A 01 00 00 F4 03 04 00 4D BB 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 82 02 00 35 04 06 00 C4 CA 9A A0 CC 11 4A 57 2D 91 C7 16 F5 4A [23:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3A DB 47 00 F3 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 82 02 00 F4 03 04 00 E0 61 91 66 B6 04 01 00 00 C0 B0 02 0C 07 DF EE 33 [23:25:02]CommunicateWithHost err = 0 [23:25:02]CheckOFDResponse [23:25:02]1017 (14) - 77093643461234 [23:25:02]1041 (16) - 0000000000874718 [23:25:02]1040 (4) - 164425 [23:25:02]1012 (4) - 12.07.2024 17:03 [23:25:02]1206 (1) - 0 [23:25:02]OFD Sender: Remove packet 164425 [23:25:02]ProducePacketName [23:25:02]name=ofd_packets/00164425 [23:25:02]NVStorageDeleteData [23:25:02]Write to MH i2c: 01 00 00 48 07 4F [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: 01 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: 01 07 00 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: 01 07 00 48 07 00 00 00 00 00 F3 0C 55 [23:25:02]RasterBufferAndPrint [23:25:02]line [23:25:02]line [23:25:02]line [23:25:02]line [23:25:02]line [23:25:02]written 0, free lines is 3321 [23:25:02]MH_Cut [23:25:02]Write to MH i2c: D1 01 00 4F 07 01 28 [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: D1 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: D1 01 00 [23:25:02]MH_I2C_Read... [23:25:02]Read from MH i2c: D1 01 00 4F 07 00 27 [23:25:02]Write to MH i2c: 01 00 00 50 07 57 [23:25:02]Write i2c OK [23:25:02]MH_I2C_Read... [23:25:02]OFD Sender: No OFD packet to send [23:25:03]*** Cut start [23:25:03]*** Partial cut [23:25:03]*** CUTSNS_PIN = 1 [23:25:03]*** CUTSNS_PIN = 0 [23:25:03]*** Brake cut motor [23:25:03]Read from MH i2c: 01 [23:25:03]MH_I2C_Read... [23:25:03]*** Stop cut motor [23:25:03]*** Cut end [23:25:03]Read from MH i2c: 01 07 00 [23:25:03]MH_I2C_Read... [23:25:03]Read from MH i2c: 01 07 00 50 07 00 00 00 00 00 FF 0F 6C [23:25:03]process_action close_receipt done [23:25:03]requested_data is exist [23:25:03]produce_requested_data [23:25:03]requested_item fm.sn is exist - process it [23:25:03]wFMCommunicate request_size=4 [23:25:03]MH_SAM_APDU [23:25:03]CAPDU: 80 11 00 00 [23:25:03]Write to MH i2c: E2 08 00 51 07 80 11 00 00 00 00 00 00 D2 [23:25:03]Write i2c OK [23:25:03]MH_I2C_Read... [23:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:03]Read from MH i2c: E2 [23:25:03]MH_I2C_Read... [23:25:03]Read from MH i2c: E2 17 00 [23:25:03]MH_I2C_Read... [23:25:03]Read from MH i2c: E2 17 00 51 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [23:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:25:03]wFMCommunicate OK [23:25:03]requested_item fd.num is exist - process it [23:25:03]SAM_PROTO_GetFieldsCounters [23:25:03]wFMCommunicate request_size=4 [23:25:03]MH_SAM_APDU [23:25:03]CAPDU: 80 13 00 00 [23:25:03]Write to MH i2c: E2 08 00 52 07 80 13 00 00 00 00 00 00 D5 [23:25:03]Write i2c OK [23:25:03]MH_I2C_Read... [23:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:04]Read from MH i2c: E2 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 62 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 62 00 52 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [23:25:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:04]wFMCommunicate OK [23:25:04]SAM_PROTO_GetFieldsCounters done [23:25:04]requested_item shift.num is exist - process it [23:25:04]requested_item shift.opened is exist - process it [23:25:04]req_shift_opened [23:25:04]FM_GetShiftState [23:25:04]SAM_PROTO_GetShiftState [23:25:04]wFMCommunicate request_size=4 [23:25:04]MH_SAM_APDU [23:25:04]CAPDU: 80 13 01 00 [23:25:04]Write to MH i2c: E2 08 00 53 07 80 13 01 00 00 00 00 00 D7 [23:25:04]Write i2c OK [23:25:04]MH_I2C_Read... [23:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:04]Read from MH i2c: E2 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 0E 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 0E 00 53 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 21 [23:25:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:25:04]wFMCommunicate OK [23:25:04]SAM_PROTO_GetShiftState done [23:25:04]FM_GetShiftState done [23:25:04]req_shift_opened done [23:25:04]requested_item shift.open_date is exist - process it [23:25:04]req_shift_open_date [23:25:04]req_shift_open_date done [23:25:04]produce_requested_data done [23:25:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164425,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:25:04]process_action_free close_receipt [23:25:04]json_value_free [23:25:04]json_value_free done [23:25:04]process_json_proto returns [23:25:04]Send response to host [23:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164425,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:25:04]free response buf [23:25:04]execute_script done [23:25:04]execute_script returns [23:25:04]free content buf [23:25:04]Sock 9.Close socket [23:25:04]Sock 9.Thread stoped [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:02]accept exits with 7 [23:29:02]New connection [23:29:02]New thread 3067489636 created [23:29:02]Thread 3067632996 joined [23:29:02]Waiting for new connection... [23:29:02] Sock 7.Parse request [23:29:02]Sock 7.Check first char [23:29:02]Sock 7.First char is OK [23:29:02]request: POST /json_proto HTTP/1.0 [23:29:02]Method: POST [23:29:02]URL: /json_proto [23:29:02]Method is POST - this is cgi request [23:29:02]url: /json_proto [23:29:02]query_string will be loaded in cgi processing [23:29:02]execute_cgi json_proto POST (null) [23:29:02]execute_cgi path=json_proto method=POST [23:29:02]POST find Content-Length [23:29:02]Host: 172.17.56.4:8080 [23:29:02]Content-Length: 678 [23:29:02]Content-Type: application/json [23:29:02] [23:29:02]POST finish read [23:29:02]Found Content-Length = 678 [23:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [23:29:02]execute_script... [23:29: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)458514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [23:29:02]POST & json_proto [23:29:02]process_json_proto [23:29:02]json parsed OK: [23:29:02]protocol is kg_v1.0 [23:29:02]action value=close_receipt [23:29:02]process_action close_receipt [23:29:02]cmd_close_receipt [23:29:02]MH_GetDate [23:29:02]Write to MH i2c: F0 00 00 54 07 4A [23:29:02]Write i2c OK [23:29:02]MH_I2C_Read... [23:29:02]Read from MH i2c: F0 [23:29:02]MH_I2C_Read... [23:29:02]Read from MH i2c: F0 09 00 [23:29:02]MH_I2C_Read... [23:29:02]Read from MH i2c: F0 09 00 54 07 00 3F BC 91 66 C9 DC B2 64 00 [23:29:02]GetLastDocTimeStamp 1720826701 [23:29:02]current date 1720826943 [23:29:02]FM_GetShiftState [23:29:02]SAM_PROTO_GetShiftState [23:29:02]wFMCommunicate request_size=4 [23:29:02]MH_SAM_APDU [23:29:02]CAPDU: 80 13 01 00 [23:29:02]Write to MH i2c: E2 08 00 55 07 80 13 01 00 00 00 00 00 D9 [23:29:02]Write i2c OK [23:29:02]MH_I2C_Read... [23:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:02]Read from MH i2c: E2 [23:29:02]MH_I2C_Read... [23:29:02]Read from MH i2c: E2 0E 00 [23:29:02]MH_I2C_Read... [23:29:02]Read from MH i2c: E2 0E 00 55 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 23 [23:29:02]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:29:02]wFMCommunicate OK [23:29:02]SAM_PROTO_GetShiftState done [23:29:02]FM_GetShiftState done [23:29:02]opened in 1720744654 [23:29:02]opened+sec_in_day 1720831054 [23:29:02]quantity*price = 70011 [23:29:02]sum+1 = 70012 [23:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 347 12.07.2024 23:29 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164426 ФПД: 183065653605264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T232903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164426&fm=183065653605264&tin=02508201610067®Number=0000000000090829&sum=70000 [23:29:03]StoreToDocumentArchive [23:29:03]shift 445 fd 164426 [23:29:03]save to /storage/0445/doc_00164426 [23:29:03]save last doc name /storage/0445/doc_00164426 to /storage/kkm_last_doc_name [23:29:03]save OK [23:29:03]Clear old archive folders... [23:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:29:03]tlvbuf is 00CC7A20 [23:29:03]SAM_PROTO_ClearQueue [23:29:03]wFMCommunicate request_size=4 [23:29:03]MH_SAM_APDU [23:29:03]CAPDU: 80 09 00 00 [23:29:03]Write to MH i2c: E2 08 00 62 07 80 09 00 00 00 00 00 00 DB [23:29:03]Write i2c OK [23:29:03]MH_I2C_Read... [23:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:03]Read from MH i2c: E2 [23:29:03]MH_I2C_Read... [23:29:03]Read from MH i2c: E2 03 00 [23:29:03]MH_I2C_Read... [23:29:03]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [23:29:03]RAPDU: 90 00 [23:29:03]wFMCommunicate OK [23:29:03]SAM_PROTO_ClearQueue done [23:29:03]KKMCreateOFDPacket [23:29:03]OFDProtocolAddRootSTLVToBuf [23:29:03]FM_MakeSignedData [23:29:03]FM_MakeSignedData [23:29:03]SAM_PROTO_SignData [23:29:03]wFMCommunicate request_size=4 [23:29:03]MH_SAM_APDU [23:29:03]CAPDU: 80 0D 01 02 [23:29:03]Write to MH i2c: E2 08 00 63 07 80 0D 01 02 00 00 00 00 E3 [23:29:03]Write i2c OK [23:29:03]MH_I2C_Read... [23:29:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:03]Read from MH i2c: E2 [23:29:03]MH_I2C_Read... [23:29:03]Read from MH i2c: E2 03 00 [23:29:03]MH_I2C_Read... [23:29:03]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [23:29:03]RAPDU: 90 00 [23:29:03]wFMCommunicate OK [23:29:03]wFMCommunicate request_size=255 [23:29:03]MH_SAM_APDU [23:29:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 3F BC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 82 02 00 35 04 06 00 A6 [23:29:03]Write to MH i2c: E2 02 01 64 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 3F BC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 82 02 00 35 04 06 00 A6 00 00 20 [23:29:03]Write i2c OK [23:29:03]MH_I2C_Read... [23:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:03]Read from MH i2c: E2 [23:29:03]MH_I2C_Read... [23:29:03]Read from MH i2c: E2 03 00 [23:29:03]MH_I2C_Read... [23:29:03]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [23:29:03]RAPDU: 90 00 [23:29:03]wFMCommunicate OK [23:29:03]wFMCommunicate request_size=10 [23:29:03]MH_SAM_APDU [23:29:03]CAPDU: 80 0D 02 02 05 7F 4B 40 F3 90 [23:29:03]Write to MH i2c: E2 0D 00 65 07 80 0D 02 02 05 00 7F 4B 40 F3 90 00 00 7D [23:29:03]Write i2c OK [23:29:03]MH_I2C_Read... [23:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:03]Read from MH i2c: E2 [23:29:03]MH_I2C_Read... [23:29:03]Read from MH i2c: E2 03 00 [23:29:03]MH_I2C_Read... [23:29:03]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [23:29:03]RAPDU: 90 00 [23:29:03]wFMCommunicate OK [23:29:03]wFMCommunicate request_size=4 [23:29:03]MH_SAM_APDU [23:29:03]CAPDU: 80 0D 03 02 [23:29:03]Write to MH i2c: E2 08 00 66 07 80 0D 03 02 00 00 00 00 E8 [23:29:03]Write i2c OK [23:29:03]MH_I2C_Read... [23:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:04]Read from MH i2c: E2 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: E2 0B 00 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: E2 0B 00 66 07 00 B7 84 A6 7F 0B 96 E9 73 90 00 46 [23:29:04]RAPDU: B7 84 A6 7F 0B 96 E9 73 90 00 [23:29:04]wFMCommunicate OK [23:29:04]SAM_PROTO_SignData done [23:29:04]FM_MakeSignedData done [23:29:04]CreateOFDProtocolMessage [23:29:04]wFMCommunicate request_size=4 [23:29:04]MH_SAM_APDU [23:29:04]CAPDU: 80 11 00 00 [23:29:04]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [23:29:04]Write i2c OK [23:29:04]MH_I2C_Read... [23:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:04]Read from MH i2c: E2 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: E2 17 00 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: E2 17 00 67 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [23:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:29:04]wFMCommunicate OK [23:29:04]CreateOFDProtocolMessage done [23:29:04]OFDSenderStorePacket 164426 [23:29:04]StoreOFDPacket docnum=164426 [23:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 05 07 01 B4 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 3F BC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 82 02 00 35 04 06 00 A6 7F 4B 40 F3 90 B7 84 A6 7F 0B 96 E9 73 [23:29:04]CheckFolder [23:29:04]dirname=/storage/ofd_packets [23:29:04]CheckFolder done [23:29:04]ProducePacketName [23:29:04]name=ofd_packets/00164426 [23:29:04]NVStorageSaveData ofd_packets/00164426 [23:29:04]File name is /storage/ofd_packets/00164426 [23:29:04]Write 301 bytes [23:29:04]NVStorageSaveData done [23:29:04]OFDSenderStorePacket done [23:29:04]KKMCreateOFDPacket done [23:29:04]NVStorageSaveData kkm_last_timestamp [23:29:04]File name is /storage/kkm_last_timestamp [23:29:04]Write 4 bytes [23:29:04]NVStorageSaveData done [23:29:04]ExternCall_PrintAddStr [23:29:04]wPrintStart [23:29:04]Write to MH i2c: 01 00 00 68 07 6F [23:29:04]Write i2c OK [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 07 00 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 FF 0F 84 [23:29:04]RasterBufferAndPrint [23:29:04]line Счет N : (1)458514 [23:29:04]line ИНН: 02508201610067 [23:29:04]line Контрольно-Кассовый Чек [23:29:04]line ПРОДАЖА [23:29:04]line ТРК (МРК, ГНК) : 12 [23:29:04]line Товар: 2710124130 [23:29:04]line Аи-92-К-5 [23:29:04]line 10.640 * 65.80 [23:29:04]line = 700.11 [23:29:04]line НДС 12% НСП 1% [23:29:04]line > о реализуемом товаре [23:29:04]line ОКРУГЛЕНИЕ: -0.11 [23:29:04]line ИТОГО: 700.00 [23:29:04]line Внесено: 700.00 [23:29:04]line СДАЧА: 0.00 [23:29:04]line НСП 1% : 6.20 [23:29:04]line НДС 12% : 74.35 [23:29:04]line Наличными: 700.00 [23:29:04]line Безнал.: 0.00 [23:29:04]line Место: АЗС № 72 "Партнер Нефть" [23:29:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:29:04]line СНО: Общий режим [23:29:04]line Чек 347 12.07.2024 23:29 [23:29:04]line Смена: 445 ФФД: 1.0 [23:29:04]line ЗНМ: 0300000160 [23:29:04]line РНМ: 0000000000090829 [23:29:04]line Версия ККМ: 001 [23:29:04]line ФМ: 0000000000874718 [23:29:04]line ФД: 164426 [23:29:04]line ФПД: 183065653605264 [23:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T232903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164426&fm=183065653605264&tin=02508201610067®Number=0000000000090829&sum=70000 [23:29:04]OFD Sender: Processing packet 164426 [packets to send 104, broken 103] [23:29:04]ProducePacketName [23:29:04]name=ofd_packets/00164426 [23:29:04]OFD Sender: To server: pG, [23:29:04]CommunicateWithHost lk.salyk.kg:30040 [23:29:04]ConnectInit lk.salyk.kg [23:29:04]written 0, free lines is 4095 [23:29:04]Connected sock=10 [23:29:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 05 07 01 B4 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 3F BC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 82 02 00 35 04 06 00 A6 7F 4B 40 F3 90 B7 84 A6 7F 0B 96 E9 73 [23:29:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DB 33 47 00 CD 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 82 02 00 F4 03 04 00 D2 62 91 66 B6 04 01 00 00 4C 27 9E 7C 06 58 F9 9A [23:29:04]CommunicateWithHost err = 0 [23:29:04]CheckOFDResponse [23:29:04]1017 (14) - 77093643461234 [23:29:04]1041 (16) - 0000000000874718 [23:29:04]1040 (4) - 164426 [23:29:04]1012 (4) - 12.07.2024 17:07 [23:29:04]1206 (1) - 0 [23:29:04]OFD Sender: Remove packet 164426 [23:29:04]ProducePacketName [23:29:04]name=ofd_packets/00164426 [23:29:04]NVStorageDeleteData [23:29:04]Write to MH i2c: 01 00 00 92 07 99 [23:29:04]Write i2c OK [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 07 00 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 07 00 92 07 00 00 00 00 00 F1 0C 9D [23:29:04]RasterBufferAndPrint [23:29:04]line [23:29:04]line [23:29:04]line [23:29:04]line [23:29:04]line [23:29:04]written 0, free lines is 3319 [23:29:04]MH_Cut [23:29:04]Write to MH i2c: D1 01 00 99 07 01 72 [23:29:04]Write i2c OK [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: D1 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: D1 01 00 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: D1 01 00 99 07 00 71 [23:29:04]Write to MH i2c: 01 00 00 9A 07 A1 [23:29:04]Write i2c OK [23:29:04]MH_I2C_Read... [23:29:05]OFD Sender: No OFD packet to send [23:29:05]*** Cut start [23:29:05]*** Partial cut [23:29:05]*** CUTSNS_PIN = 1 [23:29:05]*** CUTSNS_PIN = 0 [23:29:05]*** Brake cut motor [23:29:06]Read from MH i2c: 01 [23:29:06]MH_I2C_Read... [23:29:06]*** Stop cut motor [23:29:06]*** Cut end [23:29:06]Read from MH i2c: 01 07 00 [23:29:06]MH_I2C_Read... [23:29:06]Read from MH i2c: 01 07 00 9A 07 00 00 00 00 00 FF 0F B6 [23:29:06]process_action close_receipt done [23:29:06]requested_data is exist [23:29:06]produce_requested_data [23:29:06]requested_item fm.sn is exist - process it [23:29:06]wFMCommunicate request_size=4 [23:29:06]MH_SAM_APDU [23:29:06]CAPDU: 80 11 00 00 [23:29:06]Write to MH i2c: E2 08 00 9B 07 80 11 00 00 00 00 00 00 1C [23:29:06]Write i2c OK [23:29:06]MH_I2C_Read... [23:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:06]Read from MH i2c: E2 [23:29:06]MH_I2C_Read... [23:29:06]Read from MH i2c: E2 17 00 [23:29:06]MH_I2C_Read... [23:29:06]Read from MH i2c: E2 17 00 9B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [23:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:29:06]wFMCommunicate OK [23:29:06]requested_item fd.num is exist - process it [23:29:06]SAM_PROTO_GetFieldsCounters [23:29:06]wFMCommunicate request_size=4 [23:29:06]MH_SAM_APDU [23:29:06]CAPDU: 80 13 00 00 [23:29:06]Write to MH i2c: E2 08 00 9C 07 80 13 00 00 00 00 00 00 1F [23:29:06]Write i2c OK [23:29:06]MH_I2C_Read... [23:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:06]Read from MH i2c: E2 [23:29:06]MH_I2C_Read... [23:29:06]Read from MH i2c: E2 62 00 [23:29:06]MH_I2C_Read... [23:29:06]Read from MH i2c: E2 62 00 9C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [23: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:06]wFMCommunicate OK [23:29:06]SAM_PROTO_GetFieldsCounters done [23:29:06]requested_item shift.num is exist - process it [23:29:06]requested_item shift.opened is exist - process it [23:29:06]req_shift_opened [23:29:06]FM_GetShiftState [23:29:06]SAM_PROTO_GetShiftState [23:29:06]wFMCommunicate request_size=4 [23:29:06]MH_SAM_APDU [23:29:06]CAPDU: 80 13 01 00 [23:29:06]Write to MH i2c: E2 08 00 9D 07 80 13 01 00 00 00 00 00 21 [23:29:06]Write i2c OK [23:29:06]MH_I2C_Read... [23:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:06]Read from MH i2c: E2 [23:29:06]MH_I2C_Read... [23:29:06]Read from MH i2c: E2 0E 00 [23:29:06]MH_I2C_Read... [23:29:06]Read from MH i2c: E2 0E 00 9D 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6B [23:29:06]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:29:06]wFMCommunicate OK [23:29:06]SAM_PROTO_GetShiftState done [23:29:06]FM_GetShiftState done [23:29:06]req_shift_opened done [23:29:06]requested_item shift.open_date is exist - process it [23:29:06]req_shift_open_date [23:29:06]req_shift_open_date done [23:29:06]produce_requested_data done [23:29:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164426,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:29:06]process_action_free close_receipt [23:29:06]json_value_free [23:29:06]json_value_free done [23:29:06]process_json_proto returns [23:29:06]Send response to host [23:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164426,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:29:06]free response buf [23:29:06]execute_script done [23:29:06]execute_script returns [23:29:06]free content buf [23:29:06]Sock 7.Close socket [23:29:06]Sock 7.Thread stoped [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:01]accept exits with 9 [23:30:01]New connection [23:30:01]New thread 3067632996 created [23:30:01]Thread 3067489636 joined [23:30:01]Waiting for new connection... [23:30:01] Sock 9.Parse request [23:30:01]Sock 9.Check first char [23:30:01]Sock 9.First char is OK [23:30:01]request: POST /json_proto HTTP/1.0 [23:30:01]Method: POST [23:30:01]URL: /json_proto [23:30:01]Method is POST - this is cgi request [23:30:01]url: /json_proto [23:30:01]query_string will be loaded in cgi processing [23:30:01]execute_cgi json_proto POST (null) [23:30:01]execute_cgi path=json_proto method=POST [23:30:01]POST find Content-Length [23:30:01]Host: 172.17.56.4:8080 [23:30:01]Content-Length: 677 [23:30:01]Content-Type: application/json [23:30:01] [23:30:01]POST finish read [23:30:01]Found Content-Length = 677 [23:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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" ] } } [23:30:01]execute_script... [23:30: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)458515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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" ] } } [23:30:01]POST & json_proto [23:30:01]process_json_proto [23:30:01]json parsed OK: [23:30:01]protocol is kg_v1.0 [23:30:01]action value=close_receipt [23:30:01]process_action close_receipt [23:30:01]cmd_close_receipt [23:30:01]MH_GetDate [23:30:01]Write to MH i2c: F0 00 00 9E 07 94 [23:30:01]Write i2c OK [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: F0 [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: F0 09 00 [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: F0 09 00 9E 07 00 7B BC 91 66 C9 DC B2 64 86 [23:30:01]GetLastDocTimeStamp 1720826943 [23:30:01]current date 1720827003 [23:30:01]FM_GetShiftState [23:30:01]SAM_PROTO_GetShiftState [23:30:01]wFMCommunicate request_size=4 [23:30:01]MH_SAM_APDU [23:30:01]CAPDU: 80 13 01 00 [23:30:01]Write to MH i2c: E2 08 00 9F 07 80 13 01 00 00 00 00 00 23 [23:30:01]Write i2c OK [23:30:01]MH_I2C_Read... [23:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:01]Read from MH i2c: E2 [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: E2 0E 00 [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: E2 0E 00 9F 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 6D [23:30:01]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:30:01]wFMCommunicate OK [23:30:01]SAM_PROTO_GetShiftState done [23:30:01]FM_GetShiftState done [23:30:01]opened in 1720744654 [23:30:01]opened+sec_in_day 1720831054 [23:30:01]quantity*price = 40006 [23:30:01]sum+1 = 40007 [23:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 348 12.07.2024 23:30 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164427 ФПД: 90864164121969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T233003&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164427&fm=90864164121969&tin=02508201610067®Number=0000000000090829&sum=40000 [23:30:03]StoreToDocumentArchive [23:30:03]shift 445 fd 164427 [23:30:03]save to /storage/0445/doc_00164427 [23:30:03]save last doc name /storage/0445/doc_00164427 to /storage/kkm_last_doc_name [23:30:03]save OK [23:30:03]Clear old archive folders... [23:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:03]tlvbuf is 00CD41E0 [23:30:03]SAM_PROTO_ClearQueue [23:30:03]wFMCommunicate request_size=4 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 09 00 00 [23:30:03]Write to MH i2c: E2 08 00 AC 07 80 09 00 00 00 00 00 00 25 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [23:30:03]RAPDU: 90 00 [23:30:03]wFMCommunicate OK [23:30:03]SAM_PROTO_ClearQueue done [23:30:03]KKMCreateOFDPacket [23:30:03]OFDProtocolAddRootSTLVToBuf [23:30:03]FM_MakeSignedData [23:30:03]FM_MakeSignedData [23:30:03]SAM_PROTO_SignData [23:30:03]wFMCommunicate request_size=4 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 0D 01 02 [23:30:03]Write to MH i2c: E2 08 00 AD 07 80 0D 01 02 00 00 00 00 2D [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [23:30:03]RAPDU: 90 00 [23:30:03]wFMCommunicate OK [23:30:03]wFMCommunicate request_size=255 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 7B BC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 82 02 00 35 04 06 00 52 [23:30:03]Write to MH i2c: E2 02 01 AE 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 7B BC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 82 02 00 35 04 06 00 52 00 00 F0 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [23:30:03]RAPDU: 90 00 [23:30:03]wFMCommunicate OK [23:30:03]wFMCommunicate request_size=10 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 0D 02 02 05 A3 F6 39 AD 71 [23:30:03]Write to MH i2c: E2 0D 00 AF 07 80 0D 02 02 05 00 A3 F6 39 AD 71 00 00 2A [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [23:30:03]RAPDU: 90 00 [23:30:03]wFMCommunicate OK [23:30:03]wFMCommunicate request_size=4 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 0D 03 02 [23:30:03]Write to MH i2c: E2 08 00 B0 07 80 0D 03 02 00 00 00 00 32 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 0B 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 0B 00 B0 07 00 79 98 7A BB E9 89 AB 39 90 00 CF [23:30:03]RAPDU: 79 98 7A BB E9 89 AB 39 90 00 [23:30:03]wFMCommunicate OK [23:30:03]SAM_PROTO_SignData done [23:30:03]FM_MakeSignedData done [23:30:03]CreateOFDProtocolMessage [23:30:03]wFMCommunicate request_size=4 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 11 00 00 [23:30:03]Write to MH i2c: E2 08 00 B1 07 80 11 00 00 00 00 00 00 32 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 17 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 17 00 B1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 88 [23:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:30:03]wFMCommunicate OK [23:30:03]CreateOFDProtocolMessage done [23:30:03]OFDSenderStorePacket 164427 [23:30:03]StoreOFDPacket docnum=164427 [23:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 09 07 01 6F 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 7B BC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 82 02 00 35 04 06 00 52 A3 F6 39 AD 71 79 98 7A BB E9 89 AB 39 [23:30:03]CheckFolder [23:30:03]dirname=/storage/ofd_packets [23:30:03]CheckFolder done [23:30:03]ProducePacketName [23:30:03]name=ofd_packets/00164427 [23:30:03]NVStorageSaveData ofd_packets/00164427 [23:30:03]File name is /storage/ofd_packets/00164427 [23:30:03]Write 301 bytes [23:30:03]NVStorageSaveData done [23:30:03]OFDSenderStorePacket done [23:30:03]KKMCreateOFDPacket done [23:30:03]NVStorageSaveData kkm_last_timestamp [23:30:03]File name is /storage/kkm_last_timestamp [23:30:03]Write 4 bytes [23:30:03]NVStorageSaveData done [23:30:03]ExternCall_PrintAddStr [23:30:03]wPrintStart [23:30:03]Write to MH i2c: 01 00 00 B2 07 B9 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: 01 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: 01 07 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: 01 07 00 B2 07 00 00 00 00 00 FF 0F CE [23:30:03]RasterBufferAndPrint [23:30:03]line Счет N : (1)458515 [23:30:03]line ИНН: 02508201610067 [23:30:03]line Контрольно-Кассовый Чек [23:30:03]line ПРОДАЖА [23:30:03]line ТРК (МРК, ГНК) : 12 [23:30:03]line Товар: 2710124130 [23:30:03]line Аи-92-К-5 [23:30:03]line 6.080 * 65.80 [23:30:03]line = 400.06 [23:30:03]line НДС 12% НСП 1% [23:30:03]line > о реализуемом товаре [23:30:03]line ОКРУГЛЕНИЕ: -0.06 [23:30:03]line ИТОГО: 400.00 [23:30:03]line Внесено: 400.00 [23:30:03]line СДАЧА: 0.00 [23:30:03]line НСП 1% : 3.54 [23:30:03]line НДС 12% : 42.48 [23:30:03]line Наличными: 400.00 [23:30:03]line Безнал.: 0.00 [23:30:03]line Место: АЗС № 72 "Партнер Нефть" [23:30:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:30:03]line СНО: Общий режим [23:30:03]line Чек 348 12.07.2024 23:30 [23:30:03]line Смена: 445 ФФД: 1.0 [23:30:03]line ЗНМ: 0300000160 [23:30:03]line РНМ: 0000000000090829 [23:30:03]line Версия ККМ: 001 [23:30:03]line ФМ: 0000000000874718 [23:30:03]line ФД: 164427 [23:30:03]line ФПД: 90864164121969 [23:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T233003&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164427&fm=90864164121969&tin=02508201610067®Number=0000000000090829&sum=40000 [23:30:03]written 0, free lines is 4095 [23:30:03]OFD Sender: Processing packet 164427 [packets to send 104, broken 103] [23:30:03]ProducePacketName [23:30:03]name=ofd_packets/00164427 [23:30:03]OFD Sender: To server: pG, [23:30:03]CommunicateWithHost lk.salyk.kg:30040 [23:30:03]ConnectInit lk.salyk.kg [23:30:03]Connected sock=10 [23:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 09 07 01 6F 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 01 00 00 F4 03 04 00 7B BC 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 82 02 00 35 04 06 00 52 A3 F6 39 AD 71 79 98 7A BB E9 89 AB 39 [23:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C6 CC 47 00 BD 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 34 37 31 38 10 04 04 00 4B 82 02 00 F4 03 04 00 0D 63 91 66 B6 04 01 00 00 A4 CC 38 20 8A 44 AE 96 [23:30:03]CommunicateWithHost err = 0 [23:30:03]CheckOFDResponse [23:30:03]1017 (14) - 77093643461234 [23:30:03]1041 (16) - 0000000000874718 [23:30:03]1040 (4) - 164427 [23:30:03]1012 (4) - 12.07.2024 17:08 [23:30:03]1206 (1) - 0 [23:30:03]OFD Sender: Remove packet 164427 [23:30:03]ProducePacketName [23:30:03]name=ofd_packets/00164427 [23:30:03]NVStorageDeleteData [23:30:04]Write to MH i2c: 01 00 00 DC 07 E3 [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: 01 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: 01 07 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: 01 07 00 DC 07 00 00 00 00 00 FA 0C F0 [23:30:04]RasterBufferAndPrint [23:30:04]line [23:30:04]line [23:30:04]line [23:30:04]line [23:30:04]line [23:30:04]written 0, free lines is 3327 [23:30:04]MH_Cut [23:30:04]Write to MH i2c: D1 01 00 E3 07 01 BC [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: D1 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: D1 01 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: D1 01 00 E3 07 00 BB [23:30:04]Write to MH i2c: 01 00 00 E4 07 EB [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]OFD Sender: No OFD packet to send [23:30:04]*** Cut start [23:30:04]*** Partial cut [23:30:04]*** CUTSNS_PIN = 1 [23:30:04]*** CUTSNS_PIN = 0 [23:30:04]*** Brake cut motor [23:30:05]Read from MH i2c: 01 [23:30:05]MH_I2C_Read... [23:30:05]*** Stop cut motor [23:30:05]*** Cut end [23:30:05]Read from MH i2c: 01 07 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: 01 07 00 E4 07 00 00 00 00 00 FF 0F 00 [23:30:05]process_action close_receipt done [23:30:05]requested_data is exist [23:30:05]produce_requested_data [23:30:05]requested_item fm.sn is exist - process it [23:30:05]wFMCommunicate request_size=4 [23:30:05]MH_SAM_APDU [23:30:05]CAPDU: 80 11 00 00 [23:30:05]Write to MH i2c: E2 08 00 E5 07 80 11 00 00 00 00 00 00 66 [23:30:05]Write i2c OK [23:30:05]MH_I2C_Read... [23:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:05]Read from MH i2c: E2 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 17 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 17 00 E5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [23:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:30:05]wFMCommunicate OK [23:30:05]requested_item fd.num is exist - process it [23:30:05]SAM_PROTO_GetFieldsCounters [23:30:05]wFMCommunicate request_size=4 [23:30:05]MH_SAM_APDU [23:30:05]CAPDU: 80 13 00 00 [23:30:05]Write to MH i2c: E2 08 00 E6 07 80 13 00 00 00 00 00 00 69 [23:30:05]Write i2c OK [23:30:05]MH_I2C_Read... [23:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:05]Read from MH i2c: E2 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 62 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 62 00 E6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [23: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:05]wFMCommunicate OK [23:30:05]SAM_PROTO_GetFieldsCounters done [23:30:05]requested_item shift.num is exist - process it [23:30:05]requested_item shift.opened is exist - process it [23:30:05]req_shift_opened [23:30:05]FM_GetShiftState [23:30:05]SAM_PROTO_GetShiftState [23:30:05]wFMCommunicate request_size=4 [23:30:05]MH_SAM_APDU [23:30:05]CAPDU: 80 13 01 00 [23:30:05]Write to MH i2c: E2 08 00 E7 07 80 13 01 00 00 00 00 00 6B [23:30:05]Write i2c OK [23:30:05]MH_I2C_Read... [23:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:05]Read from MH i2c: E2 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 0E 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 0E 00 E7 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B5 [23:30:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:30:05]wFMCommunicate OK [23:30:05]SAM_PROTO_GetShiftState done [23:30:05]FM_GetShiftState done [23:30:05]req_shift_opened done [23:30:05]requested_item shift.open_date is exist - process it [23:30:05]req_shift_open_date [23:30:05]req_shift_open_date done [23:30:05]produce_requested_data done [23:30:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164427,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:30:05]process_action_free close_receipt [23:30:05]json_value_free [23:30:05]json_value_free done [23:30:05]process_json_proto returns [23:30:05]Send response to host [23:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164427,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:30:05]free response buf [23:30:05]execute_script done [23:30:05]execute_script returns [23:30:05]free content buf [23:30:05]Sock 9.Close socket [23:30:05]Sock 9.Thread stoped [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:27]accept exits with 7 [23:34:27]New connection [23:34:27]New thread 3067489636 created [23:34:27]Thread 3067632996 joined [23:34:27]Waiting for new connection... [23:34:27] Sock 7.Parse request [23:34:27]Sock 7.Check first char [23:34:27]Sock 7.First char is OK [23:34:27]request: POST /json_proto HTTP/1.0 [23:34:27]Method: POST [23:34:27]URL: /json_proto [23:34:27]Method is POST - this is cgi request [23:34:27]url: /json_proto [23:34:27]query_string will be loaded in cgi processing [23:34:27]execute_cgi json_proto POST (null) [23:34:27]execute_cgi path=json_proto method=POST [23:34:27]POST find Content-Length [23:34:27]Host: 172.17.56.4:8080 [23:34:27]Content-Length: 677 [23:34:27]Content-Type: application/json [23:34:27] [23:34:27]POST finish read [23:34:27]Found Content-Length = 677 [23:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:34:27]execute_script... [23:34:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:34:27]POST & json_proto [23:34:27]process_json_proto [23:34:27]json parsed OK: [23:34:27]protocol is kg_v1.0 [23:34:27]action value=close_receipt [23:34:27]process_action close_receipt [23:34:27]cmd_close_receipt [23:34:27]MH_GetDate [23:34:27]Write to MH i2c: F0 00 00 E8 07 DE [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: F0 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: F0 09 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: F0 09 00 E8 07 00 84 BD 91 66 C9 DC B2 64 DA [23:34:27]GetLastDocTimeStamp 1720827003 [23:34:27]current date 1720827268 [23:34:27]FM_GetShiftState [23:34:27]SAM_PROTO_GetShiftState [23:34:27]wFMCommunicate request_size=4 [23:34:27]MH_SAM_APDU [23:34:27]CAPDU: 80 13 01 00 [23:34:27]Write to MH i2c: E2 08 00 E9 07 80 13 01 00 00 00 00 00 6D [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:27]Read from MH i2c: E2 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 0E 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 0E 00 E9 07 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 B7 [23:34:27]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:34:27]wFMCommunicate OK [23:34:27]SAM_PROTO_GetShiftState done [23:34:27]FM_GetShiftState done [23:34:27]opened in 1720744654 [23:34:27]opened+sec_in_day 1720831054 [23:34:27]quantity*price = 20003 [23:34:27]sum+1 = 20004 [23:34:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 349 12.07.2024 23:34 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164428 ФПД: 248912827825583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T233428&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164428&fm=248912827825583&tin=02508201610067®Number=0000000000090829&sum=20000 [23:34:28]StoreToDocumentArchive [23:34:28]shift 445 fd 164428 [23:34:28]save to /storage/0445/doc_00164428 [23:34:28]save last doc name /storage/0445/doc_00164428 to /storage/kkm_last_doc_name [23:34:28]save OK [23:34:28]Clear old archive folders... [23:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:28]tlvbuf is 00C84F20 [23:34:28]SAM_PROTO_ClearQueue [23:34:28]wFMCommunicate request_size=4 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 09 00 00 [23:34:28]Write to MH i2c: E2 08 00 F6 07 80 09 00 00 00 00 00 00 6F [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [23:34:28]RAPDU: 90 00 [23:34:28]wFMCommunicate OK [23:34:28]SAM_PROTO_ClearQueue done [23:34:28]KKMCreateOFDPacket [23:34:28]OFDProtocolAddRootSTLVToBuf [23:34:28]FM_MakeSignedData [23:34:28]FM_MakeSignedData [23:34:28]SAM_PROTO_SignData [23:34:28]wFMCommunicate request_size=4 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 0D 01 02 [23:34:28]Write to MH i2c: E2 08 00 F7 07 80 0D 01 02 00 00 00 00 77 [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [23:34:28]RAPDU: 90 00 [23:34:28]wFMCommunicate OK [23:34:28]wFMCommunicate request_size=255 [23:34:28]MH_SAM_APDU [23:34: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 84 BD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 82 02 00 35 04 06 00 E2 [23:34:28]Write to MH i2c: E2 02 01 F8 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 84 BD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 82 02 00 35 04 06 00 E2 00 00 97 [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [23:34:28]RAPDU: 90 00 [23:34:28]wFMCommunicate OK [23:34:28]wFMCommunicate request_size=10 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 0D 02 02 05 62 88 AE BD AF [23:34:28]Write to MH i2c: E2 0D 00 F9 07 80 0D 02 02 05 00 62 88 AE BD AF 00 00 88 [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [23:34:28]RAPDU: 90 00 [23:34:28]wFMCommunicate OK [23:34:28]wFMCommunicate request_size=4 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 0D 03 02 [23:34:28]Write to MH i2c: E2 08 00 FA 07 80 0D 03 02 00 00 00 00 7C [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 0B 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 0B 00 FA 07 00 F2 0B 8B 85 15 09 BB D1 90 00 34 [23:34:28]RAPDU: F2 0B 8B 85 15 09 BB D1 90 00 [23:34:28]wFMCommunicate OK [23:34:28]SAM_PROTO_SignData done [23:34:28]FM_MakeSignedData done [23:34:28]CreateOFDProtocolMessage [23:34:28]wFMCommunicate request_size=4 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 11 00 00 [23:34:28]Write to MH i2c: E2 08 00 FB 07 80 11 00 00 00 00 00 00 7C [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 17 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 17 00 FB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D2 [23:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:34:28]wFMCommunicate OK [23:34:28]CreateOFDProtocolMessage done [23:34:28]OFDSenderStorePacket 164428 [23:34:28]StoreOFDPacket docnum=164428 [23:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 18 07 01 B2 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 84 BD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 82 02 00 35 04 06 00 E2 62 88 AE BD AF F2 0B 8B 85 15 09 BB D1 [23:34:28]CheckFolder [23:34:28]dirname=/storage/ofd_packets [23:34:28]CheckFolder done [23:34:28]ProducePacketName [23:34:28]name=ofd_packets/00164428 [23:34:28]NVStorageSaveData ofd_packets/00164428 [23:34:28]File name is /storage/ofd_packets/00164428 [23:34:28]Write 301 bytes [23:34:28]NVStorageSaveData done [23:34:28]OFDSenderStorePacket done [23:34:28]KKMCreateOFDPacket done [23:34:28]NVStorageSaveData kkm_last_timestamp [23:34:28]File name is /storage/kkm_last_timestamp [23:34:28]Write 4 bytes [23:34:28]NVStorageSaveData done [23:34:28]ExternCall_PrintAddStr [23:34:28]wPrintStart [23:34:28]Write to MH i2c: 01 00 00 FC 07 03 [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: 01 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: 01 07 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: 01 07 00 FC 07 00 00 00 00 00 FF 0F 18 [23:34:28]RasterBufferAndPrint [23:34:28]line Счет N : (1)458516 [23:34:28]line ИНН: 02508201610067 [23:34:28]line Контрольно-Кассовый Чек [23:34:28]line ПРОДАЖА [23:34:28]line ТРК (МРК, ГНК) : 22 [23:34:28]line Товар: 2710124130 [23:34:28]line Аи-92-К-5 [23:34:28]line 3.040 * 65.80 [23:34:28]line = 200.03 [23:34:28]line НДС 12% НСП 1% [23:34:28]line > о реализуемом товаре [23:34:28]line ОКРУГЛЕНИЕ: -0.03 [23:34:28]line ИТОГО: 200.00 [23:34:28]line Внесено: 200.00 [23:34:28]line СДАЧА: 0.00 [23:34:28]line НСП 1% : 1.77 [23:34:28]line НДС 12% : 21.24 [23:34:28]line Наличными: 200.00 [23:34:28]line Безнал.: 0.00 [23:34:28]line Место: АЗС № 72 "Партнер Нефть" [23:34:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:34:28]line СНО: Общий режим [23:34:28]line Чек 349 12.07.2024 23:34 [23:34:28]line Смена: 445 ФФД: 1.0 [23:34:28]line ЗНМ: 0300000160 [23:34:28]line РНМ: 0000000000090829 [23:34:28]line Версия ККМ: 001 [23:34:28]line ФМ: 0000000000874718 [23:34:28]line ФД: 164428 [23:34:28]line ФПД: 248912827825583 [23:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T233428&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164428&fm=248912827825583&tin=02508201610067®Number=0000000000090829&sum=20000 [23:34:29]written 0, free lines is 4095 [23:34:29]OFD Sender: Processing packet 164428 [packets to send 104, broken 103] [23:34:29]ProducePacketName [23:34:29]name=ofd_packets/00164428 [23:34:29]OFD Sender: To server: pG, [23:34:29]CommunicateWithHost lk.salyk.kg:30040 [23:34:29]ConnectInit lk.salyk.kg [23:34:29]Connected sock=10 [23:34:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 18 07 01 B2 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 84 BD 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 82 02 00 35 04 06 00 E2 62 88 AE BD AF F2 0B 8B 85 15 09 BB D1 [23:34:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9A 27 47 00 D1 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 34 37 31 38 10 04 04 00 4C 82 02 00 F4 03 04 00 17 64 91 66 B6 04 01 00 00 4A E7 97 C0 80 20 11 BA [23:34:29]CommunicateWithHost err = 0 [23:34:29]CheckOFDResponse [23:34:29]1017 (14) - 77093643461234 [23:34:29]1041 (16) - 0000000000874718 [23:34:29]1040 (4) - 164428 [23:34:29]1012 (4) - 12.07.2024 17:12 [23:34:29]1206 (1) - 0 [23:34:29]OFD Sender: Remove packet 164428 [23:34:29]ProducePacketName [23:34:29]name=ofd_packets/00164428 [23:34:29]NVStorageDeleteData [23:34:29]Write to MH i2c: 01 00 00 26 08 2E [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: 01 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: 01 07 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: 01 07 00 26 08 00 00 00 00 00 FB 0C 3C [23:34:29]RasterBufferAndPrint [23:34:29]line [23:34:29]line [23:34:29]line [23:34:29]line [23:34:29]line [23:34:29]written 0, free lines is 3329 [23:34:29]MH_Cut [23:34:29]Write to MH i2c: D1 01 00 2D 08 01 07 [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: D1 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: D1 01 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: D1 01 00 2D 08 00 06 [23:34:29]Write to MH i2c: 01 00 00 2E 08 36 [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:30]OFD Sender: No OFD packet to send [23:34:30]*** Cut start [23:34:30]*** Partial cut [23:34:30]*** CUTSNS_PIN = 1 [23:34:30]*** CUTSNS_PIN = 0 [23:34:30]*** Brake cut motor [23:34:30]Read from MH i2c: 01 [23:34:30]MH_I2C_Read... [23:34:30]*** Stop cut motor [23:34:30]*** Cut end [23:34:30]Read from MH i2c: 01 07 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: 01 07 00 2E 08 00 00 00 00 00 FF 0F 4B [23:34:30]process_action close_receipt done [23:34:30]requested_data is exist [23:34:30]produce_requested_data [23:34:30]requested_item fm.sn is exist - process it [23:34:30]wFMCommunicate request_size=4 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 11 00 00 [23:34:30]Write to MH i2c: E2 08 00 2F 08 80 11 00 00 00 00 00 00 B1 [23:34:30]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 17 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 17 00 2F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [23:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:34:31]wFMCommunicate OK [23:34:31]requested_item fd.num is exist - process it [23:34:31]SAM_PROTO_GetFieldsCounters [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 13 00 00 [23:34:31]Write to MH i2c: E2 08 00 30 08 80 13 00 00 00 00 00 00 B4 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 62 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 62 00 30 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [23:34:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:31]wFMCommunicate OK [23:34:31]SAM_PROTO_GetFieldsCounters done [23:34:31]requested_item shift.num is exist - process it [23:34:31]requested_item shift.opened is exist - process it [23:34:31]req_shift_opened [23:34:31]FM_GetShiftState [23:34:31]SAM_PROTO_GetShiftState [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 13 01 00 [23:34:31]Write to MH i2c: E2 08 00 31 08 80 13 01 00 00 00 00 00 B6 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 0E 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 0E 00 31 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 00 [23:34:31]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:34:31]wFMCommunicate OK [23:34:31]SAM_PROTO_GetShiftState done [23:34:31]FM_GetShiftState done [23:34:31]req_shift_opened done [23:34:31]requested_item shift.open_date is exist - process it [23:34:31]req_shift_open_date [23:34:31]req_shift_open_date done [23:34:31]produce_requested_data done [23:34:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164428,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:34:31]process_action_free close_receipt [23:34:31]json_value_free [23:34:31]json_value_free done [23:34:31]process_json_proto returns [23:34:31]Send response to host [23:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164428,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:34:31]free response buf [23:34:31]execute_script done [23:34:31]execute_script returns [23:34:31]free content buf [23:34:31]Sock 7.Close socket [23:34:31]Sock 7.Thread stoped [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:41]accept exits with 9 [23:37:41]New connection [23:37:41]New thread 3067632996 created [23:37:41]Thread 3067489636 joined [23:37:41]Waiting for new connection... [23:37:41] Sock 9.Parse request [23:37:41]Sock 9.Check first char [23:37:41]Sock 9.First char is OK [23:37:41]request: POST /json_proto HTTP/1.0 [23:37:41]Method: POST [23:37:41]URL: /json_proto [23:37:41]Method is POST - this is cgi request [23:37:41]url: /json_proto [23:37:41]query_string will be loaded in cgi processing [23:37:41]execute_cgi json_proto POST (null) [23:37:41]execute_cgi path=json_proto method=POST [23:37:41]POST find Content-Length [23:37:41]Host: 172.17.56.4:8080 [23:37:41]Content-Length: 793 [23:37:41]Content-Type: application/json [23:37:41] [23:37:41]POST finish read [23:37:41]Found Content-Length = 793 [23:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:41]execute_script... [23:37: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)458517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:41]POST & json_proto [23:37:41]process_json_proto [23:37:41]json parsed OK: [23:37:41]protocol is kg_v1.0 [23:37:41]action value=close_receipt [23:37:41]process_action close_receipt [23:37:41]cmd_close_receipt [23:37:41]MH_GetDate [23:37:41]Write to MH i2c: F0 00 00 32 08 29 [23:37:41]Write i2c OK [23:37:41]MH_I2C_Read... [23:37:41]Read from MH i2c: F0 [23:37:41]MH_I2C_Read... [23:37:41]Read from MH i2c: F0 09 00 [23:37:41]MH_I2C_Read... [23:37:41]Read from MH i2c: F0 09 00 32 08 00 47 BE 91 66 C9 DC B2 64 E9 [23:37:41]GetLastDocTimeStamp 1720827268 [23:37:41]current date 1720827463 [23:37:41]FM_GetShiftState [23:37:41]SAM_PROTO_GetShiftState [23:37:41]wFMCommunicate request_size=4 [23:37:41]MH_SAM_APDU [23:37:41]CAPDU: 80 13 01 00 [23:37:41]Write to MH i2c: E2 08 00 33 08 80 13 01 00 00 00 00 00 B8 [23:37:41]Write i2c OK [23:37:41]MH_I2C_Read... [23:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:42]Read from MH i2c: E2 [23:37:42]MH_I2C_Read... [23:37:42]Read from MH i2c: E2 0E 00 [23:37:42]MH_I2C_Read... [23:37:42]Read from MH i2c: E2 0E 00 33 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 02 [23:37:42]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:37:42]wFMCommunicate OK [23:37:42]SAM_PROTO_GetShiftState done [23:37:42]FM_GetShiftState done [23:37:42]opened in 1720744654 [23:37:42]opened+sec_in_day 1720831054 [23:37:42]quantity*price = 100047 [23:37:42]sum+1 = 100048 [23:37:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 350 12.07.2024 23:37 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164429 ФПД: 253682913087390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T233743&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164429&fm=253682913087390&tin=02508201610067®Number=0000000000090829&sum=100047 [23:37:43]StoreToDocumentArchive [23:37:43]shift 445 fd 164429 [23:37:43]save to /storage/0445/doc_00164429 [23:37:43]save last doc name /storage/0445/doc_00164429 to /storage/kkm_last_doc_name [23:37:43]save OK [23:37:43]Clear old archive folders... [23:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:43]tlvbuf is 00CBEBE0 [23:37:43]SAM_PROTO_ClearQueue [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 09 00 00 [23:37:43]Write to MH i2c: E2 08 00 40 08 80 09 00 00 00 00 00 00 BA [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]SAM_PROTO_ClearQueue done [23:37:43]KKMCreateOFDPacket [23:37:43]OFDProtocolAddRootSTLVToBuf [23:37:43]FM_MakeSignedData [23:37:43]FM_MakeSignedData [23:37:43]SAM_PROTO_SignData [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 0D 01 02 [23:37:43]Write to MH i2c: E2 08 00 41 08 80 0D 01 02 00 00 00 00 C2 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]wFMCommunicate request_size=255 [23:37:43]MH_SAM_APDU [23:37: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 47 BE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 82 02 00 35 04 06 00 E6 [23:37:43]Write to MH i2c: E2 02 01 42 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 47 BE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 82 02 00 35 04 06 00 E6 00 00 7F [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]wFMCommunicate request_size=10 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 0D 02 02 05 B9 27 EB 8F 9E [23:37:43]Write to MH i2c: E2 0D 00 43 08 80 0D 02 02 05 00 B9 27 EB 8F 9E 00 00 C7 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 43 08 00 90 00 BF [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 0D 03 02 [23:37:43]Write to MH i2c: E2 08 00 44 08 80 0D 03 02 00 00 00 00 C7 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 0B 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 0B 00 44 08 00 6C 9E 53 36 B3 69 E1 0A 90 00 62 [23:37:43]RAPDU: 6C 9E 53 36 B3 69 E1 0A 90 00 [23:37:43]wFMCommunicate OK [23:37:43]SAM_PROTO_SignData done [23:37:43]FM_MakeSignedData done [23:37:43]CreateOFDProtocolMessage [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 11 00 00 [23:37:43]Write to MH i2c: E2 08 00 45 08 80 11 00 00 00 00 00 00 C7 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 17 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 17 00 45 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [23:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:37:43]wFMCommunicate OK [23:37:43]CreateOFDProtocolMessage done [23:37:43]OFDSenderStorePacket 164429 [23:37:43]StoreOFDPacket docnum=164429 [23:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A AD 07 01 97 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 47 BE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 82 02 00 35 04 06 00 E6 B9 27 EB 8F 9E 6C 9E 53 36 B3 69 E1 0A [23:37:43]CheckFolder [23:37:43]dirname=/storage/ofd_packets [23:37:43]CheckFolder done [23:37:43]ProducePacketName [23:37:43]name=ofd_packets/00164429 [23:37:43]NVStorageSaveData ofd_packets/00164429 [23:37:43]File name is /storage/ofd_packets/00164429 [23:37:43]Write 301 bytes [23:37:43]NVStorageSaveData done [23:37:43]OFDSenderStorePacket done [23:37:43]KKMCreateOFDPacket done [23:37:43]NVStorageSaveData kkm_last_timestamp [23:37:43]File name is /storage/kkm_last_timestamp [23:37:43]Write 4 bytes [23:37:43]NVStorageSaveData done [23:37:43]ExternCall_PrintAddStr [23:37:43]wPrintStart [23:37:43]Write to MH i2c: 01 00 00 46 08 4E [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: 01 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: 01 07 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 FF 0F 63 [23:37:43]RasterBufferAndPrint [23:37:43]line Счет N : (1)458517 [23:37:43]line ИНН: 02508201610067 [23:37:43]line Контрольно-Кассовый Чек [23:37:43]line ПРОДАЖА [23:37:43]line ТРК (МРК, ГНК) : 12 [23:37:43]line Товар: 2710124130 [23:37:43]line Аи-92-К-5 [23:37:43]line 15.340 * 65.22 [23:37:43]line = 1000.47 [23:37:43]line НДС 12% НСП 1% [23:37:43]line > о реализуемом товаре [23:37:43]line ИТОГО: 1000.47 [23:37:43]line НСП 1% : 8.85 [23:37:43]line НДС 12% : 106.24 [23:37:43]line Наличными: 0.00 [23:37:43]line Безнал.: 1000.47 [23:37:43]line Место: АЗС № 72 "Партнер Нефть" [23:37:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:37:43]line СНО: Общий режим [23:37:43]line Чек 350 12.07.2024 23:37 [23:37:43]line Смена: 445 ФФД: 1.0 [23:37:43]line ЗНМ: 0300000160 [23:37:43]line РНМ: 0000000000090829 [23:37:43]line Версия ККМ: 001 [23:37:43]line Платежная система: KICB Банк [23:37:43]line ФМ: 0000000000874718 [23:37:43]line ФД: 164429 [23:37:43]line ФПД: 253682913087390 [23:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T233743&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164429&fm=253682913087390&tin=02508201610067®Number=0000000000090829&sum=100047 [23:37:43]written 0, free lines is 4095 [23:37:43]OFD Sender: Processing packet 164429 [packets to send 104, broken 103] [23:37:43]ProducePacketName [23:37:43]name=ofd_packets/00164429 [23:37:44]OFD Sender: To server: pG, [23:37:44]CommunicateWithHost lk.salyk.kg:30040 [23:37:44]ConnectInit lk.salyk.kg [23:37:44]Connected sock=10 [23:37:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A AD 07 01 97 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 47 BE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 82 02 00 35 04 06 00 E6 B9 27 EB 8F 9E 6C 9E 53 36 B3 69 E1 0A [23:37:44]Write to MH i2c: 01 00 00 6F 08 77 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 6F 08 00 00 00 00 00 15 0D A0 [23:37:44]RasterBufferAndPrint [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]written 0, free lines is 3356 [23:37:44]MH_Cut [23:37:44]Write to MH i2c: D1 01 00 76 08 01 50 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 01 00 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 01 00 76 08 00 4F [23:37:44]Write to MH i2c: 01 00 00 77 08 7F [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C7 23 47 00 8F 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 82 02 00 F4 03 04 00 DA 64 91 66 B6 04 01 00 00 1B 5C F6 01 39 7E 55 FE [23:37:44]CommunicateWithHost err = 0 [23:37:44]CheckOFDResponse [23:37:44]1017 (14) - 77093643461234 [23:37:44]1041 (16) - 0000000000874718 [23:37:44]1040 (4) - 164429 [23:37:44]1012 (4) - 12.07.2024 17:16 [23:37:44]1206 (1) - 0 [23:37:44]OFD Sender: Remove packet 164429 [23:37:44]ProducePacketName [23:37:44]name=ofd_packets/00164429 [23:37:44]NVStorageDeleteData [23:37:44]*** Cut start [23:37:44]*** Partial cut [23:37:44]*** CUTSNS_PIN = 1 [23:37:44]OFD Sender: No OFD packet to send [23:37:44]*** CUTSNS_PIN = 0 [23:37:45]*** Brake cut motor [23:37:45]Read from MH i2c: 01 [23:37:45]MH_I2C_Read... [23:37:45]*** Stop cut motor [23:37:45]*** Cut end [23:37:45]Read from MH i2c: 01 07 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 FF 0F 94 [23:37:45]process_action close_receipt done [23:37:45]requested_data is exist [23:37:45]produce_requested_data [23:37:45]requested_item fm.sn is exist - process it [23:37:45]wFMCommunicate request_size=4 [23:37:45]MH_SAM_APDU [23:37:45]CAPDU: 80 11 00 00 [23:37:45]Write to MH i2c: E2 08 00 78 08 80 11 00 00 00 00 00 00 FA [23:37:45]Write i2c OK [23:37:45]MH_I2C_Read... [23:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:45]Read from MH i2c: E2 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 17 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 17 00 78 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 50 [23:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:37:45]wFMCommunicate OK [23:37:45]requested_item fd.num is exist - process it [23:37:45]SAM_PROTO_GetFieldsCounters [23:37:45]wFMCommunicate request_size=4 [23:37:45]MH_SAM_APDU [23:37:45]CAPDU: 80 13 00 00 [23:37:45]Write to MH i2c: E2 08 00 79 08 80 13 00 00 00 00 00 00 FD [23:37:45]Write i2c OK [23:37:45]MH_I2C_Read... [23:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:45]Read from MH i2c: E2 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 62 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 62 00 79 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [23:37: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:45]wFMCommunicate OK [23:37:45]SAM_PROTO_GetFieldsCounters done [23:37:45]requested_item shift.num is exist - process it [23:37:45]requested_item shift.opened is exist - process it [23:37:45]req_shift_opened [23:37:45]FM_GetShiftState [23:37:45]SAM_PROTO_GetShiftState [23:37:45]wFMCommunicate request_size=4 [23:37:45]MH_SAM_APDU [23:37:45]CAPDU: 80 13 01 00 [23:37:45]Write to MH i2c: E2 08 00 7A 08 80 13 01 00 00 00 00 00 FF [23:37:45]Write i2c OK [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 [23:37:45]MH_I2C_Read... [23:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:45]Read from MH i2c: E2 0E 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 0E 00 7A 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 49 [23:37:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:37:45]wFMCommunicate OK [23:37:45]SAM_PROTO_GetShiftState done [23:37:45]FM_GetShiftState done [23:37:45]req_shift_opened done [23:37:45]requested_item shift.open_date is exist - process it [23:37:45]req_shift_open_date [23:37:45]req_shift_open_date done [23:37:45]produce_requested_data done [23:37:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164429,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:37:45]process_action_free close_receipt [23:37:45]json_value_free [23:37:45]json_value_free done [23:37:45]process_json_proto returns [23:37:45]Send response to host [23:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164429,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:37:45]free response buf [23:37:45]execute_script done [23:37:45]execute_script returns [23:37:45]free content buf [23:37:45]Sock 9.Close socket [23:37:45]Sock 9.Thread stoped [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:37]accept exits with 7 [23:39:37]New connection [23:39:37]New thread 3067489636 created [23:39:37]Thread 3067632996 joined [23:39:37]Waiting for new connection... [23:39:37] Sock 7.Parse request [23:39:37]Sock 7.Check first char [23:39:37]Sock 7.First char is OK [23:39:37]request: POST /json_proto HTTP/1.0 [23:39:37]Method: POST [23:39:37]URL: /json_proto [23:39:37]Method is POST - this is cgi request [23:39:37]url: /json_proto [23:39:37]query_string will be loaded in cgi processing [23:39:37]execute_cgi json_proto POST (null) [23:39:37]execute_cgi path=json_proto method=POST [23:39:37]POST find Content-Length [23:39:37]Host: 172.17.56.4:8080 [23:39:37]Content-Length: 677 [23:39:37]Content-Type: application/json [23:39:37] [23:39:37]POST finish read [23:39:37]Found Content-Length = 677 [23:39:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:39:37]execute_script... [23:39:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:39:37]POST & json_proto [23:39:37]process_json_proto [23:39:37]json parsed OK: [23:39:37]protocol is kg_v1.0 [23:39:37]action value=close_receipt [23:39:37]process_action close_receipt [23:39:37]cmd_close_receipt [23:39:37]MH_GetDate [23:39:37]Write to MH i2c: F0 00 00 7B 08 72 [23:39:37]Write i2c OK [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: F0 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: F0 09 00 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: F0 09 00 7B 08 00 BA BE 91 66 C9 DC B2 64 A5 [23:39:37]GetLastDocTimeStamp 1720827463 [23:39:37]current date 1720827578 [23:39:37]FM_GetShiftState [23:39:37]SAM_PROTO_GetShiftState [23:39:37]wFMCommunicate request_size=4 [23:39:37]MH_SAM_APDU [23:39:37]CAPDU: 80 13 01 00 [23:39:37]Write to MH i2c: E2 08 00 7C 08 80 13 01 00 00 00 00 00 01 [23:39:37]Write i2c OK [23:39:37]MH_I2C_Read... [23:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:37]Read from MH i2c: E2 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 0E 00 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 0E 00 7C 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 4B [23:39:37]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:39:37]wFMCommunicate OK [23:39:37]SAM_PROTO_GetShiftState done [23:39:37]FM_GetShiftState done [23:39:37]opened in 1720744654 [23:39:37]opened+sec_in_day 1720831054 [23:39:37]quantity*price = 20003 [23:39:37]sum+1 = 20004 [23:39:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 351 12.07.2024 23:39 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164430 ФПД: 209159704401793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T233938&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164430&fm=209159704401793&tin=02508201610067®Number=0000000000090829&sum=20000 [23:39:38]StoreToDocumentArchive [23:39:38]shift 445 fd 164430 [23:39:38]save to /storage/0445/doc_00164430 [23:39:38]save last doc name /storage/0445/doc_00164430 to /storage/kkm_last_doc_name [23:39:38]save OK [23:39:38]Clear old archive folders... [23:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:39:38]tlvbuf is 00CDCED0 [23:39:38]SAM_PROTO_ClearQueue [23:39:38]wFMCommunicate request_size=4 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 09 00 00 [23:39:38]Write to MH i2c: E2 08 00 89 08 80 09 00 00 00 00 00 00 03 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [23:39:38]RAPDU: 90 00 [23:39:38]wFMCommunicate OK [23:39:38]SAM_PROTO_ClearQueue done [23:39:38]KKMCreateOFDPacket [23:39:38]OFDProtocolAddRootSTLVToBuf [23:39:38]FM_MakeSignedData [23:39:38]FM_MakeSignedData [23:39:38]SAM_PROTO_SignData [23:39:38]wFMCommunicate request_size=4 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 0D 01 02 [23:39:38]Write to MH i2c: E2 08 00 8A 08 80 0D 01 02 00 00 00 00 0B [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [23:39:38]RAPDU: 90 00 [23:39:38]wFMCommunicate OK [23:39:38]wFMCommunicate request_size=255 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 5F 01 00 00 F4 03 04 00 BA BE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 82 02 00 35 04 06 00 BE [23:39:38]Write to MH i2c: E2 02 01 8B 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 5F 01 00 00 F4 03 04 00 BA BE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 82 02 00 35 04 06 00 BE 00 00 42 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [23:39:38]RAPDU: 90 00 [23:39:38]wFMCommunicate OK [23:39:38]wFMCommunicate request_size=10 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 0D 02 02 05 3A C9 E1 D7 81 [23:39:38]Write to MH i2c: E2 0D 00 8C 08 80 0D 02 02 05 00 3A C9 E1 D7 81 00 00 54 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 8C 08 00 90 00 08 [23:39:38]RAPDU: 90 00 [23:39:38]wFMCommunicate OK [23:39:38]wFMCommunicate request_size=4 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 0D 03 02 [23:39:38]Write to MH i2c: E2 08 00 8D 08 80 0D 03 02 00 00 00 00 10 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 0B 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 0B 00 8D 08 00 F9 07 3E 0E 7E 78 66 DC 90 00 95 [23:39:38]RAPDU: F9 07 3E 0E 7E 78 66 DC 90 00 [23:39:38]wFMCommunicate OK [23:39:38]SAM_PROTO_SignData done [23:39:38]FM_MakeSignedData done [23:39:38]CreateOFDProtocolMessage [23:39:38]wFMCommunicate request_size=4 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 11 00 00 [23:39:38]Write to MH i2c: E2 08 00 8E 08 80 11 00 00 00 00 00 00 10 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 17 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 17 00 8E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 66 [23:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:39:38]wFMCommunicate OK [23:39:38]CreateOFDProtocolMessage done [23:39:38]OFDSenderStorePacket 164430 [23:39:38]StoreOFDPacket docnum=164430 [23:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 BA 07 01 1B 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 5F 01 00 00 F4 03 04 00 BA BE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 82 02 00 35 04 06 00 BE 3A C9 E1 D7 81 F9 07 3E 0E 7E 78 66 DC [23:39:38]CheckFolder [23:39:38]dirname=/storage/ofd_packets [23:39:38]CheckFolder done [23:39:38]ProducePacketName [23:39:38]name=ofd_packets/00164430 [23:39:38]NVStorageSaveData ofd_packets/00164430 [23:39:38]File name is /storage/ofd_packets/00164430 [23:39:38]Write 301 bytes [23:39:38]NVStorageSaveData done [23:39:38]OFDSenderStorePacket done [23:39:38]KKMCreateOFDPacket done [23:39:38]NVStorageSaveData kkm_last_timestamp [23:39:38]File name is /storage/kkm_last_timestamp [23:39:38]Write 4 bytes [23:39:38]NVStorageSaveData done [23:39:38]ExternCall_PrintAddStr [23:39:38]wPrintStart [23:39:38]Write to MH i2c: 01 00 00 8F 08 97 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: 01 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: 01 07 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 FF 0F AC [23:39:38]RasterBufferAndPrint [23:39:38]line Счет N : (1)458518 [23:39:38]line ИНН: 02508201610067 [23:39:38]line Контрольно-Кассовый Чек [23:39:38]line ПРОДАЖА [23:39:38]line ТРК (МРК, ГНК) : 22 [23:39:38]line Товар: 2710124130 [23:39:38]line Аи-92-К-5 [23:39:38]line 3.040 * 65.80 [23:39:38]line = 200.03 [23:39:38]line НДС 12% НСП 1% [23:39:38]line > о реализуемом товаре [23:39:38]line ОКРУГЛЕНИЕ: -0.03 [23:39:38]line ИТОГО: 200.00 [23:39:38]line Внесено: 200.00 [23:39:38]line СДАЧА: 0.00 [23:39:38]line НСП 1% : 1.77 [23:39:38]line НДС 12% : 21.24 [23:39:38]line Наличными: 200.00 [23:39:38]line Безнал.: 0.00 [23:39:38]line Место: АЗС № 72 "Партнер Нефть" [23:39:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:39:38]line СНО: Общий режим [23:39:38]line Чек 351 12.07.2024 23:39 [23:39:38]line Смена: 445 ФФД: 1.0 [23:39:38]line ЗНМ: 0300000160 [23:39:38]line РНМ: 0000000000090829 [23:39:38]line Версия ККМ: 001 [23:39:38]line ФМ: 0000000000874718 [23:39:38]line ФД: 164430 [23:39:38]line ФПД: 209159704401793 [23:39:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T233938&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164430&fm=209159704401793&tin=02508201610067®Number=0000000000090829&sum=20000 [23:39:39]OFD Sender: Processing packet 164430 [packets to send 104, broken 103] [23:39:39]ProducePacketName [23:39:39]name=ofd_packets/00164430 [23:39:39]OFD Sender: To server: pG, [23:39:39]CommunicateWithHost lk.salyk.kg:30040 [23:39:39]ConnectInit lk.salyk.kg [23:39:39]written 0, free lines is 4095 [23:39:39]Connected sock=10 [23:39:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 BA 07 01 1B 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 5F 01 00 00 F4 03 04 00 BA BE 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 82 02 00 35 04 06 00 BE 3A C9 E1 D7 81 F9 07 3E 0E 7E 78 66 DC [23:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D0 3D 47 00 CB 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 34 37 31 38 10 04 04 00 4E 82 02 00 F4 03 04 00 4D 65 91 66 B6 04 01 00 00 8D F0 61 3E 36 BE 20 F8 [23:39:39]CommunicateWithHost err = 0 [23:39:39]CheckOFDResponse [23:39:39]1017 (14) - 77093643461234 [23:39:39]1041 (16) - 0000000000874718 [23:39:39]1040 (4) - 164430 [23:39:39]1012 (4) - 12.07.2024 17:18 [23:39:39]1206 (1) - 0 [23:39:39]OFD Sender: Remove packet 164430 [23:39:39]ProducePacketName [23:39:39]name=ofd_packets/00164430 [23:39:39]NVStorageDeleteData [23:39:39]Write to MH i2c: 01 00 00 B9 08 C1 [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: 01 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: 01 07 00 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: 01 07 00 B9 08 00 00 00 00 00 F6 0C CA [23:39:39]RasterBufferAndPrint [23:39:39]line [23:39:39]line [23:39:39]line [23:39:39]line [23:39:39]line [23:39:39]written 0, free lines is 3324 [23:39:39]MH_Cut [23:39:39]Write to MH i2c: D1 01 00 C0 08 01 9A [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: D1 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: D1 01 00 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: D1 01 00 C0 08 00 99 [23:39:39]Write to MH i2c: 01 00 00 C1 08 C9 [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:40]OFD Sender: No OFD packet to send [23:39:40]*** Cut start [23:39:40]*** Partial cut [23:39:40]*** CUTSNS_PIN = 1 [23:39:40]*** CUTSNS_PIN = 0 [23:39:40]*** Brake cut motor [23:39:41]Read from MH i2c: 01 [23:39:41]MH_I2C_Read... [23:39:41]*** Stop cut motor [23:39:41]*** Cut end [23:39:41]Read from MH i2c: 01 07 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 FF 0F DE [23:39:41]process_action close_receipt done [23:39:41]requested_data is exist [23:39:41]produce_requested_data [23:39:41]requested_item fm.sn is exist - process it [23:39:41]wFMCommunicate request_size=4 [23:39:41]MH_SAM_APDU [23:39:41]CAPDU: 80 11 00 00 [23:39:41]Write to MH i2c: E2 08 00 C2 08 80 11 00 00 00 00 00 00 44 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 17 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 17 00 C2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9A [23:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:39:41]wFMCommunicate OK [23:39:41]requested_item fd.num is exist - process it [23:39:41]SAM_PROTO_GetFieldsCounters [23:39:41]wFMCommunicate request_size=4 [23:39:41]MH_SAM_APDU [23:39:41]CAPDU: 80 13 00 00 [23:39:41]Write to MH i2c: E2 08 00 C3 08 80 13 00 00 00 00 00 00 47 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 62 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 62 00 C3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [23:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:39:41]wFMCommunicate OK [23:39:41]SAM_PROTO_GetFieldsCounters done [23:39:41]requested_item shift.num is exist - process it [23:39:41]requested_item shift.opened is exist - process it [23:39:41]req_shift_opened [23:39:41]FM_GetShiftState [23:39:41]SAM_PROTO_GetShiftState [23:39:41]wFMCommunicate request_size=4 [23:39:41]MH_SAM_APDU [23:39:41]CAPDU: 80 13 01 00 [23:39:41]Write to MH i2c: E2 08 00 C4 08 80 13 01 00 00 00 00 00 49 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 0E 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 0E 00 C4 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 93 [23:39:41]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:39:41]wFMCommunicate OK [23:39:41]SAM_PROTO_GetShiftState done [23:39:41]FM_GetShiftState done [23:39:41]req_shift_opened done [23:39:41]requested_item shift.open_date is exist - process it [23:39:41]req_shift_open_date [23:39:41]req_shift_open_date done [23:39:41]produce_requested_data done [23:39:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164430,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:39:41]process_action_free close_receipt [23:39:41]json_value_free [23:39:41]json_value_free done [23:39:41]process_json_proto returns [23:39:41]Send response to host [23:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164430,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:39:41]free response buf [23:39:41]execute_script done [23:39:41]execute_script returns [23:39:41]free content buf [23:39:41]Sock 7.Close socket [23:39:41]Sock 7.Thread stoped [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:49]accept exits with 9 [23:43:49]New connection [23:43:49]New thread 3067632996 created [23:43:49]Thread 3067489636 joined [23:43:49]Waiting for new connection... [23:43:49] Sock 9.Parse request [23:43:49]Sock 9.Check first char [23:43:49]Sock 9.First char is OK [23:43:49]request: POST /json_proto HTTP/1.0 [23:43:49]Method: POST [23:43:49]URL: /json_proto [23:43:49]Method is POST - this is cgi request [23:43:49]url: /json_proto [23:43:49]query_string will be loaded in cgi processing [23:43:49]execute_cgi json_proto POST (null) [23:43:49]execute_cgi path=json_proto method=POST [23:43:49]POST find Content-Length [23:43:49]Host: 172.17.56.4:8080 [23:43:49]Content-Length: 675 [23:43:49]Content-Type: application/json [23:43:49] [23:43:49]POST finish read [23:43:49]Found Content-Length = 675 [23:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [23:43:49]execute_script... [23:43: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)458519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [23:43:49]POST & json_proto [23:43:49]process_json_proto [23:43:49]json parsed OK: [23:43:49]protocol is kg_v1.0 [23:43:49]action value=close_receipt [23:43:49]process_action close_receipt [23:43:49]cmd_close_receipt [23:43:49]MH_GetDate [23:43:49]Write to MH i2c: F0 00 00 C5 08 BC [23:43:49]Write i2c OK [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: F0 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: F0 09 00 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: F0 09 00 C5 08 00 B7 BF 91 66 C9 DC B2 64 ED [23:43:49]GetLastDocTimeStamp 1720827578 [23:43:49]current date 1720827831 [23:43:49]FM_GetShiftState [23:43:49]SAM_PROTO_GetShiftState [23:43:49]wFMCommunicate request_size=4 [23:43:49]MH_SAM_APDU [23:43:49]CAPDU: 80 13 01 00 [23:43:49]Write to MH i2c: E2 08 00 C6 08 80 13 01 00 00 00 00 00 4B [23:43:49]Write i2c OK [23:43:49]MH_I2C_Read... [23:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:49]Read from MH i2c: E2 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: E2 0E 00 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: E2 0E 00 C6 08 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 95 [23:43:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:43:49]wFMCommunicate OK [23:43:49]SAM_PROTO_GetShiftState done [23:43:49]FM_GetShiftState done [23:43:49]opened in 1720744654 [23:43:49]opened+sec_in_day 1720831054 [23:43:49]quantity*price = 80024 [23:43:49]sum+1 = 80026 [23:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 352 12.07.2024 23:43 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164431 ФПД: 13351067638003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T234351&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164431&fm=13351067638003&tin=02508201610067®Number=0000000000090829&sum=80000 [23:43:50]StoreToDocumentArchive [23:43:50]shift 445 fd 164431 [23:43:50]save to /storage/0445/doc_00164431 [23:43:50]save last doc name /storage/0445/doc_00164431 to /storage/kkm_last_doc_name [23:43:50]save OK [23:43:50]Clear old archive folders... [23:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:43:50]tlvbuf is 00CDF370 [23:43:50]SAM_PROTO_ClearQueue [23:43:50]wFMCommunicate request_size=4 [23:43:50]MH_SAM_APDU [23:43:50]CAPDU: 80 09 00 00 [23:43:50]Write to MH i2c: E2 08 00 D3 08 80 09 00 00 00 00 00 00 4D [23:43:50]Write i2c OK [23:43:50]MH_I2C_Read... [23:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:43:50]Read from MH i2c: E2 [23:43:50]MH_I2C_Read... [23:43:50]Read from MH i2c: E2 03 00 [23:43:50]MH_I2C_Read... [23:43:50]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [23:43:50]RAPDU: 90 00 [23:43:50]wFMCommunicate OK [23:43:50]SAM_PROTO_ClearQueue done [23:43:50]KKMCreateOFDPacket [23:43:50]OFDProtocolAddRootSTLVToBuf [23:43:50]FM_MakeSignedData [23:43:50]FM_MakeSignedData [23:43:50]SAM_PROTO_SignData [23:43:50]wFMCommunicate request_size=4 [23:43:50]MH_SAM_APDU [23:43:50]CAPDU: 80 0D 01 02 [23:43:50]Write to MH i2c: E2 08 00 D4 08 80 0D 01 02 00 00 00 00 55 [23:43:50]Write i2c OK [23:43:50]MH_I2C_Read... [23:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:43:50]Read from MH i2c: E2 [23:43:50]MH_I2C_Read... [23:43:50]Read from MH i2c: E2 03 00 [23:43:50]MH_I2C_Read... [23:43:50]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [23:43:50]RAPDU: 90 00 [23:43:50]wFMCommunicate OK [23:43:50]wFMCommunicate request_size=255 [23:43:50]MH_SAM_APDU [23:43: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 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 B7 BF 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 82 02 00 35 04 06 00 0C 24 89 A4 [23:43:50]Write to MH i2c: E2 02 01 D5 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 B7 BF 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 82 02 00 35 04 06 00 0C 24 89 A4 00 00 A8 [23:43:50]Write i2c OK [23:43:50]MH_I2C_Read... [23:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:51]Read from MH i2c: E2 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: E2 03 00 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [23:43:51]RAPDU: 90 00 [23:43:51]wFMCommunicate OK [23:43:51]wFMCommunicate request_size=7 [23:43:51]MH_SAM_APDU [23:43:51]CAPDU: 80 0D 02 02 02 D8 F3 [23:43:51]Write to MH i2c: E2 0A 00 D6 08 80 0D 02 02 02 00 D8 F3 00 00 27 [23:43:51]Write i2c OK [23:43:51]MH_I2C_Read... [23:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:51]Read from MH i2c: E2 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: E2 03 00 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [23:43:51]RAPDU: 90 00 [23:43:51]wFMCommunicate OK [23:43:51]wFMCommunicate request_size=4 [23:43:51]MH_SAM_APDU [23:43:51]CAPDU: 80 0D 03 02 [23:43:51]Write to MH i2c: E2 08 00 D7 08 80 0D 03 02 00 00 00 00 5A [23:43:51]Write i2c OK [23:43:51]MH_I2C_Read... [23:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:43:51]Read from MH i2c: E2 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: E2 0B 00 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: E2 0B 00 D7 08 00 B5 18 B8 E0 00 63 16 64 90 00 9D [23:43:51]RAPDU: B5 18 B8 E0 00 63 16 64 90 00 [23:43:51]wFMCommunicate OK [23:43:51]SAM_PROTO_SignData done [23:43:51]FM_MakeSignedData done [23:43:51]CreateOFDProtocolMessage [23:43:51]wFMCommunicate request_size=4 [23:43:51]MH_SAM_APDU [23:43:51]CAPDU: 80 11 00 00 [23:43:51]Write to MH i2c: E2 08 00 D8 08 80 11 00 00 00 00 00 00 5A [23:43:51]Write i2c OK [23:43:51]MH_I2C_Read... [23:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:51]Read from MH i2c: E2 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: E2 17 00 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: E2 17 00 D8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B0 [23:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:43:51]wFMCommunicate OK [23:43:51]CreateOFDProtocolMessage done [23:43:51]OFDSenderStorePacket 164431 [23:43:51]StoreOFDPacket docnum=164431 [23:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A4 0E 04 01 23 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 B7 BF 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 82 02 00 35 04 06 00 0C 24 89 A4 D8 F3 B5 18 B8 E0 00 63 16 64 [23:43:51]CheckFolder [23:43:51]dirname=/storage/ofd_packets [23:43:51]CheckFolder done [23:43:51]ProducePacketName [23:43:51]name=ofd_packets/00164431 [23:43:51]NVStorageSaveData ofd_packets/00164431 [23:43:51]File name is /storage/ofd_packets/00164431 [23:43:51]Write 298 bytes [23:43:51]NVStorageSaveData done [23:43:51]OFDSenderStorePacket done [23:43:51]KKMCreateOFDPacket done [23:43:51]NVStorageSaveData kkm_last_timestamp [23:43:51]File name is /storage/kkm_last_timestamp [23:43:51]Write 4 bytes [23:43:51]NVStorageSaveData done [23:43:51]ExternCall_PrintAddStr [23:43:51]wPrintStart [23:43:51]Write to MH i2c: 01 00 00 D9 08 E1 [23:43:51]Write i2c OK [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: 01 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: 01 07 00 [23:43:51]MH_I2C_Read... [23:43:51]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 FF 0F F6 [23:43:51]RasterBufferAndPrint [23:43:51]line Счет N : (1)458519 [23:43:51]line ИНН: 02508201610067 [23:43:51]line Контрольно-Кассовый Чек [23:43:51]line ПРОДАЖА [23:43:51]line ТРК (МРК, ГНК) : 11 [23:43:51]line Товар: 2710194210 [23:43:51]line ДТ-К-5 [23:43:51]line 11.130 * 71.90 [23:43:51]line = 800.25 [23:43:51]line НДС 12% НСП 1% [23:43:51]line > о реализуемом товаре [23:43:51]line ОКРУГЛЕНИЕ: -0.25 [23:43:51]line ИТОГО: 800.00 [23:43:51]line Внесено: 800.00 [23:43:51]line СДАЧА: 0.00 [23:43:51]line НСП 1% : 7.08 [23:43:51]line НДС 12% : 84.98 [23:43:51]line Наличными: 800.00 [23:43:51]line Безнал.: 0.00 [23:43:51]line Место: АЗС № 72 "Партнер Нефть" [23:43:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:43:51]line СНО: Общий режим [23:43:51]line Чек 352 12.07.2024 23:43 [23:43:51]line Смена: 445 ФФД: 1.0 [23:43:51]line ЗНМ: 0300000160 [23:43:51]line РНМ: 0000000000090829 [23:43:51]line Версия ККМ: 001 [23:43:51]line ФМ: 0000000000874718 [23:43:51]line ФД: 164431 [23:43:51]line ФПД: 13351067638003 [23:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T234351&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164431&fm=13351067638003&tin=02508201610067®Number=0000000000090829&sum=80000 [23:43:51]OFD Sender: Processing packet 164431 [packets to send 104, broken 103] [23:43:51]ProducePacketName [23:43:51]name=ofd_packets/00164431 [23:43:51]OFD Sender: To server: pG, [23:43:51]CommunicateWithHost lk.salyk.kg:30040 [23:43:51]ConnectInit lk.salyk.kg [23:43:51]written 0, free lines is 4095 [23:43:51]Connected sock=10 [23:43:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A4 0E 04 01 23 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 B7 BF 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 82 02 00 35 04 06 00 0C 24 89 A4 D8 F3 B5 18 B8 E0 00 63 16 64 [23:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 47 E8 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 34 37 31 38 10 04 04 00 4F 82 02 00 F4 03 04 00 49 66 91 66 B6 04 01 00 00 05 63 B7 39 C1 0D 12 1D [23:43:51]CommunicateWithHost err = 0 [23:43:51]CheckOFDResponse [23:43:51]1017 (14) - 77093643461234 [23:43:51]1041 (16) - 0000000000874718 [23:43:51]1040 (4) - 164431 [23:43:51]1012 (4) - 12.07.2024 17:22 [23:43:51]1206 (1) - 0 [23:43:51]OFD Sender: Remove packet 164431 [23:43:51]ProducePacketName [23:43:51]name=ofd_packets/00164431 [23:43:51]NVStorageDeleteData [23:43:52]Write to MH i2c: 01 00 00 03 09 0C [23:43:52]Write i2c OK [23:43:52]MH_I2C_Read... [23:43:52]Read from MH i2c: 01 [23:43:52]MH_I2C_Read... [23:43:52]Read from MH i2c: 01 07 00 [23:43:52]MH_I2C_Read... [23:43:52]Read from MH i2c: 01 07 00 03 09 00 00 00 00 00 F6 0C 15 [23:43:52]RasterBufferAndPrint [23:43:52]line [23:43:52]line [23:43:52]line [23:43:52]line [23:43:52]line [23:43:52]written 0, free lines is 3324 [23:43:52]MH_Cut [23:43:52]Write to MH i2c: D1 01 00 0A 09 01 E5 [23:43:52]Write i2c OK [23:43:52]MH_I2C_Read... [23:43:52]Read from MH i2c: D1 [23:43:52]MH_I2C_Read... [23:43:52]Read from MH i2c: D1 01 00 [23:43:52]MH_I2C_Read... [23:43:52]Read from MH i2c: D1 01 00 0A 09 00 E4 [23:43:52]Write to MH i2c: 01 00 00 0B 09 14 [23:43:52]Write i2c OK [23:43:52]MH_I2C_Read... [23:43:52]OFD Sender: No OFD packet to send [23:43:52]*** Cut start [23:43:52]*** Partial cut [23:43:52]*** CUTSNS_PIN = 1 [23:43:52]*** CUTSNS_PIN = 0 [23:43:53]*** Brake cut motor [23:43:53]Read from MH i2c: 01 [23:43:53]MH_I2C_Read... [23:43:53]*** Stop cut motor [23:43:53]*** Cut end [23:43:53]Read from MH i2c: 01 07 00 [23:43:53]MH_I2C_Read... [23:43:53]Read from MH i2c: 01 07 00 0B 09 00 00 00 00 00 FF 0F 29 [23:43:53]process_action close_receipt done [23:43:53]requested_data is exist [23:43:53]produce_requested_data [23:43:53]requested_item fm.sn is exist - process it [23:43:53]wFMCommunicate request_size=4 [23:43:53]MH_SAM_APDU [23:43:53]CAPDU: 80 11 00 00 [23:43:53]Write to MH i2c: E2 08 00 0C 09 80 11 00 00 00 00 00 00 8F [23:43:53]Write i2c OK [23:43:53]MH_I2C_Read... [23:43:53]Read from MH i2c: E2 [23:43:53]MH_I2C_Read... [23:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:53]Read from MH i2c: E2 17 00 [23:43:53]MH_I2C_Read... [23:43:53]Read from MH i2c: E2 17 00 0C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [23:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:43:53]wFMCommunicate OK [23:43:53]requested_item fd.num is exist - process it [23:43:53]SAM_PROTO_GetFieldsCounters [23:43:53]wFMCommunicate request_size=4 [23:43:53]MH_SAM_APDU [23:43:53]CAPDU: 80 13 00 00 [23:43:53]Write to MH i2c: E2 08 00 0D 09 80 13 00 00 00 00 00 00 92 [23:43:53]Write i2c OK [23:43:53]MH_I2C_Read... [23:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:53]Read from MH i2c: E2 [23:43:53]MH_I2C_Read... [23:43:53]Read from MH i2c: E2 62 00 [23:43:53]MH_I2C_Read... [23:43:53]Read from MH i2c: E2 62 00 0D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [23:43: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:43:53]wFMCommunicate OK [23:43:53]SAM_PROTO_GetFieldsCounters done [23:43:53]requested_item shift.num is exist - process it [23:43:53]requested_item shift.opened is exist - process it [23:43:53]req_shift_opened [23:43:53]FM_GetShiftState [23:43:53]SAM_PROTO_GetShiftState [23:43:53]wFMCommunicate request_size=4 [23:43:53]MH_SAM_APDU [23:43:53]CAPDU: 80 13 01 00 [23:43:53]Write to MH i2c: E2 08 00 0E 09 80 13 01 00 00 00 00 00 94 [23:43:53]Write i2c OK [23:43:53]MH_I2C_Read... [23:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:53]Read from MH i2c: E2 [23:43:53]MH_I2C_Read... [23:43:53]Read from MH i2c: E2 0E 00 [23:43:53]MH_I2C_Read... [23:43:53]Read from MH i2c: E2 0E 00 0E 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 DE [23:43:53]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:43:53]wFMCommunicate OK [23:43:53]SAM_PROTO_GetShiftState done [23:43:53]FM_GetShiftState done [23:43:53]req_shift_opened done [23:43:53]requested_item shift.open_date is exist - process it [23:43:53]req_shift_open_date [23:43:53]req_shift_open_date done [23:43:53]produce_requested_data done [23:43:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164431,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:43:53]process_action_free close_receipt [23:43:53]json_value_free [23:43:53]json_value_free done [23:43:53]process_json_proto returns [23:43:53]Send response to host [23:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164431,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:43:53]free response buf [23:43:53]execute_script done [23:43:53]execute_script returns [23:43:53]free content buf [23:43:53]Sock 9.Close socket [23:43:53]Sock 9.Thread stoped [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]accept exits with 7 [23:46:17]New connection [23:46:17]New thread 3067489636 created [23:46:17]Thread 3067632996 joined [23:46:17]Waiting for new connection... [23:46:17] Sock 7.Parse request [23:46:17]Sock 7.Check first char [23:46:17]Sock 7.First char is OK [23:46:17]request: POST /json_proto HTTP/1.0 [23:46:17]Method: POST [23:46:17]URL: /json_proto [23:46:17]Method is POST - this is cgi request [23:46:17]url: /json_proto [23:46:17]query_string will be loaded in cgi processing [23:46:17]execute_cgi json_proto POST (null) [23:46:17]execute_cgi path=json_proto method=POST [23:46:17]POST find Content-Length [23:46:17]Host: 172.17.56.4:8080 [23:46:17]Content-Length: 677 [23:46:17]Content-Type: application/json [23:46:17] [23:46:17]POST finish read [23:46:17]Found Content-Length = 677 [23:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:17]execute_script... [23:46: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)458520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:17]POST & json_proto [23:46:17]process_json_proto [23:46:17]json parsed OK: [23:46:17]protocol is kg_v1.0 [23:46:17]action value=close_receipt [23:46:17]process_action close_receipt [23:46:17]cmd_close_receipt [23:46:17]MH_GetDate [23:46:17]Write to MH i2c: F0 00 00 0F 09 07 [23:46:17]Write i2c OK [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: F0 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: F0 09 00 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: F0 09 00 0F 09 00 4A C0 91 66 C9 DC B2 64 CC [23:46:17]GetLastDocTimeStamp 1720827831 [23:46:17]current date 1720827978 [23:46:17]FM_GetShiftState [23:46:17]SAM_PROTO_GetShiftState [23:46:17]wFMCommunicate request_size=4 [23:46:17]MH_SAM_APDU [23:46:17]CAPDU: 80 13 01 00 [23:46:17]Write to MH i2c: E2 08 00 10 09 80 13 01 00 00 00 00 00 96 [23:46:17]Write i2c OK [23:46:17]MH_I2C_Read... [23:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:17]Read from MH i2c: E2 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 0E 00 [23:46:17]MH_I2C_Read... [23:46:17]Read from MH i2c: E2 0E 00 10 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 E0 [23:46:17]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:46:17]wFMCommunicate OK [23:46:17]SAM_PROTO_GetShiftState done [23:46:17]FM_GetShiftState done [23:46:17]opened in 1720744654 [23:46:17]opened+sec_in_day 1720831054 [23:46:17]quantity*price = 33031 [23:46:17]sum+1 = 33033 [23:46:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 353 12.07.2024 23:46 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164432 ФПД: 108711347506190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T234618&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164432&fm=108711347506190&tin=02508201610067®Number=0000000000090829&sum=33000 [23:46:18]StoreToDocumentArchive [23:46:18]shift 445 fd 164432 [23:46:18]save to /storage/0445/doc_00164432 [23:46:18]save last doc name /storage/0445/doc_00164432 to /storage/kkm_last_doc_name [23:46:18]save OK [23:46:18]Clear old archive folders... [23:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:18]tlvbuf is 00C9FD50 [23:46:18]SAM_PROTO_ClearQueue [23:46:18]wFMCommunicate request_size=4 [23:46:18]MH_SAM_APDU [23:46:18]CAPDU: 80 09 00 00 [23:46:18]Write to MH i2c: E2 08 00 1D 09 80 09 00 00 00 00 00 00 98 [23:46:18]Write i2c OK [23:46:18]MH_I2C_Read... [23:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:18]Read from MH i2c: E2 [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: E2 03 00 [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [23:46:18]RAPDU: 90 00 [23:46:18]wFMCommunicate OK [23:46:18]SAM_PROTO_ClearQueue done [23:46:18]KKMCreateOFDPacket [23:46:18]OFDProtocolAddRootSTLVToBuf [23:46:18]FM_MakeSignedData [23:46:18]FM_MakeSignedData [23:46:18]SAM_PROTO_SignData [23:46:18]wFMCommunicate request_size=4 [23:46:18]MH_SAM_APDU [23:46:18]CAPDU: 80 0D 01 02 [23:46:18]Write to MH i2c: E2 08 00 1E 09 80 0D 01 02 00 00 00 00 A0 [23:46:18]Write i2c OK [23:46:18]MH_I2C_Read... [23:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:18]Read from MH i2c: E2 [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: E2 03 00 [23:46:18]MH_I2C_Read... [23:46:18]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [23:46:18]RAPDU: 90 00 [23:46:18]wFMCommunicate OK [23:46:18]wFMCommunicate request_size=255 [23:46:18]MH_SAM_APDU [23:46: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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 4A C0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 82 02 00 35 04 06 00 62 [23:46:18]Write to MH i2c: E2 02 01 1F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 4A C0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 82 02 00 35 04 06 00 62 00 00 C2 [23:46:18]Write i2c OK [23:46:18]MH_I2C_Read... [23:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:19]Read from MH i2c: E2 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 03 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [23:46:19]RAPDU: 90 00 [23:46:19]wFMCommunicate OK [23:46:19]wFMCommunicate request_size=10 [23:46:19]MH_SAM_APDU [23:46:19]CAPDU: 80 0D 02 02 05 DF 55 40 4C 0E [23:46:19]Write to MH i2c: E2 0D 00 20 09 80 0D 02 02 05 00 DF 55 40 4C 0E 00 00 7B [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:19]Read from MH i2c: E2 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 03 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [23:46:19]RAPDU: 90 00 [23:46:19]wFMCommunicate OK [23:46:19]wFMCommunicate request_size=4 [23:46:19]MH_SAM_APDU [23:46:19]CAPDU: 80 0D 03 02 [23:46:19]Write to MH i2c: E2 08 00 21 09 80 0D 03 02 00 00 00 00 A5 [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:19]Read from MH i2c: E2 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 0B 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 0B 00 21 09 00 42 9E 10 64 5A 7D 23 C1 90 00 B5 [23:46:19]RAPDU: 42 9E 10 64 5A 7D 23 C1 90 00 [23:46:19]wFMCommunicate OK [23:46:19]SAM_PROTO_SignData done [23:46:19]FM_MakeSignedData done [23:46:19]CreateOFDProtocolMessage [23:46:19]wFMCommunicate request_size=4 [23:46:19]MH_SAM_APDU [23:46:19]CAPDU: 80 11 00 00 [23:46:19]Write to MH i2c: E2 08 00 22 09 80 11 00 00 00 00 00 00 A5 [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:19]Read from MH i2c: E2 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 17 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: E2 17 00 22 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [23:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:46:19]wFMCommunicate OK [23:46:19]CreateOFDProtocolMessage done [23:46:19]OFDSenderStorePacket 164432 [23:46:19]StoreOFDPacket docnum=164432 [23:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF 5A 07 01 9B AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 4A C0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 82 02 00 35 04 06 00 62 DF 55 40 4C 0E 42 9E 10 64 5A 7D 23 C1 [23:46:19]CheckFolder [23:46:19]dirname=/storage/ofd_packets [23:46:19]CheckFolder done [23:46:19]ProducePacketName [23:46:19]name=ofd_packets/00164432 [23:46:19]NVStorageSaveData ofd_packets/00164432 [23:46:19]File name is /storage/ofd_packets/00164432 [23:46:19]Write 301 bytes [23:46:19]NVStorageSaveData done [23:46:19]OFDSenderStorePacket done [23:46:19]KKMCreateOFDPacket done [23:46:19]NVStorageSaveData kkm_last_timestamp [23:46:19]File name is /storage/kkm_last_timestamp [23:46:19]Write 4 bytes [23:46:19]NVStorageSaveData done [23:46:19]ExternCall_PrintAddStr [23:46:19]wPrintStart [23:46:19]Write to MH i2c: 01 00 00 23 09 2C [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: 01 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: 01 07 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 FF 0F 41 [23:46:19]RasterBufferAndPrint [23:46:19]line Счет N : (1)458520 [23:46:19]line ИНН: 02508201610067 [23:46:19]line Контрольно-Кассовый Чек [23:46:19]line ПРОДАЖА [23:46:19]line ТРК (МРК, ГНК) : 12 [23:46:19]line Товар: 2710124130 [23:46:19]line Аи-92-К-5 [23:46:19]line 5.020 * 65.80 [23:46:19]line = 330.32 [23:46:19]line НДС 12% НСП 1% [23:46:19]line > о реализуемом товаре [23:46:19]line ОКРУГЛЕНИЕ: -0.32 [23:46:19]line ИТОГО: 330.00 [23:46:19]line Внесено: 330.00 [23:46:19]line СДАЧА: 0.00 [23:46:19]line НСП 1% : 2.92 [23:46:19]line НДС 12% : 35.08 [23:46:19]line Наличными: 330.00 [23:46:19]line Безнал.: 0.00 [23:46:19]line Место: АЗС № 72 "Партнер Нефть" [23:46:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:46:19]line СНО: Общий режим [23:46:19]line Чек 353 12.07.2024 23:46 [23:46:19]line Смена: 445 ФФД: 1.0 [23:46:19]line ЗНМ: 0300000160 [23:46:19]line РНМ: 0000000000090829 [23:46:19]line Версия ККМ: 001 [23:46:19]line ФМ: 0000000000874718 [23:46:19]line ФД: 164432 [23:46:19]line ФПД: 108711347506190 [23:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T234618&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164432&fm=108711347506190&tin=02508201610067®Number=0000000000090829&sum=33000 [23:46:19]OFD Sender: Processing packet 164432 [packets to send 104, broken 103] [23:46:19]ProducePacketName [23:46:19]name=ofd_packets/00164432 [23:46:19]OFD Sender: To server: pG, [23:46:19]CommunicateWithHost lk.salyk.kg:30040 [23:46:19]ConnectInit lk.salyk.kg [23:46:19]written 0, free lines is 4095 [23:46:19]Connected sock=10 [23:46:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF 5A 07 01 9B AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 4A C0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 82 02 00 35 04 06 00 62 DF 55 40 4C 0E 42 9E 10 64 5A 7D 23 C1 [23:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 49 47 00 71 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 34 37 31 38 10 04 04 00 50 82 02 00 F4 03 04 00 DD 66 91 66 B6 04 01 00 00 BD 9E A7 F2 67 8F E4 DD [23:46:19]CommunicateWithHost err = 0 [23:46:19]CheckOFDResponse [23:46:19]1017 (14) - 77093643461234 [23:46:19]1041 (16) - 0000000000874718 [23:46:19]1040 (4) - 164432 [23:46:19]1012 (4) - 12.07.2024 17:24 [23:46:19]1206 (1) - 0 [23:46:19]OFD Sender: Remove packet 164432 [23:46:19]ProducePacketName [23:46:19]name=ofd_packets/00164432 [23:46:19]NVStorageDeleteData [23:46:19]Write to MH i2c: 01 00 00 4D 09 56 [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: 01 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: 01 07 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: 01 07 00 4D 09 00 00 00 00 00 F0 0C 59 [23:46:19]RasterBufferAndPrint [23:46:19]line [23:46:19]line [23:46:19]line [23:46:19]line [23:46:19]line [23:46:19]written 0, free lines is 3318 [23:46:19]MH_Cut [23:46:19]Write to MH i2c: D1 01 00 54 09 01 2F [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: D1 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: D1 01 00 [23:46:19]MH_I2C_Read... [23:46:19]Read from MH i2c: D1 01 00 54 09 00 2E [23:46:19]Write to MH i2c: 01 00 00 55 09 5E [23:46:19]Write i2c OK [23:46:19]MH_I2C_Read... [23:46:20]OFD Sender: No OFD packet to send [23:46:20]*** Cut start [23:46:20]*** Partial cut [23:46:20]*** CUTSNS_PIN = 1 [23:46:20]*** CUTSNS_PIN = 0 [23:46:20]*** Brake cut motor [23:46:21]Read from MH i2c: 01 [23:46:21]MH_I2C_Read... [23:46:21]*** Stop cut motor [23:46:21]*** Cut end [23:46:21]Read from MH i2c: 01 07 00 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 FF 0F 73 [23:46:21]process_action close_receipt done [23:46:21]requested_data is exist [23:46:21]produce_requested_data [23:46:21]requested_item fm.sn is exist - process it [23:46:21]wFMCommunicate request_size=4 [23:46:21]MH_SAM_APDU [23:46:21]CAPDU: 80 11 00 00 [23:46:21]Write to MH i2c: E2 08 00 56 09 80 11 00 00 00 00 00 00 D9 [23:46:21]Write i2c OK [23:46:21]MH_I2C_Read... [23:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:21]Read from MH i2c: E2 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 17 00 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 17 00 56 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [23:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:46:21]wFMCommunicate OK [23:46:21]requested_item fd.num is exist - process it [23:46:21]SAM_PROTO_GetFieldsCounters [23:46:21]wFMCommunicate request_size=4 [23:46:21]MH_SAM_APDU [23:46:21]CAPDU: 80 13 00 00 [23:46:21]Write to MH i2c: E2 08 00 57 09 80 13 00 00 00 00 00 00 DC [23:46:21]Write i2c OK [23:46:21]MH_I2C_Read... [23:46:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:21]Read from MH i2c: E2 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 62 00 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 62 00 57 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [23:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:21]wFMCommunicate OK [23:46:21]SAM_PROTO_GetFieldsCounters done [23:46:21]requested_item shift.num is exist - process it [23:46:21]requested_item shift.opened is exist - process it [23:46:21]req_shift_opened [23:46:21]FM_GetShiftState [23:46:21]SAM_PROTO_GetShiftState [23:46:21]wFMCommunicate request_size=4 [23:46:21]MH_SAM_APDU [23:46:21]CAPDU: 80 13 01 00 [23:46:21]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [23:46:21]Write i2c OK [23:46:21]MH_I2C_Read... [23:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:21]Read from MH i2c: E2 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 0E 00 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 28 [23:46:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:46:21]wFMCommunicate OK [23:46:21]SAM_PROTO_GetShiftState done [23:46:21]FM_GetShiftState done [23:46:21]req_shift_opened done [23:46:21]requested_item shift.open_date is exist - process it [23:46:21]req_shift_open_date [23:46:21]req_shift_open_date done [23:46:21]produce_requested_data done [23:46:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164432,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:46:21]process_action_free close_receipt [23:46:21]json_value_free [23:46:21]json_value_free done [23:46:21]process_json_proto returns [23:46:21]Send response to host [23:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164432,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:46:21]free response buf [23:46:21]execute_script done [23:46:21]execute_script returns [23:46:21]free content buf [23:46:21]Sock 7.Close socket [23:46:21]Sock 7.Thread stoped [23:46:21]accept exits with 9 [23:46:21]New connection [23:46:21]New thread 3067632996 created [23:46:21]Thread 3067489636 joined [23:46:21]Waiting for new connection... [23:46:21] Sock 9.Parse request [23:46:21]Sock 9.Check first char [23:46:21]Sock 9.First char is OK [23:46:21]request: POST /json_proto HTTP/1.0 [23:46:21]Method: POST [23:46:21]URL: /json_proto [23:46:21]Method is POST - this is cgi request [23:46:21]url: /json_proto [23:46:21]query_string will be loaded in cgi processing [23:46:21]execute_cgi json_proto POST (null) [23:46:21]execute_cgi path=json_proto method=POST [23:46:21]POST find Content-Length [23:46:21]Host: 172.17.56.4:8080 [23:46:21]Content-Length: 677 [23:46:21]Content-Type: application/json [23:46:21] [23:46:21]POST finish read [23:46:21]Found Content-Length = 677 [23:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:21]execute_script... [23: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)458521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:21]POST & json_proto [23:46:21]process_json_proto [23:46:21]json parsed OK: [23:46:21]protocol is kg_v1.0 [23:46:21]action value=close_receipt [23:46:21]process_action close_receipt [23:46:21]cmd_close_receipt [23:46:21]MH_GetDate [23:46:21]Write to MH i2c: F0 00 00 59 09 51 [23:46:21]Write i2c OK [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: F0 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: F0 09 00 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: F0 09 00 59 09 00 4F C0 91 66 C9 DC B2 64 1B [23:46:21]GetLastDocTimeStamp 1720827978 [23:46:21]current date 1720827983 [23:46:21]FM_GetShiftState [23:46:21]SAM_PROTO_GetShiftState [23:46:21]wFMCommunicate request_size=4 [23:46:21]MH_SAM_APDU [23:46:21]CAPDU: 80 13 01 00 [23:46:21]Write to MH i2c: E2 08 00 5A 09 80 13 01 00 00 00 00 00 E0 [23:46:21]Write i2c OK [23:46:21]MH_I2C_Read... [23:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:21]Read from MH i2c: E2 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 0E 00 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: E2 0E 00 5A 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2A [23:46:21]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:46:21]wFMCommunicate OK [23:46:21]SAM_PROTO_GetShiftState done [23:46:21]FM_GetShiftState done [23:46:21]opened in 1720744654 [23:46:21]opened+sec_in_day 1720831054 [23:46:21]quantity*price = 50008 [23:46:21]sum+1 = 50009 [23:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 354 12.07.2024 23:46 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164433 ФПД: 142325623701401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T234623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164433&fm=142325623701401&tin=02508201610067®Number=0000000000090829&sum=50000 [23:46:23]StoreToDocumentArchive [23:46:23]shift 445 fd 164433 [23:46:23]save to /storage/0445/doc_00164433 [23:46:23]save last doc name /storage/0445/doc_00164433 to /storage/kkm_last_doc_name [23:46:23]save OK [23:46:23]Clear old archive folders... [23:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:23]tlvbuf is 00CE1B30 [23:46:23]SAM_PROTO_ClearQueue [23:46:23]wFMCommunicate request_size=4 [23:46:23]MH_SAM_APDU [23:46:23]CAPDU: 80 09 00 00 [23:46:23]Write to MH i2c: E2 08 00 67 09 80 09 00 00 00 00 00 00 E2 [23:46:23]Write i2c OK [23:46:23]MH_I2C_Read... [23:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:23]Read from MH i2c: E2 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 03 00 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [23:46:23]RAPDU: 90 00 [23:46:23]wFMCommunicate OK [23:46:23]SAM_PROTO_ClearQueue done [23:46:23]KKMCreateOFDPacket [23:46:23]OFDProtocolAddRootSTLVToBuf [23:46:23]FM_MakeSignedData [23:46:23]FM_MakeSignedData [23:46:23]SAM_PROTO_SignData [23:46:23]wFMCommunicate request_size=4 [23:46:23]MH_SAM_APDU [23:46:23]CAPDU: 80 0D 01 02 [23:46:23]Write to MH i2c: E2 08 00 68 09 80 0D 01 02 00 00 00 00 EA [23:46:23]Write i2c OK [23:46:23]MH_I2C_Read... [23:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:23]Read from MH i2c: E2 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 03 00 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [23:46:23]RAPDU: 90 00 [23:46:23]wFMCommunicate OK [23:46:23]wFMCommunicate request_size=255 [23:46:23]MH_SAM_APDU [23:46:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 62 01 00 00 F4 03 04 00 4F C0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 82 02 00 35 04 06 00 81 [23:46:23]Write to MH i2c: E2 02 01 69 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 62 01 00 00 F4 03 04 00 4F C0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 82 02 00 35 04 06 00 81 00 00 E0 [23:46:23]Write i2c OK [23:46:23]MH_I2C_Read... [23:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:23]Read from MH i2c: E2 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 03 00 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [23:46:23]RAPDU: 90 00 [23:46:23]wFMCommunicate OK [23:46:23]wFMCommunicate request_size=10 [23:46:23]MH_SAM_APDU [23:46:23]CAPDU: 80 0D 02 02 05 71 C4 3E 3F 99 [23:46:23]Write to MH i2c: E2 0D 00 6A 09 80 0D 02 02 05 00 71 C4 3E 3F 99 00 00 42 [23:46:23]Write i2c OK [23:46:23]MH_I2C_Read... [23:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:23]Read from MH i2c: E2 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 03 00 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [23:46:23]RAPDU: 90 00 [23:46:23]wFMCommunicate OK [23:46:23]wFMCommunicate request_size=4 [23:46:23]MH_SAM_APDU [23:46:23]CAPDU: 80 0D 03 02 [23:46:23]Write to MH i2c: E2 08 00 6B 09 80 0D 03 02 00 00 00 00 EF [23:46:23]Write i2c OK [23:46:23]MH_I2C_Read... [23:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:23]Read from MH i2c: E2 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 0B 00 [23:46:23]MH_I2C_Read... [23:46:23]Read from MH i2c: E2 0B 00 6B 09 00 D3 A4 60 C8 74 3B 0C AC 90 00 F6 [23:46:23]RAPDU: D3 A4 60 C8 74 3B 0C AC 90 00 [23:46:23]wFMCommunicate OK [23:46:23]SAM_PROTO_SignData done [23:46:23]FM_MakeSignedData done [23:46:23]CreateOFDProtocolMessage [23:46:23]wFMCommunicate request_size=4 [23:46:23]MH_SAM_APDU [23:46:23]CAPDU: 80 11 00 00 [23:46:23]Write to MH i2c: E2 08 00 6C 09 80 11 00 00 00 00 00 00 EF [23:46:23]Write i2c OK [23:46:23]MH_I2C_Read... [23:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:24]Read from MH i2c: E2 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: E2 17 00 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: E2 17 00 6C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [23:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:46:24]wFMCommunicate OK [23:46:24]CreateOFDProtocolMessage done [23:46:24]OFDSenderStorePacket 164433 [23:46:24]StoreOFDPacket docnum=164433 [23:46:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E 22 07 01 08 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 62 01 00 00 F4 03 04 00 4F C0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 82 02 00 35 04 06 00 81 71 C4 3E 3F 99 D3 A4 60 C8 74 3B 0C AC [23:46:24]CheckFolder [23:46:24]dirname=/storage/ofd_packets [23:46:24]CheckFolder done [23:46:24]ProducePacketName [23:46:24]name=ofd_packets/00164433 [23:46:24]NVStorageSaveData ofd_packets/00164433 [23:46:24]File name is /storage/ofd_packets/00164433 [23:46:24]Write 301 bytes [23:46:24]NVStorageSaveData done [23:46:24]OFDSenderStorePacket done [23:46:24]KKMCreateOFDPacket done [23:46:24]NVStorageSaveData kkm_last_timestamp [23:46:24]File name is /storage/kkm_last_timestamp [23:46:24]Write 4 bytes [23:46:24]NVStorageSaveData done [23:46:24]ExternCall_PrintAddStr [23:46:24]wPrintStart [23:46:24]Write to MH i2c: 01 00 00 6D 09 76 [23:46:24]Write i2c OK [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: 01 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: 01 07 00 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [23:46:24]RasterBufferAndPrint [23:46:24]line Счет N : (1)458521 [23:46:24]line ИНН: 02508201610067 [23:46:24]line Контрольно-Кассовый Чек [23:46:24]line ПРОДАЖА [23:46:24]line ТРК (МРК, ГНК) : 22 [23:46:24]line Товар: 2710124130 [23:46:24]line Аи-92-К-5 [23:46:24]line 7.600 * 65.80 [23:46:24]line = 500.08 [23:46:24]line НДС 12% НСП 1% [23:46:24]line > о реализуемом товаре [23:46:24]line ОКРУГЛЕНИЕ: -0.08 [23:46:24]line ИТОГО: 500.00 [23:46:24]line Внесено: 500.00 [23:46:24]line СДАЧА: 0.00 [23:46:24]line НСП 1% : 4.42 [23:46:24]line НДС 12% : 53.11 [23:46:24]line Наличными: 500.00 [23:46:24]line Безнал.: 0.00 [23:46:24]line Место: АЗС № 72 "Партнер Нефть" [23:46:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:46:24]line СНО: Общий режим [23:46:24]line Чек 354 12.07.2024 23:46 [23:46:24]line Смена: 445 ФФД: 1.0 [23:46:24]line ЗНМ: 0300000160 [23:46:24]line РНМ: 0000000000090829 [23:46:24]line Версия ККМ: 001 [23:46:24]line ФМ: 0000000000874718 [23:46:24]line ФД: 164433 [23:46:24]line ФПД: 142325623701401 [23:46:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T234623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164433&fm=142325623701401&tin=02508201610067®Number=0000000000090829&sum=50000 [23:46:24]OFD Sender: Processing packet 164433 [packets to send 104, broken 103] [23:46:24]ProducePacketName [23:46:24]name=ofd_packets/00164433 [23:46:24]OFD Sender: To server: pG, [23:46:24]CommunicateWithHost lk.salyk.kg:30040 [23:46:24]ConnectInit lk.salyk.kg [23:46:24]written 0, free lines is 4095 [23:46:24]Connected sock=10 [23:46:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E 22 07 01 08 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 62 01 00 00 F4 03 04 00 4F C0 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 82 02 00 35 04 06 00 81 71 C4 3E 3F 99 D3 A4 60 C8 74 3B 0C AC [23:46:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2B 11 47 00 41 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 82 02 00 F4 03 04 00 E2 66 91 66 B6 04 01 00 00 45 B6 3F 16 87 A5 90 5C [23:46:24]CommunicateWithHost err = 0 [23:46:24]CheckOFDResponse [23:46:24]1017 (14) - 77093643461234 [23:46:24]1041 (16) - 0000000000874718 [23:46:24]1040 (4) - 164433 [23:46:24]1012 (4) - 12.07.2024 17:24 [23:46:24]1206 (1) - 0 [23:46:24]OFD Sender: Remove packet 164433 [23:46:24]ProducePacketName [23:46:24]name=ofd_packets/00164433 [23:46:24]NVStorageDeleteData [23:46:24]Write to MH i2c: 01 00 00 97 09 A0 [23:46:24]Write i2c OK [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: 01 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: 01 07 00 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: 01 07 00 97 09 00 00 00 00 00 0D 0D C1 [23:46:24]RasterBufferAndPrint [23:46:24]line [23:46:24]line [23:46:24]line [23:46:24]line [23:46:24]line [23:46:24]written 0, free lines is 3353 [23:46:24]MH_Cut [23:46:24]Write to MH i2c: D1 01 00 9E 09 01 79 [23:46:24]Write i2c OK [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: D1 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: D1 01 00 [23:46:24]MH_I2C_Read... [23:46:24]Read from MH i2c: D1 01 00 9E 09 00 78 [23:46:24]Write to MH i2c: 01 00 00 9F 09 A8 [23:46:24]Write i2c OK [23:46:24]MH_I2C_Read... [23:46:25]OFD Sender: No OFD packet to send [23:46:25]*** Cut start [23:46:25]*** Partial cut [23:46:25]*** CUTSNS_PIN = 1 [23:46:25]*** CUTSNS_PIN = 0 [23:46:25]*** Brake cut motor [23:46:26]Read from MH i2c: 01 [23:46:26]MH_I2C_Read... [23:46:26]*** Stop cut motor [23:46:26]*** Cut end [23:46:26]Read from MH i2c: 01 07 00 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 FF 0F BD [23:46:26]process_action close_receipt done [23:46:26]requested_data is exist [23:46:26]produce_requested_data [23:46:26]requested_item fm.sn is exist - process it [23:46:26]wFMCommunicate request_size=4 [23:46:26]MH_SAM_APDU [23:46:26]CAPDU: 80 11 00 00 [23:46:26]Write to MH i2c: E2 08 00 A0 09 80 11 00 00 00 00 00 00 23 [23:46:26]Write i2c OK [23:46:26]MH_I2C_Read... [23:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:26]Read from MH i2c: E2 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 17 00 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 17 00 A0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [23:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:46:26]wFMCommunicate OK [23:46:26]requested_item fd.num is exist - process it [23:46:26]SAM_PROTO_GetFieldsCounters [23:46:26]wFMCommunicate request_size=4 [23:46:26]MH_SAM_APDU [23:46:26]CAPDU: 80 13 00 00 [23:46:26]Write to MH i2c: E2 08 00 A1 09 80 13 00 00 00 00 00 00 26 [23:46:26]Write i2c OK [23:46:26]MH_I2C_Read... [23:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:26]Read from MH i2c: E2 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 62 00 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 62 00 A1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [23:46:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:26]wFMCommunicate OK [23:46:26]SAM_PROTO_GetFieldsCounters done [23:46:26]requested_item shift.num is exist - process it [23:46:26]requested_item shift.opened is exist - process it [23:46:26]req_shift_opened [23:46:26]FM_GetShiftState [23:46:26]SAM_PROTO_GetShiftState [23:46:26]wFMCommunicate request_size=4 [23:46:26]MH_SAM_APDU [23:46:26]CAPDU: 80 13 01 00 [23:46:26]Write to MH i2c: E2 08 00 A2 09 80 13 01 00 00 00 00 00 28 [23:46:26]Write i2c OK [23:46:26]MH_I2C_Read... [23:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:26]Read from MH i2c: E2 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 0E 00 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 0E 00 A2 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 72 [23:46:26]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:46:26]wFMCommunicate OK [23:46:26]SAM_PROTO_GetShiftState done [23:46:26]FM_GetShiftState done [23:46:26]req_shift_opened done [23:46:26]requested_item shift.open_date is exist - process it [23:46:26]req_shift_open_date [23:46:26]req_shift_open_date done [23:46:26]produce_requested_data done [23:46:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164433,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:46:26]process_action_free close_receipt [23:46:26]json_value_free [23:46:26]json_value_free done [23:46:26]process_json_proto returns [23:46:26]Send response to host [23:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164433,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:46:26]free response buf [23:46:26]execute_script done [23:46:26]execute_script returns [23:46:26]free content buf [23:46:26]Sock 9.Close socket [23:46:26]Sock 9.Thread stoped [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:42]accept exits with 7 [23:54:42]New connection [23:54:42]New thread 3067489636 created [23:54:42]Thread 3067632996 joined [23:54:42]Waiting for new connection... [23:54:42] Sock 7.Parse request [23:54:42]Sock 7.Check first char [23:54:42]Sock 7.First char is OK [23:54:42]request: POST /json_proto HTTP/1.0 [23:54:42]Method: POST [23:54:42]URL: /json_proto [23:54:42]Method is POST - this is cgi request [23:54:42]url: /json_proto [23:54:42]query_string will be loaded in cgi processing [23:54:42]execute_cgi json_proto POST (null) [23:54:42]execute_cgi path=json_proto method=POST [23:54:42]POST find Content-Length [23:54:42]Host: 172.17.56.4:8080 [23:54:42]Content-Length: 790 [23:54:42]Content-Type: application/json [23:54:42] [23:54:42]POST finish read [23:54:42]Found Content-Length = 790 [23:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:42]execute_script... [23:54: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)458522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:42]POST & json_proto [23:54:42]process_json_proto [23:54:42]json parsed OK: [23:54:42]protocol is kg_v1.0 [23:54:42]action value=close_receipt [23:54:42]process_action close_receipt [23:54:42]cmd_close_receipt [23:54:42]MH_GetDate [23:54:42]Write to MH i2c: F0 00 00 A3 09 9B [23:54:42]Write i2c OK [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: F0 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: F0 09 00 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: F0 09 00 A3 09 00 43 C2 91 66 C9 DC B2 64 5B [23:54:42]GetLastDocTimeStamp 1720827983 [23:54:42]current date 1720828483 [23:54:42]FM_GetShiftState [23:54:42]SAM_PROTO_GetShiftState [23:54:42]wFMCommunicate request_size=4 [23:54:42]MH_SAM_APDU [23:54:42]CAPDU: 80 13 01 00 [23:54:42]Write to MH i2c: E2 08 00 A4 09 80 13 01 00 00 00 00 00 2A [23:54:42]Write i2c OK [23:54:42]MH_I2C_Read... [23:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:42]Read from MH i2c: E2 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 0E 00 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 0E 00 A4 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 74 [23:54:42]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:54:42]wFMCommunicate OK [23:54:42]SAM_PROTO_GetShiftState done [23:54:42]FM_GetShiftState done [23:54:42]opened in 1720744654 [23:54:42]opened+sec_in_day 1720831054 [23:54:42]quantity*price = 20022 [23:54:42]sum+1 = 20024 [23:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 355 12.07.2024 23:54 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164434 ФПД: 276945439191917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T235443&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164434&fm=276945439191917&tin=02508201610067®Number=0000000000090829&sum=20023 [23:54:43]StoreToDocumentArchive [23:54:43]shift 445 fd 164434 [23:54:43]save to /storage/0445/doc_00164434 [23:54:43]save last doc name /storage/0445/doc_00164434 to /storage/kkm_last_doc_name [23:54:43]save OK [23:54:43]Clear old archive folders... [23:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:43]tlvbuf is 00CB0A90 [23:54:43]SAM_PROTO_ClearQueue [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 09 00 00 [23:54:43]Write to MH i2c: E2 08 00 B1 09 80 09 00 00 00 00 00 00 2C [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 03 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [23:54:43]RAPDU: 90 00 [23:54:43]wFMCommunicate OK [23:54:43]SAM_PROTO_ClearQueue done [23:54:43]KKMCreateOFDPacket [23:54:43]OFDProtocolAddRootSTLVToBuf [23:54:43]FM_MakeSignedData [23:54:43]FM_MakeSignedData [23:54:43]SAM_PROTO_SignData [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 0D 01 02 [23:54:43]Write to MH i2c: E2 08 00 B2 09 80 0D 01 02 00 00 00 00 34 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 03 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [23:54:43]RAPDU: 90 00 [23:54:43]wFMCommunicate OK [23:54:43]wFMCommunicate request_size=255 [23:54:43]MH_SAM_APDU [23:54: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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 43 C2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 82 02 00 35 04 06 00 FB [23:54:43]Write to MH i2c: E2 02 01 B3 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 43 C2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 82 02 00 35 04 06 00 FB 00 00 65 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 03 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [23:54:43]RAPDU: 90 00 [23:54:43]wFMCommunicate OK [23:54:43]wFMCommunicate request_size=10 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 0D 02 02 05 E1 62 86 73 6D [23:54:43]Write to MH i2c: E2 0D 00 B4 09 80 0D 02 02 05 00 E1 62 86 73 6D 00 00 EA [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 03 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [23:54:43]RAPDU: 90 00 [23:54:43]wFMCommunicate OK [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 0D 03 02 [23:54:43]Write to MH i2c: E2 08 00 B5 09 80 0D 03 02 00 00 00 00 39 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 0B 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 0B 00 B5 09 00 45 93 4B F6 48 22 B0 36 90 00 A3 [23:54:43]RAPDU: 45 93 4B F6 48 22 B0 36 90 00 [23:54:43]wFMCommunicate OK [23:54:43]SAM_PROTO_SignData done [23:54:43]FM_MakeSignedData done [23:54:43]CreateOFDProtocolMessage [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 11 00 00 [23:54:43]Write to MH i2c: E2 08 00 B6 09 80 11 00 00 00 00 00 00 39 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 17 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 17 00 B6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [23:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:54:43]wFMCommunicate OK [23:54:43]CreateOFDProtocolMessage done [23:54:43]OFDSenderStorePacket 164434 [23:54:43]StoreOFDPacket docnum=164434 [23:54:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CF B7 07 01 7F 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 43 C2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 82 02 00 35 04 06 00 FB E1 62 86 73 6D 45 93 4B F6 48 22 B0 36 [23:54:43]CheckFolder [23:54:43]dirname=/storage/ofd_packets [23:54:43]CheckFolder done [23:54:43]ProducePacketName [23:54:43]name=ofd_packets/00164434 [23:54:43]NVStorageSaveData ofd_packets/00164434 [23:54:43]File name is /storage/ofd_packets/00164434 [23:54:43]Write 301 bytes [23:54:43]NVStorageSaveData done [23:54:43]OFDSenderStorePacket done [23:54:43]KKMCreateOFDPacket done [23:54:43]NVStorageSaveData kkm_last_timestamp [23:54:43]File name is /storage/kkm_last_timestamp [23:54:43]Write 4 bytes [23:54:43]NVStorageSaveData done [23:54:43]ExternCall_PrintAddStr [23:54:43]wPrintStart [23:54:43]Write to MH i2c: 01 00 00 B7 09 C0 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: 01 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: 01 07 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: 01 07 00 B7 09 00 00 00 00 00 FF 0F D5 [23:54:43]RasterBufferAndPrint [23:54:43]line Счет N : (1)458522 [23:54:43]line ИНН: 02508201610067 [23:54:43]line Контрольно-Кассовый Чек [23:54:43]line ПРОДАЖА [23:54:43]line ТРК (МРК, ГНК) : 12 [23:54:43]line Товар: 2710124130 [23:54:43]line Аи-92-К-5 [23:54:43]line 3.070 * 65.22 [23:54:43]line = 200.23 [23:54:43]line НДС 12% НСП 1% [23:54:43]line > о реализуемом товаре [23:54:43]line ИТОГО: 200.23 [23:54:43]line НСП 1% : 1.77 [23:54:43]line НДС 12% : 21.26 [23:54:43]line Наличными: 0.00 [23:54:43]line Безнал.: 200.23 [23:54:43]line Место: АЗС № 72 "Партнер Нефть" [23:54:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:54:43]line СНО: Общий режим [23:54:43]line Чек 355 12.07.2024 23:54 [23:54:43]line Смена: 445 ФФД: 1.0 [23:54:43]line ЗНМ: 0300000160 [23:54:43]line РНМ: 0000000000090829 [23:54:43]line Версия ККМ: 001 [23:54:43]line Платежная система: KICB Банк [23:54:43]line ФМ: 0000000000874718 [23:54:43]line ФД: 164434 [23:54:43]line ФПД: 276945439191917 [23:54:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240712T235443&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164434&fm=276945439191917&tin=02508201610067®Number=0000000000090829&sum=20023 [23:54:43]written 0, free lines is 4095 [23:54:43]OFD Sender: Processing packet 164434 [packets to send 104, broken 103] [23:54:43]ProducePacketName [23:54:43]name=ofd_packets/00164434 [23:54:43]OFD Sender: To server: pG, [23:54:43]CommunicateWithHost lk.salyk.kg:30040 [23:54:43]ConnectInit lk.salyk.kg [23:54:43]Connected sock=10 [23:54:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CF B7 07 01 7F 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 43 C2 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 82 02 00 35 04 06 00 FB E1 62 86 73 6D 45 93 4B F6 48 22 B0 36 [23:54:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7F 75 47 00 DF E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 82 02 00 F4 03 04 00 D6 68 91 66 B6 04 01 00 00 78 6C EC BF C8 B3 C9 48 [23:54:44]CommunicateWithHost err = 0 [23:54:44]CheckOFDResponse [23:54:44]1017 (14) - 77093643461234 [23:54:44]1041 (16) - 0000000000874718 [23:54:44]1040 (4) - 164434 [23:54:44]1012 (4) - 12.07.2024 17:33 [23:54:44]1206 (1) - 0 [23:54:44]OFD Sender: Remove packet 164434 [23:54:44]ProducePacketName [23:54:44]name=ofd_packets/00164434 [23:54:44]NVStorageDeleteData [23:54:44]Write to MH i2c: 01 00 00 E0 09 E9 [23:54:44]Write i2c OK [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: 01 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: 01 07 00 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: 01 07 00 E0 09 00 00 00 00 00 14 0D 11 [23:54:44]RasterBufferAndPrint [23:54:44]line [23:54:44]line [23:54:44]line [23:54:44]line [23:54:44]line [23:54:44]written 0, free lines is 3354 [23:54:44]MH_Cut [23:54:44]Write to MH i2c: D1 01 00 E7 09 01 C2 [23:54:44]Write i2c OK [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: D1 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: D1 01 00 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: D1 01 00 E7 09 00 C1 [23:54:44]Write to MH i2c: 01 00 00 E8 09 F1 [23:54:44]Write i2c OK [23:54:44]MH_I2C_Read... [23:54:44]OFD Sender: No OFD packet to send [23:54:44]*** Cut start [23:54:44]*** Partial cut [23:54:44]*** CUTSNS_PIN = 1 [23:54:44]*** CUTSNS_PIN = 0 [23:54:45]*** Brake cut motor [23:54:45]Read from MH i2c: 01 [23:54:45]MH_I2C_Read... [23:54:45]*** Stop cut motor [23:54:45]*** Cut end [23:54:45]Read from MH i2c: 01 07 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: 01 07 00 E8 09 00 00 00 00 00 FF 0F 06 [23:54:45]process_action close_receipt done [23:54:45]requested_data is exist [23:54:45]produce_requested_data [23:54:45]requested_item fm.sn is exist - process it [23:54:45]wFMCommunicate request_size=4 [23:54:45]MH_SAM_APDU [23:54:45]CAPDU: 80 11 00 00 [23:54:45]Write to MH i2c: E2 08 00 E9 09 80 11 00 00 00 00 00 00 6C [23:54:45]Write i2c OK [23:54:45]MH_I2C_Read... [23:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:45]Read from MH i2c: E2 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 17 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 17 00 E9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C2 [23:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:54:45]wFMCommunicate OK [23:54:45]requested_item fd.num is exist - process it [23:54:45]SAM_PROTO_GetFieldsCounters [23:54:45]wFMCommunicate request_size=4 [23:54:45]MH_SAM_APDU [23:54:45]CAPDU: 80 13 00 00 [23:54:45]Write to MH i2c: E2 08 00 EA 09 80 13 00 00 00 00 00 00 6F [23:54:45]Write i2c OK [23:54:45]MH_I2C_Read... [23:54:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:45]Read from MH i2c: E2 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 62 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 62 00 EA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [23:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:45]wFMCommunicate OK [23:54:45]SAM_PROTO_GetFieldsCounters done [23:54:45]requested_item shift.num is exist - process it [23:54:45]requested_item shift.opened is exist - process it [23:54:45]req_shift_opened [23:54:45]FM_GetShiftState [23:54:45]SAM_PROTO_GetShiftState [23:54:45]wFMCommunicate request_size=4 [23:54:45]MH_SAM_APDU [23:54:45]CAPDU: 80 13 01 00 [23:54:45]Write to MH i2c: E2 08 00 EB 09 80 13 01 00 00 00 00 00 71 [23:54:45]Write i2c OK [23:54:45]MH_I2C_Read... [23:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:45]Read from MH i2c: E2 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 0E 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 0E 00 EB 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BB [23:54:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [23:54:45]wFMCommunicate OK [23:54:45]SAM_PROTO_GetShiftState done [23:54:45]FM_GetShiftState done [23:54:45]req_shift_opened done [23:54:45]requested_item shift.open_date is exist - process it [23:54:45]req_shift_open_date [23:54:45]req_shift_open_date done [23:54:45]produce_requested_data done [23:54:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164434,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [23:54:45]process_action_free close_receipt [23:54:45]json_value_free [23:54:45]json_value_free done [23:54:45]process_json_proto returns [23:54:45]Send response to host [23:54:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164434,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [23:54:45]free response buf [23:54:45]execute_script done [23:54:45]execute_script returns [23:54:45]free content buf [23:54:45]Sock 7.Close socket [23:54:45]Sock 7.Thread stoped [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:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:04]accept exits with 9 [00:02:04]New connection [00:02:04]New thread 3067632996 created [00:02:04]Thread 3067489636 joined [00:02:04]Waiting for new connection... [00:02:04] Sock 9.Parse request [00:02:04]Sock 9.Check first char [00:02:04]Sock 9.First char is OK [00:02:04]request: POST /json_proto HTTP/1.0 [00:02:04]Method: POST [00:02:04]URL: /json_proto [00:02:04]Method is POST - this is cgi request [00:02:04]url: /json_proto [00:02:04]query_string will be loaded in cgi processing [00:02:04]execute_cgi json_proto POST (null) [00:02:04]execute_cgi path=json_proto method=POST [00:02:04]POST find Content-Length [00:02:04]Host: 172.17.56.4:8080 [00:02:04]Content-Length: 682 [00:02:04]Content-Type: application/json [00:02:04] [00:02:04]POST finish read [00:02:04]Found Content-Length = 682 [00:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:02:04]execute_script... [00:02: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)458523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:02:04]POST & json_proto [00:02:04]process_json_proto [00:02:04]json parsed OK: [00:02:04]protocol is kg_v1.0 [00:02:04]action value=close_receipt [00:02:04]process_action close_receipt [00:02:04]cmd_close_receipt [00:02:04]MH_GetDate [00:02:04]Write to MH i2c: F0 00 00 EC 09 E4 [00:02:04]Write i2c OK [00:02:04]MH_I2C_Read... [00:02:04]Read from MH i2c: F0 [00:02:04]MH_I2C_Read... [00:02:04]Read from MH i2c: F0 09 00 [00:02:04]MH_I2C_Read... [00:02:04]Read from MH i2c: F0 09 00 EC 09 00 FD C3 91 66 C9 DC B2 64 5F [00:02:04]GetLastDocTimeStamp 1720828483 [00:02:04]current date 1720828925 [00:02:04]FM_GetShiftState [00:02:04]SAM_PROTO_GetShiftState [00:02:04]wFMCommunicate request_size=4 [00:02:04]MH_SAM_APDU [00:02:04]CAPDU: 80 13 01 00 [00:02:04]Write to MH i2c: E2 08 00 ED 09 80 13 01 00 00 00 00 00 73 [00:02:04]Write i2c OK [00:02:04]MH_I2C_Read... [00:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:04]Read from MH i2c: E2 [00:02:04]MH_I2C_Read... [00:02:04]Read from MH i2c: E2 0E 00 [00:02:04]MH_I2C_Read... [00:02:04]Read from MH i2c: E2 0E 00 ED 09 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 BD [00:02:04]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [00:02:04]wFMCommunicate OK [00:02:04]SAM_PROTO_GetShiftState done [00:02:04]FM_GetShiftState done [00:02:04]opened in 1720744654 [00:02:04]opened+sec_in_day 1720831054 [00:02:04]quantity*price = 100016 [00:02:04]sum+1 = 100017 [00:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 356 13.07.2024 00:02 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164435 ФПД: 74073169972162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T000205&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164435&fm=74073169972162&tin=02508201610067®Number=0000000000090829&sum=100000 [00:02:05]StoreToDocumentArchive [00:02:05]shift 445 fd 164435 [00:02:05]save to /storage/0445/doc_00164435 [00:02:05]save last doc name /storage/0445/doc_00164435 to /storage/kkm_last_doc_name [00:02:05]save OK [00:02:05]Clear old archive folders... [00:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:02:05]tlvbuf is 00CABCC0 [00:02:05]SAM_PROTO_ClearQueue [00:02:05]wFMCommunicate request_size=4 [00:02:05]MH_SAM_APDU [00:02:05]CAPDU: 80 09 00 00 [00:02:05]Write to MH i2c: E2 08 00 FA 09 80 09 00 00 00 00 00 00 75 [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:02:05]Read from MH i2c: E2 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 03 00 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [00:02:05]RAPDU: 90 00 [00:02:05]wFMCommunicate OK [00:02:05]SAM_PROTO_ClearQueue done [00:02:05]KKMCreateOFDPacket [00:02:05]OFDProtocolAddRootSTLVToBuf [00:02:05]FM_MakeSignedData [00:02:05]FM_MakeSignedData [00:02:05]SAM_PROTO_SignData [00:02:05]wFMCommunicate request_size=4 [00:02:05]MH_SAM_APDU [00:02:05]CAPDU: 80 0D 01 02 [00:02:05]Write to MH i2c: E2 08 00 FB 09 80 0D 01 02 00 00 00 00 7D [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:02:05]Read from MH i2c: E2 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 03 00 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 03 00 FB 09 00 90 00 78 [00:02:05]RAPDU: 90 00 [00:02:05]wFMCommunicate OK [00:02:05]wFMCommunicate request_size=255 [00:02:05]MH_SAM_APDU [00:02: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 FD C3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 82 02 00 35 04 06 00 43 [00:02:05]Write to MH i2c: E2 02 01 FC 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 FD C3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 82 02 00 35 04 06 00 43 00 00 8C [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:05]Read from MH i2c: E2 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 03 00 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [00:02:05]RAPDU: 90 00 [00:02:05]wFMCommunicate OK [00:02:05]wFMCommunicate request_size=10 [00:02:05]MH_SAM_APDU [00:02:05]CAPDU: 80 0D 02 02 05 5E 80 FB CB C2 [00:02:05]Write to MH i2c: E2 0D 00 FD 09 80 0D 02 02 05 00 5E 80 FB CB C2 00 00 F0 [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:05]Read from MH i2c: E2 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 03 00 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [00:02:05]RAPDU: 90 00 [00:02:05]wFMCommunicate OK [00:02:05]wFMCommunicate request_size=4 [00:02:05]MH_SAM_APDU [00:02:05]CAPDU: 80 0D 03 02 [00:02:05]Write to MH i2c: E2 08 00 FE 09 80 0D 03 02 00 00 00 00 82 [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:02:05]Read from MH i2c: E2 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 0B 00 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 0B 00 FE 09 00 28 E1 30 9F EC 4C D0 56 90 00 B9 [00:02:05]RAPDU: 28 E1 30 9F EC 4C D0 56 90 00 [00:02:05]wFMCommunicate OK [00:02:05]SAM_PROTO_SignData done [00:02:05]FM_MakeSignedData done [00:02:05]CreateOFDProtocolMessage [00:02:05]wFMCommunicate request_size=4 [00:02:05]MH_SAM_APDU [00:02:05]CAPDU: 80 11 00 00 [00:02:05]Write to MH i2c: E2 08 00 FF 09 80 11 00 00 00 00 00 00 82 [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:05]Read from MH i2c: E2 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 17 00 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 17 00 FF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [00:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:02:05]wFMCommunicate OK [00:02:05]CreateOFDProtocolMessage done [00:02:05]OFDSenderStorePacket 164435 [00:02:05]StoreOFDPacket docnum=164435 [00:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 38 68 07 01 0F 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 FD C3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 82 02 00 35 04 06 00 43 5E 80 FB CB C2 28 E1 30 9F EC 4C D0 56 [00:02:05]CheckFolder [00:02:05]dirname=/storage/ofd_packets [00:02:05]CheckFolder done [00:02:05]ProducePacketName [00:02:05]name=ofd_packets/00164435 [00:02:05]NVStorageSaveData ofd_packets/00164435 [00:02:05]File name is /storage/ofd_packets/00164435 [00:02:05]Write 301 bytes [00:02:05]NVStorageSaveData done [00:02:05]OFDSenderStorePacket done [00:02:05]KKMCreateOFDPacket done [00:02:05]NVStorageSaveData kkm_last_timestamp [00:02:05]File name is /storage/kkm_last_timestamp [00:02:05]Write 4 bytes [00:02:05]NVStorageSaveData done [00:02:05]ExternCall_PrintAddStr [00:02:05]wPrintStart [00:02:05]Write to MH i2c: 01 00 00 00 0A 0A [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: 01 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: 01 07 00 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 FF 0F 1F [00:02:06]RasterBufferAndPrint [00:02:06]line Счет N : (1)458523 [00:02:06]line ИНН: 02508201610067 [00:02:06]line Контрольно-Кассовый Чек [00:02:06]line ПРОДАЖА [00:02:06]line ТРК (МРК, ГНК) : 12 [00:02:06]line Товар: 2710124130 [00:02:06]line Аи-92-К-5 [00:02:06]line 15.200 * 65.80 [00:02:06]line = 1000.16 [00:02:06]line НДС 12% НСП 1% [00:02:06]line > о реализуемом товаре [00:02:06]line ОКРУГЛЕНИЕ: -0.16 [00:02:06]line ИТОГО: 1000.00 [00:02:06]line Внесено: 1000.00 [00:02:06]line СДАЧА: 0.00 [00:02:06]line НСП 1% : 8.85 [00:02:06]line НДС 12% : 106.21 [00:02:06]line Наличными: 1000.00 [00:02:06]line Безнал.: 0.00 [00:02:06]line Место: АЗС № 72 "Партнер Нефть" [00:02:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:02:06]line СНО: Общий режим [00:02:06]line Чек 356 13.07.2024 00:02 [00:02:06]line Смена: 445 ФФД: 1.0 [00:02:06]line ЗНМ: 0300000160 [00:02:06]line РНМ: 0000000000090829 [00:02:06]line Версия ККМ: 001 [00:02:06]line ФМ: 0000000000874718 [00:02:06]line ФД: 164435 [00:02:06]line ФПД: 74073169972162 [00:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T000205&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164435&fm=74073169972162&tin=02508201610067®Number=0000000000090829&sum=100000 [00:02:06]written 0, free lines is 4095 [00:02:06]OFD Sender: Processing packet 164435 [packets to send 104, broken 103] [00:02:06]ProducePacketName [00:02:06]name=ofd_packets/00164435 [00:02:06]OFD Sender: To server: pG, [00:02:06]CommunicateWithHost lk.salyk.kg:30040 [00:02:06]ConnectInit lk.salyk.kg [00:02:06]Connected sock=10 [00:02:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 38 68 07 01 0F 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 FD C3 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 82 02 00 35 04 06 00 43 5E 80 FB CB C2 28 E1 30 9F EC 4C D0 56 [00:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 67 80 47 00 93 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 34 37 31 38 10 04 04 00 53 82 02 00 F4 03 04 00 90 6A 91 66 B6 04 01 00 00 14 98 F1 67 D0 BE 37 52 [00:02:06]CommunicateWithHost err = 0 [00:02:06]CheckOFDResponse [00:02:06]1017 (14) - 77093643461234 [00:02:06]1041 (16) - 0000000000874718 [00:02:06]1040 (4) - 164435 [00:02:06]1012 (4) - 12.07.2024 17:40 [00:02:06]1206 (1) - 0 [00:02:06]OFD Sender: Remove packet 164435 [00:02:06]ProducePacketName [00:02:06]name=ofd_packets/00164435 [00:02:06]NVStorageDeleteData [00:02:06]Write to MH i2c: 01 00 00 2A 0A 34 [00:02:06]Write i2c OK [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: 01 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: 01 07 00 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: 01 07 00 2A 0A 00 00 00 00 00 02 0D 4A [00:02:06]RasterBufferAndPrint [00:02:06]line [00:02:06]line [00:02:06]line [00:02:06]line [00:02:06]line [00:02:06]written 0, free lines is 3336 [00:02:06]MH_Cut [00:02:06]Write to MH i2c: D1 01 00 31 0A 01 0D [00:02:06]Write i2c OK [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: D1 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: D1 01 00 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: D1 01 00 31 0A 00 0C [00:02:06]Write to MH i2c: 01 00 00 32 0A 3C [00:02:06]Write i2c OK [00:02:06]MH_I2C_Read... [00:02:06]OFD Sender: No OFD packet to send [00:02:07]*** Cut start [00:02:07]*** Partial cut [00:02:07]*** CUTSNS_PIN = 1 [00:02:07]*** CUTSNS_PIN = 0 [00:02:07]*** Brake cut motor [00:02:07]Read from MH i2c: 01 [00:02:07]MH_I2C_Read... [00:02:07]*** Stop cut motor [00:02:07]*** Cut end [00:02:07]Read from MH i2c: 01 07 00 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: 01 07 00 32 0A 00 00 00 00 00 FF 0F 51 [00:02:07]process_action close_receipt done [00:02:07]requested_data is exist [00:02:07]produce_requested_data [00:02:07]requested_item fm.sn is exist - process it [00:02:07]wFMCommunicate request_size=4 [00:02:07]MH_SAM_APDU [00:02:07]CAPDU: 80 11 00 00 [00:02:07]Write to MH i2c: E2 08 00 33 0A 80 11 00 00 00 00 00 00 B7 [00:02:07]Write i2c OK [00:02:07]MH_I2C_Read... [00:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:07]Read from MH i2c: E2 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 17 00 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 17 00 33 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [00:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:02:07]wFMCommunicate OK [00:02:07]requested_item fd.num is exist - process it [00:02:07]SAM_PROTO_GetFieldsCounters [00:02:07]wFMCommunicate request_size=4 [00:02:07]MH_SAM_APDU [00:02:07]CAPDU: 80 13 00 00 [00:02:07]Write to MH i2c: E2 08 00 34 0A 80 13 00 00 00 00 00 00 BA [00:02:07]Write i2c OK [00:02:07]MH_I2C_Read... [00:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:07]Read from MH i2c: E2 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 62 00 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 62 00 34 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [00:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:07]wFMCommunicate OK [00:02:07]SAM_PROTO_GetFieldsCounters done [00:02:07]requested_item shift.num is exist - process it [00:02:07]requested_item shift.opened is exist - process it [00:02:07]req_shift_opened [00:02:07]FM_GetShiftState [00:02:07]SAM_PROTO_GetShiftState [00:02:07]wFMCommunicate request_size=4 [00:02:07]MH_SAM_APDU [00:02:07]CAPDU: 80 13 01 00 [00:02:07]Write to MH i2c: E2 08 00 35 0A 80 13 01 00 00 00 00 00 BC [00:02:07]Write i2c OK [00:02:07]MH_I2C_Read... [00:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:07]Read from MH i2c: E2 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 0E 00 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 0E 00 35 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 06 [00:02:07]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [00:02:07]wFMCommunicate OK [00:02:07]SAM_PROTO_GetShiftState done [00:02:07]FM_GetShiftState done [00:02:07]req_shift_opened done [00:02:07]requested_item shift.open_date is exist - process it [00:02:07]req_shift_open_date [00:02:07]req_shift_open_date done [00:02:07]produce_requested_data done [00:02:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164435,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [00:02:07]process_action_free close_receipt [00:02:07]json_value_free [00:02:07]json_value_free done [00:02:07]process_json_proto returns [00:02:07]Send response to host [00:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164435,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [00:02:07]free response buf [00:02:07]execute_script done [00:02:07]execute_script returns [00:02:07]free content buf [00:02:07]Sock 9.Close socket [00:02:07]Sock 9.Thread stoped [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08: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:45]accept exits with 7 [00:13:45]New connection [00:13:45]New thread 3067489636 created [00:13:45]Thread 3067632996 joined [00:13:45]Waiting for new connection... [00:13:45] Sock 7.Parse request [00:13:45]Sock 7.Check first char [00:13:45]Sock 7.First char is OK [00:13:45]request: POST /json_proto HTTP/1.0 [00:13:45]Method: POST [00:13:45]URL: /json_proto [00:13:45]Method is POST - this is cgi request [00:13:45]url: /json_proto [00:13:45]query_string will be loaded in cgi processing [00:13:45]execute_cgi json_proto POST (null) [00:13:45]execute_cgi path=json_proto method=POST [00:13:45]POST find Content-Length [00:13:45]Host: 172.17.56.4:8080 [00:13:45]Content-Length: 682 [00:13:45]Content-Type: application/json [00:13:45] [00:13:45]POST finish read [00:13:45]Found Content-Length = 682 [00:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:13:45]execute_script... [00:13: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)458524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:13:45]POST & json_proto [00:13:45]process_json_proto [00:13:45]json parsed OK: [00:13:45]protocol is kg_v1.0 [00:13:45]action value=close_receipt [00:13:45]process_action close_receipt [00:13:45]cmd_close_receipt [00:13:45]MH_GetDate [00:13:45]Write to MH i2c: F0 00 00 36 0A 2F [00:13:45]Write i2c OK [00:13:45]MH_I2C_Read... [00:13:45]Read from MH i2c: F0 [00:13:45]MH_I2C_Read... [00:13:45]Read from MH i2c: F0 09 00 [00:13:45]MH_I2C_Read... [00:13:45]Read from MH i2c: F0 09 00 36 0A 00 BB C6 91 66 C9 DC B2 64 6B [00:13:45]GetLastDocTimeStamp 1720828925 [00:13:45]current date 1720829627 [00:13:45]FM_GetShiftState [00:13:45]SAM_PROTO_GetShiftState [00:13:45]wFMCommunicate request_size=4 [00:13:45]MH_SAM_APDU [00:13:45]CAPDU: 80 13 01 00 [00:13:45]Write to MH i2c: E2 08 00 37 0A 80 13 01 00 00 00 00 00 BE [00:13:45]Write i2c OK [00:13:45]MH_I2C_Read... [00:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:45]Read from MH i2c: E2 [00:13:45]MH_I2C_Read... [00:13:45]Read from MH i2c: E2 0E 00 [00:13:45]MH_I2C_Read... [00:13:45]Read from MH i2c: E2 0E 00 37 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 08 [00:13:45]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [00:13:45]wFMCommunicate OK [00:13:45]SAM_PROTO_GetShiftState done [00:13:45]FM_GetShiftState done [00:13:45]opened in 1720744654 [00:13:45]opened+sec_in_day 1720831054 [00:13:45]quantity*price = 100016 [00:13:45]sum+1 = 100017 [00:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 357 13.07.2024 00:13 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164436 ФПД: 178081292048944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T001347&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164436&fm=178081292048944&tin=02508201610067®Number=0000000000090829&sum=100000 [00:13:46]StoreToDocumentArchive [00:13:46]shift 445 fd 164436 [00:13:46]save to /storage/0445/doc_00164436 [00:13:46]save last doc name /storage/0445/doc_00164436 to /storage/kkm_last_doc_name [00:13:46]save OK [00:13:46]Clear old archive folders... [00:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:13:46]tlvbuf is 00CDF030 [00:13:46]SAM_PROTO_ClearQueue [00:13:46]wFMCommunicate request_size=4 [00:13:46]MH_SAM_APDU [00:13:46]CAPDU: 80 09 00 00 [00:13:46]Write to MH i2c: E2 08 00 44 0A 80 09 00 00 00 00 00 00 C0 [00:13:46]Write i2c OK [00:13:46]MH_I2C_Read... [00:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:46]Read from MH i2c: E2 [00:13:46]MH_I2C_Read... [00:13:46]Read from MH i2c: E2 03 00 [00:13:46]MH_I2C_Read... [00:13:46]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [00:13:46]RAPDU: 90 00 [00:13:46]wFMCommunicate OK [00:13:46]SAM_PROTO_ClearQueue done [00:13:46]KKMCreateOFDPacket [00:13:46]OFDProtocolAddRootSTLVToBuf [00:13:46]FM_MakeSignedData [00:13:46]FM_MakeSignedData [00:13:46]SAM_PROTO_SignData [00:13:46]wFMCommunicate request_size=4 [00:13:46]MH_SAM_APDU [00:13:46]CAPDU: 80 0D 01 02 [00:13:46]Write to MH i2c: E2 08 00 45 0A 80 0D 01 02 00 00 00 00 C8 [00:13:46]Write i2c OK [00:13:46]MH_I2C_Read... [00:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:46]Read from MH i2c: E2 [00:13:46]MH_I2C_Read... [00:13:46]Read from MH i2c: E2 03 00 [00:13:46]MH_I2C_Read... [00:13:46]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [00:13:46]RAPDU: 90 00 [00:13:46]wFMCommunicate OK [00:13:46]wFMCommunicate request_size=255 [00:13:46]MH_SAM_APDU [00:13: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 BB C6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 82 02 00 35 04 06 00 A1 [00:13:46]Write to MH i2c: E2 02 01 46 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 BB C6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 82 02 00 35 04 06 00 A1 00 00 F8 [00:13:46]Write i2c OK [00:13:46]MH_I2C_Read... [00:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:47]Read from MH i2c: E2 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: E2 03 00 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: E2 03 00 46 0A 00 90 00 C4 [00:13:47]RAPDU: 90 00 [00:13:47]wFMCommunicate OK [00:13:47]wFMCommunicate request_size=10 [00:13:47]MH_SAM_APDU [00:13:47]CAPDU: 80 0D 02 02 05 F6 C8 27 5A 30 [00:13:47]Write to MH i2c: E2 0D 00 47 0A 80 0D 02 02 05 00 F6 C8 27 5A 30 00 00 44 [00:13:47]Write i2c OK [00:13:47]MH_I2C_Read... [00:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:47]Read from MH i2c: E2 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: E2 03 00 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [00:13:47]RAPDU: 90 00 [00:13:47]wFMCommunicate OK [00:13:47]wFMCommunicate request_size=4 [00:13:47]MH_SAM_APDU [00:13:47]CAPDU: 80 0D 03 02 [00:13:47]Write to MH i2c: E2 08 00 48 0A 80 0D 03 02 00 00 00 00 CD [00:13:47]Write i2c OK [00:13:47]MH_I2C_Read... [00:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:47]Read from MH i2c: E2 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: E2 0B 00 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: E2 0B 00 48 0A 00 02 59 73 6A D0 7B 32 CD 90 00 50 [00:13:47]RAPDU: 02 59 73 6A D0 7B 32 CD 90 00 [00:13:47]wFMCommunicate OK [00:13:47]SAM_PROTO_SignData done [00:13:47]FM_MakeSignedData done [00:13:47]CreateOFDProtocolMessage [00:13:47]wFMCommunicate request_size=4 [00:13:47]MH_SAM_APDU [00:13:47]CAPDU: 80 11 00 00 [00:13:47]Write to MH i2c: E2 08 00 49 0A 80 11 00 00 00 00 00 00 CD [00:13:47]Write i2c OK [00:13:47]MH_I2C_Read... [00:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:47]Read from MH i2c: E2 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: E2 17 00 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: E2 17 00 49 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 23 [00:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:13:47]wFMCommunicate OK [00:13:47]CreateOFDProtocolMessage done [00:13:47]OFDSenderStorePacket 164436 [00:13:47]StoreOFDPacket docnum=164436 [00:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AC 11 07 01 6C 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 BB C6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 82 02 00 35 04 06 00 A1 F6 C8 27 5A 30 02 59 73 6A D0 7B 32 CD [00:13:47]CheckFolder [00:13:47]dirname=/storage/ofd_packets [00:13:47]CheckFolder done [00:13:47]ProducePacketName [00:13:47]name=ofd_packets/00164436 [00:13:47]NVStorageSaveData ofd_packets/00164436 [00:13:47]File name is /storage/ofd_packets/00164436 [00:13:47]Write 301 bytes [00:13:47]NVStorageSaveData done [00:13:47]OFDSenderStorePacket done [00:13:47]KKMCreateOFDPacket done [00:13:47]NVStorageSaveData kkm_last_timestamp [00:13:47]File name is /storage/kkm_last_timestamp [00:13:47]Write 4 bytes [00:13:47]NVStorageSaveData done [00:13:47]OFD Sender: Processing packet 164436 [packets to send 104, broken 103] [00:13:47]ProducePacketName [00:13:47]name=ofd_packets/00164436 [00:13:47]OFD Sender: To server: pG, [00:13:47]CommunicateWithHost lk.salyk.kg:30040 [00:13:47]ConnectInit lk.salyk.kg [00:13:47]ExternCall_PrintAddStr [00:13:47]wPrintStart [00:13:47]Write to MH i2c: 01 00 00 4A 0A 54 [00:13:47]Write i2c OK [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: 01 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: 01 07 00 [00:13:47]MH_I2C_Read... [00:13:47]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 FF 0F 69 [00:13:47]RasterBufferAndPrint [00:13:47]line Счет N : (1)458524 [00:13:47]line ИНН: 02508201610067 [00:13:47]line Контрольно-Кассовый Чек [00:13:47]line ПРОДАЖА [00:13:47]line ТРК (МРК, ГНК) : 22 [00:13:47]line Товар: 2710124130 [00:13:47]line Аи-92-К-5 [00:13:47]line 15.200 * 65.80 [00:13:47]line = 1000.16 [00:13:47]line НДС 12% НСП 1% [00:13:47]line > о реализуемом товаре [00:13:47]line ОКРУГЛЕНИЕ: -0.16 [00:13:47]line ИТОГО: 1000.00 [00:13:47]line Внесено: 1000.00 [00:13:47]line СДАЧА: 0.00 [00:13:47]line НСП 1% : 8.85 [00:13:47]line НДС 12% : 106.21 [00:13:47]line Наличными: 1000.00 [00:13:47]line Безнал.: 0.00 [00:13:47]line Место: АЗС № 72 "Партнер Нефть" [00:13:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:13:47]line СНО: Общий режим [00:13:47]line Чек 357 13.07.2024 00:13 [00:13:47]line Смена: 445 ФФД: 1.0 [00:13:47]line ЗНМ: 0300000160 [00:13:47]line РНМ: 0000000000090829 [00:13:47]line Версия ККМ: 001 [00:13:47]line ФМ: 0000000000874718 [00:13:47]line ФД: 164436 [00:13:47]line ФПД: 178081292048944 [00:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T001347&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164436&fm=178081292048944&tin=02508201610067®Number=0000000000090829&sum=100000 [00:13:47]Connected sock=11 [00:13:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AC 11 07 01 6C 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 BB C6 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 82 02 00 35 04 06 00 A1 F6 C8 27 5A 30 02 59 73 6A D0 7B 32 CD [00:13:47]written 0, free lines is 4095 [00:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5D 1C 47 00 28 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 34 37 31 38 10 04 04 00 54 82 02 00 F4 03 04 00 4D 6D 91 66 B6 04 01 00 00 0E CE BF 3F 90 5E 12 89 [00:13:47]CommunicateWithHost err = 0 [00:13:47]CheckOFDResponse [00:13:47]1017 (14) - 77093643461234 [00:13:47]1041 (16) - 0000000000874718 [00:13:47]1040 (4) - 164436 [00:13:47]1012 (4) - 12.07.2024 17:52 [00:13:47]1206 (1) - 0 [00:13:47]OFD Sender: Remove packet 164436 [00:13:47]ProducePacketName [00:13:47]name=ofd_packets/00164436 [00:13:47]NVStorageDeleteData [00:13:48]Write to MH i2c: 01 00 00 74 0A 7E [00:13:48]Write i2c OK [00:13:48]MH_I2C_Read... [00:13:48]Read from MH i2c: 01 [00:13:48]MH_I2C_Read... [00:13:48]Read from MH i2c: 01 07 00 [00:13:48]MH_I2C_Read... [00:13:48]Read from MH i2c: 01 07 00 74 0A 00 00 00 00 00 02 0D 94 [00:13:48]RasterBufferAndPrint [00:13:48]line [00:13:48]line [00:13:48]line [00:13:48]line [00:13:48]line [00:13:48]written 0, free lines is 3336 [00:13:48]MH_Cut [00:13:48]Write to MH i2c: D1 01 00 7B 0A 01 57 [00:13:48]Write i2c OK [00:13:48]MH_I2C_Read... [00:13:48]Read from MH i2c: D1 [00:13:48]MH_I2C_Read... [00:13:48]Read from MH i2c: D1 01 00 [00:13:48]MH_I2C_Read... [00:13:48]Read from MH i2c: D1 01 00 7B 0A 00 56 [00:13:48]Write to MH i2c: 01 00 00 7C 0A 86 [00:13:48]Write i2c OK [00:13:48]MH_I2C_Read... [00:13:48]OFD Sender: No OFD packet to send [00:13:48]*** Cut start [00:13:48]*** Partial cut [00:13:48]*** CUTSNS_PIN = 1 [00:13:48]*** CUTSNS_PIN = 0 [00:13:49]*** Brake cut motor [00:13:49]Read from MH i2c: 01 [00:13:49]MH_I2C_Read... [00:13:49]*** Stop cut motor [00:13:49]*** Cut end [00:13:49]Read from MH i2c: 01 07 00 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: 01 07 00 7C 0A 00 00 00 00 00 FF 0F 9B [00:13:49]process_action close_receipt done [00:13:49]requested_data is exist [00:13:49]produce_requested_data [00:13:49]requested_item fm.sn is exist - process it [00:13:49]wFMCommunicate request_size=4 [00:13:49]MH_SAM_APDU [00:13:49]CAPDU: 80 11 00 00 [00:13:49]Write to MH i2c: E2 08 00 7D 0A 80 11 00 00 00 00 00 00 01 [00:13:49]Write i2c OK [00:13:49]MH_I2C_Read... [00:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:49]Read from MH i2c: E2 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 17 00 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 17 00 7D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 57 [00:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:13:49]wFMCommunicate OK [00:13:49]requested_item fd.num is exist - process it [00:13:49]SAM_PROTO_GetFieldsCounters [00:13:49]wFMCommunicate request_size=4 [00:13:49]MH_SAM_APDU [00:13:49]CAPDU: 80 13 00 00 [00:13:49]Write to MH i2c: E2 08 00 7E 0A 80 13 00 00 00 00 00 00 04 [00:13:49]Write i2c OK [00:13:49]MH_I2C_Read... [00:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:49]Read from MH i2c: E2 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 62 00 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 62 00 7E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [00:13:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:49]wFMCommunicate OK [00:13:49]SAM_PROTO_GetFieldsCounters done [00:13:49]requested_item shift.num is exist - process it [00:13:49]requested_item shift.opened is exist - process it [00:13:49]req_shift_opened [00:13:49]FM_GetShiftState [00:13:49]SAM_PROTO_GetShiftState [00:13:49]wFMCommunicate request_size=4 [00:13:49]MH_SAM_APDU [00:13:49]CAPDU: 80 13 01 00 [00:13:49]Write to MH i2c: E2 08 00 7F 0A 80 13 01 00 00 00 00 00 06 [00:13:49]Write i2c OK [00:13:49]MH_I2C_Read... [00:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:49]Read from MH i2c: E2 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 0E 00 [00:13:49]MH_I2C_Read... [00:13:49]Read from MH i2c: E2 0E 00 7F 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 50 [00:13:49]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [00:13:49]wFMCommunicate OK [00:13:49]SAM_PROTO_GetShiftState done [00:13:49]FM_GetShiftState done [00:13:49]req_shift_opened done [00:13:49]requested_item shift.open_date is exist - process it [00:13:49]req_shift_open_date [00:13:49]req_shift_open_date done [00:13:49]produce_requested_data done [00:13:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164436,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [00:13:49]process_action_free close_receipt [00:13:49]json_value_free [00:13:49]json_value_free done [00:13:49]process_json_proto returns [00:13:49]Send response to host [00:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164436,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [00:13:49]free response buf [00:13:49]execute_script done [00:13:49]execute_script returns [00:13:49]free content buf [00:13:49]Sock 7.Close socket [00:13:49]Sock 7.Thread stoped [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:11]accept exits with 9 [00:26:11]New connection [00:26:11]New thread 3067632996 created [00:26:11]Thread 3067489636 joined [00:26:11]Waiting for new connection... [00:26:11] Sock 9.Parse request [00:26:11]Sock 9.Check first char [00:26:11]Sock 9.First char is OK [00:26:11]request: POST /json_proto HTTP/1.0 [00:26:11]Method: POST [00:26:11]URL: /json_proto [00:26:11]Method is POST - this is cgi request [00:26:11]url: /json_proto [00:26:11]query_string will be loaded in cgi processing [00:26:11]execute_cgi json_proto POST (null) [00:26:11]execute_cgi path=json_proto method=POST [00:26:11]POST find Content-Length [00:26:11]Host: 172.17.56.4:8080 [00:26:11]Content-Length: 674 [00:26:11]Content-Type: application/json [00:26:11] [00:26:11]POST finish read [00:26:11]Found Content-Length = 674 [00:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.270, "sum" : 666.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 666.00, "payments": [ { "type": 0, "sum" : 666.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:11]execute_script... [00:26: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)458525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.270, "sum" : 666.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 666.00, "payments": [ { "type": 0, "sum" : 666.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:11]POST & json_proto [00:26:11]process_json_proto [00:26:11]json parsed OK: [00:26:11]protocol is kg_v1.0 [00:26:11]action value=close_receipt [00:26:11]process_action close_receipt [00:26:11]cmd_close_receipt [00:26:11]MH_GetDate [00:26:11]Write to MH i2c: F0 00 00 80 0A 79 [00:26:11]Write i2c OK [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: F0 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: F0 09 00 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: F0 09 00 80 0A 00 A5 C9 91 66 C9 DC B2 64 A2 [00:26:11]GetLastDocTimeStamp 1720829627 [00:26:11]current date 1720830373 [00:26:11]FM_GetShiftState [00:26:11]SAM_PROTO_GetShiftState [00:26:11]wFMCommunicate request_size=4 [00:26:11]MH_SAM_APDU [00:26:11]CAPDU: 80 13 01 00 [00:26:11]Write to MH i2c: E2 08 00 81 0A 80 13 01 00 00 00 00 00 08 [00:26:11]Write i2c OK [00:26:11]MH_I2C_Read... [00:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:11]Read from MH i2c: E2 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 0E 00 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 0E 00 81 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 52 [00:26:11]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [00:26:11]wFMCommunicate OK [00:26:11]SAM_PROTO_GetShiftState done [00:26:11]FM_GetShiftState done [00:26:11]opened in 1720744654 [00:26:11]opened+sec_in_day 1720831054 [00:26:11]quantity*price = 66651 [00:26:11]sum+1 = 66652 [00:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 666.00 Внесено: 700.00 СДАЧА: 34.00 НСП 1% : 5.90 НДС 12% : 70.78 Наличными: 666.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 358 13.07.2024 00:26 Смена: 445 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164437 ФПД: 93061418860000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T002613&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164437&fm=93061418860000&tin=02508201610067®Number=0000000000090829&sum=66600 [00:26:12]StoreToDocumentArchive [00:26:12]shift 445 fd 164437 [00:26:12]save to /storage/0445/doc_00164437 [00:26:12]save last doc name /storage/0445/doc_00164437 to /storage/kkm_last_doc_name [00:26:12]save OK [00:26:12]Clear old archive folders... [00:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:26:12]tlvbuf is 00CDF080 [00:26:12]SAM_PROTO_ClearQueue [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 09 00 00 [00:26:12]Write to MH i2c: E2 08 00 8E 0A 80 09 00 00 00 00 00 00 0A [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 03 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [00:26:12]RAPDU: 90 00 [00:26:12]wFMCommunicate OK [00:26:12]SAM_PROTO_ClearQueue done [00:26:12]KKMCreateOFDPacket [00:26:12]OFDProtocolAddRootSTLVToBuf [00:26:12]FM_MakeSignedData [00:26:12]FM_MakeSignedData [00:26:12]SAM_PROTO_SignData [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 0D 01 02 [00:26:12]Write to MH i2c: E2 08 00 8F 0A 80 0D 01 02 00 00 00 00 12 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 03 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [00:26:12]RAPDU: 90 00 [00:26:12]wFMCommunicate OK [00:26:12]wFMCommunicate request_size=255 [00:26:12]MH_SAM_APDU [00:26: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 36 24 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5B 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 1B 00 00 00 00 07 04 06 00 28 04 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 A5 C9 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 82 02 00 35 04 06 00 54 A3 8C D0 [00:26:12]Write to MH i2c: E2 02 01 90 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5B 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 1B 00 00 00 00 07 04 06 00 28 04 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 A5 C9 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 82 02 00 35 04 06 00 54 A3 8C D0 00 00 82 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 03 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [00:26:13]RAPDU: 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=7 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 0D 02 02 02 3D E0 [00:26:13]Write to MH i2c: E2 0A 00 91 0A 80 0D 02 02 02 00 3D E0 00 00 36 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 03 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 03 00 91 0A 00 90 00 0F [00:26:13]RAPDU: 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 0D 03 02 [00:26:13]Write to MH i2c: E2 08 00 92 0A 80 0D 03 02 00 00 00 00 17 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 0B 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 0B 00 92 0A 00 51 A1 28 FD B2 6F F6 1D 90 00 63 [00:26:13]RAPDU: 51 A1 28 FD B2 6F F6 1D 90 00 [00:26:13]wFMCommunicate OK [00:26:13]SAM_PROTO_SignData done [00:26:13]FM_MakeSignedData done [00:26:13]CreateOFDProtocolMessage [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 11 00 00 [00:26:13]Write to MH i2c: E2 08 00 93 0A 80 11 00 00 00 00 00 00 17 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 17 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 17 00 93 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6D [00:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:26:13]wFMCommunicate OK [00:26:13]CreateOFDProtocolMessage done [00:26:13]OFDSenderStorePacket 164437 [00:26:13]StoreOFDPacket docnum=164437 [00:26:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A6 FA 04 01 EC EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5B 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 1B 00 00 00 00 07 04 06 00 28 04 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 A5 C9 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 82 02 00 35 04 06 00 54 A3 8C D0 3D E0 51 A1 28 FD B2 6F F6 1D [00:26:13]CheckFolder [00:26:13]dirname=/storage/ofd_packets [00:26:13]CheckFolder done [00:26:13]ProducePacketName [00:26:13]name=ofd_packets/00164437 [00:26:13]NVStorageSaveData ofd_packets/00164437 [00:26:13]File name is /storage/ofd_packets/00164437 [00:26:13]Write 298 bytes [00:26:13]NVStorageSaveData done [00:26:13]OFDSenderStorePacket done [00:26:13]KKMCreateOFDPacket done [00:26:13]NVStorageSaveData kkm_last_timestamp [00:26:13]File name is /storage/kkm_last_timestamp [00:26:13]Write 4 bytes [00:26:13]NVStorageSaveData done [00:26:13]ExternCall_PrintAddStr [00:26:13]wPrintStart [00:26:13]Write to MH i2c: 01 00 00 94 0A 9E [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: 01 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: 01 07 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: 01 07 00 94 0A 00 00 00 00 00 FF 0F B3 [00:26:13]RasterBufferAndPrint [00:26:13]line Счет N : (1)458525 [00:26:13]line ИНН: 02508201610067 [00:26:13]line Контрольно-Кассовый Чек [00:26:13]line ПРОДАЖА [00:26:13]line ТРК (МРК, ГНК) : 11 [00:26:13]line Товар: 2710194210 [00:26:13]line ДТ-К-5 [00:26:13]line 9.270 * 71.90 [00:26:13]line = 666.51 [00:26:13]line НДС 12% НСП 1% [00:26:13]line > о реализуемом товаре [00:26:13]line ОКРУГЛЕНИЕ: -0.51 [00:26:13]line ИТОГО: 666.00 [00:26:13]line Внесено: 700.00 [00:26:13]line СДАЧА: 34.00 [00:26:13]line НСП 1% : 5.90 [00:26:13]line НДС 12% : 70.78 [00:26:13]line Наличными: 666.00 [00:26:13]line Безнал.: 0.00 [00:26:13]line Место: АЗС № 72 "Партнер Нефть" [00:26:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:26:13]line СНО: Общий режим [00:26:13]line Чек 358 13.07.2024 00:26 [00:26:13]line Смена: 445 ФФД: 1.0 [00:26:13]line ЗНМ: 0300000160 [00:26:13]line РНМ: 0000000000090829 [00:26:13]line Версия ККМ: 001 [00:26:13]line ФМ: 0000000000874718 [00:26:13]line ФД: 164437 [00:26:13]line ФПД: 93061418860000 [00:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T002613&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164437&fm=93061418860000&tin=02508201610067®Number=0000000000090829&sum=66600 [00:26:13]OFD Sender: Processing packet 164437 [packets to send 104, broken 103] [00:26:13]ProducePacketName [00:26:13]name=ofd_packets/00164437 [00:26:13]OFD Sender: To server: pG, [00:26:13]CommunicateWithHost lk.salyk.kg:30040 [00:26:13]ConnectInit lk.salyk.kg [00:26:13]written 0, free lines is 4095 [00:26:13]Connected sock=10 [00:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A6 FA 04 01 EC EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5B 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 1B 00 00 00 00 07 04 06 00 28 04 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 A5 C9 91 66 0E 04 04 00 BD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 82 02 00 35 04 06 00 54 A3 8C D0 3D E0 51 A1 28 FD B2 6F F6 1D [00:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7D E1 47 00 36 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 82 02 00 F4 03 04 00 37 70 91 66 B6 04 01 00 00 1D 18 64 19 85 1C 7F FA [00:26:13]CommunicateWithHost err = 0 [00:26:13]CheckOFDResponse [00:26:13]1017 (14) - 77093643461234 [00:26:13]1041 (16) - 0000000000874718 [00:26:13]1040 (4) - 164437 [00:26:13]1012 (4) - 12.07.2024 18:04 [00:26:13]1206 (1) - 0 [00:26:13]OFD Sender: Remove packet 164437 [00:26:13]ProducePacketName [00:26:13]name=ofd_packets/00164437 [00:26:13]NVStorageDeleteData [00:26:13]Write to MH i2c: 01 00 00 BE 0A C8 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: 01 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: 01 07 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: 01 07 00 BE 0A 00 00 00 00 00 02 0D DE [00:26:13]RasterBufferAndPrint [00:26:13]line [00:26:13]line [00:26:13]line [00:26:13]line [00:26:13]line [00:26:13]written 0, free lines is 3336 [00:26:13]MH_Cut [00:26:13]Write to MH i2c: D1 01 00 C5 0A 01 A1 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: D1 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: D1 01 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: D1 01 00 C5 0A 00 A0 [00:26:13]Write to MH i2c: 01 00 00 C6 0A D0 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:14]OFD Sender: No OFD packet to send [00:26:14]*** Cut start [00:26:14]*** Partial cut [00:26:14]*** CUTSNS_PIN = 1 [00:26:14]*** CUTSNS_PIN = 0 [00:26:14]*** Brake cut motor [00:26:15]Read from MH i2c: 01 [00:26:15]MH_I2C_Read... [00:26:15]*** Stop cut motor [00:26:15]*** Cut end [00:26:15]Read from MH i2c: 01 07 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: 01 07 00 C6 0A 00 00 00 00 00 FF 0F E5 [00:26:15]process_action close_receipt done [00:26:15]requested_data is exist [00:26:15]produce_requested_data [00:26:15]requested_item fm.sn is exist - process it [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 11 00 00 [00:26:15]Write to MH i2c: E2 08 00 C7 0A 80 11 00 00 00 00 00 00 4B [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 17 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 17 00 C7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [00:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:26:15]wFMCommunicate OK [00:26:15]requested_item fd.num is exist - process it [00:26:15]SAM_PROTO_GetFieldsCounters [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 13 00 00 [00:26:15]Write to MH i2c: E2 08 00 C8 0A 80 13 00 00 00 00 00 00 4E [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 62 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 62 00 C8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [00:26: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:15]wFMCommunicate OK [00:26:15]SAM_PROTO_GetFieldsCounters done [00:26:15]requested_item shift.num is exist - process it [00:26:15]requested_item shift.opened is exist - process it [00:26:15]req_shift_opened [00:26:15]FM_GetShiftState [00:26:15]SAM_PROTO_GetShiftState [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 13 01 00 [00:26:15]Write to MH i2c: E2 08 00 C9 0A 80 13 01 00 00 00 00 00 50 [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 0E 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 0E 00 C9 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9A [00:26:15]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [00:26:15]wFMCommunicate OK [00:26:15]SAM_PROTO_GetShiftState done [00:26:15]FM_GetShiftState done [00:26:15]req_shift_opened done [00:26:15]requested_item shift.open_date is exist - process it [00:26:15]req_shift_open_date [00:26:15]req_shift_open_date done [00:26:15]produce_requested_data done [00:26:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164437,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [00:26:15]process_action_free close_receipt [00:26:15]json_value_free [00:26:15]json_value_free done [00:26:15]process_json_proto returns [00:26:15]Send response to host [00:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164437,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [00:26:15]free response buf [00:26:15]execute_script done [00:26:15]execute_script returns [00:26:15]free content buf [00:26:15]Sock 9.Close socket [00:26:15]Sock 9.Thread stoped [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:47]accept exits with 7 [00:28:47]New connection [00:28:47]New thread 3067489636 created [00:28:47]Thread 3067632996 joined [00:28:47]Waiting for new connection... [00:28:47] Sock 7.Parse request [00:28:47]Sock 7.Check first char [00:28:47]Sock 7.First char is OK [00:28:47]request: POST /json_proto HTTP/1.0 [00:28:47]Method: POST [00:28:47]URL: /json_proto [00:28:47]Method is POST - this is cgi request [00:28:47]url: /json_proto [00:28:47]query_string will be loaded in cgi processing [00:28:47]execute_cgi json_proto POST (null) [00:28:47]execute_cgi path=json_proto method=POST [00:28:47]POST find Content-Length [00:28:47]Host: 172.17.56.4:8080 [00:28:47]Content-Length: 843 [00:28:47]Content-Type: application/json [00:28:47] [00:28:47]POST finish read [00:28:47]Found Content-Length = 843 [00:28:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:47]execute_script... [00:28:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:47]POST & json_proto [00:28:47]process_json_proto [00:28:47]json parsed OK: [00:28:47]protocol is kg_v1.0 [00:28:47]action value=close_receipt [00:28:47]process_action close_receipt [00:28:47]cmd_close_receipt [00:28:47]MH_GetDate [00:28:47]Write to MH i2c: F0 00 00 CA 0A C3 [00:28:47]Write i2c OK [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: F0 [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: F0 09 00 [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: F0 09 00 CA 0A 00 40 CA 91 66 C9 DC B2 64 88 [00:28:47]GetLastDocTimeStamp 1720830373 [00:28:47]current date 1720830528 [00:28:47]FM_GetShiftState [00:28:47]SAM_PROTO_GetShiftState [00:28:47]wFMCommunicate request_size=4 [00:28:47]MH_SAM_APDU [00:28:47]CAPDU: 80 13 01 00 [00:28:47]Write to MH i2c: E2 08 00 CB 0A 80 13 01 00 00 00 00 00 52 [00:28:47]Write i2c OK [00:28:47]MH_I2C_Read... [00:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:47]Read from MH i2c: E2 [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: E2 0E 00 [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: E2 0E 00 CB 0A 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 9C [00:28:47]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [00:28:47]wFMCommunicate OK [00:28:47]SAM_PROTO_GetShiftState done [00:28:47]FM_GetShiftState done [00:28:47]opened in 1720744654 [00:28:47]opened+sec_in_day 1720831054 [00:28:47]quantity*price = 100047 [00:28:47]sum+1 = 100048 [00:28:47]Check (price>sum+1) || (price+1 о реализуемом товаре [00:38:34]line ИТОГО: 1000.47 [00:38:34]line НСП 1% : 8.85 [00:38:34]line НДС 12% : 106.24 [00:38:34]line Наличными: 0.00 [00:38:34]line Безнал.: 1000.47 [00:38:34]line Место: АЗС № 72 "Партнер Нефть" [00:38:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:38:34]line СНО: Общий режим [00:38:34]line Чек 359 13.07.2024 00:28 [00:38:34]line Смена: 445 ФФД: 1.0 [00:38:34]line ЗНМ: 0300000160 [00:38:34]line РНМ: 0000000000090829 [00:38:34]line Версия ККМ: 001 [00:38:34]line Платежная система: АКБ Кыргызстан [00:38:34]line ФМ: 0000000000874718 [00:38:34]line ФД: 164438 [00:38:34]line ФПД: 33972295029870 [00:38:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T002848&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164438&fm=33972295029870&tin=02508201610067®Number=0000000000090829&sum=100047 [00:38:34]written 0, free lines is 4095 [00:38:35]Write to MH i2c: 01 00 00 46 00 46 [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: 01 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: 01 07 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 14 0D 6E [00:38:35]RasterBufferAndPrint [00:38:35]line [00:38:35]line [00:38:35]line [00:38:35]line [00:38:35]line [00:38:35]written 0, free lines is 3363 [00:38:35]MH_Cut [00:38:35]Write to MH i2c: D1 01 00 4D 00 01 1F [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: D1 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: D1 01 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: D1 01 00 4D 00 00 1E [00:38:35]Write to MH i2c: 01 00 00 4E 00 4E [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]*** Cut start [00:38:35]*** Partial cut [00:38:35]*** CUTSNS_PIN = 1 [00:38:35]*** CUTSNS_PIN = 0 [00:38:36]*** Brake cut motor [00:38:36]Read from MH i2c: 01 [00:38:36]MH_I2C_Read... [00:38:36]*** Stop cut motor [00:38:36]*** Cut end [00:38:36]Read from MH i2c: 01 07 00 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 FF 0F 63 [00:38:36]process_action print_doc done [00:38:36]requested_data is exist [00:38:36]produce_requested_data [00:38:36]produce_requested_data return (null) [00:38:36]process_action_free print_doc [00:38:36]json_value_free [00:38:36]json_value_free done [00:38:36]process_json_proto returns [00:38:36]Send response to host [00:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [00:38:36]free response buf [00:38:36]execute_script done [00:38:36]execute_script returns [00:38:36]free content buf [00:38:36]Sock 9.Close socket [00:38:36]Sock 9.Thread stoped [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:05]accept exits with 5 [00:39:05]New connection [00:39:05]New thread 3066936676 created [00:39:05]Thread 3067080036 joined [00:39:05]Waiting for new connection... [00:39:05] Sock 5.Parse request [00:39:05]Sock 5.Check first char [00:39:05]Sock 5.First char is OK [00:39:05]request: POST /json_proto HTTP/1.0 [00:39:05]Method: POST [00:39:05]URL: /json_proto [00:39:05]Method is POST - this is cgi request [00:39:05]url: /json_proto [00:39:05]query_string will be loaded in cgi processing [00:39:05]execute_cgi json_proto POST (null) [00:39:05]execute_cgi path=json_proto method=POST [00:39:05]POST find Content-Length [00:39:05]Host: 172.17.56.4:8080 [00:39:05]Content-Length: 215 [00:39:05]Content-Type: application/json [00:39:05] [00:39:05]POST finish read [00:39:05]Found Content-Length = 215 [00:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:05]execute_script... [00:39:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:05]POST & json_proto [00:39:05]process_json_proto [00:39:05]json parsed OK: [00:39:05]protocol is kg_v1.0 [00:39:05]action value=get_value [00:39:05]process_action get_value [00:39:05]cmd_get_value [00:39:05]process_action get_value done [00:39:05]requested_data is exist [00:39:05]produce_requested_data [00:39:05]requested_item kkm.sn is exist - process it [00:39:05]requested_item kkm.ver is exist - process it [00:39:05]requested_item fm.sn is exist - process it [00:39:05]wFMCommunicate request_size=4 [00:39:05]MH_SAM_APDU [00:39:05]CAPDU: 80 11 00 00 [00:39:05]Write to MH i2c: E2 08 00 4F 00 80 11 00 00 00 00 00 00 C9 [00:39:05]Write i2c OK [00:39:05]MH_I2C_Read... [00:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:05]Read from MH i2c: E2 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 17 00 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 17 00 4F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [00:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:39:05]wFMCommunicate OK [00:39:05]requested_item fd.num is exist - process it [00:39:05]SAM_PROTO_GetFieldsCounters [00:39:05]wFMCommunicate request_size=4 [00:39:05]MH_SAM_APDU [00:39:05]CAPDU: 80 13 00 00 [00:39:05]Write to MH i2c: E2 08 00 50 00 80 13 00 00 00 00 00 00 CC [00:39:05]Write i2c OK [00:39:05]MH_I2C_Read... [00:39:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:05]Read from MH i2c: E2 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 62 00 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 62 00 50 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [00:39:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:05]wFMCommunicate OK [00:39:05]SAM_PROTO_GetFieldsCounters done [00:39:05]requested_item shift.num is exist - process it [00:39:05]requested_item shift.opened is exist - process it [00:39:05]req_shift_opened [00:39:05]FM_GetShiftState [00:39:05]SAM_PROTO_GetShiftState [00:39:05]wFMCommunicate request_size=4 [00:39:05]MH_SAM_APDU [00:39:05]CAPDU: 80 13 01 00 [00:39:05]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [00:39:05]Write i2c OK [00:39:05]MH_I2C_Read... [00:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:05]Read from MH i2c: E2 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 0E 00 [00:39:05]MH_I2C_Read... [00:39:05]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 18 [00:39:05]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [00:39:05]wFMCommunicate OK [00:39:05]SAM_PROTO_GetShiftState done [00:39:05]FM_GetShiftState done [00:39:05]req_shift_opened done [00:39:05]requested_item shift.open_date is exist - process it [00:39:05]req_shift_open_date [00:39:05]req_shift_open_date done [00:39:05]produce_requested_data done [00:39:05]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164438,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654} [00:39:05]process_action_free get_value [00:39:05]json_value_free [00:39:05]json_value_free done [00:39:05]process_json_proto returns [00:39:05]Send response to host [00:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164438,"shift.num":445,"shift.opened":1,"shift.open_date":1720744654}}} [00:39:05]free response buf [00:39:05]execute_script done [00:39:05]execute_script returns [00:39:05]free content buf [00:39:05]Sock 5.Close socket [00:39:05]Sock 5.Thread stoped [00:39:05]accept exits with 9 [00:39:05]New connection [00:39:05]New thread 3067080036 created [00:39:05]Thread 3066936676 joined [00:39:05]Waiting for new connection... [00:39:05] Sock 9.Parse request [00:39:05]Sock 9.Check first char [00:39:05]Sock 9.First char is OK [00:39:05]request: POST /json_proto HTTP/1.0 [00:39:05]Method: POST [00:39:05]URL: /json_proto [00:39:05]Method is POST - this is cgi request [00:39:05]url: /json_proto [00:39:05]query_string will be loaded in cgi processing [00:39:05]execute_cgi json_proto POST (null) [00:39:05]execute_cgi path=json_proto method=POST [00:39:05]POST find Content-Length [00:39:05]Host: 172.17.56.4:8080 [00:39:05]Content-Length: 331 [00:39:05]Content-Type: application/json [00:39:05] [00:39:05]POST finish read [00:39:05]Found Content-Length = 331 [00:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:39:05]execute_script... [00:39:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:39:05]POST & json_proto [00:39:05]process_json_proto [00:39:05]json parsed OK: [00:39:05]protocol is kg_v1.0 [00:39:05]action value=get_value [00:39:05]process_action get_value [00:39:05]cmd_get_value [00:39:05]process_action get_value done [00:39:05]requested_data is exist [00:39:05]produce_requested_data [00:39:05]requested_item fm.sale.total is exist - process it [00:39:05]SAM_PROTO_GetFMData [00:39:05]wFMCommunicate request_size=4 [00:39:05]MH_SAM_APDU [00:39:05]CAPDU: 80 13 03 00 [00:39:05]Write to MH i2c: E2 08 00 52 00 80 13 03 00 00 00 00 00 D1 [00:39:05]Write i2c OK [00:39:05]MH_I2C_Read... [00:39:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:39:06]Read from MH i2c: E2 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 FD 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 FD 00 52 00 00 C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 73 [00:39:06]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 [00:39:06]wFMCommunicate OK [00:39:06]wFMCommunicate request_size=4 [00:39:06]MH_SAM_APDU [00:39:06]CAPDU: 80 17 00 00 [00:39:06]Write to MH i2c: E2 08 00 53 00 80 17 00 00 00 00 00 00 D3 [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:06]Read from MH i2c: E2 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 FD 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 FD 00 53 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 1C [00:39:06]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:39:06]wFMCommunicate OK [00:39:06]wFMCommunicate request_size=4 [00:39:06]MH_SAM_APDU [00:39:06]CAPDU: 80 17 00 00 [00:39:06]Write to MH i2c: E2 08 00 54 00 80 17 00 00 00 00 00 00 D4 [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:06]Read from MH i2c: E2 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 FD 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 FD 00 54 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 E9 [00:39:06]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:39:06]wFMCommunicate OK [00:39:06]wFMCommunicate request_size=4 [00:39:06]MH_SAM_APDU [00:39:06]CAPDU: 80 17 00 00 [00:39:06]Write to MH i2c: E2 08 00 55 00 80 17 00 00 00 00 00 00 D5 [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:06]Read from MH i2c: E2 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 FD 00 [00:39:06]MH_I2C_Read... [00:39:06]Read from MH i2c: E2 FD 00 55 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 4D [00:39:06]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:39:06]wFMCommunicate OK [00:39:06]wFMCommunicate request_size=4 [00:39:06]MH_SAM_APDU [00:39:06]CAPDU: 80 17 00 00 [00:39:06]Write to MH i2c: E2 08 00 56 00 80 17 00 00 00 00 00 00 D6 [00:39:06]Write i2c OK [00:39:06]MH_I2C_Read... [00:39:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:39:07]Read from MH i2c: E2 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 E1 00 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 E1 00 56 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C4 [00:39:07]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:07]wFMCommunicate OK [00:39:07]SAM_PROTO_GetFMData done [00:39:07]requested_item fm.sale_refund.total is exist - process it [00:39:07]requested_item fm.buy.total is exist - process it [00:39:07]requested_item shift.sale.total is exist - process it [00:39:07]SAM_PROTO_GetShiftData [00:39:07]wFMCommunicate request_size=4 [00:39:07]MH_SAM_APDU [00:39:07]CAPDU: 80 13 02 00 [00:39:07]Write to MH i2c: E2 08 00 57 00 80 13 02 00 00 00 00 00 D5 [00:39:07]Write i2c OK [00:39:07]MH_I2C_Read... [00:39:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:39:07]Read from MH i2c: E2 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 FD 00 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 FD 00 57 00 00 B9 04 AA 04 B5 04 6E 04 04 00 67 01 00 00 69 04 9E 00 6F 04 04 00 66 01 00 00 B1 04 04 00 C2 2E 82 01 70 04 04 00 24 F4 45 01 72 04 03 00 9E 3A 3C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 05 29 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 EF 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 14 [00:39:07]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 01 00 00 69 04 9E 00 6F 04 04 00 66 01 00 00 B1 04 04 00 C2 2E 82 01 70 04 04 00 24 F4 45 01 72 04 03 00 9E 3A 3C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 05 29 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 EF 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:39:07]wFMCommunicate OK [00:39:07]wFMCommunicate request_size=4 [00:39:07]MH_SAM_APDU [00:39:07]CAPDU: 80 17 00 00 [00:39:07]Write to MH i2c: E2 08 00 58 00 80 17 00 00 00 00 00 00 D8 [00:39:07]Write i2c OK [00:39:07]MH_I2C_Read... [00:39:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:07]Read from MH i2c: E2 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 FD 00 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 FD 00 58 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 A1 [00:39:07]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:39:07]wFMCommunicate OK [00:39:07]wFMCommunicate request_size=4 [00:39:07]MH_SAM_APDU [00:39:07]CAPDU: 80 17 00 00 [00:39:07]Write to MH i2c: E2 08 00 59 00 80 17 00 00 00 00 00 00 D9 [00:39:07]Write i2c OK [00:39:07]MH_I2C_Read... [00:39:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:08]Read from MH i2c: E2 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 FD 00 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 FD 00 59 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 01 [00:39:08]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:39:08]wFMCommunicate OK [00:39:08]wFMCommunicate request_size=4 [00:39:08]MH_SAM_APDU [00:39:08]CAPDU: 80 17 00 00 [00:39:08]Write to MH i2c: E2 08 00 5A 00 80 17 00 00 00 00 00 00 DA [00:39:08]Write i2c OK [00:39:08]MH_I2C_Read... [00:39:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:08]Read from MH i2c: E2 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 FD 00 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 FD 00 5A 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 52 [00:39:08]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:39:08]wFMCommunicate OK [00:39:08]wFMCommunicate request_size=4 [00:39:08]MH_SAM_APDU [00:39:08]CAPDU: 80 17 00 00 [00:39:08]Write to MH i2c: E2 08 00 5B 00 80 17 00 00 00 00 00 00 DB [00:39:08]Write i2c OK [00:39:08]MH_I2C_Read... [00:39:08]OFD Sender: No OFD packet to send [00:39:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:39:08]Read from MH i2c: E2 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 D6 00 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 D6 00 5B 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BD [00:39:08]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:08]wFMCommunicate OK [00:39:08]SAM_PROTO_GetShiftData done [00:39:08]requested_item shift.sale.total_cash is exist - process it [00:39:08]requested_item shift.sale_refund.total is exist - process it [00:39:08]requested_item shift.sale_refund.total_cash is exist - process it [00:39:08]requested_item shift.buy.total is exist - process it [00:39:08]requested_item shift.buy.total_cash is exist - process it [00:39:08]produce_requested_data done [00:39:08]produce_requested_data return {"fm.sale.total":100436032.93,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":253088.66,"shift.sale.total_cash":213617.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:39:08]process_action_free get_value [00:39:08]json_value_free [00:39:08]json_value_free done [00:39:08]process_json_proto returns [00:39:08]Send response to host [00:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100436032.93,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":253088.66,"shift.sale.total_cash":213617.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:39:08]free response buf [00:39:08]execute_script done [00:39:08]execute_script returns [00:39:08]free content buf [00:39:08]Sock 9.Close socket [00:39:08]Sock 9.Thread stoped [00:39:08]accept exits with 5 [00:39:08]New connection [00:39:08]New thread 3066936676 created [00:39:08]Thread 3067080036 joined [00:39:08]Waiting for new connection... [00:39:08] Sock 5.Parse request [00:39:08]Sock 5.Check first char [00:39:08]Sock 5.First char is OK [00:39:08]request: POST /json_proto HTTP/1.0 [00:39:08]Method: POST [00:39:08]URL: /json_proto [00:39:08]Method is POST - this is cgi request [00:39:08]url: /json_proto [00:39:08]query_string will be loaded in cgi processing [00:39:08]execute_cgi json_proto POST (null) [00:39:08]execute_cgi path=json_proto method=POST [00:39:08]POST find Content-Length [00:39:08]Host: 172.17.56.4:8080 [00:39:08]Content-Length: 331 [00:39:08]Content-Type: application/json [00:39:08] [00:39:08]POST finish read [00:39:08]Found Content-Length = 331 [00:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:39:08]execute_script... [00:39:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:39:08]POST & json_proto [00:39:08]process_json_proto [00:39:08]json parsed OK: [00:39:08]protocol is kg_v1.0 [00:39:08]action value=get_value [00:39:08]process_action get_value [00:39:08]cmd_get_value [00:39:08]process_action get_value done [00:39:08]requested_data is exist [00:39:08]produce_requested_data [00:39:08]requested_item fm.sale.total is exist - process it [00:39:08]SAM_PROTO_GetFMData [00:39:08]wFMCommunicate request_size=4 [00:39:08]MH_SAM_APDU [00:39:08]CAPDU: 80 13 03 00 [00:39:08]Write to MH i2c: E2 08 00 5C 00 80 13 03 00 00 00 00 00 DB [00:39:08]Write i2c OK [00:39:08]MH_I2C_Read... [00:39:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:39:09]Read from MH i2c: E2 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 FD 00 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 FD 00 5C 00 00 C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 7D [00:39:09]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 [00:39:09]wFMCommunicate OK [00:39:09]wFMCommunicate request_size=4 [00:39:09]MH_SAM_APDU [00:39:09]CAPDU: 80 17 00 00 [00:39:09]Write to MH i2c: E2 08 00 5D 00 80 17 00 00 00 00 00 00 DD [00:39:09]Write i2c OK [00:39:09]MH_I2C_Read... [00:39:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:09]Read from MH i2c: E2 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 FD 00 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 FD 00 5D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 26 [00:39:09]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:39:09]wFMCommunicate OK [00:39:09]wFMCommunicate request_size=4 [00:39:09]MH_SAM_APDU [00:39:09]CAPDU: 80 17 00 00 [00:39:09]Write to MH i2c: E2 08 00 5E 00 80 17 00 00 00 00 00 00 DE [00:39:09]Write i2c OK [00:39:09]MH_I2C_Read... [00:39:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:10]Read from MH i2c: E2 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 5E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 F3 [00:39:10]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:39:10]wFMCommunicate OK [00:39:10]wFMCommunicate request_size=4 [00:39:10]MH_SAM_APDU [00:39:10]CAPDU: 80 17 00 00 [00:39:10]Write to MH i2c: E2 08 00 5F 00 80 17 00 00 00 00 00 00 DF [00:39:10]Write i2c OK [00:39:10]MH_I2C_Read... [00:39:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:10]Read from MH i2c: E2 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 5F 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 57 [00:39:10]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:39:10]wFMCommunicate OK [00:39:10]wFMCommunicate request_size=4 [00:39:10]MH_SAM_APDU [00:39:10]CAPDU: 80 17 00 00 [00:39:10]Write to MH i2c: E2 08 00 60 00 80 17 00 00 00 00 00 00 E0 [00:39:10]Write i2c OK [00:39:10]MH_I2C_Read... [00:39:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:39:10]Read from MH i2c: E2 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 E1 00 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 E1 00 60 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CE [00:39:10]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:10]wFMCommunicate OK [00:39:10]SAM_PROTO_GetFMData done [00:39:10]requested_item fm.sale_refund.total is exist - process it [00:39:10]requested_item fm.buy.total is exist - process it [00:39:10]requested_item shift.sale.total is exist - process it [00:39:10]SAM_PROTO_GetShiftData [00:39:10]wFMCommunicate request_size=4 [00:39:10]MH_SAM_APDU [00:39:10]CAPDU: 80 13 02 00 [00:39:10]Write to MH i2c: E2 08 00 61 00 80 13 02 00 00 00 00 00 DF [00:39:10]Write i2c OK [00:39:10]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 FD 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 FD 00 61 00 00 B9 04 AA 04 B5 04 6E 04 04 00 67 01 00 00 69 04 9E 00 6F 04 04 00 66 01 00 00 B1 04 04 00 C2 2E 82 01 70 04 04 00 24 F4 45 01 72 04 03 00 9E 3A 3C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 05 29 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 EF 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 1E [00:39:11]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 01 00 00 69 04 9E 00 6F 04 04 00 66 01 00 00 B1 04 04 00 C2 2E 82 01 70 04 04 00 24 F4 45 01 72 04 03 00 9E 3A 3C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 05 29 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 EF 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:39:11]wFMCommunicate OK [00:39:11]wFMCommunicate request_size=4 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 17 00 00 [00:39:11]Write to MH i2c: E2 08 00 62 00 80 17 00 00 00 00 00 00 E2 [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 FD 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 FD 00 62 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 AB [00:39:11]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:39:11]wFMCommunicate OK [00:39:11]wFMCommunicate request_size=4 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 17 00 00 [00:39:11]Write to MH i2c: E2 08 00 63 00 80 17 00 00 00 00 00 00 E3 [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:12]Read from MH i2c: E2 [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: E2 FD 00 [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: E2 FD 00 63 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 0B [00:39:12]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:39:12]wFMCommunicate OK [00:39:12]wFMCommunicate request_size=4 [00:39:12]MH_SAM_APDU [00:39:12]CAPDU: 80 17 00 00 [00:39:12]Write to MH i2c: E2 08 00 64 00 80 17 00 00 00 00 00 00 E4 [00:39:12]Write i2c OK [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: E2 [00:39:12]MH_I2C_Read... [00:39:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:12]Read from MH i2c: E2 FD 00 [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: E2 FD 00 64 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 5C [00:39:12]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:39:12]wFMCommunicate OK [00:39:12]wFMCommunicate request_size=4 [00:39:12]MH_SAM_APDU [00:39:12]CAPDU: 80 17 00 00 [00:39:12]Write to MH i2c: E2 08 00 65 00 80 17 00 00 00 00 00 00 E5 [00:39:12]Write i2c OK [00:39:12]MH_I2C_Read... [00:39:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:39:12]Read from MH i2c: E2 [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: E2 D6 00 [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: E2 D6 00 65 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C7 [00:39:12]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:12]wFMCommunicate OK [00:39:12]SAM_PROTO_GetShiftData done [00:39:12]requested_item shift.sale.total_cash is exist - process it [00:39:12]requested_item shift.sale_refund.total is exist - process it [00:39:12]requested_item shift.sale_refund.total_cash is exist - process it [00:39:12]requested_item shift.buy.total is exist - process it [00:39:12]requested_item shift.buy.total_cash is exist - process it [00:39:12]produce_requested_data done [00:39:12]produce_requested_data return {"fm.sale.total":100436032.93,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":253088.66,"shift.sale.total_cash":213617.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:39:12]process_action_free get_value [00:39:12]json_value_free [00:39:12]json_value_free done [00:39:12]process_json_proto returns [00:39:12]Send response to host [00:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100436032.93,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":253088.66,"shift.sale.total_cash":213617.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:39:12]free response buf [00:39:12]execute_script done [00:39:12]execute_script returns [00:39:12]free content buf [00:39:12]Sock 5.Close socket [00:39:12]Sock 5.Thread stoped [00:39:12]accept exits with 10 [00:39:12]New connection [00:39:12]New thread 3067080036 created [00:39:12]Thread 3066936676 joined [00:39:12]Waiting for new connection... [00:39:12] Sock 10.Parse request [00:39:12]Sock 10.Check first char [00:39:12]Sock 10.First char is OK [00:39:12]request: POST /json_proto HTTP/1.0 [00:39:12]Method: POST [00:39:12]URL: /json_proto [00:39:12]Method is POST - this is cgi request [00:39:12]url: /json_proto [00:39:12]query_string will be loaded in cgi processing [00:39:12]execute_cgi json_proto POST (null) [00:39:12]execute_cgi path=json_proto method=POST [00:39:12]POST find Content-Length [00:39:12]Host: 172.17.56.4:8080 [00:39:12]Content-Length: 251 [00:39:12]Content-Type: application/json [00:39:12] [00:39:12]POST finish read [00:39:12]Found Content-Length = 251 [00:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:12]execute_script... [00:39:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:12]POST & json_proto [00:39:12]process_json_proto [00:39:12]json parsed OK: [00:39:12]protocol is kg_v1.0 [00:39:12]action value=x_report [00:39:12]process_action x_report [00:39:12]cmd_x_report [00:39:12]MH_GetDate [00:39:12]Write to MH i2c: F0 00 00 66 00 55 [00:39:12]Write i2c OK [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: F0 [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: F0 09 00 [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: F0 09 00 66 00 00 B1 CC 91 66 C9 DC B2 64 8D [00:39:13]GetLastDocTimeStamp 1720830528 [00:39:13]current date 1720831153 [00:39:13]FM_GetShiftState [00:39:13]SAM_PROTO_GetShiftState [00:39:13]wFMCommunicate request_size=4 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 13 01 00 [00:39:13]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 0E 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 CE 7A 90 66 00 00 00 00 90 00 2E [00:39:13]RAPDU: 09 00 01 CE 7A 90 66 00 00 00 00 90 00 [00:39:13]wFMCommunicate OK [00:39:13]SAM_PROTO_GetShiftState done [00:39:13]FM_GetShiftState done [00:39:13]KKMCreateXReportDocument [00:39:13]Load OK [00:39:13]Malloc new data [00:39:13]MH_GetDate [00:39:13]Write to MH i2c: F0 00 00 68 00 57 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: F0 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: F0 09 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: F0 09 00 68 00 00 B1 CC 91 66 C9 DC B2 64 8F [00:39:13]Malloc new data [00:39:13]Malloc new data [00:39:13]wFMCommunicate request_size=4 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 11 00 00 [00:39:13]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 17 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 39 [00:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:39:13]wFMCommunicate OK [00:39:13]SAM_PROTO_GetFieldsCounters [00:39:13]wFMCommunicate request_size=4 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 13 00 00 [00:39:13]Write to MH i2c: E2 08 00 6A 00 80 13 00 00 00 00 00 00 E6 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 62 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 62 00 6A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:13]wFMCommunicate OK [00:39:13]SAM_PROTO_GetFieldsCounters done [00:39:13]Malloc new data [00:39:13]Malloc new data [00:39:13]Malloc new data [00:39:13]KKMCreateXReportDocument OK [00:39:13]KKMSetXReportData OK [00:39:13]KKMPrepareXReportFMData [00:39:13]SAM_PROTO_GetShiftData [00:39:13]wFMCommunicate request_size=4 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 13 02 00 [00:39:13]Write to MH i2c: E2 08 00 6B 00 80 13 02 00 00 00 00 00 E9 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]OFD Sender: No OFD packet to send [00:39:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 FD 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 FD 00 6B 00 00 B9 04 AA 04 B5 04 6E 04 04 00 67 01 00 00 69 04 9E 00 6F 04 04 00 66 01 00 00 B1 04 04 00 C2 2E 82 01 70 04 04 00 24 F4 45 01 72 04 03 00 9E 3A 3C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 05 29 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 EF 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 28 [00:39:13]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 01 00 00 69 04 9E 00 6F 04 04 00 66 01 00 00 B1 04 04 00 C2 2E 82 01 70 04 04 00 24 F4 45 01 72 04 03 00 9E 3A 3C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 05 29 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 EF 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:39:14]wFMCommunicate OK [00:39:14]wFMCommunicate request_size=4 [00:39:14]MH_SAM_APDU [00:39:14]CAPDU: 80 17 00 00 [00:39:14]Write to MH i2c: E2 08 00 6C 00 80 17 00 00 00 00 00 00 EC [00:39:14]Write i2c OK [00:39:14]MH_I2C_Read... [00:39:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:14]Read from MH i2c: E2 [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: E2 FD 00 [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: E2 FD 00 6C 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 B5 [00:39:14]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:39:14]wFMCommunicate OK [00:39:14]wFMCommunicate request_size=4 [00:39:14]MH_SAM_APDU [00:39:14]CAPDU: 80 17 00 00 [00:39:14]Write to MH i2c: E2 08 00 6D 00 80 17 00 00 00 00 00 00 ED [00:39:14]Write i2c OK [00:39:14]MH_I2C_Read... [00:39:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:14]Read from MH i2c: E2 [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: E2 FD 00 [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: E2 FD 00 6D 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 15 [00:39:14]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:39:14]wFMCommunicate OK [00:39:14]wFMCommunicate request_size=4 [00:39:14]MH_SAM_APDU [00:39:14]CAPDU: 80 17 00 00 [00:39:14]Write to MH i2c: E2 08 00 6E 00 80 17 00 00 00 00 00 00 EE [00:39:14]Write i2c OK [00:39:14]MH_I2C_Read... [00:39:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:15]Read from MH i2c: E2 [00:39:15]MH_I2C_Read... [00:39:15]Read from MH i2c: E2 FD 00 [00:39:15]MH_I2C_Read... [00:39:15]Read from MH i2c: E2 FD 00 6E 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 66 [00:39:15]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:39:15]wFMCommunicate OK [00:39:15]wFMCommunicate request_size=4 [00:39:15]MH_SAM_APDU [00:39:15]CAPDU: 80 17 00 00 [00:39:15]Write to MH i2c: E2 08 00 6F 00 80 17 00 00 00 00 00 00 EF [00:39:15]Write i2c OK [00:39:15]MH_I2C_Read... [00:39:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:39:15]Read from MH i2c: E2 [00:39:15]MH_I2C_Read... [00:39:15]Read from MH i2c: E2 D6 00 [00:39:15]MH_I2C_Read... [00:39:15]Read from MH i2c: E2 D6 00 6F 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D1 [00:39:15]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:15]wFMCommunicate OK [00:39:15]SAM_PROTO_GetShiftData done [00:39:15]1194 (1205) - счетчики итогов смены [00:39:15] 1134 (4) - 359 - количество чеков со всеми признаками расчетов [00:39:15] 1129 (158) - счетчики операций «приход» [00:39:15] 1135 (4) - 358 - количество чеков по признаку расчетов [00:39:15] 1201 (4) - 253088.66 - общая итоговая сумма в чеках [00:39:15] 1136 (4) - 213617.00 - итоговая сумма в чеках наличными [00:39:15] 1138 (3) - 39471.66 - итоговая сумма в чеках безналичными [00:39:15] 1024 (123) - суммы налогов [00:39:15] 1006 (9) - суммы НДС [00:39:15] 1010 (1) - 0% - код ставки НДС [00:39:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:39:15] 1006 (12) - суммы НДС [00:39:15] 1010 (1) - 12% - код ставки НДС [00:39:15] 1011 (3) - 26883.23 - сумма НДС по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 0% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (12) - суммы НСП [00:39:15] 1014 (1) - 1% - код ставки НСП [00:39:15] 1015 (3) - 2239.83 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 2% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 3% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 5% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 0,50% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 1,50% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1130 (149) - счетчики операций «возврат прихода» [00:39:15] 1135 (4) - 1 - количество чеков по признаку расчетов [00:39:15] 1201 (2) - 300.00 - общая итоговая сумма в чеках [00:39:15] 1136 (2) - 300.00 - итоговая сумма в чеках наличными [00:39:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:39:15] 1024 (121) - суммы налогов [00:39:15] 1006 (9) - суммы НДС [00:39:15] 1010 (1) - 0% - код ставки НДС [00:39:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:39:15] 1006 (11) - суммы НДС [00:39:15] 1010 (1) - 12% - код ставки НДС [00:39:15] 1011 (2) - 31.86 - сумма НДС по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 0% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (11) - суммы НСП [00:39:15] 1014 (1) - 1% - код ставки НСП [00:39:15] 1015 (2) - 2.65 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 2% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 3% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 5% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 0,50% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 1,50% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1131 (141) - счетчики операций «расход» [00:39:15] 1135 (4) - 0 - количество чеков по признаку расчетов [00:39:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:39:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:39:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:39:15] 1024 (117) - суммы налогов [00:39:15] 1006 (9) - суммы НДС [00:39:15] 1010 (1) - 0% - код ставки НДС [00:39:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:39:15] 1006 (9) - суммы НДС [00:39:15] 1010 (1) - 12% - код ставки НДС [00:39:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 0% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 1% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 2% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 3% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 5% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 0,50% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 1,50% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1132 (141) - счетчики операций «возврат расхода» [00:39:15] 1135 (4) - 0 - количество чеков по признаку расчетов [00:39:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:39:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:39:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:39:15] 1024 (117) - суммы налогов [00:39:15] 1006 (9) - суммы НДС [00:39:15] 1010 (1) - 0% - код ставки НДС [00:39:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:39:15] 1006 (9) - суммы НДС [00:39:15] 1010 (1) - 12% - код ставки НДС [00:39:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 0% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 1% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 2% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 3% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 5% - код ставки НСП [00:39:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:15] 1007 (9) - суммы НСП [00:39:15] 1014 (1) - 0,50% - код ставки НСП [00:39:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:16] 1007 (9) - суммы НСП [00:39:16] 1014 (1) - 1,50% - код ставки НСП [00:39:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:39:16] 1133 (588) - - счетчики коррекции - не используются [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1194 (04AA) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1134 (046E) [00:39:16]Malloc new data [00:39:16]Processing tag 1129 (0469) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1135 (046F) [00:39:16]Malloc new data [00:39:16]Processing tag 1201 (04B1) [00:39:16]Malloc new data [00:39:16]Processing tag 1136 (0470) [00:39:16]Malloc new data [00:39:16]Processing tag 1138 (0472) [00:39:16]Malloc new data [00:39:16]Processing tag 1024 (0400) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1006 (03EE) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1010 (03F2) [00:39:16]Malloc new data [00:39:16]Processing tag 1011 (03F3) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1006 (03EE) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1010 (03F2) [00:39:16]Malloc new data [00:39:16]Processing tag 1011 (03F3) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]SetTLVBufToDocument err=0 [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1130 (046A) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1135 (046F) [00:39:16]Malloc new data [00:39:16]Processing tag 1201 (04B1) [00:39:16]Malloc new data [00:39:16]Processing tag 1136 (0470) [00:39:16]Malloc new data [00:39:16]Processing tag 1138 (0472) [00:39:16]Malloc new data [00:39:16]Processing tag 1024 (0400) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1006 (03EE) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1010 (03F2) [00:39:16]Malloc new data [00:39:16]Processing tag 1011 (03F3) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1006 (03EE) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1010 (03F2) [00:39:16]Malloc new data [00:39:16]Processing tag 1011 (03F3) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]SetTLVBufToDocument err=0 [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1131 (046B) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1135 (046F) [00:39:16]Malloc new data [00:39:16]Processing tag 1201 (04B1) [00:39:16]Malloc new data [00:39:16]Processing tag 1136 (0470) [00:39:16]Malloc new data [00:39:16]Processing tag 1138 (0472) [00:39:16]Malloc new data [00:39:16]Processing tag 1024 (0400) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1006 (03EE) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1010 (03F2) [00:39:16]Malloc new data [00:39:16]Processing tag 1011 (03F3) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1006 (03EE) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1010 (03F2) [00:39:16]Malloc new data [00:39:16]Processing tag 1011 (03F3) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]SetTLVBufToDocument err=0 [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1132 (046C) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1135 (046F) [00:39:16]Malloc new data [00:39:16]Processing tag 1201 (04B1) [00:39:16]Malloc new data [00:39:16]Processing tag 1136 (0470) [00:39:16]Malloc new data [00:39:16]Processing tag 1138 (0472) [00:39:16]Malloc new data [00:39:16]Processing tag 1024 (0400) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1006 (03EE) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1010 (03F2) [00:39:16]Malloc new data [00:39:16]Processing tag 1011 (03F3) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1006 (03EE) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1010 (03F2) [00:39:16]Malloc new data [00:39:16]Processing tag 1011 (03F3) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1007 (03EF) [00:39:16]Load OK [00:39:16]SetTLVBufToDocument [00:39:16]Processing tag 1014 (03F6) [00:39:16]Malloc new data [00:39:16]Processing tag 1015 (03F7) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]SetTLVBufToDocument err=0 [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Processing tag 1133 (046D) [00:39:16]Malloc new data [00:39:16]SetTLVBufToDocument err=0 [00:39:16]SetTLVBufToDocument err=0 [00:39:16]Malloc new data [00:39:16]SAM_PROTO_GetFMData [00:39:16]wFMCommunicate request_size=4 [00:39:16]MH_SAM_APDU [00:39:16]CAPDU: 80 13 03 00 [00:39:16]Write to MH i2c: E2 08 00 70 00 80 13 03 00 00 00 00 00 EF [00:39:16]Write i2c OK [00:39:16]MH_I2C_Read... [00:39:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:39:17]Read from MH i2c: E2 [00:39:17]MH_I2C_Read... [00:39:17]Read from MH i2c: E2 FD 00 [00:39:17]MH_I2C_Read... [00:39:17]Read from MH i2c: E2 FD 00 70 00 00 C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 91 [00:39:17]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 [00:39:17]wFMCommunicate OK [00:39:17]wFMCommunicate request_size=4 [00:39:17]MH_SAM_APDU [00:39:17]CAPDU: 80 17 00 00 [00:39:17]Write to MH i2c: E2 08 00 71 00 80 17 00 00 00 00 00 00 F1 [00:39:17]Write i2c OK [00:39:17]MH_I2C_Read... [00:39:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:17]Read from MH i2c: E2 [00:39:17]MH_I2C_Read... [00:39:17]Read from MH i2c: E2 FD 00 [00:39:17]MH_I2C_Read... [00:39:17]Read from MH i2c: E2 FD 00 71 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 3A [00:39:17]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:39:18]wFMCommunicate OK [00:39:18]wFMCommunicate request_size=4 [00:39:18]MH_SAM_APDU [00:39:18]CAPDU: 80 17 00 00 [00:39:18]Write to MH i2c: E2 08 00 72 00 80 17 00 00 00 00 00 00 F2 [00:39:18]Write i2c OK [00:39:18]MH_I2C_Read... [00:39:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:18]Read from MH i2c: E2 [00:39:18]MH_I2C_Read... [00:39:18]Read from MH i2c: E2 FD 00 [00:39:18]MH_I2C_Read... [00:39:18]Read from MH i2c: E2 FD 00 72 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 07 [00:39:18]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:39:18]wFMCommunicate OK [00:39:18]wFMCommunicate request_size=4 [00:39:18]MH_SAM_APDU [00:39:18]CAPDU: 80 17 00 00 [00:39:18]Write to MH i2c: E2 08 00 73 00 80 17 00 00 00 00 00 00 F3 [00:39:18]Write i2c OK [00:39:18]MH_I2C_Read... [00:39:18]OFD Sender: No OFD packet to send [00:39:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:18]Read from MH i2c: E2 [00:39:18]MH_I2C_Read... [00:39:18]Read from MH i2c: E2 FD 00 [00:39:18]MH_I2C_Read... [00:39:18]Read from MH i2c: E2 FD 00 73 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 6B [00:39:18]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:39:19]wFMCommunicate OK [00:39:19]wFMCommunicate request_size=4 [00:39:19]MH_SAM_APDU [00:39:19]CAPDU: 80 17 00 00 [00:39:19]Write to MH i2c: E2 08 00 74 00 80 17 00 00 00 00 00 00 F4 [00:39:19]Write i2c OK [00:39:19]MH_I2C_Read... [00:39:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:39:19]Read from MH i2c: E2 [00:39:19]MH_I2C_Read... [00:39:19]Read from MH i2c: E2 E1 00 [00:39:19]MH_I2C_Read... [00:39:19]Read from MH i2c: E2 E1 00 74 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E2 [00:39:19]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:19]wFMCommunicate OK [00:39:19]SAM_PROTO_GetFMData done [00:39:19]FM_GetFMData:85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 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 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:39:20]oper:6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:39:20]total:5D 39 A5 56 02 [00:39:20]Malloc new data [00:39:20]oper:6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 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 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:39:20]total:5C E3 44 03 [00:39:20]Malloc new data [00:39:20]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:39:20]total: [00:39:20]Malloc new data [00:39:20]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:39:20]total: [00:39:20]Malloc new data [00:39:20]KKMPrepareXReportFMData err=0 [00:39:20]Х отчет ИНН: 02508201610067 Кассир: Садыков Н. 13.07.2024 00:39 Смена: 266 РНМ: 0000000000090829 ЗНМ: 0300000160 СНО: Общий режим Всего чеков: 359 ИТОГИ ПРИХОД Чеков: 358 Общий итог: 253088.66 Итого наличными: 213617.00 Итого безнал.: 39471.66 НДС 0% : 0.00 НДС 12% : 26883.23 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2239.83 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 300.00 Итого наличными: 300.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 31.86 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2.65 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 213317.00 НС Приход: 100436032.93 НС Возвр.Прихода: 548463.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874718 [00:39:20]StoreToDocumentArchive [00:39:20]MH_GetDate [00:39:20]Write to MH i2c: F0 00 00 75 00 64 [00:39:20]Write i2c OK [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: F0 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: F0 09 00 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: F0 09 00 75 00 00 B9 CC 91 66 C9 DC B2 64 A4 [00:39:20]shift 266 fd 1720831161 [00:39:20]Create dir for shift 0266 [00:39:20]save to /storage/0266/doc_1720831161 [00:39:20]save last doc name /storage/0266/doc_1720831161 to /storage/kkm_last_doc_name [00:39:20]save OK [00:39:20]Clear old archive folders... [00:39:20]NVStorageSaveData kkm_last_timestamp [00:39:20]File name is /storage/kkm_last_timestamp [00:39:20]Write 4 bytes [00:39:20]NVStorageSaveData done [00:39:20]ExternCall_PrintAddStr [00:39:20]wPrintStart [00:39:20]Write to MH i2c: 01 00 00 76 00 76 [00:39:20]Write i2c OK [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: 01 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: 01 07 00 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: 01 07 00 76 00 00 00 00 00 00 FF 0F 8B [00:39:20]RasterBufferAndPrint [00:39:20]line Х отчет [00:39:20]line ИНН: 02508201610067 [00:39:20]line Кассир: Садыков Н. [00:39:20]line 13.07.2024 00:39 [00:39:20]line Смена: 266 [00:39:20]line РНМ: 0000000000090829 [00:39:20]line ЗНМ: 0300000160 [00:39:20]line СНО: Общий режим [00:39:20]line Всего чеков: 359 [00:39:20]line ИТОГИ ПРИХОД [00:39:20]line Чеков: 358 [00:39:20]line Общий итог: 253088.66 [00:39:20]line Итого наличными: 213617.00 [00:39:20]line Итого безнал.: 39471.66 [00:39:20]line НДС 0% : 0.00 [00:39:20]line НДС 12% : 26883.23 [00:39:20]line НСП 0% : 0.00 [00:39:20]line НСП 1,50% : 0.00 [00:39:20]line НСП 0,50% : 0.00 [00:39:20]line НСП 5% : 0.00 [00:39:20]line НСП 3% : 0.00 [00:39:20]line НСП 2% : 0.00 [00:39:20]line НСП 1% : 2239.83 [00:39:20]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:39:20]line Чеков: 1 [00:39:20]line Общий итог: 300.00 [00:39:20]line Итого наличными: 300.00 [00:39:20]line Итого безнал.: 0.00 [00:39:20]line НДС 0% : 0.00 [00:39:20]line НДС 12% : 31.86 [00:39:20]line НСП 0% : 0.00 [00:39:20]line НСП 1,50% : 0.00 [00:39:20]line НСП 0,50% : 0.00 [00:39:20]line НСП 5% : 0.00 [00:39:20]line НСП 3% : 0.00 [00:39:20]line НСП 2% : 0.00 [00:39:20]line НСП 1% : 2.65 [00:39:20]line ИТОГИ РАСХОД [00:39:20]line Чеков: 0 [00:39:20]line Общий итог: 0.00 [00:39:20]line Итого наличными: 0.00 [00:39:20]line Итого безнал.: 0.00 [00:39:20]line НДС 0% : 0.00 [00:39:20]line НДС 12% : 0.00 [00:39:20]line НСП 0% : 0.00 [00:39:20]line НСП 1,50% : 0.00 [00:39:20]line НСП 0,50% : 0.00 [00:39:20]line НСП 5% : 0.00 [00:39:20]line НСП 3% : 0.00 [00:39:20]line НСП 2% : 0.00 [00:39:20]line НСП 1% : 0.00 [00:39:20]line ИТОГИ ВОЗВРАТ РАСХОДА [00:39:20]line Чеков: 0 [00:39:20]line Общий итог: 0.00 [00:39:20]line Итого наличными: 0.00 [00:39:20]line Итого безнал.: 0.00 [00:39:20]line НДС 0% : 0.00 [00:39:20]line НДС 12% : 0.00 [00:39:20]line НСП 0% : 0.00 [00:39:20]line НСП 1,50% : 0.00 [00:39:20]line НСП 0,50% : 0.00 [00:39:20]line НСП 5% : 0.00 [00:39:20]line НСП 3% : 0.00 [00:39:20]line НСП 2% : 0.00 [00:39:20]line НСП 1% : 0.00 [00:39:20]line Сумма внесений: 0.00 [00:39:20]line Сумма выплат: 0.00 [00:39:20]line Нал. в кассе: 213317.00 [00:39:20]line НС Приход: 100436032.93 [00:39:20]line НС Возвр.Прихода: 548463.00 [00:39:20]line НС Расход: 0.00 [00:39:20]line НС Возвр.Расхода: 0.00 [00:39:20]line ФМ: 0000000000874718 [00:39:20]written 0, free lines is 4095 [00:39:21]Write to MH i2c: 01 00 00 C1 00 C1 [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: 01 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: 01 07 00 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 22 0B F5 [00:39:21]RasterBufferAndPrint [00:39:21]line [00:39:21]line [00:39:21]line [00:39:21]line [00:39:21]line [00:39:21]written 0, free lines is 2886 [00:39:21]MH_Cut [00:39:21]Write to MH i2c: D1 01 00 C8 00 01 9A [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: D1 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: D1 01 00 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: D1 01 00 C8 00 00 99 [00:39:21]Write to MH i2c: 01 00 00 C9 00 C9 [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:22]*** Cut start [00:39:22]*** Partial cut [00:39:22]*** CUTSNS_PIN = 1 [00:39:22]*** CUTSNS_PIN = 0 [00:39:22]*** Brake cut motor [00:39:23]Read from MH i2c: 01 [00:39:23]MH_I2C_Read... [00:39:23]*** Stop cut motor [00:39:23]*** Cut end [00:39:23]Read from MH i2c: 01 07 00 [00:39:23]MH_I2C_Read... [00:39:23]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [00:39:23]process_action x_report done [00:39:23]requested_data is exist [00:39:23]produce_requested_data [00:00:09]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10] [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31387708+1689443529=1720831237 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 06 CD 91 66 C9 DC B2 64 84 [00:40:38]Current date/time: 13.07.2024 00:40 [00:40:38]FM_Init [00:40:38]wFMConnect [00:40:38]MH_SAM_On [00:40:38]Write to MH i2c: E0 00 00 08 00 E7 [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_init finished! [00:40:38]*** atr: [00:40:38]*** 0F 3B D5 18 FF 81 91 FE [00:40:38]*** 1F C3 80 73 C8 21 10 0A [00:40:38]*** 00 00 00 00 00 00 00 00 [00:40:38]*** 00 00 00 00 00 00 00 00 [00:40:38]*** 00 00 00 00 00 00 00 00 [00:40:38]*** 00 00 00 00 00 00 00 00 [00:40:38]*** 00 00 00 00 00 00 00 00 [00:40:38]*** 00 00 00 00 00 00 00 00 [00:40:38]Read from MH i2c: E0 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E0 10 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:40:38]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:40:38]wFMCommunicate request_size=10 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:40:38]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 03 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:40:38]RAPDU: 90 00 [00:40:38]wFMCommunicate OK [00:40:38]wFMCommunicate request_size=4 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 80 11 00 00 [00:40:38]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 17 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [00:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:40:38]wFMCommunicate OK [00:40:38]Detected FM SN is 0000000000874718 [00:40:38]Stored FM SN is 0000000000874718 [00:40:38]wFMCommunicate request_size=9 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 80 16 00 00 04 29 B3 00 00 [00:40:38]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 03 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:40:38]RAPDU: 90 00 [00:40:38]wFMCommunicate OK [00:40:38]FM PIN OK [00:40:38]wFMCommunicate request_size=8 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 80 14 04 00 03 02 00 01 [00:40:38]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 03 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:40:38]RAPDU: 90 00 [00:40:38]wFMCommunicate OK [00:40:38]wFMCommunicate request_size=13 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:40:38]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 03 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:40:38]RAPDU: 90 00 [00:40:38]wFMCommunicate OK [00:40:38]wFMCommunicate request_size=4 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 80 11 00 00 [00:40:38]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 17 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [00:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:40:38]wFMCommunicate OK [00:40:38]DocumentArchiveInit [00:40:38]Start Httpd... [00:40:38]Httpd thread 3067587940 created [00:40:38]Write to MH i2c: 01 00 00 0F 00 0F [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: 01 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: 01 07 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:40:38]Allocated Socket 6 [00:40:38]Bind OK [00:40:38]Listen OK [00:40:38]httpd running on port 8080 [00:40:38]Waiting for new connection... [00:40:38]MH Int Process started [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:45]accept exits with 7 [00:40:45]New connection [00:40:45]New thread 3067301220 created [00:40:45]Waiting for new connection... [00:40:45] Sock 7.Parse request [00:40:45]Sock 7.Check first char [00:40:45]Sock 7.First char is OK [00:40:45]request: POST /json_proto HTTP/1.0 [00:40:45]Method: POST [00:40:45]URL: /json_proto [00:40:45]Method is POST - this is cgi request [00:40:45]url: /json_proto [00:40:45]query_string will be loaded in cgi processing [00:40:45]execute_cgi json_proto POST (null) [00:40:45]execute_cgi path=json_proto method=POST [00:40:45]POST find Content-Length [00:40:45]Host: 172.17.56.4:8080 [00:40:45]Content-Length: 215 [00:40:45]Content-Type: application/json [00:40:45] [00:40:45]POST finish read [00:40:45]Found Content-Length = 215 [00:40:45]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:40:45]execute_script... [00:40:45]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:40:45]POST & json_proto [00:40:45]process_json_proto [00:40:45]json parsed OK: [00:40:45]protocol is kg_v1.0 [00:40:45]action value=get_value [00:40:45]process_action get_value [00:40:45]cmd_get_value [00:40:45]process_action get_value done [00:40:45]requested_data is exist [00:40:45]produce_requested_data [00:40:45]requested_item kkm.sn is exist - process it [00:40:45]requested_item kkm.ver is exist - process it [00:40:45]requested_item fm.sn is exist - process it [00:40:45]wFMCommunicate request_size=4 [00:40:45]MH_SAM_APDU [00:40:45]CAPDU: 80 11 00 00 [00:40:45]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:40:45]Write i2c OK [00:40:45]MH_I2C_Read... [00:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:45]Read from MH i2c: E2 [00:40:45]MH_I2C_Read... [00:40:45]Read from MH i2c: E2 17 00 [00:40:45]MH_I2C_Read... [00:40:45]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [00:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:40:45]wFMCommunicate OK [00:40:45]requested_item fd.num is exist - process it [00:40:45]SAM_PROTO_GetFieldsCounters [00:40:45]wFMCommunicate request_size=4 [00:40:45]MH_SAM_APDU [00:40:45]CAPDU: 80 13 00 00 [00:40:45]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:40:45]Write i2c OK [00:40:45]MH_I2C_Read... [00:40:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:45]Read from MH i2c: E2 [00:40:45]MH_I2C_Read... [00:40:45]Read from MH i2c: E2 62 00 [00:40:45]MH_I2C_Read... [00:40:45]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [00:40: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 82 02 00 0E 04 04 00 BD 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:40:45]wFMCommunicate OK [00:40:45]SAM_PROTO_GetFieldsCounters done [00:40:45]requested_item shift.num is exist - process it [00:40:45]requested_item shift.opened is exist - process it [00:40:45]req_shift_opened [00:40:45]FM_GetShiftState [00:40:45]SAM_PROTO_GetShiftState [00:40:45]wFMCommunicate request_size=4 [00:40:45]MH_SAM_APDU [00:40:45]CAPDU: 80 13 01 00 [00:40:45]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:40:45]Write i2c OK [00:40:45]MH_I2C_Read... [00:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:45]Read from MH i2c: E2 [00:40:45]MH_I2C_Read... [00:40:45]Read from MH i2c: E2 0E 00 [00:40:45]MH_I2C_Read... [00:40:45]Read from MH i2c: E2 0E 00 12 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9A [00:40:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:40:45]wFMCommunicate OK [00:40:45]SAM_PROTO_GetShiftState done [00:40:45]FM_GetShiftState done [00:40:45]req_shift_opened done [00:40:45]requested_item shift.open_date is exist - process it [00:40:45]req_shift_open_date [00:40:45]FM_GetShiftState [00:40:45]SAM_PROTO_GetShiftState [00:40:45]wFMCommunicate request_size=4 [00:40:45]MH_SAM_APDU [00:40:45]CAPDU: 80 13 01 00 [00:40:45]Write to MH i2c: E2 08 00 13 00 80 13 01 00 00 00 00 00 90 [00:40:45]Write i2c OK [00:40:45]MH_I2C_Read... [00:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:45]Read from MH i2c: E2 [00:40:45]MH_I2C_Read... [00:40:45]Read from MH i2c: E2 0E 00 [00:40:45]MH_I2C_Read... [00:40:45]Read from MH i2c: E2 0E 00 13 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9B [00:40:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:40:45]wFMCommunicate OK [00:40:45]SAM_PROTO_GetShiftState done [00:40:45]FM_GetShiftState done [00:40:45]req_shift_open_date done [00:40:45]produce_requested_data done [00:40:45]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164439,"shift.num":445,"shift.opened":0,"shift.open_date":0} [00:40:45]process_action_free get_value [00:40:45]json_value_free [00:40:45]json_value_free done [00:40:45]process_json_proto returns [00:40:45]Send response to host [00:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164439,"shift.num":445,"shift.opened":0,"shift.open_date":0}}} [00:40:45]free response buf [00:40:45]execute_script done [00:40:45]execute_script returns [00:40:45]free content buf [00:40:45]Sock 7.Close socket [00:40:45]Sock 7.Thread stoped [00:40:45]accept exits with 5 [00:40:45]New connection [00:40:45]New thread 3067157860 created [00:40:45]Thread 3067301220 joined [00:40:45]Waiting for new connection... [00:40:45] Sock 5.Parse request [00:40:45]Sock 5.Check first char [00:40:45]Sock 5.First char is OK [00:40:45]request: POST /json_proto HTTP/1.0 [00:40:45]Method: POST [00:40:45]URL: /json_proto [00:40:45]Method is POST - this is cgi request [00:40:45]url: /json_proto [00:40:45]query_string will be loaded in cgi processing [00:40:45]execute_cgi json_proto POST (null) [00:40:45]execute_cgi path=json_proto method=POST [00:40:45]POST find Content-Length [00:40:45]Host: 172.17.56.4:8080 [00:40:45]Content-Length: 331 [00:40:45]Content-Type: application/json [00:40:45] [00:40:45]POST finish read [00:40:45]Found Content-Length = 331 [00:40:45]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:40:45]execute_script... [00:40:45]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:40:45]POST & json_proto [00:40:45]process_json_proto [00:40:45]json parsed OK: [00:40:45]protocol is kg_v1.0 [00:40:45]action value=get_value [00:40:45]process_action get_value [00:40:45]cmd_get_value [00:40:45]process_action get_value done [00:40:45]requested_data is exist [00:40:45]produce_requested_data [00:40:45]requested_item fm.sale.total is exist - process it [00:40:45]SAM_PROTO_GetFMData [00:40:45]wFMCommunicate request_size=4 [00:40:45]MH_SAM_APDU [00:40:45]CAPDU: 80 13 03 00 [00:40:45]Write to MH i2c: E2 08 00 14 00 80 13 03 00 00 00 00 00 93 [00:40:45]Write i2c OK [00:40:45]MH_I2C_Read... [00:40:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:40:46]Read from MH i2c: E2 [00:40:46]MH_I2C_Read... [00:40:46]Read from MH i2c: E2 FD 00 [00:40:46]MH_I2C_Read... [00:40:46]Read from MH i2c: E2 FD 00 14 00 00 C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 35 [00:40:46]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 [00:40:46]wFMCommunicate OK [00:40:46]wFMCommunicate request_size=4 [00:40:46]MH_SAM_APDU [00:40:46]CAPDU: 80 17 00 00 [00:40:46]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:40:46]Write i2c OK [00:40:46]MH_I2C_Read... [00:40:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:46]Read from MH i2c: E2 [00:40:46]MH_I2C_Read... [00:40:46]Read from MH i2c: E2 FD 00 [00:40:46]MH_I2C_Read... [00:40:46]Read from MH i2c: E2 FD 00 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 DE [00:40:46]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:40:46]wFMCommunicate OK [00:40:46]wFMCommunicate request_size=4 [00:40:46]MH_SAM_APDU [00:40:46]CAPDU: 80 17 00 00 [00:40:46]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:40:46]Write i2c OK [00:40:46]MH_I2C_Read... [00:40:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:46]Read from MH i2c: E2 [00:40:46]MH_I2C_Read... [00:40:46]Read from MH i2c: E2 FD 00 [00:40:46]MH_I2C_Read... [00:40:46]Read from MH i2c: E2 FD 00 16 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AB [00:40:46]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:40:46]wFMCommunicate OK [00:40:46]wFMCommunicate request_size=4 [00:40:46]MH_SAM_APDU [00:40:46]CAPDU: 80 17 00 00 [00:40:46]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:40:46]Write i2c OK [00:40:46]MH_I2C_Read... [00:40:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:47]Read from MH i2c: E2 [00:40:47]MH_I2C_Read... [00:40:47]Read from MH i2c: E2 FD 00 [00:40:47]MH_I2C_Read... [00:40:47]Read from MH i2c: E2 FD 00 17 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0F [00:40:47]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:40:47]wFMCommunicate OK [00:40:47]wFMCommunicate request_size=4 [00:40:47]MH_SAM_APDU [00:40:47]CAPDU: 80 17 00 00 [00:40:47]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [00:40:47]Write i2c OK [00:40:47]MH_I2C_Read... [00:40:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:40:47]Read from MH i2c: E2 [00:40:47]MH_I2C_Read... [00:40:47]Read from MH i2c: E2 E1 00 [00:40:47]MH_I2C_Read... [00:40:47]Read from MH i2c: E2 E1 00 18 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 86 [00:40:47]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:40:47]wFMCommunicate OK [00:40:47]SAM_PROTO_GetFMData done [00:40:47]requested_item fm.sale_refund.total is exist - process it [00:40:47]requested_item fm.buy.total is exist - process it [00:40:47]requested_item shift.sale.total is exist - process it [00:40:47]SAM_PROTO_GetShiftData [00:40:47]wFMCommunicate request_size=4 [00:40:47]MH_SAM_APDU [00:40:47]CAPDU: 80 13 02 00 [00:40:47]Write to MH i2c: E2 08 00 19 00 80 13 02 00 00 00 00 00 97 [00:40:47]Write i2c OK [00:40:47]MH_I2C_Read... [00:40:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:40:47]Read from MH i2c: E2 [00:40:47]MH_I2C_Read... [00:40:47]Read from MH i2c: E2 FD 00 [00:40:47]MH_I2C_Read... [00:40:47]Read from MH i2c: E2 FD 00 19 00 00 B9 04 AA 04 B5 04 6E 04 04 00 67 01 00 00 69 04 9E 00 6F 04 04 00 66 01 00 00 B1 04 04 00 C2 2E 82 01 70 04 04 00 24 F4 45 01 72 04 03 00 9E 3A 3C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 05 29 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 EF 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 D6 [00:40:47]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 67 01 00 00 69 04 9E 00 6F 04 04 00 66 01 00 00 B1 04 04 00 C2 2E 82 01 70 04 04 00 24 F4 45 01 72 04 03 00 9E 3A 3C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 05 29 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 EF 6A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 30 75 70 04 02 00 30 75 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 72 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:40:47]wFMCommunicate OK [00:40:47]wFMCommunicate request_size=4 [00:40:47]MH_SAM_APDU [00:40:47]CAPDU: 80 17 00 00 [00:40:47]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:40:47]Write i2c OK [00:40:47]MH_I2C_Read... [00:40:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:48]Read from MH i2c: E2 [00:40:48]MH_I2C_Read... [00:40:48]Read from MH i2c: E2 FD 00 [00:40:48]MH_I2C_Read... [00:40:48]Read from MH i2c: E2 FD 00 1A 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 63 [00:40:48]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 09 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:40:48]wFMCommunicate OK [00:40:48]wFMCommunicate request_size=4 [00:40:48]MH_SAM_APDU [00:40:48]CAPDU: 80 17 00 00 [00:40:48]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:40:48]Write i2c OK [00:40:48]MH_I2C_Read... [00:40:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:48]Read from MH i2c: E2 [00:40:48]MH_I2C_Read... [00:40:48]Read from MH i2c: E2 FD 00 [00:40:48]MH_I2C_Read... [00:40:48]Read from MH i2c: E2 FD 00 1B 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C3 [00:40:48]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:40:48]wFMCommunicate OK [00:40:48]wFMCommunicate request_size=4 [00:40:48]MH_SAM_APDU [00:40:48]CAPDU: 80 17 00 00 [00:40:48]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:40:48]Write i2c OK [00:40:48]MH_I2C_Read... [00:40:48]OFD Sender: No OFD packet to send [00:40:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:48]Read from MH i2c: E2 [00:40:48]MH_I2C_Read... [00:40:48]Read from MH i2c: E2 FD 00 [00:40:48]MH_I2C_Read... [00:40:48]Read from MH i2c: E2 FD 00 1C 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 14 [00:40:48]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:40:48]wFMCommunicate OK [00:40:48]wFMCommunicate request_size=4 [00:40:48]MH_SAM_APDU [00:40:48]CAPDU: 80 17 00 00 [00:40:48]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [00:40:48]Write i2c OK [00:40:48]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 D6 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 D6 00 1D 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [00:40:49]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:40:49]wFMCommunicate OK [00:40:49]SAM_PROTO_GetShiftData done [00:40:49]requested_item shift.sale.total_cash is exist - process it [00:40:49]requested_item shift.sale_refund.total is exist - process it [00:40:49]requested_item shift.sale_refund.total_cash is exist - process it [00:40:49]requested_item shift.buy.total is exist - process it [00:40:49]requested_item shift.buy.total_cash is exist - process it [00:40:49]produce_requested_data done [00:40:49]produce_requested_data return {"fm.sale.total":100436032.93,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":253088.66,"shift.sale.total_cash":213617.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:40:49]process_action_free get_value [00:40:49]json_value_free [00:40:49]json_value_free done [00:40:49]process_json_proto returns [00:40:49]Send response to host [00:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100436032.93,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":253088.66,"shift.sale.total_cash":213617.00,"shift.sale_refund.total":300.00,"shift.sale_refund.total_cash":300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:40:49]free response buf [00:40:49]execute_script done [00:40:49]execute_script returns [00:40:49]free content buf [00:40:49]Sock 5.Close socket [00:40:49]Sock 5.Thread stoped [00:40:49]accept exits with 7 [00:40:49]New connection [00:40:49]New thread 3067301220 created [00:40:49]Thread 3067157860 joined [00:40:49]Waiting for new connection... [00:40:49] Sock 7.Parse request [00:40:49]Sock 7.Check first char [00:40:49]Sock 7.First char is OK [00:40:49]request: POST /json_proto HTTP/1.0 [00:40:49]Method: POST [00:40:49]URL: /json_proto [00:40:49]Method is POST - this is cgi request [00:40:49]url: /json_proto [00:40:49]query_string will be loaded in cgi processing [00:40:49]execute_cgi json_proto POST (null) [00:40:49]execute_cgi path=json_proto method=POST [00:40:49]POST find Content-Length [00:40:49]Host: 172.17.56.4:8080 [00:40:49]Content-Length: 271 [00:40:49]Content-Type: application/json [00:40:49] [00:40:49]POST finish read [00:40:49]Found Content-Length = 271 [00:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:49]execute_script... [00:40:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:49]POST & json_proto [00:40:49]process_json_proto [00:40:49]json parsed OK: [00:40:49]protocol is kg_v1.0 [00:40:49]action value=open_shift [00:40:49]process_action open_shift [00:40:49]cmd_open_shift [00:40:49]MH_GetDate [00:40:49]Write to MH i2c: F0 00 00 1E 00 0D [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: F0 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: F0 09 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: F0 09 00 1E 00 00 11 CD 91 66 C9 DC B2 64 A6 [00:40:49]GetLastDocTimeStamp 112 [00:40:49]current date 1720831249 [00:40:49]FM_GetShiftState [00:40:49]SAM_PROTO_GetShiftState [00:40:49]wFMCommunicate request_size=4 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 13 01 00 [00:40:49]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 0E 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 0E 00 1F 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A7 [00:40:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:40:49]wFMCommunicate OK [00:40:49]SAM_PROTO_GetShiftState done [00:40:49]FM_GetShiftState done [00:40:49]KKMCreateOpenShiftDocument [00:40:49]Load OK [00:40:49]Malloc new data [00:40:49]MH_GetDate [00:40:49]Write to MH i2c: F0 00 00 20 00 0F [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: F0 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: F0 09 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: F0 09 00 20 00 00 11 CD 91 66 C9 DC B2 64 A8 [00:40:49]Malloc new data [00:40:49]KKMCreateOpenShiftDocument OK [00:40:49]KKMSetOpenShiftData OK [00:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=175 [00:40:49]tlvbuf is 00BB70C0 [00:40:49]KKMLoadAndSignOpenShiftData [00:40:49]SAM_PROTO_ProcessDocument [00:40:49]wFMCommunicate request_size=9 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 15 01 00 04 02 00 AF 00 [00:40:49]Write to MH i2c: E2 0C 00 21 00 80 15 01 00 04 00 02 00 AF 00 00 00 59 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [00:40:49]RAPDU: 90 00 [00:40:49]wFMCommunicate OK [00:40:49]wFMCommunicate request_size=23 [00:40:49]MH_SAM_APDU [00:40:49]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:40:49]Write to MH i2c: E2 1A 00 22 00 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 97 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 22 00 00 90 00 96 [00:40:49]RAPDU: 90 00 [00:40:49]wFMCommunicate OK [00:40:49]wFMCommunicate request_size=34 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 [00:40:49]Write to MH i2c: E2 25 00 23 00 80 15 02 00 1D 00 FD 03 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 00 00 CF [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 23 00 00 90 00 97 [00:40:49]RAPDU: 90 00 [00:40:49]wFMCommunicate OK [00:40:49]wFMCommunicate request_size=60 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 15 02 00 37 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 [00:40:49]Write to MH i2c: E2 3F 00 24 00 80 15 02 00 37 00 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 00 00 54 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 24 00 00 90 00 98 [00:40:49]RAPDU: 90 00 [00:40:49]wFMCommunicate OK [00:40:49]wFMCommunicate request_size=50 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 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:40:49]Write to MH i2c: E2 35 00 25 00 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 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 1D [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 25 00 00 90 00 99 [00:40:49]RAPDU: 90 00 [00:40:49]wFMCommunicate OK [00:40:49]wFMCommunicate request_size=13 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 15 02 00 08 F4 03 04 00 11 CD 91 66 [00:40:49]Write to MH i2c: E2 10 00 26 00 80 15 02 00 08 00 F4 03 04 00 11 CD 91 66 00 00 86 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 26 00 00 90 00 9A [00:40:49]RAPDU: 90 00 [00:40:49]wFMCommunicate OK [00:40:49]wFMCommunicate request_size=25 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 [00:40:49]Write to MH i2c: E2 1C 00 27 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 00 00 0C [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 03 00 27 00 00 90 00 9B [00:40:49]RAPDU: 90 00 [00:40:49]wFMCommunicate OK [00:40:49]wFMCommunicate request_size=4 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 15 03 00 [00:40:49]Write to MH i2c: E2 08 00 28 00 80 15 03 00 00 00 00 00 A9 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:50]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:40:50]Read from MH i2c: E2 [00:40:50]MH_I2C_Read... [00:40:50]Read from MH i2c: E2 38 00 [00:40:50]MH_I2C_Read... [00:40:50]Read from MH i2c: E2 38 00 28 00 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 82 02 00 0E 04 04 00 BE 01 00 00 35 04 06 00 36 C9 64 42 14 94 90 00 60 [00:40:50]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 82 02 00 0E 04 04 00 BE 01 00 00 35 04 06 00 36 C9 64 42 14 94 90 00 [00:40:50]wFMCommunicate OK [00:40:50]SAM_PROTO_ProcessDocument answer len = 51 [00:40:50]SAM_PROTO_ProcessDocument done [00:40:50]SetTLVBufToDocument [00:40:50]Processing tag 1209 (04B9) [00:40:50]Malloc new data [00:40:50]Processing tag 1041 (0411) [00:40:50]Processing tag 1040 (0410) [00:40:50]Malloc new data [00:40:50]Processing tag 1038 (040E) [00:40:50]Malloc new data [00:40:50]Processing tag 1077 (0435) [00:40:50]Malloc new data [00:40:50]SetTLVBufToDocument err=0 [00:40:50]KKMLoadAndSignOpenShiftData store KKM data [00:40:50]KKMLoadAndSignOpenShiftData err=0 [00:40:50]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Женишбеков Т. Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 Место: АЗС № 72 "Партнер Нефть" 13.07.2024 00:40 Смена: 446 РНМ: 0000000000090829 ЗНМ: 0300000160 ФД: 164440 ФМ: 0000000000874718 ФПД: 60238598378644 [00:40:50]StoreToDocumentArchive [00:40:50]shift 446 fd 164440 [00:40:50]Create dir for shift 0446 [00:40:50]save to /storage/0446/doc_00164440 [00:40:50]save last doc name /storage/0446/doc_00164440 to /storage/kkm_last_doc_name [00:40:50]save OK [00:40:50]Clear old archive folders... [00:40:50]Remove dir /storage/0445 [00:40:50]opendir ok [00:40:50]file . [00:40:50]file .. [00:40:50]file doc_00164079 [00:40:50]remove file /storage/0445/doc_00164079 [00:40:50]file doc_00164080 [00:40:50]remove file /storage/0445/doc_00164080 [00:40:50]file doc_00164081 [00:40:50]remove file /storage/0445/doc_00164081 [00:40:50]file doc_00164082 [00:40:50]remove file /storage/0445/doc_00164082 [00:40:50]file doc_00164083 [00:40:50]remove file /storage/0445/doc_00164083 [00:40:50]file doc_00164084 [00:40:50]remove file /storage/0445/doc_00164084 [00:40:50]file doc_00164085 [00:40:50]remove file /storage/0445/doc_00164085 [00:40:50]file doc_00164086 [00:40:50]remove file /storage/0445/doc_00164086 [00:40:50]file doc_00164087 [00:40:50]remove file /storage/0445/doc_00164087 [00:40:50]file doc_00164088 [00:40:50]remove file /storage/0445/doc_00164088 [00:40:50]file doc_00164089 [00:40:50]remove file /storage/0445/doc_00164089 [00:40:50]file doc_00164090 [00:40:50]remove file /storage/0445/doc_00164090 [00:40:50]file doc_00164091 [00:40:50]remove file /storage/0445/doc_00164091 [00:40:50]file doc_00164092 [00:40:50]remove file /storage/0445/doc_00164092 [00:40:50]file doc_00164093 [00:40:50]remove file /storage/0445/doc_00164093 [00:40:50]file doc_00164094 [00:40:50]remove file /storage/0445/doc_00164094 [00:40:50]file doc_00164095 [00:40:50]remove file /storage/0445/doc_00164095 [00:40:50]file doc_00164096 [00:40:50]remove file /storage/0445/doc_00164096 [00:40:50]file doc_00164097 [00:40:50]remove file /storage/0445/doc_00164097 [00:40:50]file doc_00164098 [00:40:50]remove file /storage/0445/doc_00164098 [00:40:50]file doc_00164099 [00:40:50]remove file /storage/0445/doc_00164099 [00:40:50]file doc_00164100 [00:40:50]remove file /storage/0445/doc_00164100 [00:40:50]file doc_00164101 [00:40:50]remove file /storage/0445/doc_00164101 [00:40:50]file doc_00164102 [00:40:50]remove file /storage/0445/doc_00164102 [00:40:50]file doc_00164103 [00:40:50]remove file /storage/0445/doc_00164103 [00:40:50]file doc_00164104 [00:40:50]remove file /storage/0445/doc_00164104 [00:40:50]file doc_00164105 [00:40:50]remove file /storage/0445/doc_00164105 [00:40:50]file doc_00164106 [00:40:50]remove file /storage/0445/doc_00164106 [00:40:50]file doc_00164107 [00:40:50]remove file /storage/0445/doc_00164107 [00:40:50]file doc_00164108 [00:40:50]remove file /storage/0445/doc_00164108 [00:40:50]file doc_00164109 [00:40:50]remove file /storage/0445/doc_00164109 [00:40:50]file doc_00164110 [00:40:50]remove file /storage/0445/doc_00164110 [00:40:50]file doc_00164111 [00:40:50]remove file /storage/0445/doc_00164111 [00:40:50]file doc_00164112 [00:40:50]remove file /storage/0445/doc_00164112 [00:40:50]file doc_00164113 [00:40:50]remove file /storage/0445/doc_00164113 [00:40:50]file doc_00164114 [00:40:50]remove file /storage/0445/doc_00164114 [00:40:50]file doc_00164115 [00:40:50]remove file /storage/0445/doc_00164115 [00:40:50]file doc_00164116 [00:40:50]remove file /storage/0445/doc_00164116 [00:40:50]file doc_00164117 [00:40:50]remove file /storage/0445/doc_00164117 [00:40:50]file doc_00164118 [00:40:50]remove file /storage/0445/doc_00164118 [00:40:50]file doc_00164119 [00:40:50]remove file /storage/0445/doc_00164119 [00:40:50]file doc_00164120 [00:40:50]remove file /storage/0445/doc_00164120 [00:40:50]file doc_00164121 [00:40:50]remove file /storage/0445/doc_00164121 [00:40:50]file doc_00164122 [00:40:50]remove file /storage/0445/doc_00164122 [00:40:50]file doc_00164123 [00:40:50]remove file /storage/0445/doc_00164123 [00:40:50]file doc_00164124 [00:40:50]remove file /storage/0445/doc_00164124 [00:40:50]file doc_00164125 [00:40:50]remove file /storage/0445/doc_00164125 [00:40:50]file doc_00164126 [00:40:50]remove file /storage/0445/doc_00164126 [00:40:50]file doc_00164127 [00:40:50]remove file /storage/0445/doc_00164127 [00:40:50]file doc_00164128 [00:40:50]remove file /storage/0445/doc_00164128 [00:40:50]file doc_00164129 [00:40:50]remove file /storage/0445/doc_00164129 [00:40:50]file doc_00164130 [00:40:50]remove file /storage/0445/doc_00164130 [00:40:50]file doc_00164131 [00:40:50]remove file /storage/0445/doc_00164131 [00:40:50]file doc_00164132 [00:40:50]remove file /storage/0445/doc_00164132 [00:40:50]file doc_00164133 [00:40:50]remove file /storage/0445/doc_00164133 [00:40:50]file doc_00164134 [00:40:50]remove file /storage/0445/doc_00164134 [00:40:50]file doc_00164135 [00:40:50]remove file /storage/0445/doc_00164135 [00:40:50]file doc_00164136 [00:40:50]remove file /storage/0445/doc_00164136 [00:40:50]file doc_00164137 [00:40:50]remove file /storage/0445/doc_00164137 [00:40:50]file doc_00164138 [00:40:50]remove file /storage/0445/doc_00164138 [00:40:50]file doc_00164139 [00:40:50]remove file /storage/0445/doc_00164139 [00:40:50]file doc_00164140 [00:40:50]remove file /storage/0445/doc_00164140 [00:40:50]file doc_00164141 [00:40:50]remove file /storage/0445/doc_00164141 [00:40:50]file doc_00164142 [00:40:50]remove file /storage/0445/doc_00164142 [00:40:50]file doc_00164143 [00:40:50]remove file /storage/0445/doc_00164143 [00:40:50]file doc_00164144 [00:40:50]remove file /storage/0445/doc_00164144 [00:40:50]file doc_00164145 [00:40:50]remove file /storage/0445/doc_00164145 [00:40:50]file doc_00164146 [00:40:50]remove file /storage/0445/doc_00164146 [00:40:50]file doc_00164147 [00:40:50]remove file /storage/0445/doc_00164147 [00:40:50]file doc_00164148 [00:40:50]remove file /storage/0445/doc_00164148 [00:40:50]file doc_00164149 [00:40:50]remove file /storage/0445/doc_00164149 [00:40:50]file doc_00164150 [00:40:50]remove file /storage/0445/doc_00164150 [00:40:50]file doc_00164151 [00:40:50]remove file /storage/0445/doc_00164151 [00:40:50]file doc_00164152 [00:40:50]remove file /storage/0445/doc_00164152 [00:40:50]file doc_00164153 [00:40:50]remove file /storage/0445/doc_00164153 [00:40:50]file doc_00164154 [00:40:50]remove file /storage/0445/doc_00164154 [00:40:50]file doc_00164155 [00:40:50]remove file /storage/0445/doc_00164155 [00:40:50]file doc_00164156 [00:40:50]remove file /storage/0445/doc_00164156 [00:40:50]file doc_00164157 [00:40:50]remove file /storage/0445/doc_00164157 [00:40:50]file doc_00164158 [00:40:50]remove file /storage/0445/doc_00164158 [00:40:50]file doc_00164159 [00:40:50]remove file /storage/0445/doc_00164159 [00:40:50]file doc_00164160 [00:40:50]remove file /storage/0445/doc_00164160 [00:40:50]file doc_00164161 [00:40:50]remove file /storage/0445/doc_00164161 [00:40:50]file doc_00164162 [00:40:50]remove file /storage/0445/doc_00164162 [00:40:50]file doc_00164163 [00:40:50]remove file /storage/0445/doc_00164163 [00:40:50]file doc_00164164 [00:40:50]remove file /storage/0445/doc_00164164 [00:40:50]file doc_00164165 [00:40:50]remove file /storage/0445/doc_00164165 [00:40:50]file doc_00164166 [00:40:50]remove file /storage/0445/doc_00164166 [00:40:50]file doc_00164167 [00:40:50]remove file /storage/0445/doc_00164167 [00:40:50]file doc_00164168 [00:40:50]remove file /storage/0445/doc_00164168 [00:40:50]file doc_00164169 [00:40:50]remove file /storage/0445/doc_00164169 [00:40:50]file doc_00164170 [00:40:50]remove file /storage/0445/doc_00164170 [00:40:50]file doc_00164171 [00:40:50]remove file /storage/0445/doc_00164171 [00:40:50]file doc_00164172 [00:40:50]remove file /storage/0445/doc_00164172 [00:40:50]file doc_00164173 [00:40:50]remove file /storage/0445/doc_00164173 [00:40:50]file doc_00164174 [00:40:50]remove file /storage/0445/doc_00164174 [00:40:50]file doc_00164175 [00:40:50]remove file /storage/0445/doc_00164175 [00:40:50]file doc_00164176 [00:40:50]remove file /storage/0445/doc_00164176 [00:40:50]file doc_00164177 [00:40:50]remove file /storage/0445/doc_00164177 [00:40:50]file doc_00164178 [00:40:50]remove file /storage/0445/doc_00164178 [00:40:50]file doc_00164179 [00:40:50]remove file /storage/0445/doc_00164179 [00:40:50]file doc_00164180 [00:40:50]remove file /storage/0445/doc_00164180 [00:40:50]file doc_00164181 [00:40:50]remove file /storage/0445/doc_00164181 [00:40:50]file doc_00164182 [00:40:50]remove file /storage/0445/doc_00164182 [00:40:50]file doc_00164183 [00:40:50]remove file /storage/0445/doc_00164183 [00:40:50]file doc_00164184 [00:40:50]remove file /storage/0445/doc_00164184 [00:40:50]file doc_00164185 [00:40:50]remove file /storage/0445/doc_00164185 [00:40:50]file doc_00164186 [00:40:50]remove file /storage/0445/doc_00164186 [00:40:50]file doc_00164187 [00:40:50]remove file /storage/0445/doc_00164187 [00:40:50]file doc_00164188 [00:40:50]remove file /storage/0445/doc_00164188 [00:40:50]file doc_00164189 [00:40:50]remove file /storage/0445/doc_00164189 [00:40:50]file doc_00164190 [00:40:50]remove file /storage/0445/doc_00164190 [00:40:50]file doc_00164191 [00:40:50]remove file /storage/0445/doc_00164191 [00:40:50]file doc_00164192 [00:40:50]remove file /storage/0445/doc_00164192 [00:40:50]file doc_00164193 [00:40:50]remove file /storage/0445/doc_00164193 [00:40:50]file doc_00164194 [00:40:50]remove file /storage/0445/doc_00164194 [00:40:50]file doc_00164195 [00:40:50]remove file /storage/0445/doc_00164195 [00:40:50]file doc_00164196 [00:40:50]remove file /storage/0445/doc_00164196 [00:40:50]file doc_00164197 [00:40:50]remove file /storage/0445/doc_00164197 [00:40:50]file doc_00164198 [00:40:50]remove file /storage/0445/doc_00164198 [00:40:50]file doc_00164199 [00:40:50]remove file /storage/0445/doc_00164199 [00:40:50]file doc_00164200 [00:40:50]remove file /storage/0445/doc_00164200 [00:40:50]file doc_00164201 [00:40:50]remove file /storage/0445/doc_00164201 [00:40:50]file doc_00164202 [00:40:50]remove file /storage/0445/doc_00164202 [00:40:50]file doc_00164203 [00:40:50]remove file /storage/0445/doc_00164203 [00:40:50]file doc_00164204 [00:40:50]remove file /storage/0445/doc_00164204 [00:40:50]file doc_00164205 [00:40:50]remove file /storage/0445/doc_00164205 [00:40:50]file doc_00164206 [00:40:50]remove file /storage/0445/doc_00164206 [00:40:50]file doc_00164207 [00:40:50]remove file /storage/0445/doc_00164207 [00:40:50]file doc_00164208 [00:40:50]remove file /storage/0445/doc_00164208 [00:40:50]file doc_00164209 [00:40:50]remove file /storage/0445/doc_00164209 [00:40:50]file doc_00164210 [00:40:50]remove file /storage/0445/doc_00164210 [00:40:50]file doc_00164211 [00:40:50]remove file /storage/0445/doc_00164211 [00:40:50]file doc_00164212 [00:40:50]remove file /storage/0445/doc_00164212 [00:40:50]file doc_00164213 [00:40:50]remove file /storage/0445/doc_00164213 [00:40:50]file doc_00164214 [00:40:50]remove file /storage/0445/doc_00164214 [00:40:50]file doc_00164215 [00:40:50]remove file /storage/0445/doc_00164215 [00:40:50]file doc_00164216 [00:40:50]remove file /storage/0445/doc_00164216 [00:40:50]file doc_00164217 [00:40:50]remove file /storage/0445/doc_00164217 [00:40:50]file doc_00164218 [00:40:50]remove file /storage/0445/doc_00164218 [00:40:50]file doc_00164219 [00:40:50]remove file /storage/0445/doc_00164219 [00:40:50]file doc_00164220 [00:40:51]remove file /storage/0445/doc_00164220 [00:40:51]file doc_00164221 [00:40:51]remove file /storage/0445/doc_00164221 [00:40:51]file doc_00164222 [00:40:51]remove file /storage/0445/doc_00164222 [00:40:51]file doc_00164223 [00:40:51]remove file /storage/0445/doc_00164223 [00:40:51]file doc_00164224 [00:40:51]remove file /storage/0445/doc_00164224 [00:40:51]file doc_00164225 [00:40:51]remove file /storage/0445/doc_00164225 [00:40:51]file doc_00164226 [00:40:51]remove file /storage/0445/doc_00164226 [00:40:51]file doc_00164227 [00:40:51]remove file /storage/0445/doc_00164227 [00:40:51]file doc_00164228 [00:40:51]remove file /storage/0445/doc_00164228 [00:40:51]file doc_00164229 [00:40:51]remove file /storage/0445/doc_00164229 [00:40:51]file doc_00164230 [00:40:51]remove file /storage/0445/doc_00164230 [00:40:51]file doc_00164231 [00:40:51]remove file /storage/0445/doc_00164231 [00:40:51]file doc_00164232 [00:40:51]remove file /storage/0445/doc_00164232 [00:40:51]file doc_00164233 [00:40:51]remove file /storage/0445/doc_00164233 [00:40:51]file doc_00164234 [00:40:51]remove file /storage/0445/doc_00164234 [00:40:51]file doc_00164235 [00:40:51]remove file /storage/0445/doc_00164235 [00:40:51]file doc_00164236 [00:40:51]remove file /storage/0445/doc_00164236 [00:40:51]file doc_00164237 [00:40:51]remove file /storage/0445/doc_00164237 [00:40:51]file doc_00164238 [00:40:51]remove file /storage/0445/doc_00164238 [00:40:51]file doc_00164239 [00:40:51]remove file /storage/0445/doc_00164239 [00:40:51]file doc_00164240 [00:40:51]remove file /storage/0445/doc_00164240 [00:40:51]file doc_00164241 [00:40:51]remove file /storage/0445/doc_00164241 [00:40:51]file doc_00164242 [00:40:51]remove file /storage/0445/doc_00164242 [00:40:51]file doc_00164243 [00:40:51]remove file /storage/0445/doc_00164243 [00:40:51]file doc_00164244 [00:40:51]remove file /storage/0445/doc_00164244 [00:40:51]file doc_00164245 [00:40:51]remove file /storage/0445/doc_00164245 [00:40:51]file doc_00164246 [00:40:51]remove file /storage/0445/doc_00164246 [00:40:51]file doc_00164247 [00:40:51]remove file /storage/0445/doc_00164247 [00:40:51]file doc_00164248 [00:40:51]remove file /storage/0445/doc_00164248 [00:40:51]file doc_00164249 [00:40:51]remove file /storage/0445/doc_00164249 [00:40:51]file doc_00164250 [00:40:51]remove file /storage/0445/doc_00164250 [00:40:51]file doc_00164251 [00:40:51]remove file /storage/0445/doc_00164251 [00:40:51]file doc_00164252 [00:40:51]remove file /storage/0445/doc_00164252 [00:40:51]file doc_00164253 [00:40:51]remove file /storage/0445/doc_00164253 [00:40:51]file doc_00164254 [00:40:51]remove file /storage/0445/doc_00164254 [00:40:51]file doc_00164255 [00:40:51]remove file /storage/0445/doc_00164255 [00:40:51]file doc_00164256 [00:40:51]remove file /storage/0445/doc_00164256 [00:40:51]file doc_00164257 [00:40:51]remove file /storage/0445/doc_00164257 [00:40:51]file doc_00164258 [00:40:51]remove file /storage/0445/doc_00164258 [00:40:51]file doc_00164259 [00:40:51]remove file /storage/0445/doc_00164259 [00:40:51]file doc_00164260 [00:40:51]remove file /storage/0445/doc_00164260 [00:40:51]file doc_00164261 [00:40:51]remove file /storage/0445/doc_00164261 [00:40:51]file doc_00164262 [00:40:51]remove file /storage/0445/doc_00164262 [00:40:51]file doc_00164263 [00:40:51]remove file /storage/0445/doc_00164263 [00:40:51]file doc_00164264 [00:40:51]remove file /storage/0445/doc_00164264 [00:40:51]file doc_00164265 [00:40:51]remove file /storage/0445/doc_00164265 [00:40:51]file doc_00164266 [00:40:51]remove file /storage/0445/doc_00164266 [00:40:51]file doc_00164267 [00:40:51]remove file /storage/0445/doc_00164267 [00:40:51]file doc_00164268 [00:40:51]remove file /storage/0445/doc_00164268 [00:40:51]file doc_00164269 [00:40:51]remove file /storage/0445/doc_00164269 [00:40:51]file doc_00164270 [00:40:51]remove file /storage/0445/doc_00164270 [00:40:51]file doc_00164271 [00:40:51]remove file /storage/0445/doc_00164271 [00:40:51]file doc_00164272 [00:40:51]remove file /storage/0445/doc_00164272 [00:40:51]file doc_00164273 [00:40:51]remove file /storage/0445/doc_00164273 [00:40:51]file doc_00164274 [00:40:51]remove file /storage/0445/doc_00164274 [00:40:51]file doc_00164275 [00:40:51]remove file /storage/0445/doc_00164275 [00:40:51]file doc_00164276 [00:40:51]remove file /storage/0445/doc_00164276 [00:40:51]file doc_00164277 [00:40:51]remove file /storage/0445/doc_00164277 [00:40:51]file doc_00164278 [00:40:51]remove file /storage/0445/doc_00164278 [00:40:51]file doc_00164279 [00:40:51]remove file /storage/0445/doc_00164279 [00:40:51]file doc_00164280 [00:40:51]remove file /storage/0445/doc_00164280 [00:40:51]file doc_00164281 [00:40:51]remove file /storage/0445/doc_00164281 [00:40:51]file doc_00164282 [00:40:51]remove file /storage/0445/doc_00164282 [00:40:51]file doc_00164283 [00:40:51]remove file /storage/0445/doc_00164283 [00:40:51]file doc_00164284 [00:40:51]remove file /storage/0445/doc_00164284 [00:40:51]file doc_00164285 [00:40:51]remove file /storage/0445/doc_00164285 [00:40:51]file doc_00164286 [00:40:51]remove file /storage/0445/doc_00164286 [00:40:51]file doc_00164287 [00:40:51]remove file /storage/0445/doc_00164287 [00:40:51]file doc_00164288 [00:40:51]remove file /storage/0445/doc_00164288 [00:40:51]file doc_00164289 [00:40:51]remove file /storage/0445/doc_00164289 [00:40:51]file doc_00164290 [00:40:51]remove file /storage/0445/doc_00164290 [00:40:51]file doc_00164291 [00:40:51]remove file /storage/0445/doc_00164291 [00:40:51]file doc_00164292 [00:40:51]remove file /storage/0445/doc_00164292 [00:40:51]file doc_00164293 [00:40:51]remove file /storage/0445/doc_00164293 [00:40:51]file doc_00164294 [00:40:51]remove file /storage/0445/doc_00164294 [00:40:51]file doc_00164295 [00:40:51]remove file /storage/0445/doc_00164295 [00:40:51]file doc_00164296 [00:40:51]remove file /storage/0445/doc_00164296 [00:40:51]file doc_00164297 [00:40:51]remove file /storage/0445/doc_00164297 [00:40:51]file doc_00164298 [00:40:51]remove file /storage/0445/doc_00164298 [00:40:51]file doc_00164299 [00:40:51]remove file /storage/0445/doc_00164299 [00:40:51]file doc_00164300 [00:40:51]remove file /storage/0445/doc_00164300 [00:40:51]file doc_00164301 [00:40:51]remove file /storage/0445/doc_00164301 [00:40:51]file doc_00164302 [00:40:51]remove file /storage/0445/doc_00164302 [00:40:51]file doc_00164303 [00:40:51]remove file /storage/0445/doc_00164303 [00:40:51]file doc_00164304 [00:40:51]remove file /storage/0445/doc_00164304 [00:40:51]file doc_00164305 [00:40:51]remove file /storage/0445/doc_00164305 [00:40:51]file doc_00164306 [00:40:51]remove file /storage/0445/doc_00164306 [00:40:51]file doc_00164307 [00:40:51]remove file /storage/0445/doc_00164307 [00:40:51]file doc_00164308 [00:40:51]remove file /storage/0445/doc_00164308 [00:40:51]file doc_00164309 [00:40:51]remove file /storage/0445/doc_00164309 [00:40:51]file doc_00164310 [00:40:51]remove file /storage/0445/doc_00164310 [00:40:51]file doc_00164311 [00:40:51]remove file /storage/0445/doc_00164311 [00:40:51]file doc_00164312 [00:40:51]remove file /storage/0445/doc_00164312 [00:40:51]file doc_00164313 [00:40:51]remove file /storage/0445/doc_00164313 [00:40:51]file doc_00164314 [00:40:51]remove file /storage/0445/doc_00164314 [00:40:51]file doc_00164315 [00:40:51]remove file /storage/0445/doc_00164315 [00:40:51]file doc_00164316 [00:40:51]remove file /storage/0445/doc_00164316 [00:40:51]file doc_00164317 [00:40:51]remove file /storage/0445/doc_00164317 [00:40:51]file doc_00164318 [00:40:51]remove file /storage/0445/doc_00164318 [00:40:51]file doc_00164319 [00:40:51]remove file /storage/0445/doc_00164319 [00:40:51]file doc_00164320 [00:40:51]remove file /storage/0445/doc_00164320 [00:40:51]file doc_00164321 [00:40:51]remove file /storage/0445/doc_00164321 [00:40:51]file doc_00164322 [00:40:51]remove file /storage/0445/doc_00164322 [00:40:51]file doc_00164323 [00:40:51]remove file /storage/0445/doc_00164323 [00:40:51]file doc_00164324 [00:40:51]remove file /storage/0445/doc_00164324 [00:40:51]file doc_00164325 [00:40:51]remove file /storage/0445/doc_00164325 [00:40:51]file doc_00164326 [00:40:51]remove file /storage/0445/doc_00164326 [00:40:51]file doc_00164327 [00:40:51]remove file /storage/0445/doc_00164327 [00:40:51]file doc_00164328 [00:40:51]remove file /storage/0445/doc_00164328 [00:40:51]file doc_00164329 [00:40:51]remove file /storage/0445/doc_00164329 [00:40:51]file doc_00164330 [00:40:51]remove file /storage/0445/doc_00164330 [00:40:51]file doc_00164331 [00:40:51]remove file /storage/0445/doc_00164331 [00:40:51]file doc_00164332 [00:40:51]remove file /storage/0445/doc_00164332 [00:40:51]file doc_00164333 [00:40:51]remove file /storage/0445/doc_00164333 [00:40:51]file doc_00164334 [00:40:51]remove file /storage/0445/doc_00164334 [00:40:51]file doc_00164335 [00:40:51]remove file /storage/0445/doc_00164335 [00:40:51]file doc_00164336 [00:40:51]remove file /storage/0445/doc_00164336 [00:40:51]file doc_00164337 [00:40:51]remove file /storage/0445/doc_00164337 [00:40:51]file doc_00164338 [00:40:51]remove file /storage/0445/doc_00164338 [00:40:51]file doc_00164339 [00:40:51]remove file /storage/0445/doc_00164339 [00:40:51]file doc_00164340 [00:40:51]remove file /storage/0445/doc_00164340 [00:40:51]file doc_00164341 [00:40:51]remove file /storage/0445/doc_00164341 [00:40:51]file doc_00164342 [00:40:51]remove file /storage/0445/doc_00164342 [00:40:51]file doc_00164343 [00:40:51]remove file /storage/0445/doc_00164343 [00:40:51]file doc_00164344 [00:40:51]remove file /storage/0445/doc_00164344 [00:40:51]file doc_00164345 [00:40:51]remove file /storage/0445/doc_00164345 [00:40:51]file doc_00164346 [00:40:51]remove file /storage/0445/doc_00164346 [00:40:51]file doc_00164347 [00:40:51]remove file /storage/0445/doc_00164347 [00:40:51]file doc_00164348 [00:40:51]remove file /storage/0445/doc_00164348 [00:40:51]file doc_00164349 [00:40:51]remove file /storage/0445/doc_00164349 [00:40:51]file doc_00164350 [00:40:51]remove file /storage/0445/doc_00164350 [00:40:51]file doc_00164351 [00:40:51]remove file /storage/0445/doc_00164351 [00:40:51]file doc_00164352 [00:40:51]remove file /storage/0445/doc_00164352 [00:40:51]file doc_00164353 [00:40:51]remove file /storage/0445/doc_00164353 [00:40:51]file doc_00164354 [00:40:51]remove file /storage/0445/doc_00164354 [00:40:51]file doc_00164355 [00:40:51]remove file /storage/0445/doc_00164355 [00:40:51]file doc_00164356 [00:40:51]remove file /storage/0445/doc_00164356 [00:40:51]file doc_00164357 [00:40:51]remove file /storage/0445/doc_00164357 [00:40:51]file doc_00164358 [00:40:51]remove file /storage/0445/doc_00164358 [00:40:51]file doc_00164359 [00:40:51]remove file /storage/0445/doc_00164359 [00:40:51]file doc_00164360 [00:40:51]remove file /storage/0445/doc_00164360 [00:40:51]file doc_00164361 [00:40:51]remove file /storage/0445/doc_00164361 [00:40:51]file doc_00164362 [00:40:51]remove file /storage/0445/doc_00164362 [00:40:51]file doc_00164363 [00:40:51]remove file /storage/0445/doc_00164363 [00:40:51]file doc_00164364 [00:40:51]remove file /storage/0445/doc_00164364 [00:40:51]file doc_00164365 [00:40:51]remove file /storage/0445/doc_00164365 [00:40:51]file doc_00164366 [00:40:51]remove file /storage/0445/doc_00164366 [00:40:51]file doc_00164367 [00:40:51]remove file /storage/0445/doc_00164367 [00:40:51]file doc_00164368 [00:40:51]remove file /storage/0445/doc_00164368 [00:40:51]file doc_00164369 [00:40:51]remove file /storage/0445/doc_00164369 [00:40:51]file doc_00164370 [00:40:51]remove file /storage/0445/doc_00164370 [00:40:51]file doc_00164371 [00:40:51]remove file /storage/0445/doc_00164371 [00:40:51]file doc_00164372 [00:40:51]remove file /storage/0445/doc_00164372 [00:40:51]file doc_00164373 [00:40:51]remove file /storage/0445/doc_00164373 [00:40:51]file doc_00164374 [00:40:51]remove file /storage/0445/doc_00164374 [00:40:51]file doc_00164375 [00:40:51]remove file /storage/0445/doc_00164375 [00:40:51]file doc_00164376 [00:40:51]remove file /storage/0445/doc_00164376 [00:40:51]file doc_00164377 [00:40:51]remove file /storage/0445/doc_00164377 [00:40:51]file doc_00164378 [00:40:51]remove file /storage/0445/doc_00164378 [00:40:51]file doc_00164379 [00:40:51]remove file /storage/0445/doc_00164379 [00:40:51]file doc_00164380 [00:40:51]remove file /storage/0445/doc_00164380 [00:40:51]file doc_00164381 [00:40:51]remove file /storage/0445/doc_00164381 [00:40:51]file doc_00164382 [00:40:51]remove file /storage/0445/doc_00164382 [00:40:51]file doc_00164383 [00:40:51]remove file /storage/0445/doc_00164383 [00:40:51]file doc_00164384 [00:40:51]remove file /storage/0445/doc_00164384 [00:40:51]file doc_00164385 [00:40:51]remove file /storage/0445/doc_00164385 [00:40:51]file doc_00164386 [00:40:51]remove file /storage/0445/doc_00164386 [00:40:51]file doc_00164387 [00:40:51]remove file /storage/0445/doc_00164387 [00:40:51]file doc_00164388 [00:40:51]remove file /storage/0445/doc_00164388 [00:40:51]file doc_00164389 [00:40:51]remove file /storage/0445/doc_00164389 [00:40:51]file doc_00164390 [00:40:51]remove file /storage/0445/doc_00164390 [00:40:51]file doc_00164391 [00:40:51]remove file /storage/0445/doc_00164391 [00:40:51]file doc_00164392 [00:40:51]remove file /storage/0445/doc_00164392 [00:40:51]file doc_00164393 [00:40:51]remove file /storage/0445/doc_00164393 [00:40:51]file doc_00164394 [00:40:51]remove file /storage/0445/doc_00164394 [00:40:51]file doc_00164395 [00:40:51]remove file /storage/0445/doc_00164395 [00:40:51]file doc_00164396 [00:40:51]remove file /storage/0445/doc_00164396 [00:40:51]file doc_00164397 [00:40:51]remove file /storage/0445/doc_00164397 [00:40:51]file doc_00164398 [00:40:51]remove file /storage/0445/doc_00164398 [00:40:51]file doc_00164399 [00:40:51]remove file /storage/0445/doc_00164399 [00:40:51]file doc_00164400 [00:40:51]remove file /storage/0445/doc_00164400 [00:40:51]file doc_00164401 [00:40:51]remove file /storage/0445/doc_00164401 [00:40:51]file doc_00164402 [00:40:51]remove file /storage/0445/doc_00164402 [00:40:51]file doc_00164403 [00:40:51]remove file /storage/0445/doc_00164403 [00:40:51]file doc_00164404 [00:40:51]remove file /storage/0445/doc_00164404 [00:40:51]file doc_00164405 [00:40:51]remove file /storage/0445/doc_00164405 [00:40:51]file doc_00164406 [00:40:51]remove file /storage/0445/doc_00164406 [00:40:51]file doc_00164407 [00:40:51]remove file /storage/0445/doc_00164407 [00:40:51]file doc_00164408 [00:40:51]remove file /storage/0445/doc_00164408 [00:40:51]file doc_00164409 [00:40:51]remove file /storage/0445/doc_00164409 [00:40:51]file doc_00164410 [00:40:51]remove file /storage/0445/doc_00164410 [00:40:51]file doc_00164411 [00:40:51]remove file /storage/0445/doc_00164411 [00:40:51]file doc_00164412 [00:40:51]remove file /storage/0445/doc_00164412 [00:40:51]file doc_00164413 [00:40:51]remove file /storage/0445/doc_00164413 [00:40:51]file doc_00164414 [00:40:51]remove file /storage/0445/doc_00164414 [00:40:51]file doc_00164415 [00:40:51]remove file /storage/0445/doc_00164415 [00:40:51]file doc_00164416 [00:40:51]remove file /storage/0445/doc_00164416 [00:40:51]file doc_00164417 [00:40:51]remove file /storage/0445/doc_00164417 [00:40:52]file doc_00164418 [00:40:52]remove file /storage/0445/doc_00164418 [00:40:52]file doc_00164419 [00:40:52]remove file /storage/0445/doc_00164419 [00:40:52]file doc_00164420 [00:40:52]remove file /storage/0445/doc_00164420 [00:40:52]file doc_00164421 [00:40:52]remove file /storage/0445/doc_00164421 [00:40:52]file doc_00164422 [00:40:52]remove file /storage/0445/doc_00164422 [00:40:52]file doc_00164423 [00:40:52]remove file /storage/0445/doc_00164423 [00:40:52]file doc_00164424 [00:40:52]remove file /storage/0445/doc_00164424 [00:40:52]file doc_00164425 [00:40:52]remove file /storage/0445/doc_00164425 [00:40:52]file doc_00164426 [00:40:52]remove file /storage/0445/doc_00164426 [00:40:52]file doc_00164427 [00:40:52]remove file /storage/0445/doc_00164427 [00:40:52]file doc_00164428 [00:40:52]remove file /storage/0445/doc_00164428 [00:40:52]file doc_00164429 [00:40:52]remove file /storage/0445/doc_00164429 [00:40:52]file doc_00164430 [00:40:52]remove file /storage/0445/doc_00164430 [00:40:52]file doc_00164431 [00:40:52]remove file /storage/0445/doc_00164431 [00:40:52]file doc_00164432 [00:40:52]remove file /storage/0445/doc_00164432 [00:40:52]file doc_00164433 [00:40:52]remove file /storage/0445/doc_00164433 [00:40:52]file doc_00164434 [00:40:52]remove file /storage/0445/doc_00164434 [00:40:52]file doc_00164435 [00:40:52]remove file /storage/0445/doc_00164435 [00:40:52]file doc_00164436 [00:40:52]remove file /storage/0445/doc_00164436 [00:40:52]file doc_00164437 [00:40:52]remove file /storage/0445/doc_00164437 [00:40:52]file doc_00164438 [00:40:52]remove file /storage/0445/doc_00164438 [00:40:52]file doc_00164439 [00:40:52]remove file /storage/0445/doc_00164439 [00:40:52]remove dir /storage/0445 [00:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=226 [00:40:52]tlvbuf is 00BB48A0 [00:40:52]SAM_PROTO_ClearQueue [00:40:52]wFMCommunicate request_size=4 [00:40:52]MH_SAM_APDU [00:40:52]CAPDU: 80 09 00 00 [00:40:52]Write to MH i2c: E2 08 00 29 00 80 09 00 00 00 00 00 00 9B [00:40:52]Write i2c OK [00:40:52]MH_I2C_Read... [00:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:52]Read from MH i2c: E2 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 03 00 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 03 00 29 00 00 90 00 9D [00:40:52]RAPDU: 90 00 [00:40:52]wFMCommunicate OK [00:40:52]SAM_PROTO_ClearQueue done [00:40:52]KKMCreateOFDPacket [00:40:52]OFDProtocolAddRootSTLVToBuf [00:40:52]FM_MakeSignedData [00:40:52]FM_MakeSignedData [00:40:52]SAM_PROTO_SignData [00:40:52]wFMCommunicate request_size=4 [00:40:52]MH_SAM_APDU [00:40:52]CAPDU: 80 0D 01 02 [00:40:52]Write to MH i2c: E2 08 00 2A 00 80 0D 01 02 00 00 00 00 A3 [00:40:52]Write i2c OK [00:40:52]MH_I2C_Read... [00:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:52]Read from MH i2c: E2 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 03 00 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 03 00 2A 00 00 90 00 9E [00:40:52]RAPDU: 90 00 [00:40:52]wFMCommunicate OK [00:40:52]wFMCommunicate request_size=235 [00:40:52]MH_SAM_APDU [00:40:52]CAPDU: 80 0D 02 02 E6 02 00 E2 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 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 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 11 CD 91 66 0E 04 04 00 BE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 36 C9 64 42 14 94 [00:40:52]Write to MH i2c: E2 EE 00 2B 00 80 0D 02 02 E6 00 02 00 E2 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 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 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 11 CD 91 66 0E 04 04 00 BE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 36 C9 64 42 14 94 00 00 E1 [00:40:52]Write i2c OK [00:40:52]MH_I2C_Read... [00:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:52]Read from MH i2c: E2 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 03 00 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [00:40:52]RAPDU: 90 00 [00:40:52]wFMCommunicate OK [00:40:52]wFMCommunicate request_size=4 [00:40:52]MH_SAM_APDU [00:40:52]CAPDU: 80 0D 03 02 [00:40:52]Write to MH i2c: E2 08 00 2C 00 80 0D 03 02 00 00 00 00 A7 [00:40:52]Write i2c OK [00:40:52]MH_I2C_Read... [00:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:52]Read from MH i2c: E2 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 0B 00 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 0B 00 2C 00 00 F8 AE 80 EE 5D C7 2A CA 90 00 D4 [00:40:52]RAPDU: F8 AE 80 EE 5D C7 2A CA 90 00 [00:40:52]wFMCommunicate OK [00:40:52]SAM_PROTO_SignData done [00:40:52]FM_MakeSignedData done [00:40:52]CreateOFDProtocolMessage [00:40:52]wFMCommunicate request_size=4 [00:40:52]MH_SAM_APDU [00:40:52]CAPDU: 80 11 00 00 [00:40:52]Write to MH i2c: E2 08 00 2D 00 80 11 00 00 00 00 00 00 A7 [00:40:52]Write i2c OK [00:40:52]MH_I2C_Read... [00:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:52]Read from MH i2c: E2 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 17 00 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 17 00 2D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [00:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:40:52]wFMCommunicate OK [00:40:52]CreateOFDProtocolMessage done [00:40:52]OFDSenderStorePacket 164440 [00:40:52]StoreOFDPacket docnum=164440 [00:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 F6 00 00 00 A9 34 EE 00 D7 A2 5A 02 01 00 02 00 E2 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 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 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 11 CD 91 66 0E 04 04 00 BE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 36 C9 64 42 14 94 F8 AE 80 EE 5D C7 2A CA [00:40:52]CheckFolder [00:40:52]dirname=/storage/ofd_packets [00:40:52]CheckFolder done [00:40:52]ProducePacketName [00:40:52]name=ofd_packets/00164440 [00:40:52]NVStorageSaveData ofd_packets/00164440 [00:40:52]File name is /storage/ofd_packets/00164440 [00:40:52]Write 276 bytes [00:40:52]NVStorageSaveData done [00:40:52]OFDSenderStorePacket done [00:40:52]KKMCreateOFDPacket done [00:40:52]NVStorageSaveData kkm_last_timestamp [00:40:52]File name is /storage/kkm_last_timestamp [00:40:52]Write 4 bytes [00:40:52]NVStorageSaveData done [00:40:52]ExternCall_PrintAddStr [00:40:52]wPrintStart [00:40:52]Write to MH i2c: 01 00 00 2E 00 2E [00:40:52]Write i2c OK [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: 01 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: 01 07 00 [00:40:52]MH_I2C_Read... [00:40:52]Read from MH i2c: 01 07 00 2E 00 00 00 00 00 00 FF 0F 43 [00:40:52]RasterBufferAndPrint [00:40:52]line Отчет об открытии смены [00:40:52]line ФФД: 1.0 [00:40:52]line ИНН: 02508201610067 [00:40:52]line Кассир: Женишбеков Т. [00:40:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:40:52]line Место: АЗС № 72 "Партнер Нефть" [00:40:52]line 13.07.2024 00:40 [00:40:52]line Смена: 446 [00:40:52]line РНМ: 0000000000090829 [00:40:52]line ЗНМ: 0300000160 [00:40:52]line ФД: 164440 [00:40:52]line ФМ: 0000000000874718 [00:40:52]line ФПД: 60238598378644 [00:40:52]written 0, free lines is 4095 [00:40:52]OFD Sender: Processing packet 164440 [packets to send 104, broken 103] [00:40:52]ProducePacketName [00:40:52]name=ofd_packets/00164440 [00:40:52]OFD Sender: To server: pG, [00:40:52]CommunicateWithHost lk.salyk.kg:30040 [00:40:52]ConnectInit lk.salyk.kg [00:40:52]Connected sock=10 [00:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 F6 00 00 00 A9 34 EE 00 D7 A2 5A 02 01 00 02 00 E2 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 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 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 11 CD 91 66 0E 04 04 00 BE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 36 C9 64 42 14 94 F8 AE 80 EE 5D C7 2A CA [00:40:53]Write to MH i2c: 01 00 00 3F 00 3F [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: 01 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: 01 07 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: 01 07 00 3F 00 00 00 00 00 00 02 0F 57 [00:40:53]RasterBufferAndPrint [00:40:53]line [00:40:53]line [00:40:53]line [00:40:53]line [00:40:53]line [00:40:53]written 0, free lines is 3867 [00:40:53]MH_Cut [00:40:53]Write to MH i2c: D1 01 00 46 00 01 18 [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: D1 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: D1 01 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: D1 01 00 46 00 00 17 [00:40:53]Write to MH i2c: 01 00 00 47 00 47 [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 9A 47 00 7D 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 34 37 31 38 10 04 04 00 58 82 02 00 F4 03 04 00 A5 73 91 66 B6 04 01 00 00 81 01 D1 35 87 2D D4 AD [00:40:53]CommunicateWithHost err = 0 [00:40:53]CheckOFDResponse [00:40:53]1017 (14) - 77093643461234 [00:40:53]1041 (16) - 0000000000874718 [00:40:53]1040 (4) - 164440 [00:40:53]1012 (4) - 12.07.2024 18:19 [00:40:53]1206 (1) - 0 [00:40:53]OFD Sender: Remove packet 164440 [00:40:53]ProducePacketName [00:40:53]name=ofd_packets/00164440 [00:40:53]NVStorageDeleteData [00:40:53]*** Cut start [00:40:53]*** Partial cut [00:40:53]*** CUTSNS_PIN = 1 [00:40:53]*** CUTSNS_PIN = 0 [00:40:53]*** Brake cut motor [00:40:53]OFD Sender: No OFD packet to send [00:40:53]Read from MH i2c: 01 [00:40:53]MH_I2C_Read... [00:40:53]*** Stop cut motor [00:40:53]*** Cut end [00:40:53]Read from MH i2c: 01 07 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 FF 0F 5C [00:40:53]process_action open_shift done [00:40:53]requested_data is exist [00:40:53]produce_requested_data [00:40:53]requested_item fd.num is exist - process it [00:40:53]SAM_PROTO_GetFieldsCounters [00:40:53]wFMCommunicate request_size=4 [00:40:53]MH_SAM_APDU [00:40:53]CAPDU: 80 13 00 00 [00:40:53]Write to MH i2c: E2 08 00 48 00 80 13 00 00 00 00 00 00 C4 [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:54]Read from MH i2c: E2 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 62 00 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 62 00 48 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [00:40: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:40:54]wFMCommunicate OK [00:40:54]SAM_PROTO_GetFieldsCounters done [00:40:54]requested_item shift.num is exist - process it [00:40:54]requested_item shift.opened is exist - process it [00:40:54]req_shift_opened [00:40:54]FM_GetShiftState [00:40:54]SAM_PROTO_GetShiftState [00:40:54]wFMCommunicate request_size=4 [00:40:54]MH_SAM_APDU [00:40:54]CAPDU: 80 13 01 00 [00:40:54]Write to MH i2c: E2 08 00 49 00 80 13 01 00 00 00 00 00 C6 [00:40:54]Write i2c OK [00:40:54]MH_I2C_Read... [00:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:54]Read from MH i2c: E2 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 0E 00 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 0E 00 49 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A7 [00:40:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:40:54]wFMCommunicate OK [00:40:54]SAM_PROTO_GetShiftState done [00:40:54]FM_GetShiftState done [00:40:54]req_shift_opened done [00:40:54]requested_item shift.open_date is exist - process it [00:40:54]req_shift_open_date [00:40:54]req_shift_open_date done [00:40:54]produce_requested_data done [00:40:54]produce_requested_data return {"fd.num":164440,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [00:40:54]process_action_free open_shift [00:40:54]json_value_free [00:40:54]json_value_free done [00:40:54]process_json_proto returns [00:40:54]Send response to host [00:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":164440,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [00:40:54]free response buf [00:40:54]execute_script done [00:40:54]execute_script returns [00:40:54]free content buf [00:40:54]Sock 7.Close socket [00:40:54]Sock 7.Thread stoped [00:40:54]accept exits with 5 [00:40:54]New connection [00:40:54]New thread 3067157860 created [00:40:54]Thread 3067301220 joined [00:40:54]Waiting for new connection... [00:40:54] Sock 5.Parse request [00:40:54]Sock 5.Check first char [00:40:54]Sock 5.First char is OK [00:40:54]request: POST /json_proto HTTP/1.0 [00:40:54]Method: POST [00:40:54]URL: /json_proto [00:40:54]Method is POST - this is cgi request [00:40:54]url: /json_proto [00:40:54]query_string will be loaded in cgi processing [00:40:54]execute_cgi json_proto POST (null) [00:40:54]execute_cgi path=json_proto method=POST [00:40:54]POST find Content-Length [00:40:54]Host: 172.17.56.4:8080 [00:40:54]Content-Length: 331 [00:40:54]Content-Type: application/json [00:40:54] [00:40:54]POST finish read [00:40:54]Found Content-Length = 331 [00:40:54]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:40:54]execute_script... [00:40:54]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:40:54]POST & json_proto [00:40:54]process_json_proto [00:40:54]json parsed OK: [00:40:54]protocol is kg_v1.0 [00:40:54]action value=get_value [00:40:54]process_action get_value [00:40:54]cmd_get_value [00:40:54]process_action get_value done [00:40:54]requested_data is exist [00:40:54]produce_requested_data [00:40:54]requested_item fm.sale.total is exist - process it [00:40:54]SAM_PROTO_GetFMData [00:40:54]wFMCommunicate request_size=4 [00:40:54]MH_SAM_APDU [00:40:54]CAPDU: 80 13 03 00 [00:40:54]Write to MH i2c: E2 08 00 4A 00 80 13 03 00 00 00 00 00 C9 [00:40:54]Write i2c OK [00:40:54]MH_I2C_Read... [00:40:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:40:54]Read from MH i2c: E2 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 FD 00 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: E2 FD 00 4A 00 00 C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 6B [00:40:54]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 D9 7E 02 00 69 04 A3 00 6F 04 04 00 CC 7D 02 00 B1 04 05 00 5D 39 A5 56 02 70 04 05 00 B1 42 AB 34 02 72 04 04 00 AC F6 F9 21 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 D6 FA 98 3F 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 56 8F 4C 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8C E2 58 EF 03 09 00 90 00 [00:40:54]wFMCommunicate OK [00:40:54]wFMCommunicate request_size=4 [00:40:54]MH_SAM_APDU [00:40:54]CAPDU: 80 17 00 00 [00:40:54]Write to MH i2c: E2 08 00 4B 00 80 17 00 00 00 00 00 00 CB [00:40:54]Write i2c OK [00:40:54]MH_I2C_Read... [00:40:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:55]Read from MH i2c: E2 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 FD 00 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 FD 00 4B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 14 [00:40:55]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:40:55]wFMCommunicate OK [00:40:55]wFMCommunicate request_size=4 [00:40:55]MH_SAM_APDU [00:40:55]CAPDU: 80 17 00 00 [00:40:55]Write to MH i2c: E2 08 00 4C 00 80 17 00 00 00 00 00 00 CC [00:40:55]Write i2c OK [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 [00:40:55]MH_I2C_Read... [00:40:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:55]Read from MH i2c: E2 FD 00 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 FD 00 4C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 E1 [00:40:55]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:40:55]wFMCommunicate OK [00:40:55]wFMCommunicate request_size=4 [00:40:55]MH_SAM_APDU [00:40:55]CAPDU: 80 17 00 00 [00:40:55]Write to MH i2c: E2 08 00 4D 00 80 17 00 00 00 00 00 00 CD [00:40:55]Write i2c OK [00:40:55]MH_I2C_Read... [00:40:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:55]Read from MH i2c: E2 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 FD 00 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 FD 00 4D 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 45 [00:40:56]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:40:56]wFMCommunicate OK [00:40:56]wFMCommunicate request_size=4 [00:40:56]MH_SAM_APDU [00:40:56]CAPDU: 80 17 00 00 [00:40:56]Write to MH i2c: E2 08 00 4E 00 80 17 00 00 00 00 00 00 CE [00:40:56]Write i2c OK [00:40:56]MH_I2C_Read... [00:40:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:40:56]Read from MH i2c: E2 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 E1 00 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 E1 00 4E 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BC [00:40:56]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:40:56]wFMCommunicate OK [00:40:56]SAM_PROTO_GetFMData done [00:40:56]requested_item fm.sale_refund.total is exist - process it [00:40:56]requested_item fm.buy.total is exist - process it [00:40:56]requested_item shift.sale.total is exist - process it [00:40:56]SAM_PROTO_GetShiftData [00:40:56]wFMCommunicate request_size=4 [00:40:56]MH_SAM_APDU [00:40:56]CAPDU: 80 13 02 00 [00:40:56]Write to MH i2c: E2 08 00 4F 00 80 13 02 00 00 00 00 00 CD [00:40:56]Write i2c OK [00:40:56]MH_I2C_Read... [00:40:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:40:57]Read from MH i2c: E2 [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: E2 FD 00 [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: E2 FD 00 4F 00 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 40 [00:40:57]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:40:57]wFMCommunicate OK [00:40:57]wFMCommunicate request_size=4 [00:40:57]MH_SAM_APDU [00:40:57]CAPDU: 80 17 00 00 [00:40:57]Write to MH i2c: E2 08 00 50 00 80 17 00 00 00 00 00 00 D0 [00:40:57]Write i2c OK [00:40:57]MH_I2C_Read... [00:40:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:57]Read from MH i2c: E2 [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: E2 FD 00 [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: E2 FD 00 50 00 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 D8 [00:40:57]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:40:57]wFMCommunicate OK [00:40:57]wFMCommunicate request_size=4 [00:40:57]MH_SAM_APDU [00:40:57]CAPDU: 80 17 00 00 [00:40:57]Write to MH i2c: E2 08 00 51 00 80 17 00 00 00 00 00 00 D1 [00:40:57]Write i2c OK [00:40:57]MH_I2C_Read... [00:40:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:58]Read from MH i2c: E2 [00:40:58]MH_I2C_Read... [00:40:58]Read from MH i2c: E2 FD 00 [00:40:58]MH_I2C_Read... [00:40:58]Read from MH i2c: E2 FD 00 51 00 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 A3 [00:40:58]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:40:58]wFMCommunicate OK [00:40:58]wFMCommunicate request_size=4 [00:40:58]MH_SAM_APDU [00:40:58]CAPDU: 80 17 00 00 [00:40:58]Write to MH i2c: E2 08 00 52 00 80 17 00 00 00 00 00 00 D2 [00:40:58]Write i2c OK [00:40:58]MH_I2C_Read... [00:40:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:58]Read from MH i2c: E2 [00:40:58]MH_I2C_Read... [00:40:58]Read from MH i2c: E2 FD 00 [00:40:58]MH_I2C_Read... [00:40:58]Read from MH i2c: E2 FD 00 52 00 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 44 [00:40:58]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:40:58]wFMCommunicate OK [00:40:58]wFMCommunicate request_size=4 [00:40:58]MH_SAM_APDU [00:40:58]CAPDU: 80 17 00 00 [00:40:58]Write to MH i2c: E2 08 00 53 00 80 17 00 00 00 00 00 00 D3 [00:40:58]Write i2c OK [00:40:58]MH_I2C_Read... [00:40:58]OFD Sender: No OFD packet to send [00:40:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:40:58]Read from MH i2c: E2 [00:40:58]MH_I2C_Read... [00:40:58]Read from MH i2c: E2 BD 00 [00:40:58]MH_I2C_Read... [00:40:58]Read from MH i2c: E2 BD 00 53 00 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 B9 [00:40:59]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:40:59]wFMCommunicate OK [00:40:59]SAM_PROTO_GetShiftData done [00:40:59]requested_item shift.sale.total_cash is exist - process it [00:40:59]requested_item shift.sale_refund.total is exist - process it [00:40:59]requested_item shift.sale_refund.total_cash is exist - process it [00:40:59]requested_item shift.buy.total is exist - process it [00:40:59]requested_item shift.buy.total_cash is exist - process it [00:40:59]produce_requested_data done [00:40:59]produce_requested_data return {"fm.sale.total":100436032.93,"fm.sale_refund.total":548463.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:40:59]process_action_free get_value [00:40:59]json_value_free [00:40:59]json_value_free done [00:40:59]process_json_proto returns [00:40:59]Send response to host [00:40:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100436032.93,"fm.sale_refund.total":548463.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:40:59]free response buf [00:40:59]execute_script done [00:40:59]execute_script returns [00:40:59]free content buf [00:40:59]Sock 5.Close socket [00:40:59]Sock 5.Thread stoped [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:34]accept exits with 7 [00:41:34]New connection [00:41:34]New thread 3067301220 created [00:41:34]Thread 3067157860 joined [00:41:34]Waiting for new connection... [00:41:34] Sock 7.Parse request [00:41:34]Sock 7.Check first char [00:41:34]Sock 7.First char is OK [00:41:34]request: POST /json_proto HTTP/1.0 [00:41:34]Method: POST [00:41:34]URL: /json_proto [00:41:34]Method is POST - this is cgi request [00:41:34]url: /json_proto [00:41:34]query_string will be loaded in cgi processing [00:41:34]execute_cgi json_proto POST (null) [00:41:34]execute_cgi path=json_proto method=POST [00:41:34]POST find Content-Length [00:41:34]Host: 172.17.56.4:8080 [00:41:34]Content-Length: 677 [00:41:34]Content-Type: application/json [00:41:34] [00:41:34]POST finish read [00:41:34]Found Content-Length = 677 [00:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:34]execute_script... [00:41:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:34]POST & json_proto [00:41:34]process_json_proto [00:41:34]json parsed OK: [00:41:34]protocol is kg_v1.0 [00:41:34]action value=close_receipt [00:41:34]process_action close_receipt [00:41:34]cmd_close_receipt [00:41:34]MH_GetDate [00:41:34]Write to MH i2c: F0 00 00 54 00 43 [00:41:34]Write i2c OK [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: F0 [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: F0 09 00 [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: F0 09 00 54 00 00 3E CD 91 66 C9 DC B2 64 09 [00:41:34]GetLastDocTimeStamp 1720831249 [00:41:34]current date 1720831294 [00:41:34]FM_GetShiftState [00:41:34]SAM_PROTO_GetShiftState [00:41:34]wFMCommunicate request_size=4 [00:41:34]MH_SAM_APDU [00:41:34]CAPDU: 80 13 01 00 [00:41:34]Write to MH i2c: E2 08 00 55 00 80 13 01 00 00 00 00 00 D2 [00:41:34]Write i2c OK [00:41:34]MH_I2C_Read... [00:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:34]Read from MH i2c: E2 [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: E2 0E 00 [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: E2 0E 00 55 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B3 [00:41:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:41:34]wFMCommunicate OK [00:41:34]SAM_PROTO_GetShiftState done [00:41:34]FM_GetShiftState done [00:41:34]opened in 1720831249 [00:41:34]opened+sec_in_day 1720917649 [00:41:34]quantity*price = 50008 [00:41:34]sum+1 = 50009 [00:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 1 13.07.2024 00:41 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164441 ФПД: 124316804944195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T004134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164441&fm=124316804944195&tin=02508201610067®Number=0000000000090829&sum=50000 [00:41:35]StoreToDocumentArchive [00:41:35]shift 446 fd 164441 [00:41:35]save to /storage/0446/doc_00164441 [00:41:35]save last doc name /storage/0446/doc_00164441 to /storage/kkm_last_doc_name [00:41:35]save OK [00:41:35]Clear old archive folders... [00:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:35]tlvbuf is 00B6DDB0 [00:41:35]SAM_PROTO_ClearQueue [00:41:35]wFMCommunicate request_size=4 [00:41:35]MH_SAM_APDU [00:41:35]CAPDU: 80 09 00 00 [00:41:35]Write to MH i2c: E2 08 00 62 00 80 09 00 00 00 00 00 00 D4 [00:41:35]Write i2c OK [00:41:35]MH_I2C_Read... [00:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:35]Read from MH i2c: E2 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 03 00 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [00:41:35]RAPDU: 90 00 [00:41:35]wFMCommunicate OK [00:41:35]SAM_PROTO_ClearQueue done [00:41:35]KKMCreateOFDPacket [00:41:35]OFDProtocolAddRootSTLVToBuf [00:41:35]FM_MakeSignedData [00:41:35]FM_MakeSignedData [00:41:35]SAM_PROTO_SignData [00:41:35]wFMCommunicate request_size=4 [00:41:35]MH_SAM_APDU [00:41:35]CAPDU: 80 0D 01 02 [00:41:35]Write to MH i2c: E2 08 00 63 00 80 0D 01 02 00 00 00 00 DC [00:41:35]Write i2c OK [00:41:35]MH_I2C_Read... [00:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:35]Read from MH i2c: E2 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 03 00 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 03 00 63 00 00 90 00 D7 [00:41:35]RAPDU: 90 00 [00:41:35]wFMCommunicate OK [00:41:35]wFMCommunicate request_size=255 [00:41:35]MH_SAM_APDU [00:41:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3E CD 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 82 02 00 35 04 06 00 71 [00:41:35]Write to MH i2c: E2 02 01 64 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3E CD 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 82 02 00 35 04 06 00 71 00 00 65 [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:36]Read from MH i2c: E2 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 03 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 03 00 64 00 00 90 00 D8 [00:41:36]RAPDU: 90 00 [00:41:36]wFMCommunicate OK [00:41:36]wFMCommunicate request_size=10 [00:41:36]MH_SAM_APDU [00:41:36]CAPDU: 80 0D 02 02 05 10 C2 FF 91 43 [00:41:36]Write to MH i2c: E2 0D 00 65 00 80 0D 02 02 05 00 10 C2 FF 91 43 00 00 8E [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:36]Read from MH i2c: E2 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 03 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 03 00 65 00 00 90 00 D9 [00:41:36]RAPDU: 90 00 [00:41:36]wFMCommunicate OK [00:41:36]wFMCommunicate request_size=4 [00:41:36]MH_SAM_APDU [00:41:36]CAPDU: 80 0D 03 02 [00:41:36]Write to MH i2c: E2 08 00 66 00 80 0D 03 02 00 00 00 00 E1 [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:36]Read from MH i2c: E2 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 0B 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 0B 00 66 00 00 D5 EE 9C B7 DB 70 31 0C 90 00 80 [00:41:36]RAPDU: D5 EE 9C B7 DB 70 31 0C 90 00 [00:41:36]wFMCommunicate OK [00:41:36]SAM_PROTO_SignData done [00:41:36]FM_MakeSignedData done [00:41:36]CreateOFDProtocolMessage [00:41:36]wFMCommunicate request_size=4 [00:41:36]MH_SAM_APDU [00:41:36]CAPDU: 80 11 00 00 [00:41:36]Write to MH i2c: E2 08 00 67 00 80 11 00 00 00 00 00 00 E1 [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:36]Read from MH i2c: E2 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 17 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 17 00 67 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [00:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:41:36]wFMCommunicate OK [00:41:36]CreateOFDProtocolMessage done [00:41:36]OFDSenderStorePacket 164441 [00:41:36]StoreOFDPacket docnum=164441 [00:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A EC 07 01 74 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3E CD 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 82 02 00 35 04 06 00 71 10 C2 FF 91 43 D5 EE 9C B7 DB 70 31 0C [00:41:36]CheckFolder [00:41:36]dirname=/storage/ofd_packets [00:41:36]CheckFolder done [00:41:36]ProducePacketName [00:41:36]name=ofd_packets/00164441 [00:41:36]NVStorageSaveData ofd_packets/00164441 [00:41:36]File name is /storage/ofd_packets/00164441 [00:41:36]Write 301 bytes [00:41:36]NVStorageSaveData done [00:41:36]OFDSenderStorePacket done [00:41:36]KKMCreateOFDPacket done [00:41:36]NVStorageSaveData kkm_last_timestamp [00:41:36]File name is /storage/kkm_last_timestamp [00:41:36]Write 4 bytes [00:41:36]NVStorageSaveData done [00:41:36]ExternCall_PrintAddStr [00:41:36]wPrintStart [00:41:36]Write to MH i2c: 01 00 00 68 00 68 [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: 01 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: 01 07 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 FF 0F 7D [00:41:36]RasterBufferAndPrint [00:41:36]line Счет N : (1)458527 [00:41:36]line ИНН: 02508201610067 [00:41:36]line Контрольно-Кассовый Чек [00:41:36]line ПРОДАЖА [00:41:36]line ТРК (МРК, ГНК) : 22 [00:41:36]line Товар: 2710124130 [00:41:36]line Аи-92-К-5 [00:41:36]line 7.600 * 65.80 [00:41:36]line = 500.08 [00:41:36]line НДС 12% НСП 1% [00:41:36]line > о реализуемом товаре [00:41:36]line ОКРУГЛЕНИЕ: -0.08 [00:41:36]line ИТОГО: 500.00 [00:41:36]line Внесено: 500.00 [00:41:36]line СДАЧА: 0.00 [00:41:36]line НСП 1% : 4.42 [00:41:36]line НДС 12% : 53.11 [00:41:36]line Наличными: 500.00 [00:41:36]line Безнал.: 0.00 [00:41:36]line Место: АЗС № 72 "Партнер Нефть" [00:41:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:41:36]line СНО: Общий режим [00:41:36]line Чек 1 13.07.2024 00:41 [00:41:36]line Смена: 446 ФФД: 1.0 [00:41:36]line ЗНМ: 0300000160 [00:41:36]line РНМ: 0000000000090829 [00:41:36]line Версия ККМ: 001 [00:41:36]line ФМ: 0000000000874718 [00:41:36]line ФД: 164441 [00:41:36]line ФПД: 124316804944195 [00:41:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T004134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164441&fm=124316804944195&tin=02508201610067®Number=0000000000090829&sum=50000 [00:41:36]written 0, free lines is 4095 [00:41:36]OFD Sender: Processing packet 164441 [packets to send 104, broken 103] [00:41:36]ProducePacketName [00:41:36]name=ofd_packets/00164441 [00:41:36]OFD Sender: To server: pG, [00:41:36]CommunicateWithHost lk.salyk.kg:30040 [00:41:36]ConnectInit lk.salyk.kg [00:41:36]Connected sock=11 [00:41:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A EC 07 01 74 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3E CD 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 82 02 00 35 04 06 00 71 10 C2 FF 91 43 D5 EE 9C B7 DB 70 31 0C [00:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 56 47 00 21 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 34 37 31 38 10 04 04 00 59 82 02 00 F4 03 04 00 D1 73 91 66 B6 04 01 00 00 0E 14 D0 61 72 1D 74 F7 [00:41:36]CommunicateWithHost err = 0 [00:41:36]CheckOFDResponse [00:41:36]1017 (14) - 77093643461234 [00:41:36]1041 (16) - 0000000000874718 [00:41:36]1040 (4) - 164441 [00:41:36]1012 (4) - 12.07.2024 18:20 [00:41:36]1206 (1) - 0 [00:41:36]OFD Sender: Remove packet 164441 [00:41:36]ProducePacketName [00:41:36]name=ofd_packets/00164441 [00:41:36]NVStorageDeleteData [00:41:36]Write to MH i2c: 01 00 00 92 00 92 [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: 01 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: 01 07 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: 01 07 00 92 00 00 00 00 00 00 ED 0C 92 [00:41:36]RasterBufferAndPrint [00:41:36]line [00:41:36]line [00:41:36]line [00:41:36]line [00:41:36]line [00:41:36]written 0, free lines is 3322 [00:41:36]MH_Cut [00:41:36]Write to MH i2c: D1 01 00 99 00 01 6B [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: D1 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: D1 01 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: D1 01 00 99 00 00 6A [00:41:36]Write to MH i2c: 01 00 00 9A 00 9A [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:37]OFD Sender: No OFD packet to send [00:41:37]*** Cut start [00:41:37]*** Partial cut [00:41:37]*** CUTSNS_PIN = 1 [00:41:37]*** CUTSNS_PIN = 0 [00:41:37]*** Brake cut motor [00:41:38]Read from MH i2c: 01 [00:41:38]MH_I2C_Read... [00:41:38]*** Stop cut motor [00:41:38]*** Cut end [00:41:38]Read from MH i2c: 01 07 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 FF 0F AF [00:41:38]process_action close_receipt done [00:41:38]requested_data is exist [00:41:38]produce_requested_data [00:41:38]requested_item fm.sn is exist - process it [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 11 00 00 [00:41:38]Write to MH i2c: E2 08 00 9B 00 80 11 00 00 00 00 00 00 15 [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 17 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 17 00 9B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6B [00:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:41:38]wFMCommunicate OK [00:41:38]requested_item fd.num is exist - process it [00:41:38]SAM_PROTO_GetFieldsCounters [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 13 00 00 [00:41:38]Write to MH i2c: E2 08 00 9C 00 80 13 00 00 00 00 00 00 18 [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 62 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 62 00 9C 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [00:41:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:38]wFMCommunicate OK [00:41:38]SAM_PROTO_GetFieldsCounters done [00:41:38]requested_item shift.num is exist - process it [00:41:38]requested_item shift.opened is exist - process it [00:41:38]req_shift_opened [00:41:38]FM_GetShiftState [00:41:38]SAM_PROTO_GetShiftState [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 13 01 00 [00:41:38]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 0E 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FB [00:41:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:41:38]wFMCommunicate OK [00:41:38]SAM_PROTO_GetShiftState done [00:41:38]FM_GetShiftState done [00:41:38]req_shift_opened done [00:41:38]requested_item shift.open_date is exist - process it [00:41:38]req_shift_open_date [00:41:38]req_shift_open_date done [00:41:38]produce_requested_data done [00:41:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164441,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [00:41:38]process_action_free close_receipt [00:41:38]json_value_free [00:41:38]json_value_free done [00:41:38]process_json_proto returns [00:41:38]Send response to host [00:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164441,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [00:41:38]free response buf [00:41:38]execute_script done [00:41:38]execute_script returns [00:41:38]free content buf [00:41:38]Sock 7.Close socket [00:41:38]Sock 7.Thread stoped [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:34]accept exits with 9 [00:44:34]New connection [00:44:34]New thread 3067157860 created [00:44:34]Thread 3067301220 joined [00:44:34]Waiting for new connection... [00:44:34] Sock 9.Parse request [00:44:34]Sock 9.Check first char [00:44:34]Sock 9.First char is OK [00:44:34]request: POST /json_proto HTTP/1.0 [00:44:34]Method: POST [00:44:34]URL: /json_proto [00:44:34]Method is POST - this is cgi request [00:44:34]url: /json_proto [00:44:34]query_string will be loaded in cgi processing [00:44:34]execute_cgi json_proto POST (null) [00:44:34]execute_cgi path=json_proto method=POST [00:44:34]POST find Content-Length [00:44:34]Host: 172.17.56.4:8080 [00:44:34]Content-Length: 677 [00:44:34]Content-Type: application/json [00:44:34] [00:44:34]POST finish read [00:44:34]Found Content-Length = 677 [00:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:44:34]execute_script... [00:44:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:44:34]POST & json_proto [00:44:34]process_json_proto [00:44:34]json parsed OK: [00:44:34]protocol is kg_v1.0 [00:44:34]action value=close_receipt [00:44:34]process_action close_receipt [00:44:34]cmd_close_receipt [00:44:34]MH_GetDate [00:44:34]Write to MH i2c: F0 00 00 9E 00 8D [00:44:34]Write i2c OK [00:44:34]MH_I2C_Read... [00:44:34]Read from MH i2c: F0 [00:44:34]MH_I2C_Read... [00:44:34]Read from MH i2c: F0 09 00 [00:44:34]MH_I2C_Read... [00:44:34]Read from MH i2c: F0 09 00 9E 00 00 F3 CD 91 66 C9 DC B2 64 08 [00:44:34]GetLastDocTimeStamp 1720831294 [00:44:34]current date 1720831475 [00:44:34]FM_GetShiftState [00:44:34]SAM_PROTO_GetShiftState [00:44:34]wFMCommunicate request_size=4 [00:44:34]MH_SAM_APDU [00:44:34]CAPDU: 80 13 01 00 [00:44:34]Write to MH i2c: E2 08 00 9F 00 80 13 01 00 00 00 00 00 1C [00:44:34]Write i2c OK [00:44:34]MH_I2C_Read... [00:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:35]Read from MH i2c: E2 [00:44:35]MH_I2C_Read... [00:44:35]Read from MH i2c: E2 0E 00 [00:44:35]MH_I2C_Read... [00:44:35]Read from MH i2c: E2 0E 00 9F 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FD [00:44:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:44:35]wFMCommunicate OK [00:44:35]SAM_PROTO_GetShiftState done [00:44:35]FM_GetShiftState done [00:44:35]opened in 1720831249 [00:44:35]opened+sec_in_day 1720917649 [00:44:35]quantity*price = 20003 [00:44:35]sum+1 = 20004 [00:44: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 2 13.07.2024 00:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164442 ФПД: 104067476640623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T004435&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164442&fm=104067476640623&tin=02508201610067®Number=0000000000090829&sum=20000 [00:44:36]StoreToDocumentArchive [00:44:36]shift 446 fd 164442 [00:44:36]save to /storage/0446/doc_00164442 [00:44:36]save last doc name /storage/0446/doc_00164442 to /storage/kkm_last_doc_name [00:44:36]save OK [00:44:36]Clear old archive folders... [00:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:44:36]tlvbuf is 00B6CF00 [00:44:36]SAM_PROTO_ClearQueue [00:44:36]wFMCommunicate request_size=4 [00:44:36]MH_SAM_APDU [00:44:36]CAPDU: 80 09 00 00 [00:44:36]Write to MH i2c: E2 08 00 AC 00 80 09 00 00 00 00 00 00 1E [00:44:36]Write i2c OK [00:44:36]MH_I2C_Read... [00:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:44:36]Read from MH i2c: E2 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 03 00 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [00:44:36]RAPDU: 90 00 [00:44:36]wFMCommunicate OK [00:44:36]SAM_PROTO_ClearQueue done [00:44:36]KKMCreateOFDPacket [00:44:36]OFDProtocolAddRootSTLVToBuf [00:44:36]FM_MakeSignedData [00:44:36]FM_MakeSignedData [00:44:36]SAM_PROTO_SignData [00:44:36]wFMCommunicate request_size=4 [00:44:36]MH_SAM_APDU [00:44:36]CAPDU: 80 0D 01 02 [00:44:36]Write to MH i2c: E2 08 00 AD 00 80 0D 01 02 00 00 00 00 26 [00:44:36]Write i2c OK [00:44:36]MH_I2C_Read... [00:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:44:36]Read from MH i2c: E2 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 03 00 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [00:44:36]RAPDU: 90 00 [00:44:36]wFMCommunicate OK [00:44:36]wFMCommunicate request_size=255 [00:44:36]MH_SAM_APDU [00:44:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 02 00 00 00 F4 03 04 00 F3 CD 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 82 02 00 35 04 06 00 5E [00:44:36]Write to MH i2c: E2 02 01 AE 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 02 00 00 00 F4 03 04 00 F3 CD 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 82 02 00 35 04 06 00 5E 00 00 F4 [00:44:36]Write i2c OK [00:44:36]MH_I2C_Read... [00:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:36]Read from MH i2c: E2 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 03 00 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 03 00 AE 00 00 90 00 22 [00:44:36]RAPDU: 90 00 [00:44:36]wFMCommunicate OK [00:44:36]wFMCommunicate request_size=10 [00:44:36]MH_SAM_APDU [00:44:36]CAPDU: 80 0D 02 02 05 A6 18 FA 53 6F [00:44:36]Write to MH i2c: E2 0D 00 AF 00 80 0D 02 02 05 00 A6 18 FA 53 6F 00 00 AD [00:44:36]Write i2c OK [00:44:36]MH_I2C_Read... [00:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:36]Read from MH i2c: E2 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 03 00 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [00:44:36]RAPDU: 90 00 [00:44:36]wFMCommunicate OK [00:44:36]wFMCommunicate request_size=4 [00:44:36]MH_SAM_APDU [00:44:36]CAPDU: 80 0D 03 02 [00:44:36]Write to MH i2c: E2 08 00 B0 00 80 0D 03 02 00 00 00 00 2B [00:44:36]Write i2c OK [00:44:36]MH_I2C_Read... [00:44:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:44:36]Read from MH i2c: E2 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 0B 00 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 0B 00 B0 00 00 CE 85 DE DE 4D 45 16 DF 90 00 C2 [00:44:36]RAPDU: CE 85 DE DE 4D 45 16 DF 90 00 [00:44:36]wFMCommunicate OK [00:44:36]SAM_PROTO_SignData done [00:44:36]FM_MakeSignedData done [00:44:36]CreateOFDProtocolMessage [00:44:36]wFMCommunicate request_size=4 [00:44:36]MH_SAM_APDU [00:44:36]CAPDU: 80 11 00 00 [00:44:36]Write to MH i2c: E2 08 00 B1 00 80 11 00 00 00 00 00 00 2B [00:44:36]Write i2c OK [00:44:36]MH_I2C_Read... [00:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:36]Read from MH i2c: E2 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 17 00 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: E2 17 00 B1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [00:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:44:36]wFMCommunicate OK [00:44:36]CreateOFDProtocolMessage done [00:44:36]OFDSenderStorePacket 164442 [00:44:36]StoreOFDPacket docnum=164442 [00:44:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B1 56 07 01 42 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 02 00 00 00 F4 03 04 00 F3 CD 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 82 02 00 35 04 06 00 5E A6 18 FA 53 6F CE 85 DE DE 4D 45 16 DF [00:44:36]CheckFolder [00:44:36]dirname=/storage/ofd_packets [00:44:36]CheckFolder done [00:44:36]ProducePacketName [00:44:36]name=ofd_packets/00164442 [00:44:36]NVStorageSaveData ofd_packets/00164442 [00:44:36]File name is /storage/ofd_packets/00164442 [00:44:36]Write 301 bytes [00:44:36]NVStorageSaveData done [00:44:36]OFDSenderStorePacket done [00:44:36]KKMCreateOFDPacket done [00:44:36]NVStorageSaveData kkm_last_timestamp [00:44:36]File name is /storage/kkm_last_timestamp [00:44:36]Write 4 bytes [00:44:36]NVStorageSaveData done [00:44:36]ExternCall_PrintAddStr [00:44:36]wPrintStart [00:44:36]Write to MH i2c: 01 00 00 B2 00 B2 [00:44:36]Write i2c OK [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: 01 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: 01 07 00 [00:44:36]MH_I2C_Read... [00:44:36]Read from MH i2c: 01 07 00 B2 00 00 00 00 00 00 FF 0F C7 [00:44:36]RasterBufferAndPrint [00:44:36]line Счет N : (1)458528 [00:44:36]line ИНН: 02508201610067 [00:44:36]line Контрольно-Кассовый Чек [00:44:36]line ПРОДАЖА [00:44:36]line ТРК (МРК, ГНК) : 12 [00:44:36]line Товар: 2710124130 [00:44:36]line Аи-92-К-5 [00:44:36]line 3.040 * 65.80 [00:44:36]line = 200.03 [00:44:36]line НДС 12% НСП 1% [00:44:36]line > о реализуемом товаре [00:44:36]line ОКРУГЛЕНИЕ: -0.03 [00:44:36]line ИТОГО: 200.00 [00:44:36]line Внесено: 200.00 [00:44:36]line СДАЧА: 0.00 [00:44:36]line НСП 1% : 1.77 [00:44:36]line НДС 12% : 21.24 [00:44:36]line Наличными: 200.00 [00:44:36]line Безнал.: 0.00 [00:44:36]line Место: АЗС № 72 "Партнер Нефть" [00:44:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:44:36]line СНО: Общий режим [00:44:36]line Чек 2 13.07.2024 00:44 [00:44:36]line Смена: 446 ФФД: 1.0 [00:44:36]line ЗНМ: 0300000160 [00:44:36]line РНМ: 0000000000090829 [00:44:36]line Версия ККМ: 001 [00:44:36]line ФМ: 0000000000874718 [00:44:36]line ФД: 164442 [00:44:36]line ФПД: 104067476640623 [00:44:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T004435&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164442&fm=104067476640623&tin=02508201610067®Number=0000000000090829&sum=20000 [00:44:36]written 0, free lines is 4095 [00:44:36]OFD Sender: Processing packet 164442 [packets to send 104, broken 103] [00:44:36]ProducePacketName [00:44:36]name=ofd_packets/00164442 [00:44:36]OFD Sender: To server: pG, [00:44:36]CommunicateWithHost lk.salyk.kg:30040 [00:44:36]ConnectInit lk.salyk.kg [00:44:36]Connected sock=10 [00:44:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B1 56 07 01 42 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 02 00 00 00 F4 03 04 00 F3 CD 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 82 02 00 35 04 06 00 5E A6 18 FA 53 6F CE 85 DE DE 4D 45 16 DF [00:44:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE C3 47 00 DE 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 82 02 00 F4 03 04 00 85 74 91 66 B6 04 01 00 00 AC D7 9F F2 17 7E 80 9A [00:44:37]CommunicateWithHost err = 0 [00:44:37]CheckOFDResponse [00:44:37]1017 (14) - 77093643461234 [00:44:37]1041 (16) - 0000000000874718 [00:44:37]1040 (4) - 164442 [00:44:37]1012 (4) - 12.07.2024 18:23 [00:44:37]1206 (1) - 0 [00:44:37]OFD Sender: Remove packet 164442 [00:44:37]ProducePacketName [00:44:37]name=ofd_packets/00164442 [00:44:37]NVStorageDeleteData [00:44:37]Write to MH i2c: 01 00 00 DC 00 DC [00:44:37]Write i2c OK [00:44:37]MH_I2C_Read... [00:44:37]Read from MH i2c: 01 [00:44:37]MH_I2C_Read... [00:44:37]Read from MH i2c: 01 07 00 [00:44:37]MH_I2C_Read... [00:44:37]Read from MH i2c: 01 07 00 DC 00 00 00 00 00 00 EE 0C DD [00:44:37]RasterBufferAndPrint [00:44:37]line [00:44:37]line [00:44:37]line [00:44:37]line [00:44:37]line [00:44:37]written 0, free lines is 3316 [00:44:37]MH_Cut [00:44:37]Write to MH i2c: D1 01 00 E3 00 01 B5 [00:44:37]Write i2c OK [00:44:37]MH_I2C_Read... [00:44:37]Read from MH i2c: D1 [00:44:37]MH_I2C_Read... [00:44:37]Read from MH i2c: D1 01 00 [00:44:37]MH_I2C_Read... [00:44:37]Read from MH i2c: D1 01 00 E3 00 00 B4 [00:44:37]Write to MH i2c: 01 00 00 E4 00 E4 [00:44:37]Write i2c OK [00:44:37]MH_I2C_Read... [00:44:37]OFD Sender: No OFD packet to send [00:44:37]*** Cut start [00:44:37]*** Partial cut [00:44:37]*** CUTSNS_PIN = 1 [00:44:37]*** CUTSNS_PIN = 0 [00:44:38]*** Brake cut motor [00:44:38]Read from MH i2c: 01 [00:44:38]MH_I2C_Read... [00:44:38]*** Stop cut motor [00:44:38]*** Cut end [00:44:38]Read from MH i2c: 01 07 00 [00:44:38]MH_I2C_Read... [00:44:38]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FF 0F F9 [00:44:38]process_action close_receipt done [00:44:38]requested_data is exist [00:44:38]produce_requested_data [00:44:38]requested_item fm.sn is exist - process it [00:44:38]wFMCommunicate request_size=4 [00:44:38]MH_SAM_APDU [00:44:38]CAPDU: 80 11 00 00 [00:44:38]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [00:44:38]Write i2c OK [00:44:38]MH_I2C_Read... [00:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:38]Read from MH i2c: E2 [00:44:38]MH_I2C_Read... [00:44:38]Read from MH i2c: E2 17 00 [00:44:38]MH_I2C_Read... [00:44:38]Read from MH i2c: E2 17 00 E5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B5 [00:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:44:38]wFMCommunicate OK [00:44:38]requested_item fd.num is exist - process it [00:44:38]SAM_PROTO_GetFieldsCounters [00:44:38]wFMCommunicate request_size=4 [00:44:38]MH_SAM_APDU [00:44:38]CAPDU: 80 13 00 00 [00:44:38]Write to MH i2c: E2 08 00 E6 00 80 13 00 00 00 00 00 00 62 [00:44:38]Write i2c OK [00:44:38]MH_I2C_Read... [00:44:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:38]Read from MH i2c: E2 [00:44:38]MH_I2C_Read... [00:44:38]Read from MH i2c: E2 62 00 [00:44:38]MH_I2C_Read... [00:44:38]Read from MH i2c: E2 62 00 E6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [00:44:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:44:38]wFMCommunicate OK [00:44:38]SAM_PROTO_GetFieldsCounters done [00:44:38]requested_item shift.num is exist - process it [00:44:38]requested_item shift.opened is exist - process it [00:44:38]req_shift_opened [00:44:38]FM_GetShiftState [00:44:38]SAM_PROTO_GetShiftState [00:44:38]wFMCommunicate request_size=4 [00:44:38]MH_SAM_APDU [00:44:38]CAPDU: 80 13 01 00 [00:44:38]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [00:44:38]Write i2c OK [00:44:38]MH_I2C_Read... [00:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:38]Read from MH i2c: E2 [00:44:38]MH_I2C_Read... [00:44:38]Read from MH i2c: E2 0E 00 [00:44:38]MH_I2C_Read... [00:44:38]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 45 [00:44:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:44:38]wFMCommunicate OK [00:44:38]SAM_PROTO_GetShiftState done [00:44:38]FM_GetShiftState done [00:44:38]req_shift_opened done [00:44:38]requested_item shift.open_date is exist - process it [00:44:38]req_shift_open_date [00:44:38]req_shift_open_date done [00:44:38]produce_requested_data done [00:44:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164442,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [00:44:38]process_action_free close_receipt [00:44:38]json_value_free [00:44:38]json_value_free done [00:44:38]process_json_proto returns [00:44:38]Send response to host [00:44:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164442,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [00:44:38]free response buf [00:44:38]execute_script done [00:44:38]execute_script returns [00:44:38]free content buf [00:44:38]Sock 9.Close socket [00:44:38]Sock 9.Thread stoped [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]accept exits with 7 [00:46:17]New connection [00:46:17]New thread 3067301220 created [00:46:17]Thread 3067157860 joined [00:46:17]Waiting for new connection... [00:46:17] Sock 7.Parse request [00:46:17]Sock 7.Check first char [00:46:17]Sock 7.First char is OK [00:46:17]request: POST /json_proto HTTP/1.0 [00:46:17]Method: POST [00:46:17]URL: /json_proto [00:46:17]Method is POST - this is cgi request [00:46:17]url: /json_proto [00:46:17]query_string will be loaded in cgi processing [00:46:17]execute_cgi json_proto POST (null) [00:46:17]execute_cgi path=json_proto method=POST [00:46:17]POST find Content-Length [00:46:17]Host: 172.17.56.4:8080 [00:46:17]Content-Length: 675 [00:46:17]Content-Type: application/json [00:46:17] [00:46:17]POST finish read [00:46:17]Found Content-Length = 675 [00:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:17]execute_script... [00:46: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)458529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:17]POST & json_proto [00:46:17]process_json_proto [00:46:17]json parsed OK: [00:46:17]protocol is kg_v1.0 [00:46:17]action value=close_receipt [00:46:17]process_action close_receipt [00:46:17]cmd_close_receipt [00:46:17]MH_GetDate [00:46:17]Write to MH i2c: F0 00 00 E8 00 D7 [00:46:17]Write i2c OK [00:46:17]MH_I2C_Read... [00:46:17]Read from MH i2c: F0 [00:46:17]MH_I2C_Read... [00:46:17]Read from MH i2c: F0 09 00 [00:46:17]MH_I2C_Read... [00:46:17]Read from MH i2c: F0 09 00 E8 00 00 59 CE 91 66 C9 DC B2 64 B9 [00:46:17]GetLastDocTimeStamp 1720831475 [00:46:17]current date 1720831577 [00:46:17]FM_GetShiftState [00:46:17]SAM_PROTO_GetShiftState [00:46:17]wFMCommunicate request_size=4 [00:46:17]MH_SAM_APDU [00:46:17]CAPDU: 80 13 01 00 [00:46:17]Write to MH i2c: E2 08 00 E9 00 80 13 01 00 00 00 00 00 66 [00:46:17]Write i2c OK [00:46:17]MH_I2C_Read... [00:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:17]Read from MH i2c: E2 [00:46:17]MH_I2C_Read... [00:46:17]Read from MH i2c: E2 0E 00 [00:46:17]MH_I2C_Read... [00:46:17]Read from MH i2c: E2 0E 00 E9 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 47 [00:46:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:46:17]wFMCommunicate OK [00:46:17]SAM_PROTO_GetShiftState done [00:46:17]FM_GetShiftState done [00:46:17]opened in 1720831249 [00:46:17]opened+sec_in_day 1720917649 [00:46:17]quantity*price = 90018 [00:46:17]sum+1 = 90020 [00:46:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 3 13.07.2024 00:46 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164443 ФПД: 144133415930511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T004617&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164443&fm=144133415930511&tin=02508201610067®Number=0000000000090829&sum=90000 [00:46:18]StoreToDocumentArchive [00:46:18]shift 446 fd 164443 [00:46:18]save to /storage/0446/doc_00164443 [00:46:18]save last doc name /storage/0446/doc_00164443 to /storage/kkm_last_doc_name [00:46:18]save OK [00:46:18]Clear old archive folders... [00:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:46:18]tlvbuf is 00BE4D40 [00:46:18]SAM_PROTO_ClearQueue [00:46:18]wFMCommunicate request_size=4 [00:46:18]MH_SAM_APDU [00:46:18]CAPDU: 80 09 00 00 [00:46:18]Write to MH i2c: E2 08 00 F6 00 80 09 00 00 00 00 00 00 68 [00:46:18]Write i2c OK [00:46:18]MH_I2C_Read... [00:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:18]Read from MH i2c: E2 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 03 00 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [00:46:18]RAPDU: 90 00 [00:46:18]wFMCommunicate OK [00:46:18]SAM_PROTO_ClearQueue done [00:46:18]KKMCreateOFDPacket [00:46:18]OFDProtocolAddRootSTLVToBuf [00:46:18]FM_MakeSignedData [00:46:18]FM_MakeSignedData [00:46:18]SAM_PROTO_SignData [00:46:18]wFMCommunicate request_size=4 [00:46:18]MH_SAM_APDU [00:46:18]CAPDU: 80 0D 01 02 [00:46:18]Write to MH i2c: E2 08 00 F7 00 80 0D 01 02 00 00 00 00 70 [00:46:18]Write i2c OK [00:46:18]MH_I2C_Read... [00:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:18]Read from MH i2c: E2 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 03 00 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [00:46:18]RAPDU: 90 00 [00:46:18]wFMCommunicate OK [00:46:18]wFMCommunicate request_size=255 [00:46:18]MH_SAM_APDU [00:46: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 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 59 CE 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 82 02 00 35 04 06 00 83 16 AD 0E [00:46:18]Write to MH i2c: E2 02 01 F8 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 59 CE 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 82 02 00 35 04 06 00 83 16 AD 0E 00 00 AF [00:46:18]Write i2c OK [00:46:18]MH_I2C_Read... [00:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:18]Read from MH i2c: E2 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 03 00 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [00:46:18]RAPDU: 90 00 [00:46:18]wFMCommunicate OK [00:46:18]wFMCommunicate request_size=7 [00:46:18]MH_SAM_APDU [00:46:18]CAPDU: 80 0D 02 02 02 8A 8F [00:46:18]Write to MH i2c: E2 0A 00 F9 00 80 0D 02 02 02 00 8A 8F 00 00 90 [00:46:18]Write i2c OK [00:46:18]MH_I2C_Read... [00:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:18]Read from MH i2c: E2 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 03 00 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [00:46:18]RAPDU: 90 00 [00:46:18]wFMCommunicate OK [00:46:18]wFMCommunicate request_size=4 [00:46:18]MH_SAM_APDU [00:46:18]CAPDU: 80 0D 03 02 [00:46:18]Write to MH i2c: E2 08 00 FA 00 80 0D 03 02 00 00 00 00 75 [00:46:18]Write i2c OK [00:46:18]MH_I2C_Read... [00:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:18]Read from MH i2c: E2 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 0B 00 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 0B 00 FA 00 00 FE 65 91 20 C9 DE 78 3F 90 00 E8 [00:46:18]RAPDU: FE 65 91 20 C9 DE 78 3F 90 00 [00:46:18]wFMCommunicate OK [00:46:18]SAM_PROTO_SignData done [00:46:18]FM_MakeSignedData done [00:46:18]CreateOFDProtocolMessage [00:46:18]wFMCommunicate request_size=4 [00:46:18]MH_SAM_APDU [00:46:18]CAPDU: 80 11 00 00 [00:46:18]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [00:46:18]Write i2c OK [00:46:18]MH_I2C_Read... [00:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:18]Read from MH i2c: E2 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 17 00 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [00:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:46:18]wFMCommunicate OK [00:46:18]CreateOFDProtocolMessage done [00:46:18]OFDSenderStorePacket 164443 [00:46:18]StoreOFDPacket docnum=164443 [00:46:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 30 28 04 01 17 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 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 59 CE 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 82 02 00 35 04 06 00 83 16 AD 0E 8A 8F FE 65 91 20 C9 DE 78 3F [00:46:18]CheckFolder [00:46:18]dirname=/storage/ofd_packets [00:46:18]CheckFolder done [00:46:18]ProducePacketName [00:46:18]name=ofd_packets/00164443 [00:46:18]NVStorageSaveData ofd_packets/00164443 [00:46:18]File name is /storage/ofd_packets/00164443 [00:46:18]Write 298 bytes [00:46:18]NVStorageSaveData done [00:46:18]OFDSenderStorePacket done [00:46:18]KKMCreateOFDPacket done [00:46:18]NVStorageSaveData kkm_last_timestamp [00:46:18]File name is /storage/kkm_last_timestamp [00:46:18]Write 4 bytes [00:46:18]NVStorageSaveData done [00:46:18]ExternCall_PrintAddStr [00:46:18]wPrintStart [00:46:18]Write to MH i2c: 01 00 00 FC 00 FC [00:46:18]Write i2c OK [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: 01 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: 01 07 00 [00:46:18]MH_I2C_Read... [00:46:18]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 FF 0F 11 [00:46:18]RasterBufferAndPrint [00:46:18]line Счет N : (1)458529 [00:46:18]line ИНН: 02508201610067 [00:46:18]line Контрольно-Кассовый Чек [00:46:18]line ПРОДАЖА [00:46:18]line ТРК (МРК, ГНК) : 11 [00:46:18]line Товар: 2710194210 [00:46:18]line ДТ-К-5 [00:46:18]line 12.520 * 71.90 [00:46:18]line = 900.19 [00:46:18]line НДС 12% НСП 1% [00:46:18]line > о реализуемом товаре [00:46:18]line ОКРУГЛЕНИЕ: -0.19 [00:46:18]line ИТОГО: 900.00 [00:46:18]line Внесено: 900.00 [00:46:18]line СДАЧА: 0.00 [00:46:18]line НСП 1% : 7.97 [00:46:18]line НДС 12% : 95.59 [00:46:18]line Наличными: 900.00 [00:46:18]line Безнал.: 0.00 [00:46:18]line Место: АЗС № 72 "Партнер Нефть" [00:46:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:46:18]line СНО: Общий режим [00:46:18]line Чек 3 13.07.2024 00:46 [00:46:18]line Смена: 446 ФФД: 1.0 [00:46:18]line ЗНМ: 0300000160 [00:46:18]line РНМ: 0000000000090829 [00:46:18]line Версия ККМ: 001 [00:46:18]line ФМ: 0000000000874718 [00:46:18]line ФД: 164443 [00:46:18]line ФПД: 144133415930511 [00:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T004617&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164443&fm=144133415930511&tin=02508201610067®Number=0000000000090829&sum=90000 [00:46:19]OFD Sender: Processing packet 164443 [packets to send 104, broken 103] [00:46:19]ProducePacketName [00:46:19]name=ofd_packets/00164443 [00:46:19]OFD Sender: To server: pG, [00:46:19]CommunicateWithHost lk.salyk.kg:30040 [00:46:19]ConnectInit lk.salyk.kg [00:46:19]written 0, free lines is 4095 [00:46:19]Connected sock=10 [00:46:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 30 28 04 01 17 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 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 59 CE 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 82 02 00 35 04 06 00 83 16 AD 0E 8A 8F FE 65 91 20 C9 DE 78 3F [00:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0B 45 47 00 76 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 34 37 31 38 10 04 04 00 5B 82 02 00 F4 03 04 00 EC 74 91 66 B6 04 01 00 00 B6 EE CC 01 5A 01 EB BA [00:46:19]CommunicateWithHost err = 0 [00:46:19]CheckOFDResponse [00:46:19]1017 (14) - 77093643461234 [00:46:19]1041 (16) - 0000000000874718 [00:46:19]1040 (4) - 164443 [00:46:19]1012 (4) - 12.07.2024 18:24 [00:46:19]1206 (1) - 0 [00:46:19]OFD Sender: Remove packet 164443 [00:46:19]ProducePacketName [00:46:19]name=ofd_packets/00164443 [00:46:19]NVStorageDeleteData [00:46:19]Write to MH i2c: 01 00 00 26 01 27 [00:46:19]Write i2c OK [00:46:19]MH_I2C_Read... [00:46:19]Read from MH i2c: 01 [00:46:19]MH_I2C_Read... [00:46:19]Read from MH i2c: 01 07 00 [00:46:19]MH_I2C_Read... [00:46:19]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 F7 0C 31 [00:46:19]RasterBufferAndPrint [00:46:19]line [00:46:19]line [00:46:19]line [00:46:19]line [00:46:19]line [00:46:19]written 0, free lines is 3327 [00:46:19]MH_Cut [00:46:19]Write to MH i2c: D1 01 00 2D 01 01 00 [00:46:19]Write i2c OK [00:46:19]MH_I2C_Read... [00:46:19]Read from MH i2c: D1 [00:46:19]MH_I2C_Read... [00:46:19]Read from MH i2c: D1 01 00 [00:46:19]MH_I2C_Read... [00:46:19]Read from MH i2c: D1 01 00 2D 01 00 FF [00:46:19]Write to MH i2c: 01 00 00 2E 01 2F [00:46:19]Write i2c OK [00:46:19]MH_I2C_Read... [00:46:20]OFD Sender: No OFD packet to send [00:46:20]*** Cut start [00:46:20]*** Partial cut [00:46:20]*** CUTSNS_PIN = 1 [00:46:20]*** CUTSNS_PIN = 0 [00:46:20]*** Brake cut motor [00:46:20]Read from MH i2c: 01 [00:46:20]MH_I2C_Read... [00:46:20]*** Stop cut motor [00:46:20]*** Cut end [00:46:20]Read from MH i2c: 01 07 00 [00:46:20]MH_I2C_Read... [00:46:20]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [00:46:20]process_action close_receipt done [00:46:20]requested_data is exist [00:46:20]produce_requested_data [00:46:20]requested_item fm.sn is exist - process it [00:46:20]wFMCommunicate request_size=4 [00:46:20]MH_SAM_APDU [00:46:20]CAPDU: 80 11 00 00 [00:46:20]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [00:46:20]Write i2c OK [00:46:20]MH_I2C_Read... [00:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:21]Read from MH i2c: E2 [00:46:21]MH_I2C_Read... [00:46:21]Read from MH i2c: E2 17 00 [00:46:21]MH_I2C_Read... [00:46:21]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [00:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:46:21]wFMCommunicate OK [00:46:21]requested_item fd.num is exist - process it [00:46:21]SAM_PROTO_GetFieldsCounters [00:46:21]wFMCommunicate request_size=4 [00:46:21]MH_SAM_APDU [00:46:21]CAPDU: 80 13 00 00 [00:46:21]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [00:46:21]Write i2c OK [00:46:21]MH_I2C_Read... [00:46:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:21]Read from MH i2c: E2 [00:46:21]MH_I2C_Read... [00:46:21]Read from MH i2c: E2 62 00 [00:46:21]MH_I2C_Read... [00:46:21]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [00:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:46:21]wFMCommunicate OK [00:46:21]SAM_PROTO_GetFieldsCounters done [00:46:21]requested_item shift.num is exist - process it [00:46:21]requested_item shift.opened is exist - process it [00:46:21]req_shift_opened [00:46:21]FM_GetShiftState [00:46:21]SAM_PROTO_GetShiftState [00:46:21]wFMCommunicate request_size=4 [00:46:21]MH_SAM_APDU [00:46:21]CAPDU: 80 13 01 00 [00:46:21]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [00:46:21]Write i2c OK [00:46:21]MH_I2C_Read... [00:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:21]Read from MH i2c: E2 [00:46:21]MH_I2C_Read... [00:46:21]Read from MH i2c: E2 0E 00 [00:46:21]MH_I2C_Read... [00:46:21]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 90 [00:46:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:46:21]wFMCommunicate OK [00:46:21]SAM_PROTO_GetShiftState done [00:46:21]FM_GetShiftState done [00:46:21]req_shift_opened done [00:46:21]requested_item shift.open_date is exist - process it [00:46:21]req_shift_open_date [00:46:21]req_shift_open_date done [00:46:21]produce_requested_data done [00:46:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164443,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [00:46:21]process_action_free close_receipt [00:46:21]json_value_free [00:46:21]json_value_free done [00:46:21]process_json_proto returns [00:46:21]Send response to host [00:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164443,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [00:46:21]free response buf [00:46:21]execute_script done [00:46:21]execute_script returns [00:46:21]free content buf [00:46:21]Sock 7.Close socket [00:46:21]Sock 7.Thread stoped [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:22]accept exits with 9 [00:51:22]New connection [00:51:22]New thread 3067157860 created [00:51:22]Thread 3067301220 joined [00:51:22]Waiting for new connection... [00:51:22] Sock 9.Parse request [00:51:22]Sock 9.Check first char [00:51:22]Sock 9.First char is OK [00:51:22]request: POST /json_proto HTTP/1.0 [00:51:22]Method: POST [00:51:22]URL: /json_proto [00:51:22]Method is POST - this is cgi request [00:51:22]url: /json_proto [00:51:22]query_string will be loaded in cgi processing [00:51:22]execute_cgi json_proto POST (null) [00:51:22]execute_cgi path=json_proto method=POST [00:51:22]POST find Content-Length [00:51:22]Host: 172.17.56.4:8080 [00:51:22]Content-Length: 790 [00:51:22]Content-Type: application/json [00:51:22] [00:51:22]POST finish read [00:51:22]Found Content-Length = 790 [00:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:22]execute_script... [00:51: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)458530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:22]POST & json_proto [00:51:22]process_json_proto [00:51:22]json parsed OK: [00:51:22]protocol is kg_v1.0 [00:51:22]action value=close_receipt [00:51:22]process_action close_receipt [00:51:22]cmd_close_receipt [00:51:22]MH_GetDate [00:51:22]Write to MH i2c: F0 00 00 32 01 22 [00:51:22]Write i2c OK [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: F0 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: F0 09 00 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: F0 09 00 32 01 00 8A CF 91 66 C9 DC B2 64 36 [00:51:22]GetLastDocTimeStamp 1720831577 [00:51:22]current date 1720831882 [00:51:22]FM_GetShiftState [00:51:22]SAM_PROTO_GetShiftState [00:51:22]wFMCommunicate request_size=4 [00:51:22]MH_SAM_APDU [00:51:22]CAPDU: 80 13 01 00 [00:51:22]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [00:51:22]Write i2c OK [00:51:22]MH_I2C_Read... [00:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:22]Read from MH i2c: E2 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 0E 00 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 92 [00:51:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:51:22]wFMCommunicate OK [00:51:22]SAM_PROTO_GetShiftState done [00:51:22]FM_GetShiftState done [00:51:22]opened in 1720831249 [00:51:22]opened+sec_in_day 1720917649 [00:51:22]quantity*price = 20022 [00:51:22]sum+1 = 20024 [00:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 4 13.07.2024 00:51 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164444 ФПД: 79370172874970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T005122&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164444&fm=79370172874970&tin=02508201610067®Number=0000000000090829&sum=20023 [00:51:23]StoreToDocumentArchive [00:51:23]shift 446 fd 164444 [00:51:23]save to /storage/0446/doc_00164444 [00:51:23]save last doc name /storage/0446/doc_00164444 to /storage/kkm_last_doc_name [00:51:23]save OK [00:51:23]Clear old archive folders... [00:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:51:23]tlvbuf is 00B6F570 [00:51:23]SAM_PROTO_ClearQueue [00:51:23]wFMCommunicate request_size=4 [00:51:23]MH_SAM_APDU [00:51:23]CAPDU: 80 09 00 00 [00:51:23]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [00:51:23]Write i2c OK [00:51:23]MH_I2C_Read... [00:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:23]Read from MH i2c: E2 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 03 00 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [00:51:23]RAPDU: 90 00 [00:51:23]wFMCommunicate OK [00:51:23]SAM_PROTO_ClearQueue done [00:51:23]KKMCreateOFDPacket [00:51:23]OFDProtocolAddRootSTLVToBuf [00:51:23]FM_MakeSignedData [00:51:23]FM_MakeSignedData [00:51:23]SAM_PROTO_SignData [00:51:23]wFMCommunicate request_size=4 [00:51:23]MH_SAM_APDU [00:51:23]CAPDU: 80 0D 01 02 [00:51:23]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [00:51:23]Write i2c OK [00:51:23]MH_I2C_Read... [00:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:23]Read from MH i2c: E2 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 03 00 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [00:51:23]RAPDU: 90 00 [00:51:23]wFMCommunicate OK [00:51:23]wFMCommunicate request_size=255 [00:51:23]MH_SAM_APDU [00:51: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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 8A CF 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 82 02 00 35 04 06 00 48 [00:51:23]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 8A CF 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 82 02 00 35 04 06 00 48 00 00 38 [00:51:23]Write i2c OK [00:51:23]MH_I2C_Read... [00:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:23]Read from MH i2c: E2 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 03 00 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [00:51:23]RAPDU: 90 00 [00:51:23]wFMCommunicate OK [00:51:23]wFMCommunicate request_size=10 [00:51:23]MH_SAM_APDU [00:51:23]CAPDU: 80 0D 02 02 05 2F CE F5 C0 DA [00:51:23]Write to MH i2c: E2 0D 00 43 01 80 0D 02 02 05 00 2F CE F5 C0 DA 00 00 54 [00:51:23]Write i2c OK [00:51:23]MH_I2C_Read... [00:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:23]Read from MH i2c: E2 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 03 00 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [00:51:23]RAPDU: 90 00 [00:51:23]wFMCommunicate OK [00:51:23]wFMCommunicate request_size=4 [00:51:23]MH_SAM_APDU [00:51:23]CAPDU: 80 0D 03 02 [00:51:23]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [00:51:23]Write i2c OK [00:51:23]MH_I2C_Read... [00:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:23]Read from MH i2c: E2 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 0B 00 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 0B 00 44 01 00 64 A8 99 5E 10 C1 4D 96 90 00 78 [00:51:23]RAPDU: 64 A8 99 5E 10 C1 4D 96 90 00 [00:51:23]wFMCommunicate OK [00:51:23]SAM_PROTO_SignData done [00:51:23]FM_MakeSignedData done [00:51:23]CreateOFDProtocolMessage [00:51:23]wFMCommunicate request_size=4 [00:51:23]MH_SAM_APDU [00:51:23]CAPDU: 80 11 00 00 [00:51:23]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [00:51:23]Write i2c OK [00:51:23]MH_I2C_Read... [00:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:23]Read from MH i2c: E2 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 17 00 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [00:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:51:23]wFMCommunicate OK [00:51:23]CreateOFDProtocolMessage done [00:51:23]OFDSenderStorePacket 164444 [00:51:23]StoreOFDPacket docnum=164444 [00:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 42 07 01 03 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 8A CF 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 82 02 00 35 04 06 00 48 2F CE F5 C0 DA 64 A8 99 5E 10 C1 4D 96 [00:51:23]CheckFolder [00:51:23]dirname=/storage/ofd_packets [00:51:23]CheckFolder done [00:51:23]ProducePacketName [00:51:23]name=ofd_packets/00164444 [00:51:23]NVStorageSaveData ofd_packets/00164444 [00:51:23]File name is /storage/ofd_packets/00164444 [00:51:23]Write 301 bytes [00:51:23]NVStorageSaveData done [00:51:23]OFDSenderStorePacket done [00:51:23]KKMCreateOFDPacket done [00:51:23]NVStorageSaveData kkm_last_timestamp [00:51:23]File name is /storage/kkm_last_timestamp [00:51:23]Write 4 bytes [00:51:23]NVStorageSaveData done [00:51:23]ExternCall_PrintAddStr [00:51:23]wPrintStart [00:51:23]Write to MH i2c: 01 00 00 46 01 47 [00:51:23]Write i2c OK [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: 01 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: 01 07 00 [00:51:23]MH_I2C_Read... [00:51:23]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [00:51:23]RasterBufferAndPrint [00:51:23]line Счет N : (1)458530 [00:51:23]line ИНН: 02508201610067 [00:51:23]line Контрольно-Кассовый Чек [00:51:23]line ПРОДАЖА [00:51:23]line ТРК (МРК, ГНК) : 12 [00:51:23]line Товар: 2710124130 [00:51:23]line Аи-92-К-5 [00:51:23]line 3.070 * 65.22 [00:51:23]line = 200.23 [00:51:23]line НДС 12% НСП 1% [00:51:23]line > о реализуемом товаре [00:51:23]line ИТОГО: 200.23 [00:51:23]line НСП 1% : 1.77 [00:51:23]line НДС 12% : 21.26 [00:51:23]line Наличными: 0.00 [00:51:23]line Безнал.: 200.23 [00:51:23]line Место: АЗС № 72 "Партнер Нефть" [00:51:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:51:23]line СНО: Общий режим [00:51:23]line Чек 4 13.07.2024 00:51 [00:51:23]line Смена: 446 ФФД: 1.0 [00:51:23]line ЗНМ: 0300000160 [00:51:23]line РНМ: 0000000000090829 [00:51:23]line Версия ККМ: 001 [00:51:23]line Платежная система: KICB Банк [00:51:23]line ФМ: 0000000000874718 [00:51:23]line ФД: 164444 [00:51:23]line ФПД: 79370172874970 [00:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T005122&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164444&fm=79370172874970&tin=02508201610067®Number=0000000000090829&sum=20023 [00:51:23]written 0, free lines is 4095 [00:51:23]OFD Sender: Processing packet 164444 [packets to send 104, broken 103] [00:51:23]ProducePacketName [00:51:23]name=ofd_packets/00164444 [00:51:23]OFD Sender: To server: pG, [00:51:23]CommunicateWithHost lk.salyk.kg:30040 [00:51:23]ConnectInit lk.salyk.kg [00:51:23]Connected sock=10 [00:51:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 42 07 01 03 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 8A CF 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 82 02 00 35 04 06 00 48 2F CE F5 C0 DA 64 A8 99 5E 10 C1 4D 96 [00:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 ED 82 47 00 A1 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 34 37 31 38 10 04 04 00 5C 82 02 00 F4 03 04 00 1C 76 91 66 B6 04 01 00 00 3E 1A C5 45 C4 30 AA 09 [00:51:24]CommunicateWithHost err = 0 [00:51:24]CheckOFDResponse [00:51:24]1017 (14) - 77093643461234 [00:51:24]1041 (16) - 0000000000874718 [00:51:24]1040 (4) - 164444 [00:51:24]1012 (4) - 12.07.2024 18:29 [00:51:24]1206 (1) - 0 [00:51:24]OFD Sender: Remove packet 164444 [00:51:24]ProducePacketName [00:51:24]name=ofd_packets/00164444 [00:51:24]NVStorageDeleteData [00:51:24]Write to MH i2c: 01 00 00 6F 01 70 [00:51:24]Write i2c OK [00:51:24]MH_I2C_Read... [00:51:24]Read from MH i2c: 01 [00:51:24]MH_I2C_Read... [00:51:24]Read from MH i2c: 01 07 00 [00:51:24]MH_I2C_Read... [00:51:24]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 02 0D 86 [00:51:24]RasterBufferAndPrint [00:51:24]line [00:51:24]line [00:51:24]line [00:51:24]line [00:51:24]line [00:51:24]written 0, free lines is 3336 [00:51:24]MH_Cut [00:51:24]Write to MH i2c: D1 01 00 76 01 01 49 [00:51:24]Write i2c OK [00:51:24]MH_I2C_Read... [00:51:24]Read from MH i2c: D1 [00:51:24]MH_I2C_Read... [00:51:24]Read from MH i2c: D1 01 00 [00:51:24]MH_I2C_Read... [00:51:24]Read from MH i2c: D1 01 00 76 01 00 48 [00:51:24]Write to MH i2c: 01 00 00 77 01 78 [00:51:24]Write i2c OK [00:51:24]MH_I2C_Read... [00:51:24]OFD Sender: No OFD packet to send [00:51:24]*** Cut start [00:51:24]*** Partial cut [00:51:24]*** CUTSNS_PIN = 1 [00:51:24]*** CUTSNS_PIN = 0 [00:51:25]*** Brake cut motor [00:51:25]Read from MH i2c: 01 [00:51:25]MH_I2C_Read... [00:51:25]*** Stop cut motor [00:51:25]*** Cut end [00:51:25]Read from MH i2c: 01 07 00 [00:51:25]MH_I2C_Read... [00:51:25]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [00:51:25]process_action close_receipt done [00:51:25]requested_data is exist [00:51:25]produce_requested_data [00:51:25]requested_item fm.sn is exist - process it [00:51:25]wFMCommunicate request_size=4 [00:51:25]MH_SAM_APDU [00:51:25]CAPDU: 80 11 00 00 [00:51:25]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [00:51:25]Write i2c OK [00:51:25]MH_I2C_Read... [00:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:25]Read from MH i2c: E2 [00:51:25]MH_I2C_Read... [00:51:25]Read from MH i2c: E2 17 00 [00:51:25]MH_I2C_Read... [00:51:25]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [00:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:51:25]wFMCommunicate OK [00:51:25]requested_item fd.num is exist - process it [00:51:25]SAM_PROTO_GetFieldsCounters [00:51:25]wFMCommunicate request_size=4 [00:51:25]MH_SAM_APDU [00:51:25]CAPDU: 80 13 00 00 [00:51:25]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [00:51:25]Write i2c OK [00:51:25]MH_I2C_Read... [00:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:25]Read from MH i2c: E2 [00:51:25]MH_I2C_Read... [00:51:25]Read from MH i2c: E2 62 00 [00:51:25]MH_I2C_Read... [00:51:25]Read from MH i2c: E2 62 00 79 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [00:51: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:25]wFMCommunicate OK [00:51:25]SAM_PROTO_GetFieldsCounters done [00:51:25]requested_item shift.num is exist - process it [00:51:25]requested_item shift.opened is exist - process it [00:51:25]req_shift_opened [00:51:25]FM_GetShiftState [00:51:25]SAM_PROTO_GetShiftState [00:51:25]wFMCommunicate request_size=4 [00:51:25]MH_SAM_APDU [00:51:25]CAPDU: 80 13 01 00 [00:51:25]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [00:51:25]Write i2c OK [00:51:25]MH_I2C_Read... [00:51:25]Read from MH i2c: E2 [00:51:25]MH_I2C_Read... [00:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:25]Read from MH i2c: E2 0E 00 [00:51:25]MH_I2C_Read... [00:51:25]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D9 [00:51:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:51:25]wFMCommunicate OK [00:51:25]SAM_PROTO_GetShiftState done [00:51:25]FM_GetShiftState done [00:51:25]req_shift_opened done [00:51:25]requested_item shift.open_date is exist - process it [00:51:25]req_shift_open_date [00:51:25]req_shift_open_date done [00:51:25]produce_requested_data done [00:51:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164444,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [00:51:25]process_action_free close_receipt [00:51:25]json_value_free [00:51:25]json_value_free done [00:51:25]process_json_proto returns [00:51:25]Send response to host [00:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164444,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [00:51:25]free response buf [00:51:25]execute_script done [00:51:25]execute_script returns [00:51:25]free content buf [00:51:25]Sock 9.Close socket [00:51:25]Sock 9.Thread stoped [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42: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:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:49]accept exits with 7 [01:59:49]New connection [01:59:49]New thread 3067301220 created [01:59:49]Thread 3067157860 joined [01:59:49]Waiting for new connection... [01:59:49] Sock 7.Parse request [01:59:49]Sock 7.Check first char [01:59:49]Sock 7.First char is OK [01:59:49]request: POST /json_proto HTTP/1.0 [01:59:49]Method: POST [01:59:49]URL: /json_proto [01:59:49]Method is POST - this is cgi request [01:59:49]url: /json_proto [01:59:49]query_string will be loaded in cgi processing [01:59:49]execute_cgi json_proto POST (null) [01:59:49]execute_cgi path=json_proto method=POST [01:59:49]POST find Content-Length [01:59:49]Host: 172.17.56.4:8080 [01:59:49]Content-Length: 682 [01:59:49]Content-Type: application/json [01:59:49] [01:59:49]POST finish read [01:59:49]Found Content-Length = 682 [01:59:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:49]execute_script... [01:59:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:49]POST & json_proto [01:59:49]process_json_proto [01:59:49]json parsed OK: [01:59:49]protocol is kg_v1.0 [01:59:49]action value=close_receipt [01:59:49]process_action close_receipt [01:59:49]cmd_close_receipt [01:59:49]MH_GetDate [01:59:49]Write to MH i2c: F0 00 00 7B 01 6B [01:59:49]Write i2c OK [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: F0 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: F0 09 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: F0 09 00 7B 01 00 95 DF 91 66 C9 DC B2 64 9A [01:59:49]GetLastDocTimeStamp 1720831882 [01:59:49]current date 1720835989 [01:59:49]FM_GetShiftState [01:59:49]SAM_PROTO_GetShiftState [01:59:49]wFMCommunicate request_size=4 [01:59:49]MH_SAM_APDU [01:59:49]CAPDU: 80 13 01 00 [01:59:49]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [01:59:49]Write i2c OK [01:59:49]MH_I2C_Read... [01:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:49]Read from MH i2c: E2 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 0E 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DB [01:59:49]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [01:59:49]wFMCommunicate OK [01:59:49]SAM_PROTO_GetShiftState done [01:59:49]FM_GetShiftState done [01:59:49]opened in 1720831249 [01:59:49]opened+sec_in_day 1720917649 [01:59:49]quantity*price = 100016 [01:59:49]sum+1 = 100017 [01:59:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 5 13.07.2024 01:59 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164445 ФПД: 107326101967424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T015949&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164445&fm=107326101967424&tin=02508201610067®Number=0000000000090829&sum=100000 [01:59:50]StoreToDocumentArchive [01:59:50]shift 446 fd 164445 [01:59:50]save to /storage/0446/doc_00164445 [01:59:50]save last doc name /storage/0446/doc_00164445 to /storage/kkm_last_doc_name [01:59:50]save OK [01:59:50]Clear old archive folders... [01:59:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:59:50]tlvbuf is 00B6EED0 [01:59:50]SAM_PROTO_ClearQueue [01:59:50]wFMCommunicate request_size=4 [01:59:50]MH_SAM_APDU [01:59:50]CAPDU: 80 09 00 00 [01:59:50]Write to MH i2c: E2 08 00 89 01 80 09 00 00 00 00 00 00 FC [01:59:50]Write i2c OK [01:59:50]MH_I2C_Read... [01:59:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:50]Read from MH i2c: E2 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 03 00 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [01:59:50]RAPDU: 90 00 [01:59:50]wFMCommunicate OK [01:59:50]SAM_PROTO_ClearQueue done [01:59:50]KKMCreateOFDPacket [01:59:50]OFDProtocolAddRootSTLVToBuf [01:59:50]FM_MakeSignedData [01:59:50]FM_MakeSignedData [01:59:50]SAM_PROTO_SignData [01:59:50]wFMCommunicate request_size=4 [01:59:50]MH_SAM_APDU [01:59:50]CAPDU: 80 0D 01 02 [01:59:50]Write to MH i2c: E2 08 00 8A 01 80 0D 01 02 00 00 00 00 04 [01:59:50]Write i2c OK [01:59:50]MH_I2C_Read... [01:59:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:50]Read from MH i2c: E2 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 03 00 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [01:59:50]RAPDU: 90 00 [01:59:50]wFMCommunicate OK [01:59:50]wFMCommunicate request_size=255 [01:59:50]MH_SAM_APDU [01:59: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 95 DF 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 82 02 00 35 04 06 00 61 [01:59:50]Write to MH i2c: E2 02 01 8B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 95 DF 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 82 02 00 35 04 06 00 61 00 00 90 [01:59:50]Write i2c OK [01:59:50]MH_I2C_Read... [01:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:50]Read from MH i2c: E2 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 03 00 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [01:59:50]RAPDU: 90 00 [01:59:50]wFMCommunicate OK [01:59:50]wFMCommunicate request_size=10 [01:59:50]MH_SAM_APDU [01:59:50]CAPDU: 80 0D 02 02 05 9C CE 2E D2 40 [01:59:50]Write to MH i2c: E2 0D 00 8C 01 80 0D 02 02 05 00 9C CE 2E D2 40 00 00 BB [01:59:50]Write i2c OK [01:59:50]MH_I2C_Read... [01:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:50]Read from MH i2c: E2 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 03 00 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [01:59:50]RAPDU: 90 00 [01:59:50]wFMCommunicate OK [01:59:50]wFMCommunicate request_size=4 [01:59:50]MH_SAM_APDU [01:59:50]CAPDU: 80 0D 03 02 [01:59:50]Write to MH i2c: E2 08 00 8D 01 80 0D 03 02 00 00 00 00 09 [01:59:50]Write i2c OK [01:59:50]MH_I2C_Read... [01:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:50]Read from MH i2c: E2 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 0B 00 [01:59:50]MH_I2C_Read... [01:59:50]Read from MH i2c: E2 0B 00 8D 01 00 E5 7A 97 12 1A DC DB AB 90 00 8E [01:59:50]RAPDU: E5 7A 97 12 1A DC DB AB 90 00 [01:59:50]wFMCommunicate OK [01:59:50]SAM_PROTO_SignData done [01:59:50]FM_MakeSignedData done [01:59:50]CreateOFDProtocolMessage [01:59:50]wFMCommunicate request_size=4 [01:59:50]MH_SAM_APDU [01:59:50]CAPDU: 80 11 00 00 [01:59:50]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [01:59:50]Write i2c OK [01:59:50]MH_I2C_Read... [01:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:51]Read from MH i2c: E2 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: E2 17 00 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [01:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:59:51]wFMCommunicate OK [01:59:51]CreateOFDProtocolMessage done [01:59:51]OFDSenderStorePacket 164445 [01:59:51]StoreOFDPacket docnum=164445 [01:59:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1C 5E 07 01 0C 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 95 DF 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 82 02 00 35 04 06 00 61 9C CE 2E D2 40 E5 7A 97 12 1A DC DB AB [01:59:51]CheckFolder [01:59:51]dirname=/storage/ofd_packets [01:59:51]CheckFolder done [01:59:51]ProducePacketName [01:59:51]name=ofd_packets/00164445 [01:59:51]NVStorageSaveData ofd_packets/00164445 [01:59:51]File name is /storage/ofd_packets/00164445 [01:59:51]Write 301 bytes [01:59:51]NVStorageSaveData done [01:59:51]OFDSenderStorePacket done [01:59:51]KKMCreateOFDPacket done [01:59:51]NVStorageSaveData kkm_last_timestamp [01:59:51]File name is /storage/kkm_last_timestamp [01:59:51]Write 4 bytes [01:59:51]NVStorageSaveData done [01:59:51]ExternCall_PrintAddStr [01:59:51]wPrintStart [01:59:51]Write to MH i2c: 01 00 00 8F 01 90 [01:59:51]Write i2c OK [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: 01 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: 01 07 00 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [01:59:51]RasterBufferAndPrint [01:59:51]line Счет N : (1)458531 [01:59:51]line ИНН: 02508201610067 [01:59:51]line Контрольно-Кассовый Чек [01:59:51]line ПРОДАЖА [01:59:51]line ТРК (МРК, ГНК) : 12 [01:59:51]line Товар: 2710124130 [01:59:51]line Аи-92-К-5 [01:59:51]line 15.200 * 65.80 [01:59:51]line = 1000.16 [01:59:51]line НДС 12% НСП 1% [01:59:51]line > о реализуемом товаре [01:59:51]line ОКРУГЛЕНИЕ: -0.16 [01:59:51]line ИТОГО: 1000.00 [01:59:51]line Внесено: 1000.00 [01:59:51]line СДАЧА: 0.00 [01:59:51]line НСП 1% : 8.85 [01:59:51]line НДС 12% : 106.21 [01:59:51]line Наличными: 1000.00 [01:59:51]line Безнал.: 0.00 [01:59:51]line Место: АЗС № 72 "Партнер Нефть" [01:59:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:59:51]line СНО: Общий режим [01:59:51]line Чек 5 13.07.2024 01:59 [01:59:51]line Смена: 446 ФФД: 1.0 [01:59:51]line ЗНМ: 0300000160 [01:59:51]line РНМ: 0000000000090829 [01:59:51]line Версия ККМ: 001 [01:59:51]line ФМ: 0000000000874718 [01:59:51]line ФД: 164445 [01:59:51]line ФПД: 107326101967424 [01:59:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T015949&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164445&fm=107326101967424&tin=02508201610067®Number=0000000000090829&sum=100000 [01:59:51]OFD Sender: Processing packet 164445 [packets to send 104, broken 103] [01:59:51]ProducePacketName [01:59:51]name=ofd_packets/00164445 [01:59:51]OFD Sender: To server: pG, [01:59:51]CommunicateWithHost lk.salyk.kg:30040 [01:59:51]ConnectInit lk.salyk.kg [01:59:51]written 0, free lines is 4095 [01:59:51]Connected sock=10 [01:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1C 5E 07 01 0C 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 95 DF 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 82 02 00 35 04 06 00 61 9C CE 2E D2 40 E5 7A 97 12 1A DC DB AB [01:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5B C8 47 00 98 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 34 37 31 38 10 04 04 00 5D 82 02 00 F4 03 04 00 28 86 91 66 B6 04 01 00 00 AD 9A A0 CA A4 1E AB 63 [01:59:51]CommunicateWithHost err = 0 [01:59:51]CheckOFDResponse [01:59:51]1017 (14) - 77093643461234 [01:59:51]1041 (16) - 0000000000874718 [01:59:51]1040 (4) - 164445 [01:59:51]1012 (4) - 12.07.2024 19:38 [01:59:51]1206 (1) - 0 [01:59:51]OFD Sender: Remove packet 164445 [01:59:51]ProducePacketName [01:59:51]name=ofd_packets/00164445 [01:59:51]NVStorageDeleteData [01:59:51]Write to MH i2c: 01 00 00 B9 01 BA [01:59:51]Write i2c OK [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: 01 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: 01 07 00 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 EF 0C BC [01:59:51]RasterBufferAndPrint [01:59:51]line [01:59:51]line [01:59:51]line [01:59:51]line [01:59:51]line [01:59:51]written 0, free lines is 3318 [01:59:51]MH_Cut [01:59:51]Write to MH i2c: D1 01 00 C0 01 01 93 [01:59:51]Write i2c OK [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: D1 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: D1 01 00 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: D1 01 00 C0 01 00 92 [01:59:51]Write to MH i2c: 01 00 00 C1 01 C2 [01:59:51]Write i2c OK [01:59:51]MH_I2C_Read... [01:59:52]OFD Sender: No OFD packet to send [01:59:52]*** Cut start [01:59:52]*** Partial cut [01:59:52]*** CUTSNS_PIN = 1 [01:59:52]*** CUTSNS_PIN = 0 [01:59:52]*** Brake cut motor [01:59:53]Read from MH i2c: 01 [01:59:53]MH_I2C_Read... [01:59:53]*** Stop cut motor [01:59:53]*** Cut end [01:59:53]Read from MH i2c: 01 07 00 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [01:59:53]process_action close_receipt done [01:59:53]requested_data is exist [01:59:53]produce_requested_data [01:59:53]requested_item fm.sn is exist - process it [01:59:53]wFMCommunicate request_size=4 [01:59:53]MH_SAM_APDU [01:59:53]CAPDU: 80 11 00 00 [01:59:53]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [01:59:53]Write i2c OK [01:59:53]MH_I2C_Read... [01:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:53]Read from MH i2c: E2 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: E2 17 00 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [01:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:59:53]wFMCommunicate OK [01:59:53]requested_item fd.num is exist - process it [01:59:53]SAM_PROTO_GetFieldsCounters [01:59:53]wFMCommunicate request_size=4 [01:59:53]MH_SAM_APDU [01:59:53]CAPDU: 80 13 00 00 [01:59:53]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [01:59:53]Write i2c OK [01:59:53]MH_I2C_Read... [01:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:59:53]Read from MH i2c: E2 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: E2 62 00 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: E2 62 00 C3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [01:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:59:53]wFMCommunicate OK [01:59:53]SAM_PROTO_GetFieldsCounters done [01:59:53]requested_item shift.num is exist - process it [01:59:53]requested_item shift.opened is exist - process it [01:59:53]req_shift_opened [01:59:53]FM_GetShiftState [01:59:53]SAM_PROTO_GetShiftState [01:59:53]wFMCommunicate request_size=4 [01:59:53]MH_SAM_APDU [01:59:53]CAPDU: 80 13 01 00 [01:59:53]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [01:59:53]Write i2c OK [01:59:53]MH_I2C_Read... [01:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:53]Read from MH i2c: E2 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: E2 0E 00 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 23 [01:59:53]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [01:59:53]wFMCommunicate OK [01:59:53]SAM_PROTO_GetShiftState done [01:59:53]FM_GetShiftState done [01:59:53]req_shift_opened done [01:59:53]requested_item shift.open_date is exist - process it [01:59:53]req_shift_open_date [01:59:53]req_shift_open_date done [01:59:53]produce_requested_data done [01:59:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164445,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [01:59:53]process_action_free close_receipt [01:59:53]json_value_free [01:59:53]json_value_free done [01:59:53]process_json_proto returns [01:59:53]Send response to host [01:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164445,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [01:59:53]free response buf [01:59:53]execute_script done [01:59:53]execute_script returns [01:59:53]free content buf [01:59:53]Sock 7.Close socket [01:59:53]Sock 7.Thread stoped [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]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:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:15]accept exits with 9 [02:39:15]New connection [02:39:15]New thread 3067157860 created [02:39:15]Thread 3067301220 joined [02:39:15]Waiting for new connection... [02:39:15] Sock 9.Parse request [02:39:15]Sock 9.Check first char [02:39:15]Sock 9.First char is OK [02:39:15]request: POST /json_proto HTTP/1.0 [02:39:15]Method: POST [02:39:15]URL: /json_proto [02:39:15]Method is POST - this is cgi request [02:39:15]url: /json_proto [02:39:15]query_string will be loaded in cgi processing [02:39:15]execute_cgi json_proto POST (null) [02:39:15]execute_cgi path=json_proto method=POST [02:39:15]POST find Content-Length [02:39:15]Host: 172.17.56.4:8080 [02:39:15]Content-Length: 674 [02:39:15]Content-Type: application/json [02:39:15] [02:39:15]POST finish read [02:39:15]Found Content-Length = 674 [02:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458532", "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" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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" ] } } [02:39:15]execute_script... [02:39: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)458532", "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" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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" ] } } [02:39:15]POST & json_proto [02:39:15]process_json_proto [02:39:15]json parsed OK: [02:39:15]protocol is kg_v1.0 [02:39:15]action value=close_receipt [02:39:15]process_action close_receipt [02:39:15]cmd_close_receipt [02:39:15]MH_GetDate [02:39:15]Write to MH i2c: F0 00 00 C5 01 B5 [02:39:15]Write i2c OK [02:39:15]MH_I2C_Read... [02:39:15]Read from MH i2c: F0 [02:39:15]MH_I2C_Read... [02:39:15]Read from MH i2c: F0 09 00 [02:39:15]MH_I2C_Read... [02:39:15]Read from MH i2c: F0 09 00 C5 01 00 D4 E8 91 66 C9 DC B2 64 2C [02:39:15]GetLastDocTimeStamp 1720835989 [02:39:15]current date 1720838356 [02:39:15]FM_GetShiftState [02:39:15]SAM_PROTO_GetShiftState [02:39:15]wFMCommunicate request_size=4 [02:39:15]MH_SAM_APDU [02:39:15]CAPDU: 80 13 01 00 [02:39:15]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [02:39:15]Write i2c OK [02:39:15]MH_I2C_Read... [02:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:39:15]Read from MH i2c: E2 [02:39:15]MH_I2C_Read... [02:39:15]Read from MH i2c: E2 0E 00 [02:39:15]MH_I2C_Read... [02:39:15]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 25 [02:39:15]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [02:39:15]wFMCommunicate OK [02:39:15]SAM_PROTO_GetShiftState done [02:39:15]FM_GetShiftState done [02:39:15]opened in 1720831249 [02:39:15]opened+sec_in_day 1720917649 [02:39:15]quantity*price = 60036 [02:39:15]sum+1 = 60038 [02:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 6 13.07.2024 02:39 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164446 ФПД: 260935406975661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T023916&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164446&fm=260935406975661&tin=02508201610067®Number=0000000000090829&sum=60000 [02:39:16]StoreToDocumentArchive [02:39:16]shift 446 fd 164446 [02:39:16]save to /storage/0446/doc_00164446 [02:39:16]save last doc name /storage/0446/doc_00164446 to /storage/kkm_last_doc_name [02:39:16]save OK [02:39:16]Clear old archive folders... [02:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:39:16]tlvbuf is 00BF59C0 [02:39:16]SAM_PROTO_ClearQueue [02:39:16]wFMCommunicate request_size=4 [02:39:16]MH_SAM_APDU [02:39:16]CAPDU: 80 09 00 00 [02:39:16]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [02:39:16]Write i2c OK [02:39:16]MH_I2C_Read... [02:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:39:16]Read from MH i2c: E2 [02:39:16]MH_I2C_Read... [02:39:16]Read from MH i2c: E2 03 00 [02:39:16]MH_I2C_Read... [02:39:16]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [02:39:16]RAPDU: 90 00 [02:39:16]wFMCommunicate OK [02:39:16]SAM_PROTO_ClearQueue done [02:39:16]KKMCreateOFDPacket [02:39:16]OFDProtocolAddRootSTLVToBuf [02:39:16]FM_MakeSignedData [02:39:16]FM_MakeSignedData [02:39:16]SAM_PROTO_SignData [02:39:16]wFMCommunicate request_size=4 [02:39:16]MH_SAM_APDU [02:39:16]CAPDU: 80 0D 01 02 [02:39:16]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [02:39:16]Write i2c OK [02:39:16]MH_I2C_Read... [02:39:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:39:17]Read from MH i2c: E2 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 03 00 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [02:39:17]RAPDU: 90 00 [02:39:17]wFMCommunicate OK [02:39:17]wFMCommunicate request_size=255 [02:39:17]MH_SAM_APDU [02:39: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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D4 E8 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 82 02 00 35 04 06 00 ED 51 C2 3D [02:39:17]Write to MH i2c: E2 02 01 D5 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D4 E8 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 82 02 00 35 04 06 00 ED 51 C2 3D 00 00 50 [02:39:17]Write i2c OK [02:39:17]MH_I2C_Read... [02:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:39:17]Read from MH i2c: E2 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 03 00 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [02:39:17]RAPDU: 90 00 [02:39:17]wFMCommunicate OK [02:39:17]wFMCommunicate request_size=7 [02:39:17]MH_SAM_APDU [02:39:17]CAPDU: 80 0D 02 02 02 FA AD [02:39:17]Write to MH i2c: E2 0A 00 D6 01 80 0D 02 02 02 00 FA AD 00 00 FC [02:39:17]Write i2c OK [02:39:17]MH_I2C_Read... [02:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:39:17]Read from MH i2c: E2 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 03 00 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [02:39:17]RAPDU: 90 00 [02:39:17]wFMCommunicate OK [02:39:17]wFMCommunicate request_size=4 [02:39:17]MH_SAM_APDU [02:39:17]CAPDU: 80 0D 03 02 [02:39:17]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [02:39:17]Write i2c OK [02:39:17]MH_I2C_Read... [02:39:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:39:17]Read from MH i2c: E2 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 0B 00 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 0B 00 D7 01 00 B7 4E 02 E8 A4 C8 D6 7C 90 00 01 [02:39:17]RAPDU: B7 4E 02 E8 A4 C8 D6 7C 90 00 [02:39:17]wFMCommunicate OK [02:39:17]SAM_PROTO_SignData done [02:39:17]FM_MakeSignedData done [02:39:17]CreateOFDProtocolMessage [02:39:17]wFMCommunicate request_size=4 [02:39:17]MH_SAM_APDU [02:39:17]CAPDU: 80 11 00 00 [02:39:17]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [02:39:17]Write i2c OK [02:39:17]MH_I2C_Read... [02:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:39:17]Read from MH i2c: E2 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 17 00 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [02:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:39:17]wFMCommunicate OK [02:39:17]CreateOFDProtocolMessage done [02:39:17]OFDSenderStorePacket 164446 [02:39:17]StoreOFDPacket docnum=164446 [02:39:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 98 7F 04 01 2C 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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D4 E8 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 82 02 00 35 04 06 00 ED 51 C2 3D FA AD B7 4E 02 E8 A4 C8 D6 7C [02:39:17]CheckFolder [02:39:17]dirname=/storage/ofd_packets [02:39:17]CheckFolder done [02:39:17]ProducePacketName [02:39:17]name=ofd_packets/00164446 [02:39:17]NVStorageSaveData ofd_packets/00164446 [02:39:17]File name is /storage/ofd_packets/00164446 [02:39:17]Write 298 bytes [02:39:17]NVStorageSaveData done [02:39:17]OFDSenderStorePacket done [02:39:17]KKMCreateOFDPacket done [02:39:17]NVStorageSaveData kkm_last_timestamp [02:39:17]File name is /storage/kkm_last_timestamp [02:39:17]Write 4 bytes [02:39:17]NVStorageSaveData done [02:39:17]ExternCall_PrintAddStr [02:39:17]wPrintStart [02:39:17]Write to MH i2c: 01 00 00 D9 01 DA [02:39:17]Write i2c OK [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: 01 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: 01 07 00 [02:39:17]MH_I2C_Read... [02:39:17]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [02:39:17]RasterBufferAndPrint [02:39:17]line Счет N : (1)458532 [02:39:17]line ИНН: 02508201610067 [02:39:17]line Контрольно-Кассовый Чек [02:39:17]line ПРОДАЖА [02:39:17]line ТРК (МРК, ГНК) : 21 [02:39:17]line Товар: 2710194210 [02:39:17]line ДТ-К-5 [02:39:17]line 8.350 * 71.90 [02:39:17]line = 600.37 [02:39:17]line НДС 12% НСП 1% [02:39:17]line > о реализуемом товаре [02:39:17]line ОКРУГЛЕНИЕ: -0.37 [02:39:17]line ИТОГО: 600.00 [02:39:17]line Внесено: 600.00 [02:39:17]line СДАЧА: 0.00 [02:39:17]line НСП 1% : 5.31 [02:39:17]line НДС 12% : 63.76 [02:39:17]line Наличными: 600.00 [02:39:17]line Безнал.: 0.00 [02:39:17]line Место: АЗС № 72 "Партнер Нефть" [02:39:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [02:39:17]line СНО: Общий режим [02:39:17]line Чек 6 13.07.2024 02:39 [02:39:17]line Смена: 446 ФФД: 1.0 [02:39:17]line ЗНМ: 0300000160 [02:39:17]line РНМ: 0000000000090829 [02:39:17]line Версия ККМ: 001 [02:39:17]line ФМ: 0000000000874718 [02:39:17]line ФД: 164446 [02:39:17]line ФПД: 260935406975661 [02:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T023916&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164446&fm=260935406975661&tin=02508201610067®Number=0000000000090829&sum=60000 [02:39:17]OFD Sender: Processing packet 164446 [packets to send 104, broken 103] [02:39:17]ProducePacketName [02:39:17]name=ofd_packets/00164446 [02:39:17]OFD Sender: To server: pG, [02:39:17]CommunicateWithHost lk.salyk.kg:30040 [02:39:17]ConnectInit lk.salyk.kg [02:39:17]written 0, free lines is 4095 [02:39:17]Connected sock=10 [02:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 98 7F 04 01 2C 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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D4 E8 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 82 02 00 35 04 06 00 ED 51 C2 3D FA AD B7 4E 02 E8 A4 C8 D6 7C [02:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C2 8F 47 00 10 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 82 02 00 F4 03 04 00 66 8F 91 66 B6 04 01 00 00 B0 2A 14 3C EF E6 3B A3 [02:39:18]CommunicateWithHost err = 0 [02:39:18]CheckOFDResponse [02:39:18]1017 (14) - 77093643461234 [02:39:18]1041 (16) - 0000000000874718 [02:39:18]1040 (4) - 164446 [02:39:18]1012 (4) - 12.07.2024 20:17 [02:39:18]1206 (1) - 0 [02:39:18]OFD Sender: Remove packet 164446 [02:39:18]ProducePacketName [02:39:18]name=ofd_packets/00164446 [02:39:18]NVStorageDeleteData [02:39:18]Write to MH i2c: 01 00 00 03 02 05 [02:39:18]Write i2c OK [02:39:18]MH_I2C_Read... [02:39:18]Read from MH i2c: 01 [02:39:18]MH_I2C_Read... [02:39:18]Read from MH i2c: 01 07 00 [02:39:18]MH_I2C_Read... [02:39:18]Read from MH i2c: 01 07 00 03 02 00 00 00 00 00 FB 0C 13 [02:39:18]RasterBufferAndPrint [02:39:18]line [02:39:18]line [02:39:18]line [02:39:18]line [02:39:18]line [02:39:18]written 0, free lines is 3330 [02:39:18]MH_Cut [02:39:18]Write to MH i2c: D1 01 00 0A 02 01 DE [02:39:18]Write i2c OK [02:39:18]MH_I2C_Read... [02:39:18]Read from MH i2c: D1 [02:39:18]MH_I2C_Read... [02:39:18]Read from MH i2c: D1 01 00 [02:39:18]MH_I2C_Read... [02:39:18]Read from MH i2c: D1 01 00 0A 02 00 DD [02:39:18]Write to MH i2c: 01 00 00 0B 02 0D [02:39:18]Write i2c OK [02:39:18]MH_I2C_Read... [02:39:18]OFD Sender: No OFD packet to send [02:39:18]*** Cut start [02:39:18]*** Partial cut [02:39:18]*** CUTSNS_PIN = 1 [02:39:18]*** CUTSNS_PIN = 0 [02:39:19]*** Brake cut motor [02:39:19]Read from MH i2c: 01 [02:39:19]MH_I2C_Read... [02:39:19]*** Stop cut motor [02:39:19]*** Cut end [02:39:19]Read from MH i2c: 01 07 00 [02:39:19]MH_I2C_Read... [02:39:19]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 FF 0F 22 [02:39:19]process_action close_receipt done [02:39:19]requested_data is exist [02:39:19]produce_requested_data [02:39:19]requested_item fm.sn is exist - process it [02:39:19]wFMCommunicate request_size=4 [02:39:19]MH_SAM_APDU [02:39:19]CAPDU: 80 11 00 00 [02:39:19]Write to MH i2c: E2 08 00 0C 02 80 11 00 00 00 00 00 00 88 [02:39:19]Write i2c OK [02:39:19]MH_I2C_Read... [02:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:39:19]Read from MH i2c: E2 [02:39:19]MH_I2C_Read... [02:39:19]Read from MH i2c: E2 17 00 [02:39:19]MH_I2C_Read... [02:39:19]Read from MH i2c: E2 17 00 0C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [02:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:39:19]wFMCommunicate OK [02:39:19]requested_item fd.num is exist - process it [02:39:19]SAM_PROTO_GetFieldsCounters [02:39:19]wFMCommunicate request_size=4 [02:39:19]MH_SAM_APDU [02:39:19]CAPDU: 80 13 00 00 [02:39:19]Write to MH i2c: E2 08 00 0D 02 80 13 00 00 00 00 00 00 8B [02:39:19]Write i2c OK [02:39:19]MH_I2C_Read... [02:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:39:19]Read from MH i2c: E2 [02:39:19]MH_I2C_Read... [02:39:19]Read from MH i2c: E2 62 00 [02:39:19]MH_I2C_Read... [02:39:19]Read from MH i2c: E2 62 00 0D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [02:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:39:19]wFMCommunicate OK [02:39:19]SAM_PROTO_GetFieldsCounters done [02:39:19]requested_item shift.num is exist - process it [02:39:19]requested_item shift.opened is exist - process it [02:39:19]req_shift_opened [02:39:19]FM_GetShiftState [02:39:19]SAM_PROTO_GetShiftState [02:39:19]wFMCommunicate request_size=4 [02:39:19]MH_SAM_APDU [02:39:19]CAPDU: 80 13 01 00 [02:39:19]Write to MH i2c: E2 08 00 0E 02 80 13 01 00 00 00 00 00 8D [02:39:19]Write i2c OK [02:39:19]MH_I2C_Read... [02:39:19]Read from MH i2c: E2 [02:39:19]MH_I2C_Read... [02:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:39:19]Read from MH i2c: E2 0E 00 [02:39:19]MH_I2C_Read... [02:39:19]Read from MH i2c: E2 0E 00 0E 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6E [02:39:19]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [02:39:19]wFMCommunicate OK [02:39:19]SAM_PROTO_GetShiftState done [02:39:19]FM_GetShiftState done [02:39:19]req_shift_opened done [02:39:19]requested_item shift.open_date is exist - process it [02:39:19]req_shift_open_date [02:39:19]req_shift_open_date done [02:39:19]produce_requested_data done [02:39:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164446,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [02:39:19]process_action_free close_receipt [02:39:19]json_value_free [02:39:19]json_value_free done [02:39:19]process_json_proto returns [02:39:19]Send response to host [02:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164446,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [02:39:19]free response buf [02:39:19]execute_script done [02:39:19]execute_script returns [02:39:19]free content buf [02:39:19]Sock 9.Close socket [02:39:19]Sock 9.Thread stoped [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:36]accept exits with 7 [02:54:36]New connection [02:54:36]New thread 3067301220 created [02:54:36]Thread 3067157860 joined [02:54:36]Waiting for new connection... [02:54:36] Sock 7.Parse request [02:54:36]Sock 7.Check first char [02:54:36]Sock 7.First char is OK [02:54:36]request: POST /json_proto HTTP/1.0 [02:54:36]Method: POST [02:54:36]URL: /json_proto [02:54:36]Method is POST - this is cgi request [02:54:36]url: /json_proto [02:54:36]query_string will be loaded in cgi processing [02:54:36]execute_cgi json_proto POST (null) [02:54:36]execute_cgi path=json_proto method=POST [02:54:36]POST find Content-Length [02:54:36]Host: 172.17.56.4:8080 [02:54:36]Content-Length: 679 [02:54:36]Content-Type: application/json [02:54:36] [02:54:36]POST finish read [02:54:36]Found Content-Length = 679 [02:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458533", "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" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [02:54:36]execute_script... [02: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)458533", "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" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [02:54:36]POST & json_proto [02:54:36]process_json_proto [02:54:36]json parsed OK: [02:54:36]protocol is kg_v1.0 [02:54:36]action value=close_receipt [02:54:36]process_action close_receipt [02:54:36]cmd_close_receipt [02:54:36]MH_GetDate [02:54:36]Write to MH i2c: F0 00 00 0F 02 00 [02:54:36]Write i2c OK [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: F0 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: F0 09 00 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: F0 09 00 0F 02 00 6C EC 91 66 C9 DC B2 64 13 [02:54:36]GetLastDocTimeStamp 1720838356 [02:54:36]current date 1720839276 [02:54:36]FM_GetShiftState [02:54:36]SAM_PROTO_GetShiftState [02:54:36]wFMCommunicate request_size=4 [02:54:36]MH_SAM_APDU [02:54:36]CAPDU: 80 13 01 00 [02:54:36]Write to MH i2c: E2 08 00 10 02 80 13 01 00 00 00 00 00 8F [02:54:36]Write i2c OK [02:54:36]MH_I2C_Read... [02:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:36]Read from MH i2c: E2 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: E2 0E 00 [02:54:36]MH_I2C_Read... [02:54:36]Read from MH i2c: E2 0E 00 10 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 70 [02:54:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [02:54:36]wFMCommunicate OK [02:54:36]SAM_PROTO_GetShiftState done [02:54:36]FM_GetShiftState done [02:54:36]opened in 1720831249 [02:54:36]opened+sec_in_day 1720917649 [02:54:36]quantity*price = 200025 [02:54:36]sum+1 = 200027 [02:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 7 13.07.2024 02:54 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164447 ФПД: 143109429126983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T025436&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164447&fm=143109429126983&tin=02508201610067®Number=0000000000090829&sum=200000 [02:54:37]StoreToDocumentArchive [02:54:37]shift 446 fd 164447 [02:54:37]save to /storage/0446/doc_00164447 [02:54:37]save last doc name /storage/0446/doc_00164447 to /storage/kkm_last_doc_name [02:54:37]save OK [02:54:37]Clear old archive folders... [02:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:54:37]tlvbuf is 00BE26F0 [02:54:37]SAM_PROTO_ClearQueue [02:54:37]wFMCommunicate request_size=4 [02:54:37]MH_SAM_APDU [02:54:37]CAPDU: 80 09 00 00 [02:54:37]Write to MH i2c: E2 08 00 1D 02 80 09 00 00 00 00 00 00 91 [02:54:37]Write i2c OK [02:54:37]MH_I2C_Read... [02:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:54:37]Read from MH i2c: E2 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 03 00 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [02:54:37]RAPDU: 90 00 [02:54:37]wFMCommunicate OK [02:54:37]SAM_PROTO_ClearQueue done [02:54:37]KKMCreateOFDPacket [02:54:37]OFDProtocolAddRootSTLVToBuf [02:54:37]FM_MakeSignedData [02:54:37]FM_MakeSignedData [02:54:37]SAM_PROTO_SignData [02:54:37]wFMCommunicate request_size=4 [02:54:37]MH_SAM_APDU [02:54:37]CAPDU: 80 0D 01 02 [02:54:37]Write to MH i2c: E2 08 00 1E 02 80 0D 01 02 00 00 00 00 99 [02:54:37]Write i2c OK [02:54:37]MH_I2C_Read... [02:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:54:37]Read from MH i2c: E2 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 03 00 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [02:54:37]RAPDU: 90 00 [02:54:37]wFMCommunicate OK [02:54:37]wFMCommunicate request_size=255 [02:54:37]MH_SAM_APDU [02:54: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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 07 00 00 00 F4 03 04 00 6C EC 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 82 02 00 35 04 06 00 82 28 42 AF [02:54:37]Write to MH i2c: E2 02 01 1F 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 07 00 00 00 F4 03 04 00 6C EC 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 82 02 00 35 04 06 00 82 28 42 AF 00 00 1F [02:54:37]Write i2c OK [02:54:37]MH_I2C_Read... [02:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:37]Read from MH i2c: E2 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 03 00 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [02:54:37]RAPDU: 90 00 [02:54:37]wFMCommunicate OK [02:54:37]wFMCommunicate request_size=7 [02:54:37]MH_SAM_APDU [02:54:37]CAPDU: 80 0D 02 02 02 E7 47 [02:54:37]Write to MH i2c: E2 0A 00 20 02 80 0D 02 02 02 00 E7 47 00 00 CE [02:54:37]Write i2c OK [02:54:37]MH_I2C_Read... [02:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:37]Read from MH i2c: E2 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 03 00 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [02:54:37]RAPDU: 90 00 [02:54:37]wFMCommunicate OK [02:54:37]wFMCommunicate request_size=4 [02:54:37]MH_SAM_APDU [02:54:37]CAPDU: 80 0D 03 02 [02:54:37]Write to MH i2c: E2 08 00 21 02 80 0D 03 02 00 00 00 00 9E [02:54:37]Write i2c OK [02:54:37]MH_I2C_Read... [02:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:54:37]Read from MH i2c: E2 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 0B 00 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 0B 00 21 02 00 40 1B 43 8A 3A 9E B2 61 90 00 B2 [02:54:37]RAPDU: 40 1B 43 8A 3A 9E B2 61 90 00 [02:54:37]wFMCommunicate OK [02:54:37]SAM_PROTO_SignData done [02:54:37]FM_MakeSignedData done [02:54:37]CreateOFDProtocolMessage [02:54:37]wFMCommunicate request_size=4 [02:54:37]MH_SAM_APDU [02:54:37]CAPDU: 80 11 00 00 [02:54:37]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [02:54:37]Write i2c OK [02:54:37]MH_I2C_Read... [02:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:37]Read from MH i2c: E2 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 17 00 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [02:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:54:37]wFMCommunicate OK [02:54:37]CreateOFDProtocolMessage done [02:54:37]OFDSenderStorePacket 164447 [02:54:37]StoreOFDPacket docnum=164447 [02:54:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 14 EE 04 01 2F 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 07 00 00 00 F4 03 04 00 6C EC 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 82 02 00 35 04 06 00 82 28 42 AF E7 47 40 1B 43 8A 3A 9E B2 61 [02:54:37]CheckFolder [02:54:37]dirname=/storage/ofd_packets [02:54:37]CheckFolder done [02:54:37]ProducePacketName [02:54:37]name=ofd_packets/00164447 [02:54:37]NVStorageSaveData ofd_packets/00164447 [02:54:37]File name is /storage/ofd_packets/00164447 [02:54:37]Write 298 bytes [02:54:37]NVStorageSaveData done [02:54:37]OFDSenderStorePacket done [02:54:37]KKMCreateOFDPacket done [02:54:37]NVStorageSaveData kkm_last_timestamp [02:54:37]File name is /storage/kkm_last_timestamp [02:54:37]Write 4 bytes [02:54:37]NVStorageSaveData done [02:54:37]ExternCall_PrintAddStr [02:54:37]wPrintStart [02:54:37]Write to MH i2c: 01 00 00 23 02 25 [02:54:37]Write i2c OK [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: 01 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: 01 07 00 [02:54:37]MH_I2C_Read... [02:54:37]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [02:54:37]RasterBufferAndPrint [02:54:37]line Счет N : (1)458533 [02:54:37]line ИНН: 02508201610067 [02:54:37]line Контрольно-Кассовый Чек [02:54:37]line ПРОДАЖА [02:54:37]line ТРК (МРК, ГНК) : 21 [02:54:37]line Товар: 2710194210 [02:54:37]line ДТ-К-5 [02:54:37]line 27.820 * 71.90 [02:54:37]line = 2000.26 [02:54:37]line НДС 12% НСП 1% [02:54:37]line > о реализуемом товаре [02:54:37]line ОКРУГЛЕНИЕ: -0.26 [02:54:37]line ИТОГО: 2000.00 [02:54:37]line Внесено: 2000.00 [02:54:37]line СДАЧА: 0.00 [02:54:37]line НСП 1% : 17.70 [02:54:37]line НДС 12% : 212.42 [02:54:37]line Наличными: 2000.00 [02:54:37]line Безнал.: 0.00 [02:54:37]line Место: АЗС № 72 "Партнер Нефть" [02:54:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [02:54:37]line СНО: Общий режим [02:54:37]line Чек 7 13.07.2024 02:54 [02:54:37]line Смена: 446 ФФД: 1.0 [02:54:37]line ЗНМ: 0300000160 [02:54:37]line РНМ: 0000000000090829 [02:54:38]line Версия ККМ: 001 [02:54:38]line ФМ: 0000000000874718 [02:54:38]line ФД: 164447 [02:54:38]line ФПД: 143109429126983 [02:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T025436&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164447&fm=143109429126983&tin=02508201610067®Number=0000000000090829&sum=200000 [02:54:38]OFD Sender: Processing packet 164447 [packets to send 104, broken 103] [02:54:38]ProducePacketName [02:54:38]name=ofd_packets/00164447 [02:54:38]OFD Sender: To server: pG, [02:54:38]CommunicateWithHost lk.salyk.kg:30040 [02:54:38]ConnectInit lk.salyk.kg [02:54:38]written 0, free lines is 4095 [02:54:38]Connected sock=10 [02: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 34 37 31 38 0C 01 00 00 14 EE 04 01 2F 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 07 00 00 00 F4 03 04 00 6C EC 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 82 02 00 35 04 06 00 82 28 42 AF E7 47 40 1B 43 8A 3A 9E B2 61 [02:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C4 C2 47 00 E5 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 34 37 31 38 10 04 04 00 5F 82 02 00 F4 03 04 00 FF 92 91 66 B6 04 01 00 00 1F 1B B0 6F 20 55 24 C0 [02:54:38]CommunicateWithHost err = 0 [02:54:38]CheckOFDResponse [02:54:38]1017 (14) - 77093643461234 [02:54:38]1041 (16) - 0000000000874718 [02:54:38]1040 (4) - 164447 [02:54:38]1012 (4) - 12.07.2024 20:33 [02:54:38]1206 (1) - 0 [02:54:38]OFD Sender: Remove packet 164447 [02:54:38]ProducePacketName [02:54:38]name=ofd_packets/00164447 [02:54:38]NVStorageDeleteData [02:54:38]Write to MH i2c: 01 00 00 4D 02 4F [02:54:38]Write i2c OK [02:54:38]MH_I2C_Read... [02:54:38]Read from MH i2c: 01 [02:54:38]MH_I2C_Read... [02:54:38]Read from MH i2c: 01 07 00 [02:54:38]MH_I2C_Read... [02:54:38]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 F2 0C 54 [02:54:38]RasterBufferAndPrint [02:54:38]line [02:54:38]line [02:54:38]line [02:54:38]line [02:54:38]line [02:54:38]written 0, free lines is 3318 [02:54:38]MH_Cut [02:54:38]Write to MH i2c: D1 01 00 54 02 01 28 [02:54:38]Write i2c OK [02:54:38]MH_I2C_Read... [02:54:38]Read from MH i2c: D1 [02:54:38]MH_I2C_Read... [02:54:38]Read from MH i2c: D1 01 00 [02:54:38]MH_I2C_Read... [02:54:38]Read from MH i2c: D1 01 00 54 02 00 27 [02:54:38]Write to MH i2c: 01 00 00 55 02 57 [02:54:38]Write i2c OK [02:54:38]MH_I2C_Read... [02:54:38]OFD Sender: No OFD packet to send [02:54:39]*** Cut start [02:54:39]*** Partial cut [02:54:39]*** CUTSNS_PIN = 1 [02:54:39]*** CUTSNS_PIN = 0 [02:54:39]*** Brake cut motor [02:54:39]Read from MH i2c: 01 [02:54:39]MH_I2C_Read... [02:54:39]*** Stop cut motor [02:54:39]*** Cut end [02:54:39]Read from MH i2c: 01 07 00 [02:54:39]MH_I2C_Read... [02:54:39]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 FF 0F 6C [02:54:39]process_action close_receipt done [02:54:39]requested_data is exist [02:54:39]produce_requested_data [02:54:39]requested_item fm.sn is exist - process it [02:54:39]wFMCommunicate request_size=4 [02:54:39]MH_SAM_APDU [02:54:39]CAPDU: 80 11 00 00 [02:54:39]Write to MH i2c: E2 08 00 56 02 80 11 00 00 00 00 00 00 D2 [02:54:39]Write i2c OK [02:54:39]MH_I2C_Read... [02:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:39]Read from MH i2c: E2 [02:54:39]MH_I2C_Read... [02:54:39]Read from MH i2c: E2 17 00 [02:54:39]MH_I2C_Read... [02:54:39]Read from MH i2c: E2 17 00 56 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [02:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:54:39]wFMCommunicate OK [02:54:39]requested_item fd.num is exist - process it [02:54:39]SAM_PROTO_GetFieldsCounters [02:54:39]wFMCommunicate request_size=4 [02:54:39]MH_SAM_APDU [02:54:39]CAPDU: 80 13 00 00 [02:54:39]Write to MH i2c: E2 08 00 57 02 80 13 00 00 00 00 00 00 D5 [02:54:39]Write i2c OK [02:54:39]MH_I2C_Read... [02:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:54:40]Read from MH i2c: E2 [02:54:40]MH_I2C_Read... [02:54:40]Read from MH i2c: E2 62 00 [02:54:40]MH_I2C_Read... [02:54:40]Read from MH i2c: E2 62 00 57 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:54:40]wFMCommunicate OK [02:54:40]SAM_PROTO_GetFieldsCounters done [02:54:40]requested_item shift.num is exist - process it [02:54:40]requested_item shift.opened is exist - process it [02:54:40]req_shift_opened [02:54:40]FM_GetShiftState [02:54:40]SAM_PROTO_GetShiftState [02:54:40]wFMCommunicate request_size=4 [02:54:40]MH_SAM_APDU [02:54:40]CAPDU: 80 13 01 00 [02:54:40]Write to MH i2c: E2 08 00 58 02 80 13 01 00 00 00 00 00 D7 [02:54:40]Write i2c OK [02:54:40]MH_I2C_Read... [02:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:40]Read from MH i2c: E2 [02:54:40]MH_I2C_Read... [02:54:40]Read from MH i2c: E2 0E 00 [02:54:40]MH_I2C_Read... [02:54:40]Read from MH i2c: E2 0E 00 58 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B8 [02:54:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [02:54:40]wFMCommunicate OK [02:54:40]SAM_PROTO_GetShiftState done [02:54:40]FM_GetShiftState done [02:54:40]req_shift_opened done [02:54:40]requested_item shift.open_date is exist - process it [02:54:40]req_shift_open_date [02:54:40]req_shift_open_date done [02:54:40]produce_requested_data done [02:54:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164447,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [02:54:40]process_action_free close_receipt [02:54:40]json_value_free [02:54:40]json_value_free done [02:54:40]process_json_proto returns [02:54:40]Send response to host [02:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164447,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [02:54:40]free response buf [02:54:40]execute_script done [02:54:40]execute_script returns [02:54:40]free content buf [02:54:40]Sock 7.Close socket [02:54:40]Sock 7.Thread stoped [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send